|
@@ -203,13 +203,13 @@
|
|
|
columns: [
|
|
|
{ title: '产品编码', dataIndex: 'creatDate', align: 'center' },
|
|
|
{ title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
|
|
|
- { title: '原厂编码', dataIndex: 'totalP', align: 'center' },
|
|
|
- { title: '品牌', dataIndex: 'custsNsame', align: 'center' },
|
|
|
- { title: '仓库', dataIndex: 'custsNdame', align: 'center' },
|
|
|
- { title: '仓位', dataIndex: 'custsNafme', align: 'center' },
|
|
|
- { title: '成本价', dataIndex: 'storageQuantity', align: 'center' },
|
|
|
- { title: '库存数量', dataIndex: 'custsNagme', align: 'center' },
|
|
|
- { title: '单位', dataIndex: 'custsNsagme', align: 'center' },
|
|
|
+ { title: '原厂编码', dataIndex: 'totalP', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '品牌', dataIndex: 'custsNsame', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '仓库', dataIndex: 'custsNdame', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '仓位', dataIndex: 'custsNafme', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '成本价', dataIndex: 'storageQuantity', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '库存数量', dataIndex: 'custsNagme', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '单位', dataIndex: 'custsNsagme', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '调出数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center' }
|
|
|
],
|
|
@@ -246,16 +246,16 @@
|
|
|
// 表头
|
|
|
chooseColumns: [
|
|
|
{ title: '序号', dataIndex: 'no', align: 'center' },
|
|
|
- { title: '产品编码', dataIndex: 'creatDate', align: 'center' },
|
|
|
+ { title: '产品编码', dataIndex: 'creatDate', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'custNahme', align: 'center', ellipsis: true },
|
|
|
- { title: '原厂编码', dataIndex: 'totalP', align: 'center' },
|
|
|
- { title: '品牌', dataIndex: 'custsNsame', align: 'center' },
|
|
|
- { title: '仓库', dataIndex: 'custsNdame', align: 'center' },
|
|
|
- { title: '仓位', dataIndex: 'custsNafme', align: 'center' },
|
|
|
- { title: '成本价', dataIndex: 'storageQuantity', align: 'center' },
|
|
|
- { title: '单位', dataIndex: 'custsNsagme', align: 'center' },
|
|
|
+ { title: '原厂编码', dataIndex: 'totalP', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '品牌', dataIndex: 'custsNsame', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '仓库', dataIndex: 'custsNdame', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '仓位', dataIndex: 'custsNafme', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '成本价', dataIndex: 'storageQuantity', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '单位', dataIndex: 'custsNsagme', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '调出数量', scopedSlots: { customRender: 'transferOutQuantity' }, align: 'center' },
|
|
|
- { title: '成本小计', dataIndex: 'custsNagme', align: 'center' },
|
|
|
+ { title: '成本小计', dataIndex: 'custsNagme', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|