更新发送合同的接口

This commit is contained in:
weipengfei 2023-09-23 14:08:28 +08:00
parent 9160177c7c
commit 1f072d5f0c

View File

@ -164,7 +164,11 @@
v-perms="['contract.contract/contract_send_again']"
type="primary"
link
@click="(showPop = true), (contractId = row.party_b)"
@click="
(showPop = true),
(party_b_id = row.party_b),
(contract_id = row.id)
"
>发送短信</el-button
>
</template>
@ -236,24 +240,32 @@ const datalist = ref([]);
const showPop = ref(false);
const showConctactPop = ref(false);
// id
const contractId = ref("");
const contract_id = ref("");
const party_b_id = ref("");
//
const showCreateConctPop = (row) => {
const showCreateConctPop = (row: any) => {
(showPop.value = true),
(showConctactPop.value = true),
(contractId.value = row.party_b);
(contract_id.value = row.id),
(party_b_id.value = row.party_b);
};
const offPop = () => {
showPop.value = false;
showConctactPop.value = false;
};
const creContct = async () => {
await generateGontract({ id: contractId.value });
await generateGontract({
id: party_b_id.value,
contract_id: contract_id.value,
});
getLists();
offPop();
};
const sendMsg = async () => {
await sendMsgApi({ id: contractId.value });
await sendMsgApi({
id: party_b_id.value,
contract_id: contract_id.value,
});
getLists();
offPop();
};