提交代码

This commit is contained in:
gyq
2024-07-07 09:11:37 +08:00
parent 8e69969c0e
commit de8c5e20f4
4 changed files with 179 additions and 8 deletions

View File

@@ -284,7 +284,7 @@ function reConnect(wsUrl) {
// reConnectCount.value++
// initWebSocket(wsUrl)
ws.value.reconnect();
}, 1000)
}, 2000)
}
@@ -412,11 +412,11 @@ onMounted(() => {
getBarCode(e)
})
// 监听网络在线状态
window.addEventListener("onLine", updateInfo)
// 监听网络离线
window.addEventListener("offLine", updateInfo)
// 监听网络信息变化
navigator.connection.addEventListener('change', updateInfo)
// window.addEventListener("onLine", updateInfo)
// // 监听网络离线
// window.addEventListener("offLine", updateInfo)
// // 监听网络信息变化
// navigator.connection.addEventListener('change', updateInfo)
})
</script>

View File

@@ -84,6 +84,7 @@ export const usePrint = defineStore({
skuName: item.skuName,
masterId: props.orderInfo.tableName,
deviceName: this.deviceLableList[0].config.deviceName,
// deviceName: "Xprinter XP-T202UA",
createdAt: dayjs(props.createdAt).format("YYYY-MM-DD HH:mm:ss"),
isPrint: false,
count: `${count}/${sum}`,