|
@@ -258,7 +258,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="近效期预警天数" prop="recentWarningPeriod"
|
|
|
- :rules="{ required: !isExp, message: '请填写近效期预警天数', trigger: 'blur' }">
|
|
|
+ :rules="{ required: (basicForm.expiryDateManagerment === '0' && basicForm.nearOnsetManagerment ==='0'), message: '请填写近效期预警天数', trigger: 'blur' }">
|
|
|
<el-input type="number" min="0" :disabled="disable || isExp"
|
|
|
v-model="basicForm.recentWarningPeriod"></el-input>
|
|
|
</el-form-item>
|
|
@@ -1127,11 +1127,12 @@
|
|
|
if (val == 0) {
|
|
|
this.isExp = false
|
|
|
} else {
|
|
|
- this.basicForm.usefulLife = ''
|
|
|
- this.basicForm.expiryUnitId = ''
|
|
|
- this.basicForm.usefulLifeUnitId = ''
|
|
|
- this.basicForm.recentWarningPeriod = ''
|
|
|
- this.isExp = true
|
|
|
+ this.basicForm.usefulLife = '';
|
|
|
+ this.basicForm.expiryUnitId = '';
|
|
|
+ this.basicForm.usefulLifeUnitId = '';
|
|
|
+ this.basicForm.recentWarningPeriod = '';
|
|
|
+ this.basicForm.nearOnsetManagerment = '2'
|
|
|
+ this.isExp = true;
|
|
|
}
|
|
|
},
|
|
|
// 选择采购组织时控制业务部门
|