From 98581e7d5101c7ddcbee510da00964dfa5b24198 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 24 Jan 2024 09:31:57 +0800 Subject: [PATCH 01/11] =?UTF-8?q?fix:=20mioitem=5Fform=E8=BD=A6=E9=97=B4?= =?UTF-8?q?=E6=89=B9=E6=AC=A1=E5=8F=B7=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem_form.vue | 570 +++++++++++++++------------------ 1 file changed, 253 insertions(+), 317 deletions(-) diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index 3578b0e0..57f9eb5a 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -1,121 +1,55 @@ From 8458dc765e528ab6d9290a291f052e836c8414b1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 24 Jan 2024 11:26:10 +0800 Subject: [PATCH 02/11] =?UTF-8?q?feat:=20=E9=9A=90=E5=8E=BB=E5=8A=A0?= =?UTF-8?q?=E5=B7=A5=E5=B7=A5=E5=85=B7=E5=92=8C=E8=BE=85=E5=8A=A9=E5=B7=A5?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/materials.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/mtm/materials.vue b/src/views/mtm/materials.vue index f636b73d..82eeeed9 100644 --- a/src/views/mtm/materials.vue +++ b/src/views/mtm/materials.vue @@ -94,8 +94,8 @@ export default { { label: "半成品", name: 20 }, { label: "主要原料", name: 30 }, { label: "辅助材料", name: 40 }, - { label: "加工工具", name: 50 }, - { label: "辅助工装", name: 60 }, + // { label: "加工工具", name: 50 }, + // { label: "辅助工装", name: 60 }, { label: "办公用品", name: 70 }, // { label: "电/水/气", name: 0 }, ], @@ -105,8 +105,8 @@ export default { 20: '半成品', 30: '主要原料', 40: '辅助材料', - 50: '加工工具', - 60: '辅助工装', + // 50: '加工工具', + // 60: '辅助工装', 70: '办公用品', }, showHidden: false, From 9a9ddcfe5d21dd25a6b12a039bf7f18830b24a01 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 24 Jan 2024 11:26:37 +0800 Subject: [PATCH 03/11] =?UTF-8?q?feat:=20=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=8C=89=E7=89=A9=E6=96=99=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/good_mio.vue | 7 +++++-- src/views/inm/halfgood_mio.vue | 7 +++++-- src/views/inm/helpso.vue | 2 +- src/views/inm/helpso_mio.vue | 7 +++++-- src/views/inm/mainso_mio.vue | 7 +++++-- src/views/inm/mioitem_form.vue | 2 +- 6 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/views/inm/good_mio.vue b/src/views/inm/good_mio.vue index c6865b18..e9c55072 100644 --- a/src/views/inm/good_mio.vue +++ b/src/views/inm/good_mio.vue @@ -19,7 +19,7 @@ - + @@ -90,8 +90,11 @@ export default { save: false, }, query: { + + }, + params: { type__in: 'sale_out,do_in', - // item_mio__material__type: 10 + item_mio__material__type: 10 }, form: { diff --git a/src/views/inm/halfgood_mio.vue b/src/views/inm/halfgood_mio.vue index e99df970..c695f1a1 100644 --- a/src/views/inm/halfgood_mio.vue +++ b/src/views/inm/halfgood_mio.vue @@ -19,7 +19,7 @@ - + @@ -90,8 +90,11 @@ export default { save: false, }, query: { + + }, + params: { type__in: 'do_in,do_out', - // item_mio__material__type: 20 + item_mio__material__type: 20 }, form: { diff --git a/src/views/inm/helpso.vue b/src/views/inm/helpso.vue index dcb72b75..e76c79a1 100644 --- a/src/views/inm/helpso.vue +++ b/src/views/inm/helpso.vue @@ -40,7 +40,7 @@ export default { data() { return { apiObj: this.$API.inm.warehouse.batch, - params: { count__gte: 1, material__type__in: '40' }, + params: { count__gte: 1, material__type__in: '40, 50, 60, 70' }, selection: [], query: {}, warehouseOptions: [] diff --git a/src/views/inm/helpso_mio.vue b/src/views/inm/helpso_mio.vue index cd4b7c48..c4c5073c 100644 --- a/src/views/inm/helpso_mio.vue +++ b/src/views/inm/helpso_mio.vue @@ -18,7 +18,7 @@ - + @@ -85,8 +85,11 @@ export default { save: false, }, query: { + + }, + params: { type__in: 'pur_in', - // item_mio__material__type: 40 + item_mio__material__type__in: '40, 50, 60, 70' }, form: { diff --git a/src/views/inm/mainso_mio.vue b/src/views/inm/mainso_mio.vue index e5e83c7a..27a48eff 100644 --- a/src/views/inm/mainso_mio.vue +++ b/src/views/inm/mainso_mio.vue @@ -19,7 +19,7 @@ - + @@ -90,8 +90,11 @@ export default { save: false, }, query: { + + }, + params: { type__in: 'pur_in,do_out', - // item_mio__material__type: 30 + item_mio__material__type: 30 }, form: { diff --git a/src/views/inm/mioitem_form.vue b/src/views/inm/mioitem_form.vue index 57f9eb5a..a6792736 100644 --- a/src/views/inm/mioitem_form.vue +++ b/src/views/inm/mioitem_form.vue @@ -161,7 +161,7 @@ export default { } else if (cate == 'mainso') { type__in = '30' } else if (cate == 'helpso') { - type__in = '40' + type__in = '40, 50, 60, 70' } if (type == 'do_out') {//生产领料'10, 20, 30' query = { page: 0, type__in: type__in, is_hidden: false, is_assemb: false }; From 5c5a0bafc037a3dcb5e869eaa76477bb014a19df Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 24 Jan 2024 11:56:48 +0800 Subject: [PATCH 04/11] =?UTF-8?q?fix:=20=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=8C=89=E7=89=A9=E6=96=99=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/good_mio.vue | 2 +- src/views/inm/halfgood_mio.vue | 2 +- src/views/inm/helpso_mio.vue | 2 +- src/views/inm/mainso_mio.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/inm/good_mio.vue b/src/views/inm/good_mio.vue index e9c55072..0ffddeb4 100644 --- a/src/views/inm/good_mio.vue +++ b/src/views/inm/good_mio.vue @@ -94,7 +94,7 @@ export default { }, params: { type__in: 'sale_out,do_in', - item_mio__material__type: 10 + materials__type: 10 }, form: { diff --git a/src/views/inm/halfgood_mio.vue b/src/views/inm/halfgood_mio.vue index c695f1a1..a27473da 100644 --- a/src/views/inm/halfgood_mio.vue +++ b/src/views/inm/halfgood_mio.vue @@ -94,7 +94,7 @@ export default { }, params: { type__in: 'do_in,do_out', - item_mio__material__type: 20 + materials__type: 20 }, form: { diff --git a/src/views/inm/helpso_mio.vue b/src/views/inm/helpso_mio.vue index c4c5073c..1220797d 100644 --- a/src/views/inm/helpso_mio.vue +++ b/src/views/inm/helpso_mio.vue @@ -89,7 +89,7 @@ export default { }, params: { type__in: 'pur_in', - item_mio__material__type__in: '40, 50, 60, 70' + materials__type__in: '40, 50, 60, 70' }, form: { diff --git a/src/views/inm/mainso_mio.vue b/src/views/inm/mainso_mio.vue index 27a48eff..fa4ff5a1 100644 --- a/src/views/inm/mainso_mio.vue +++ b/src/views/inm/mainso_mio.vue @@ -94,7 +94,7 @@ export default { }, params: { type__in: 'pur_in,do_out', - item_mio__material__type: 30 + materials__type: 30 }, form: { From 0a12e323f9cfef809d89f56fd641791b8f65dbbf Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Jan 2024 10:05:25 +0800 Subject: [PATCH 05/11] =?UTF-8?q?fix:=20=E6=80=A7=E8=83=BD=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E5=88=97=E8=A1=A8=E5=B1=95=E7=A4=BA=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/behavior.vue | 225 ++++++++++++++++++-------------------- 1 file changed, 105 insertions(+), 120 deletions(-) diff --git a/src/views/qm/behavior.vue b/src/views/qm/behavior.vue index dc2b7054..ed7cd60d 100644 --- a/src/views/qm/behavior.vue +++ b/src/views/qm/behavior.vue @@ -5,16 +5,8 @@ 新增
- - 查询 + + 查询
@@ -36,51 +28,44 @@ - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -95,10 +80,10 @@ - + - + - - + + {{ item.batch }} + {{ item.count }} @@ -125,19 +131,13 @@ export default { }, //获取车间物料批次号 getWBatchs() { // - let wbatchs = [] if (this.belongDeptId != null && this.belongDeptId != undefined && this.belongDeptId != '') { this.$API.wpm.wmaterial.list.req({ "belong_dept": this.belongDeptId, "material": this.form.material, "page": 0 }).then(res => { - res.forEach(item => { - if (!wbatchs.includes(item.batch)) { - wbatchs.push(item.batch); - } - }); - this.wbatchOptions = wbatchs + this.wbatchOptions = res }) } }, From 729dd9b38d9c3b6e4ffb55f890cc596178187c5f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Jan 2024 10:17:27 +0800 Subject: [PATCH 07/11] =?UTF-8?q?feat:=20=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=A2=9E=E5=8A=A0=E6=89=A7=E8=A1=8C=E8=BD=A6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/good_mio.vue | 3 ++- src/views/inm/halfgood_mio.vue | 3 ++- src/views/inm/helpso_mio.vue | 3 ++- src/views/inm/mainso_mio.vue | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/inm/good_mio.vue b/src/views/inm/good_mio.vue index 0ffddeb4..f661247e 100644 --- a/src/views/inm/good_mio.vue +++ b/src/views/inm/good_mio.vue @@ -34,7 +34,8 @@
- + + diff --git a/src/views/inm/halfgood_mio.vue b/src/views/inm/halfgood_mio.vue index a27473da..c8b6c06d 100644 --- a/src/views/inm/halfgood_mio.vue +++ b/src/views/inm/halfgood_mio.vue @@ -34,7 +34,8 @@ - + + diff --git a/src/views/inm/helpso_mio.vue b/src/views/inm/helpso_mio.vue index 1220797d..19279160 100644 --- a/src/views/inm/helpso_mio.vue +++ b/src/views/inm/helpso_mio.vue @@ -33,7 +33,8 @@ - + + diff --git a/src/views/inm/mainso_mio.vue b/src/views/inm/mainso_mio.vue index fa4ff5a1..737b5430 100644 --- a/src/views/inm/mainso_mio.vue +++ b/src/views/inm/mainso_mio.vue @@ -34,7 +34,8 @@ - + + From 6cb3e526aad980dfb12135bf26f8d08c8a2930ae Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Jan 2024 13:23:24 +0800 Subject: [PATCH 08/11] =?UTF-8?q?fix:=20=E9=80=80=E7=81=AB=E5=85=88?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm/worktask_form.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue index db87e6b8..b4e49f2b 100644 --- a/src/views/wpm/worktask_form.vue +++ b/src/views/wpm/worktask_form.vue @@ -218,7 +218,7 @@ -
检测统计:
+ From 4855ab4028e13c0587ae63494c115acf643eb406 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 27 Jan 2024 22:50:15 +0800 Subject: [PATCH 09/11] =?UTF-8?q?fix:=2010=E8=BD=A6=E9=97=B4mlog=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm/mlog_dept10.vue | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/views/wpm/mlog_dept10.vue b/src/views/wpm/mlog_dept10.vue index 70ec776e..f109d72c 100644 --- a/src/views/wpm/mlog_dept10.vue +++ b/src/views/wpm/mlog_dept10.vue @@ -458,20 +458,20 @@ export default { }); }, table_edit(row) { - let arr = []; - let mlogb = row.mlogb; - this.brothersListorigin.forEach(item => { - let obj = {}; - obj.count_ok = null; - obj.material_out = item; - for (let i = 0; i < mlogb.length; i++) { - if (mlogb[i].material_out == item) { - obj.count_ok = mlogb[i].count_ok; - } - } - arr.push(obj) - }) - this.brothersList = arr; + // let arr = []; + // let mlogb = row.mlogb; + // this.brothersListorigin.forEach(item => { + // let obj = {}; + // obj.count_ok = null; + // obj.material_out = item; + // for (let i = 0; i < mlogb.length; i++) { + // if (mlogb[i].material_out == item) { + // obj.count_ok = mlogb[i].count_ok; + // } + // } + // arr.push(obj) + // }) + // this.brothersList = arr; this.dialogSave = true; this.$nextTick(() => { this.$refs.saveDialog.open("edit").setData(row); From 5c7a61089befae39370101a2d8e445db4d478c50 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 28 Jan 2024 00:21:32 +0800 Subject: [PATCH 10/11] =?UTF-8?q?feat:=20=E7=AE=80=E5=8C=96mlogb=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm/mlog_dept10.vue | 15 +-------------- src/views/wpm/worktask_form.vue | 12 ++---------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/src/views/wpm/mlog_dept10.vue b/src/views/wpm/mlog_dept10.vue index f109d72c..f04d7fab 100644 --- a/src/views/wpm/mlog_dept10.vue +++ b/src/views/wpm/mlog_dept10.vue @@ -458,20 +458,7 @@ export default { }); }, table_edit(row) { - // let arr = []; - // let mlogb = row.mlogb; - // this.brothersListorigin.forEach(item => { - // let obj = {}; - // obj.count_ok = null; - // obj.material_out = item; - // for (let i = 0; i < mlogb.length; i++) { - // if (mlogb[i].material_out == item) { - // obj.count_ok = mlogb[i].count_ok; - // } - // } - // arr.push(obj) - // }) - // this.brothersList = arr; + this.brothersList = row.mlogb; this.dialogSave = true; this.$nextTick(() => { this.$refs.saveDialog.open("edit").setData(row); diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue index b4e49f2b..95f95e5c 100644 --- a/src/views/wpm/worktask_form.vue +++ b/src/views/wpm/worktask_form.vue @@ -661,16 +661,7 @@ export default { this.getShiftOptions(); this.getRouteOptions(); this.getWorkShopMaterial(); - if (this.activeType == "10车间") { - let mlogb = []; - this.brothersList.forEach((item) => { - let obj = {}; - obj.material_out = item.material_out; - obj.count_ok = item.count_ok; - mlogb.push(obj); - }); - this.mlogb = mlogb; - } + this.mlogb = this.brothersList; if (this.activeType == "10车间") { this.getMaterial(0); } else { @@ -906,6 +897,7 @@ export default { }); this.form.mlogb = newArr; } + console.log(this.form.mlogb) let sun = this.form.count_ok + this.form.count_notok; if ((this.activeType == "7车间" || this.activeType == "10车间") && sun != this.form.count_real) { this.isSaveing = false; From 9afbeaa891f9b146df09f77bbb2324e33f57a3d4 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 29 Jan 2024 18:41:46 +0800 Subject: [PATCH 11/11] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=89=A9?= =?UTF-8?q?=E6=96=99=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/materials.vue | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/src/views/mtm/materials.vue b/src/views/mtm/materials.vue index 82eeeed9..c7ce729c 100644 --- a/src/views/mtm/materials.vue +++ b/src/views/mtm/materials.vue @@ -25,12 +25,13 @@
- + @@ -47,15 +48,17 @@ - +
@@ -129,6 +132,12 @@ export default { this.$refs.saveDialog.open("add"); }); }, + table_copy(row) { + this.dialog.save = true; + this.$nextTick(() => { + this.$refs.saveDialog.open("add").setData(row); + }); + }, //编辑 table_edit(row) { this.dialog.save = true;