From f2cc34cb4c6809172ce7e216ecdd233b4534d465 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 10:29:37 +0800 Subject: [PATCH 01/27] =?UTF-8?q?fix:qct=E6=A3=80=E9=AA=8C=E8=A1=A8?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E2=80=9C=E8=BF=94=E4=BF=AE=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E2=80=9D=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qm/qct.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/views/qm/qct.vue b/src/views/qm/qct.vue index 8410e374..a79bf6f8 100644 --- a/src/views/qm/qct.vue +++ b/src/views/qm/qct.vue @@ -117,18 +117,12 @@ import recordDialog from "./qctDetail.vue"; tagsOptions: [ {value:"process",name:"过程检验"}, {value:"inm",name:"库存检验"}, - // {value:"purin",name:"入厂检验"}, - // {value:"first",name:"首件检验"}, - // {value:"prod",name:"成品检验"}, - // {value:"performance",name:"性能检验"}, + {value:"fix",name:"返修检验"}, ], tags_:{ - // "purin":"入厂检验", - // "first":"首件检验", - // "prod":"成品检验", "process":"过程检验", "inm":"库存检验", - // "performance":"性能检验" + "fix":"返修检验", }, } }, From d9daef3587506394350457b42cfdd47eb3345220 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 10:45:24 +0800 Subject: [PATCH 02/27] =?UTF-8?q?fix:=E7=A6=85=E9=81=93284?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogb_form.vue | 32 ++++++++++++++++++-------------- src/views/wpm_bx/mlogs.vue | 2 ++ 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/views/wpm_bx/mlogb_form.vue b/src/views/wpm_bx/mlogb_form.vue index 3c71303e..cc0a7d42 100644 --- a/src/views/wpm_bx/mlogb_form.vue +++ b/src/views/wpm_bx/mlogb_form.vue @@ -8,17 +8,17 @@ @closed="$emit('closed')" > - + - + + {{ item.batch }} + ({{ item.defect_name }}) + {{ item.count_cando }} - + - @@ -221,14 +223,16 @@ export default { this.params.mlog = this.mlog; let arr = this.$route.path.split("/"); this.mgroup_code = arr[2]; - this.getMlogbIn(); - this.getMtask(); - this.getMaterial(); - this.getParentList(); - this.getEquipment(); - if(!this.hasRoute){ - this.getRoute(); - } + this.$nextTick(()=>{ + this.getMlogbIn(); + this.getMtask(); + this.getMaterial(); + this.getParentList(); + this.getEquipment(); + if(!this.hasRoute&&!this.isfix){ + this.getRoute(); + } + }) }, methods: { open() { @@ -307,7 +311,7 @@ export default { obj.route =that.routeId; } obj.page =0; - if(that.is_fix){//来料未完成的返修品&&出料已完成的返修品和不合格品 + if(that.isfix ){//来料未完成的返修品&&出料已完成的返修品和不合格品 obj.tag = 'canfix'; }else{ if(that.materialIn!==null&&that.materialIn!==''){ diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue index bc281519..4d82d9fb 100644 --- a/src/views/wpm_bx/mlogs.vue +++ b/src/views/wpm_bx/mlogs.vue @@ -3,12 +3,14 @@
快速报工 Date: Mon, 29 Dec 2025 13:37:38 +0800 Subject: [PATCH 03/27] =?UTF-8?q?fix:=E6=88=90=E5=93=81=E5=92=8C=E5=8D=8A?= =?UTF-8?q?=E6=88=90=E5=93=81=E6=97=A0=E8=81=8A=E6=A0=87=E7=AD=BE=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/good.vue | 59 ++++++++++++++++++++++++++++++-------- src/views/inm/halfgood.vue | 59 +++++++++++++++++++++++++++++--------- 2 files changed, 93 insertions(+), 25 deletions(-) diff --git a/src/views/inm/good.vue b/src/views/inm/good.vue index a006a9a5..e482fcaa 100644 --- a/src/views/inm/good.vue +++ b/src/views/inm/good.vue @@ -72,12 +72,12 @@ - + @@ -273,15 +273,50 @@ export default { }); }) }, - //打印物料标签 - printMaterial(row){ + //打签 + printMaterial(row,type){ let that = this; - that.wmId = row.id; - that.wmtype = row.material_.type; - that.print_m = true; - this.$nextTick(() => { - this.$refs.printmaterial.open(); - }) + let printer_name=localStorage.getItem("printer_name"); + if(printer_name!==''&&printer_name!==null&&printer_name!==undefined){ + if(that.project_code!=='gz'){ + if(type=='mb'){ + let params = {}; + params.tid = row.id; + params.label_template_name = '库存标签模板'; + params.extra_data={count:row.count}; + that.$API.cm.labelmat.fromMb.req(params).then((res) => { + let obj = {}; + obj.printer_commands = res.commands; + obj.printer_name = printer_name; + that.$API.wpm.prints.req(obj).then((response) => { + that.$message.success("打印成功"); + }); + }) + }else{ + let params = {}; + let name = row.material_name.split('|')[0]; + params.label_template_name = '单件打印模板'; + params.data = {number:row.number,name:name}; + that.$API.cm.labeltemplate.commands.req(params).then((res) => { + let obj = {}; + obj.printer_commands = res.commands; + obj.printer_name = printer_name; + that.$API.wpm.prints.req(obj).then((response) => { + that.$message.success("打印成功"); + }); + }); + } + }else{ + that.wmId = row.id; + that.wmtype = row.material_.type; + that.print_m = true; + this.$nextTick(() => { + this.$refs.printmaterial.open(); + }) + } + }else{ + that.$message.error("请先设置打印机"); + } }, }, }; diff --git a/src/views/inm/halfgood.vue b/src/views/inm/halfgood.vue index b37664c2..c11faa94 100644 --- a/src/views/inm/halfgood.vue +++ b/src/views/inm/halfgood.vue @@ -66,15 +66,13 @@ - - + @@ -199,15 +197,50 @@ export default { resetQuery() { this.query = {}; }, - //打印物料标签 - printMaterial(row){ + //打签 + printMaterial(row,type){ let that = this; - that.wmId = row.id; - that.wmtype = row.material_.type; - that.print_m = true; - this.$nextTick(() => { - this.$refs.printmaterial.open(); - }) + let printer_name=localStorage.getItem("printer_name"); + if(printer_name!==''&&printer_name!==null&&printer_name!==undefined){ + if(that.project_code!=='gz'){ + if(type=='mb'){ + let params = {}; + params.tid = row.id; + params.label_template_name = '库存标签模板'; + params.extra_data={count:row.count}; + that.$API.cm.labelmat.fromMb.req(params).then((res) => { + let obj = {}; + obj.printer_commands = res.commands; + obj.printer_name = printer_name; + that.$API.wpm.prints.req(obj).then((response) => { + that.$message.success("打印成功"); + }); + }) + }else{ + let params = {}; + let name = row.material_name.split('|')[0]; + params.label_template_name = '单件打印模板'; + params.data = {number:row.number,name:name}; + that.$API.cm.labeltemplate.commands.req(params).then((res) => { + let obj = {}; + obj.printer_commands = res.commands; + obj.printer_name = printer_name; + that.$API.wpm.prints.req(obj).then((response) => { + that.$message.success("打印成功"); + }); + }); + } + }else{ + that.wmId = row.id; + that.wmtype = row.material_.type; + that.print_m = true; + this.$nextTick(() => { + this.$refs.printmaterial.open(); + }) + } + }else{ + that.$message.error("请先设置打印机"); + } }, }, }; From 33844efb7c749a5403337b3ea227583162ed6377 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 13:38:35 +0800 Subject: [PATCH 04/27] =?UTF-8?q?fix:=E2=80=9C=E7=89=A9=E6=96=99=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E2=80=9D=E7=BB=9F=E4=B8=80=E6=94=B9=E4=B8=BA=E2=80=9C?= =?UTF-8?q?=E6=89=93=E7=AD=BE=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/helpso.vue | 2 +- src/views/inm/mainso.vue | 8 ++++---- src/views/inm/mioitem.vue | 8 ++++---- src/views/inm/mioitemlist.vue | 2 +- src/views/wpm_bx/inmIn.vue | 6 +++--- src/views/wpm_bx/inmOut.vue | 6 +++--- src/views/wpm_bx/inm_record.vue | 4 ++-- src/views/wpm_bx/mlogbw_check.vue | 2 +- src/views/wpm_bx/wprList.vue | 4 ++-- src/views/wpm_gx/fmlog_detail.vue | 2 +- src/views/wpm_gx/helpso.vue | 4 ++-- src/views/wpm_gx/inm.vue | 4 ++-- src/views/wpm_gx/inmOut.vue | 4 ++-- src/views/wpm_gx/inm_record.vue | 4 ++-- src/views/wpm_gx/mlog_detail.vue | 2 +- 15 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/views/inm/helpso.vue b/src/views/inm/helpso.vue index ad8fbf35..8c7ddb97 100644 --- a/src/views/inm/helpso.vue +++ b/src/views/inm/helpso.vue @@ -187,7 +187,7 @@ export default { resetQuery() { this.query = {}; }, - //打印物料标签 + //打签 printMaterial(row){ let that = this; that.wmId = row.id; diff --git a/src/views/inm/mainso.vue b/src/views/inm/mainso.vue index b81876a0..37d4d076 100644 --- a/src/views/inm/mainso.vue +++ b/src/views/inm/mainso.vue @@ -61,11 +61,11 @@ - + @@ -100,7 +100,7 @@ width="120" > @@ -441,7 +441,7 @@ export default { that.getCheckList(); }) }, - //打印物料标签 + //打印打签 printMaterial(row,type){ let that = this; let printer_name=localStorage.getItem("printer_name"); diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index 0b19cc46..b8805479 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -203,7 +203,7 @@ type="primary" v-if="mioObj.type == 'do_out'" @click="printMaterial(scope.row,'mioitem')" - >物料标签 + >打签 @@ -601,9 +601,9 @@ export default { this.$message.error("导入失败,请重新尝试"); }); }, - //打印物料标签 + //打签 printMaterial(row,type){ - console.log('打印物料标签',row); + console.log('打签',row); let that = this; let is_mainso = this.url_code.includes('mainso'); if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ diff --git a/src/views/inm/mioitemlist.vue b/src/views/inm/mioitemlist.vue index 9c1b575b..385bb49b 100644 --- a/src/views/inm/mioitemlist.vue +++ b/src/views/inm/mioitemlist.vue @@ -362,7 +362,7 @@ export default { var that = this; that.params.material = that.selectObj.id; }, - //打印物料标签 + //打签 printMaterial(row,type){ let that = this; if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 58bf8a2f..67a3a54d 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -140,7 +140,7 @@ width="120" > @@ -441,7 +441,7 @@ export default { this.dialog.save = false; this.$refs.table.refresh(); }, - //打印物料标签 + //打签 printMaterial(row){ let that = this; if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ diff --git a/src/views/wpm_gx/inm_record.vue b/src/views/wpm_gx/inm_record.vue index 8b33e2be..a8f3239e 100644 --- a/src/views/wpm_gx/inm_record.vue +++ b/src/views/wpm_gx/inm_record.vue @@ -278,7 +278,7 @@ @@ -554,7 +554,7 @@ export default { handlePrint(){ this.printVisible = true; }, - //打印物料标签 + //打签 printMaterial(row){ let that = this; that.wmId = row.id; diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue index 787779cb..3bb51d40 100644 --- a/src/views/wpm_gx/mlog_detail.vue +++ b/src/views/wpm_gx/mlog_detail.vue @@ -691,7 +691,7 @@ export default { let that = this; that.printVisible = true; }, - //打印物料标签 + //打签 printMaterial(row){ let that = this; that.wmId = row.id; From 473618307b86dbfeb9c5177d7942605a307695a5 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 13:40:51 +0800 Subject: [PATCH 05/27] =?UTF-8?q?fix:=E8=BF=94=E5=B7=A5=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=A3=80=E9=AA=8C=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_detail.vue | 15 ++++++++----- src/views/wpm_bx/mlogbw_check_table.vue | 30 ++++++++++++++++--------- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 38c75042..70098762 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -339,6 +339,7 @@ :dept="deptId" :mgroup="mgroup" :cutCount="cutCount" + :material_in="materialIn" :material_out="mlogItem.material_out" :mgroupName= "mlogItem.mgroup_name" :isSubmit="isSubmit" @@ -585,7 +586,6 @@ export default { let that = this; that.$API.wpm.mlog.item.req(that.mlogId).then((res) => { that.mlogItem = res; - that.getcutCount(res.material_in); that.isSubmit = res.submit_time==null?false:true; if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){ that.getMlogbw(); @@ -608,16 +608,19 @@ export default { that.fileList = [{name:res.test_file,url:res.test_file}]; that.form.test_file = res.test_file; } - that.materialIn = res.material_in; + that.materialIn = res.material_in!==null?res.material_in:res.mlogb_full[0]?res.mlogb_full[0].material_in:null; that.deptId = res.belong_dept; that.checkTableShow = true; that.apiObjWm = that.$API.wpm.wmaterial.list; that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => { that.tableData2 = res; }) - that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => { - that.route_file = res[0].document_!==null?res[0].document_.path:null; - }) + if(!res.is_fix){ + that.getcutCount(res.material_in); + that.$API.mtm.routepack.list.req({page:0,search:res.routepack_name}).then((res) => { + that.route_file = res[0].document_!==null?res[0].document_.path:null; + }) + } }); }, getEquipment(){ @@ -989,7 +992,7 @@ export default { let that = this; that.printVisible = true; }, - //打印物料标签 + //打签 printMaterial(row){ let that = this; that.apiObjPrint.req({tid:row.id}).then((res) => { diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index 929474ba..b2ec4270 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -382,25 +382,35 @@ export default { watch: {}, mounted() { let that = this; + that.route_code = that.$route.path.split("/")[2]; + that.currentDate = that.$TOOL.dateFormat2(new Date()); if(that.processType=='20'){ that.canMultiple = true; } if(that.qct!==''&&that.qct!==null){//输出 that.getdefects(); - }else if(that.material_out!==''&&that.material_out!==null){//输入 - that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => { - that.qctId = res.id; - that.testdefectss(res); - }).catch(()=>{ - that.getList(); - }) + }else{ + if(that.route_code=='chengpingfanxiu'&&that.material_in!==''&&that.material_in!==null){//输入 + that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'fix' }).then((res) => { + that.qctId = res.id; + that.testdefectss(res); + }).catch(()=>{ + that.getList(); + }) + }else if(that.material_out!==''&&that.material_out!==null){//输入 + that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => { + that.qctId = res.id; + that.testdefectss(res); + }).catch(()=>{ + that.getList(); + }) + } } that.visible = true; setTimeout(() => { that.tableHeight = document.getElementById('mlogbwMain').clientHeight-20; },500) - that.route_code = that.$route.path.split("/")[2]; - that.currentDate = that.$TOOL.dateFormat2(new Date()); + }, methods: { refreshfun(){ @@ -707,7 +717,7 @@ export default { let that = this; that.printVisible = true; }, - //打印物料标签 + //打签 printMaterial(row){ let that = this; that.apiObjPrint.req({tid:row.id}).then((res) => { From 478e0d04a3d12b2a830d30521026fbff6d530cdf Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 13:51:45 +0800 Subject: [PATCH 06/27] =?UTF-8?q?fix:=E7=A6=85=E9=81=93238?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/em/ecate.vue | 6 +++--- src/views/em/ecate_form.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/em/ecate.vue b/src/views/em/ecate.vue index be3f6b2d..c1119eb2 100644 --- a/src/views/em/ecate.vue +++ b/src/views/em/ecate.vue @@ -31,21 +31,21 @@ {{ typeOptions_[scope.row.type] }} - + - + - + From a53c388ba9bbdc17492e243557a981bab00084c5 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 14:57:44 +0800 Subject: [PATCH 08/27] =?UTF-8?q?feat=EF=BC=9A=E7=A6=85=E9=81=93239?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_form.vue | 2 +- src/views/wpm_bx/mlog_form2.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 2420e74b..45a69502 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -59,7 +59,7 @@ - + - + Date: Mon, 29 Dec 2025 15:19:51 +0800 Subject: [PATCH 09/27] =?UTF-8?q?feat:=E7=A6=85=E9=81=93265?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/good_check_gx.vue | 2 ++ src/views/statistics/good_check_gx2.vue | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/views/statistics/good_check_gx.vue b/src/views/statistics/good_check_gx.vue index 5c8ad9e3..3395fb64 100644 --- a/src/views/statistics/good_check_gx.vue +++ b/src/views/statistics/good_check_gx.vue @@ -11,6 +11,7 @@ v-model="query.shiftcc" placeholder="尺寸班次" style="width: 130px;" + :clearable="true" > Date: Mon, 29 Dec 2025 15:34:56 +0800 Subject: [PATCH 10/27] =?UTF-8?q?feat:=E7=A6=85=E9=81=93263?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/inmOut.vue | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/views/wpm_gx/inmOut.vue b/src/views/wpm_gx/inmOut.vue index 4d29d5fe..ee05ef72 100644 --- a/src/views/wpm_gx/inmOut.vue +++ b/src/views/wpm_gx/inmOut.vue @@ -10,12 +10,30 @@
+ + Date: Mon, 29 Dec 2025 16:27:10 +0800 Subject: [PATCH 11/27] =?UTF-8?q?fix:=E8=BF=94=E5=B7=A5=E6=97=B6=E8=8E=B7?= =?UTF-8?q?=E5=8F=96qct=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_detail.vue | 2 +- src/views/wpm_bx/mlogbw_check_table.vue | 23 ++++++++++++++++------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 70098762..b7643e8f 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -564,7 +564,6 @@ export default { this.paramsOut.mlog = this.mlogId; this.apiObj = this.$API.wpm.mlogb.list; let userInfo = that.$TOOL.data.get("USER_INFO"); - that.addTemplate.mlog = that.mlogItem.id; that.addTemplate.equipment = ""; that.addTemplate.handle_user = userInfo.id; that.addTemplate.handle_user_name = userInfo.name; @@ -586,6 +585,7 @@ export default { let that = this; that.$API.wpm.mlog.item.req(that.mlogId).then((res) => { that.mlogItem = res; + that.addTemplate.mlog = that.mlogItem.id; that.isSubmit = res.submit_time==null?false:true; if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){ that.getMlogbw(); diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index dba0bcd8..d1fb701f 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -408,13 +408,22 @@ export default { if(that.qct!==''&&that.qct!==null){//输出 that.getdefects(); }else{ - if(that.route_code=='chengpingfanxiu'&&that.material_in!==''&&that.material_in!==null){//输入 - that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'fix' }).then((res) => { - that.qctId = res.id; - that.testdefectss(res); - }).catch(()=>{ - that.getList(); - }) + if(that.material_in!==''&&that.material_in!==null){//输入 + if(that.route_code=='chengpingfanxiu'){ + that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'fix' }).then((res) => { + that.qctId = res.id; + that.testdefectss(res); + }).catch(()=>{ + that.getList(); + }) + }else{ + that.$API.qm.qct.getQct.req({ material: that.material_in,type:'out',tag:'process' }).then((res) => { + that.qctId = res.id; + that.testdefectss(res); + }).catch(()=>{ + that.getList(); + }) + } }else if(that.material_out!==''&&that.material_out!==null){//输入 that.$API.qm.qct.getQct.req({ material: that.material_out,type:'out',tag:'process' }).then((res) => { that.qctId = res.id; From fe464e6ba5487d38bcc035b0fed219c8001f6663 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 16:32:51 +0800 Subject: [PATCH 12/27] =?UTF-8?q?feat:=E7=A6=85=E9=81=93267?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/handover.vue | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index b5211ce5..dd463857 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -363,6 +363,7 @@ export default { { name: "交送", value: "send" }, { name: "接收", value: "recive" }, { name: "合批", value: "hepi" }, + { name: "拆批", value: "chaipi" }, ], searchType: "", options: ["交送", "接收"], @@ -489,23 +490,17 @@ export default { searchTypeQuery() { let that = this; if (that.searchType == "send") { - if(that.mgroupName=="size"||that.mgroupName=="facade"){ - that.query.send_dept = that.deptId; - that.query.recive_dept = ""; - }else{ - that.query.send_mgroup = that.mgroupId; - that.query.recive_mgroup = ""; - } + that.query.send_mgroup = that.mgroupId; + that.query.recive_mgroup = ""; + that.query.mtype =10; } else if (that.searchType == "recive") { - if(that.mgroupName=="size"||that.mgroupName=="facade"){ - that.query.send_dept = ""; - that.query.recive_dept =that.deptId; - }else{ - that.query.recive_mgroup = that.mgroupId; - that.query.send_mgroup = ""; - } + that.query.recive_mgroup = that.mgroupId; + that.query.send_mgroup = ""; + that.query.mtype =10; }else if (that.searchType == "hepi") { that.query.mtype =30; + } else if (that.searchType == "chaipi") { + that.query.mtype =20; } else { that.query.send_mgroup = ""; that.query.recive_mgroup = ""; From 9ba61cc473844a636cb22ff075aa7f51f342cd8f Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 29 Dec 2025 16:56:30 +0800 Subject: [PATCH 13/27] =?UTF-8?q?fix:=E7=A6=85=E9=81=93271?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/stock_statistics.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue index 66262d97..cbe0153d 100644 --- a/src/views/statistics/stock_statistics.vue +++ b/src/views/statistics/stock_statistics.vue @@ -336,20 +336,13 @@ export default { this.echartsOptions = JSON.parse(res.echart_options); } }) - }else{ - if(that.params.type==40){ - query2.select_material="material.cate as cate"; - query2.groupby_material="material.cate"; - query2.select_material_name = ""; - query2.groupby_material_name = ""; - } - this.$API.bi.dataset.exec.req("materialCount2", {query:query2 }).then((res) => { + }else if(that.params.type==40){ + this.$API.bi.dataset.exec.req("helpso_cate", {}).then((res) => { if (res.echart_options) { this.echartsOptions = JSON.parse(res.echart_options); } }) } - }, //更改周预估用量 weekcountChange(row) { From 08a1dd15000968b1c6ccb8059566ed3c68d31a1e Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 30 Dec 2025 09:08:21 +0800 Subject: [PATCH 14/27] =?UTF-8?q?fix:=E7=8E=BB=E7=BA=A4=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8E=BB=E9=99=A4row-click?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogs.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue index 4d82d9fb..37206920 100644 --- a/src/views/wpm_bx/mlogs.vue +++ b/src/views/wpm_bx/mlogs.vue @@ -66,7 +66,6 @@ row-key="id" :params="params" :query="params" - @row-click="table_detail" > Date: Tue, 30 Dec 2025 09:44:12 +0800 Subject: [PATCH 15/27] =?UTF-8?q?feat:=E8=BD=A6=E9=97=B4=E7=89=A9=E6=96=99?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F=E9=A2=9C=E8=89=B2=E6=94=B9?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/inmIn.vue | 14 +++++++------- src/views/wpm_bx/inmOut.vue | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 67a3a54d..80edb36b 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -137,22 +137,22 @@ label="操作" fixed="right" align="center" - width="120" + width="180" > diff --git a/src/views/wpm_bx/inmOut.vue b/src/views/wpm_bx/inmOut.vue index 260fc3be..f82d0a2f 100644 --- a/src/views/wpm_bx/inmOut.vue +++ b/src/views/wpm_bx/inmOut.vue @@ -152,18 +152,18 @@ label="操作" fixed="right" align="center" - width="120" + width="180" > From d87662ce332e04fbf5c71e063d7830b57f07d832 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 30 Dec 2025 10:38:14 +0800 Subject: [PATCH 16/27] =?UTF-8?q?feat:=20=E6=89=93=E5=8D=B0=E6=9C=BA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=94=AF=E6=8C=81ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/wpm.js | 4 ++-- src/layout/components/userbar.vue | 12 +++++++++++- src/utils/tool.js | 7 ++++++- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index 56b4e1f6..8d62634e 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -548,9 +548,9 @@ export default { }, prints: { name: "打印", - req: async function (data) { + req: async function (ip, data) { // return await http.post("http://localhost:8080/prints/", data); - return await http.post("http://127.0.0.1:8080/prints/", data); + return await http.post(`http://${ip}:8080/prints/`, data); }, }, ana:{ diff --git a/src/layout/components/userbar.vue b/src/layout/components/userbar.vue index 38b62c7b..36040479 100644 --- a/src/layout/components/userbar.vue +++ b/src/layout/components/userbar.vue @@ -90,6 +90,11 @@
+ + + + + @@ -138,6 +143,7 @@ export default { scanId:'', scanType:'', printer_name:'', + printer_ip:'', scanVisible:false, }; }, @@ -157,6 +163,7 @@ export default { this.userName = userInfo.username; this.userNameF = this.userName.substring(0, 1); this.printer_name = localStorage.getItem("printer_name") || ""; + this.printer_ip = localStorage.getItem("printer_ip") || "127.0.0.1"; }, methods: { openBook() { @@ -250,7 +257,10 @@ export default { this.setNameVisible=true; }, savePrinter(){ - this.$TOOL.setPrint(this.printer_name); + this.$TOOL.setPrint({ + "printer_name":this.printer_name, + "printer_ip":this.printer_ip + }); this.setNameVisible=false; }, //显示短消息 diff --git a/src/utils/tool.js b/src/utils/tool.js index ddedb5d2..35d080dc 100644 --- a/src/utils/tool.js +++ b/src/utils/tool.js @@ -140,7 +140,12 @@ tool.screen = function (element) { } } tool.setPrint = function (val) { - localStorage.setItem('printer_name', val) + if (val.printer_name) { + localStorage.setItem('printer_name', val.printer_name) + localStorage.setItem('printer_ip', val.printer_ip) + }else{ + localStorage.setItem('printer_name', val) + } } /* 复制对象 */ tool.objCopy = function (obj) { From d3daab7ea8533f6f75202e025fe7f16451c1023f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 30 Dec 2025 10:43:40 +0800 Subject: [PATCH 17/27] =?UTF-8?q?feat:=20=E6=A0=87=E7=AD=BE=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=94=AF=E6=8C=81ip=E4=BC=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/em/equipment.vue | 3 ++- src/views/inm/good.vue | 6 ++++-- src/views/inm/halfgood.vue | 6 ++++-- src/views/inm/mainso.vue | 6 ++++-- src/views/inm/mioitem.vue | 6 ++++-- src/views/inm/mioitemlist.vue | 6 ++++-- src/views/inm/packPrint_form.vue | 3 ++- src/views/template/printmaterial.vue | 6 ++++-- src/views/wpm_bx/inmIn.vue | 9 ++++++--- src/views/wpm_bx/inmOut.vue | 9 ++++++--- src/views/wpm_bx/mlog_detail.vue | 3 ++- src/views/wpm_bx/mlogbw_check.vue | 3 ++- src/views/wpm_bx/mlogbw_check_table.vue | 3 ++- src/views/wpm_bx/wprList.vue | 6 ++++-- src/views/wpm_gx/fmlog_detail.vue | 3 ++- src/views/wpm_gx/helpso.vue | 3 ++- src/views/wpm_gx/inm.vue | 3 ++- src/views/wpm_gx/inmOut.vue | 3 ++- 18 files changed, 58 insertions(+), 29 deletions(-) diff --git a/src/views/em/equipment.vue b/src/views/em/equipment.vue index 8cd2dd46..c96e9958 100644 --- a/src/views/em/equipment.vue +++ b/src/views/em/equipment.vue @@ -364,7 +364,8 @@ table_print(row){ let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); diff --git a/src/views/inm/good.vue b/src/views/inm/good.vue index e482fcaa..5d8fc86c 100644 --- a/src/views/inm/good.vue +++ b/src/views/inm/good.vue @@ -277,6 +277,7 @@ export default { printMaterial(row,type){ let that = this; let printer_name=localStorage.getItem("printer_name"); + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; if(printer_name!==''&&printer_name!==null&&printer_name!==undefined){ if(that.project_code!=='gz'){ if(type=='mb'){ @@ -288,7 +289,7 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = printer_name; - that.$API.wpm.prints.req(obj).then((response) => { +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) @@ -301,7 +302,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); diff --git a/src/views/inm/halfgood.vue b/src/views/inm/halfgood.vue index c11faa94..827d2c3c 100644 --- a/src/views/inm/halfgood.vue +++ b/src/views/inm/halfgood.vue @@ -212,7 +212,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) @@ -225,7 +226,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); diff --git a/src/views/inm/mainso.vue b/src/views/inm/mainso.vue index 37d4d076..03b9f8c9 100644 --- a/src/views/inm/mainso.vue +++ b/src/views/inm/mainso.vue @@ -456,7 +456,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) @@ -469,7 +470,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index b8805479..a1b0a974 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -616,7 +616,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) @@ -629,7 +630,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); diff --git a/src/views/inm/mioitemlist.vue b/src/views/inm/mioitemlist.vue index 385bb49b..2caab089 100644 --- a/src/views/inm/mioitemlist.vue +++ b/src/views/inm/mioitemlist.vue @@ -375,7 +375,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) @@ -388,7 +389,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); diff --git a/src/views/inm/packPrint_form.vue b/src/views/inm/packPrint_form.vue index bf789752..71a713a8 100644 --- a/src/views/inm/packPrint_form.vue +++ b/src/views/inm/packPrint_form.vue @@ -257,7 +257,8 @@ export default { let obj = {}; obj.printer_commands = commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); that.isSaveing = false; that.$emit("success"); diff --git a/src/views/template/printmaterial.vue b/src/views/template/printmaterial.vue index de465546..d9bcd58b 100644 --- a/src/views/template/printmaterial.vue +++ b/src/views/template/printmaterial.vue @@ -118,7 +118,8 @@ export default { that.$message.warning("请等待当前打印任务完成"); } }else{ - that.$API.wpm.prints.req(obj).then((response) => {}); + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => {}); } }) @@ -128,7 +129,8 @@ export default { }, printLabel(obj){ let that = this; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.count_printed ++ if (that.count_printed >= that.print_count){ let printerInterval = that.$TOOL.data.get('printerInterval'); diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 80edb36b..9440a594 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -654,7 +654,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); @@ -697,7 +698,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); @@ -714,7 +716,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) diff --git a/src/views/wpm_bx/inmOut.vue b/src/views/wpm_bx/inmOut.vue index f82d0a2f..10831004 100644 --- a/src/views/wpm_bx/inmOut.vue +++ b/src/views/wpm_bx/inmOut.vue @@ -679,7 +679,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); @@ -722,7 +723,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); @@ -738,7 +740,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index b7643e8f..1e96f370 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -1011,7 +1011,8 @@ export default { let obj = {}; obj.printer_commands = str; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) diff --git a/src/views/wpm_bx/mlogbw_check.vue b/src/views/wpm_bx/mlogbw_check.vue index 3912c624..d71c4955 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -1006,7 +1006,8 @@ export default { let obj = {}; obj.printer_commands = str; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index d1fb701f..334106bf 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -763,7 +763,8 @@ export default { let obj = {}; obj.printer_commands = str; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) diff --git a/src/views/wpm_bx/wprList.vue b/src/views/wpm_bx/wprList.vue index 75d477bb..b432b290 100644 --- a/src/views/wpm_bx/wprList.vue +++ b/src/views/wpm_bx/wprList.vue @@ -276,7 +276,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); @@ -319,7 +320,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }); diff --git a/src/views/wpm_gx/fmlog_detail.vue b/src/views/wpm_gx/fmlog_detail.vue index 0266082e..70d266b4 100644 --- a/src/views/wpm_gx/fmlog_detail.vue +++ b/src/views/wpm_gx/fmlog_detail.vue @@ -364,7 +364,8 @@ export default { let obj = {}; obj.printer_commands = str; obj.printer_name = that.printer_name; - this.$API.wpm.prints.req(obj).then((response) => {}); + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; + this.$API.wpm.prints.req(printer_ip, obj).then((response) => {}); }) }, diff --git a/src/views/wpm_gx/helpso.vue b/src/views/wpm_gx/helpso.vue index b6e5c624..2bc26846 100644 --- a/src/views/wpm_gx/helpso.vue +++ b/src/views/wpm_gx/helpso.vue @@ -157,7 +157,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue index 30afd063..85bf3020 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -456,7 +456,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) diff --git a/src/views/wpm_gx/inmOut.vue b/src/views/wpm_gx/inmOut.vue index ee05ef72..c5377829 100644 --- a/src/views/wpm_gx/inmOut.vue +++ b/src/views/wpm_gx/inmOut.vue @@ -473,7 +473,8 @@ export default { let obj = {}; obj.printer_commands = res.commands; obj.printer_name = that.printer_name; - that.$API.wpm.prints.req(obj).then((response) => { + let printer_ip=localStorage.getItem("printer_ip")||'127.0.0.1'; +that.$API.wpm.prints.req(printer_ip, obj).then((response) => { that.$message.success("打印成功"); }); }) From 591ebf185c77030506ede6620096cbd4e3e3847d Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 30 Dec 2025 13:45:07 +0800 Subject: [PATCH 18/27] =?UTF-8?q?feat:=E7=A6=85=E9=81=93266?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/good_check_gx.vue | 81 ++++++++++++++++++++------ 1 file changed, 62 insertions(+), 19 deletions(-) diff --git a/src/views/statistics/good_check_gx.vue b/src/views/statistics/good_check_gx.vue index 3395fb64..cceff688 100644 --- a/src/views/statistics/good_check_gx.vue +++ b/src/views/statistics/good_check_gx.vue @@ -441,47 +441,90 @@ export default { let that = this; that.params.page = 1; that.params.querys=[]; - let arr1 = [{field:"data__has_key",compare:"",value:"尺寸检验_日期"}], - arr2 = [{field:"data__has_key",compare:"",value:"外观检验_日期"}], - arr3 = [{field:"data__has_key",compare:"",value:"外观检验_返修_日期"}]; + let arrays = {}; + if(that.query.batch != "" && that.query.batch != null && that.query.batch != undefined&&that.query.batch.indexOf(' ')){ + let arrs = that.query.batch.split(' '); + console.log('arrs',arrs); + arrs.forEach((item, index) => { + let obj = {}; + obj.value = item; + obj.field = "batch"; + obj.compare = "contains"; + let newArrayName1 = 'arr1' + index; + let newArrayName2 = 'arr2' + index; + let newArrayName3 = 'arr3' + index; + console.log('obj',obj); + arrays[newArrayName1] = [{field:"data__has_key",compare:"",value:"尺寸检验_日期"},obj]; + arrays[newArrayName2] = [{field:"data__has_key",compare:"",value:"外观检验_日期"},obj]; + arrays[newArrayName3] = [{field:"data__has_key",compare:"",value:"外观检验_返修_日期"},obj]; + }); + }else{ + let obj = {}; + obj.value =that.query.batch; + obj.field = "batch"; + obj.compare = "contains"; + arrays.arr1=[{field:"data__has_key",compare:"",value:"尺寸检验_日期"},obj]; + arrays.arr2=[{field:"data__has_key",compare:"",value:"外观检验_日期"},obj]; + arrays.arr3=[{field:"data__has_key",compare:"",value:"外观检验_返修_日期"},obj]; + } + console.log('arrays',arrays); for(let key in that.query){ - if(that.query[key] != ""&&that.query[key] != null&&that.query[key] != undefined){ + if(that.query[key] != ""&&that.query[key] != null&&that.query[key] != undefined&&key!='batch'){ let obj = {}; obj.value = that.query[key]; - if(key=='batch'){ - obj.field = "batch"; - obj.compare = "contains"; - }else if(key=='cc_data_start'){ + if(key=='cc_data_start'){ obj.compare = "gte"; obj.field = "data__尺寸检验_日期"; - }else if(key=='cc_data_end'){ + } + if(key=='cc_data_end'){ obj.compare = "lte"; obj.field = "data__尺寸检验_日期"; - }else if(key=='shiftcc'){ + } + if(key=='shiftcc'){ obj.compare = ""; obj.field = "data__尺寸检验_班次"; - }else if(key=='wg_data_start'){ + } + if(key=='wg_data_start'){ obj.compare = "gte"; obj.field = "data__外观检验_日期"; - }else if(key=='wg_data_end'){ + } + if(key=='wg_data_end'){ obj.compare = "lte"; obj.field = "data__外观检验_日期"; - }else if(key=='shiftwg'){ + } + if(key=='shiftwg'){ obj.compare = ""; obj.field = "data__外观检验_班次"; - }else if(key=='fx_data_start'){ + } + if(key=='fx_data_start'){ obj.compare = "gte"; obj.field = "data__外观检验_返修_日期"; - }else if(key=='fx_data_end'){ + } + if(key=='fx_data_end'){ obj.compare = "lte"; obj.field = "data__外观检验_返修_日期"; } - arr1.push(obj); - arr2.push(obj); - arr3.push(obj); + if(that.query.batch.indexOf(' ')){ + let arrs = that.query.batch.split(' '); + arrs.forEach((item,index)=>{ + let newArrayName1 = 'arr1' + index; + let newArrayName2 = 'arr2' + index; + let newArrayName3 = 'arr3' + index; + arrays[newArrayName1].push(obj); + arrays[newArrayName2].push(obj); + arrays[newArrayName3].push(obj); + + }); + }else{ + arrays.arr1.push(obj); + arrays.arr2.push(obj); + arrays.arr3.push(obj); + } } } - that.params.querys.push(arr1,arr2,arr3); + for(let key in arrays){ + that.params.querys.push(arrays[key]); + } this.getList(); }, getSummaries({ columns, data }) { From 3297fa5a9381da932a92241701450acc2442da44 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 30 Dec 2025 14:20:45 +0800 Subject: [PATCH 19/27] =?UTF-8?q?feat:=E7=A6=85=E9=81=93237?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitemlist.vue | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/src/views/inm/mioitemlist.vue b/src/views/inm/mioitemlist.vue index 2caab089..f3013649 100644 --- a/src/views/inm/mioitemlist.vue +++ b/src/views/inm/mioitemlist.vue @@ -29,6 +29,20 @@ > + + + Date: Tue, 30 Dec 2025 14:59:35 +0800 Subject: [PATCH 20/27] =?UTF-8?q?fix:=E5=BA=93=E5=AD=98=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=87=BA=E5=85=A5=E5=BA=93=E8=AE=B0=E5=BD=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E6=8C=89=E9=92=AE=E2=80=9C=E6=92=A4=E9=94=80=E2=80=9D?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E2=80=9C=E6=92=A4=E5=9B=9E=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/good_mio.vue | 15 +++------------ src/views/inm/halfgood_mio.vue | 6 +++--- src/views/inm/mainso_mio.vue | 6 +++--- src/views/inm/mio.vue | 6 +++--- 4 files changed, 12 insertions(+), 21 deletions(-) diff --git a/src/views/inm/good_mio.vue b/src/views/inm/good_mio.vue index d1043bda..8b682d74 100644 --- a/src/views/inm/good_mio.vue +++ b/src/views/inm/good_mio.vue @@ -123,16 +123,7 @@ v-auth="'mio.submit'" v-if="scope.row.state == 20" > - 撤销 - - - 撤销 + 撤回 {}); }, revert(row) { - this.$confirm(`确定撤销该操作吗?`, "提示", { + this.$confirm(`确定撤回该操作吗?`, "提示", { type: "warning", }) .then(() => { this.$API.inm.mio.revert .req(row.id) .then((res) => { - this.$message.success("撤销成功"); + this.$message.success("撤回成功"); this.$refs.table.refresh(); return res; }) diff --git a/src/views/inm/halfgood_mio.vue b/src/views/inm/halfgood_mio.vue index 973ecc15..5fcf7f7f 100644 --- a/src/views/inm/halfgood_mio.vue +++ b/src/views/inm/halfgood_mio.vue @@ -145,7 +145,7 @@ v-auth="'mio.submit'" v-if="scope.row.state == 20" > - 撤销 + 撤回 @@ -259,14 +259,14 @@ export default { .catch(() => {}); }, revert(row) { - this.$confirm(`确定撤销该操作吗?`, "提示", { + this.$confirm(`确定撤回该操作吗?`, "提示", { type: "warning", }) .then(() => { this.$API.inm.mio.revert .req(row.id) .then((res) => { - this.$message.success("撤销成功"); + this.$message.success("撤回成功"); this.$refs.table.refresh(); return res; }) diff --git a/src/views/inm/mainso_mio.vue b/src/views/inm/mainso_mio.vue index 63ad6549..243f4aa3 100644 --- a/src/views/inm/mainso_mio.vue +++ b/src/views/inm/mainso_mio.vue @@ -154,7 +154,7 @@ v-auth="'mio.submit'" v-if="scope.row.state == 20" > - 撤销 + 撤回 @@ -275,14 +275,14 @@ export default { .catch(() => {}); }, revert(row) { - this.$confirm(`确定撤销该操作吗?`, "提示", { + this.$confirm(`确定撤回该操作吗?`, "提示", { type: "warning", }) .then(() => { this.$API.inm.mio.revert .req(row.id) .then((res) => { - this.$message.success("撤销成功"); + this.$message.success("撤回成功"); this.$refs.table.refresh(); return res; }) diff --git a/src/views/inm/mio.vue b/src/views/inm/mio.vue index c5e67611..5edfb9ec 100644 --- a/src/views/inm/mio.vue +++ b/src/views/inm/mio.vue @@ -127,7 +127,7 @@ (scope.row.type == 'other_in' || scope.row.type == 'other_out')" > - 撤销 + 撤回 { this.$API.inm.mio.revert .req(row.id) .then((res) => { - this.$message.success("撤销成功"); + this.$message.success("撤回成功"); this.$refs.table.refresh(); return res; }) From 458c9a674dfcc2c6d7d6c22cac55bbb90858edea Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 30 Dec 2025 15:22:01 +0800 Subject: [PATCH 21/27] =?UTF-8?q?fix:mlogb=5Fcheck=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E4=BA=BA=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mlogb_check.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/wpm_gx/mlogb_check.vue b/src/views/wpm_gx/mlogb_check.vue index 155ce09a..eca59188 100644 --- a/src/views/wpm_gx/mlogb_check.vue +++ b/src/views/wpm_gx/mlogb_check.vue @@ -386,6 +386,8 @@ export default { that.visible = true; that.mlogbItem = data; that.form.batch = data.batch; + that.form.test_user = data.test_user; + that.form.test_user_name = data.test_user_name; that.form.count_real =Number(data.count_real); that.form.count_ok= Number(data.count_ok); that.form.count_ok_full= Number(data.count_ok_full); From d8899317a861539042912d28b15b64ddddfcecce Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 31 Dec 2025 09:30:23 +0800 Subject: [PATCH 22/27] fix: --- src/api/model/qm.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/api/model/qm.js b/src/api/model/qm.js index bcdacbe0..b15c4e2a 100644 --- a/src/api/model/qm.js +++ b/src/api/model/qm.js @@ -365,5 +365,11 @@ export default { return await http.post(`${config.API_URL}/qm/ftestwork/${id}/submit/`); }, }, + revert: { + name: "撤回检验工作", + req: async function (id) { + return await http.post(`${config.API_URL}/qm/ftestwork/${id}/revert/`); + }, + }, }, }; From b63013d9a728c4d45e2aca9ed2bec185d1e72ecc Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 31 Dec 2025 10:00:10 +0800 Subject: [PATCH 23/27] =?UTF-8?q?fix:=E6=A3=80=E9=AA=8C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=8F=AF=E6=92=A4=E5=9B=9E=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/check_drawer.vue | 35 +++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/views/wpm_gx/check_drawer.vue b/src/views/wpm_gx/check_drawer.vue index e29a9233..1ff8ebe6 100644 --- a/src/views/wpm_gx/check_drawer.vue +++ b/src/views/wpm_gx/check_drawer.vue @@ -54,17 +54,24 @@ - +
@@ -97,11 +104,21 @@ export default { this.apiObj = this.$API.qm.ftestwork.list; return this; }, - table_del(row){ - this.$API.qm.ftestwork.delete.req(row.id).then((res) => { - this.$refs.drawer_table.fetch(); + table_revert(row){ + this.$API.qm.ftestwork.revert.req(row.id).then((res) => { + this.$refs.drawer_table.refresh(); }); }, + table_delete(row){ + let that = this; + that.$confirm("确定删除该检验记录吗?", "提示", { + type: "warning", + }).then(() => { + that.$API.qm.ftestwork.delete.req(row.id).then((res) => { + that.$refs.drawer_table.refresh(); + }); + }).catch(() => {}); + }, }, }; From 60ca063efeeb8898291ebfa5418c288fb7c149ed Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 31 Dec 2025 12:49:17 +0800 Subject: [PATCH 24/27] =?UTF-8?q?feat:=E7=A6=85=E9=81=93258?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem_check.vue | 208 ++++++++++++++++++++++++-------- 1 file changed, 157 insertions(+), 51 deletions(-) diff --git a/src/views/inm/mioitem_check.vue b/src/views/inm/mioitem_check.vue index 20fa0bde..b061c83d 100644 --- a/src/views/inm/mioitem_check.vue +++ b/src/views/inm/mioitem_check.vue @@ -7,7 +7,7 @@ @closed="$emit('closed')" > - + - + + + + {{ objitem.material_name }} + + + + + {{ objitem.batch }} + + + + + + + + + + + + + + + + + + + + + + + + + 异常项: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ objitem.material_name }} @@ -605,16 +737,6 @@ - - - - - + - - - - - - - - - - - - + { this.tableHeight = document.getElementById('mioitemwMain').clientHeight-20; },500) @@ -1011,7 +1108,14 @@ export default { that.form.material_name = that.objitem.material_name; that.form.batch = that.objitem.batch; that.form.count = that.objitem.count; + that.form.count_ok = that.objitem.count; that.form.count_bag = that.objitem.count_bag; + if(that.project_code=='gx'){ + that.form.count_n_zw = 0;//直径 + that.form.count_n_zz = 0;//亮面 + that.form.count_n_b = 0;//崩面 + that.form.count_n_dl = 0;//长度 + } } if ( (that.type == "do_in" && that.cate == "halfgood") || @@ -1096,8 +1200,12 @@ export default { } return this; }, + gxPurInCountChange(){ + this.form.count_ok = this.form.count - this.form.count_notok; + }, nqtChange(){ - this.form.count_notok = this.form.count_n_qt; + this.form.count_notok = this.form.count_n_zw+this.form.count_n_zz+this.form.count_n_b+this.form.count_n_dl; + this.form.count_ok = this.form.count - this.form.count_notok; }, getMaterialItem(){ let that = this; @@ -1373,14 +1481,12 @@ export default { that.$message.success("操作成功"); }); } else { - that.$API.inm.mioitem.test - .req(that.mioitemId, that.form) - .then((res) => { - that.isSaveing = false; - that.$emit("success"); - that.visible = false; - that.$message.success("操作成功"); - }); + that.$API.inm.mioitem.test.req(that.mioitemId, that.form).then((res) => { + that.isSaveing = false; + that.$emit("success"); + that.visible = false; + that.$message.success("操作成功"); + }); } } catch (err) { //可以处理校验错误 From 001d9d68f7d55b67ba2a4b85a78c0b6416a5fc63 Mon Sep 17 00:00:00 2001 From: shijing Date: Sun, 4 Jan 2026 09:00:47 +0800 Subject: [PATCH 25/27] =?UTF-8?q?fix:=E7=99=BB=E5=BD=95=E9=A1=B5=E5=BF=98?= =?UTF-8?q?=E8=AE=B0=E5=AF=86=E7=A0=81=E5=88=86=E9=A1=B9=E7=9B=AE=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/components/passwordForm.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index 6943ee0d..fff7ff24 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -108,8 +108,10 @@ export default { }, }, mounted() { - this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code; - console.log('this.project_code',this.project_code); + this.$nextTick(()=>{ + this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code; + console.log('this.project_code',this.project_code); + }); }, methods: { async login() { From 3e0fd5f4478e059f485234a7fc92e81cce46dd69 Mon Sep 17 00:00:00 2001 From: shijing Date: Sun, 4 Jan 2026 10:44:04 +0800 Subject: [PATCH 26/27] =?UTF-8?q?fix:=E7=A6=85=E9=81=93287?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/bxerp/cpccjc.vue | 17 +++---- src/views/statistics/bxerp/cpwgfj1.vue | 17 +++---- src/views/statistics/bxerp/cpwgfj2.vue | 17 +++---- src/views/statistics/bxerp/cpwgnzcj.vue | 17 +++---- src/views/statistics/bxerp/cpwgnzfj.vue | 17 +++---- src/views/statistics/bxerp/cpxnjy.vue | 17 +++---- src/views/statistics/bxerp/cpzj.vue | 17 +++---- src/views/statistics/bxerp/fenjian.vue | 17 +++---- src/views/statistics/bxerp/gzcpjc.vue | 17 +++---- src/views/statistics/bxerp/maopi.vue | 56 ++++++++++++----------- src/views/statistics/bxerp/niuzhuan.vue | 16 +++---- src/views/statistics/bxerp/zhongjian1.vue | 16 +++---- src/views/statistics/bxerp/zhongjian2.vue | 16 +++---- 13 files changed, 128 insertions(+), 129 deletions(-) diff --git a/src/views/statistics/bxerp/cpccjc.vue b/src/views/statistics/bxerp/cpccjc.vue index ddae9801..cece0888 100644 --- a/src/views/statistics/bxerp/cpccjc.vue +++ b/src/views/statistics/bxerp/cpccjc.vue @@ -2,6 +2,11 @@
+ - 导出
@@ -31,6 +30,8 @@ stripe > + +