From f42951682d12791363b1f60ed819b1a1319929db Mon Sep 17 00:00:00 2001 From: xiangxy Date: Fri, 25 Nov 2022 08:43:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E5=80=BC=E6=89=93=E5=8D=B0=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/WarehouseManage/CustomerLabelPrint.vue | 2 +- utils/getData2.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/WarehouseManage/CustomerLabelPrint.vue b/pages/WarehouseManage/CustomerLabelPrint.vue index d84223b..da8bb51 100644 --- a/pages/WarehouseManage/CustomerLabelPrint.vue +++ b/pages/WarehouseManage/CustomerLabelPrint.vue @@ -107,7 +107,7 @@ return } try { - let res = await customerPrint(this.val1) + let res = await customerPrint(this.val1, this.$store.getters.setPrintName) this.disabled2 = false this.val1 = '' uni.showToast({ diff --git a/utils/getData2.js b/utils/getData2.js index f8a095e..ad09f01 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -268,10 +268,11 @@ export const customerInfo = (box_no) => request({ } }) // 1.1木箱打印 -export const customerPrint = (box_no) => request({ +export const customerPrint = (box_no, ptype) => request({ url:'api/pda/print/customerPrint', data: { - box_no: box_no + box_no: box_no, + print_type: ptype } }) // 1.3打印机类型