Procházet zdrojové kódy

修复列表点击审核后表单可编辑

zhonghuizhen před 6 měsíci
rodič
revize
8f4f3e4b79

+ 7 - 3
src/views/business/performance/experimentalView.vue

@@ -887,7 +887,7 @@ export default {
       }
     },
     showToolBarsBtn(key) {
-      if (this.readonly) {
+      if (this.readonly && this.params.action !== 'edit') {
         return !['flowChart','approvalHistory', 'pdf', 'cancel'].includes(key)
       }
       
@@ -897,11 +897,15 @@ export default {
         return !['flowChart','approvalHistory', 'pdf', 'cancel', 'save', 'submit'].includes(key)
       }
       
-      if (status === '已编制') {
+      if (status === '已编制' && this.params.action == 'edit') {
+        //已编制状态不允许修改表单内容
+        this.readonly = true
         return !['flowChart','approvalHistory', 'pdf', 'cancel', 'save', 'sendBack','doEndProcess', 'submit'].includes(key)
       }
       
-      if (status === '已审核') {
+      if (status === '已审核' && this.params.action == 'edit') {
+          //已审核状态不允许修改表单内容
+          this.readonly = true
         return !['flowChart','approvalHistory', 'pdf', 'cancel', 'save', 'sendBack','doEndProcess', 'submit'].includes(key)
       }
       

+ 1 - 0
src/views/business/performance/myRecord.vue

@@ -307,6 +307,7 @@
           methodId: fangFaId,
           methodKey: fangFaKey,
           recordId: id,
+          action: key,
           shiFouGuoShen: shiFouGuoShen
         }
         this.readonly = key === 'detail'

+ 1 - 0
src/views/business/performance/recordVerify.vue

@@ -367,6 +367,7 @@ export default {
         methodId: fangFaId,
         methodKey: fangFaKey,
         recordId: id,
+        action: key,
         shiFouGuoShen: shiFouGuoShen
       }
       this.readonly = key === 'detail'