[update] 修改bug81639

This commit is contained in:
lideqin
2024-02-01 09:55:40 +08:00
parent c8e6160fab
commit fc0127bfaf
@@ -468,7 +468,7 @@ export default {
},
// 企标是否试行改变,标准状态需要跟着变,试行周期必填校验也跟着变
'formInline.tryFlag' (val) {
if (val) {
if (val && !this.isEditSetData) {
if (val === IsTrial.YES.value) {
// 试行周期给默认值24
this.formInline.trialPeriod = '24'
@@ -480,6 +480,14 @@ export default {
// 不试行,试行周期非必填
this.rules.trialPeriod[0].required = false
}
} else if (val && this.isEditSetData) {
if (val === IsTrial.YES.value) {
// 试行,试行周期必填
this.rules.trialPeriod[0].required = true
} else {
// 不试行,试行周期非必填
this.rules.trialPeriod[0].required = false
}
}
}
},
@@ -680,7 +688,9 @@ export default {
}
}).finally(() => {
this.loading = false
this.isEditSetData = false
setTimeout(() => {
this.isEditSetData = false
}, 500)
})
},
// 零部件名称选择完成的回调