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打印机类型