更新折扣优惠和代客下单

This commit is contained in:
gyq
2024-08-26 18:28:24 +08:00
parent 48a3443c5f
commit fbfee69b25
15 changed files with 611 additions and 169 deletions

View File

@@ -1,4 +1,6 @@
import getLodop from "./LodopFuncs.js";
import { formatDecimal } from "@/utils/index.js";
/**
* 打印订单小票
*/
@@ -75,16 +77,22 @@ export default (data) => {
</div>
<div style="margin-top: 6px; font-size: 22px;display:flex;justify-content: space-between;">
<span>应收</span>
<span>¥${data.amount}</span>
<span>¥${data.discountAmount}</span>
</div>
<div style="margin-top: 4px; font-size: 12px;">
<span>余额:</span>
<span>0.00</span>
<span>共计:</span>
<span>${data.amount}</span>
<span style="margin-left: 10px;">优惠:</span>
<span>¥${formatDecimal(data.amount - data.discountAmount)}(${
data.discount
}折)</span>
</div>
<div style="margin-top: 6px;margin-bottom: 6px;width: 100%">
<hr/>
</div>
<div style="margin-top: 4px; font-size: 16px;font-weight: bold;">备注:${data.remark}</div>
<div style="margin-top: 4px; font-size: 16px;font-weight: bold;">备注:${
data.remark
}</div>
<div style="margin-top: 4px; font-size: 12px;">
打印时间:${data.printTime}
</div>