|
@@ -333,7 +333,8 @@ module.exports = app => {
|
|
|
}
|
|
|
}
|
|
|
// 取所有已被调用的工料清单表
|
|
|
- renderData.materialListData = await ctx.service.materialList.getAllDataByCondition({ tid: ctx.tender.id, mid: ctx.material.id });
|
|
|
+ const materialListData = await ctx.service.materialList.getAllDataByCondition({ where: { tid: ctx.tender.id, mid: ctx.material.id } });
|
|
|
+ renderData.materialListData = ctx.helper._.uniqBy(materialListData, 'mb_id');
|
|
|
// 基数
|
|
|
// if (!ctx.material.readOnly) {
|
|
|
const stage_list = await ctx.service.stage.getStageMsgByStageId(ctx.material.stage_id);
|