diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index 360649aa..29d06503 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -200,6 +200,13 @@ > 删除 + + 物料标签 + @@ -413,6 +420,29 @@ export default { that.printVisible = true; }) },//打印 + //打印物料标签 + printMaterial(row){ + let that = this; + that.apiObj.req({tid:row.id}).then((res) => { + let code = res.code_label; + let str = [ + "SIZE 40 mm,70 mm", + "GAP 7 mm,7 mm", + "CLS", + "REFERENCE 0,0", + 'QRCODE 30,400,H,5,A,0,"' +code +'"', + "WINTEXT 200,550,28,90,0,0,Simhei," + res.material_name, + "WINTEXT 240,550,28,90,0,0,Simhei," + res.batch, + "PRINT 1", + ]; + let obj = {}; + obj.printer_commands = str; + obj.printer_name = that.printer_name; + that.$API.wpm.prints.req(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 5e515083..fcbb153d 100644 --- a/src/views/wpm_bx/mlogbw_check.vue +++ b/src/views/wpm_bx/mlogbw_check.vue @@ -18,21 +18,21 @@ {{ scope.row.number }} + - - - + + @@ -105,6 +105,76 @@ > +