|
@@ -17,9 +17,19 @@ class rptMemChange extends RptMemBase {
|
|
super(ctx, bindData);
|
|
super(ctx, bindData);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ _getChangeConstName(define, value) {
|
|
|
|
+ for (const prop in define) {
|
|
|
|
+ if (define[prop].value === value) {
|
|
|
|
+ return define[prop].name;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return '';
|
|
|
|
+ }
|
|
|
|
+
|
|
async _anaylisChange(change) {
|
|
async _anaylisChange(change) {
|
|
|
|
+ const self = this;
|
|
const types = this.ctx.helper._.map(change.type.split(','), function (t) {
|
|
const types = this.ctx.helper._.map(change.type.split(','), function (t) {
|
|
- return self._getChangeConstName(changeConst.type, this.ctx.helper._.toInteger(t));
|
|
|
|
|
|
+ return self._getChangeConstName(changeConst.type, self.ctx.helper._.toInteger(t));
|
|
});
|
|
});
|
|
change.type = types.join(';');
|
|
change.type = types.join(';');
|
|
change.class = this._getChangeConstName(changeConst.class, change.class);
|
|
change.class = this._getChangeConstName(changeConst.class, change.class);
|
|
@@ -36,7 +46,7 @@ class rptMemChange extends RptMemBase {
|
|
async doCheckTender(tenderId) {
|
|
async doCheckTender(tenderId) {
|
|
if (this.ctx.tender) return;
|
|
if (this.ctx.tender) return;
|
|
this.ctx.tender = { id: tenderId };
|
|
this.ctx.tender = { id: tenderId };
|
|
- this.ctx.tender.data = await this.ctx.service.getTender(tenderId);
|
|
|
|
|
|
+ this.ctx.tender.data = await this.ctx.service.tender.getTender(tenderId);
|
|
this.ctx.tender.info = await this.ctx.service.tenderInfo.getTenderInfo(tenderId);
|
|
this.ctx.tender.info = await this.ctx.service.tenderInfo.getTenderInfo(tenderId);
|
|
}
|
|
}
|
|
|
|
|