From 182f058933799f296b672a5f86930ed5bea05905 Mon Sep 17 00:00:00 2001 From: liuxy Date: Mon, 8 Jan 2024 10:14:22 +0800 Subject: [PATCH] up --- .../contract/components/addContractLedger.vue | 13 ++- src/views/contract/contractLedger.vue | 102 ++++++++---------- 2 files changed, 51 insertions(+), 64 deletions(-) diff --git a/src/views/contract/components/addContractLedger.vue b/src/views/contract/components/addContractLedger.vue index b8794c6..fd98f4d 100644 --- a/src/views/contract/components/addContractLedger.vue +++ b/src/views/contract/components/addContractLedger.vue @@ -4,12 +4,12 @@ ref="dialog" :is-show.sync="isShow" type="form" - :title="type === 'add' ? '新增合同' : '编辑合同'" + :title="type === 'add' ? '新增合同事项' : '编辑合同事项'" :form="form" :rules="rules" @submit="submit" > - @@ -288,9 +286,9 @@ - + - - + - + @@ -1198,7 +1151,8 @@ export default { plan_name: "请选择预算计划", start_plan_price: undefined, end_plan_price: undefined, - is_myself: 0 + is_myself: 0, + is_contract:1 }, selectCopy: { keyword: "", @@ -1295,7 +1249,41 @@ export default { ); }, - }, + },{ + label: "合同审批流程", + width: 145, + prop: "join_status", + customFn:row => { + if (row.is_simple || !row.is_contract) { + return (); + } + const getDate = (value) => { + switch (value) { + case 1: + return "待申请"; + break; + case 2: + return "流转中"; + break; + case 3: + return "已办结"; + break; + default: + return "异常"; + break; + } + } + return ( +
+ { getDate(row.join_status) } +
+ { + (row.is_simple || row.join_status === 1) ? '' : this.toOaDetail('hetong',row)}}>查看 + } +
+ ) + } + }, { label: "付款计划", prop: "sign_plan_count", @@ -2112,11 +2100,7 @@ export default { }, //获取合同列表 async getContracts(is_export,noloading=false) { - if (/contractLedger/g.test(this.$route.path)) { - this.select.is_contract = 1 - } else { - this.select.is_contract = "" - } + const res = await getContract({ page_size: this.select.pageSize, page: this.select.pageIndex,