Browse Source

【反馈:2026070108】【深爱】【U审批】【审批可维护字段参考PC端,分组与按钮同名的字段变为可编辑字段】

wuyx 1 week ago
parent
commit
522a7f87c4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      uas-office-web/wxuasapproval/src/pages/approval/Approval.jsx

+ 5 - 5
uas-office-web/wxuasapproval/src/pages/approval/Approval.jsx

@@ -1822,9 +1822,7 @@ class Approval extends Component {
       let canInput = (!isObjEmpty(mApprovalRecord.buttonName)
           && strContain(';' + mApprovalRecord.buttonName + ';',
               ';' + groupName + ';'));
-      console.log(mApprovalRecord.buttonName);
       approval.canInput = canInput;
-      console.log('canInput:'+canInput);
       let showAble = ((!isObjNull(data)) && data.hasOwnProperty(valueKey))
       let values = getStrValue(data, valueKey)
       let newValues = getStrValue(changeData, valueKey)
@@ -1834,7 +1832,10 @@ class Approval extends Component {
       } else {
         newValues = values
       }
-
+      if(canInput){
+        console.log(mApprovalRecord.buttonName);
+        console.log('canInput:'+canInput);
+      }
       if (!isMain) {
         let findTionName = config.DG_FINDFUNCTIONNAME
         let renderer = config.DG_RENDERER
@@ -1981,8 +1982,7 @@ class Approval extends Component {
 
       approval.data2Values()
       if (approval.dfType!='FF' &&((!approval.neerInput && isObjEmpty(approval.values)) || !showAble
-        || approval.values == 'null' || approval.values == '(null)'
-          || !approval.canInput
+        || ((approval.values == 'null' || approval.values == '(null)')&&!approval.canInput)
       )) {
         continue
       }