diff --git a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/form.vue b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/form.vue
index 402c4fd..709afb6 100644
--- a/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/form.vue
+++ b/jnpf-java-boot/jnpf-web/src/views/yys/yysdaywork/form.vue
@@ -42,7 +42,7 @@
+ placeholder="选择设备编码后自动带入" disabled clearable :style='{ "width": "100%" }'>
@@ -119,7 +119,7 @@
@@ -188,7 +188,7 @@ export default {
models: undefined,
measurementUnit: undefined,
planNumber: undefined,
- productionStatus: undefined,
+ productionStatus: '1',
version: 0,
},
tableRequiredData: {},
@@ -264,13 +264,6 @@ export default {
trigger: ["blur", "change"]
},
],
- productionStatus: [
- {
- required: true,
- message: '请选择生产状态',
- trigger: 'change'
- },
- ],
},
deviceCodecolumnOptions: [{ "label": "设备编码", "value": "device_code" }, { "label": "设备名称", "value": "device_name" }, { "label": "设备类型", "value": "device_desc" },],
postOptions: [{ "fullName": "旺季白班", "id": "1" }, { "fullName": "旺季晚班", "id": "2" }, { "fullName": "淡季白班", "id": "3" }, { "fullName": "淡季晚班", "id": "4" }],
@@ -351,7 +344,9 @@ export default {
url: '/api/example/YysDevice/queryNameByCode/' + this.dataForm.deviceCode,
method: 'get'
}).then(res => {
- this.dataForm.deviceName = res.msg;
+ let _dataForm = {...this.dataForm}
+ _dataForm.deviceName = res.msg
+ this.dataForm = {..._dataForm};
});
}
this.isEdit = false