refactor: 注释掉人力资源和生产管控模块的相关代码
- 将人力资源和生产管控模块的代码注释掉,保留结构以便未来使用
- 更新相关计算属性以反映模块的注释状态
| | |
| | | </up-grid> |
| | | </view> |
| | | </view> |
| | | <!-- 人力资源模块 --> |
| | | <!-- 人力资源模块(已注释) |
| | | <view class="common-module collaboration-module" |
| | | v-if="hasHumanResourcesItems"> |
| | | <view class="module-header"> |
| | |
| | | </up-grid> |
| | | </view> |
| | | </view> |
| | | <!-- 生产管控模块 --> |
| | | --> |
| | | <!-- 生产管控模块(已注释) |
| | | <view class="common-module equipment-module" |
| | | v-if="hasProductionItems"> |
| | | <view class="module-header"> |
| | |
| | | </up-grid> |
| | | </view> |
| | | </view> |
| | | --> |
| | | <!-- 财务管理模块 --> |
| | | <view class="common-module finance-module" |
| | | v-if="hasFinanceManagementItems"> |
| | |
| | | }, |
| | | ]); |
| | | |
| | | const humanResourcesItems = reactive([ |
| | | { |
| | | icon: "/static/images/icon/dakaqiandao.svg", |
| | | label: "打卡签到", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/renyuanxinzi.svg", |
| | | label: "人员薪资", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/hetongguanli.svg", |
| | | label: "合同管理", |
| | | }, |
| | | ]); |
| | | // 人力资源模块(已注释) |
| | | const humanResourcesItems = reactive([]); |
| | | // const humanResourcesItems = reactive([ |
| | | // { |
| | | // icon: "/static/images/icon/dakaqiandao.svg", |
| | | // label: "打卡签到", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/renyuanxinzi.svg", |
| | | // label: "人员薪资", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/hetongguanli.svg", |
| | | // label: "合同管理", |
| | | // }, |
| | | // ]); |
| | | const qualityItems = reactive([ |
| | | { |
| | | icon: "/static/images/icon/yuancailiaojianyan.svg", |
| | |
| | | }, |
| | | ]); |
| | | |
| | | // 生产管控功能数据 |
| | | const productionItems = reactive([ |
| | | // { |
| | | // icon: "/static/images/icon/shengchandingdan@2x.svg", |
| | | // label: "生产订单", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanpaigong@2x.svg", |
| | | // label: "生产派工", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanpaichan@2x.svg", |
| | | // label: "工序排产", |
| | | // }, |
| | | { |
| | | icon: "/static/images/icon/shengchanbaogong.svg", |
| | | label: "生产报工", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/shengchanbaogong.svg", |
| | | label: "生产工单", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanhesuan@2x.svg", |
| | | // label: "生产核算", |
| | | // }, |
| | | ]); |
| | | // 生产管控模块(已注释) |
| | | const productionItems = reactive([]); |
| | | // // 生产管控功能数据 |
| | | // const productionItems = reactive([ |
| | | // { |
| | | // icon: "/static/images/icon/shengchandingdan@2x.svg", |
| | | // label: "生产订单", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanpaigong@2x.svg", |
| | | // label: "生产派工", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanpaichan@2x.svg", |
| | | // label: "工序排产", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanbaogong.svg", |
| | | // label: "生产报工", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanbaogong.svg", |
| | | // label: "生产工单", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanhesuan@2x.svg", |
| | | // label: "生产核算", |
| | | // }, |
| | | // ]); |
| | | |
| | | // 设备管理功能数据 |
| | | const equipmentItems = reactive([ |
| | |
| | | const hasCollaborationItems = computed(() => collaborationItems.length > 0); |
| | | const hasSafetyItems = computed(() => safetyItems.length > 0); |
| | | const hasQualityItems = computed(() => qualityItems.length > 0); |
| | | const hasHumanResourcesItems = computed(() => humanResourcesItems.length > 0); |
| | | // const hasHumanResourcesItems = computed(() => humanResourcesItems.length > 0); |
| | | const hasWarehouseLogisticsItems = computed(() => warehouseLogisticsItems.length > 0); |
| | | const hasProductionItems = computed(() => productionItems.length > 0); |
| | | // const hasProductionItems = computed(() => productionItems.length > 0); |
| | | const hasEquipmentItems = computed(() => equipmentItems.length > 0); |
| | | |
| | | onMounted(() => { |