[update] 修改bug80881
This commit is contained in:
@@ -317,7 +317,7 @@ export default {
|
||||
},
|
||||
// 企标是否试行改变,试行周期必填校验也跟着变
|
||||
'formInline.try_flag' (val) {
|
||||
if (val) {
|
||||
if (val && !this.isEditSetData) {
|
||||
if (val === IsTrial.YES.value) {
|
||||
// 试行周期给默认值24
|
||||
this.formInline.trial_period = '24'
|
||||
@@ -330,6 +330,15 @@ export default {
|
||||
// 不试行,试行周期非必填
|
||||
this.rules.trial_period[0].required = false
|
||||
}
|
||||
} else if (val && this.isEditSetData) {
|
||||
if (val === IsTrial.YES.value) {
|
||||
// 编辑回显得时候改变,设置标准状态不可编辑,试行周期必填
|
||||
// 试行,试行周期必填
|
||||
this.rules.trial_period[0].required = true
|
||||
} else {
|
||||
// 不试行,试行周期非必填
|
||||
this.rules.trial_period[0].required = false
|
||||
}
|
||||
}
|
||||
},
|
||||
// 企标名称
|
||||
|
||||
Reference in New Issue
Block a user