|
@@ -57,10 +57,10 @@
|
|
|
</template>
|
|
|
|
|
|
|
|
|
- <el-form-item v-if="form.appStatus === 3" label="驳回原因" prop="rejectReason" :rules="{ required: true, message: '请输入驳回原因', trigger: 'blur' }">
|
|
|
+ <el-form-item v-if="form.appStatus === '3'" label="驳回原因" prop="rejectReason" :rules="{ required: true, message: '请输入驳回原因', trigger: 'blur' }">
|
|
|
<el-input v-model="form.rejectReason" type="textarea"
|
|
|
:autosize="{ minRows: 2, maxRows: 4 }"
|
|
|
- :placeholder="'请输入驳回原因'" clearable :disabled="disables.appStatus"/>
|
|
|
+ placeholder="请输入驳回原因" clearable :disabled="disables.appStatus"/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
@@ -95,7 +95,7 @@ const emit = defineEmits(['submit']);
|
|
|
|
|
|
const dialogFormRef = ref(null);
|
|
|
|
|
|
-const disables = reactive({});
|
|
|
+const disables = ref({});
|
|
|
|
|
|
|
|
|
const getImages = (key) => {
|
|
@@ -149,6 +149,7 @@ const submitForm = () => {
|
|
|
}
|
|
|
const cancel = () => {
|
|
|
open.value = false;
|
|
|
+ disables.value = {};
|
|
|
dialogFormRef.value.resetFields();
|
|
|
console.log('cancel');
|
|
|
}
|
|
@@ -158,7 +159,7 @@ const initForm = (data,disableData) => {
|
|
|
console.log('initForm',data);
|
|
|
form.value = data;
|
|
|
if(disableData){
|
|
|
- Object.assign(disables,disableData)
|
|
|
+ disables.value = disableData;
|
|
|
}
|
|
|
}
|
|
|
|