From 5fdedc928cd6970423cf024c43a99e522a44dbcf Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 29 十一月 2023 11:15:28 +0800
Subject: [PATCH] 	modified:   src/views/warehouse/pallettransports/index.vue 	modified:   vue.config.js

---
 vue.config.js                                  |    2 +-
 src/views/warehouse/pallettransports/index.vue |   19 ++++++++++---------
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/views/warehouse/pallettransports/index.vue b/src/views/warehouse/pallettransports/index.vue
index 9b26943..af65c10 100644
--- a/src/views/warehouse/pallettransports/index.vue
+++ b/src/views/warehouse/pallettransports/index.vue
@@ -573,14 +573,14 @@
               if (resData.code === 0) {
                 this.innerVisible = false
                 this.$message.success('娣诲姞绉诲簱鏄庣粏鎴愬姛')
+                this.MobileLibrary()
                 this.$emit('refreshDataList')
               } else {
                 this.$message.error('娣诲姞绉诲簱鏄庣粏澶辫触')
               }
-              this.palletTransportsMaterialSelectionChange()
             })
-            .catch(() => {
-            })
+            // .catch(() => {
+            // })
         }
     },
     // 娣诲姞ifs鐗╂枡搴撳瓨鍥炶皟
@@ -710,20 +710,21 @@
       this.palletTransportsMaterialMultipleSelection.forEach(el =>{ids.push(el.id)})
       let pId = ids[ids.length - 1];
       console.log(pId);
-      if(pId){
+      this.palletTransportsDetailData = []
+      this.datalistAPI = pId
+      this.MobileLibrary()
+    },
+    MobileLibrary(){
+      if(this.datalistAPI){
         selectAll({
             transportsId:this.currPalletTransportsRow.id,
-            transportsMaterialId: pId
+            transportsMaterialId: this.datalistAPI
           }).then((res) =>{
             console.log(res);
             if(res.data.data){
               this.palletTransportsDetailData.push(res.data.data)
-            }else{
-              this.palletTransportsDetailData = []
             }
             })
-         }else{
-          this.palletTransportsDetailData = []
          }
     },
     palletTransportsDetailSelectionChange(val) {
diff --git a/vue.config.js b/vue.config.js
index 627b473..421ad18 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -2,7 +2,7 @@
  * 閰嶇疆鍙傝��:
  * https://cli.vuejs.org/zh/config/
  */
-const url = 'http://192.168.2.7:9999'
+const url = 'http://192.168.2.63:9999'
 //const url = 'http://192.168.32.45:9999'
 // const url = 'http://192.168.0.23:9999'
 

--
Gitblit v1.9.3