更新发送合同的接口
This commit is contained in:
parent
9160177c7c
commit
1f072d5f0c
@ -164,7 +164,11 @@
|
|||||||
v-perms="['contract.contract/contract_send_again']"
|
v-perms="['contract.contract/contract_send_again']"
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
@click="(showPop = true), (contractId = row.party_b)"
|
@click="
|
||||||
|
(showPop = true),
|
||||||
|
(party_b_id = row.party_b),
|
||||||
|
(contract_id = row.id)
|
||||||
|
"
|
||||||
>发送短信</el-button
|
>发送短信</el-button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
@ -236,24 +240,32 @@ const datalist = ref([]);
|
|||||||
const showPop = ref(false);
|
const showPop = ref(false);
|
||||||
const showConctactPop = ref(false);
|
const showConctactPop = ref(false);
|
||||||
// 发送合同的id
|
// 发送合同的id
|
||||||
const contractId = ref("");
|
const contract_id = ref("");
|
||||||
|
const party_b_id = ref("");
|
||||||
// 发送合同
|
// 发送合同
|
||||||
const showCreateConctPop = (row) => {
|
const showCreateConctPop = (row: any) => {
|
||||||
(showPop.value = true),
|
(showPop.value = true),
|
||||||
(showConctactPop.value = true),
|
(showConctactPop.value = true),
|
||||||
(contractId.value = row.party_b);
|
(contract_id.value = row.id),
|
||||||
|
(party_b_id.value = row.party_b);
|
||||||
};
|
};
|
||||||
const offPop = () => {
|
const offPop = () => {
|
||||||
showPop.value = false;
|
showPop.value = false;
|
||||||
showConctactPop.value = false;
|
showConctactPop.value = false;
|
||||||
};
|
};
|
||||||
const creContct = async () => {
|
const creContct = async () => {
|
||||||
await generateGontract({ id: contractId.value });
|
await generateGontract({
|
||||||
|
id: party_b_id.value,
|
||||||
|
contract_id: contract_id.value,
|
||||||
|
});
|
||||||
getLists();
|
getLists();
|
||||||
offPop();
|
offPop();
|
||||||
};
|
};
|
||||||
const sendMsg = async () => {
|
const sendMsg = async () => {
|
||||||
await sendMsgApi({ id: contractId.value });
|
await sendMsgApi({
|
||||||
|
id: party_b_id.value,
|
||||||
|
contract_id: contract_id.value,
|
||||||
|
});
|
||||||
getLists();
|
getLists();
|
||||||
offPop();
|
offPop();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user