|
@@ -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 });
|
|
|
}
|
|
|
}
|
|
|
|