lilei 4 yıl önce
ebeveyn
işleme
33cfffebe0

+ 43 - 56
src/views/reportData/priceDifferenceDetailReport/list.vue

@@ -85,6 +85,25 @@
       :data="loadData"
       :scroll="{ x: 2250, y: tableHeight }"
       bordered>
+      <template slot="footer" slot-scope="currentPageData">
+        <a-row :gutter="15">
+          <a-col :md="4" :sm="24">
+            分公司金额:700.00
+          </a-col>
+          <a-col :md="4" :sm="24">
+            加盟商金额:780.00
+          </a-col>
+          <a-col :md="4" :sm="24">
+            特约加盟店金额:--
+          </a-col>
+          <a-col :md="4" :sm="24">
+            直接差价金额:80.00
+          </a-col>
+          <a-col :md="4" :sm="24">
+            间接差价金额:0
+          </a-col>
+        </a-row>
+      </template>
     </s-table>
   </a-card>
 </template>
@@ -189,12 +208,12 @@ export default {
           align: 'center',
           customRender: function (text) { return text || '--' }
         },
-        { title: '分公司金额', width: 100, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
-        { title: '加盟商金额', width: 100, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
-        { title: '特约加盟商金额', width: 100, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
-        { title: '直接差价', width: 100, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
-        { title: '间接差价', width: 100, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
-        { title: '类型', width: 100, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } }
+        { title: '分公司金额', width: 100, dataIndex: 'p1', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
+        { title: '加盟商金额', width: 100, dataIndex: 'p2', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
+        { title: '特约加盟商金额', width: 100, dataIndex: 'p3', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
+        { title: '直接差价', width: 100, dataIndex: 'p4', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
+        { title: '间接差价', width: 100, dataIndex: 'p5', align: 'center', customRender: function (text) { return text ? ('¥' + text) : '--' } },
+        { title: '类型', width: 100, dataIndex: 'type', align: 'center', customRender: function (text) { return text || '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
@@ -221,56 +240,24 @@ export default {
             list: [
               {
                 area: 'A区',
-                provinceName: '广东省',
-                custName: '支持省级',
-                custType: '省级服务中心',
-                pp1: '0',
-                pp2: '36.50',
-                pp3: '0',
-                pp4: '0',
-                pp5: '0',
-                pp6: '0',
-                pp7: '0',
-                pp8: '0',
-                pp9: '0',
-                pp10: '0',
-                pp11: '0',
-                pp12: '0',
-                pp13: '0',
-                pp14: '0',
-                pp15: '0',
-                pp16: '0',
-                pp17: '0',
-                pp18: '0',
-                pp19: '0',
-                totalAmount: '36.50'
-              },
-              {
-                area: '合计',
-                provinceName: '合计',
-                custName: '合计',
-                custType: '合计',
-                pp1: '0',
-                pp2: '36.50',
-                pp3: '0',
-                pp4: '0',
-                pp5: '0',
-                pp6: '0',
-                pp7: '0',
-                pp8: '0',
-                pp9: '0',
-                pp10: '0',
-                pp11: '0',
-                pp12: '0',
-                pp13: '37.00',
-                pp14: '0',
-                pp15: '0',
-                pp16: '0',
-                pp17: '0',
-                pp18: '0',
-                pp19: '0',
-                totalAmount: '36.50'
-              }],
+                orderNo: 'XS2106210000118',
+                creatDate: '2021/6/21 19:16:18',
+                provinceName: '浙江省',
+                zjCustName: '剪冠汽配杭州金球店',
+                djCustName: '',
+                custName: '剪冠汽配丽水龙泉店',
+                custType: '市级加盟商',
+                brand: '箭牌',
+                proCls: '滤清器',
+                nums: '100',
+                p1: '700.00',
+                p2: '780.00',
+                p3: '',
+                p4: '80.00',
+                p5: '0.00',
+                type: '采购差价'
+              }
+            ],
             count: 1
           }
           for (var i = 0; i < data.list.length; i++) {