From 79c9f1ca661578a5a16fee8bd4121137fa6f9231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 28 Nov 2023 10:54:51 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/quality/processTraceability.js | 10 +- src/views/base/mixins/basic-page.js | 7 +- src/views/base/packagingPrintLog/index.vue | 25 +++- .../equipment/base/alarm/Record/index.vue | 8 +- .../processEquMaterialBom/add-or-updata.vue | 4 +- .../processEquValueBom/add-or-updata.vue | 6 +- .../extend/processEquValueBom/attr-add.vue | 4 +- .../extend/processTraceability/index.vue | 46 ++++--- .../components/ProcessBomList.vue | 38 +++--- .../components/ProcessDetail.vue | 10 +- .../components/ProcessInfo.vue | 21 +-- .../base/qualityInspectionDet/index.vue | 120 +++++++----------- .../base/qualityInspectionType/index.vue | 114 +++++++---------- .../base/qualityScrapType/add-or-updata.vue | 8 +- .../quality/monitoring/currentData/index.vue | 6 +- .../monitoring/materielDateFrom/index.vue | 5 +- .../monitoring/processTraceability/index.vue | 83 ++++++------ .../components/ProcessBomList.vue | 38 +++--- .../components/ProcessDetail.vue | 10 +- .../components/ProcessInfo.vue | 21 +-- .../processTraceabilityDetail/index.vue | 11 +- .../monitoring/statisticalData/index.vue | 7 +- 22 files changed, 315 insertions(+), 287 deletions(-) diff --git a/src/api/quality/processTraceability.js b/src/api/quality/processTraceability.js index d2152584..5faac726 100644 --- a/src/api/quality/processTraceability.js +++ b/src/api/quality/processTraceability.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-10-31 15:05:06 - * @LastEditTime: 2023-11-03 09:05:50 + * @LastEditTime: 2023-11-28 09:28:05 * @LastEditors: zhp * @Description: */ @@ -24,6 +24,14 @@ export function getWorkOrderList(query) { params: query, }) } + +export function getCoreProduct(id) { + return request({ + url: '/base/core-product/get?id=' + id, + method: 'get' + }) +} + // 导出物料信息 // export function exportEnergyPlcExcel(query) { // return request({ diff --git a/src/views/base/mixins/basic-page.js b/src/views/base/mixins/basic-page.js index b3b14aaa..06c2b851 100644 --- a/src/views/base/mixins/basic-page.js +++ b/src/views/base/mixins/basic-page.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zhp - * @LastEditTime: 2023-11-01 10:30:12 + * @LastEditTime: 2023-11-24 09:29:36 * @Description: */ export default { @@ -85,6 +85,7 @@ export default { }, //tableBtn点击 handleClick(val) { + console.log(val.data.packagingCode); if (val.type === "edit") { this.addOrUpdateVisible = true; this.addOrEditTitle = "编辑"; @@ -92,7 +93,7 @@ export default { this.$refs.addOrUpdate.init(val.data.id); }); } else if (val.type === "delete") { - this.deleteHandle(val.data.id, val.data.name, val.data._pageIndex) + this.deleteHandle(val.data.id, val.data.name, val.data._pageIndex,val.data.packagingCode ) } else if (val.type === "change") { this.changeStatus(val.data.id) } else { @@ -101,7 +102,7 @@ export default { }, // 删除 deleteHandle(id, name, index) { - this.$confirm(`是否确认删除${name ? '[' + name + ']' : '[' + index + ']'}数据项?`, "提示", { + this.$confirm(`是否确认删除${name ? ' 名称为'+ name : '[' + index + ']'}数据项?`, "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", diff --git a/src/views/base/packagingPrintLog/index.vue b/src/views/base/packagingPrintLog/index.vue index 06918805..3e4ec4ea 100644 --- a/src/views/base/packagingPrintLog/index.vue +++ b/src/views/base/packagingPrintLog/index.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-01 14:55:51 * @LastEditors: zhp - * @LastEditTime: 2023-11-22 14:40:59 + * @LastEditTime: 2023-11-24 09:13:50 * @Description: --> From a5c17d2276d72cb9856a6412d5aecb43a1731ada Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 28 Nov 2023 16:14:24 +0800 Subject: [PATCH 3/5] fix conflicts --- .../core/analysis/balanceAnalysis/index.vue | 78 ++++++++++--------- .../equipment/base/alarm/Record/index.vue | 19 +---- 2 files changed, 43 insertions(+), 54 deletions(-) diff --git a/src/views/core/analysis/balanceAnalysis/index.vue b/src/views/core/analysis/balanceAnalysis/index.vue index 5579da4a..8ce3b630 100644 --- a/src/views/core/analysis/balanceAnalysis/index.vue +++ b/src/views/core/analysis/balanceAnalysis/index.vue @@ -162,50 +162,54 @@ export default { buildProps(nameData) { return new Promise((resolve, reject) => { - const dateArr = Array.from( - new Set( - nameData - .map((item) => (item.tree == 1 ? item.name : undefined)) - .filter((v) => v) - ) - ); - // 排个序 - dateArr.sort().forEach((date) => { - this.tableProps.push({ - label: date, - align: 'center', - children: [ - { - prop: date + '_eq_ct', - label: '设备CT', - align: 'center', - }, - { - prop: date + '_eq_tt', - label: '设备TT', - align: 'center', - }, - { - prop: date + '_pl_ct', - label: '产线CT', - align: 'center', - }, - { - prop: date + '_pl_tt', - label: '产线TT', - align: 'center', - }, - ], + try { + const dateArr = Array.from( + new Set( + nameData + .map((item) => (item.tree == 1 ? item.name : undefined)) + .filter((v) => v) + ) + ); + // 排个序 + dateArr.sort().forEach((date) => { + this.tableProps.push({ + label: date, + align: 'center', + children: [ + { + prop: date + '_eq_ct', + label: '设备CT', + align: 'center', + }, + { + prop: date + '_eq_tt', + label: '设备TT', + align: 'center', + }, + { + prop: date + '_pl_ct', + label: '产线CT', + align: 'center', + }, + { + prop: date + '_pl_tt', + label: '产线TT', + align: 'center', + }, + ], + }); }); - }); - resolve(); + resolve(); + } catch (err) { + reject(err); + } }); }, async buildTableData(data) { /** 处理 工段 分组 */ - const sectionList = data.map(item => {}) + const sectionList = data.map((item) => {}); }, setRowSpan(arr) { diff --git a/src/views/equipment/base/alarm/Record/index.vue b/src/views/equipment/base/alarm/Record/index.vue index c4f93007..91a9f310 100644 --- a/src/views/equipment/base/alarm/Record/index.vue +++ b/src/views/equipment/base/alarm/Record/index.vue @@ -59,14 +59,9 @@ - - diff --git a/src/views/equipment/base/inspection/Record/index.vue b/src/views/equipment/base/inspection/Record/index.vue index 77b995ad..5dcee26b 100644 --- a/src/views/equipment/base/inspection/Record/index.vue +++ b/src/views/equipment/base/inspection/Record/index.vue @@ -93,7 +93,7 @@ export default { tableProps: [ { prop: 'configName', label: '配置名称' }, { prop: 'equipmentName', label: '设备名称' }, - // { prop: 'lineName', label: '数据来源' }, + { prop: 'origin', label: '数据来源', filter: (val) => ['', '手动', '自动'][val] }, // { prop: 'sectionName', label: '计划巡检时间' }, { prop: 'actualTime', label: '实际巡检时间', filter: parseTime }, // { prop: 'maintenanceDetail', label: '完成状态' },