|
@@ -227,7 +227,8 @@ module.exports = app => {
|
|
|
* @returns {Promise<number>}
|
|
|
*/
|
|
|
async updateNewMaterial(transaction, mid, ctx, stage_id, ex_calc) {
|
|
|
- const calcBase = await ctx.service.stage.getMaterialCalcBase(stage_id, ctx.tender.info);
|
|
|
+ const stage_list = await ctx.service.stage.getStageMsgByStageId(stage_id);
|
|
|
+ const calcBase = await ctx.service.stage.getMaterialCalcBase(stage_list, ctx.tender.info);
|
|
|
const old_ex_calc = ex_calc ? JSON.parse(ex_calc) : null;
|
|
|
const new_ex_calc = materialConst.ex_calc;
|
|
|
for (const bq of new_ex_calc) {
|