diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index cf050fb..e89c2ca 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -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) + " >发送短信 @@ -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(); };