调试打印
This commit is contained in:
@@ -94,13 +94,14 @@ const isPrint = ref(true)
|
||||
|
||||
function printHandle() {
|
||||
if (!isPrint.value) return
|
||||
// const data = {
|
||||
// shop_name: '测试打印',
|
||||
// carts: props.cart,
|
||||
// amount: props.amount,
|
||||
// remark: props.remark
|
||||
// }
|
||||
ipcRenderer.sendSync('printerInfoSync', '测试打印')
|
||||
const data = {
|
||||
shop_name: '大客餐饮',
|
||||
carts: props.cart,
|
||||
amount: props.amount,
|
||||
remark: props.remark,
|
||||
orderId: props.orderId
|
||||
}
|
||||
ipcRenderer.sendSync('printerInfoSync', JSON.stringify(data))
|
||||
}
|
||||
|
||||
// 订单已支付
|
||||
|
||||
Reference in New Issue
Block a user