|
@@ -31,7 +31,17 @@ module.exports = app => {
|
|
|
_analysisTenderCache(tender, cache, uid) {
|
|
|
commonField.forEach(f => { tender[f] = cache[f]; });
|
|
|
tender.ledger_tp = cache.ledger_tp ? JSON.parse(cache.ledger_tp) : {};
|
|
|
- if (!cache.stage_count || (cache.stage_count === 1 && cache.stage_status === auditConst.stage.status.uncheck && cache.stage_flow_cur_uid !== uid)) {
|
|
|
+ if (cache.ledger_status === auditConst.ledger.status.uncheck) {
|
|
|
+ tender.cur_flow = JSON.parse(cache.ledger_flow_cur_info || cache.ledger_flow_pre_info);
|
|
|
+ tender.cur_flow.title = '台账';
|
|
|
+ tender.pre_flow = null;
|
|
|
+ tender.stage_tp = {};
|
|
|
+ tender.progress = {
|
|
|
+ title: '台账',
|
|
|
+ status: auditConst.ledger.tiStatusString[cache.ledger_status],
|
|
|
+ status_class: auditConst.ledger.tiStatusStringClass[cache.ledger_status],
|
|
|
+ };
|
|
|
+ } else if (!cache.stage_count || (cache.stage_count === 1 && cache.stage_status === auditConst.stage.status.uncheck && cache.stage_flow_cur_uid !== uid)) {
|
|
|
tender.cur_flow = JSON.parse(cache.ledger_flow_cur_info || cache.ledger_flow_pre_info);
|
|
|
tender.cur_flow.title = '台账';
|
|
|
tender.pre_flow = JSON.parse(cache.ledger_flow_pre_info || cache.ledger_flow_cur_info);
|