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 2ce5893e
authored
Apr 12, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
线上分账列表,提现记录
1 parent
d191d290
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
337 additions
and
10 deletions
src/views/financeManage/onlineAccount/accountRecord.vue
src/views/financeManage/onlineAccount/onlineAccountList.vue
src/views/financeManage/onlineAccount/accountRecord.vue
View file @
2ce5893
<!-- 提现记录 -->
<!-- 提现记录 -->
<
template
>
<
template
>
<div></div>
<d2-container
class=
"account-record"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:searchForm=
"searchForm"
:formData=
"showFormData"
>
</d2-search>
<div
class=
"up-btns"
>
<el-button
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
>
<d2-table
ref=
"accountRecordTable"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
></auth-button>
</d2-table>
</div>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapActions
}
from
'vuex'
import
{
BaseData
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'accountRecord'
,
name
:
'accountRecord'
,
data
()
{
data
()
{
return
{
return
{
searchForm
:
{},
showFormData
:
[{
label
:
'提现时间'
,
name
:
''
,
type
:
'datePicker'
},
{
label
:
'提现结果'
,
name
:
''
,
type
:
'select'
,
optionList
:
[],
optionId
:
''
,
optionLabel
:
''
,
optionsName
:
''
},
{
label
:
'渠道'
,
name
:
'channelType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'value'
,
optionLabel
:
'name'
,
optionsName
:
'channelTypeList'
},
{
label
:
'商户名称'
,
name
:
''
,
type
:
'input'
,
placeholder
:
'请输入4S店/服务商名称'
},
{
label
:
'提现渠道'
,
name
:
''
,
type
:
'select'
,
optionList
:
[],
optionId
:
''
,
optionLabel
:
''
,
optionsName
:
''
}],
getListApi
:
''
,
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[{
label
:
'序号'
,
prop
:
''
},
{
label
:
'提现时间'
,
prop
:
''
},
{
label
:
'登录账户'
,
prop
:
''
},
{
label
:
'商户名'
,
prop
:
''
},
{
label
:
'提现金额(元)'
,
prop
:
''
},
{
label
:
'到账账户名'
,
prop
:
''
},
{
label
:
'到账银行'
,
prop
:
''
},
{
label
:
'到账卡号'
,
prop
:
''
},
{
label
:
'验证手机号'
,
prop
:
''
},
{
label
:
'提现结果'
,
prop
:
''
},
{
label
:
'到账金额(元)'
,
prop
:
''
},
{
label
:
'渠道'
,
prop
:
''
},
{
label
:
'提现渠道'
,
prop
:
''
}]
}
}
}
},
},
components
:
{},
mounted
()
{
this
.
getBaseData
()
},
computed
:
{},
methods
:
{
...
mapActions
(
'd2admin/base'
,
[
'get'
]),
mounted
()
{},
async
getBaseData
()
{
this
.
baseData
.
channelTypeList
=
await
this
.
get
(
BaseData
.
channelType
)
this
.
getOptionsList
()
},
methods
:
{}
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
])
}
})
}
}
}
}
</
script
>
</
script
>
...
...
src/views/financeManage/onlineAccount/onlineAccountList.vue
View file @
2ce5893
<!-- 线上分账列表 -->
<!-- 线上分账列表 -->
<
template
>
<
template
>
<div></div>
<d2-container
class=
"online-account"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:searchForm=
"searchForm"
:formData=
"showFormData"
>
</d2-search>
<div
class=
"up-btns"
>
<el-button
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
<span
slot=
"left"
>
共笔订单,累计分账金额元,分账成功金额元,分账中金额元,分账失败金额元。
</span>
<auth-button
category=
"Button"
></auth-button>
</d2-table-header>
<el-table
:data=
"tableList"
>
<el-table-column
label=
"序号"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"订单编号"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"支付金额"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"分账金额"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"服务商"
align=
"center"
>
<el-table-column
label=
"名称"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"分账金额"
prop=
""
align=
"center"
></el-table-column>
</el-table-column>
<el-table-column
label=
"4S店"
align=
"center"
>
<el-table-column
label=
"名称"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"分账金额"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"渠道"
prop=
""
align=
"center"
></el-table-column>
</el-table-column>
<el-table-column
label=
"分账状态"
prop=
""
align=
"center"
></el-table-column>
<el-table-column
label=
"分账时间"
prop=
""
align=
"center"
></el-table-column>
</el-table>
<el-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.currentPage"
:page-sizes=
"[10,20,30,40]"
:page-size=
"page.pageSize"
:total=
"total"
layout=
"sizes,total,->,prev,pager,next,jumper"
></el-pagination>
</div>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapActions
}
from
'vuex'
import
{
BaseData
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'onlineAccountList'
,
name
:
'onlineAccountList'
,
data
()
{
data
()
{
return
{
return
{
searchForm
:
{},
showFormData
:
[{
label
:
'分账时间'
,
name
:
''
,
type
:
'datePicker'
},
{
label
:
'订单编号'
,
name
:
''
,
type
:
'input'
},
{
label
:
'分账状态'
,
name
:
''
,
type
:
'select'
,
optionList
:
[],
optionId
:
''
,
optionLabel
:
''
,
optionName
:
''
},
{
label
:
'渠道'
,
name
:
'channelType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'value'
,
optionLabel
:
'name'
,
optionsName
:
'channelTypeList'
},
{
label
:
'商户名称'
,
name
:
'merchantName'
,
type
:
'input'
}],
// 表格
tableList
:
[],
page
:
{
pageSize
:
10
,
currentPage
:
1
},
total
:
0
,
baseData
:
{
channelTypeList
:
[]
}
}
}
},
},
components
:
{},
mounted
()
{
this
.
getBaseData
()
},
methods
:
{
...
mapActions
(
'd2admin/base'
,
[
'get'
]),
computed
:
{},
async
getBaseData
()
{
this
.
baseData
.
channelTypeList
=
await
this
.
get
(
BaseData
.
channelType
)
this
.
getOptionsList
()
},
mounted
()
{},
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
])
}
})
},
methods
:
{}
handleSearch
()
{
},
// 每页条数
handleSizeChange
(
value
)
{
this
.
page
.
pageSize
=
value
this
.
handleSearch
()
},
// 页码
handleCurrentChange
(
value
)
{
this
.
page
.
currentPage
=
value
this
.
handleSearch
()
},
handleRecord
()
{
this
.
$router
.
push
({
name
:
'accountRecord'
})
},
handleExport
()
{
}
}
}
}
</
script
>
</
script
>
...
...
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