Browse Source

报表内存表,变更令,添加附件名称列表

MaiXinRong 5 years ago
parent
commit
fc727520ef
2 changed files with 6 additions and 0 deletions
  1. 5 0
      app/service/report_memory.js
  2. 1 0
      builder_report_index_define.js

+ 5 - 0
app/service/report_memory.js

@@ -581,6 +581,11 @@ module.exports = app => {
                     c.class = this._getChangeConstName(changeConst.class, c.class);
                     c.quality = this._getChangeConstName(changeConst.quality, c.quality);
                     c.charge = this._getChangeConstName(changeConst.type, c.charge);
+                    c.attachments = await ctx.service.changeAtt.getChangeAttachment(c.cid);
+                    const names = ctx.helper._.map(c.attachments, function (x) {
+                        return x.filename + x.fileext;
+                    });
+                    c.attNames = names.join('\n');
                 }
                 const changeBills = await this.ctx.service.changeAuditList.getChangeAuditBills(tid);
                 for (const d of changeBills) {

+ 1 - 0
builder_report_index_define.js

@@ -139,6 +139,7 @@ const change = {
         {name: '金额_7', field: 'tp_7', type: dataType.currency, tag: {type: 'tp'}},
         {name: '金额_8', field: 'tp_8', type: dataType.currency, tag: {type: 'tp'}},
         {name: '金额_9', field: 'tp_9', type: dataType.currency, tag: {type: 'tp'}},
+        {name: '附件名称列表', field: 'attNames', type: dataType.currency},
     ]
 };
 const changeBills = {