refactor: 重构字体文件路径及图标资源结构

- 将字体文件从中文路径改为英文路径
- 重新组织图标资源目录结构
- 更新相关文件引用路径
- 修改全局字体CSS配置
- 修复页面图标引用
This commit is contained in:
2025-08-23 14:01:23 +08:00
parent a48ea6f110
commit fd83f5ea36
48 changed files with 29 additions and 30 deletions

View File

@@ -0,0 +1,259 @@
<template>
<view class="common-nav-container">
<u--form labelPosition="left" ref="uForm" class="menu-chouse-from-box">
<view v-for="item in menuButtonList">
<u-form-item v-if="item.isShow && item.isShowType === type">
<u-button size="large" :text="item.name" :color="item.color"
@click="handlerClick(item.url)"></u-button>
</u-form-item>
</view>
</u--form>
</view>
</template>
<script>
export default {
onLoad: function(option) {
const that = this;
const eventChannel = this.getOpenerEventChannel();
eventChannel.on('setMenuType', function(res) {
that.type = res.data;
})
},
data() {
return {
// 菜单类型
type: -1,
menuButtonList: [
{
//展示时机
isShowType: 0,
isShow: true,
name: '成品入库',
// 触发跳转
url: '/pages/inWarehouse/inWarehouse?isStrict=true',
icon: '',
color: 'linear-gradient(to right, #ff5858 0%, #f09819 100%)'
},
{
//展示时机
isShowType: 0,
isShow: true,
name: '无校验入库',
// 触发跳转
url: '/pages/inWarehouse/inWarehouse?isStrict=false',
icon: '',
color: 'linear-gradient(to right, #55aa00 0%, #55aa7f 100%)'
},
{
//展示时机
isShowType: 0,
isShow: true,
name: '油漆入库',
// 触发跳转
url: '',
icon: '',
color: 'linear-gradient(to right, #6a11cb 0%, #2575fc 100%)'
},
{
//展示时机
isShowType: 0,
isShow: true,
name: '毛坯入库',
// 触发跳转
url: '',
icon: '',
color: 'linear-gradient(to right, #0ba360 0%, #3cba92 100%)'
},
{
//展示时机
isShowType: 0,
isShow: true,
name: '备品备件',
// 触发跳转
url: '',
icon: '',
color: 'linear-gradient(to right, #BCC5CE, #929EAD)'
},
{
//展示时机
isShowType: 1,
isShow: true,
name: '移库',
// 触发跳转
url: '/pages/relocation/relocation',
icon: '',
color: 'linear-gradient(to right, #f6d365 0%, #fda085 100%)'
},
{
isShowType: 2,
isShow: true,
name: '盘点',
// 触发跳转
url: '/pages/stocktake/stocktake',
icon: '',
color: 'linear-gradient(to right, #6a11cb 0%, #2575fc 100%)'
},
{
isShowType: 2,
isShow: false,
name: '盘点记录',
// 触发跳转
url: '',
icon: '',
color: 'linear-gradient(to top, #0ba360 0%, #3cba92 100%)'
},
{
isShowType: 3,
isShow: true,
name: '出库单出库',
// 触发跳转
url: '/pages/outWarehouse/outWarehouse',
icon: '',
color: 'linear-gradient(to right, #ff5858 0%, #f09819 100%)'
},
{
isShowType: 3,
isShow: true,
name: '无出库单出库',
// 触发跳转
url: '/pages/returnWarehose/returnWarehose',
icon: '',
color: 'linear-gradient(to right, #6a11cb 0%, #2575fc 100%)'
},
{
isShowType: 3,
isShow: false,
name: '出库单查看',
// 触发跳转
url: '',
icon: '',
color: 'linear-gradient(to top, #0ba360 0%, #3cba92 100%)'
},
{
isShowType: 4,
isShow: true,
name: '拼箱',
// 触发跳转
url: '/pages/consolidation/consolidation',
icon: '',
color: 'linear-gradient(to top, #243949 0%, #517fa4 100%)'
},
{
isShowType: 4,
isShow: true,
name: '拆箱',
// 触发跳转
url: '/pages/unpacking/unpacking',
icon: '',
color: 'linear-gradient(to bottom, #243949 0%, #517fa4 100%)'
},
{
isShowType: 4,
isShow: true,
name: '仓库操作日志',
// 触发跳转
url: '/pages/warehoseActionList/warehoseActionList',
icon: '',
color: 'linear-gradient(to right, #6a11cb 0%, #2575fc 100%)'
},
{
isShowType: 4,
isShow: true,
name: '库存查询',
// 触发跳转
url: '/pages/watchGoods/watchGoods',
icon: '',
color: 'linear-gradient(to top, #0ba360 0%, #3cba92 100%)'
},
]
}
},
methods: {
handlerClick(url) {
uni.navigateTo({
url
});
},
buttonCheck(action) {
switch (action) {
case 1:
// 成品入库
uni.navigateTo({
url: '/pages/inWarehouse/inWarehouse'
});
break;
case 2:
// 成品出库
uni.navigateTo({
url: '/pages/outWarehouse/outWarehouse'
});
break;
case 3:
// 盘点
uni.navigateTo({
url: '/pages/stocktake/stocktake'
});
break;
case 4:
// 移库
uni.navigateTo({
url: '/pages/relocation/relocation'
});
break;
case 5:
// 退库
uni.navigateTo({
url: '/pages/returnWarehose/returnWarehose'
});
break;
case 6:
// 拼箱
uni.navigateTo({
url: '/pages/consolidation/consolidation'
});
break;
case 7:
// 货物查看
uni.navigateTo({
url: '/pages/watchGoods/watchGoods'
});
break;
case 8:
break;
case 9:
break;
case 10:
// 注销
uni.showModal({
title: '注销',
content: '是否注销当前账户?',
showCancel: true,
cancelText: '取消',
confirmText: '注销',
success: (res) => {
if (res.confirm) {
uni.reLaunch({
url: '/pages/login/login'
});
}
}
});
break;
default:
break;
}
},
}
}
</script>
<style scoped>
.menu-chouse-from-box {
padding: 10px;
}
</style>