feat:样品标签打印

This commit is contained in:
houjunxiang
2025-11-24 16:48:57 +08:00
parent c3630e74ec
commit c504c9b2a7
18 changed files with 97 additions and 712 deletions

View File

@@ -76,26 +76,26 @@ const userInfo = computed(() => nx.$store('user').userInfo)
const goTo = url => {
nx.$router.go(url)
}
// onShow(() => {
// //连接打印服务
// let printList = uni.getStorageSync('KEY_PRINT_LIST')
// if (printList && printList.length > 0) {
// for (let print of printList) {
// nx.$print.open(print.printIp, print.printPort)
// }
// } else {
// uni.showModal({
// title: '提示',
// showCancel: false,
// content: '打印服务未配置,请在系统设置中配置打印服务',
// success: function (res) {
// uni.navigateTo({
// url: '/pages/setting/print'
// })
// }
// })
// }
// })
onShow(() => {
//连接打印服务
let printList = uni.getStorageSync('KEY_PRINT_LIST')
if (printList && printList.length > 0) {
for (let print of printList) {
nx.$print.open(print.printIp, print.printPort)
}
} else {
uni.showModal({
title: '提示',
showCancel: false,
content: '打印服务未配置,请在系统设置中配置打印服务',
success: function (res) {
uni.navigateTo({
url: '/pages/setting/print'
})
}
})
}
})
// 生命周期
onMounted(() => {})
// 动态设置 grid 列数