chenrui 3 år sedan
förälder
incheckning
9eee9b4bbf

+ 3 - 3
src/views/salesManagement/salesReturn/list.vue

@@ -203,8 +203,8 @@ export default {
       // 表头
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
-        { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
-        { title: '单据来源', dataIndex: 'salesReturnBillSourceDictValue', width: 140, align: 'center' },
+        { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '单据来源', dataIndex: 'salesReturnBillSourceDictValue', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户采退单号', dataIndex: 'purchaseReturnBillNo', width: 260, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '总部销退单号', scopedSlots: { customRender: 'salesReturnBillNo' }, width: 260, align: 'center' },
         { title: '退货客户', dataIndex: 'buyerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
@@ -214,7 +214,7 @@ export default {
         { title: '退款金额', dataIndex: 'totalAmount', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? ('¥' + text) : '--') } },
         { title: '是否抓单', dataIndex: 'grabFlag', width: 100, align: 'center', customRender: function (text) { return ['否', '是'][text] } },
         { title: '审核时间', dataIndex: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '业务状态', dataIndex: 'billStatusDictValue', width: 110, align: 'center' },
+        { title: '业务状态', dataIndex: 'billStatusDictValue', width: 110, align: 'center', customRender: function (text) { return text || '--' } },
         // { title: '财务状态', dataIndex: 'financialStatusDictValue', scopedSlots: { customRender: 'financialStatus' }, width: 110, align: 'center' },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: 180, align: 'center', fixed: 'right' }
       ],

+ 5 - 5
src/views/salesManagement/salesReturn/salesReturnCheck.vue

@@ -88,13 +88,13 @@ export default {
       // 表头
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
-        { title: '产品编码', dataIndex: 'productEntity.code', align: 'center', width: 160 },
-        { title: '产品名称', dataIndex: 'productEntity.name', align: 'center', width: 200 },
-        { title: '退货数量', dataIndex: 'qty', align: 'center', width: 150 },
-        { title: '坏件数量', dataIndex: 'badQty', align: 'center', width: 150 },
+        { title: '产品编码', dataIndex: 'productEntity.code', align: 'center', width: 160, customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'productEntity.name', align: 'center', width: 200, customRender: function (text) { return text || '--' } },
+        { title: '退货数量', dataIndex: 'qty', align: 'center', width: 150, customRender: function (text) { return text || '--' } },
+        { title: '坏件数量', dataIndex: 'badQty', align: 'center', width: 150, customRender: function (text) { return text || '--' } },
         { title: '返库数量', dataIndex: 'backStockQty', width: 150, align: 'center', scopedSlots: { customRender: 'backStockQty' } },
         { title: '单位', dataIndex: 'productEntity.unit', align: 'center', customRender: function (text) { return text || '--' }, width: 100 },
-        { title: '售价', dataIndex: 'price', customRender: function (text) { return '¥' + (text || 0) }, align: 'center', width: 150 }
+        { title: '售价', dataIndex: 'price', customRender: function (text) { return ((text || text == 0) ? ('¥' + text) : '--') }, align: 'center', width: 150 }
       ],
       chooseLoadData: [],
       // 加载数据方法 必须为 Promise 对象