From 7d3b5f5314493a77d520dc4ae53db8ca03b57ada Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期三, 25 十二月 2024 10:57:57 +0800 Subject: [PATCH] 历史记录也不能编辑删除 --- src/components/view/a7-sample-registration.vue | 23 ++++++++++- src/components/view/a8-periodic-document-review-records.vue | 19 +++++++++ src/components/view/a7-sample-disposal.vue | 23 ++++++++++- src/components/view/a8-external-document-confirmation-records.vue | 23 ++++++++++- 4 files changed, 78 insertions(+), 10 deletions(-) diff --git a/src/components/view/a7-sample-disposal.vue b/src/components/view/a7-sample-disposal.vue index b454bdb..b133500 100644 --- a/src/components/view/a7-sample-disposal.vue +++ b/src/components/view/a7-sample-disposal.vue @@ -206,7 +206,7 @@ name: "SampleDisposal", data() { return { - activeName:'濉啓', + activeName:'鍘嗗彶璁板綍', title:'鏂板', addDialogVisible:false, addLoading:false, @@ -299,12 +299,18 @@ id: 'handleAdd0', font: '淇敼', type: 'text', - method: 'handleAdd0' + method: 'handleAdd0', + disabFun: (row, index) => { + return !this.addPower||this.currentInfo.examineState=='閫氳繃' + } },{ id: 'delete', font: '鍒犻櫎', type: 'text', - method: 'doDiy' + method: 'doDiy', + disabFun: (row, index) => { + return !this.addPower||this.currentInfo.examineState=='閫氳繃' + } }], tagField: {}, selectField: {}, @@ -325,6 +331,17 @@ addPower:false, }; }, + watch: { + 'activeName' (val1, val2) { + if(val1=='濉啓'){ + this.componentData0.do.forEach((item)=>{ + item.disabFun = (row, index) => { + return !this.addPower||this.currentInfo.examineState=='閫氳繃' + } + }) + } + } + }, mounted() { this.entityCopy = this.HaveJson(this.componentData.entity); this.getCustomPageList() diff --git a/src/components/view/a7-sample-registration.vue b/src/components/view/a7-sample-registration.vue index 5d126ec..83360af 100644 --- a/src/components/view/a7-sample-registration.vue +++ b/src/components/view/a7-sample-registration.vue @@ -232,7 +232,7 @@ name: "SampleDisposal", data() { return { - activeName:'濉啓', + activeName:'鍘嗗彶璁板綍', title:'鏂板', addDialogVisible:false, addLoading:false, @@ -325,12 +325,18 @@ id: 'handleAdd0', font: '淇敼', type: 'text', - method: 'handleAdd0' + method: 'handleAdd0', + disabFun:(row, index) => { + return !this.addPower||this.currentInfo.examineState=='閫氳繃' + } },{ id: 'delete', font: '鍒犻櫎', type: 'text', - method: 'doDiy' + method: 'doDiy', + disabFun:(row, index) => { + return !this.addPower||this.currentInfo.examineState=='閫氳繃' + } }], tagField: {}, selectField: {}, @@ -351,6 +357,17 @@ addPower:true, }; }, + watch: { + 'activeName' (val1, val2) { + if(val1=='濉啓'){ + this.componentData0.do.forEach((item)=>{ + item.disabFun = (row, index) => { + return !this.addPower||this.currentInfo.examineState=='閫氳繃' + } + }) + } + } + }, mounted() { this.entityCopy = this.HaveJson(this.componentData.entity); this.getCustomPageList() diff --git a/src/components/view/a8-external-document-confirmation-records.vue b/src/components/view/a8-external-document-confirmation-records.vue index c0564b3..8402380 100644 --- a/src/components/view/a8-external-document-confirmation-records.vue +++ b/src/components/view/a8-external-document-confirmation-records.vue @@ -69,7 +69,7 @@ data(){ return{ title0:'鏌ョ湅', - activeName:'濉啓', + activeName:'鍘嗗彶璁板綍', lookDialogVisible:false, noCheckLoading:false, checkLoading:false, @@ -141,12 +141,18 @@ id: 'update', font: '淇敼', type: 'text', - method: 'doDiy' + method: 'doDiy', + disabFun:(row, index) => { + return !this.addPower||!!this.currentInfo.ratifyUserName + } },{ id: 'delete', font: '鍒犻櫎', type: 'text', - method: 'doDiy' + method: 'doDiy', + disabFun:(row, index) => { + return !this.addPower||!!this.currentInfo.ratifyUserName + } }], tagField: {}, selectField: {}, @@ -176,6 +182,17 @@ return this.javaApi +this.$api.manageRecordTotal.exportManageRecordVerify } }, + watch: { + 'activeName' (val1, val2) { + if(val1=='濉啓'){ + this.componentData0.do.forEach((item)=>{ + item.disabFun = (row, index) => { + return !this.addPower||!!this.currentInfo.ratifyUserName + } + }) + } + } + }, mounted() { this.entityCopy = this.HaveJson(this.componentData.entity); this.getPower() diff --git a/src/components/view/a8-periodic-document-review-records.vue b/src/components/view/a8-periodic-document-review-records.vue index bf5816e..99c45b6 100644 --- a/src/components/view/a8-periodic-document-review-records.vue +++ b/src/components/view/a8-periodic-document-review-records.vue @@ -161,7 +161,7 @@ }, data() { return { - activeName:'濉啓', + activeName:'鍘嗗彶璁板綍', title0:'鏂板', addPower:true, outPower:true, @@ -189,12 +189,18 @@ font: '鍒犻櫎', type: 'text', method: 'doDiy', + disabFun:(row, index) => { + return !this.addPower||!!this.currentInfo.ratifyUserName + } }, { id: 'handleEdit', font: '淇敼', type: 'text', method: 'handleEdit', field:[], + disabFun:(row, index) => { + return !this.addPower||!!this.currentInfo.ratifyUserName + } }], tagField: { // documentType:{ @@ -295,6 +301,17 @@ return this.javaApi +this.$api.manageRecordIntervals.exportInManageRecordIntervals } }, + watch: { + 'activeName' (val1, val2) { + if(val1=='濉啓'){ + this.componentData.do.forEach((item)=>{ + item.disabFun = (row, index) => { + return !this.addPower||!!this.currentInfo.ratifyUserName + } + }) + } + } + }, mounted() { this.entityCopy = this.HaveJson(this.componentData.entity); this.entityCopy0 = this.HaveJson(this.componentData0.entity); -- Gitblit v1.9.3