Commit 48a77f50 by zhaoxiqing

gsb

parent 50a222e8
......@@ -17,6 +17,7 @@ class EcontractCtl extends CtlBase {
this.Mail = system.getObject("util.mailClient");
this.excelClient = system.getObject("util.excelClient");
this.econtractDao = system.getObject("db.econtractDao")
this.eSignBaoRedirectBossUrl = settings.apiconfig.eSignBaoRedirectBossUrl();
}
......@@ -261,9 +262,9 @@ class EcontractCtl extends CtlBase {
return system.getErrResult2("协议不存在,请刷新重新选择");
}
let sinedTemplateIds = await this.service.findUserSinedTemplateIds(eaccount_id);
if (sinedTemplateIds.indexOf(Number(etemplate.id)) != -1) {
let todays = moment().format("YYYY-MM-DD") + " 00:00:00";
let contractId = await this.econtractDao.findSignedContractId({idno: eaccount.personsSign, ecid: etemplateid, today : todays}) || 0;
if (contractId) {
return system.getErrResult2("你已经签署该公司协议,不可以重复签署");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment