From 304f9efb86e72eb3ce239fd69b2f4516b4438c6a Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 09 四月 2026 15:29:59 +0800
Subject: [PATCH] Merge branch 'dev_new' of http://114.132.189.42:9002/r/product-inventory-APP-before into dev_new
---
src/pages/works.vue | 41 +++++++++++++++++++++++++++++++++++------
1 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/src/pages/works.vue b/src/pages/works.vue
index 89c8d26..8d37e74 100644
--- a/src/pages/works.vue
+++ b/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([]);
@@ -299,6 +305,14 @@
// 钀ラ攢绠$悊鍔熻兘鏁版嵁
const marketingItems = reactive([
+ {
+ icon: "/static/images/icon/kehudangan.svg",
+ label: "瀹㈡埛妗f",
+ },
+ {
+ icon: "/static/images/icon/xiaoshoubaojia.svg",
+ label: "閿�鍞姤浠�",
+ },
{
icon: "/static/images/icon/xiaoshoutaizhang.svg",
label: "閿�鍞彴璐�",
@@ -360,15 +374,15 @@
label: "浠樻娴佹按",
},
{
- icon: "/static/images/icon/huikuandengji.svg",
+ icon: "/static/images/icon/shouruguanli.svg",
label: "鏀跺叆绠$悊",
},
{
- icon: "/static/images/icon/fukuandengji.svg",
+ icon: "/static/images/icon/zhichuguanli.svg",
label: "鏀嚭绠$悊",
},
{
- icon: "/static/images/icon/huikuanliushui.svg",
+ icon: "/static/images/icon/jiekuanguanli.svg",
label: "鍊熸绠$悊",
},
]);
@@ -376,7 +390,7 @@
// 妗f绠$悊鍔熻兘鏁版嵁
const archiveManagementItems = reactive([
{
- icon: "/static/images/icon/gongchuguanli.svg",
+ icon: "/static/images/icon/gongyingshangdangan.svg",
label: "渚涘簲鍟嗘。妗�",
},
]);
@@ -384,11 +398,11 @@
// 鍞悗鏈嶅姟鍔熻兘鏁版嵁
const afterSalesServiceItems = reactive([
{
- icon: "/static/images/icon/xiaoshoutaizhang.svg",
+ icon: "/static/images/icon/fankuidengji.svg",
label: "鍙嶉鐧昏",
},
{
- icon: "/static/images/icon/caigouguanli.svg",
+ icon: "/static/images/icon/shouhouchuli.svg",
label: "鍞悗澶勭悊",
},
]);
@@ -551,9 +565,19 @@
const handleCommonItemClick = item => {
// 鏍规嵁涓嶅悓鐨勫姛鑳介」杩涜璺宠浆
switch (item.label) {
+ case "瀹㈡埛妗f":
+ uni.navigateTo({
+ url: "/pages/basicData/customerFile/index",
+ });
+ break;
case "閿�鍞彴璐�":
uni.navigateTo({
url: "/pages/sales/salesAccount/index",
+ });
+ break;
+ case "閿�鍞姤浠�":
+ uni.navigateTo({
+ url: "/pages/sales/salesQuotation/index",
});
break;
case "寮�绁ㄧ櫥璁�":
@@ -1131,6 +1155,7 @@
const hasEquipmentItems = computed(() => equipmentItems.length > 0);
onMounted(() => {
+ triggerVersionCheck("onMounted");
// 姣忔杩涘叆棣栭〉閮藉己鍒跺埛鏂扮敤鎴蜂俊鎭拰璺敱鏉冮檺锛屼笉鍋氭湰鍦扮紦瀛樺垽鏂�
userStore.getInfo().then(() => {
userStore
@@ -1146,6 +1171,10 @@
// 鍚姩閫氱煡鐘舵�佸畾鏃跺櫒
startStatusTimer();
});
+
+ onShow(() => {
+ triggerVersionCheck("onShow");
+ });
</script>
--
Gitblit v1.9.3