From da96300363966aaed7c33fda06adefd948ea7031 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 7 Aug 2023 18:56:49 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/company.ts | 4 + src/views/company/index.vue | 684 +++++++++++++++++------------------ src/views/contract/index.vue | 13 +- 3 files changed, 344 insertions(+), 357 deletions(-) diff --git a/src/api/company.ts b/src/api/company.ts index a3c7786..ca99e62 100644 --- a/src/api/company.ts +++ b/src/api/company.ts @@ -33,6 +33,10 @@ export function sendMsgApi(params: any) { return request.get({ url: '/company/postsms', params }) } // 生成合同 +export function initiate_contract(params: any) { + return request.get({ url: '/company/initiate_contract', params }) +} +// 发送合同 export function generateGontract(params: any) { return request.get({ url: '/company/Draftingcontracts', params }) } diff --git a/src/views/company/index.vue b/src/views/company/index.vue index 371f811..745ba34 100644 --- a/src/views/company/index.vue +++ b/src/views/company/index.vue @@ -1,404 +1,390 @@ diff --git a/src/views/contract/index.vue b/src/views/contract/index.vue index 4240b11..673e6cc 100644 --- a/src/views/contract/index.vue +++ b/src/views/contract/index.vue @@ -98,12 +98,11 @@ 新增 --> - 删除 + > -->
- + - + - + + + >() // 是否显示编辑框 @@ -139,9 +144,12 @@ const queryParams = reactive({ status: '', party_a: '', party_b: '', - area_manager: '' + area_manager: '', + type: '' }) - +if (route.query.type) { + queryParams.type = route.query.type?.toString() +} // 选中数据 const selectData = ref([]) @@ -171,25 +179,7 @@ const checkContcat = (id: number) => { apiContractDetail({ id }).then((res) => { res.file ? window.open(res.file) : feedback.msgError('暂无合同可以查看') }) - - // window.open('https://www.zhihu.com/signin?next=%2F') } - -// 添加 -// const handleAdd = async () => { -// showEdit.value = true; -// await nextTick(); -// editRef.value?.open("add"); -// }; - -// // 编辑 -// const handleEdit = async (data: any) => { -// showEdit.value = true; -// await nextTick(); -// editRef.value?.open("edit"); -// editRef.value?.setFormData(data); -// }; - // 删除 const handleDelete = async (id: number | any[]) => { await feedback.confirm('确定要删除?') diff --git a/src/views/permission/admin/index.vue b/src/views/permission/admin/index.vue index 3a2e3c0..367d2c9 100644 --- a/src/views/permission/admin/index.vue +++ b/src/views/permission/admin/index.vue @@ -118,14 +118,14 @@ @click="handleDelete(row.id)" >删除 - 废除合同 + > -->