|
|
@@ -57,6 +57,7 @@
|
|
|
placeholder="请选择退回类型"
|
|
|
style="width: 100%"
|
|
|
:disabled="formData.workOrderStatus === 'return'"
|
|
|
+ @change="handleReturnTypeChange"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in returnTypeOptions"
|
|
|
@@ -73,6 +74,7 @@
|
|
|
v-model="formData.acceptReturnType"
|
|
|
placeholder="请选择退回类型"
|
|
|
style="width: 100%"
|
|
|
+ @change="handleReturnTypeChange"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in returnTypeOptions"
|
|
|
@@ -252,6 +254,16 @@ const handleSubmit = async () => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+// 退回原因变化处理
|
|
|
+const handleReturnTypeChange = (val) => {
|
|
|
+ // 选中2工作票编号时修改其他值
|
|
|
+ if (val != '0') {
|
|
|
+ formData.value.returnReason = undefined
|
|
|
+ formData.value.acceptReturnReason = undefined
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|