传值打印机

This commit is contained in:
2022-11-25 08:43:55 +08:00
parent dc86889653
commit f42951682d
2 changed files with 4 additions and 3 deletions

View File

@@ -107,7 +107,7 @@
return return
} }
try { try {
let res = await customerPrint(this.val1) let res = await customerPrint(this.val1, this.$store.getters.setPrintName)
this.disabled2 = false this.disabled2 = false
this.val1 = '' this.val1 = ''
uni.showToast({ uni.showToast({

View File

@@ -268,10 +268,11 @@ export const customerInfo = (box_no) => request({
} }
}) })
// 1.1木箱打印 // 1.1木箱打印
export const customerPrint = (box_no) => request({ export const customerPrint = (box_no, ptype) => request({
url:'api/pda/print/customerPrint', url:'api/pda/print/customerPrint',
data: { data: {
box_no: box_no box_no: box_no,
print_type: ptype
} }
}) })
// 1.3打印机类型 // 1.3打印机类型