Explorar o código

报表数据源,合同管理数据问题

MaiXinRong hai 3 meses
pai
achega
3243893337
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      app/service/report_memory.js

+ 4 - 3
app/service/report_memory.js

@@ -1726,15 +1726,16 @@ module.exports = app => {
 
         async getSpContractTree(tid, contract_type) {
             await this.ctx.service.tender.checkTender(tid);
-            await this._getContractTree({ spid: this.ctx.tender.data.spid, contract_type });
+            console.log(this.ctx.tender);
+            await this._getContractTree({ spid: this.ctx.tender.spid, contract_type });
         }
         async getSpContract(tid, contract_type) {
             await this.ctx.service.tender.checkTender(tid);
-            return await this._getContract({ spid: this.ctx.tender.data.spid, contract_type });
+            return await this._getContract({ spid: this.ctx.tender.spid, contract_type });
         }
         async getSpContractPay(tid, contract_type) {
             await this.ctx.service.tender.checkTender(tid);
-            return await this._getContractPay({ spid: this.ctx.tender.data.spid, contract_type });
+            return await this._getContractPay({ spid: this.ctx.tender.spid, contract_type });
         }
     }