|
|
|
@ -40,213 +40,213 @@
|
|
|
|
|
const { storageArr } = storeToRefs(storageStore) |
|
|
|
|
|
|
|
|
|
const tip = ref(null) |
|
|
|
|
// let details = reactive<listtype>({ tablist: [] }); |
|
|
|
|
let details = reactive<listtype>({ |
|
|
|
|
tablist: [ |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: '工作台', |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '订单查询', |
|
|
|
|
router: '/pagesHome/pages/orderInquiry/orderInquiry', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '运单查询', |
|
|
|
|
router: '/pagesHome/pages/waybillInquiry/waybillInquiry', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '库位查询', |
|
|
|
|
router: '/pagesHome/pages/storageInquiry/storageInquiry', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '托盘查询', |
|
|
|
|
router: '/pagesHome/pages/trayInquiry/trayInquiry', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '库存品查询', |
|
|
|
|
router: '/pagesHome/pages/inventoryInquiry/inventoryInquiry', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '物料维护', |
|
|
|
|
router: '/pagesHome/pages/MaterialMaintenance/MaterialMaintenance', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '库位列表', |
|
|
|
|
router: '/pagesHome/pages/StorageLocationList/StorageLocationList', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: '入库', |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '码板打托', |
|
|
|
|
router: '/pagesHome/pages/codePlateBracket/codePlateBracket', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '入库扫描', |
|
|
|
|
router: '/pagesHome/pages/TranNumber/TranNumber', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '到车入库', |
|
|
|
|
router: '/pagesHome/pages/ArrivalList/ArrivalList', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: '库内', |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '分拣打托', |
|
|
|
|
router: '/pagesHome/pages/scansorting/scansorting', |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '订单分拣', |
|
|
|
|
// router: '/pagesHome/pages/ordersorting/ordersorting', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '库存品分拣', |
|
|
|
|
// router: '/pagesHome/pages/lnventorysorting/lnventorysorting', |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '扫码上架', |
|
|
|
|
router: '/pagesHome/pages/ScanUpType/ScanUpType', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '手动上架', |
|
|
|
|
router: '/pagesHome/pages/PeopleScanUpType/PeopleScanUpType', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '移库', |
|
|
|
|
router: '/pagesHome/pages/RelocationType/RelocationType', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '滞留', |
|
|
|
|
router: '/pagesHome/pages/Retention/Retention', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '合托', |
|
|
|
|
router: '/pagesHome/pages/MergeTray/MergeTray', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '下架', |
|
|
|
|
router: '/pagesHome/pages/DownGoodsType/DownGoodsType', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '空置托盘', |
|
|
|
|
router: '/pagesHome/pages/RemoveTray/RemoveTray', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '复核', |
|
|
|
|
router: '/pagesHome/pages/Check/Check', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '托盘数据同步', |
|
|
|
|
router: '/pagesHome/pages/SearchTray/SearchTray', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: '出库', |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '拣货扫描', |
|
|
|
|
router: '/pagesHome/pages/pickingScan/pickingScan', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '自提扫描', |
|
|
|
|
router: '/pagesHome/pages/SelfPickupScan/SelfPickupScan', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '配载装车', |
|
|
|
|
router: '/pagesHome/pages/StowageList/StowageList', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '中转装车', |
|
|
|
|
router: '/pagesHome/pages/RelayScanList/RelayScanList', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: '配送', |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '装车扫描', |
|
|
|
|
router: '/pagesHome/pages/LoadingScan/LoadingScan', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '签收扫描', |
|
|
|
|
router: '/pagesHome/pages/signinScan/signinScan', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '直发商家签收', |
|
|
|
|
router: '/pagesHome/pages/directGoMarket/directGoMarket', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: '离线上传', |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '离线上传', |
|
|
|
|
router: '/pagesHome/pages/OfflineUpload/OfflineUpload', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 1, |
|
|
|
|
name: '考核', |
|
|
|
|
minilist: [ |
|
|
|
|
{ |
|
|
|
|
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
name: '考核指标', |
|
|
|
|
router: '/pagesHome/pages/integral/integral', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
icon: 'http://8.137.14.82:9000/bladex/upload/20240117/fac9c4fd6c4f0bee599417fc8fbbee62.png', |
|
|
|
|
name: '我的考核', |
|
|
|
|
router: '/pagesHome/pages/integralMy/integralMy', |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
] |
|
|
|
|
}) |
|
|
|
|
let details = reactive<listtype>({ tablist: [] }); |
|
|
|
|
// let details = reactive<listtype>({ |
|
|
|
|
// tablist: [ |
|
|
|
|
// { |
|
|
|
|
// type: 1, |
|
|
|
|
// name: '工作台', |
|
|
|
|
// minilist: [ |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '订单查询', |
|
|
|
|
// router: '/pagesHome/pages/orderInquiry/orderInquiry', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '运单查询', |
|
|
|
|
// router: '/pagesHome/pages/waybillInquiry/waybillInquiry', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '库位查询', |
|
|
|
|
// router: '/pagesHome/pages/storageInquiry/storageInquiry', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '托盘查询', |
|
|
|
|
// router: '/pagesHome/pages/trayInquiry/trayInquiry', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '库存品查询', |
|
|
|
|
// router: '/pagesHome/pages/inventoryInquiry/inventoryInquiry', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '物料维护', |
|
|
|
|
// router: '/pagesHome/pages/MaterialMaintenance/MaterialMaintenance', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '库位列表', |
|
|
|
|
// router: '/pagesHome/pages/StorageLocationList/StorageLocationList', |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// type: 1, |
|
|
|
|
// name: '入库', |
|
|
|
|
// minilist: [ |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '码板打托', |
|
|
|
|
// router: '/pagesHome/pages/codePlateBracket/codePlateBracket', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '入库扫描', |
|
|
|
|
// router: '/pagesHome/pages/TranNumber/TranNumber', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '到车入库', |
|
|
|
|
// router: '/pagesHome/pages/ArrivalList/ArrivalList', |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// type: 1, |
|
|
|
|
// name: '库内', |
|
|
|
|
// minilist: [ |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '分拣打托', |
|
|
|
|
// router: '/pagesHome/pages/scansorting/scansorting', |
|
|
|
|
// }, |
|
|
|
|
// // { |
|
|
|
|
// // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// // name: '订单分拣', |
|
|
|
|
// // router: '/pagesHome/pages/ordersorting/ordersorting', |
|
|
|
|
// // }, |
|
|
|
|
// // { |
|
|
|
|
// // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// // name: '库存品分拣', |
|
|
|
|
// // router: '/pagesHome/pages/lnventorysorting/lnventorysorting', |
|
|
|
|
// // }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '扫码上架', |
|
|
|
|
// router: '/pagesHome/pages/ScanUpType/ScanUpType', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '手动上架', |
|
|
|
|
// router: '/pagesHome/pages/PeopleScanUpType/PeopleScanUpType', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '移库', |
|
|
|
|
// router: '/pagesHome/pages/RelocationType/RelocationType', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '滞留', |
|
|
|
|
// router: '/pagesHome/pages/Retention/Retention', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '合托', |
|
|
|
|
// router: '/pagesHome/pages/MergeTray/MergeTray', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '下架', |
|
|
|
|
// router: '/pagesHome/pages/DownGoodsType/DownGoodsType', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '空置托盘', |
|
|
|
|
// router: '/pagesHome/pages/RemoveTray/RemoveTray', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '复核', |
|
|
|
|
// router: '/pagesHome/pages/Check/Check', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '托盘数据同步', |
|
|
|
|
// router: '/pagesHome/pages/SearchTray/SearchTray', |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// type: 1, |
|
|
|
|
// name: '出库', |
|
|
|
|
// minilist: [ |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '拣货扫描', |
|
|
|
|
// router: '/pagesHome/pages/pickingScan/pickingScan', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '自提扫描', |
|
|
|
|
// router: '/pagesHome/pages/SelfPickupScan/SelfPickupScan', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '配载装车', |
|
|
|
|
// router: '/pagesHome/pages/StowageList/StowageList', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '中转装车', |
|
|
|
|
// router: '/pagesHome/pages/RelayScanList/RelayScanList', |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// type: 1, |
|
|
|
|
// name: '配送', |
|
|
|
|
// minilist: [ |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '装车扫描', |
|
|
|
|
// router: '/pagesHome/pages/LoadingScan/LoadingScan', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '签收扫描', |
|
|
|
|
// router: '/pagesHome/pages/signinScan/signinScan', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '直发商家签收', |
|
|
|
|
// router: '/pagesHome/pages/directGoMarket/directGoMarket', |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// type: 1, |
|
|
|
|
// name: '离线上传', |
|
|
|
|
// minilist: [ |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '离线上传', |
|
|
|
|
// router: '/pagesHome/pages/OfflineUpload/OfflineUpload', |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// type: 1, |
|
|
|
|
// name: '考核', |
|
|
|
|
// minilist: [ |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', |
|
|
|
|
// name: '考核指标', |
|
|
|
|
// router: '/pagesHome/pages/integral/integral', |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// icon: 'http://8.137.14.82:9000/bladex/upload/20240117/fac9c4fd6c4f0bee599417fc8fbbee62.png', |
|
|
|
|
// name: '我的考核', |
|
|
|
|
// router: '/pagesHome/pages/integralMy/integralMy', |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }, |
|
|
|
|
// ] |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
function gopathpage(path : string) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -265,7 +265,7 @@
|
|
|
|
|
console.log('刷新后') |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
//读取并处理缓存图标并把菜单写入缓存 |
|
|
|
|
getimgcache(res.data[0]) |
|
|
|
|
getimgcache(res.data) |
|
|
|
|
// 本地强行写入菜单 |
|
|
|
|
// details.tablist = [ |
|
|
|
|
// { |
|
|
|
@ -462,10 +462,11 @@
|
|
|
|
|
uni.setStorageSync('homerouter', details.tablist) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
async function getimgcache(list) { |
|
|
|
|
async function getimgcache(data) { |
|
|
|
|
let maxarr = [] |
|
|
|
|
if (!list) return |
|
|
|
|
for (let item of list.children) { |
|
|
|
|
// 首页菜单 |
|
|
|
|
if (!data[0]) return |
|
|
|
|
for (let item of data[0].children) { |
|
|
|
|
let arr = { |
|
|
|
|
type: 1, |
|
|
|
|
name: item.name, |
|
|
|
@ -488,22 +489,50 @@
|
|
|
|
|
maxarr.push(arr) |
|
|
|
|
} |
|
|
|
|
details.tablist = maxarr |
|
|
|
|
console.log(details.tablist); |
|
|
|
|
// details.tablist.map((item,index)=>{ |
|
|
|
|
// item.minilist.map(async (ite,inde)=>{ |
|
|
|
|
// let result = await getImageCache('http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png') |
|
|
|
|
// console.log("image cache", result); |
|
|
|
|
// if (result) { |
|
|
|
|
// details.tablist[index].minilist[inde].icon=result |
|
|
|
|
|
|
|
|
|
// } else { |
|
|
|
|
// details.tablist[index].minilist[inde].icon=ite.icon |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
// }) |
|
|
|
|
// setTimeout(()=>{ |
|
|
|
|
// console.log(details.tablist); |
|
|
|
|
// },3500) |
|
|
|
|
const _taskArr = [] |
|
|
|
|
// 任务菜单 |
|
|
|
|
for (let item of data[1].children) { |
|
|
|
|
let arr = { |
|
|
|
|
type: 1, |
|
|
|
|
name: item.name, |
|
|
|
|
minilist: [] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (item.children) { |
|
|
|
|
for (let ite of item.children) { |
|
|
|
|
|
|
|
|
|
let result = null; |
|
|
|
|
if (ite.source != null) { |
|
|
|
|
result = await getImageCache(ite.source) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let obj = { |
|
|
|
|
icon: result, |
|
|
|
|
name: ite.name, |
|
|
|
|
router: ite.path |
|
|
|
|
} |
|
|
|
|
arr.minilist.push(obj) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
let result = null; |
|
|
|
|
if (item.source != null) { |
|
|
|
|
result = await getImageCache(item.source) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let obj = { |
|
|
|
|
icon: result, |
|
|
|
|
name: item.name, |
|
|
|
|
router: item.path |
|
|
|
|
} |
|
|
|
|
arr.minilist.push(obj) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
_taskArr.push(arr) |
|
|
|
|
} |
|
|
|
|
uni.setStorageSync('taskMenu', _taskArr) |
|
|
|
|
console.log(details.tablist); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** 检测程序更新 */ |
|
|
|
|