|
@@ -368,38 +368,6 @@ let rptSignatureHelper = {
|
|
|
zTreeOprObj.showPage(zTreeOprObj.currentPage, zTreeOprObj.canvas);
|
|
|
},
|
|
|
resetSignDate: function() {
|
|
|
- // for (let idx = 0; idx < ROLE_REL_LIST.length; idx++) {
|
|
|
- // const role_rel = ROLE_REL_LIST[idx];
|
|
|
- // const idSuffixStr = 'dtp_' + role_rel.signature_name;
|
|
|
- // let dtDom = $('#' + idSuffixStr);
|
|
|
- // if (dtDom.length === 1) {
|
|
|
- // const dtStr = dtDom[0].value;
|
|
|
- // if (dtStr && dtStr !== '' && dtStr.length >= 8 && dtStr.length <= 10) {
|
|
|
- // // const tmpDt = new Date(dtStr);
|
|
|
- // // const year = parseInt(tmpDt.getFullYear());
|
|
|
- // // const month = parseInt(tmpDt.getMonth());
|
|
|
- // // const dt = parseInt(tmpDt.getDate());
|
|
|
- // // role_rel.sign_date = new Date(year, month, dt);
|
|
|
- // role_rel.sign_date = new Date(dtStr);
|
|
|
- // } else {
|
|
|
- // role_rel.sign_date = '';
|
|
|
- // }
|
|
|
- // // 要处理相关签名Cell属性(默认跟普通cell一样,就多了个signature_name)
|
|
|
- // for (const page of zTreeOprObj.currentRptPageRst.items) {
|
|
|
- // if (page.signature_date_cells) {
|
|
|
- // for (const sCell of page.signature_date_cells) {
|
|
|
- // sCell.Value = _getSignDateDftName();
|
|
|
- // if (sCell.signature_name === role_rel.signature_name + '_签字日期') {
|
|
|
- // if (role_rel.sign_date !== '') {
|
|
|
- // sCell.Value = role_rel.sign_date.Format(role_rel.sign_date_format);
|
|
|
- // } else {
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
for (const page of zTreeOprObj.currentRptPageRst.items) {
|
|
|
if (page.signature_date_cells) {
|
|
|
for (const sCell of page.signature_date_cells) {
|
|
@@ -433,9 +401,33 @@ let rptSignatureHelper = {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ resetSignAudit: function () {
|
|
|
+ for (const page of zTreeOprObj.currentRptPageRst.items) {
|
|
|
+ if (page.signature_audit_cells) {
|
|
|
+ for (const sCell of page.signature_audit_cells) {
|
|
|
+ sCell.Value = '';
|
|
|
+ for (let idx = 0; idx < ROLE_REL_LIST.length; idx++) {
|
|
|
+ const role_rel = ROLE_REL_LIST[idx];
|
|
|
+ const idSuffixStr = 'dtp_' + role_rel.signature_name;
|
|
|
+ let dtDom = $('#' + idSuffixStr);
|
|
|
+ if (dtDom.length === 1) {
|
|
|
+ const dtStr = dtDom[0].value;
|
|
|
+ // 要处理相关签名Cell属性(默认跟普通cell一样,就多了个signature_name)
|
|
|
+ if (sCell.signature_name === role_rel.signature_name + '_审核意见') {
|
|
|
+ if (role_rel.sign_date !== '') {
|
|
|
+ sCell.Value = role_rel.sign_date.Format(role_rel.sign_date_format);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
setupAfterSelectSignature: function () {
|
|
|
//0. 签名日期
|
|
|
rptSignatureHelper.resetSignDate();
|
|
|
+ rptSignatureHelper.resetSignAudit();
|
|
|
if (current_stage_status === 3) {
|
|
|
//1. 重刷page
|
|
|
for (const page of zTreeOprObj.currentRptPageRst.items) {
|