Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1403b4e1
authored
Feb 25, 2022
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
财务列表下载对账单
1 parent
4d3e9ede
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
337 additions
and
74 deletions
src/api/finance.js
src/api/publicAccount.js
src/router/routes.js
src/views/financeManage/downloadAccountDialog.vue
src/views/financeManage/financeList.vue
src/api/finance.js
View file @
1403b4e
...
@@ -46,3 +46,8 @@ export function getServiceSummaryApi(data) {
...
@@ -46,3 +46,8 @@ export function getServiceSummaryApi(data) {
data
.
method
=
`
${
path2
}
goodsOrderProfitAllocation.count.service.merchant`
data
.
method
=
`
${
path2
}
goodsOrderProfitAllocation.count.service.merchant`
return
request
(
data
,
'post'
)
return
request
(
data
,
'post'
)
}
}
export
function
exportAccountStatement
(
data
)
{
data
.
method
=
`
${
path2
}
goodsOrderProfitAllocation.exportAccountStatement`
return
request
(
data
,
'post'
)
}
src/api/publicAccount.js
View file @
1403b4e
...
@@ -32,3 +32,9 @@ export function getMerchantLevelApi(data) {
...
@@ -32,3 +32,9 @@ export function getMerchantLevelApi(data) {
data
.
method
=
`
${
djPath
}
smartcarlife.get.merchant.level`
data
.
method
=
`
${
djPath
}
smartcarlife.get.merchant.level`
return
request
(
data
,
'post'
)
return
request
(
data
,
'post'
)
}
}
// 分页搜索服务门店
export
function
getMerchantPageSearch
(
data
)
{
data
.
method
=
`
${
path
}
page.search`
return
request
(
data
,
'post'
)
}
src/router/routes.js
View file @
1403b4e
...
@@ -6,14 +6,16 @@ const _import = require('@/libs/util.import.' + process.env.NODE_ENV)
...
@@ -6,14 +6,16 @@ const _import = require('@/libs/util.import.' + process.env.NODE_ENV)
/**
/**
* 在主框架内显示(children 由后台返回资源点集合 从 resources 中动态过滤加载)
* 在主框架内显示(children 由后台返回资源点集合 从 resources 中动态过滤加载)
*/
*/
const
frameIn
=
[{
const
frameIn
=
[
{
path
:
'/'
,
path
:
'/'
,
redirect
:
{
redirect
:
{
name
:
'index'
name
:
'index'
},
},
component
:
layoutHeaderAside
,
component
:
layoutHeaderAside
,
children
:
[]
children
:
[]
}]
}
]
/**
/**
* 首页
* 首页
* icon:element-ui
* icon:element-ui
...
@@ -77,14 +79,16 @@ export const resources = {
...
@@ -77,14 +79,16 @@ export const resources = {
parentId
:
'902'
,
parentId
:
'902'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9020101'
,
authId
:
'9020101'
,
parentId
:
'90201'
,
parentId
:
'90201'
,
label
:
'导出'
,
label
:
'导出'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleExport'
handle
:
'handleExport'
}],
}
],
component
:
_import
(
'customer/customerList'
)
component
:
_import
(
'customer/customerList'
)
},
},
'90202'
:
{
'90202'
:
{
...
@@ -96,7 +100,8 @@ export const resources = {
...
@@ -96,7 +100,8 @@ export const resources = {
parentId
:
'902'
,
parentId
:
'902'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9020201'
,
authId
:
'9020201'
,
parentId
:
'90202'
,
parentId
:
'90202'
,
label
:
'预录客户'
,
label
:
'预录客户'
,
...
@@ -104,29 +109,36 @@ export const resources = {
...
@@ -104,29 +109,36 @@ export const resources = {
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleAdd'
,
handle
:
'handleAdd'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'901'
,
authId
:
'901'
,
name
:
'预录客户'
,
name
:
'预录客户'
,
parentId
:
'90202'
parentId
:
'90202'
}]
}
},
{
]
},
{
authId
:
'9020202'
,
authId
:
'9020202'
,
parentId
:
'90202'
,
parentId
:
'90202'
,
label
:
'一键导入'
,
label
:
'一键导入'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleImport'
handle
:
'handleImport'
},
{
},
{
authId
:
'9020203'
,
authId
:
'9020203'
,
parentId
:
'90202'
,
parentId
:
'90202'
,
label
:
'编辑'
,
label
:
'编辑'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'901'
,
authId
:
'901'
,
name
:
'预录客户'
,
name
:
'预录客户'
,
parentId
:
'90202'
parentId
:
'90202'
}]
}
}],
]
}
],
component
:
_import
(
'customer/recordList'
)
component
:
_import
(
'customer/recordList'
)
},
},
'901'
:
{
'901'
:
{
...
@@ -151,7 +163,8 @@ export const resources = {
...
@@ -151,7 +163,8 @@ export const resources = {
parentId
:
'902'
,
parentId
:
'902'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9020301'
,
authId
:
'9020301'
,
parentId
:
'90203'
,
parentId
:
'90203'
,
label
:
'再次电联'
,
label
:
'再次电联'
,
...
@@ -163,37 +176,44 @@ export const resources = {
...
@@ -163,37 +176,44 @@ export const resources = {
// 1: '下架'
// 1: '下架'
// }
// }
// }
// }
},
{
},
{
authId
:
'9020302'
,
authId
:
'9020302'
,
parentId
:
'90203'
,
parentId
:
'90203'
,
label
:
'取消预约'
,
label
:
'取消预约'
,
handle
:
'handleCancel'
handle
:
'handleCancel'
},
{
},
{
authId
:
'9020303'
,
authId
:
'9020303'
,
parentId
:
'90203'
,
parentId
:
'90203'
,
label
:
'更新备注'
,
label
:
'更新备注'
,
handle
:
'handleUpdateRemark'
handle
:
'handleUpdateRemark'
},
{
},
{
authId
:
'9020304'
,
authId
:
'9020304'
,
parentId
:
'90203'
,
parentId
:
'90203'
,
label
:
'修改时间'
,
label
:
'修改时间'
,
handle
:
'handleChangeTime'
handle
:
'handleChangeTime'
},
{
},
{
authId
:
'9020305'
,
authId
:
'9020305'
,
parentId
:
'90203'
,
parentId
:
'90203'
,
label
:
'电联一下'
,
label
:
'电联一下'
,
handle
:
'handleCall'
handle
:
'handleCall'
},
{
},
{
authId
:
'9020306'
,
authId
:
'9020306'
,
parentId
:
'90203'
,
parentId
:
'90203'
,
label
:
'预约时间'
,
label
:
'预约时间'
,
handle
:
'handleAppoint'
handle
:
'handleAppoint'
},
{
},
{
authId
:
'9020307'
,
authId
:
'9020307'
,
parentId
:
'90203'
,
parentId
:
'90203'
,
label
:
'更新备注'
,
label
:
'更新备注'
,
handle
:
'handleUpdateRemark'
handle
:
'handleUpdateRemark'
}],
}
],
component
:
_import
(
'customer/invitation'
)
component
:
_import
(
'customer/invitation'
)
},
},
'903'
:
{
'903'
:
{
...
@@ -215,35 +235,43 @@ export const resources = {
...
@@ -215,35 +235,43 @@ export const resources = {
parentId
:
'903'
,
parentId
:
'903'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9030101'
,
authId
:
'9030101'
,
parentId
:
'90301'
,
parentId
:
'90301'
,
label
:
'新增素材'
,
label
:
'新增素材'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleAdd'
,
handle
:
'handleAdd'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90304'
,
authId
:
'90304'
,
name
:
'素材编辑'
,
name
:
'素材编辑'
,
parentId
:
'90301'
parentId
:
'90301'
}]
}
},
{
]
},
{
authId
:
'9030103'
,
authId
:
'9030103'
,
parentId
:
'90301'
,
parentId
:
'90301'
,
label
:
'导出'
,
label
:
'导出'
,
category
:
'Button'
,
category
:
'Button'
,
handle
:
'handleExport'
handle
:
'handleExport'
},
{
},
{
authId
:
'9030102'
,
authId
:
'9030102'
,
parentId
:
'90301'
,
parentId
:
'90301'
,
label
:
'修改'
,
label
:
'修改'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90304'
,
authId
:
'90304'
,
name
:
'素材编辑'
,
name
:
'素材编辑'
,
parentId
:
'90301'
parentId
:
'90301'
}]
}
},
{
]
},
{
authId
:
'9030104'
,
authId
:
'9030104'
,
parentId
:
'90301'
,
parentId
:
'90301'
,
label
:
'删除'
,
label
:
'删除'
,
...
@@ -255,7 +283,8 @@ export const resources = {
...
@@ -255,7 +283,8 @@ export const resources = {
1
:
'删除'
1
:
'删除'
}
}
}
}
}],
}
],
component
:
_import
(
'goods/product'
)
component
:
_import
(
'goods/product'
)
},
},
'90304'
:
{
'90304'
:
{
...
@@ -280,36 +309,44 @@ export const resources = {
...
@@ -280,36 +309,44 @@ export const resources = {
parentId
:
'903'
,
parentId
:
'903'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9030201'
,
authId
:
'9030201'
,
parentId
:
'90302'
,
parentId
:
'90302'
,
label
:
'新增商品'
,
label
:
'新增商品'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleAdd'
,
handle
:
'handleAdd'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90305'
,
authId
:
'90305'
,
name
:
'商品编辑'
,
name
:
'商品编辑'
,
parentId
:
'90302'
parentId
:
'90302'
}]
}
},
{
]
},
{
authId
:
'9030202'
,
authId
:
'9030202'
,
parentId
:
'90302'
,
parentId
:
'90302'
,
label
:
'导出'
,
label
:
'导出'
,
category
:
'Button'
,
category
:
'Button'
,
handle
:
'handleExport'
handle
:
'handleExport'
},
{
},
{
authId
:
'9030203'
,
authId
:
'9030203'
,
parentId
:
'90302'
,
parentId
:
'90302'
,
label
:
'编辑'
,
label
:
'编辑'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90305'
,
authId
:
'90305'
,
name
:
'商品编辑'
,
name
:
'商品编辑'
,
parentId
:
'90302'
parentId
:
'90302'
}]
}
]
// judgeShow: true
// judgeShow: true
},
{
},
{
authId
:
'9030205'
,
authId
:
'9030205'
,
parentId
:
'90302'
,
parentId
:
'90302'
,
label
:
'上架'
,
label
:
'上架'
,
...
@@ -335,7 +372,8 @@ export const resources = {
...
@@ -335,7 +372,8 @@ export const resources = {
label
:
'删除'
,
label
:
'删除'
,
// judgeShow: true,
// judgeShow: true,
handle
:
'handleDelete'
handle
:
'handleDelete'
}],
}
],
component
:
_import
(
'goods/commodity'
)
component
:
_import
(
'goods/commodity'
)
},
},
'90305'
:
{
'90305'
:
{
...
@@ -360,7 +398,8 @@ export const resources = {
...
@@ -360,7 +398,8 @@ export const resources = {
parentId
:
'903'
,
parentId
:
'903'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9030601'
,
authId
:
'9030601'
,
parentId
:
'90306'
,
parentId
:
'90306'
,
label
:
'新增'
,
label
:
'新增'
,
...
@@ -368,12 +407,14 @@ export const resources = {
...
@@ -368,12 +407,14 @@ export const resources = {
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleAdd'
handle
:
'handleAdd'
},
{
},
{
authId
:
'9030604'
,
authId
:
'9030604'
,
parentId
:
'90306'
,
parentId
:
'90306'
,
label
:
'编辑'
,
label
:
'编辑'
,
handle
:
'handleEdit'
handle
:
'handleEdit'
},
{
},
{
authId
:
'9030602'
,
authId
:
'9030602'
,
parentId
:
'90306'
,
parentId
:
'90306'
,
label
:
'停用'
,
label
:
'停用'
,
...
@@ -381,22 +422,25 @@ export const resources = {
...
@@ -381,22 +422,25 @@ export const resources = {
ruleObj
:
{
ruleObj
:
{
attr
:
'enabledFlag'
,
attr
:
'enabledFlag'
,
rule
:
{
rule
:
{
'Y'
:
'停用'
,
Y
:
'停用'
,
'N'
:
'启用'
N
:
'启用'
}
}
}
}
},
{
},
{
authId
:
'9030603'
,
authId
:
'9030603'
,
parentId
:
'90306'
,
parentId
:
'90306'
,
label
:
'删除'
,
label
:
'删除'
,
handle
:
'handleDelete'
handle
:
'handleDelete'
},
{
},
{
authId
:
'9030605'
,
authId
:
'9030605'
,
parentId
:
'90306'
,
parentId
:
'90306'
,
label
:
'导出'
,
label
:
'导出'
,
category
:
'Button'
,
category
:
'Button'
,
handle
:
'handleExport'
handle
:
'handleExport'
}],
}
],
component
:
_import
(
'goods/coupons'
)
component
:
_import
(
'goods/coupons'
)
},
},
'904'
:
{
'904'
:
{
...
@@ -418,24 +462,29 @@ export const resources = {
...
@@ -418,24 +462,29 @@ export const resources = {
parentId
:
'904'
,
parentId
:
'904'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9040101'
,
authId
:
'9040101'
,
parentId
:
'90401'
,
parentId
:
'90401'
,
label
:
'导出'
,
label
:
'导出'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleExport'
handle
:
'handleExport'
},
{
},
{
authId
:
'9040102'
,
authId
:
'9040102'
,
parentId
:
'90401'
,
parentId
:
'90401'
,
label
:
'查看详情'
,
label
:
'查看详情'
,
handle
:
'handleDetail'
,
handle
:
'handleDetail'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90402'
,
authId
:
'90402'
,
name
:
'订单详情'
,
name
:
'订单详情'
,
parentId
:
'90401'
parentId
:
'90401'
}]
}
}],
]
}
],
component
:
_import
(
'orderManage/orderList'
)
component
:
_import
(
'orderManage/orderList'
)
},
},
'90402'
:
{
'90402'
:
{
...
@@ -469,24 +518,38 @@ export const resources = {
...
@@ -469,24 +518,38 @@ export const resources = {
parentId
:
'905'
,
parentId
:
'905'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9050103'
,
parentId
:
'90501'
,
label
:
'下载对账单'
,
icon
:
'download'
,
category
:
'Button'
,
type
:
'primary'
,
handle
:
'downloadAccount'
},
{
authId
:
'9050101'
,
authId
:
'9050101'
,
parentId
:
'90501'
,
parentId
:
'90501'
,
label
:
'合并导出'
,
label
:
'合并导出'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleExport'
handle
:
'handleExport'
},
{
},
{
authId
:
'9050102'
,
authId
:
'9050102'
,
parentId
:
'90501'
,
parentId
:
'90501'
,
label
:
'查看明细'
,
label
:
'查看明细'
,
handle
:
'handleDetail'
,
handle
:
'handleDetail'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90502'
,
authId
:
'90502'
,
name
:
'对账详情'
,
name
:
'对账详情'
,
parentId
:
'90501'
parentId
:
'90501'
}]
}
}],
]
}
],
component
:
_import
(
'financeManage/index'
)
component
:
_import
(
'financeManage/index'
)
},
},
'90502'
:
{
'90502'
:
{
...
@@ -572,28 +635,33 @@ export const resources = {
...
@@ -572,28 +635,33 @@ export const resources = {
parentId
:
'906'
,
parentId
:
'906'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9060302'
,
authId
:
'9060302'
,
parentId
:
'90603'
,
parentId
:
'90603'
,
label
:
'关联导流方'
,
label
:
'关联导流方'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleRelate'
handle
:
'handleRelate'
},
{
},
{
authId
:
'9060303'
,
authId
:
'9060303'
,
parentId
:
'90603'
,
parentId
:
'90603'
,
label
:
'查看详情'
,
label
:
'查看详情'
,
handle
:
'handleViewDetail'
handle
:
'handleViewDetail'
},
{
},
{
authId
:
'9060301'
,
authId
:
'9060301'
,
parentId
:
'90603'
,
parentId
:
'90603'
,
label
:
'财务'
,
label
:
'财务'
,
handle
:
'handleDetail'
,
handle
:
'handleDetail'
,
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90604'
,
authId
:
'90604'
,
name
:
'财务详情'
,
name
:
'财务详情'
,
parentId
:
'90603'
parentId
:
'90603'
}]
}
]
},
},
// {
// {
// authId: '9060304',
// authId: '9060304',
...
@@ -631,19 +699,22 @@ export const resources = {
...
@@ -631,19 +699,22 @@ export const resources = {
parentId
:
'906'
,
parentId
:
'906'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9060501'
,
authId
:
'9060501'
,
parentId
:
'90605'
,
parentId
:
'90605'
,
label
:
'关联服务商'
,
label
:
'关联服务商'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'primary'
,
type
:
'primary'
,
handle
:
'handleRelate'
handle
:
'handleRelate'
},
{
},
{
authId
:
'9060502'
,
authId
:
'9060502'
,
parentId
:
'90605'
,
parentId
:
'90605'
,
label
:
'删除'
,
label
:
'删除'
,
handle
:
'handleDelete'
handle
:
'handleDelete'
}],
}
],
component
:
_import
(
'systemConfig/serviceManage'
)
component
:
_import
(
'systemConfig/serviceManage'
)
},
},
'90608'
:
{
'90608'
:
{
...
@@ -655,12 +726,14 @@ export const resources = {
...
@@ -655,12 +726,14 @@ export const resources = {
parentId
:
'906'
,
parentId
:
'906'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9060801'
,
authId
:
'9060801'
,
parentId
:
'90608'
,
parentId
:
'90608'
,
label
:
'编辑'
,
label
:
'编辑'
,
handle
:
'handleDetail'
handle
:
'handleDetail'
}],
}
],
component
:
_import
(
'systemConfig/yqStoreManage'
)
component
:
_import
(
'systemConfig/yqStoreManage'
)
},
},
'90609'
:
{
'90609'
:
{
...
@@ -684,7 +757,8 @@ export const resources = {
...
@@ -684,7 +757,8 @@ export const resources = {
parentId
:
'906'
,
parentId
:
'906'
,
cache
:
false
cache
:
false
},
},
auth
:
[{
auth
:
[
{
authId
:
'9060601'
,
authId
:
'9060601'
,
parentId
:
'90606'
,
parentId
:
'90606'
,
label
:
'申请虚拟对公账户'
,
label
:
'申请虚拟对公账户'
,
...
@@ -699,12 +773,15 @@ export const resources = {
...
@@ -699,12 +773,15 @@ export const resources = {
},
},
disabledStatusList
:
[
2
]
disabledStatusList
:
[
2
]
},
},
addRoutePath
:
[{
addRoutePath
:
[
{
authId
:
'90607'
,
authId
:
'90607'
,
name
:
'申请虚拟对账账户'
,
name
:
'申请虚拟对账账户'
,
parentId
:
'90606'
parentId
:
'90606'
}]
}
}],
]
}
],
component
:
_import
(
'systemConfig/account/accountList'
)
component
:
_import
(
'systemConfig/account/accountList'
)
},
},
'90607'
:
{
'90607'
:
{
...
@@ -788,7 +865,4 @@ export const localRoutes = {
...
@@ -788,7 +865,4 @@ export const localRoutes = {
}
}
// 重新组织后导出
// 重新组织后导出
export
default
[
export
default
[...
frameOut
,
errorPage
]
...
frameOut
,
errorPage
]
src/views/financeManage/downloadAccountDialog.vue
0 → 100644
View file @
1403b4e
<!-- 下载对账单 -->
<
template
>
<div>
<d2-dialog
title=
"下载对账单"
:isVisible=
"accountVisible"
width=
"40%"
btnOkLabel=
"确定下载"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<el-form
ref=
"accountForm"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"120px"
>
<el-form-item
label=
"商户类型:"
prop=
"merchantType"
>
<el-radio-group
v-model=
"infoForm.merchantType"
@
change=
"changeType"
>
<el-radio-button
label=
"2"
>
4S店
</el-radio-button>
<el-radio-button
label=
"7"
>
服务商
</el-radio-button>
<el-radio-button
label=
"6"
>
园区店
</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"选择商户:"
prop=
"merchant"
>
<el-select
v-model=
"infoForm.merchant"
multiple
filterable
remote
reserve-keyword
:remote-method=
"remoteMethod"
:loading=
"selectLoading"
style=
"width:350px"
>
<el-option
v-for=
"(item, index) in baseData.merchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"订单支付时间:"
prop=
"time"
>
<el-date-picker
v-model=
"infoForm.time"
type=
"daterange"
value-format=
"yyyy-MM-dd"
clearable
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOption['rangePickerOptions']"
>
</el-date-picker>
</el-form-item>
</el-form>
</d2-dialog>
</div>
</
template
>
<
script
>
import
{
BaseData
,
rangePickerOptions
}
from
'@/common/constants.js'
import
*
as
api
from
'@api/finance'
import
{
getMerchantPageSearch
}
from
'@api/publicAccount'
export
default
{
name
:
'downloadAccountDialog'
,
data
()
{
return
{
pickerOption
:
{
rangePickerOptions
:
rangePickerOptions
},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
merchantType
:
2
,
merchant
:
[],
time
:
''
},
formRules
:
{
merchantType
:
[{
required
:
true
,
message
:
'请选择商户类型'
,
trigger
:
'change'
}],
merchant
:
[{
required
:
true
,
message
:
'请选择商户'
,
trigger
:
'change'
}],
time
:
[{
required
:
true
,
message
:
'请选择时间'
,
trigger
:
'change'
}]
},
selectLoading
:
false
,
// 基本数据
baseData
:
{
merchantList
:
[]
}
}
},
props
:
{
accountVisible
:
{
type
:
Boolean
,
default
:
false
},
},
watch
:
{
// accountVisible (value) {
// if (value && this.couponInfo) {
// var addAttr = ['chargeFlag', 'merchantType', 'merchantTypeName']
// this.infoForm = _.cloneDeep(this.couponInfo)
// addAttr.forEach(item => {
// this.infoForm[item] = this.infoForm.couponInfo[item]
// })
// // console.log(this.infoForm)
// }
// }
},
created
()
{
// this.$nextTick(() => {
// this.$refs.accountForm.resetFields();
// })
},
components
:
{
},
mounted
()
{
},
methods
:
{
changeType
()
{
this
.
infoForm
.
merchant
=
''
this
.
baseData
.
merchantList
=
[]
},
remoteMethod
(
query
)
{
if
(
query
!==
''
)
{
this
.
selectLoading
=
true
var
params
=
{}
params
.
currentPage
=
1
params
.
pageSize
=
1000
params
.
merchantName
=
query
var
merchantTypeList
=
this
.
infoForm
.
merchantType
?
[
this
.
infoForm
.
merchantType
]
:
[]
params
.
merchantTypeList
=
merchantTypeList
getMerchantPageSearch
(
params
).
then
(
res
=>
{
this
.
selectLoading
=
false
this
.
baseData
.
merchantList
=
res
.
list
})
}
else
{
this
.
baseData
.
merchantList
=
[];
}
},
handleAddConfirm
()
{
// console.log(this.infoForm.remark)
this
.
$refs
.
accountForm
.
validate
(
valid
=>
{
if
(
valid
)
{
var
infoForm
=
_
.
cloneDeep
(
this
.
infoForm
)
console
.
log
(
infoForm
)
var
params
=
{}
var
merchantList
=
[]
var
obj
infoForm
.
merchant
.
forEach
(
item
=>
{
obj
=
{}
obj
.
merchantId
=
item
obj
.
merchantName
=
this
.
baseData
.
merchantList
.
find
(
mer
=>
mer
.
merchantId
===
item
).
merchantName
merchantList
.
push
(
obj
)
})
params
.
payStartDate
=
infoForm
.
time
[
0
]
+
" 00:00:00"
params
.
payEndDate
=
infoForm
.
time
[
1
]
+
" 23:59:59"
params
.
merchantList
=
merchantList
console
.
log
(
params
);
api
.
exportAccountStatement
(
params
).
then
(
res
=>
{
window
.
location
.
href
=
res
})
}
})
},
handleClose
()
{
this
.
$emit
(
'accountClose'
,
true
)
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/financeManage/financeList.vue
View file @
1403b4e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment