Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
de658e32
Commit
de658e32
authored
Oct 12, 2021
by
季圣华
Browse files
优化供应商、客户、会员导出功能
parent
7b3ded1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/CustomerList.vue
View file @
de658e32
...
...
@@ -182,10 +182,13 @@
}
},
exportExcel
()
{
let
aoa
=
[[
'
名称
'
,
'
联系人
'
,
'
手机号码
'
,
'
联系电话
'
,
'
电子邮箱
'
,
'
期初应付
'
,
'
期末应付
'
,
'
税率(%)
'
]]
let
aoa
=
[[
'
名称
'
,
'
联系人
'
,
'
手机号码
'
,
'
联系电话
'
,
'
电子邮箱
'
,
'
传真
'
,
'
期初应收
'
,
'
期末应收
'
,
'
纳税人识别号
'
,
'
税率(%)
'
,
'
开户行
'
,
'
账号
'
,
'
地址
'
,
'
备注
'
,
'
状态
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
supplier
,
ds
.
contacts
,
ds
.
telephone
,
ds
.
phoneNum
,
ds
.
email
,
ds
.
beginNeedPay
,
ds
.
allNeedPay
,
ds
.
taxRate
]
let
enabledStr
=
ds
.
enabled
?
'
启用
'
:
'
禁用
'
let
item
=
[
ds
.
supplier
,
ds
.
contacts
,
ds
.
telephone
,
ds
.
phoneNum
,
ds
.
email
,
ds
.
fax
,
ds
.
beginNeedGet
,
ds
.
allNeedGet
,
ds
.
taxNum
,
ds
.
taxRate
,
ds
.
bankName
,
ds
.
accountNumber
,
ds
.
address
,
ds
.
description
,
enabledStr
]
aoa
.
push
(
item
)
}
openDownloadDialog
(
sheet2blob
(
aoa
),
'
客户信息
'
)
...
...
jshERP-web/src/views/system/MemberList.vue
View file @
de658e32
...
...
@@ -179,10 +179,11 @@
}
},
exportExcel
()
{
let
aoa
=
[[
'
名称
'
,
'
联系人
'
,
'
手机号码
'
,
'
联系电话
'
,
'
电子邮箱
'
,
'
预付款
'
]]
let
aoa
=
[[
'
名称
'
,
'
联系人
'
,
'
手机号码
'
,
'
联系电话
'
,
'
电子邮箱
'
,
'
预付款
'
,
'
备注
'
,
'
状态
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
supplier
,
ds
.
contacts
,
ds
.
telephone
,
ds
.
phoneNum
,
ds
.
email
,
ds
.
advanceIn
]
let
enabledStr
=
ds
.
enabled
?
'
启用
'
:
'
禁用
'
let
item
=
[
ds
.
supplier
,
ds
.
contacts
,
ds
.
telephone
,
ds
.
phoneNum
,
ds
.
email
,
ds
.
advanceIn
,
ds
.
description
,
enabledStr
]
aoa
.
push
(
item
)
}
openDownloadDialog
(
sheet2blob
(
aoa
),
'
会员信息
'
)
...
...
jshERP-web/src/views/system/VendorList.vue
View file @
de658e32
...
...
@@ -181,10 +181,13 @@
}
},
exportExcel
()
{
let
aoa
=
[[
'
名称
'
,
'
联系人
'
,
'
手机号码
'
,
'
联系电话
'
,
'
电子邮箱
'
,
'
期初应付
'
,
'
期末应付
'
,
'
税率(%)
'
]]
let
aoa
=
[[
'
名称
'
,
'
联系人
'
,
'
手机号码
'
,
'
联系电话
'
,
'
电子邮箱
'
,
'
传真
'
,
'
期初应付
'
,
'
期末应付
'
,
'
纳税人识别号
'
,
'
税率(%)
'
,
'
开户行
'
,
'
账号
'
,
'
地址
'
,
'
备注
'
,
'
状态
'
]]
for
(
let
i
=
0
;
i
<
this
.
dataSource
.
length
;
i
++
)
{
let
ds
=
this
.
dataSource
[
i
]
let
item
=
[
ds
.
supplier
,
ds
.
contacts
,
ds
.
telephone
,
ds
.
phoneNum
,
ds
.
email
,
ds
.
beginNeedPay
,
ds
.
allNeedPay
,
ds
.
taxRate
]
let
enabledStr
=
ds
.
enabled
?
'
启用
'
:
'
禁用
'
let
item
=
[
ds
.
supplier
,
ds
.
contacts
,
ds
.
telephone
,
ds
.
phoneNum
,
ds
.
email
,
ds
.
fax
,
ds
.
beginNeedPay
,
ds
.
allNeedPay
,
ds
.
taxNum
,
ds
.
taxRate
,
ds
.
bankName
,
ds
.
accountNumber
,
ds
.
address
,
ds
.
description
,
enabledStr
]
aoa
.
push
(
item
)
}
openDownloadDialog
(
sheet2blob
(
aoa
),
'
供应商信息
'
)
...
...
Write
Preview
Supports
Markdown
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