From 41195d5b4abf91771f419c1ea49a75f017f87e99 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 28 Jan 2024 16:33:06 +0800 Subject: [PATCH] =?UTF-8?q?CRM-=E5=90=88=E5=90=8C=EF=BC=9A=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=90=88=E5=90=8C=E9=A2=84=E8=A7=88=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=92=8C=E6=8F=90=E4=BA=A4=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/model/index.ts | 4 +- src/views/crm/contract/ContractForm.vue | 12 +- .../crm/contract/components/BPMLModel.vue | 31 +++ src/views/crm/contract/detail/index.vue | 2 +- .../crm/contract/oa/ContractDetail/index.vue | 220 ++++++++++++++++++ 5 files changed, 266 insertions(+), 3 deletions(-) create mode 100644 src/views/crm/contract/components/BPMLModel.vue create mode 100644 src/views/crm/contract/oa/ContractDetail/index.vue diff --git a/src/api/bpm/model/index.ts b/src/api/bpm/model/index.ts index 2e1d4e64..fea5ecf0 100644 --- a/src/api/bpm/model/index.ts +++ b/src/api/bpm/model/index.ts @@ -32,7 +32,9 @@ export const getModelPage = async (params) => { export const getModel = async (id: number) => { return await request.get({ url: '/bpm/model/get?id=' + id }) } - +export const getModelByKey = async (key: string) => { + return await request.get({ url: '/bpm/model/get-by-key?key=' + key }) +} export const updateModel = async (data: ModelVO) => { return await request.put({ url: '/bpm/model/update', data: data }) } diff --git a/src/views/crm/contract/ContractForm.vue b/src/views/crm/contract/ContractForm.vue index 7a272c1c..26a597f5 100644 --- a/src/views/crm/contract/ContractForm.vue +++ b/src/views/crm/contract/ContractForm.vue @@ -145,7 +145,14 @@ - 查看工作流 + + 查看工作流 + @@ -154,6 +161,7 @@ 取 消 + diff --git a/src/views/crm/contract/detail/index.vue b/src/views/crm/contract/detail/index.vue index 5ba1e997..fde35ba2 100644 --- a/src/views/crm/contract/detail/index.vue +++ b/src/views/crm/contract/detail/index.vue @@ -105,7 +105,7 @@ onMounted(async () => { close() return } - contractId.value = id + contractId.value = id as unknown as number await getContractData() }) diff --git a/src/views/crm/contract/oa/ContractDetail/index.vue b/src/views/crm/contract/oa/ContractDetail/index.vue new file mode 100644 index 00000000..ac8a4f63 --- /dev/null +++ b/src/views/crm/contract/oa/ContractDetail/index.vue @@ -0,0 +1,220 @@ + +