优化打印 订单新增桌号和时间筛选
This commit is contained in:
@@ -58,7 +58,10 @@ export const usePrint = defineStore({
|
||||
},
|
||||
// 打印标签小票
|
||||
labelPrint(props) {
|
||||
if (this.checkLocalPrint(this.deviceLableList[0].config.deviceName)) {
|
||||
if (
|
||||
this.deviceLableList.length &&
|
||||
this.checkLocalPrint(this.deviceLableList[0].config.deviceName)
|
||||
) {
|
||||
let pids = this.deviceLableList[0].config.categoryList.map(
|
||||
(item) => item.id
|
||||
);
|
||||
@@ -94,6 +97,8 @@ export const usePrint = defineStore({
|
||||
});
|
||||
// 执行打印操作
|
||||
this.startLabelPrint();
|
||||
} else {
|
||||
console.log("没有打印机");
|
||||
}
|
||||
},
|
||||
// 开始打印标签数据
|
||||
|
||||
Reference in New Issue
Block a user