+
-
+
@@ -175,6 +174,7 @@ import { usePrint } from "@/store/print.js";
import { printerAdd, printerDetail } from "@/api/account.js";
import classify from "@/components/classify/index.vue";
import { useGoods } from '@/store/goods.js'
+import receiptPrint from "@/components/lodop/receiptPrint.js";
const goodsStore = useGoods()
const classifyRef = ref(null);
@@ -240,7 +240,7 @@ const form = ref({
categoryList: [], // 分类
sort: '',
receiptSize: '58mm', // 小票尺寸 58mm 80mm
- classifyPrint: '1', // 分类打印 0-所有 1-部分分类 2-部分商品
+ classifyPrint: '0', // 分类打印 0-所有 1-部分分类 2-部分商品
printNum: '', // 打印数量 c1m1^2 = 顾客+商家[2张] m1^1 = 商家[1张] c1^1顾客[1张] c2m1^3顾客2+商家1[3张]
kitchenPrintMode: 'all', // 打印方式 all-全部打印 normal-仅打印结账单「前台」one-仅打印制作单「厨房」queue-仅打印排队取号
printContentType: [],
@@ -308,7 +308,7 @@ function printHandle() {
printData.printTime = dayjs().format("YYYY-MM-DD HH:mm:ss");
if (form.value.connectionType === 'USB') {
- printStore.pushReceiptData(printData, false);
+ receiptPrint(printData,)
} else if (form.value.connectionType === '局域网') {
ipcRenderer.send('ORDER', JSON.stringify({
printerIp: form.value.address,
@@ -402,7 +402,7 @@ async function tbPrintMachineDetailAjax(id) {
})
console.log(form.value);
-
+
// if (printTypeList.value[1].values.length > 0 && form.value.classifyPrint == 1) {
// form.value.classifyPrint = 1