From 7a4c218909936721fe281737491d10efc7378e09 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 19 七月 2024 17:53:30 +0800
Subject: [PATCH] 优化工单信息页面

---
 代码管理/PCS/WCS_Client/src/extension/widesea_wcs/wcs/VV_Dispatch.js |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Client/src/extension/widesea_wcs/wcs/VV_Dispatch.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Client/src/extension/widesea_wcs/wcs/VV_Dispatch.js"
index d0bbd3f..4472d0c 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Client/src/extension/widesea_wcs/wcs/VV_Dispatch.js"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Client/src/extension/widesea_wcs/wcs/VV_Dispatch.js"
@@ -5,12 +5,13 @@
 **甯哥敤绀轰緥瑙侊細http://v2.volcore.xyz/document/vueDev
 **鍚庡彴鎿嶄綔瑙侊細http://v2.volcore.xyz/document/netCoreDev
 *****************************************************************************************/
+import Upload from "@/views/Upload"
 //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
 
 let extension = {
   components: {
     //鏌ヨ鐣岄潰鎵╁睍缁勪欢
-    gridHeader: '',
+    gridHeader: Upload,
     gridBody: '',
     gridFooter: '',
     //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
@@ -38,6 +39,15 @@
           this.startServe();
         }
       }
+      // , {
+      //   name: "涓婁紶鏂囦欢",
+      //   // icon: 'el-icon-video-play',
+      //   index: 5,
+      //   type: 'primary',
+      //   onClick: function () {
+      //     this.Upload();
+      //   }
+      // }
     ], box: [], detail: []
   }, //鎵╁睍鐨勬寜閽�
   methods: {
@@ -150,23 +160,26 @@
     //鍚姩鏈嶅姟
     startServe() {
       this.http.post('/api/VV_Dispatch/StartServe', {}, true).then((x) => {
+        this.search();
         if (!x.status) return this.$error(x.message);
         this.$success(x.message);
-        this.search();
         this.$emit("onChangeWCSState", true);
       });
     },
     //鍏抽棴鏈嶅姟
     CloseServe() {
       this.http.post('/api/VV_Dispatch/CloseServe', {}, true).then((x) => {
+        this.search();
         if (!x.status) return this.$error(x.message);
         this.$success(x.message);
-        this.search();
         //閲嶆柊鍔犺浇椤甸潰
         // location.reload()
         this.$emit("onChangeWCSState", false);
       });
-    }
+    },
+    Upload() {
+      this.$refs.gridHeader.detialBox=true;
+    },
   }
 };
 export default extension;

--
Gitblit v1.9.3