From 48cba41dce490457580e7524bce16821e17ef142 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Mon, 11 Dec 2023 10:43:40 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=BB=BC=E5=90=88?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/item.js | 24 + src/views/device/repairOrder/index.vue | 1 - src/views/device/summaryReport/index.vue | 665 ++++++++++++++++++ .../summaryReport/selectSingleEquipment.vue | 296 ++++++++ 4 files changed, 985 insertions(+), 1 deletion(-) create mode 100644 src/views/device/summaryReport/index.vue create mode 100644 src/views/device/summaryReport/selectSingleEquipment.vue diff --git a/src/api/device/item.js b/src/api/device/item.js index 9e977fc..078f576 100644 --- a/src/api/device/item.js +++ b/src/api/device/item.js @@ -58,3 +58,27 @@ export function delItem(itemId) { method: 'delete' }); } +/////////////////////////////////////////下面都是汇总报表用 +// 查询检查项汇总表 +export function getSummaryReport() { + return request({ + url: '/device/item/summaryReport', + method: 'get' + }); +} + +// 查询工作中心 +export function getWorkCenter() { + return request({ + url: '/device/item/getWorkCenter', + method: 'get' + }); +} + +// 查询工单匹配检查项 +export function selectMatchList(query) { + return request({ + url: '/device/item/matchList', + params: query + }); +} diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index 45d07a4..d23430d 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -1126,7 +1126,6 @@ > - + + @@ -231,16 +236,17 @@ import { delCheckTypeProject, addCheckTypeProject, updateCheckTypeProject, - changeStatus + changeStatus, + submitProjects } from "@/api/quality/checkTypeProject"; import MaterialGroupAdd from "./MaterialGroupAdd.vue"; import {listCheckType} from "@/api/quality/checkType"; import {getProjectList} from "@/api/quality/project"; - +import SelectProject from "./selectProject.vue"; export default { name: "CheckTypeProject", dicts: ["qc_rule_prop",'unit'], - components: {MaterialGroupAdd,}, + components: {MaterialGroupAdd,SelectProject}, data() { return { // 遮罩层 @@ -355,6 +361,7 @@ export default { groupId: null, materialCode: null, projectNo: null, + projectInfos:[] }; this.resetForm("form"); }, @@ -414,12 +421,17 @@ export default { }, /** 新增按钮操作 */ handleAdd() { - this.reset(); - this.open = true; - this.title = "添加物料检验项目维护"; - this.form.groupId = this.groupId; - this.form.materialCode = this.materialCode; - this.form.typeId = this.editableTabsValue; + + if(this.groupId==null||this.materialCode){ + this.$modal.msgError("请点击左侧节点"); + return + }; + if(this.queryParams.typeId==null){ + this.$modal.msgError("请选择头部节点"); + retrun + }; + this.$refs.child.showFlag = true; + this.$refs.child.init(this.groupId,this.materialCode,this.queryParams.typeId); }, /** 修改按钮操作 */ handleUpdate(row) { @@ -525,6 +537,25 @@ export default { row.status = row.status === "0" ? "1" : "0"; }); }, + //检验项目添加确认 + onSelectProjects(objs) { + let _this = this; + objs.forEach(function(item,index,arr){ + item.projectId = item.id; + item.projectNo = item.orderNum; + item.unit = item.unitCode; + item.standardValue = item.checkStandard; + item.typeId = _this.queryParams.typeId; + item.groupId = _this.groupId; + item.materialCode = _this.materialCode; + + }); + submitProjects(objs).then(response => { + this.$modal.msgSuccess("提交成功"); + this.open = false; + this.getList(); + }); + }, }, }; diff --git a/src/views/quality/checkTypeProject/selectProject.vue b/src/views/quality/checkTypeProject/selectProject.vue new file mode 100644 index 0000000..7a30708 --- /dev/null +++ b/src/views/quality/checkTypeProject/selectProject.vue @@ -0,0 +1,170 @@ + + diff --git a/src/views/quality/project/index.vue b/src/views/quality/project/index.vue index 8d4d886..3540349 100644 --- a/src/views/quality/project/index.vue +++ b/src/views/quality/project/index.vue @@ -92,8 +92,8 @@ - - + + - + From c79a9c4d0019a2e464fef3404cf56636464ddf47 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Mon, 11 Dec 2023 14:08:53 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E9=A1=B9=E5=A4=9A=E7=85=A7=E7=89=87=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/repairOrder/index.vue | 75 ++++++++++++++++---------- 1 file changed, 48 insertions(+), 27 deletions(-) diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index d23430d..df17742 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -799,7 +799,7 @@ @@ -807,10 +807,10 @@ {{ form.workCode @@ -876,8 +876,8 @@ + - + @@ -1490,15 +1476,28 @@ export default { CS: { "text-align": "center", }, + CS1: { + "text-align": "center", + width: "250px", + }, LS: { "text-align": "center", width: "225px", }, + LS1: { + "text-align": "center", + width: "250px", + }, //图片表格样式 LSP: { "text-align": "center", width: "225px", }, + //图片表格样式 + LSP1: { + "text-align": "center", + width: "250px", + }, //检查项表格数据 detailList: [], //维修前照片 @@ -1818,6 +1817,7 @@ export default { this.openAdd = true; this.title = "快速工单"; }, + /** 填写按钮操作 */ handleWrite(row) { this.reset(); @@ -1894,7 +1894,18 @@ export default { standard.repairValue = item.repairValue; standard.repairReach = item.repairReach; standard.standardType = item.standardType; - //检查项图片 + + if (item.picturePaths != null) { + var newFiles = []; + item.picturePaths.forEach((item) => { + var newFile = {}; + newFile.name = item.fileName; + newFile.url = item.fileAddress; + newFiles.push(newFile); + }); + standard.picturePath = newFiles; + } + //检查项图片显示 var standardUrlLists = []; if (item.picturePaths != null) { item.picturePaths.forEach((item2) => { @@ -1985,12 +1996,22 @@ export default { this.form.afterRepairFile ); } - this.form.faultType = this.form.faultType.join(","); + + if (this.form.faultType != null) { + this.form.faultType = this.form.faultType.join(","); + } + console.log(this.form.faultType); this.$refs["form"].validate((valid) => { if (valid) { if (this.form.workId != null) { this.form.standardList = this.detailList; + //每个检查项 + this.form.standardList.forEach((item) => { + if (Array.isArray(item.picturePath)) { + item.picturePath = this.listToString(item.picturePath); + } + }); console.log(this.form.standardList); writeRepairOrder(this.form).then((response) => { this.openWrite = false; From 15080fa7b22cdb09a716044d7b82c049d6b1b375 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Mon, 11 Dec 2023 14:40:36 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E7=BB=86=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/repairOrder/index.vue | 81 +++++++++++-------- .../device/repairOrder/selectSpareParts.vue | 5 ++ 2 files changed, 53 insertions(+), 33 deletions(-) diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index df17742..8623238 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -1055,7 +1055,7 @@ - + @@ -1069,7 +1069,7 @@ - + @@ -1275,6 +1275,7 @@ + @@ -161,7 +162,7 @@ - + @@ -724,7 +725,7 @@ export default { var y = dd.getFullYear(); var m = dd.getMonth() + 1;//获取当前月份的日期 var d = dd.getDate(); - return y + "-" + m + "-" + d+" 00:00:00"; + return y + "-" + m + "-" + d; }, /** 查询报工报表列表 */ @@ -736,8 +737,8 @@ export default { }**/ if(this.queryParams.feedbackTimeArray !=null && this.queryParams.feedbackTimeArray.length>0){ - this.queryParams.feedbackTimeStart = moment(this.queryParams.feedbackTimeArray[0]).format('YYYY-MM-DD 00:00:00'); - this.queryParams.feedbackTimeEnd = moment(this.queryParams.feedbackTimeArray[1]).format('YYYY-MM-DD 23:59:59'); + this.queryParams.feedbackTimeStart = moment(this.queryParams.feedbackTimeArray[0]).format('YYYY-MM-DD'); + this.queryParams.feedbackTimeEnd = moment(this.queryParams.feedbackTimeArray[1]).format('YYYY-MM-DD'); } this.loading = true; listReportWork(this.queryParams).then(response => { diff --git a/src/views/quality/qcIncome/selectMaterial.vue b/src/views/quality/qcIncome/selectMaterial.vue index bf9f8db..07aab87 100644 --- a/src/views/quality/qcIncome/selectMaterial.vue +++ b/src/views/quality/qcIncome/selectMaterial.vue @@ -150,7 +150,6 @@ export default { this.selectedRows.name = this.idsName; this.$emit('onSelected', this.selectedRows); this.showFlag = false; - this.queryParams.itemCodeGet = ""; } } };