From 03cfba0f636b42417070fc8caef44bcdd792a085 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 07 五月 2024 17:34:37 +0800
Subject: [PATCH] 概述 出库模块 编辑的时候循环处理对应产品调用接口获取在库数量的逻辑处理

---
 src/views/overview/OverviewListView.vue |   66 ++++++++++++++++----------------
 1 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue
index 7de76d6..48dc227 100644
--- a/src/views/overview/OverviewListView.vue
+++ b/src/views/overview/OverviewListView.vue
@@ -1,8 +1,8 @@
 <template>
   <div class="rightContent">
-    <!-- <div class="label-fixed-element">
+    <div class="label-fixed-element">
       <span>{{ params.name }}</span>
-    </div> -->
+    </div>
     <div class="top">
       <SearchCommonView
         :add-title="'鏂板缓'"
@@ -358,31 +358,31 @@
     // bottom浜у搧淇℃伅鏁版嵁澶勭悊
     bottomProductData(arr) {
       const list = arr.details.map((item) => {
-        let adjunctUnit=''
-        let adjunctAmount=''
-        if(item.product.moreUnit&&item.product.moreUnitList){
-          let moreUnitList=item.product.moreUnitList
-          if(moreUnitList.length>0){
-            let isValue=false
-            for(let j in moreUnitList){
-              if(moreUnitList[j].floating){
-                isValue=true;
-                adjunctUnit=moreUnitList[j].unit
-                adjunctAmount=moreUnitList[j].amount
-                break;
-              }
-            }
-            if(!isValue){
-              for(let j in moreUnitList){
-                 if(moreUnitList[j].unit){
-                  adjunctUnit=moreUnitList[j].unit
-                  adjunctAmount=moreUnitList[j].amount
-                  break;
-                }
-              }
-            }
-          }
-        }
+        // let adjunctUnit=''
+        // let adjunctAmount=''
+        // if(item.product.moreUnit&&item.product.moreUnitList){
+        //   let moreUnitList=item.product.moreUnitList
+        //   if(moreUnitList.length>0){
+        //     let isValue=false
+        //     for(let j in moreUnitList){
+        //       if(moreUnitList[j].floating){
+        //         isValue=true;
+        //         adjunctUnit=moreUnitList[j].unit
+        //         adjunctAmount=moreUnitList[j].amount
+        //         break;
+        //       }
+        //     }
+        //     if(!isValue){
+        //       for(let j in moreUnitList){
+        //          if(moreUnitList[j].unit){
+        //           adjunctUnit=moreUnitList[j].unit
+        //           adjunctAmount=moreUnitList[j].amount
+        //           break;
+        //         }
+        //       }
+        //     }
+        //   }
+        // }
         return {
           ...item,
           productName: item.product.name,
@@ -391,12 +391,12 @@
           specs:item.product.specs,
           location: arr.location.name,
           toLocation: arr.toLocation.name,
-          adjunctUnit:adjunctUnit,
-          adjunctAmount:adjunctAmount&&item.amount?adjunctAmount:'',
+          adjunctUnit:item.auxiliaryUnit,
+          adjunctAmount:item.auxiliaryAmount,
           grossWeight:item.product.grossWeight==0?'':item.product.grossWeight,
-          totalGrossWeight:item.totalGrossWeight,
+          totalGrossWeight:item.totalGrossWeight==0?'':item.totalGrossWeight,
           netWeight:item.product.netWeight==0?'':item.product.netWeight, 
-          totalNetWeight:item.totalNetWeight,  
+          totalNetWeight:item.totalNetWeight==0?'':item.totalNetWeight,  
         }
       })
       this.productTableList.tableInfomation = list
@@ -524,7 +524,7 @@
   overflow: hidden;
   .body {
     box-sizing: border-box;
-    padding: 10px 20px;
+    padding: 10px 0px;
     border-radius: 12px;
     height: calc(100% - 70px);
     .content-top {
@@ -583,8 +583,8 @@
   }
 }
 .label-fixed-element {
-  background: #e6ecf2;
   position: fixed;
+  background:#f8f8f9;
   font-size: 14px;
   width: calc(100% - 530px);
   height: 45px;

--
Gitblit v1.8.0