Commit d8028233 by DESKTOP-7Q3CA17\86137

gsb

parent d4749766
......@@ -39,7 +39,7 @@ class EcontractCtl extends CtlBase {
return system.getErrResult2(rs.msg);
}else{
return system.getResult2(rs);
}
}
} catch (e) {
console.log(e);
return system.getErrResult2("您的网络不稳, 请稍后重试");
......@@ -83,12 +83,12 @@ class EcontractCtl extends CtlBase {
fileName: "签约协议" + moment().format("YYYYMMDD") + ".csv",
rows: page.rows,
opts: {
fields: ['id', 'ecompany.name', 'template.nameA', 'eaccount.userName', 'eaccount.mobile', 'eaccount.personsSign', 'eaccount.bankno', 'fileurl'],
fields: ['id', 'ecompany.name', 'template.nameA', 'eaccount.userName', 'eaccount.mobile', 'eaccount.personsSign', 'eaccount.bankno','completed_at', 'fileurl'],
unwind: ['ecompany', 'eaccount'],
unwindBlank: true,
excelStrings: true,
},
headers: {'id': '编号', 'ecompany.name': "公司名", 'template.nameA' : '签约主体', 'eaccount.userName': "姓名", 'eaccount.mobile': "手机号", 'eaccount.personsSign': "身份证", "eaccount.bankno": "银行卡号", 'fileurl': "签约合同"},
headers: {'id': '编号', 'ecompany.name': "公司名", 'template.nameA' : '签约主体', 'eaccount.userName': "姓名", 'eaccount.mobile': "手机号", 'eaccount.personsSign': "身份证", "eaccount.bankno": "银行卡号",'completed_at':"签约时间", 'fileurl': "签约合同"},
};
await this.excelClient.exportCsv(req, res, csvobj);
} catch (e) {
......@@ -491,4 +491,4 @@ class EcontractCtl extends CtlBase {
}
}
module.exports = EcontractCtl;
\ No newline at end of file
module.exports = EcontractCtl;
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