焊接日报

This commit is contained in:
2026-06-11 09:43:42 +08:00
parent 2c8af0f2e0
commit 06781c69e1
14 changed files with 713 additions and 24 deletions
+13 -6
View File
@@ -90,7 +90,8 @@
<view class="section-grid">
<view class="grid-item" v-for="(item, idx) in queryApps" :key="idx" @click="handleSkip(item)">
<view class="icon-box">
<u-icon :name="item.icon" :custom-prefix='item.prefix' :size="56" :color="pastelColors[idx % 6]" />
<u-icon :name="item.icon" :custom-prefix='item.prefix' :size="56"
:color="pastelColors[idx % 6]" />
</view>
<text class="item-label">{{ item.name }}</text>
</view>
@@ -147,6 +148,10 @@
storeToRefs
} from 'pinia';
import {
scanToSkipUrl
} from '@/utils/scanUtils.js'
const userStore = useUserStore()
const menuStore = useMenuStore()
const largeStore = useLargeStore()
@@ -180,7 +185,7 @@
const currentProjectName = computed(() => currentProject.value?.ProjectName || '')
const handleSkip = (item) => {
if(!currentProject.value.ProjectId){
if (!currentProject.value.ProjectId) {
handleShowProjectSelect()
uni.showToast({
title: '请选择一个项目',
@@ -241,12 +246,14 @@
uni.scanCode({
onlyFromCamera: true,
success(res) {
console.log('条码类型:' + res.scanType);
console.log('条码内容:' + res.result);
const result = res.result || ''
uni.navigateTo({
url:scanToSkipUrl(result)
})
},
fail(err) {
console.log("扫码失败了====>", err)
console.error('扫码失败:', err)
}
});
})
}
</script>