|
@@ -153,7 +153,6 @@ class jhHelper {
|
|
|
rst[prefix + 'qc_tp'] = this.ctx.helper.mul(rst.unit_price, rst[prefix + 'qc_qty'], 2);
|
|
|
}
|
|
|
} else {
|
|
|
- if (bills.b_code === '203-1-a') console.log(bills);
|
|
|
rst.qc_qty = bills.qc_qty;
|
|
|
rst.qc_tp = bills.qc_tp;
|
|
|
rst.pre_qc_qty = bills.pre_qc_qty;
|
|
@@ -280,7 +279,13 @@ class jhHelper {
|
|
|
const helper = this.ctx.helper;
|
|
|
|
|
|
await this.ctx.service.stage.doCheckStage(stage);
|
|
|
+
|
|
|
const auditors = this.getLastestAuditors(stage.auditors);
|
|
|
+ const user = await this.ctx.service.projectAccount.getDataById(stage.user_id);
|
|
|
+ auditors.unshift({
|
|
|
+ aid: user.id, name: user.name, company: user.company, role: user.role,
|
|
|
+ times: stage.curTimes, order: 0
|
|
|
+ });
|
|
|
const billsData = await this._loadStageBillsData(tender, stage, gsDefine, auditors);
|
|
|
const posData = await this._loadStagePosData(tender, stage, gsDefine, auditors);
|
|
|
// 创建索引
|
|
@@ -366,7 +371,6 @@ class jhHelper {
|
|
|
const helper = this.ctx.helper;
|
|
|
// 排序
|
|
|
this.result.sort((x, y) => { return helper.compareCode(x.b_code, y.b_code); });
|
|
|
- // console.log(this.result);
|
|
|
return this.result;
|
|
|
}
|
|
|
|