|
|
@@ -18,7 +18,7 @@
|
|
|
<el-input v-model="formData.faultBarcode" type="textarea" :rows="3" disabled />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
<el-form-item label="挂起原因" prop="suspendReason">
|
|
|
<el-select v-model="formData.suspendReason" placeholder="请选择挂起原因" style="width: 100%">
|
|
|
<el-option
|
|
|
@@ -30,15 +30,15 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="挂起其他说明" prop="suspendExplain">
|
|
|
+ <el-col :span="24" v-if="formData.suspendReason == '4'">
|
|
|
+ <el-form-item label="说明" prop="suspendExplain">
|
|
|
<el-input
|
|
|
- v-model="formData.suspendExplain"
|
|
|
- type="textarea"
|
|
|
- :rows="3"
|
|
|
- placeholder="请输入挂起其他说明(选填)"
|
|
|
- maxlength="1000"
|
|
|
- show-word-limit
|
|
|
+ v-model="formData.suspendExplain"
|
|
|
+ type="textarea"
|
|
|
+ :rows="3"
|
|
|
+ placeholder="请输入说明"
|
|
|
+ maxlength="500"
|
|
|
+ show-word-limit
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -92,6 +92,9 @@ const submitLoading = ref(false)
|
|
|
const suspendRules = ref({
|
|
|
suspendReason: [
|
|
|
{ required: true, message: "请选择挂起原因", trigger: "change" }
|
|
|
+ ],
|
|
|
+ suspendExplain: [
|
|
|
+ { required: true, message: "说明不能为空", trigger: "change" }
|
|
|
]
|
|
|
})
|
|
|
|