From 20ab1e4923037cda891111e25794096201af824c Mon Sep 17 00:00:00 2001
From: jiyufei <67400194@qq.com>
Date: Mon, 19 Aug 2024 15:27:33 +0800
Subject: [PATCH] =?UTF-8?q?feat():=E5=8D=95=E4=BD=8D=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../jnpf-web/src/views/yys/yysdaywork/form.vue | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
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