|
@@ -136,21 +136,21 @@ export default {
|
|
if (this.grabFlag == 1) {
|
|
if (this.grabFlag == 1) {
|
|
this.columns = [
|
|
this.columns = [
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: 80 },
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: 80 },
|
|
- { title: '产品编码', dataIndex: 'dealerProductEntity.code', align: 'center', sorter: true, width: 220 },
|
|
|
|
- { title: '产品名称', dataIndex: 'dealerProductEntity.name', align: 'center', ellipsis: true },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'dealerProductEntity.code', align: 'center', customRender: function (text) { return text || '--' }, sorter: true, width: 220 },
|
|
|
|
+ { title: '产品名称', dataIndex: 'dealerProductEntity.name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', align: 'center', customRender: function (text) { return text || '--' }, width: 220 },
|
|
{ title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', align: 'center', customRender: function (text) { return text || '--' }, width: 220 },
|
|
- { title: '销售单号', dataIndex: 'salesBillNo', align: 'center', width: 220 },
|
|
|
|
|
|
+ { title: '销售单号', dataIndex: 'salesBillNo', align: 'center', width: 220, customRender: function (text) { return text || '--' } },
|
|
{ title: '销售审核时间', dataIndex: 'auditDate', align: 'center', customRender: function (text) { return text || '--' }, width: 160 },
|
|
{ title: '销售审核时间', dataIndex: 'auditDate', align: 'center', customRender: function (text) { return text || '--' }, width: 160 },
|
|
{ title: '售价', dataIndex: 'price', align: 'center', width: 100, scopedSlots: { customRender: 'price' } },
|
|
{ title: '售价', dataIndex: 'price', align: 'center', width: 100, scopedSlots: { customRender: 'price' } },
|
|
- { title: '单位', dataIndex: 'dealerProductEntity.unit', align: 'center', width: 100 },
|
|
|
|
- { title: '销售数量', dataIndex: 'qty', align: 'center', width: 100 },
|
|
|
|
- { title: '已退数量', dataIndex: 'hasReturnQty', align: 'center', width: 100 },
|
|
|
|
|
|
+ { title: '单位', dataIndex: 'dealerProductEntity.unit', align: 'center', width: 100, customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '销售数量', dataIndex: 'qty', align: 'center', width: 100, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
+ { title: '已退数量', dataIndex: 'hasReturnQty', align: 'center', width: 100, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ slots: { title: 'customTitle' }, scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }]
|
|
{ slots: { title: 'customTitle' }, scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }]
|
|
} else {
|
|
} else {
|
|
this.columns = [
|
|
this.columns = [
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: 80 },
|
|
{ title: '序号', dataIndex: 'no', align: 'center', width: 80 },
|
|
- { title: '产品编码', dataIndex: 'productCode', align: 'center', sorter: true },
|
|
|
|
- { title: '产品名称', dataIndex: 'productName', align: 'center', ellipsis: true },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'productCode', align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
|
+ { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '原厂编码', dataIndex: 'productOrigCode', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '售价', dataIndex: 'salePrice', align: 'center', width: 100, scopedSlots: { customRender: 'price' } },
|
|
{ title: '售价', dataIndex: 'salePrice', align: 'center', width: 100, scopedSlots: { customRender: 'price' } },
|
|
{ title: '单位', dataIndex: 'unit', align: 'center', customRender: function (text) { return text || '--' }, width: 100 },
|
|
{ title: '单位', dataIndex: 'unit', align: 'center', customRender: function (text) { return text || '--' }, width: 100 },
|