|
@@ -79,12 +79,14 @@ module.exports = app => {
|
|
|
// s.curAuditor = null;
|
|
|
// 根据期状态返回展示用户
|
|
|
s.curAuditor = await ctx.service.materialAudit.getAuditorByStatus(s.id, s.status, s.times);
|
|
|
- const materialStageList = s.stage_id.split(',');
|
|
|
- for (const ms of materialStageList) {
|
|
|
- const index = stages.findIndex(function(item) {
|
|
|
- return item.id === parseInt(ms);
|
|
|
- });
|
|
|
- stages.splice(index, 1);
|
|
|
+ if (!ctx.session.sessionProject.page_show.openMaterialStageRepeat) {
|
|
|
+ const materialStageList = s.stage_id.split(',');
|
|
|
+ for (const ms of materialStageList) {
|
|
|
+ const index = stages.findIndex(function(item) {
|
|
|
+ return item.id === parseInt(ms);
|
|
|
+ });
|
|
|
+ stages.splice(index, 1);
|
|
|
+ }
|
|
|
}
|
|
|
if (allMaterialTax && s.material_tax === 0) {
|
|
|
allMaterialTax = false;
|