Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
d8028233
Commit
d8028233
authored
Aug 26, 2020
by
DESKTOP-7Q3CA17\86137
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
d4749766
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
bpo-admin/app/base/controller/impl/econtractCtl.js
+4
-5
No files found.
bpo-admin/app/base/controller/impl/econtractCtl.js
View file @
d8028233
...
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment