|
@@ -85,17 +85,17 @@ module.exports = app => {
|
|
|
try {
|
|
|
tender.progress = {
|
|
|
title: `第${tender.cur_flow.order === undefined ? tender.cur_flow[0].order : tender.cur_flow.order}期`,
|
|
|
- status: auditConst.stage.statusButton[cache.stage_status],
|
|
|
- status_class: auditConst.stage.statusButton[cache.stage_status],
|
|
|
+ status: auditConst.stage.statusButton[tender.stage_status],
|
|
|
+ status_class: auditConst.stage.tiStatusStringClass[auditConst.stage.status.uncheck],
|
|
|
};
|
|
|
} catch (err) {
|
|
|
tender.progress = {
|
|
|
title: `第${tender.stage_count}期`,
|
|
|
- status: auditConst.stage.tiStatusString[cache.stage_status],
|
|
|
- status_class: auditConst.stage.tiStatusStringClass[cache.stage_status],
|
|
|
+ status: auditConst.stage.statusButton[tender.stage_status],
|
|
|
+ status_class: auditConst.stage.tiStatusStringClass[auditConst.stage.status.uncheck],
|
|
|
};
|
|
|
}
|
|
|
- } else if (cache.stage_status !== auditConst.stage.status.checked) {
|
|
|
+ } else if (cache.stage_status === auditConst.stage.status.checked) {
|
|
|
tender.stage_status = auditConst.stage.status.checked;
|
|
|
tender.stage_count = tender.stage_complete_count;
|
|
|
tender.stage_complete_count = tender.stage_complete_count;
|
|
@@ -105,14 +105,14 @@ module.exports = app => {
|
|
|
try {
|
|
|
tender.progress = {
|
|
|
title: `第${tender.cur_flow.order === undefined ? tender.cur_flow[0].order : tender.cur_flow.order}期`,
|
|
|
- status: auditConst.stage.tiStatusString[cache.stage_status],
|
|
|
- status_class: auditConst.stage.tiStatusStringClass[cache.stage_status],
|
|
|
+ status: auditConst.stage.tiStatusString[tender.stage_status],
|
|
|
+ status_class: auditConst.stage.tiStatusStringClass[tender.stage_status],
|
|
|
};
|
|
|
} catch (err) {
|
|
|
tender.progress = {
|
|
|
title: `第${tender.stage_count}期`,
|
|
|
- status: auditConst.stage.tiStatusString[cache.stage_status],
|
|
|
- status_class: auditConst.stage.tiStatusStringClass[cache.stage_status],
|
|
|
+ status: auditConst.stage.tiStatusString[tender.stage_status],
|
|
|
+ status_class: auditConst.stage.tiStatusStringClass[tender.stage_status],
|
|
|
};
|
|
|
}
|
|
|
} else {
|
|
@@ -125,14 +125,14 @@ module.exports = app => {
|
|
|
try {
|
|
|
tender.progress = {
|
|
|
title: `第${tender.pre_flow.order === undefined ? tender.pre_flow[0].order : tender.pre_flow.order}期`,
|
|
|
- status: auditConst.stage.tiStatusString[auditConst.stage.status.checked],
|
|
|
- status_class: auditConst.stage.tiStatusStringClass[auditConst.stage.status.checked],
|
|
|
+ status: auditConst.stage.tiStatusString[tender.stage_status],
|
|
|
+ status_class: auditConst.stage.tiStatusStringClass[tender.stage_status],
|
|
|
};
|
|
|
} catch(err) {
|
|
|
tender.progress = {
|
|
|
title: `第${tender.stage_count}期`,
|
|
|
- status: auditConst.stage.tiStatusString[auditConst.stage.status.checked],
|
|
|
- status_class: auditConst.stage.tiStatusStringClass[auditConst.stage.status.checked],
|
|
|
+ status: auditConst.stage.tiStatusString[tender.stage_status],
|
|
|
+ status_class: auditConst.stage.tiStatusStringClass[tender.stage_status],
|
|
|
};
|
|
|
}
|
|
|
}
|