yyb
2 天以前 562816e645bc40841d7f65e4be87d7dc28aebcc0
refactor: 注释掉人力资源和生产管控模块的相关代码

- 将人力资源和生产管控模块的代码注释掉,保留结构以便未来使用
- 更新相关计算属性以反映模块的注释状态
已修改1个文件
96 ■■■■ 文件已修改
src/pages/works.vue 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/works.vue
@@ -88,7 +88,7 @@
        </up-grid>
      </view>
    </view>
    <!-- 人力资源模块 -->
    <!-- 人力资源模块(已注释)
    <view class="common-module collaboration-module"
          v-if="hasHumanResourcesItems">
      <view class="module-header">
@@ -110,7 +110,8 @@
        </up-grid>
      </view>
    </view>
    <!-- 生产管控模块 -->
    -->
    <!-- 生产管控模块(已注释)
    <view class="common-module equipment-module"
          v-if="hasProductionItems">
      <view class="module-header">
@@ -132,6 +133,7 @@
        </up-grid>
      </view>
    </view>
    -->
    <!-- 财务管理模块 -->
    <view class="common-module finance-module"
          v-if="hasFinanceManagementItems">
@@ -401,20 +403,22 @@
    },
  ]);
  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",
@@ -495,33 +499,35 @@
    },
  ]);
  // 生产管控功能数据
  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([
@@ -1125,9 +1131,9 @@
  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(() => {