优化打印

This commit is contained in:
gyq 2024-10-17 09:16:59 +08:00
parent 5805b1fd7c
commit 9d73a49a06
3 changed files with 5 additions and 3 deletions

View File

@ -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();

View File

@ -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)
}
)

View File

@ -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)
}
)