调试打印

This commit is contained in:
gyq
2024-03-05 09:52:20 +08:00
parent 0fa0d56558
commit d00612da5a
10 changed files with 143 additions and 93 deletions

View File

@@ -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))
}
// 订单已支付