From 1888b426ff2b6a529f5fdef0f0453dadef71824b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 17 四月 2024 10:17:38 +0800
Subject: [PATCH] 隐藏多单位的问题

---
 src/views/operate/outEnterLibrary/index.vue |   46 +++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 39 insertions(+), 7 deletions(-)

diff --git a/src/views/operate/outEnterLibrary/index.vue b/src/views/operate/outEnterLibrary/index.vue
index 315abca..eed029d 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"
@@ -83,7 +85,6 @@
   },
   created() {
     this.setTable()
-    console.log(this.$route.params)
     var paramsList = sessionStorage.getItem("paramsList")
     let params = {}
     if (paramsList) {
@@ -93,7 +94,7 @@
       sessionStorage.setItem("paramsList", JSON.stringify(params))
     }
     this.params = params
-    console.log(this.params,'====111')
+    console.log(this.params,'璺敱鍙傛暟')
     this.getData()
   },
   // 椤甸潰閿�姣佷箣鍓�
@@ -147,11 +148,11 @@
         },
         {
           label: "涓氬姟绫诲瀷",
-          prop: "baseOperationType",
+          prop: "operationTypeName",
           isShowColumn: true,
           default: true,
-          conversion: true,
-          getStatus: this.getBaseOperationTypeList
+          // conversion: true,
+          // getStatus: this.getBaseOperationTypeList
         },
         {
           label: "浠�",
@@ -221,6 +222,7 @@
     async getData() {
       if (this.params.name === "鎶ヨ〃") {
         await listByCondition({
+          // condition:"",
           keyWord:this.params.keyWord,
           produceId:this.params.produceId,
           unit:this.params.unit,
@@ -270,11 +272,41 @@
       this.getData()
     },
     tableRowClick(row,val) {
-      console.log(row,"鐪嬬湅")
       this.workType=row.baseOperationType
       this.editConfig.title = val
       getOperationInfo(row.operationId).then((res)=>{
-        this.editConfig.infomation = { ...res.data }
+        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 = { 
+          ...params
+        }
         this.editConfig.visible = true
       })
       // this.editConfig.visible = true

--
Gitblit v1.8.0