From d06d2f76b25a975b872e99361ca6db18f5980bc4 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Fri, 17 Nov 2023 11:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A1=AB=E5=86=99=E8=AE=B0=E5=BD=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/deviceOrder/index.vue | 126 ++++++++--------- .../device/spotInspectionOrder/index.vue | 128 ++++++++---------- src/views/device/upkeepOrder/index.vue | 125 ++++++++--------- 3 files changed, 172 insertions(+), 207 deletions(-) diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue index c487ca9..18e9be6 100644 --- a/src/views/device/deviceOrder/index.vue +++ b/src/views/device/deviceOrder/index.vue @@ -359,73 +359,54 @@ - - - - - {{ this.form.equipmentName }} - - - -
- - - - - {{ detail.itemName }} - - - -
-
- - - - - {{ standard.standardName }} - - - - - 未达标 - 达标 - - - -
-
- - - - - {{ standard.standardName }} - - - - - {{ standard.detailUpLimit }} - - - - - {{ standard.detailDownLimit }} - - - - - {{ standard.detailUnit }} - - - - - - - - -
-
- -
+ + + + + + + + + + + + + + + + + +
@@ -475,9 +456,11 @@ import { export default { name: "DeviceOrder", - dicts: ['device_order_status', 'device_loop_type'], + dicts: ['device_order_status', 'device_loop_type','device_reach_standard'], data() { return { + // 记录 + recordList: [], // 遮罩层 loading: true, // 选中数组 @@ -614,11 +597,18 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); + this.recordList = []; const orderCode = row.orderCode || this.ids getDeviceOrder(orderCode).then(response => { this.form = response.data; console.log("这里是回显信息") console.log(response.data) + for (let i = 0; i < this.form.detailList.length; i++) { + for (let j = 0; j < this.form.detailList[i].standardList.length; j++) { + this.form.detailList[i].standardList[j].itemName = this.form.detailList[i].itemName; + this.recordList.push(this.form.detailList[i].standardList[j]); + } + } this.open = true; this.title = "填写记录"; }); diff --git a/src/views/device/spotInspectionOrder/index.vue b/src/views/device/spotInspectionOrder/index.vue index 0018fbb..b18de08 100644 --- a/src/views/device/spotInspectionOrder/index.vue +++ b/src/views/device/spotInspectionOrder/index.vue @@ -363,76 +363,54 @@ - - - - - {{ this.form.equipmentName }} - - - -
- - - - - {{ detail.itemName }} - - - -
-
- - - - - {{ standard.standardName }} - - - - - 未达标 - 达标 - - - - - - -
-
- - - - - {{ standard.standardName }} - - - - - {{ standard.detailUpLimit }} - - - - - {{ standard.detailDownLimit }} - - - - - {{ standard.detailUnit }} - - - - - - - - -
-
- -
+ + + + + + + + + + + + + + + + + +
@@ -478,11 +456,13 @@ import {getWorkCenter} from "@/api/device/plan"; export default { name: "SpotInspectionOrder", - dicts: ['device_order_status', 'device_loop_type'], + dicts: ['device_order_status', 'device_loop_type','device_reach_standard'], data() { return { dialogImageUrl: '', dialogVisible: false, + // 记录 + recordList: [], disabled: false, // 上传图片弹出层 imgDialog: false, @@ -654,6 +634,12 @@ export default { if (response.data.timeArray[0] == null) { response.data.timeArray = []; } + for (let i = 0; i < this.form.detailList.length; i++) { + for (let j = 0; j < this.form.detailList[i].standardList.length; j++) { + this.form.detailList[i].standardList[j].itemName = this.form.detailList[i].itemName; + this.recordList.push(this.form.detailList[i].standardList[j]); + } + } this.open = true; this.title = "填写记录"; }); diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue index 4131878..fd925a5 100644 --- a/src/views/device/upkeepOrder/index.vue +++ b/src/views/device/upkeepOrder/index.vue @@ -745,73 +745,54 @@ - - - - - {{ this.form.equipmentName }} - - - -
- - - - - {{ detail.itemName }} - - - -
-
- - - - - {{ standard.standardName }} - - - - - 未达标 - 达标 - - - -
-
- - - - - {{ standard.standardName }} - - - - - {{ standard.detailUpLimit }} - - - - - {{ standard.detailDownLimit }} - - - - - {{ standard.detailUnit }} - - - - - - - - -
-
- -
+ + + + + + + + + + + + + + + + + +