chenrui hai 1 ano
pai
achega
6f7f51a279
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/views/reportData/hPriceDifferenceDetailReport/list.vue

+ 4 - 2
src/views/reportData/hPriceDifferenceDetailReport/list.vue

@@ -227,8 +227,9 @@ export default {
               if (data.list[i].bizType) {
                 data.list[i].bizTypeValue = data.list[i].bizType == 'SALES' ? '采购差价' : data.list[i].bizType == 'SALES_RETURN' ? '退货差价' : ''
               }
-              if (data.list[i].parentDealerName) {
-                data.list[i].parentDealerName += '(' + data.list[i].rebateRate * 100 + '%)'
+
+              if (data.list[i].rebateRate || data.list[i].rebateRate == 0) {
+                data.list[i].rebateRate = data.list[i].rebateRate * 100 + '%'
               }
             }
             this.disabled = false
@@ -257,6 +258,7 @@ export default {
         { title: '日期', dataIndex: 'bizDate', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '省份', dataIndex: 'provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '差价归属方', dataIndex: 'parentDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '百分比', dataIndex: 'rebateRates', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '差价归属类型', dataIndex: 'rebateParentTypeDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'buyerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '客户级别', dataIndex: 'buyerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },