Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
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 d34395f3
authored
Oct 12, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新搭建页面代码
1 parent
91603b5d
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
348 additions
and
205 deletions
src/api/profitManagement.js
src/api/withdrawalManagement.js
src/base.js
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
src/views/profitManagement/profitList/index.vue
src/views/task/analyseTask/index.vue
src/views/task/observeTask/cpns/taskPlan.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalDialog.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
src/views/withdrawalManagement/withdrawalList/index.vue
src/api/profitManagement.js
View file @
d34395f
...
@@ -3,7 +3,7 @@ const path = 'scrm.api.renewal.insurance.customer.name.list.'
...
@@ -3,7 +3,7 @@ const path = 'scrm.api.renewal.insurance.customer.name.list.'
const
defaultPath
=
'scrm.api.renewal.order.'
const
defaultPath
=
'scrm.api.renewal.order.'
const
profitApi
=
{
const
profitApi
=
{
// 客户名单列表查询
// 客户名单列表查询
search
Customer
List
(
data
=
{})
{
search
Profit
List
(
data
=
{})
{
data
.
method
=
`
${
path
}
get`
data
.
method
=
`
${
path
}
get`
return
request
(
data
)
return
request
(
data
)
}
}
...
...
src/api/withdrawalManagement.js
0 → 100644
View file @
d34395f
import
request
from
'./request'
const
path
=
'scrm.api.renewal.insurance.customer.name.list.'
const
defaultPath
=
'scrm.api.renewal.order.'
const
profitApi
=
{
// 客户名单列表查询
searchCustomerList
(
data
=
{})
{
data
.
method
=
`
${
path
}
get`
return
request
(
data
)
}
}
export
{
profitApi
}
src/base.js
View file @
d34395f
...
@@ -95,3 +95,4 @@ const render = App => {
...
@@ -95,3 +95,4 @@ const render = App => {
}
}
export
default
{
render
,
getConfig
}
export
default
{
render
,
getConfig
}
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
0 → 100644
View file @
d34395f
<
template
>
<el-form
size=
'small'
inline
ref=
'withdrawalForm'
:model=
'profitSearchForm'
label-width=
'120px'
class=
'demo-form-inline'
>
<el-form-item
label=
'员工名称'
>
<el-input
clearable
v-model=
'profitSearchForm.staffName'
placeholder=
'请输入员工名称'
></el-input>
</el-form-item>
<el-form-item
label=
'员工手机号'
>
<el-input
clearable
v-model=
'profitSearchForm.staffPhone'
placeholder=
'请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item
label=
'所属业务场景'
>
<el-select
v-model=
'profitSearchForm.businessScene'
placeholder=
'请选择状态'
>
<el-option
label=
'全部'
value=
''
></el-option>
<el-option
label=
'未同步'
value=
'0'
></el-option>
<!--
<el-option
label=
"同步中"
value=
"1"
></el-option>
-->
<el-option
label=
'已同步'
value=
'2'
></el-option>
<el-option
label=
'同步失败'
value=
'3'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
'所属商户:'
>
<el-input
clearable
v-model=
'profitSearchForm.merchantName'
placeholder=
'请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item
label=
'所属活动/产品:'
>
<el-input
clearable
v-model=
'profitSearchForm.activityName'
placeholder=
'请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item
label=
'发放渠道:'
>
<el-select
v-model=
'profitSearchForm.channel'
placeholder=
'请选择状态'
>
<el-option
label=
'全部'
value=
''
></el-option>
<el-option
label=
'广联'
value=
'0'
></el-option>
<el-option
label=
'服务商'
value=
'2'
></el-option>
<el-option
label=
'门店'
value=
'3'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
'关联任务:'
>
<el-select
v-model=
'profitSearchForm.missionName'
placeholder=
'请选择状态'
>
<el-option
label=
'全部'
value=
''
></el-option>
<el-option
label=
'未同步'
value=
'0'
></el-option>
<el-option
label=
'已同步'
value=
'2'
></el-option>
<el-option
label=
'同步失败'
value=
'3'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
'奖励时间'
>
<el-date-picker
value-format=
'yyyy-MM-dd'
v-model=
'profitSearchForm.rewardTime'
type=
'daterange'
range-separator=
'至'
start-placeholder=
'开始日期'
end-placeholder=
'结束日期'
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
'primary'
@
click=
'handleSearch'
>
查询
</el-button
>
<el-button
@
click=
'reset'
>
重置
</el-button>
</el-form-item>
</el-form>
</
template
>
<
script
>
export
default
{
name
:
'ProfitSearch'
,
data
()
{
return
{
profitSearchForm
:
{}
}
},
methods
:
{
handleSearch
()
{
if
(
this
.
profitSearchForm
&&
this
.
profitSearchForm
.
rewardTime
)
{
this
.
profitSearchForm
.
rewardBeginTime
=
this
.
profitSearchForm
.
rewardTime
[
0
]
this
.
profitSearchForm
.
rewardEndTime
=
this
.
profitSearchForm
.
rewardTime
[
1
]
}
this
.
$emit
(
'sendSearchForm'
,
this
.
profitSearchForm
)
},
reset
()
{
Object
.
keys
(
this
.
profitSearchForm
).
forEach
((
key
)
=>
{
this
.
profitSearchForm
[
key
]
=
''
})
this
.
$nextTick
(()
=>
{
this
.
handleSearch
()
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/profitManagement/profitList/index.vue
View file @
d34395f
<
template
>
<
template
>
<div
style=
"margin: 16px"
>
<div
style=
'margin: 16px'
>
<el-form
<ProfitSearch
@
sendSearchForm=
'getSearchForm'
/>
size=
"small"
<el-button
type=
'primary'
size=
'small'
class=
'handleOutput'
>
导出
</el-button>
inline
<div
class=
'cumulativeAward'
>
累计发放奖励:
{{
cumulativeAward
}}
</div>
ref=
"withdrawalForm"
:model=
"withdrawalSearchForm"
label-width=
"120px"
class=
"demo-form-inline"
>
<el-form-item
label=
"员工名称"
>
<el-input
clearable
v-model=
"withdrawalSearchForm.staffName"
placeholder=
"请输入员工名称"
></el-input>
</el-form-item>
<el-form-item
label=
"员工手机号"
>
<el-input
clearable
v-model=
"withdrawalSearchForm.staffPhone"
placeholder=
"请输入员工手机号"
></el-input>
</el-form-item>
<el-form-item
label=
"所属业务场景"
>
<el-select
v-model=
"withdrawalSearchForm.status"
placeholder=
"请选择状态"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"未同步"
value=
"0"
></el-option>
<!--
<el-option
label=
"同步中"
value=
"1"
></el-option>
-->
<el-option
label=
"已同步"
value=
"2"
></el-option>
<el-option
label=
"同步失败"
value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"所属商户:"
>
<el-input
clearable
v-model=
"withdrawalSearchForm.staffPhone"
placeholder=
"请输入员工手机号"
></el-input>
</el-form-item>
<el-form-item
label=
"所属活动/产品:"
>
<el-input
clearable
v-model=
"withdrawalSearchForm.staffPhone"
placeholder=
"请输入员工手机号"
></el-input>
</el-form-item>
<el-form-item
label=
"发放渠道:"
>
<el-select
v-model=
"withdrawalSearchForm.status"
placeholder=
"请选择状态"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"未同步"
value=
"0"
></el-option>
<!--
<el-option
label=
"同步中"
value=
"1"
></el-option>
-->
<el-option
label=
"已同步"
value=
"2"
></el-option>
<el-option
label=
"同步失败"
value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"关联任务:"
>
<el-select
v-model=
"withdrawalSearchForm.status"
placeholder=
"请选择状态"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"未同步"
value=
"0"
></el-option>
<!--
<el-option
label=
"同步中"
value=
"1"
></el-option>
-->
<el-option
label=
"已同步"
value=
"2"
></el-option>
<el-option
label=
"同步失败"
value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"奖励时间"
>
<el-date-picker
v-model=
"withdrawalSearchForm.time"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
>
查询
</el-button
>
<el-button
@
click=
"reset"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-button
type=
'primary'
>
导出
</el-button>
<div>
累计发放奖励:10000.00
</div>
<d2-table
<d2-table
class=
"my-row-height"
class=
'my-row-height'
ref=
"withdrawalTable"
ref=
'withdrawalTable'
:hasNum=
"true"
:hasNum=
'true'
:tableParams=
"withdrawalTableParams"
:tableParams=
'profitTableParams'
:searchForm=
"withdrawalSearchForm"
:searchForm=
'profitSearchForm'
:getListApi=
"getListApi"
:getListApi=
'getListApi'
:pageConf=
"pageConf"
:pageConf=
'pageConf'
>
>
</d2-table>
</d2-table>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
ProfitSearch
from
'@/views/profitManagement/profitList/cpns/ProfitSearch'
export
default
{
export
default
{
name
:
'WithdrawalSearch'
,
name
:
'WithdrawalSearch'
,
data
(){
components
:
{
return
{
ProfitSearch
withdrawalSearchForm
:
{
},
},
data
()
{
return
{
profitSearchForm
:{},
cumulativeAward
:
'10000'
,
pageConf
:
{
pageConf
:
{
pageSize
:
'pageSize'
,
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
,
totalCount
:
'data.total'
},
},
// getListApi: customerApi.searchCustomerList,
// getListApi: profitApi.searchProfitList,
withdrawalTableParams
:
{
profitTableParams
:
{
mutiSelectUniqueKey
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
mutiSelectName
:
'1111'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'data.list'
,
listName
:
'data.list'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'员工名称'
,
label
:
'员工名称'
,
prop
:
'staffName'
,
prop
:
'staffName'
},
},
{
{
label
:
'员工手机号'
,
label
:
'员工手机号'
,
prop
:
'staffPhone'
,
prop
:
'staffPhone'
},
},
{
{
label
:
'奖励积分值'
,
label
:
'奖励积分值'
,
prop
:
'
withdrawalScore'
,
prop
:
'
rewardScore'
},
},
{
{
label
:
'关联任务'
,
label
:
'关联任务'
,
prop
:
'
withdrawalAmount'
,
prop
:
'
missionName'
},
},
{
{
label
:
'发放渠道'
,
label
:
'发放渠道'
,
prop
:
'
validCustomerNumber'
,
prop
:
'
channel'
},
},
{
{
label
:
'所属活动/产品'
,
label
:
'所属活动/产品'
,
prop
:
'
batchNo'
,
prop
:
'
activityName'
},
},
{
{
label
:
'所属商户'
,
label
:
'所属商户'
,
prop
:
'status'
,
prop
:
'merchantName'
addHtml
:
'status'
,
},
},
{
{
label
:
'所属业务场景'
,
label
:
'所属业务场景'
,
prop
:
'
withdrawalTime'
,
prop
:
'
businessScene'
},
},
{
{
label
:
'奖励时间'
,
label
:
'奖励时间'
,
prop
:
'
wechatName'
,
prop
:
'
rewardTime'
}
}
]
,
]
}
}
}
}
},
},
methods
:{
methods
:
{
reset
()
{
// 导出
Object
.
keys
(
this
.
withdrawalSearchForm
).
forEach
((
key
)
=>
{
handleOutput
()
{
this
.
withdrawalSearchForm
[
key
]
=
''
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
profitSearchForm
))
customerApi
.
orderListExport
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
$Utils
.
exportFn
(
res
.
data
)
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
'导出失败!'
})
})
this
.
$nextTick
(()
=>
{
}
this
.
$refs
.
withdrawalTable
.
refreshTable
()
})
})
},
},
getSearchForm
(
val
){
if
(
val
.
rewardTime
)
delete
val
.
rewardTime
this
.
profitSearchForm
=
val
this
.
$refs
.
withdrawalTable
.
refreshTable
()
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.cumulativeAward
{
margin
:
16px
0
;
}
</
style
>
</
style
>
src/views/task/analyseTask/index.vue
View file @
d34395f
...
@@ -3,15 +3,14 @@
...
@@ -3,15 +3,14 @@
<TaskInfo></TaskInfo>
<TaskInfo></TaskInfo>
<el-form
class=
'taskForm'
:inline=
"true"
:model=
"formInline"
>
<el-form
class=
'taskForm'
:inline=
"true"
:model=
"formInline"
>
<el-form-item
label=
"任务时间:"
>
<el-form-item
label=
"任务时间:"
>
<el-select
v-model=
"formInline.region"
placeholder=
"
活动区域
"
>
<el-select
v-model=
"formInline.region"
placeholder=
"
请选择任务时间"
@
change=
"changeRegion
"
>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
label=
"区域二"
value=
"beijing"
></el-option>
<el-option
label=
"区域二"
value=
"beijing"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"具体任务:"
>
<el-form-item
label=
"具体任务:"
>
<el-select
v-model=
"formInline.region"
placeholder=
"
活动区域
"
>
<el-select
v-model=
"formInline.region"
placeholder=
"
请选择具体任务
"
>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
label=
"区域二"
value=
"beijing"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -37,9 +36,14 @@ export default {
...
@@ -37,9 +36,14 @@ export default {
data
(){
data
(){
return
{
return
{
formInline
:{},
formInline
:{},
taskTime
:[],
specificTime
:[]
}
}
},
},
methods
:{
methods
:{
changeRegion
(){
console
.
log
(
'选择了'
)
},
backUp
(){
backUp
(){
this
.
$root
.
to
([
this
.
$root
.
to
([
'任务中心'
,
'任务中心'
,
...
...
src/views/task/observeTask/cpns/taskPlan.vue
View file @
d34395f
...
@@ -3,12 +3,6 @@
...
@@ -3,12 +3,6 @@
<div
class=
'headline'
>
任务计划
</div>
<div
class=
'headline'
>
任务计划
</div>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"第一天"
name=
"first"
>
用户管理
</el-tab-pane>
<el-tab-pane
label=
"第一天"
name=
"first"
>
用户管理
</el-tab-pane>
<el-tab-pane
label=
"第二天"
name=
"second"
>
配置管理
</el-tab-pane>
<el-tab-pane
label=
"第三天"
name=
"third"
>
角色管理
</el-tab-pane>
<el-tab-pane
label=
"第四天"
name=
"fourth1"
>
定时任务补偿
</el-tab-pane>
<el-tab-pane
label=
"第五天"
name=
"fourth2"
>
定时任务补偿
</el-tab-pane>
<el-tab-pane
label=
"第六天"
name=
"fourth3"
>
定时任务补偿
</el-tab-pane>
<el-tab-pane
label=
"第七天"
name=
"fourth4"
>
定时任务补偿
</el-tab-pane>
<el-tab-pane
label=
"完整周期"
name=
"fourth"
>
<el-tab-pane
label=
"完整周期"
name=
"fourth"
>
<div
class=
'taskInfo'
v-for=
'(item,index) in taskPlanList'
:key=
'index'
>
<div
class=
'taskInfo'
v-for=
'(item,index) in taskPlanList'
:key=
'index'
>
<p>
{{
item
.
taskType
}}
</p>
<p>
{{
item
.
taskType
}}
</p>
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalDialog.vue
View file @
d34395f
<
template
>
<
template
>
<el-dialog
title=
"提示"
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<el-dialog
title=
'提示'
:visible
.
sync=
'dialogVisible'
width=
'30%'
>
<span>
审核通过,系统将自动转账至员工的微信零钱中
</span>
<span>
{{
textTooltip
}}
</span>
<p>
是否确定审核?
</p>
<p>
是否确定审核?
</p>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
'footer'
class=
'dialog-footer'
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
@
click=
'dialogVisible = false'
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"comfirmDialog()"
<el-button
type=
'primary'
@
click=
'comfirmDialog()'
>
确 定
</el-button
>
确 定
</el-button
>
>
</span>
</span>
...
@@ -14,14 +14,15 @@
...
@@ -14,14 +14,15 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'WithdrawalDialog'
,
name
:
'WithdrawalDialog'
,
data
(){
props
:
[
'textTooltip'
,
'selectType'
],
return
{
data
()
{
dialogVisible
:
false
,
return
{
dialogVisible
:
false
}
}
},
},
methods
:{
methods
:
{
comfirmDialog
(){
comfirmDialog
()
{
console
.
log
(
'发送请求'
)
console
.
log
(
this
.
selectType
)
}
}
}
}
}
}
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
View file @
d34395f
<
template
>
<
template
>
<div
style=
"margin: 16px"
>
<div
style=
'margin: 16px'
>
<el-form
<el-form
size=
"small"
size=
'small'
inline
inline
ref=
"withdrawalForm"
ref=
'withdrawalForm'
:model=
"withdrawalSearchForm"
:model=
'withdrawalSearchForm'
label-width=
"100px"
label-width=
'100px'
class=
"demo-form-inline"
class=
'demo-form-inline'
>
>
<el-form-item
label=
"员工名称"
>
<el-form-item
label=
'员工名称'
>
<el-input
<el-input
clearable
clearable
v-model=
"withdrawalSearchForm.staffName"
v-model=
'withdrawalSearchForm.staffName'
placeholder=
"请输入员工名称"
placeholder=
'请输入员工名称'
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"员工手机号"
>
<el-form-item
label=
'员工手机号'
>
<el-input
<el-input
clearable
clearable
v-model=
"withdrawalSearchForm.staffPhone"
v-model=
'withdrawalSearchForm.staffPhone'
placeholder=
"请输入员工手机号"
placeholder=
'请输入员工手机号'
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-form-item
label=
'状态'
>
<el-select
v-model=
"withdrawalSearchForm.status"
placeholder=
"请选择状态"
>
<el-select
v-model=
'withdrawalSearchForm.status'
placeholder=
'请选择状态'
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
'全部'
value=
''
></el-option>
<el-option
label=
"未同步"
value=
"0"
></el-option>
<el-option
label=
'待审核'
value=
'0'
></el-option>
<!--
<el-option
label=
"同步中"
value=
"1"
></el-option>
--
>
<el-option
label=
'到账中'
value=
'1'
></el-option
>
<el-option
label=
"已同步"
value=
"2"
></el-option>
<el-option
label=
'已到账'
value=
'2'
></el-option>
<el-option
label=
"同步失败"
value=
"3"
></el-option>
<el-option
label=
'到账失败'
value=
'3'
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"提现时间"
>
<el-form-item
label=
'提现时间'
>
<el-date-picker
<el-date-picker
v-model=
"withdrawalTime"
value-format=
'yyyy-MM-dd'
type=
"daterange"
v-model=
'withdrawalSearchForm.withdrawalTime'
range-separator=
"至"
type=
'daterange'
start-placeholder=
"开始日期"
range-separator=
'至'
end-placeholder=
"结束日期"
>
start-placeholder=
'开始日期'
end-placeholder=
'结束日期'
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"审核时间"
>
<el-form-item
label=
'审核时间'
>
<el-date-picker
<el-date-picker
v-model=
"reviewTime"
value-format=
'yyyy-MM-dd'
type=
"daterange"
v-model=
'withdrawalSearchForm.reviewTime'
range-separator=
"至"
type=
'daterange'
start-placeholder=
"开始日期"
range-separator=
'至'
end-placeholder=
"结束日期"
>
start-placeholder=
'开始日期'
end-placeholder=
'结束日期'
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
<el-button
type=
'primary'
>
查询
</el-button
@
click=
'handleSearch'
>
查询
</el-button
>
>
<el-button
@
click=
"reset"
>
重置
</el-button>
<el-button
@
click=
'reset'
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -62,21 +66,31 @@
...
@@ -62,21 +66,31 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'WithdrawalSearch'
,
name
:
'WithdrawalSearch'
,
data
(){
data
()
{
return
{
return
{
withdrawalSearchForm
:
{
withdrawalSearchForm
:
{}
}
},
},
methods
:
{
handleSearch
()
{
if
(
this
.
withdrawalSearchForm
&&
this
.
withdrawalSearchForm
.
withdrawalTime
)
{
this
.
withdrawalSearchForm
.
withdrawalBeginTime
=
this
.
withdrawalSearchForm
.
withdrawalTime
[
0
]
this
.
withdrawalSearchForm
.
withdrawalEndTime
=
this
.
withdrawalSearchForm
.
withdrawalTime
[
1
]
}
if
(
this
.
withdrawalSearchForm
&&
this
.
withdrawalSearchForm
.
reviewTime
)
{
this
.
withdrawalSearchForm
.
reviewBeginTime
=
this
.
withdrawalSearchForm
.
reviewTime
[
0
]
this
.
withdrawalSearchForm
.
reviewEndTime
=
this
.
withdrawalSearchForm
.
reviewTime
[
1
]
}
}
this
.
$emit
(
'sendSearchForm'
,
this
.
withdrawalSearchForm
)
},
},
methods
:{
reset
()
{
reset
()
{
Object
.
keys
(
this
.
withdrawalSearchForm
).
forEach
((
key
)
=>
{
Object
.
keys
(
this
.
withdrawalSearchForm
).
forEach
((
key
)
=>
{
this
.
withdrawalSearchForm
[
key
]
=
''
this
.
withdrawalSearchForm
[
key
]
=
''
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
withdrawalTable
.
refreshTable
()
this
.
handleSearch
()
})
})
}
,
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
View file @
d34395f
...
@@ -2,9 +2,10 @@
...
@@ -2,9 +2,10 @@
<d2-table
<d2-table
class=
"my-row-height"
class=
"my-row-height"
ref=
"withdrawalTable"
ref=
"withdrawalTable"
@
select=
"handleSelect"
:hasNum=
"true"
:hasNum=
"true"
:tableParams=
"withdrawalTableParams"
:tableParams=
"withdrawalTableParams"
:searchForm=
"withdrawalS
earchForm"
:searchForm=
"s
earchForm"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
>
>
...
@@ -14,6 +15,7 @@
...
@@ -14,6 +15,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'WithdrawalTable'
,
name
:
'WithdrawalTable'
,
props
:[
'searchForm'
],
data
(){
data
(){
return
{
return
{
pageConf
:
{
pageConf
:
{
...
@@ -25,7 +27,7 @@ export default {
...
@@ -25,7 +27,7 @@ export default {
withdrawalTableParams
:
{
withdrawalTableParams
:
{
mutiSelectUniqueKey
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
mutiSelectUniqueKey
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
mutiSelectName
:
'1111'
,
mutiSelectName
:
'1111'
,
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
//
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data.list'
,
listName
:
'data.list'
,
tableColumns
:
[
tableColumns
:
[
{
{
...
@@ -92,6 +94,16 @@ export default {
...
@@ -92,6 +94,16 @@ export default {
],
],
},
},
}
}
},
methods
:{
handleSelect
(
selection
,
row
){
this
.
orgMultiSelection
=
selection
;
let
opSelection
=
this
.
res
.
map
(
item
=>
{
let
{
status
,
id
,...
params
}
=
item
return
{
status
,
id
}
})
this
.
$emit
(
'sendSelection'
,
opSelection
)
},
}
}
}
}
</
script
>
</
script
>
...
...
src/views/withdrawalManagement/withdrawalList/index.vue
View file @
d34395f
<
template
>
<
template
>
<div>
<div>
<WithdrawalSearch/>
<WithdrawalSearch
@
sendSearchForm=
'getSearchForm'
/>
<div
class=
'btnOptons'
>
<el-button
<el-button
size=
"small"
size=
'small'
class=
"addList"
type=
'primary'
type=
"primary
"
@
click=
"handleDialog('check')
"
@
click=
"handleDialog"
>
批量审核
>
批量审核
</el-button
</el-button
>
>
<el-button
<el-button
size=
"small"
size=
'small'
class=
"addList"
type=
'primary'
type=
"primary"
@
click=
"handleDialog('transfer')"
@
click=
"gotoNamelist"
>
导出
</el-button
>
>
<WithdrawalTable/>
批量重新发起转账
<WithdrawalDialog
ref=
'dialogRef'
/>
</el-button
>
<el-button
size=
'small'
type=
'primary'
@
click=
'handleOutput'
>
导出
</el-button
>
</div>
<WithdrawalTable
:searchForm=
'searchForm'
@
sendSelection=
'getSelection'
/>
<WithdrawalDialog
:textTooltip=
'textTooltip'
:selectType=
'selectType'
:auditId=
'auditId'
ref=
'dialogRef'
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -25,29 +35,70 @@
...
@@ -25,29 +35,70 @@
import
WithdrawalSearch
from
'./components/WithdrawalSearch'
import
WithdrawalSearch
from
'./components/WithdrawalSearch'
import
WithdrawalTable
from
'./components/WithdrawalTable'
import
WithdrawalTable
from
'./components/WithdrawalTable'
import
WithdrawalDialog
from
'./components/WithdrawalDialog'
import
WithdrawalDialog
from
'./components/WithdrawalDialog'
export
default
{
export
default
{
components
:{
components
:
{
WithdrawalSearch
,
WithdrawalSearch
,
WithdrawalTable
,
WithdrawalTable
,
WithdrawalDialog
WithdrawalDialog
},
},
data
()
{
data
()
{
return
{
return
{
optionsId
:
''
,
textTooltip
:
''
,
withdrawalSearchForm
:
{},
selectType
:
''
,
searchForm
:
{},
choiceStatus
:
[],
auditId
:
[]
}
}
},
},
methods
:
{
methods
:
{
reset
()
{
getSearchForm
(
val
)
{
Object
.
keys
(
this
.
withdrawalSearchForm
).
forEach
((
key
)
=>
{
if
(
val
.
withdrawalTime
)
delete
val
.
withdrawalTime
this
.
withdrawalSearchForm
[
key
]
=
''
if
(
val
.
reviewTime
)
delete
val
.
reviewTime
})
this
.
searchForm
=
val
this
.
$nextTick
(()
=>
{
},
this
.
$refs
.
withdrawalTable
.
refreshTable
()
handleOutput
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// customerApi.orderListExport(params).then(res => {
// if (res.code == 0) {
// this.$Utils.exportFn(res.data)
// } else {
// this.$message({
// type: 'error',
// message: '导出失败!'
// })
// }
// })
},
vertify
(
selectType
,
status
)
{
console
.
log
(
arguments
)
let
errMsg
=
selectType
==
'check'
?
'请选择待审核的提现记录!'
:
'请选择到账失败的提现记录'
if
((
selectType
&&
!
this
.
choiceStatus
.
length
)
||
(
selectType
&&
this
.
choiceStatus
.
every
(
item
=>
item
.
status
!==
status
)))
{
this
.
$message
({
type
:
'error'
,
message
:
errMsg
})
})
return
false
}
},
getSelection
(
val
)
{
// this.selectId = val.map(item =>
// return item.id
// )
},
},
handleDialog
(){
handleDialog
(
type
)
{
this
.
$refs
.
dialogRef
.
dialogVisible
=
true
this
.
selectType
=
type
let
vertifycheck
=
true
if
(
type
==
'check'
)
{
vertifycheck
=
this
.
vertify
(
'check'
,
'1'
)
}
else
{
vertifycheck
=
this
.
vertify
(
'transfer'
,
'2'
)
}
if
(
vertifycheck
)
{
this
.
auditId
=
this
.
getSelection
()
this
.
textTooltip
=
type
==
'check'
?
'审核通过,系统将自动转账至员工的微信零钱中'
:
'手动发起转账,系统将重新发起转账至员工的微信零钱中'
this
.
$refs
.
dialogRef
.
dialogVisible
=
true
}
}
}
}
}
}
}
...
@@ -59,10 +110,16 @@ export default {
...
@@ -59,10 +110,16 @@ export default {
border-radius
:
2px
;
border-radius
:
2px
;
margin-bottom
:
16px
;
margin-bottom
:
16px
;
}
}
.el-icon-plus
{
.el-icon-plus
{
padding-right
:
5px
;
padding-right
:
5px
;
}
}
.my-row-height
>>>
.el-table__body-wrapper
.el-table__row
{
.my-row-height
>>>
.el-table__body-wrapper
.el-table__row
{
height
:
48px
;
height
:
48px
;
}
}
.btnOptons
{
margin-bottom
:
10px
;
}
</
style
>
</
style
>
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