From fd8e32cc0e2e0dbabb9715c745e2c59e0bd388fd Mon Sep 17 00:00:00 2001 From: xielue Date: Mon, 23 Oct 2023 12:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MoldProductionOrder/ComponentDetail.vue | 42 +++++++++- src/pages/Middle/Mold/Touch/Reporting.vue | 77 +++++++++++-------- 2 files changed, 84 insertions(+), 35 deletions(-) diff --git a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue index 3a22192..b7c2962 100644 --- a/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue +++ b/src/pages/Middle/Mold/MoldProductionOrder/ComponentDetail.vue @@ -51,11 +51,16 @@ - + @@ -287,6 +292,8 @@ export default { dataUrl: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/list` }, + currentRow: null + }; @@ -669,6 +676,33 @@ export default { console.log(rows, name, params); }, + + beforeUpload(file) { + + var suffix = file.name.substring(file.name.lastIndexOf(".") + 1); + this.$mk.uploadFile(file, suffix, (url) => { + this.currentRow.component_img = url; + this.$forceUpdate(); + if (this.currentRow.id) { + this.$mk.post({ + url: `${BASE_URL.BASE_URL}/MoldProductionOrder/v1/mold/production/order/upload`, + data: { id: this.currentRow.id, image: url }, + useBigInt: true + }).then(a => { + console.log(a); + }); + } + }); + + return false + }, + + + + uploadClick({ row }) { + this.currentRow = row; + } + }, // 监听属性 watch: { diff --git a/src/pages/Middle/Mold/Touch/Reporting.vue b/src/pages/Middle/Mold/Touch/Reporting.vue index 495e559..b004b86 100644 --- a/src/pages/Middle/Mold/Touch/Reporting.vue +++ b/src/pages/Middle/Mold/Touch/Reporting.vue @@ -17,7 +17,7 @@
-
部门:{{ item.department_detail ? item.department_detail.name : '' }}
+
部门:{{ item.department_detail.name }}
部件:{{ item.component_detail ? item.component_detail.name : '' }}
工序:{{ item.process_detail ? item.process_detail.name : '' }}
@@ -53,22 +53,21 @@
-
+
-
+
-

【部门】{{ ditem.name }}

+

【部件】{{ ditem.component_detail ? ditem.component_detail.name : '' }}

- -
部件:{{ item.component_detail ? item.component_detail.name : '' }}
+
部门:{{ item.department_detail.name }}
工序:{{ item.process_detail ? item.process_detail.name : '' }}
-
状态:{{ item.is_complete ? "已完成" : (item.is_send ? "已发料" : "未发料") }}
+
状态:{{ item.is_complete ? "已完成" : (item.is_send ? "已发料" : "未发料") }}({{ item.progress }}%)
@@ -82,26 +81,26 @@ v-if="item.is_complete == 1">撤销报工
- {{ getDateValueString(item.complete_time) }} + {{ getDateValueString(item.complete_time) }}
-
- -
- - - - - -
+
+
+ + + + + +
+ +
@@ -113,11 +112,11 @@

部门进度汇总

- + - - + +