From 1a2e9c7cbab7096222b0b75ada21590877db2cf0 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期五, 27 三月 2026 14:34:56 +0800
Subject: [PATCH] 修复出库详情的状态显示异常
---
项目代码/WMS/WMSClient/src/main.js | 31 +++++++++++++++++++++++++++----
1 files changed, 27 insertions(+), 4 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/main.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/main.js"
index 40c4c4f..c47c658 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/main.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/main.js"
@@ -1,4 +1,4 @@
-import { createApp } from 'vue'
+import { createApp, reactive } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
@@ -11,6 +11,10 @@
// import 'dayjs/locale/zh-cn'
// import locale from 'element-plus/lib/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
+// 寮曞叆绌烘墭棰勮鏈嶅姟
+import emptyPalletWarning from './services/emptyPalletWarning'
+// 寮曞叆鍏ㄥ眬浠诲姟瓒呮椂鏈嶅姟
+import taskTimeoutService from './services/taskTimeout'
@@ -24,7 +28,9 @@
app.config.globalProperties.http = http;
app.config.globalProperties.$tabs = {};
app.config.globalProperties.permission = permission;
-app.config.globalProperties.$global = {
+app.config.globalProperties.$store = store;
+// 鍒涘缓鍝嶅簲寮忕殑鍏ㄥ眬瀵硅薄
+const globalState = reactive({
signalR: false, //鏄惁寮�鍚痵ignalR
table: {
//vol-table甯︽暟鎹簮鐨勫崟鍏冩牸鏄惁鍚敤tag鏍囩(涓嬫媺妗嗙瓑鍗曞厓鏍间互tag鏍囩鏄剧ず)
@@ -42,8 +48,16 @@
// 瀹℃牳涓� = 2,
// 瀹℃牳鏈�氳繃 = 3,
// 椹冲洖 = 4
- }
-}
+ },
+ messageList: [], //鍏ㄥ眬娑堟伅鍒楄〃
+ messageDeleted: [] //瀛樺偍琚垹闄ょ殑娑堟伅ID锛岀敤浜庨�氱煡缁勪欢閲嶇疆瀹氭椂鍣�
+});
+
+app.config.globalProperties.$global = globalState;
+
+// 灏唖tore鎸傝浇鍒皐indow瀵硅薄涓婏紝鏂逛究鍦ㄦ墿灞曠粍浠朵腑璁块棶
+window.$store = store;
+window.$global = app.config.globalProperties.$global;
//2023.03.13锛�
//淇敼瑙侊細volupload.vue锛屽悗鍙癆liOSSController.cs锛岄樋閲屼簯OSS閰嶇疆.doc
window.oss = {
@@ -61,3 +75,12 @@
.mount('#app');
app.config.globalProperties.$Message = app.config.globalProperties.$message;
+// 鍒濆鍖栫┖鎵橀璀︽湇鍔�
+emptyPalletWarning.init(app);
+// 鍒濆鍖栧叏灞�浠诲姟瓒呮椂鏈嶅姟
+taskTimeoutService.init(app);
+// 灏嗕换鍔¤秴鏃舵湇鍔℃寕杞藉埌鍏ㄥ眬灞炴�т笂
+app.config.globalProperties.$taskTimeoutService = taskTimeoutService;
+// 灏嗕换鍔¤秴鏃舵湇鍔℃寕杞藉埌window瀵硅薄涓婏紝鏂逛究鍦ㄦ墿灞曠粍浠朵腑璁块棶
+window.$taskTimeoutService = taskTimeoutService;
+
--
Gitblit v1.9.3