From 9aaab87c2b3610609d61c6141ebaf1f3899d0d9f Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 4 Sep 2023 13:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=94=9F=E6=88=90=E5=90=88?= =?UTF-8?q?=E5=90=8C=E5=8F=91=E9=80=81=E5=90=88=E5=90=8C=E7=9A=84=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/company/index.vue | 178 ++++++++++++++++++++++++++++++++- src/views/contract/company.vue | 2 +- src/views/contract/index.vue | 113 +++++++++++++++++++-- 3 files changed, 283 insertions(+), 10 deletions(-) diff --git a/src/views/company/index.vue b/src/views/company/index.vue index 5d595b1..4017710 100644 --- a/src/views/company/index.vue +++ b/src/views/company/index.vue @@ -151,7 +151,7 @@ @@ -221,6 +273,128 @@ + +

重要提醒

+
+
请确认信息是否有误
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ 确认 + 返回 +

+ + + +
+ +

重要提醒

+
+ 请确认信息是否有误,发送合同,请确认信息是否有误,发送电子合同后短时间内将不可再次发送. +
+
+ 确认签约短信将在60秒后发送,请注意查收,并点击短信链接进行线上合同签约 +
+

+ 确认 + 确认 + 返回 +

+
@@ -399,7 +573,7 @@ const handleAuthentication = async (id: number | any[]) => { // 审核中 const auditing = () => { - ElMessage.warning("请等待合同审核完成!"); + ElMessage.warning("请等待合同签约完成!"); }; getLists(); diff --git a/src/views/contract/company.vue b/src/views/contract/company.vue index 6f9b176..6e9c47e 100644 --- a/src/views/contract/company.vue +++ b/src/views/contract/company.vue @@ -151,7 +151,7 @@ @@ -155,6 +176,28 @@ + +

重要提醒

+
+ 请确认信息是否有误,发送合同,请确认信息是否有误,发送电子合同后短时间内将不可再次发送. +
+
+ 确认签约短信将在60秒后发送,请注意查收,并点击短信链接进行线上合同签约 +
+

+ 确认 + 确认 + 返回 +

+
@@ -171,12 +214,39 @@ import { import { timeFormat } from "@/utils/util"; import feedback from "@/utils/feedback"; import { dictDataLists } from "@/api/setting/dict"; +import { generateGontract, sendMsgApi } from "@/api/company"; const route = useRoute(); const editRef = shallowRef>(); // 是否显示编辑框 const showEdit = ref(false); const datalist = ref([]); +//弹窗 +const showPop = ref(false); +const showConctactPop = ref(false); +// 发送合同的id +const contractId = ref(""); +// 发送合同 +const showCreateConctPop = (row) => { + (showPop.value = true), + (showConctactPop.value = true), + (contractId.value = row.party_b); +}; +const offPop = () => { + showPop.value = false; + showConctactPop.value = false; +}; +const creContct = async () => { + await generateGontract({ id: contractId.value }); + getLists(); + offPop(); +}; +const sendMsg = async () => { + await sendMsgApi({ id: contractId.value }); + getLists(); + offPop(); +}; + // 查询条件 const queryParams = reactive({ company_id: "", @@ -188,11 +258,10 @@ const queryParams = reactive({ area_manager: "", type: "", }); -const statusdata=reactive([ - {id:"1",name:'已签约'}, - {id:"0",name:"未签约"}, -] -) +const statusdata = reactive([ + { id: "1", name: "已签约" }, + { id: "0", name: "未签约" }, +]); if (route.query.type) { queryParams.type = route.query.type?.toString(); } @@ -239,3 +308,33 @@ const handleDelete = async (id: number | any[]) => { getLists(); + \ No newline at end of file