优化打印
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.masterId = props.orderInfo.tableName;
|
||||||
}
|
}
|
||||||
props.orderInfo.outNumber = props.outNumber;
|
props.orderInfo.outNumber = props.outNumber;
|
||||||
props.discountAmount = props.amount
|
if (!props.discountAmount) {
|
||||||
|
props.discountAmount = props.amount;
|
||||||
|
}
|
||||||
|
|
||||||
this.receiptList.push(props);
|
this.receiptList.push(props);
|
||||||
this.startReceiptPrint();
|
this.startReceiptPrint();
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ async function printOrderLable() {
|
||||||
name: item.productName,
|
name: item.productName,
|
||||||
number: item.num,
|
number: item.num,
|
||||||
skuName: item.productSkuName,
|
skuName: item.productSkuName,
|
||||||
salePrice: formatDecimal(item.priceAmount / item.num),
|
salePrice: formatDecimal(item.price),
|
||||||
totalAmount: formatDecimal(item.priceAmount)
|
totalAmount: formatDecimal(item.priceAmount)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -502,7 +502,7 @@ const print = lodash.throttle(
|
||||||
name: item.productName,
|
name: item.productName,
|
||||||
number: item.num,
|
number: item.num,
|
||||||
skuName: item.productSkuName,
|
skuName: item.productSkuName,
|
||||||
salePrice: formatDecimal(item.priceAmount / item.num),
|
salePrice: formatDecimal(item.price),
|
||||||
totalAmount: formatDecimal(item.priceAmount)
|
totalAmount: formatDecimal(item.priceAmount)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue