feat:样品标签打印
This commit is contained in:
@@ -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 列数
|
||||
|
||||
Reference in New Issue
Block a user