From 5ecb7958c96d3f0b6d47b79aff7eb306c2cf690f Mon Sep 17 00:00:00 2001
From: charles <981744753@qq.com>
Date: 星期二, 06 八月 2024 11:16:58 +0800
Subject: [PATCH] gitlab上面的wms转移到公司git

---
 src/views/operate/outEnterLibrary/index.vue |   40 +++++++++++++++++++++++++++++++++++-----
 1 files changed, 35 insertions(+), 5 deletions(-)

diff --git a/src/views/operate/outEnterLibrary/index.vue b/src/views/operate/outEnterLibrary/index.vue
index 03c0913..950408b 100644
--- a/src/views/operate/outEnterLibrary/index.vue
+++ b/src/views/operate/outEnterLibrary/index.vue
@@ -4,11 +4,11 @@
       <SearchCommonView
         :add-title="'鏂板缓'"
         :showAdd="false"
+        :showDownload="true"
         :placeholder="'璇锋牴鎹崟鍙枫�佷骇鍝併�佷笟鍔$被鍨嬭繘琛屾悳绱�'"
         :amount-view="false"
         @addCommonClick="addBtnClick"
         :inputName="params.keyWord"
-        @searchClick="getList"
       />
     </div>
     <div class="list-view">
@@ -19,7 +19,7 @@
           @selTableCol="selTableCol"
         >
           <template slot="tableButton">
-            <el-table-column label="鎿嶄綔" width="100">
+            <el-table-column label="鎿嶄綔" width="120">
               <template slot-scope="scope">
                 <el-button @click="tableRowClick(scope.row, '鏌ョ湅')" type="text" size="small">鏌ョ湅</el-button>
                 <el-button
@@ -40,6 +40,7 @@
     </div>
     <!-- 鏌ョ湅/缂栬緫 -->
     <AddOverviewDialog 
+      ref="viewDialog"
       v-if="editConfig.visible" 
       :edit-common-config="editConfig" 
       :add-name="addName"
@@ -55,6 +56,7 @@
 
 import AddOverviewDialog from "@/views/overview/AddOverviewDialog"
 import { getDataByType } from "@/api/data"
+
 export default {
   name: "InboundOutboundDetail",
   props: {},
@@ -274,9 +276,37 @@
       this.workType=row.baseOperationType
       this.editConfig.title = val
       getOperationInfo(row.operationId).then((res)=>{
+        let params=JSON.parse(
+                  JSON.stringify(res.data)
+                );
+                params.details.map((item) => {
+          item.fromLocationId = item.fromLocation.jointName
+          item.toLocationId = item.toLocation.jointName
+        })
+        params.location = {
+          value:params.location.id || params.location.value,
+          label: params.location.jointName || params.location.label
+        }
+        params.toLocation = {
+          value: params.toLocation.id || params.toLocation.value,
+          label: params.toLocation.jointName || params.toLocation.label
+        }
+        params.locationID = params.location.jointName
+        params.locationId =params.location.value
+        params.managerObj={
+          label:params.manager,
+          value:params.managerId
+        }
+        params.accountantObj={
+          label:params.accountant,
+          value:params.accountantId
+        }
+        params.custodianObj={
+          label:params.custodian,
+          value:params.custodianId
+        }
         this.editConfig.infomation = { 
-          
-          ...res.data
+          ...params
         }
         this.editConfig.visible = true
       })
@@ -292,7 +322,7 @@
     getStatus(val) {
       let newVal=Number(val)
       return newVal === 1 ? "鑽夌" : newVal === 3 ? "灏辩华" : newVal=== 4 ?"瀹屾垚":newVal=== 5 ?"宸插彇娑�":" "
-    }
+    },
   }
 }
 </script>

--
Gitblit v1.8.0