From 024ff7533b003db04882f54b0f30bc53c4f40f23 Mon Sep 17 00:00:00 2001 From: shaoyong Date: Fri, 12 Jan 2024 15:29:25 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E6=A3=80=E9=AA=8CABC=E4=B8=8D=E8=89=AF=E5=93=81=E7=9A=84?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96,=E6=8A=BD=E6=A0=B7?= =?UTF-8?q?=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96,=E7=89=A9=E6=96=99?= =?UTF-8?q?=E7=BB=84=E6=88=90=E5=91=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/quality/defectType.js | 6 ++++ .../checkTypeProject/MaterialGroupAdd.vue | 7 +++- src/views/quality/qcProduce/index.vue | 32 ++++++++++--------- src/views/quality/qcSampleRule/index.vue | 9 ++---- 4 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/api/quality/defectType.js b/src/api/quality/defectType.js index 934f147..79146fe 100644 --- a/src/api/quality/defectType.js +++ b/src/api/quality/defectType.js @@ -42,3 +42,9 @@ export function delDefectType(faultId) { method: 'delete' }); } +export function getDefectTypeListByDefectType(defectType) { + return request({ + url: '/quality/defectType/getDefectTypeListByDefectType/' + defectType, + method: 'get', + }); +} diff --git a/src/views/quality/checkTypeProject/MaterialGroupAdd.vue b/src/views/quality/checkTypeProject/MaterialGroupAdd.vue index 87873d3..4e5364d 100644 --- a/src/views/quality/checkTypeProject/MaterialGroupAdd.vue +++ b/src/views/quality/checkTypeProject/MaterialGroupAdd.vue @@ -313,7 +313,12 @@ export default { console.log(this.form.groupId); if(this.form.materialCode != null) { addMaterialGroupDetail(this.form).then((response) => { - this.$modal.msgSuccess("新增成功"); + let message = response.code + if(message == 200) { + this.$modal.msgSuccess("新增成功"); + }else { + this.$modal.msgError("新增失败"); + } this.open = false; this.getMaterialTree(); }); diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue index a16f56f..5a275f7 100644 --- a/src/views/quality/qcProduce/index.vue +++ b/src/views/quality/qcProduce/index.vue @@ -196,7 +196,7 @@ - + @@ -332,19 +332,9 @@ - - - - - - - - - - - - - + + + @@ -424,6 +414,7 @@ import ItemSelectWorkOrder from "./selectWorkOrder.vue"; import ItemSelectWorkCenter from "./selectWorkCenter.vue"; import ItemSelectUser from "../qcIncome/selectUser.vue"; import ItemSelectProject from "../qcIncome/checkProjectType.vue"; +import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js"; export default { name: "QcProduce", components: { ItemSelectWorkCenter,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder}, @@ -445,6 +436,7 @@ export default { // 生产过程检验任务表格数据 qcProduceList: [], checkTypeList:[], + defectTypeList: [], // 弹出层标题 title: "", // 是否显示弹出层 @@ -522,6 +514,7 @@ export default { this.getDate(); this.getList(); this.getCheckTypes(); + this.handleDefectType(); }, methods: { /****/ @@ -602,7 +595,8 @@ export default { updateBy: null, updateTime: null, factoryCode: null, - delFlag: null + delFlag: null, + defects: [] }; this.resetForm("form"); }, @@ -625,8 +619,10 @@ export default { /** 新增按钮操作 */ handleAdd() { this.reset(); + this.form.defects = this.defectTypeList; this.open = true; this.title = "添加生产过程检验任务"; + }, /** 修改按钮操作 */ handleUpdate(row) { @@ -735,6 +731,12 @@ export default { //提交检测结果 saveCheck(){ this.getList(); + }, + handleDefectType() { + const defectType = "produce" + getDefectTypeListByDefectType(defectType).then(response => { + this.defectTypeList = response.rows; + }); } } }; diff --git a/src/views/quality/qcSampleRule/index.vue b/src/views/quality/qcSampleRule/index.vue index f6c71fe..3a9b95c 100644 --- a/src/views/quality/qcSampleRule/index.vue +++ b/src/views/quality/qcSampleRule/index.vue @@ -133,13 +133,13 @@ - + - + - + Date: Fri, 12 Jan 2024 15:41:44 +0800 Subject: [PATCH 2/9] =?UTF-8?q?2024-1-12-1=20=E5=9F=BA=E7=A1=80=E4=BF=A1?= =?UTF-8?q?=E6=81=AF-bom-=E6=A8=A1=E7=B3=8A=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/bom/index.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue index fa514a8..86f0ffe 100644 --- a/src/views/wms/bom/index.vue +++ b/src/views/wms/bom/index.vue @@ -16,6 +16,22 @@ @keyup.enter.native="handleQuery" /> + + + + + + Date: Fri, 12 Jan 2024 15:50:25 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/produceReport/index.vue | 49 ++++++++++++----------- src/views/quality/qcProduce/index.vue | 10 +++-- src/views/quality/unqualified/index.vue | 4 +- 3 files changed, 35 insertions(+), 28 deletions(-) diff --git a/src/views/quality/produceReport/index.vue b/src/views/quality/produceReport/index.vue index 3487d87..f46cd73 100644 --- a/src/views/quality/produceReport/index.vue +++ b/src/views/quality/produceReport/index.vue @@ -1,13 +1,15 @@ - - + +