优化长连接订单打印没有折扣的问题
This commit is contained in:
parent
b1272852d8
commit
5805b1fd7c
|
|
@ -5,8 +5,8 @@ import { formatDecimal } from "@/utils/index.js";
|
|||
* 打印订单小票
|
||||
*/
|
||||
export default (data) => {
|
||||
console.log(data);
|
||||
console.log("data.deviceName===", data.deviceName);
|
||||
console.log('需要打印的订单数据===',data);
|
||||
// console.log("data.deviceName===", data.deviceName);
|
||||
let LODOP = getLodop();
|
||||
LODOP.PRINT_INIT("打印小票");
|
||||
// 设置打印纸大小D
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ export const usePrint = defineStore({
|
|||
props.orderInfo.masterId = props.orderInfo.tableName;
|
||||
}
|
||||
props.orderInfo.outNumber = props.outNumber;
|
||||
props.discountAmount = props.amount
|
||||
|
||||
this.receiptList.push(props);
|
||||
this.startReceiptPrint();
|
||||
|
|
|
|||
Loading…
Reference in New Issue