From f043a6a0a2232adf0d643bc37ac19010b8177f6b Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Thu, 18 Jul 2024 11:17:04 +0800 Subject: [PATCH] 7.18 --- .../monitoring/deviceParameters/index.vue | 1229 +++++++++-------- .../equipmentTraceability/index.vue | 87 +- .../monitoring/materielDateFrom/index.vue | 470 ++++--- .../monitoring/processTraceability/index.vue | 529 +++---- .../rawMaterialTraceability/index.vue | 446 +++--- .../qualityInspectionRecord/dialogForm.vue | 249 ++-- .../quality/qualityInspectionRecord/index.vue | 189 +-- .../quality/qualityScrapLog/add-or-updata.vue | 136 +- .../qualityScrapLog/detail-or-updata.vue | 284 ---- src/views/quality/qualityScrapLog/index.vue | 31 +- 10 files changed, 1727 insertions(+), 1923 deletions(-) delete mode 100644 src/views/quality/qualityScrapLog/detail-or-updata.vue diff --git a/src/views/quality/monitoring/deviceParameters/index.vue b/src/views/quality/monitoring/deviceParameters/index.vue index 1146b523..e728b035 100644 --- a/src/views/quality/monitoring/deviceParameters/index.vue +++ b/src/views/quality/monitoring/deviceParameters/index.vue @@ -6,663 +6,701 @@ --> - - + - - {{ currentFactory?.label || '点我选择设备' }} - - - - - {{ fc.label }} - - - - - - - 无 - - - - - - - - + + + - - - - - - - + + + + + + + - - - - - - handleEmitFun(table, val)"> - - getListFor(table, { page, limit, current }) - " /> - - - - - - + + + + + + handleEmitFun(table, val)"> + + getListFor(table, { page, limit, current }) + " /> + + + + + - - - - + + + + diff --git a/src/views/quality/monitoring/equipmentTraceability/index.vue b/src/views/quality/monitoring/equipmentTraceability/index.vue index c88a7f60..77e101eb 100644 --- a/src/views/quality/monitoring/equipmentTraceability/index.vue +++ b/src/views/quality/monitoring/equipmentTraceability/index.vue @@ -186,16 +186,16 @@ export default { }, ], }, - { - prop: 'oee', - label: 'OEE', - filter: (val) => (val != null ? +val.toFixed(3) : '-'), - }, - { - prop: 'teep', - label: 'TEEP', - filter: (val) => (val != null ? +val.toFixed(3) : '-'), - }, + // { + // prop: 'oee', + // label: 'OEE', + // filter: (val) => (val != null ? +val.toFixed(3) : '-'), + // }, + // { + // prop: 'teep', + // label: 'TEEP', + // filter: (val) => (val != null ? +val.toFixed(3) : '-'), + // }, // { // _action: 'view-trend', // label: '趋势', @@ -230,8 +230,9 @@ export default { type: 'select', label: '工单', placeholder: '请选择工单', - param: 'workOrderId', + param: 'workOrderId', selectOptions: [], + filterable: true, }, // { // type: 'select', @@ -252,20 +253,20 @@ export default { // ], // index: 2, // extraOptions: [ - { - // parent: 'dateFilterType', - // 时间段选择 - type: 'datePicker', - // label: '时间段', - dateType: 'daterange', - format: 'yyyy-MM-dd', - valueFormat: 'yyyy-MM-dd HH:mm:ss', - defaultTime: ['00:00:00', '00:00:00'], - rangeSeparator: '-', - startPlaceholder: '开始时间', - endPlaceholder: '结束时间', - param: 'timerange', - }, + { + // parent: 'dateFilterType', + // 时间段选择 + type: 'datePicker', + label: '时间段', + dateType: 'daterange', + format: 'yyyy-MM-dd', + valueFormat: 'yyyy-MM-dd HH:mm:ss', + defaultTime: ['00:00:00', '00:00:00'], + rangeSeparator: '-', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间', + param: 'timerange', + }, // { // parent: 'dateFilterType', // // 日期选择 @@ -285,16 +286,16 @@ export default { name: 'search', color: 'primary', }, - // { - // type: 'separate', - // }, - // { - // type: 'button', - // btnName: '设备可视化', - // name: 'visualization', - // plain: true, - // color: 'success', - // }, + { + type: 'separate', + }, + { + type: 'button', + btnName: '导出', + name: 'export', + plain: true, + color: 'success', + }, // { // type: 'button', // btnName: 'OEE', @@ -315,7 +316,7 @@ export default { // 查询参数 queryParams: { // lineId: null, - workOrderId: null, + workOrderId: null, recordTime: [], }, // 表单参数 @@ -324,20 +325,20 @@ export default { }; }, created() { - this.getWorkOrder() + this.getWorkOrder(); // this.getLine(); this.getList(); }, methods: { /** 准备工厂数据 */ - async getWorkOrder() { - console.log(1111); + async getWorkOrder() { + console.log(1111); const { code, data } = await this.$axios({ - url: '/base/core-work-order/listbyfilter', + url: '/base/core-work-order/listbyfilter', method: 'get', }); - if (code == 0) { - console.log('1111', data); + if (code == 0) { + console.log('1111', data); this.searchBarFormConfig[0].selectOptions = data.map((item) => { return { name: item.name, @@ -394,7 +395,7 @@ export default { this.open = true; } if (btnName == 'search') { - this.queryParams.workOrderId = payload.workOrderId || null; + this.queryParams.workOrderId = payload.workOrderId || null; // this.queryParams.lineId = payload.lineId || null; if (0 == payload.dateFilterType) { this.queryParams.recordTime = payload.timerange; diff --git a/src/views/quality/monitoring/materielDateFrom/index.vue b/src/views/quality/monitoring/materielDateFrom/index.vue index 07efb7d2..e7bd7a88 100644 --- a/src/views/quality/monitoring/materielDateFrom/index.vue +++ b/src/views/quality/monitoring/materielDateFrom/index.vue @@ -6,16 +6,26 @@ * @Description: --> - - - - - - - - + + + + diff --git a/src/views/quality/monitoring/processTraceability/index.vue b/src/views/quality/monitoring/processTraceability/index.vue index 413e6889..53406cd7 100644 --- a/src/views/quality/monitoring/processTraceability/index.vue +++ b/src/views/quality/monitoring/processTraceability/index.vue @@ -6,16 +6,31 @@ * @Description: --> - - - - - - - - + + + + + + + + diff --git a/src/views/quality/monitoring/rawMaterialTraceability/index.vue b/src/views/quality/monitoring/rawMaterialTraceability/index.vue index af0ab14e..dadc1c02 100644 --- a/src/views/quality/monitoring/rawMaterialTraceability/index.vue +++ b/src/views/quality/monitoring/rawMaterialTraceability/index.vue @@ -6,16 +6,26 @@ * @Description: --> - - - - - - - - + + + + diff --git a/src/views/quality/qualityInspectionRecord/dialogForm.vue b/src/views/quality/qualityInspectionRecord/dialogForm.vue index 9199e2fc..93836e3b 100644 --- a/src/views/quality/qualityInspectionRecord/dialogForm.vue +++ b/src/views/quality/qualityInspectionRecord/dialogForm.vue @@ -6,81 +6,150 @@ --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/quality/qualityScrapLog/detail-or-updata.vue b/src/views/quality/qualityScrapLog/detail-or-updata.vue deleted file mode 100644 index 2d78de45..00000000 --- a/src/views/quality/qualityScrapLog/detail-or-updata.vue +++ /dev/null @@ -1,284 +0,0 @@ - - - - - {{ '详情' }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/quality/qualityScrapLog/index.vue b/src/views/quality/qualityScrapLog/index.vue index 95af4cfa..8cd6c82b 100644 --- a/src/views/quality/qualityScrapLog/index.vue +++ b/src/views/quality/qualityScrapLog/index.vue @@ -26,24 +26,32 @@ + + + + {{ this.addOrEditTitle === '详情' ? '关闭' : '取消' }} + + + 确定 + + + -