|
@@ -291,15 +291,18 @@ let rptSignatureHelper = {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (!hasAudit) {
|
|
|
- for (const stg of STAGE_LIST) {
|
|
|
- if (stg.id === current_stage_id && stg.period) {
|
|
|
- const period = stg.period.split(' ~ ');
|
|
|
- if (period.length === 2) {
|
|
|
- dftDate = period[1];
|
|
|
- }
|
|
|
- }
|
|
|
+ if (!hasAudit && STAGE_FLOW && STAGE_FLOW.length > 0 && STAGE_FLOW[0].aid === userAccId) {
|
|
|
+ if (STAGE_FLOW[0].begin_time && STAGE_FLOW[0].begin_time !== '' && STAGE_FLOW[0].begin_time.length > 20) {
|
|
|
+ dftDate = (new Date(STAGE_FLOW[0].begin_time)).Format('yyyy-MM-dd');
|
|
|
}
|
|
|
+ // for (const stg of STAGE_LIST) {
|
|
|
+ // if (stg.id === current_stage_id && stg.period) {
|
|
|
+ // const period = stg.period.split(' ~ ');
|
|
|
+ // if (period.length === 2) {
|
|
|
+ // dftDate = period[1];
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
if (dftDate !== '') {
|
|
|
elementsStrArr.push('<input id="' + idSuffixStr + '" class="form-control form-control-sm mt-0" placeholder="选择签名日期" type="date" value="' + dftDate + '"');
|