From 8378915638d6692b57f36620a752ab1fe59a2e4c Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期一, 10 二月 2025 16:50:22 +0800
Subject: [PATCH] 分容获取库存接口更新

---
 Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js |   45 +++++++++++++++++++++++++++------------------
 1 files changed, 27 insertions(+), 18 deletions(-)

diff --git a/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js b/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js
index ca16186..54d708c 100644
--- a/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js
+++ b/Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js
@@ -1,29 +1,39 @@
-
-import gridBody from './extend/importDevicePro.vue'
+import gridBody from "./extend/importDevicePro.vue";
 let extension = {
   components: {
     //鏌ヨ鐣岄潰鎵╁睍缁勪欢
-    gridHeader: '',
+    gridHeader: "",
     gridBody: gridBody,
-    gridFooter: '',
+    gridFooter: "",
     //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
-    modelHeader: '',
-    modelBody: '',
-    modelFooter: ''
+    modelHeader: "",
+    modelBody: "",
+    modelFooter: "",
   },
-  tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓)
+  tableAction: "", //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓)
   buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽�
   methods: {
     //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
     onInit() {
       // console.log(this.detailOptions.buttons);
       // console.log(this.$refs.detail)
-      var detailImport = this.detailOptions.buttons.find(item=>item.value == 'import');
-      if(detailImport){
+      var detailImport = this.detailOptions.buttons.find(
+        (item) => item.value == "import"
+      );
+      if (detailImport) {
         detailImport.onClick = function () {
           this.$refs.gridBody.open();
-        }
+        };
       }
+      // this.buttons.unshift({
+      //   //涔熷彲浠ョ敤push鎴栬�卻plice鏂规硶鏉ヤ慨鏀筨uttons鏁扮粍
+      //   name: "寮�鍚湇鍔�", //鎸夐挳鍚嶇О
+      //   icon: "el-icon-document", //鎸夐挳鍥炬爣vue2鐗堟湰瑙乮view鏂囨。icon锛寁ue3鐗堟湰瑙乪lement ui鏂囨。icon(娉ㄦ剰涓嶆槸element puls鏂囨。)
+      //   type: "primary", //鎸夐挳鏍峰紡vue2鐗堟湰瑙乮view鏂囨。button锛寁ue3鐗堟湰瑙乪lement ui鏂囨。button
+      //   onClick: function () {
+      //     this.$Message.success("寮�鍚湇鍔�");
+      //   },
+      // });
     },
     onInited() {
       //妗嗘灦鍒濆鍖栭厤缃悗
@@ -64,15 +74,14 @@
       //console.log(this.$refs)
       this.$nextTick(() => {
         if (this.$refs.upload_excel) {
-          alert('鐐瑰嚮浜嗕笂浼犳寜閽�')
+          alert("鐐瑰嚮浜嗕笂浼犳寜閽�");
           this.$refs.upload_excel.upload = function () {
-            console.log('鐐瑰嚮浜嗕笂浼犳寜閽�')
-          }
+            console.log("鐐瑰嚮浜嗕笂浼犳寜閽�");
+          };
         }
         // alert(1)
-      })
-
-    }
-  }
+      });
+    },
+  },
 };
 export default extension;

--
Gitblit v1.9.3