pull/480/head
liting 2024-06-12 20:37:28 +08:00
parent 433759a903
commit adc8366a60
1 changed files with 7 additions and 2 deletions

View File

@ -78,7 +78,7 @@
</el-col>
<el-col :span="16">
<el-form-item label="偏差原因" prop="reason">
<el-input v-model="formData.reason" placeholder="请输入偏差原因" />
<el-input v-model="formData.reason" placeholder="请输入偏差原因" :disabled="formData.deviation=='0'"/>
</el-form-item>
</el-col>
<el-col :span="24">
@ -143,7 +143,12 @@ const formRules = reactive({
const formRef = ref() // Ref
const handleSelectChange = (newValue) => {
console.log("newValue="+ newValue);
if(newValue == 0){
formData.value.reason =undefined
formRules.reason[0].required= false
}else{
formRules.reason[0].required= true
}
}
/** 打开弹窗 */