|
@@ -35,7 +35,9 @@ module.exports = app => {
|
|
let sign_time = null;
|
|
let sign_time = null;
|
|
if ((this.ctx.detail.status !== auditConst.status.uncheck && this.ctx.detail.status !== auditConst.status.checkNo && this.ctx.detail.uid === uid) ||
|
|
if ((this.ctx.detail.status !== auditConst.status.uncheck && this.ctx.detail.status !== auditConst.status.checkNo && this.ctx.detail.uid === uid) ||
|
|
(this._.findIndex(this.ctx.detail.auditors, { aid: uid }) === -1 && this.ctx.detail.uid !== uid) ||
|
|
(this._.findIndex(this.ctx.detail.auditors, { aid: uid }) === -1 && this.ctx.detail.uid !== uid) ||
|
|
- (this._.findIndex(this.ctx.detail.auditors, { aid: uid }) !== -1 && this.ctx.detail.curAuditor && this.ctx.detail.curAuditor.aid !== uid)) {
|
|
|
|
|
|
+ (this._.findIndex(this.ctx.detail.auditors, { aid: uid }) !== -1 &&
|
|
|
|
+ ((this.ctx.detail.status === auditConst.status.checked && !this.ctx.detail.curAuditor) ||
|
|
|
|
+ (this.ctx.detail.curAuditor && this.ctx.detail.curAuditor.aid !== uid)))) {
|
|
let report_json = JSON.parse(this.ctx.detail.report_json);
|
|
let report_json = JSON.parse(this.ctx.detail.report_json);
|
|
report_json = await this.ctx.service.paymentDetail.signOneSignatureData(report_json, rptAudit.signature_name, signature_msg);
|
|
report_json = await this.ctx.service.paymentDetail.signOneSignatureData(report_json, rptAudit.signature_name, signature_msg);
|
|
// 同步期信息
|
|
// 同步期信息
|