feat:样品库管理

This commit is contained in:
houjunxiang
2025-11-20 17:23:48 +08:00
parent 0494d224be
commit 7ee3df9ab9
32 changed files with 910 additions and 235 deletions

View File

@@ -34,18 +34,38 @@ const popupShow = ref(false)
const menuItemList = ref([
{
url: '/pages/sampleWarehouse/sampleSearch/index',
otherConf: { icon: '/static/images/menus/records.png' },
otherConf: { icon: '/static/images/menus/记录.png' },
name: '样品查询'
},
{
url: '/pages/sampleWarehouse/returnToStock/index',
otherConf: { icon: '/static/images/menus/returnToStock.png' },
otherConf: { icon: '/static/images/menus/样品归库.png' },
name: '样品归库'
},
{
url: '/pages/sampleWarehouse/execChangeLocation/index',
otherConf: { icon: '/static/images/menus/execChangeLocation.png' },
otherConf: { icon: '/static/images/menus/库位变更.png' },
name: '库位变更'
},
{
url: '/pages/sampleWarehouse/sampleDispatchInternal/index',
otherConf: { icon: '/static/images/menus/内部调拨.png' },
name: '内部调拨'
},
{
url: '/pages/sampleWarehouse/sampleDispatchExternal/index',
otherConf: { icon: '/static/images/menus/外部调拨.png' },
name: '外部调拨'
},
{
url: '/pages/sampleWarehouse/dispatchGiveBack/index',
otherConf: { icon: '/static/images/menus/调拨归还.png' },
name: '调拨归还'
},
{
url: '/pages/sampleWarehouse/sampleTakeOff/index',
otherConf: { icon: '/static/images/menus/样品下架.png' },
name: '样品下架'
}
])
@@ -56,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 列数