From dbb4146b01abf0e0b59e651ddf9f1225a024cecc Mon Sep 17 00:00:00 2001 From: ruanqi Date: Tue, 10 Jan 2023 18:10:15 +0800 Subject: [PATCH] =?UTF-8?q?0412=20=E6=96=B0=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/autoPrint/autoPrintStock.vue | 18 +- src/views/modules/print/print_outBox_label.js | 187 ++++++++++++++++++ 2 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 src/views/modules/print/print_outBox_label.js diff --git a/src/views/modules/autoPrint/autoPrintStock.vue b/src/views/modules/autoPrint/autoPrintStock.vue index cf488b4..87f3651 100644 --- a/src/views/modules/autoPrint/autoPrintStock.vue +++ b/src/views/modules/autoPrint/autoPrintStock.vue @@ -13,6 +13,9 @@ import { printMaterialLabel, } from "@/views/modules/print/print_stock_label.js" + import { + printOutBoxLabel, + } from "@/views/modules/print/print_outBox_label.js" export default { name: 'autoPrintStock', data () { @@ -30,7 +33,11 @@ }, 3000) }, printStock(){ - getStockPrintList(this.ip).then(({data}) => { + let ipp='no' + if(this.ip){ + ipp=this.ip + } + getStockPrintList(ipp).then(({data}) => { if (data.code == 0) { let array=[]; if(data.rows.length>0){ @@ -51,6 +58,15 @@ } } + let array2=[]; + if(data.rows2.length>0){ + for (let i = 0; i < data.rows2.length; i++) { + for (let j = 0; j