Просмотр исходного кода

bug修复 价格变更记录 合计

chenrui 4 лет назад
Родитель
Сommit
fb8e663263
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      src/views/productManagement/priceChangeRecord/list.vue

+ 6 - 4
src/views/productManagement/priceChangeRecord/list.vue

@@ -69,7 +69,7 @@
     </div>
     <!-- 总计 -->
     <a-alert type="info" showIcon style="margin-bottom:15px">
-      <div slot="message">合计:<strong>300</strong></div>
+      <div slot="message">合计:<strong>{{ total }}</strong></div>
     </a-alert>
     <!-- 列表 -->
     <s-table
@@ -79,7 +79,7 @@
       :rowKey="(record) => record.id"
       :columns="columns"
       :data="loadData"
-      :scroll="{ x: 2140, y: tableHeight }"
+      :scroll="{ x: 2340, y: tableHeight }"
       bordered>
       <!-- 产品分类 -->
       <template slot="productType" slot-scope="text, record">
@@ -148,8 +148,8 @@ export default {
         { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
         { title: '变更时间', dataIndex: 'updateDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品名称', dataIndex: 'productEntity.name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
-        { title: '产品编码', dataIndex: 'productEntity.code', width: 140, align: 'center' },
-        { title: '品牌', dataIndex: 'productEntity.productBrandName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品编码', dataIndex: 'productEntity.code', width: 220, align: 'center' },
+        { title: '品牌', dataIndex: 'productEntity.productBrandName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 200, align: 'center' },
         { title: '单位', dataIndex: 'productEntity.unit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
         {
@@ -224,10 +224,12 @@ export default {
           for (var i = 0; i < data.list.length; i++) {
             data.list[i].no = no + i + 1
           }
+          this.total = data.count || 0
           this.disabled = false
           return data
         })
       },
+      total: 0,
       productBrandList: [], //  品牌下拉数据
       productTypeList: [] //  分类下拉数据
     }