材料站路由

This commit is contained in:
bb_pan 2025-06-25 09:33:01 +08:00
parent 7766b17cac
commit 59dd858d34
2 changed files with 277 additions and 173 deletions

View File

@ -195,7 +195,6 @@
} }
}, },
// 退 // 退
{ {
"path": "pages/back/index", "path": "pages/back/index",
@ -408,7 +407,6 @@
} }
}, },
// //
{ {
"path": "pages/repair/testExamine/index", "path": "pages/repair/testExamine/index",
@ -553,7 +551,6 @@
} }
}, },
{ {
"path": "pages/my/signature", "path": "pages/my/signature",
"style": { "style": {
@ -561,7 +558,6 @@
} }
}, },
// //
{ {
"path": "pages/business/leaseApply", "path": "pages/business/leaseApply",
@ -665,7 +661,107 @@
"style": { "style": {
"navigationBarTitleText": "现场维修数量" "navigationBarTitleText": "现场维修数量"
} }
},
// start
//
{
"path": "pages/materialsStation/index/index",
"style": {
"navigationBarTitleText": "智慧材料站管理系统"
} }
},
//
{
"path": "pages/materialsStation/toolsLease/toolsLease",
"style": {
"navigationStyle": "custom"
}
},
// -//
{
"path": "pages/materialsStation/toolsLease/toolsLeaseAdd",
"style": {
"navigationStyle": "custom"
}
},
// -
{
"path": "pages/materialsStation/toolsLease/codeOut",
"style": {
"navigationStyle": "custom"
}
},
// -OCR
{
"path": "pages/materialsStation/toolsLease/ocrScan/ocrOutScan",
"style": {
"navigationBarTitleText": "OCR识别"
}
},
// -
{
"path": "pages/materialsStation/teamLeaseRecord/teamLeaseRecord",
"style": {
"navigationStyle": "custom"
}
},
// --
{
"path": "pages/materialsStation/teamLeaseRecord/equipmentDetails",
"style": {
"navigationStyle": "custom"
}
},
// 退
{
"path": "pages/materialsStation/toolsBack/toolsBack",
"style": {
"navigationStyle": "custom"
}
},
// 退-//
{
"path": "pages/materialsStation/toolsBack/toolsAddBack",
"style": {
"navigationStyle": "custom"
}
},
// 退-
{
"path": "pages/materialsStation/teamBackRecord/teamBackRecord",
"style": {
"navigationStyle": "custom"
}
},
// 退-
{
"path": "pages/materialsStation/teamBackRecord/teamBackRecord",
"style": {
"navigationStyle": "custom"
}
},
//
{
"path": "pages/materialsStation/teamWarning/teamWarning",
"style": {
"navigationStyle": "custom"
}
},
// /
{
"path": "pages/materialsStation/toolsLedger/toolsLedger",
"style": {
"navigationStyle": "custom"
}
},
// -
{
"path": "pages/materialsStation/toolsLedger/toolsLedgerDetails",
"style": {
"navigationStyle": "custom"
}
}
// end
], ],
"tabBar": { "tabBar": {
"color": "#2c2c2c", "color": "#2c2c2c",
@ -706,7 +802,8 @@
"navigationBarBackgroundColor": "#dcf4ff", "navigationBarBackgroundColor": "#dcf4ff",
"backgroundColor": "#f8f8f8" "backgroundColor": "#f8f8f8"
}, },
"condition" : { // "condition": {
//
"current": 0, //(list ) "current": 0, //(list )
"list": [ "list": [
{ {

View File

@ -107,26 +107,24 @@
</text> </text>
</view> </view>
</view> </view>
<!-- <view class="new-purchase">
<view class="purchase-item" :key="index" <view class="new-purchase" >
<div class="title-text">
<div></div>
<div class="purchase-title">材料站管理</div>
</div>
<view
class="purchase-item"
:key="index"
@tap="onNavigateTo(item.url)" @tap="onNavigateTo(item.url)"
v-for="(item, index) in searchList"> v-for="(item, index) in materialsStationList"
>
<image :src="item.iconSrc" mode="scaleToFill" /> <image :src="item.iconSrc" mode="scaleToFill" />
<text> <text>
{{ item.title }} {{ item.title }}
</text> </text>
</view> </view>
</view> </view>
<view class="new-purchase">
<view class="purchase-item" :key="index"
@tap="onNavigateTo(item.url)"
v-for="(item, index) in deviceList">
<image :src="item.iconSrc" mode="scaleToFill" />
<text>
{{ item.title }}
</text>
</view>
</view> -->
</view> </view>
</template> </template>
@ -317,6 +315,15 @@ const boxList = ref([
}, },
]) ])
//
const materialsStationList = ref([
{
title: '材料站管理',
url: '/pages/materialsStation/index/index',
iconSrc: '../../static/workbench/repair.png',
},
])
// 使 newInfoList // 使 newInfoList
const boxListTwo = computed(() => { const boxListTwo = computed(() => {
return boxList.value.filter(item => urlPermissions.value.includes(item.url)) return boxList.value.filter(item => urlPermissions.value.includes(item.url))