新增动态获取标签小票

This commit is contained in:
gyq
2024-11-01 10:47:57 +08:00
parent 8935b9d2f2
commit 8f42ba8189
7 changed files with 23 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ import { defineStore } from "pinia";
import { ipcRenderer } from "electron";
import { bySubType } from "@/api/device";
import { useUser } from "@/store/user.js";
import { useShop } from "@/store/shop.js";
import dayjs from "dayjs";
import receiptPrint from "@/components/lodop/receiptPrint.js";
import lodopPrintWork from "@/components/lodop/lodopPrintWork.js";
@@ -64,6 +65,8 @@ export const usePrint = defineStore({
},
// 打印标签小票
labelPrint(props) {
const shopInfo = useShop();
if (
this.deviceLableList.length &&
this.checkLocalPrint(this.deviceLableList[0].config.deviceName)
@@ -97,6 +100,7 @@ export const usePrint = defineStore({
createdAt: dayjs(props.createdAt).format("YYYY-MM-DD HH:mm:ss"),
isPrint: false,
count: `${count}/${sum}`,
ticketLogo: shopInfo.info.ticketLogo,
});
}
}