戴艳蓉 3 anni fa
parent
commit
f32d007089

+ 7 - 1
src/views/goodStore/goodsOnline/ShowDataTableColumns.js

@@ -263,11 +263,17 @@ export default [
 
   {
     prop: "purchase",
-    label: "采购起订量信息",
+    label: "采购起订量",
     _slot_: "purchase",
     span: 24,
   },
 
+  {
+    prop: "nakelist",
+    label: "销售起订量",
+    _slot_: "nakelist",
+    span: 24,
+  },
 
 
 ]

+ 32 - 5
src/views/goodStore/goodsOnline/detail.vue

@@ -119,16 +119,39 @@
                 </template>
                 <template slot="purchase">
                   <el-table
-                    :data="sitem.ladderlist"
+                    :data="ladderlist"
                     :size="'mini'"
                     border
                     stripe
                     style="width: 99%; margin: 10px 10px 10px 0"
                   >
                     <el-table-column prop="min_num" label="起订量(>=)" />
-                    <el-table-column prop="nake_fee" label="成本合计" />
-                    <el-table-column prop="cost_fee" label="工艺费" />
-                    <el-table-column prop="delivery_fee" label="其中运费" />
+                    <el-table-column prop="origin_price" label="成本合计"/>
+                    <el-table-column prop="cost_fee" label="工艺费">
+                      <template slot-scope="scope">
+                        {{ scope.row }}
+                      </template>
+                    </el-table-column>
+                    <el-table-column prop="delivery_fee" label="其中运费">
+                      <template slot-scope="scope">
+                        {{ scope.row.delivery_fee }}
+                      </template>
+                    </el-table-column>
+                  </el-table>
+                </template>
+                <template slot="nakelist">
+                  <el-table
+                    :data="nakelist"
+                    :size="'mini'"
+                    border
+                    stripe
+                    style="width: 99%; margin: 10px 10px 10px 0"
+                  >
+                    <el-table-column prop="min_num" label="起订量(>=)" />
+                    <el-table-column prop="sale_price" label="售价" />
+                    <el-table-column prop="market_price" label="市场价" />
+                    <el-table-column prop="market_platform" label="对比平台" />
+                    <el-table-column prop="status" label="状态" />
                   </el-table>
                 </template>
               </show-data-table>
@@ -248,6 +271,8 @@ export default {
       options6: options6,
       options7: options7,
       options8: options8,
+      ladderlist: [],
+      nakelist: [],
       size: "small",
       activeTabs: "1",
       activeNames: ["0", "1", "2", "3", "4", "5", "6", "7"],
@@ -359,7 +384,9 @@ export default {
       this.loading = false;
       if (code === 0) {
         this.sitem = JSON.parse(JSON.stringify(data));
-        const { exam_status, cat_info } = this.sitem;
+        const { exam_status, cat_info, ladderlist, nakelist } = this.sitem;
+        this.ladderlist = JSON.parse(JSON.stringify(ladderlist));
+        this.nakelist = JSON.parse(JSON.stringify(nakelist));
         let cat = "";
         if (cat_info && cat_info.length > 0) {
           cat_info.forEach((e, i) => {