|
@@ -127,6 +127,9 @@ module.exports = app => {
|
|
|
const tenderList = await this.ctx.service.tender.getList('', userPermission, this.ctx.session.sessionUser.is_admin);
|
|
|
|
|
|
for (const t of tenderList) {
|
|
|
+ const tenderInfo = await this.ctx.service.tenderInfo.getTenderInfo(t.id);
|
|
|
+ t.contract_price = tenderInfo.deal_param.contractPrice;
|
|
|
+
|
|
|
if (t.user_id === this.ctx.session.sessionUser.accountId && (
|
|
|
t.ledger_status === auditConst.ledger.status.checkNo || t.ledger_status === auditConst.ledger.status.uncheck)) {
|
|
|
const sum = await this.ctx.service.ledger.addUp({ tender_id: t.id/* , is_leaf: true*/ });
|
|
@@ -178,8 +181,6 @@ module.exports = app => {
|
|
|
renderData.tenderList = await this.ctx.service.tender.getList(list_status, renderData.userPermission, this.ctx.session.sessionUser.is_admin);
|
|
|
|
|
|
for (const t of renderData.tenderList) {
|
|
|
- const tenderInfo = await this.ctx.service.tenderInfo.getTenderInfo(t.id);
|
|
|
- t.deal_tp = tenderInfo.deal_param.contractPrice;
|
|
|
if (t.ledger_status === auditConst.ledger.status.checked) {
|
|
|
t.lastStage = await this.ctx.service.stage.getLastestStage(t.id, true);
|
|
|
t.completeStage = await this.ctx.service.stage.getLastestCompleteStage(t.id);
|