|
@@ -915,17 +915,17 @@ rationItemDAO.prototype.exportExcelData = async function(rationRepId) {
|
|
|
rationRepId: rationRepId
|
|
|
};
|
|
|
// @todo 限制导出的数量以防内存溢出
|
|
|
- const rationDataList = await this.getRationItemByCondition(condition, ['name', 'code', 'ID', 'sectionId', 'feeType', 'caption']);
|
|
|
+ const rationDataList = await this.getRationItemByCondition(condition, ['name', 'code', 'ID', 'sectionId', 'feeType', 'caption', 'basePrice']);
|
|
|
|
|
|
// 整理数据
|
|
|
let rationData = [];
|
|
|
for (const tmp of rationDataList) {
|
|
|
const sectionId = tmp.sectionId <= 0 || tmp.sectionId === undefined ? null : tmp.sectionId;
|
|
|
const feeType = tmp.feeType === '' || tmp.feeType === undefined ? null : tmp.feeType;
|
|
|
- const ration = [sectionId, feeType, tmp.ID, tmp.code, tmp.name, tmp.caption];
|
|
|
+ const ration = [sectionId, feeType, tmp.ID, tmp.code, tmp.name, tmp.caption, tmp.basePrice];
|
|
|
rationData.push(ration);
|
|
|
}
|
|
|
- const excelData = [['树ID', '取费专业', '定额ID', '定额编码', '定额名', '定额显示名称']];
|
|
|
+ const excelData = [['树ID', '取费专业', '定额ID', '定额编码', '定额名', '定额显示名称', '基价']];
|
|
|
excelData.push.apply(excelData, rationData);
|
|
|
|
|
|
return excelData;
|