Browse Source

近效期预警天数由效期管理控制

002390 1 year ago
parent
commit
4e6157f5b7
1 changed files with 3 additions and 27 deletions
  1. 3 27
      src/views/material/basicFile/details.vue

+ 3 - 27
src/views/material/basicFile/details.vue

@@ -830,27 +830,17 @@
         else if (attribute.prop == 'expiryUnitId'
           || attribute.prop == 'usefulLife'
           || attribute.prop == 'usefulLifeUnitId'
-          // || attribute.prop == 'recentWarningPeriod'
+          || attribute.prop == 'recentWarningPeriod'
         ) {
           if (this.basicData.value['expiryDateManagerment'] == '2') {
 
             this.basicData.value['expiryUnitId'] = '';
             this.basicData.value['usefulLife'] = '';
             this.basicData.value['usefulLifeUnitId'] = '';
-            // this.basicData.value['recentWarningPeriod'] = '';
-          }
-
-          return !(this.updateButtonGroup && attribute.edit && this.basicData.value['expiryDateManagerment'] == '0');
-        }
-        //  近效期管理:nearOnsetManagerment 控制   "recentWarningPeriod" 近效期预警天数
-        else if(attribute.prop == 'recentWarningPeriod'){
-
-          if (this.basicData.value['nearOnsetManagerment'] == '2') {
             this.basicData.value['recentWarningPeriod'] = '';
           }
 
-          return !(this.updateButtonGroup && attribute.edit && this.basicData.value['nearOnsetManagerment'] == '0');
-
+          return !(this.updateButtonGroup && attribute.edit && this.basicData.value['expiryDateManagerment'] == '0');
         }
         // 默认采购组织:purchasingOrganization  业务部门:businessDepartment
         else if (attribute.prop == 'businessDepartment') {
@@ -2260,27 +2250,13 @@
 
           this.judgeIsRequriedByProps({
             condiition:(nVal === '2'),
-            tergetNames:['expiryUnitId','usefulLife','usefulLifeUnitId'],
+            tergetNames:['expiryUnitId','usefulLife','usefulLifeUnitId','recentWarningPeriod'],
             formName:'basicData',
             formRef:'basicMessageRef',
           })
         },
         deep: true,
       },
-      // 近效期管理 nearOnsetManagerment 控制 "recentWarningPeriod" 近效期预警天数 必填
-      "basicData.value.nearOnsetManagerment":{
-
-        handler(nVal, oVal) {
-
-          this.judgeIsRequriedByProps({
-            condiition:(nVal === '2'),
-            tergetNames:['recentWarningPeriod'],
-            formName:'basicData',
-            formRef:'basicMessageRef',
-          })
-        },
-        deep: true,
-      }, 
     },
 
     created() {