优化打印
This commit is contained in:
parent
5805b1fd7c
commit
9d73a49a06
|
|
@ -159,7 +159,9 @@ export const usePrint = defineStore({
|
|||
props.orderInfo.masterId = props.orderInfo.tableName;
|
||||
}
|
||||
props.orderInfo.outNumber = props.outNumber;
|
||||
props.discountAmount = props.amount
|
||||
if (!props.discountAmount) {
|
||||
props.discountAmount = props.amount;
|
||||
}
|
||||
|
||||
this.receiptList.push(props);
|
||||
this.startReceiptPrint();
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ async function printOrderLable() {
|
|||
name: item.productName,
|
||||
number: item.num,
|
||||
skuName: item.productSkuName,
|
||||
salePrice: formatDecimal(item.priceAmount / item.num),
|
||||
salePrice: formatDecimal(item.price),
|
||||
totalAmount: formatDecimal(item.priceAmount)
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -502,7 +502,7 @@ const print = lodash.throttle(
|
|||
name: item.productName,
|
||||
number: item.num,
|
||||
skuName: item.productSkuName,
|
||||
salePrice: formatDecimal(item.priceAmount / item.num),
|
||||
salePrice: formatDecimal(item.price),
|
||||
totalAmount: formatDecimal(item.priceAmount)
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue