gaoluyang
2026-04-21 207c564c2b8d46fd86160c4f6583c2fc9d4a4e5c
src/pages/works.vue
@@ -264,17 +264,23 @@
        </up-grid>
      </view>
    </view>
    <DownloadProgressMask />
  </view>
</template>
<script setup>
  import { ref, onMounted, nextTick, reactive, computed } from "vue";
  import { onShow } from "@dcloudio/uni-app";
  import { userLoginFacotryList } from "@/api/login";
  import { getProductWorkOrderById } from "@/api/productionManagement/productionReporting";
  import { createVersionUpgradeChecker } from "@/utils/versionUpgrade";
  import DownloadProgressMask from "@/components/DownloadProgressMask.vue";
  import modal from "@/plugins/modal";
  import useUserStore from "@/store/modules/user";
  const userStore = useUserStore();
  // const { triggerVersionCheck } = createVersionUpgradeChecker({ logPrefix: "[version-works]" });
  const show = ref(false);
  const factoryList = ref([]);
  const factoryListTem = ref([]);
@@ -477,30 +483,30 @@
      icon: "/static/images/icon/xietongshenpi.svg",
      label: "协同审批",
    },
    {
      icon: "/static/images/icon/huiyiguanli.svg",
      label: "会议管理",
    },
    {
      icon: "/static/images/icon/tongzhigonggao.svg",
      label: "通知公告",
    },
    {
      icon: "/static/images/icon/zhishiku.svg",
      label: "知识库",
    },
    {
      icon: "/static/images/icon/yongyinguanli.svg",
      label: "用印管理",
    },
    {
      icon: "/static/images/icon/guizhangzhidu.svg",
      label: "规章制度",
    },
    {
      icon: "/static/images/icon/kehubaifang.svg",
      label: "客户拜访",
    },
    // {
    //   icon: "/static/images/icon/huiyiguanli.svg",
    //   label: "会议管理",
    // },
    // {
    //   icon: "/static/images/icon/tongzhigonggao.svg",
    //   label: "通知公告",
    // },
    // {
    //   icon: "/static/images/icon/zhishiku.svg",
    //   label: "知识库",
    // },
    // {
    //   icon: "/static/images/icon/yongyinguanli.svg",
    //   label: "用印管理",
    // },
    // {
    //   icon: "/static/images/icon/guizhangzhidu.svg",
    //   label: "规章制度",
    // },
    // {
    //   icon: "/static/images/icon/kehubaifang.svg",
    //   label: "客户拜访",
    // },
  ]);
  // 生产管控功能数据
@@ -1149,6 +1155,7 @@
  const hasEquipmentItems = computed(() => equipmentItems.length > 0);
  onMounted(() => {
    // triggerVersionCheck("onMounted");
    // 每次进入首页都强制刷新用户信息和路由权限,不做本地缓存判断
    userStore.getInfo().then(() => {
      userStore
@@ -1164,6 +1171,10 @@
    // 启动通知状态定时器
    startStatusTimer();
  });
  onShow(() => {
    triggerVersionCheck("onShow");
  });
</script>