stage_im.js 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Mai
  6. * @date
  7. * @version
  8. */
  9. const imType = require('../const/tender').imType;
  10. class Stage_IM {
  11. async initData () {
  12. this.ledgerData = await this.ctx.service.ledger.getDataByTenderId(this.ctx.tender.id);
  13. this.stageBillsData = await this.ctx.service.stageBills.getAuditorStageData(this.ctx.tender.id, this.ctx.stage.id, this.ctx.stage.times, this.ctx.stage.order);
  14. // to do
  15. this.orgStageImData = [];
  16. }
  17. async buildTzImData () {
  18. }
  19. async buildTzImGatherData () {
  20. }
  21. async buildStageImData (ctx) {
  22. this.ctx = ctx;
  23. if (this.ctx.stage.im_type === imType.tz.value) {
  24. if (this.ctx.stage.im_gather) {
  25. } else {
  26. }
  27. } else if (this.ctx.stage.im_type === imType.zl.value) {
  28. if (this.ctx.stage.im_gather) {
  29. } else {
  30. }
  31. }
  32. }
  33. }
  34. module.exports = Stage_IM;