From 5805b1fd7cd2bf089635af710199b8809eba8b5b Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 16 Oct 2024 17:00:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=95=BF=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=89=93=E5=8D=B0=E6=B2=A1=E6=9C=89=E6=8A=98?= =?UTF-8?q?=E6=89=A3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/lodop/receiptPrint.js | 4 ++-- src/store/print.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/lodop/receiptPrint.js b/src/components/lodop/receiptPrint.js index 95eab94..1fe39ef 100644 --- a/src/components/lodop/receiptPrint.js +++ b/src/components/lodop/receiptPrint.js @@ -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 diff --git a/src/store/print.js b/src/store/print.js index 4581d36..e4f090f 100644 --- a/src/store/print.js +++ b/src/store/print.js @@ -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();