Przeglądaj źródła

变更令,报表数据源,新增签约清单数据表

MaiXinRong 3 tygodni temu
rodzic
commit
1481dce798
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 0 2
      app/controller/file_controller.js
  2. 2 0
      app/lib/rm/change.js

+ 0 - 2
app/controller/file_controller.js

@@ -407,7 +407,6 @@ module.exports = app => {
                 if (!data.type) throw '参数错误';
 
                 let files;
-                console.log(data);
                 switch(data.type) {
                     case 'ledger':
                         files = await this._loadLedgerAtt(data);
@@ -432,7 +431,6 @@ module.exports = app => {
                         break;
                     default: throw '未知文件类型';
                 }
-                console.log(files);
                 ctx.body = {err: 0, msg: '', data: files };
             } catch (error) {
                 ctx.helper.log(error);

+ 2 - 0
app/lib/rm/change.js

@@ -166,6 +166,8 @@ class rptMemChange extends RptMemBase {
                 return [this.ctx.tender.data];
             case 'mem_tender_info':
                 return [this.ctx.tender.info];
+            case 'mem_deal_bills':
+                return this.ctx.service.dealBills.getAllDataByCondition({ where: { tender_id: this.ctx.tender.id }, orders: [['order', 'asc']] });
             case 'mem_change_ledger_bills':
                 return this.getChangeLedgerBillsData(fields);
             case 'mem_change_ledger_bills_filter':