From bd42b949807795c581e9193d92834a6187fc10d2 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 15 八月 2023 18:42:59 +0800
Subject: [PATCH] 销售管理模块联调

---
 src/views/sales/subOrder/DetailSubOrder.vue |   49 +++++++++++++++++++++++++------------------------
 1 files changed, 25 insertions(+), 24 deletions(-)

diff --git a/src/views/sales/subOrder/DetailSubOrder.vue b/src/views/sales/subOrder/DetailSubOrder.vue
index 4fd0fbe..fa66982 100644
--- a/src/views/sales/subOrder/DetailSubOrder.vue
+++ b/src/views/sales/subOrder/DetailSubOrder.vue
@@ -37,18 +37,18 @@
                 <li v-for="(item, i) in basicInfoList" :key="i">
                   <div class="left">
                     <div class="content-title">{{ item.leftStr + "锛�" }}</div>
-                    <div class="content-data">{{ item.leftValue }}</div>
+                    <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div>
                   </div>
-                  <div class="right">
-                    <div class="content-title">{{ item.rightStr }}</div>
-                    <div class="content-data">{{ item.rightValue }}</div>
+                  <div v-if="item.rightStr" class="right">
+                    <div class="content-title">{{ item.rightStr + "锛�" }}</div>
+                    <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div>
                   </div>
                 </li>
               </ul>
             </div>
           </div>
           <!-- 闄勪欢淇℃伅 -->
-          <div class="basic-info">
+          <!-- <div class="basic-info">
             <div class="basic-info-label" @click="expandClick('annex')">
               <i v-if="isAnnexExpand" class="el-icon-arrow-down"></i>
               <i v-else class="el-icon-arrow-up"></i>
@@ -64,7 +64,7 @@
                 </li>
               </ul>
             </div>
-          </div>
+          </div> -->
           <!-- 浜у搧绠$悊 -->
           <div class="basic-info">
             <div class="basic-info-label" @click="expandClick('product')">
@@ -93,6 +93,7 @@
 <script>
 import SalesDetails from "@/views/sales/salesDetails"
 import CommonFormTableView from "@/components/makepager/CommonFormTableView"
+
 export default {
   name: "DetailSubOrder",
   props: {
@@ -126,24 +127,24 @@
     }
   },
   created() {
-    this.setData()
+    this.setData(this.detailConfig.infomation)
     this.setTableForm()
   },
   mounted() {},
   methods: {
-    setData() {
+    setData(item) {
       this.basicInfoList = [
         {
           leftStr: "瀹㈡埛鍚嶇О",
-          leftValue: "",
+          leftValue: item.client.name,
           rightStr: "鍗曟嵁缂栧彿",
-          rightValue: ""
+          rightValue: item.number
         },
         {
           leftStr: "閿�鍞�诲崟",
-          leftValue: "",
+          leftValue: item.masterOrder.number,
           rightStr: "璐熻矗浜�",
-          rightValue: ""
+          rightValue: item.member.username
         },
         {
           leftStr: "鍒涘缓浜�",
@@ -156,19 +157,19 @@
           leftValue: "",
           rightStr: "鏇存柊鏃堕棿",
           rightValue: ""
-        },
-        {
-          leftStr: "瀹℃壒鐘舵��",
-          leftValue: "",
-          rightStr: "鏈�鏂板鎵规椂闂�",
-          rightValue: ""
-        },
-        {
-          leftStr: "涓婁竴姝ュ鎵逛汉",
-          leftValue: "",
-          rightStr: "褰撳墠瀹℃壒浜�",
-          rightValue: ""
         }
+        // {
+        //   leftStr: "瀹℃壒鐘舵��",
+        //   leftValue: "",
+        //   rightStr: "鏈�鏂板鎵规椂闂�",
+        //   rightValue: ""
+        // },
+        // {
+        //   leftStr: "涓婁竴姝ュ鎵逛汉",
+        //   leftValue: "",
+        //   rightStr: "褰撳墠瀹℃壒浜�",
+        //   rightValue: ""
+        // }
       ]
     },
     handleClose() {

--
Gitblit v1.8.0