From e3cadadc1e03e0648a079f7fc8bf8b3d0d64bc27 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 15 四月 2024 15:54:04 +0800
Subject: [PATCH] wms的出库入库调拨 3个模块新建,编辑,列表增加 主管,会计,保管员3个字段以及新建,编辑联调

---
 src/views/operate/outEnterLibrary/index.vue |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/views/operate/outEnterLibrary/index.vue b/src/views/operate/outEnterLibrary/index.vue
index 846578e..6514f51 100644
--- a/src/views/operate/outEnterLibrary/index.vue
+++ b/src/views/operate/outEnterLibrary/index.vue
@@ -7,6 +7,7 @@
         :placeholder="'璇锋牴鎹崟鍙枫�佷骇鍝併�佷笟鍔$被鍨嬭繘琛屾悳绱�'"
         :amount-view="false"
         @addCommonClick="addBtnClick"
+        :inputName="params.keyWord"
         @searchClick="getList"
       />
     </div>
@@ -39,6 +40,7 @@
     </div>
     <!-- 鏌ョ湅/缂栬緫 -->
     <AddOverviewDialog 
+      ref="viewDialog"
       v-if="editConfig.visible" 
       :edit-common-config="editConfig" 
       :add-name="addName"
@@ -92,7 +94,7 @@
       sessionStorage.setItem("paramsList", JSON.stringify(params))
     }
     this.params = params
-    console.log(this.params,'====111')
+    console.log(this.params,'璺敱鍙傛暟')
     this.getData()
   },
   // 椤甸潰閿�姣佷箣鍓�
@@ -273,7 +275,23 @@
       this.workType=row.baseOperationType
       this.editConfig.title = val
       getOperationInfo(row.operationId).then((res)=>{
-        this.editConfig.infomation = { ...res.data }
+        res.data.details.map((item) => {
+          item.fromLocationId = item.fromLocation.jointName
+          item.toLocationId = item.toLocation.jointName
+        })
+        res.data.location = {
+          value: res.data.location.id || res.data.location.value,
+          label: res.data.location.jointName || res.data.location.label
+        }
+        res.data.toLocation = {
+          value: res.data.toLocation.id || res.data.toLocation.value,
+          label: res.data.toLocation.jointName || res.data.toLocation.label
+        }
+        res.data.locationID = res.data.location.jointName
+        res.data.locationId = res.data.location.value
+        this.editConfig.infomation = { 
+          ...res.data
+        }
         this.editConfig.visible = true
       })
       // this.editConfig.visible = true

--
Gitblit v1.8.0