From 94886eedde24671886d9d591abb11c54e3b174d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Mon, 18 Mar 2024 16:00:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/api/quality/deviceParameters.js | 11 +- src/utils/dict.js | 6 +- src/views/login.vue | 10 +- .../qualityInspectionBoxBtn/index.vue | 5 +- .../BomSelector.vue | 4 +- .../ProcessBomList.vue | 4 +- .../base/qualityHotMaterial/add-or-updata.vue | 8 +- .../base/qualityInspectionDet/index.vue | 2 +- .../quality/base/qualityScrapDet/index.vue | 2 +- .../base/qualityScrapLog/add-or-updata.vue | 21 +- .../quality/base/qualityScrapLog/basic-add.js | 20 +- .../base/qualityScrapLog/detail-or-updata.vue | 18 +- .../quality/base/qualityScrapType/index.vue | 2 +- .../equipmentTraceability/index.vue | 36 ++- .../monitoring/processTraceability/index.vue | 4 +- .../qualityInspectionRecord/index.vue | 4 +- .../monitoring/statisticalData/index.vue | 2 +- src/views/report/glass/day.vue | 148 ++++++++---- src/views/report/glass/inputTable.vue | 55 ++++- src/views/report/glass/month.vue | 107 ++++++--- src/views/report/glass/weekly.vue | 107 ++++++--- src/views/report/glass/year.vue | 109 ++++++--- .../report/productionDayReport/index.vue | 138 +++++++++--- .../report/productionMonthReport/index.vue | 211 +++++++++++++----- .../productionShipmentsReport/index.vue | 53 ++++- .../report/productionWeekReport/index.vue | 153 ++++++++++--- .../report/productionYearReport/index.vue | 134 ++++++++--- 28 files changed, 1006 insertions(+), 369 deletions(-) diff --git a/package.json b/package.json index c5dc2ba0..17a49703 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "code-brick-zj": "^1.0.5", "core-js": "^3.26.0", "crypto-js": "^4.0.0", + "decimal.js": "^10.4.3", "diagram-js": "^12.3.0", "echarts": "5.4.0", "element-ui": "2.15.12", diff --git a/src/api/quality/deviceParameters.js b/src/api/quality/deviceParameters.js index ae1c87fb..848e20b5 100644 --- a/src/api/quality/deviceParameters.js +++ b/src/api/quality/deviceParameters.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2023-10-18 09:33:57 - * @LastEditTime: 2023-11-03 09:31:17 + * @LastEditTime: 2024-03-15 15:18:09 * @LastEditors: zhp * @Description: */ @@ -33,3 +33,12 @@ export function exportEnergyPlcExcel(query) { responseType: 'blob' }) } + +export function exportEquipmentTraceabilityExcel(query) { + return request({ + url: '/analysis/equipment-analysis/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/utils/dict.js b/src/utils/dict.js index 8f707c71..ddd97161 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -104,7 +104,7 @@ export const DICT_TYPE = { ORDER_PRIORITY: 'order_priority', PACK_SPEC: 'pack_spec', WORK_ORDER_STATUS: 'work_order_status', - + // ============== EQUIPMENT - 设备模块 ============= MAINTAIN_TYPE: 'maintain_type', FAULT_LEVEL: 'fault-level', @@ -116,7 +116,9 @@ export const DICT_TYPE = { ENVIRONMENT_CHECK_UNIT: 'environment_check_unit', // ============== GROUP - 班组模块 ============= - WORK_SHOP: 'workshop' + WORK_SHOP: 'workshop', + // ============== GROUP - 质量模块 ============= + MATERIAL_GRADE: 'material_grade' } /** diff --git a/src/views/login.vue b/src/views/login.vue index 16fc39db..a184edf1 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -210,8 +210,8 @@ export default { mobileCodeTimer: 0, loginForm: { loginType: 'uname', - username: 'admin', - password: 'admin123', + username: '', + password: '', captchaVerification: '', mobile: '', mobileCode: '', @@ -297,9 +297,9 @@ export default { this.handleLogin({}); }, getCookie() { - const username = getUsername(); - const password = getPassword(); - const rememberMe = getRememberMe(); + // const username = getUsername(); + // const password = getPassword(); + // const rememberMe = getRememberMe(); const tenantName = getTenantName(); this.loginForm = { ...this.loginForm, diff --git a/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue b/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue index ba9fe78d..c17356cc 100644 --- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue +++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue @@ -107,7 +107,8 @@ export default { }, { prop: 'inspectionInfoList', - label: '检测内容', + label: '检测内容', + showOverflowtooltip: true, } ], // 查询参数 @@ -171,7 +172,7 @@ export default { type: "warning", }) .then(() => { - this.urlOptions.deleteURL(id).then(({ data }) => { + this.urlOptions.deleteURL(data.id).then(({ data }) => { this.$message({ message: "操作成功", type: "success", diff --git a/src/views/quality/base/basicData/qualityInspectionBoxPermissions/BomSelector.vue b/src/views/quality/base/basicData/qualityInspectionBoxPermissions/BomSelector.vue index e3ff7445..0db92afd 100644 --- a/src/views/quality/base/basicData/qualityInspectionBoxPermissions/BomSelector.vue +++ b/src/views/quality/base/basicData/qualityInspectionBoxPermissions/BomSelector.vue @@ -1,7 +1,7 @@ @@ -31,7 +31,7 @@
- 选择工序 + 选择工段
@@ -64,7 +64,7 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> --> - diff --git a/src/views/quality/base/qualityHotMaterial/add-or-updata.vue b/src/views/quality/base/qualityHotMaterial/add-or-updata.vue index 3ef47db4..409713a8 100644 --- a/src/views/quality/base/qualityHotMaterial/add-or-updata.vue +++ b/src/views/quality/base/qualityHotMaterial/add-or-updata.vue @@ -1,7 +1,7 @@ @@ -246,7 +246,9 @@ export default { dataRule: { // code: [{ required: true, message: "设备物料编码不能为空", trigger: "blur" }], name: [{ required: true, message: "设备物料名称不能为空", trigger: "blur" }], - equipmentId: [{ required: true, message: "设备名称不能为空", trigger: "change" }], + equipmentId: [{ required: true, message: "设备名称不能为空", trigger: "change" }], + checkResult: [{ required: true, message: "判定结果不能为空", trigger: "change" }], + // : [{ required: true, message: "产品类型不能为空", trigger: "change" }], // processTime: [{ required: true, message: "产线生产单位用时不能为空", trigger: "blur" }] } @@ -405,7 +407,7 @@ export default { getSupplierList().then(res => { this.supplierList = res.data }) - const res = await getDictDatas(this.DICT_TYPE.EQU_ALARM_LEVEL) + const res = await getDictDatas(this.DICT_TYPE.MATERIAL_GRADE) console.log('111', res) this.gradeList = res }, diff --git a/src/views/quality/base/qualityInspectionDet/index.vue b/src/views/quality/base/qualityInspectionDet/index.vue index 881414c3..fc302587 100644 --- a/src/views/quality/base/qualityInspectionDet/index.vue +++ b/src/views/quality/base/qualityInspectionDet/index.vue @@ -145,7 +145,7 @@ export default { width: 180, filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'), }, - { prop: 'typeName', label: '类型名称', }, + { prop: 'typeName', label: '检测类型', }, { prop: 'content', label: '检测内容', }, { prop: 'code', label: '检测编码', }, { prop: 'remark', label: '备注', }, diff --git a/src/views/quality/base/qualityScrapDet/index.vue b/src/views/quality/base/qualityScrapDet/index.vue index d8eb27d6..0444b0b2 100644 --- a/src/views/quality/base/qualityScrapDet/index.vue +++ b/src/views/quality/base/qualityScrapDet/index.vue @@ -29,7 +29,7 @@ @cancel="handleCancel" @confirm="handleConfirm" :before-close="handleCancel" - width="30%"> + width="40%"> diff --git a/src/views/quality/base/qualityScrapLog/add-or-updata.vue b/src/views/quality/base/qualityScrapLog/add-or-updata.vue index 39ce77f7..1302121a 100644 --- a/src/views/quality/base/qualityScrapLog/add-or-updata.vue +++ b/src/views/quality/base/qualityScrapLog/add-or-updata.vue @@ -1,13 +1,13 @@