'use strict'; /** * * * @author Mai * @date * @version */ const imType = require('../const/tender').imType; class Stage_IM { async initData () { this.ledgerData = await this.ctx.service.ledger.getDataByTenderId(this.ctx.tender.id); this.stageBillsData = await this.ctx.service.stageBills.getAuditorStageData(this.ctx.tender.id, this.ctx.stage.id, this.ctx.stage.times, this.ctx.stage.order); // to do this.orgStageImData = []; } async buildTzImData () { } async buildTzImGatherData () { } async buildStageImData (ctx) { this.ctx = ctx; if (this.ctx.stage.im_type === imType.tz.value) { if (this.ctx.stage.im_gather) { } else { } } else if (this.ctx.stage.im_type === imType.zl.value) { if (this.ctx.stage.im_gather) { } else { } } } } module.exports = Stage_IM;