From abbdf130577513b5ea4c03ad1bc3026d35ff85d0 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Tue, 13 Aug 2024 12:13:03 +0800 Subject: [PATCH 01/19] =?UTF-8?q?2024-08-13=20=E8=AE=BE=E5=A4=87-=E6=8A=A5?= =?UTF-8?q?=E4=BF=AE=E7=BB=B4=E4=BF=AE=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/repairOrder.js | 4 +- src/views/device/faultReport/index.vue | 174 ++++++++++++++++++------- src/views/device/repairOrder/index.vue | 85 +++++++++--- 3 files changed, 192 insertions(+), 71 deletions(-) diff --git a/src/api/device/repairOrder.js b/src/api/device/repairOrder.js index 71f2c80..fdabd15 100644 --- a/src/api/device/repairOrder.js +++ b/src/api/device/repairOrder.js @@ -80,9 +80,9 @@ export function queryEquFaultTypeTree(query) { } // 维修工单检验 -export function subInspect(data) { +export function checkRepairWorkOrder(data) { return request({ - url: '/device/repairOrder/subInspect', + url: '/device/repairOrder/checkRepairWorkOrder', method: 'post', data: data }); diff --git a/src/views/device/faultReport/index.vue b/src/views/device/faultReport/index.vue index 2479eeb..3daf01b 100644 --- a/src/views/device/faultReport/index.vue +++ b/src/views/device/faultReport/index.vue @@ -6,7 +6,7 @@ size="small" :inline="true" v-show="showSearch" - label-width="88px" + label-width="100px" > + + + + + + + + + + + + + + + - - + - - + @keyup.enter.native="handleQuery" + /> - + + - + + + @@ -214,7 +262,8 @@ label="设备编码" align="center" prop="equipmentCode" - width="100" + :show-overflow-tooltip="true" + width="120" /> - + - 计划性维修 + 计划性维修 + 立即维修 不维修 委外维修 - 立即维修 + @@ -486,12 +534,13 @@ + - + @@ -569,17 +618,11 @@ - + - + - + + @@ -634,8 +672,6 @@ /> - - + + + + + + + + @@ -1174,7 +1224,7 @@ import { listFaultDescription } from "@/api/device/faultDescription"; export default { name: "FaultReport", components: { ItemSelect, ItemSelectPerson }, - dicts: ["device_order_source", "device_reach_standard"], + dicts: ["device_order_source", "device_reach_standard", "device_audit_status", "device_repair_destination", "device_audit_status"], data() { return { CS: { @@ -1337,6 +1387,16 @@ export default { orderRepairmanCode: [ { required: true, message: "报修人工号不能为空", trigger: "blur" }, ], + //审核中 需要限制的字段 计划停机时间???? + workPlanTime: [ + { required: true, message: "计划维修时间", trigger: "blur" }, + ], + // workPlanDownTime: [ + // { required: true, message: "计划停机时间", trigger: "blur" }, + // ], + workDownMachine: [ + { required: true, message: "是否停机维修", trigger: "blur" }, + ], }, }; }, @@ -1349,6 +1409,14 @@ export default { indexMethod(index) { return index + 1; }, + + //监控radio + monitorRadio(){ + if(this.form.workDownMachine == '0'){ + this.form.workPlanDownTime = null; + } + }, + timeBackFilling() { var getTime = new Date().getTime(); //获取到当前时间戳 var time = new Date(getTime); //创建一个日期对象 @@ -1373,8 +1441,18 @@ export default { second ); } - this.form.workPlanTime = nowDate(time); + this.form.workPlanTime = nowDate(time); //当选择为立即维修时候,都是默认值 + this.form.workPlanDownTime = nowDate(time); + this.form.workDownMachine = '1'; }, + + //计划维修 时间回填重置 + timeBackFillingReset() { + this.form.workPlanTime = null; //当选择为立即维修时候,都是默认值 + this.form.workPlanDownTime = null; + this.form.workDownMachine = null; + }, + /** 查询维修措施列表 */ getOrderDesc() { this.loading = true; @@ -1655,8 +1733,8 @@ export default { } if ( - response.data.orderStatus == "审核通过" || - response.data.orderStatus == "驳回" + response.data.orderStatus == "1" || + response.data.orderStatus == "2" ) { Message.warning("该报修记录已审核!"); this.form = response.data; diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index 3182bce..3c21300 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -17,6 +17,20 @@ @keyup.enter.native="handleQuery" /> + + + + + - + 结果检验 + >维修结果审核 @@ -289,13 +303,15 @@ - + {{ parseTime(scope.row.workPlanDownTime) }} - - + + Date: Tue, 13 Aug 2024 16:10:06 +0800 Subject: [PATCH 04/19] zxl --- src/views/kanban/quality/kanban1.vue | 2 +- src/views/kanban/quality/kanban3.vue | 62 ++++++++++--------- src/views/mes/dailyReportNew/index.vue | 33 ++++++---- src/views/mes/prepare/index.vue | 6 +- src/views/mes/reportWork/index.vue | 41 +++++++----- src/views/quality/qcProjectType/index.vue | 4 +- .../quality/qcProjectType/projectTypeTree.vue | 2 +- 7 files changed, 86 insertions(+), 64 deletions(-) diff --git a/src/views/kanban/quality/kanban1.vue b/src/views/kanban/quality/kanban1.vue index 53f9ee2..5173f5c 100644 --- a/src/views/kanban/quality/kanban1.vue +++ b/src/views/kanban/quality/kanban1.vue @@ -299,7 +299,7 @@ export default { const _this = this; getProduceStaticInfo({ ymdType: moment().format(_this.selectxtclasses), - typeCode: 'material', + typeCode: 'produce', factoryCode: 'ds_' + _this.selectxt, }).then((response) => { if (response) { diff --git a/src/views/kanban/quality/kanban3.vue b/src/views/kanban/quality/kanban3.vue index 1c89947..9417b16 100644 --- a/src/views/kanban/quality/kanban3.vue +++ b/src/views/kanban/quality/kanban3.vue @@ -38,14 +38,15 @@ - - - - + + + + - - - + + + +
序号检验编号检验阶段检验时间序号检验编号检验阶段任务时间 物料来源物料名称检验人检验状态物料名称检验人检验时间检验状态
@@ -55,14 +56,15 @@ - {{ index + 1 }} - {{ n.checkNo }} - {{ n.checkName }} + {{ index + 1 }} + {{ n.checkNo }} + {{ n.checkName }} {{ n.incomeTime }} {{ n.supplierName }} - {{ n.materialName }} - {{ n.checkManName }} - {{ + {{ n.materialName }} + {{ n.checkManName }} + {{ n.checkTime }} + {{ n.checkStatus }} @@ -77,14 +79,15 @@ - - - - + + + + - - - + + + +
序号检验编号检验阶段检验时间序号检验编号检验阶段任务时间 物料来源物料名称检验人检验状态物料名称检验人检验时间检验状态
@@ -94,14 +97,15 @@ - {{ index + 1 }} - {{ n.checkNo }} - {{ n.checkName }} + {{ index + 1 }} + {{ n.checkNo }} + {{ n.checkName }} {{ n.incomeTime }} {{ n.supplierName }} - {{ n.materialName }} - {{ n.checkManName }} - {{ + {{ n.materialName }} + {{ n.checkManName }} + {{ n.checkTime }} + {{ n.checkStatus }} @@ -218,7 +222,7 @@ export default { if (response) { console.log(response) this.dictDatatype = response - _this.selectxtclasses = _this.dictDatatype[0].ymdType; + _this.selectxtclasses = this.dictDatatype[2].ymdType; _this.getSupplierTaskList(_this.selectxt) _this.getDeviceRefreshTime() } @@ -240,7 +244,7 @@ export default { const _this = this; this.Inspectiondetails = [] getSupplierTaskList({ - ymdType: moment().format(_this.selectxtclasses), + ymdType: _this.selectxtclasses,//moment().format(_this.selectxtclasses), typeCode: 'material', factoryCode: 'ds_' + _this.selectxt, }).then((response) => { @@ -252,7 +256,7 @@ export default { } }); getSupplierTaskList({ - ymdType: moment().format(_this.selectxtclasses), + ymdType: _this.selectxtclasses,//moment().format(_this.selectxtclasses), typeCode: 'produce', factoryCode: 'ds_' + _this.selectxt, }).then((response) => { diff --git a/src/views/mes/dailyReportNew/index.vue b/src/views/mes/dailyReportNew/index.vue index 8c350f0..ab3559d 100644 --- a/src/views/mes/dailyReportNew/index.vue +++ b/src/views/mes/dailyReportNew/index.vue @@ -22,19 +22,26 @@ @keyup.enter.native="handleQuery" />
- - - - - - - + + + + + + + + + 搜索 diff --git a/src/views/mes/prepare/index.vue b/src/views/mes/prepare/index.vue index 50611e8..3efd4b1 100644 --- a/src/views/mes/prepare/index.vue +++ b/src/views/mes/prepare/index.vue @@ -254,10 +254,10 @@ - + - - + +
diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index e6590f3..8753497 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -349,12 +349,9 @@ @select-all="allReportSelection" :summary-method="getSummaries" show-summary> - + - - + - + + @@ -421,25 +421,25 @@ +
实际报工母订单数量:{{actProduct}}
- + - - - - - + + @@ -461,8 +461,10 @@ - - + + + + + + - - - diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index dc9b40f..1f13e43 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -305,7 +305,12 @@ - + + + + - + - + - + - + - + width="150" + /> - 待审核 + 审核通过 驳回 @@ -1841,6 +1841,10 @@ export default { auditOpinion: null, // 多个维修单号 orderCodes: [], + //多个维修状态 + workStatus: [], + //多个审核状态 + resultInspect: [], // 查询参数 queryParams: { pageNum: 1, @@ -2212,6 +2216,8 @@ export default { handleSelectionChange(selection) { this.ids = selection.map((item) => item.workId); this.orderCodes = selection.map((item) => item.workCode); + this.workStatus = selection.map((item) => item.workStatus); + this.resultInspect = selection.map((item) => item.resultInspect); this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -2452,6 +2458,7 @@ export default { } }); }, + // 点击结果检验按钮 clickInspect() { if (this.ids.length == 0 || this.ids == null) { @@ -2461,10 +2468,38 @@ export default { }); return; } - // 如果审核通过 那么就只是展示? - //需要加一个结果检验 - this.inspectDialog = true; - this.inspect = "1"; + + let workStatusMsg = true; + this.workStatus.forEach((item) => { + if(item == '0'){ + workStatusMsg = false; + } + }); + + let resultInspectMsg = true; + this.resultInspect.forEach((item) => { + if(item == '1'){ + resultInspectMsg = false; + } + }); + + if (workStatusMsg && resultInspectMsg) { + this.inspectDialog = true; + this.inspect = "1";//默认审核通过 + this.auditOpinion = null;//默认为空 + }else if(workStatusMsg == false){ + this.$message({ + message: "您选择的维修工单存在未完成的工单!", + type: "warning", + }); + return; + }else if(resultInspectMsg == false){ + this.$message({ + message: "您选择的维修工单存在已经审核过的工单,不能再次审核!", + type: "warning", + }); + return; + } }, // 提交检验信息 @@ -2479,10 +2514,17 @@ export default { checkRepairWorkOrder(data).then((response) => { this.getList(); this.inspectDialog = false; - this.$message({ + if(response.code = 500 ){ + this.$message({ + message: response.msg, + type: "warning", + }); + }else{ + this.$message({ message: "提交成功!", type: "success", }); + } }); }, //设备选择 diff --git a/src/views/mes/prepare/index.vue b/src/views/mes/prepare/index.vue index 1e1727a..20c2247 100644 --- a/src/views/mes/prepare/index.vue +++ b/src/views/mes/prepare/index.vue @@ -233,8 +233,13 @@ - - 生产订单备料单({{printData.printTitle}}) +
+ +
+ +
+ 生产订单备料单({{printData.printTitle}}) +
@@ -297,6 +302,8 @@ import { listPrepare, getPrepare, delPrepare, addPrepare, updatePrepare } from "@/api/mes/prepare"; import {printPrepareByCode,printPrepareXByCode} from "@/api/mes/prepareDetail"; import moment from "moment/moment"; +import JsBarcode from 'jsbarcode'; + // import { listPrepareDetail, getPrepareDetail, delPrepareDetail, addPrepareDetail, updatePrepareDetail } from "@/api/mes/prepareDetail"; // import Detail from "./prepareDetail.vue"; export default { @@ -323,6 +330,7 @@ export default { factory: null, productDate: null, workTable: [], + barcode:null,//打印生产物料和反冲物料的条码 }, printDialogVisible: false, // 遮罩层 @@ -400,6 +408,9 @@ export default { created() { this.getList(); }, + mounted() { + this.generateBarcode(); + }, methods: { //产品编码格式化 productCodeFormate(row, column, cellValue){ @@ -463,6 +474,8 @@ export default { this.printData.prodLineCode = response.data.mesPrepare.prodLineCode this.refreshNewWorkerTable = true // 立即将refreshProTable设置为true,显示表格 this.newWorkerLoading = false // 设置加载状态为false,表示加载完成 + + this.generateBarcode(this.selectPrepare[0].workorderCode); //条码 根据工单号生成 }) }, // 打印预览(反冲物料) @@ -503,8 +516,21 @@ export default { this.printData.workTable = chunkedArray; this.refreshNewWorkerTable = true // 立即将refreshProTable设置为true,显示表格 this.newWorkerLoading = false // 设置加载状态为false,表示加载完成 + + this.generateBarcode(this.printData.printDate); //条码 根据打印日期生成 }) }, + + //打印条码 + generateBarcode(barcode){ + JsBarcode("#barcode", barcode, { + format: "CODE128", + height:75, + width:2, + displayValue: true, + }); + }, + // 生成表头序号 indexMethod(index){ return index+1 ; @@ -629,10 +655,16 @@ export default {