优化标签打印

This commit is contained in:
gyq
2024-06-23 16:22:55 +08:00
parent 328b512411
commit ed8b593c1a
3 changed files with 6 additions and 6 deletions

View File

@@ -226,14 +226,14 @@ const printLabel = (list) => {
async function printHandle() {
try {
if (!isPrint.value) return;
if (printList.value.length) {
if (printLabelList.value.length) {
const data = {
shop_name: store.userInfo.merchantName,
carts: props.cart,
amount: props.amount,
remark: props.remark,
orderInfo: props.orderInfo,
deviceName: printList.value[0].config.deviceName,
deviceName: printLabelList.value[0].config.deviceName,
createdAt: dayjs(props.orderInfo.createdAt).format(
"YYYY-MM-DD HH:mm:ss"
),