Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-points
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 a6e0b998
authored
Aug 27, 2026
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.8.5' into 'master'
上线合并 See merge request
!24
2 parents
8b72b029
50e91c6f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
962 additions
and
21 deletions
src/api/modules/withdraw.js
src/plugins/element.js
src/views/withdraw/components/batchTagDialog.vue
src/views/withdraw/components/customTagDrawer.vue
src/views/withdraw/components/tagFormDialog.vue
src/views/withdraw/list.vue
src/api/modules/withdraw.js
View file @
a6e0b99
...
@@ -10,6 +10,70 @@ const getList = params => {
...
@@ -10,6 +10,70 @@ const getList = params => {
sign
:
true
sign
:
true
})
})
}
}
// 积分提现记录打标签
const
bindTag
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.transfer.out.tag.bind'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 删除积分提现标签
const
deleteTag
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.transfer.out.tag.delete'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 查询积分提现标签树
const
getTagTree
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.transfer.out.tag.tree'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 保存积分提现标签
const
saveTag
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.transfer.out.tag.save'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 积分提现获取可选主营品牌列表
const
getBrandList
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.options.brand.list`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 积分提现获取可选省份列表
const
getProvinceList
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.options.province.list`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//付款渠道树形接口
//付款渠道树形接口
const
getChannelTree
=
params
=>
{
const
getChannelTree
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.channel.config.tree`
params
.
method
=
`scrm.api.shopmall.integral.transfer.channel.config.tree`
...
@@ -76,6 +140,17 @@ const integralOut = params => {
...
@@ -76,6 +140,17 @@ const integralOut = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
// 用户积分提现批量驳回
const
batchReject
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.batch.reject`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 积分提现一键审核
// 积分提现一键审核
const
integralAllOut
=
params
=>
{
const
integralAllOut
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.all.approve`
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.all.approve`
...
@@ -98,6 +173,16 @@ const integralAllpay = params => {
...
@@ -98,6 +173,16 @@ const integralAllpay = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
// 积分提现一键支付限制门店校验
const
checkAllPayLimitStore
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.all.pay.limit.store.check`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 积分提现向管理员发送验证码
// 积分提现向管理员发送验证码
const
getSms
=
params
=>
{
const
getSms
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.admin.sms`
params
.
method
=
`scrm.api.shopmall.integral.transfer.out.admin.sms`
...
@@ -360,4 +445,4 @@ const getAdmin = (params={}) => {
...
@@ -360,4 +445,4 @@ const getAdmin = (params={}) => {
sign
:
true
sign
:
true
})
})
}
}
export
default
{
getListPayLevy
,
getListPaymentEntity
,
getChannelList
,
getChannelTree
,
payApprovalAgain
,
getChannelAccount
,
approvalDetail
,
removeApproval
,
getPaymentEntityList
,
applyApprovalOA
,
getApprovalLog
,
getApprovalPage
,
generateBatchCount
,
integralorderBatch
,
getPayAmount
,
getAllPayAmount
,
integralAllOut
,
integralAllpay
,
getList
,
getAdmin
,
orderExport
,
integralpay
,
integralApprove
,
integralOu
t
,
getSms
,
getMerchantList
,
getDetails
,
uploadXlsx
,
handleSaveImport
,
getBalance
,
getSettleAmount
,
getChannel
,
checkRecordsTransferType
}
export
default
{
getListPayLevy
,
getListPaymentEntity
,
getChannelList
,
getChannelTree
,
payApprovalAgain
,
getChannelAccount
,
approvalDetail
,
removeApproval
,
getPaymentEntityList
,
applyApprovalOA
,
getApprovalLog
,
getApprovalPage
,
generateBatchCount
,
integralorderBatch
,
getPayAmount
,
getAllPayAmount
,
integralAllOut
,
integralAllpay
,
checkAllPayLimitStore
,
getList
,
bindTag
,
deleteTag
,
getTagTree
,
saveTag
,
getBrandList
,
getProvinceList
,
getAdmin
,
orderExport
,
integralpay
,
integralApprove
,
integralOut
,
batchRejec
t
,
getSms
,
getMerchantList
,
getDetails
,
uploadXlsx
,
handleSaveImport
,
getBalance
,
getSettleAmount
,
getChannel
,
checkRecordsTransferType
}
src/plugins/element.js
View file @
a6e0b99
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
Message
,
Button
,
ButtonGroup
,
Form
,
FormItem
,
Input
,
Radio
,
RadioGroup
,
Checkbox
,
CheckboxGroup
,
Switch
,
Select
,
Option
,
TimePicker
,
Col
,
DatePicker
,
Tree
,
Card
,
Table
,
TableColumn
,
Pagination
,
Loading
,
Dialog
,
MessageBox
,
Upload
,
Tooltip
,
Tabs
,
TabPane
,
Container
}
from
'element-ui'
import
{
Message
,
Button
,
ButtonGroup
,
Form
,
FormItem
,
Input
,
Radio
,
RadioGroup
,
Checkbox
,
CheckboxGroup
,
Switch
,
Select
,
Option
,
TimePicker
,
Col
,
DatePicker
,
Cascader
,
Tree
,
Card
,
Table
,
TableColumn
,
Pagination
,
Loading
,
Dialog
,
Drawer
,
MessageBox
,
Upload
,
Tooltip
,
Popover
,
Tabs
,
TabPane
,
Container
}
from
'element-ui'
Vue
.
use
(
Button
)
Vue
.
use
(
Button
)
Vue
.
use
(
ButtonGroup
)
Vue
.
use
(
ButtonGroup
)
Vue
.
use
(
Form
)
Vue
.
use
(
Form
)
...
@@ -15,6 +15,7 @@ Vue.use(Option)
...
@@ -15,6 +15,7 @@ Vue.use(Option)
Vue
.
use
(
TimePicker
)
Vue
.
use
(
TimePicker
)
Vue
.
use
(
Col
)
Vue
.
use
(
Col
)
Vue
.
use
(
DatePicker
)
Vue
.
use
(
DatePicker
)
Vue
.
use
(
Cascader
)
Vue
.
use
(
Tree
)
Vue
.
use
(
Tree
)
Vue
.
use
(
Card
)
Vue
.
use
(
Card
)
Vue
.
use
(
Table
)
Vue
.
use
(
Table
)
...
@@ -22,9 +23,13 @@ Vue.use(TableColumn)
...
@@ -22,9 +23,13 @@ Vue.use(TableColumn)
Vue
.
use
(
Pagination
)
Vue
.
use
(
Pagination
)
Vue
.
use
(
Loading
)
Vue
.
use
(
Loading
)
Vue
.
use
(
Dialog
)
Vue
.
use
(
Dialog
)
Vue
.
use
(
Drawer
)
Vue
.
use
(
Upload
)
Vue
.
use
(
Upload
)
Vue
.
use
(
Tooltip
)
Vue
.
use
(
Tooltip
)
Vue
.
use
(
Popover
)
Vue
.
use
(
Tabs
)
Vue
.
use
(
Tabs
)
Vue
.
use
(
TabPane
)
Vue
.
use
(
TabPane
)
Vue
.
prototype
.
$message
=
Message
Vue
.
prototype
.
$confirm
=
MessageBox
.
confirm
export
const
message
=
Message
export
const
message
=
Message
export
const
messageBox
=
MessageBox
export
const
messageBox
=
MessageBox
src/views/withdraw/components/batchTagDialog.vue
0 → 100644
View file @
a6e0b99
<
template
>
<GLDialog
class=
"batch-tag-dialog"
title=
"批量配置二/三标签"
mode=
"mid"
:visible
.
sync=
"isVisible"
:close-on-click-modal=
"false"
:before-close=
"handleClose"
append-to-body
:z-index=
"3000"
>
<div
v-loading=
"loading"
class=
"batch-tag-content"
>
<div
class=
"batch-tag-tip"
>
您已勾选
<span>
{{
ids
.
length
}}
</span>
条明细,请选择统一覆盖的目标二/三级标签路径:
</div>
<el-cascader
v-model=
"tagPath"
class=
"batch-tag-cascader"
:options=
"tagOptions"
:props=
"cascaderProps"
placeholder=
"请选择二/三级标签"
separator=
" / "
clearable
filterable
></el-cascader>
<div
class=
"batch-tag-desc"
>
提示:标签路径需在「自定义标签」中已补全至二级或三级后方可使用。
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
plain
size=
"small"
class=
"btn-three"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
:loading=
"saving"
@
click=
"handleConfirm"
>
确定
</el-button>
</span>
</GLDialog>
</
template
>
<
script
>
export
default
{
name
:
'BatchTagDialog'
,
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
},
ids
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
isVisible
:
false
,
loading
:
false
,
saving
:
false
,
tagPath
:
[],
tagOptions
:
[],
cascaderProps
:
{
value
:
'id'
,
label
:
'name'
,
children
:
'children'
,
emitPath
:
true
}
}
},
watch
:
{
visible
:
{
immediate
:
true
,
handler
(
val
)
{
this
.
isVisible
=
val
if
(
val
)
{
this
.
tagPath
=
[]
this
.
getTagTree
()
}
}
}
},
methods
:
{
getTagTree
()
{
this
.
loading
=
true
this
.
$apis
.
withdraw
.
getTagTree
({
onlyComplete
:
true
})
.
then
(
res
=>
{
const
list
=
Array
.
isArray
(
res
)
?
res
:
res
&&
Array
.
isArray
(
res
.
data
)
?
res
.
data
:
[]
this
.
tagOptions
=
this
.
formatTree
(
list
)
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
formatTree
(
list
)
{
return
(
list
||
[]).
map
(
item
=>
{
const
sourceChildren
=
item
.
children
||
item
.
child
||
item
.
childList
||
[]
const
children
=
this
.
formatTree
(
sourceChildren
)
const
option
=
{
...
item
,
id
:
item
.
id
,
name
:
item
.
name
||
item
.
label
||
item
.
tagName
||
''
}
if
(
children
.
length
)
{
option
.
children
=
children
}
else
{
delete
option
.
children
delete
option
.
child
delete
option
.
childList
}
return
option
})
},
handleClose
()
{
this
.
$emit
(
'update:visible'
,
false
)
},
handleConfirm
()
{
this
.
saving
=
true
this
.
$apis
.
withdraw
.
bindTag
({
ids
:
this
.
ids
,
transferOutTagId
:
this
.
tagPath
.
length
?
this
.
tagPath
[
this
.
tagPath
.
length
-
1
]
:
''
})
.
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
$emit
(
'success'
)
this
.
handleClose
()
}
})
.
finally
(()
=>
{
this
.
saving
=
false
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.batch-tag-dialog
{
/deep/
{
.el-dialog
{
width
:
520px
;
}
.el-dialog__body
{
padding
:
28px
24px
22px
;
}
}
}
.batch-tag-content
{
min-height
:
94px
;
}
.batch-tag-tip
{
margin-bottom
:
16px
;
color
:
#606266
;
font-size
:
14px
;
span
{
color
:
#5850ff
;
font-weight
:
600
;
}
}
.batch-tag-cascader
{
width
:
100%
;
}
.batch-tag-desc
{
margin-top
:
10px
;
color
:
#909399
;
font-size
:
12px
;
line-height
:
18px
;
}
</
style
>
src/views/withdraw/components/customTagDrawer.vue
0 → 100644
View file @
a6e0b99
<
template
>
<el-drawer
class=
"custom-tag-drawer"
title=
"自定义标签"
:visible
.
sync=
"isVisible"
direction=
"rtl"
size=
"680px"
:before-close=
"handleClose"
:append-to-body=
"true"
>
<div
class=
"tag-tree-panel"
v-loading=
"loading"
>
<div
class=
"tag-tree-title"
>
<span>
标签列表
</span>
</div>
<div
class=
"tag-tree-body"
>
<div
class=
"tag-root-node"
>
<span
class=
"tag-root-name"
@
click=
"toggleRoot"
>
<i
:class=
"rootExpanded ? 'el-icon-caret-bottom' : 'el-icon-caret-right'"
></i>
全部
</span>
<i
class=
"el-icon-plus tag-root-add"
@
click=
"handleAddRoot"
></i>
</div>
<el-tree
v-show=
"rootExpanded"
ref=
"tagTree"
:data=
"tagTree"
:props=
"treeProps"
node-key=
"id"
default-expand-all
:expand-on-click-node=
"false"
:highlight-current=
"true"
empty-text=
"暂无标签"
>
<div
class=
"tag-tree-node"
slot-scope=
"
{ node, data }">
<span
class=
"tag-node-name"
:title=
"data.name"
>
{{
data
.
name
}}
</span>
<el-popover
v-model=
"data.popoverVisible"
placement=
"bottom-end"
width=
"128"
trigger=
"click"
popper-class=
"tag-node-popover"
>
<div
class=
"tag-node-menu"
>
<div
v-if=
"node.level
< 3
"
class=
"tag-menu-item tag-menu-add"
@
click=
"handleAdd(data)"
>
<span>
新增子标签
</span>
</div>
<div
class=
"tag-menu-item"
@
click=
"handleEdit(data)"
>
编辑
</div>
<div
class=
"tag-menu-item danger"
@
click=
"handleDelete(data)"
>
删除
</div>
</div>
<i
slot=
"reference"
class=
"el-icon-more tag-node-more"
></i>
</el-popover>
</div>
</el-tree>
</div>
</div>
<tag-form-dialog
:visible
.
sync=
"tagDialogVisible"
:tagInfo=
"tagFormInfo"
@
success=
"getTagTree"
></tag-form-dialog>
</el-drawer>
</
template
>
<
script
>
import
TagFormDialog
from
'./tagFormDialog.vue'
export
default
{
name
:
'CustomTagDrawer'
,
components
:
{
TagFormDialog
},
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
isVisible
:
false
,
loading
:
false
,
tagTree
:
[],
rootExpanded
:
true
,
tagDialogVisible
:
false
,
tagFormInfo
:
{},
treeProps
:
{
children
:
'children'
,
label
:
'name'
}
}
},
watch
:
{
visible
:
{
immediate
:
true
,
handler
(
val
)
{
this
.
isVisible
=
val
if
(
val
)
{
this
.
getTagTree
()
}
}
}
},
methods
:
{
handleClose
()
{
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'drawerClose'
)
},
getTagTree
()
{
this
.
loading
=
true
this
.
$apis
.
withdraw
.
getTagTree
({})
.
then
(
res
=>
{
const
list
=
Array
.
isArray
(
res
)
?
res
:
res
&&
Array
.
isArray
(
res
.
data
)
?
res
.
data
:
[]
this
.
tagTree
=
this
.
formatTree
(
list
)
})
.
finally
(()
=>
{
this
.
loading
=
false
})
},
formatTree
(
list
)
{
return
(
list
||
[]).
map
(
item
=>
{
const
children
=
item
.
children
||
item
.
child
||
item
.
childList
||
[]
return
{
...
item
,
name
:
item
.
name
||
item
.
label
||
item
.
tagName
||
''
,
popoverVisible
:
false
,
children
:
this
.
formatTree
(
children
)
}
})
},
handleAddRoot
()
{
this
.
tagFormInfo
=
{
parentId
:
''
,
name
:
''
}
this
.
tagDialogVisible
=
true
},
toggleRoot
()
{
this
.
rootExpanded
=
!
this
.
rootExpanded
},
handleAdd
(
data
)
{
data
.
popoverVisible
=
false
this
.
tagFormInfo
=
{
parentId
:
data
.
id
,
name
:
''
}
this
.
$nextTick
(()
=>
{
this
.
tagDialogVisible
=
true
})
},
handleEdit
(
data
)
{
data
.
popoverVisible
=
false
this
.
tagFormInfo
=
{
id
:
data
.
id
,
parentId
:
data
.
parentId
||
''
,
name
:
data
.
name
}
this
.
$nextTick
(()
=>
{
this
.
tagDialogVisible
=
true
})
},
handleDelete
(
data
)
{
data
.
popoverVisible
=
false
this
.
$confirm
(
'确定删除该标签?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
return
this
.
$apis
.
withdraw
.
deleteTag
({
id
:
data
.
id
})
})
.
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
$message
.
success
(
'删除成功'
)
this
.
getTagTree
()
}
})
.
catch
(()
=>
{})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.custom-tag-drawer
{
/deep/
{
.el-drawer__header
{
margin-bottom
:
0
;
padding
:
20px
24px
16px
;
color
:
#333333
;
font-size
:
16px
;
font-weight
:
600
;
}
.el-drawer__body
{
padding
:
0
24px
24px
;
overflow
:
hidden
;
}
}
}
.tag-tree-panel
{
width
:
100%
;
height
:
calc
(
100vh
-
84px
);
border
:
1px
solid
#e5e9f2
;
background
:
#ffffff
;
box-sizing
:
border-box
;
overflow
:
hidden
;
}
.tag-tree-title
{
height
:
44px
;
line-height
:
44px
;
padding
:
0
16px
;
color
:
#333333
;
font-size
:
14px
;
box-sizing
:
border-box
;
}
.tag-tree-body
{
height
:
calc
(
100%
-
44px
);
overflow
:
auto
;
padding
:
0
8px
12px
;
box-sizing
:
border-box
;
}
.tag-root-node
{
height
:
30px
;
line-height
:
30px
;
padding
:
0
8px
0
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
color
:
#333333
;
font-size
:
13px
;
box-sizing
:
border-box
;
}
.tag-root-name
{
display
:
flex
;
align-items
:
center
;
cursor
:
pointer
;
user-select
:
none
;
i
{
margin-right
:
6px
;
color
:
#b7c0ca
;
font-size
:
12px
;
}
}
.tag-root-add
{
color
:
#8993a4
;
font-size
:
14px
;
cursor
:
pointer
;
}
.tag-tree-body
{
/deep/
{
.el-tree
{
color
:
#333333
;
font-size
:
13px
;
}
.el-tree-node__content
{
height
:
30px
;
line-height
:
30px
;
position
:
relative
;
}
.el-tree-node__content
:hover
,
.el-tree--highlight-current
.el-tree-node.is-current
>
.el-tree-node__content
{
background-color
:
#edf3ff
;
}
.el-tree-node__expand-icon
{
color
:
#b7c0ca
;
font-size
:
12px
;
}
.el-tree-node__expand-icon.is-leaf
{
color
:
transparent
;
}
}
}
.tag-tree-node
{
min-width
:
0
;
flex
:
1
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
height
:
30px
;
padding-right
:
8px
;
}
.tag-node-name
{
display
:
block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
padding-right
:
8px
;
}
.tag-node-more
{
color
:
#8993a4
;
font-size
:
14px
;
cursor
:
pointer
;
transform
:
rotate
(
90deg
);
}
</
style
>
<
style
lang=
"scss"
>
.tag-node-popover
{
min-width
:
128px
;
padding
:
6px
0
;
box-sizing
:
border-box
;
border-radius
:
3px
;
box-shadow
:
0
4px
14px
rgba
(
31
,
45
,
61
,
0.14
);
border
:
0
;
.tag-node-menu
{
font-size
:
14px
;
color
:
#606266
;
}
.tag-menu-item
{
height
:
34px
;
line-height
:
34px
;
padding
:
0
14px
;
cursor
:
pointer
;
white-space
:
nowrap
;
&:hover
{
background
:
#f5f7fa
;
}
i
{
margin-right
:
7px
;
font-size
:
14px
;
}
}
.tag-menu-add
{
color
:
#5850ff
;
}
.tag-menu-item.danger
{
color
:
#f56c6c
;
}
}
</
style
>
src/views/withdraw/components/tagFormDialog.vue
0 → 100644
View file @
a6e0b99
<
template
>
<GLDialog
class=
"gl-form-page gl-form-min tag-form-dialog"
:title=
"dialogTitle"
mode=
"mid"
:visible
.
sync=
"isVisible"
:close-on-click-modal=
"false"
:before-close=
"handleClose"
append-to-body
>
<glsx-combi-form
ref=
"tagFormRef"
formRef=
"tagChildRef"
defaultWidth=
"432px"
:formObj=
"tagForm"
:formData=
"tagFormData"
:formRules=
"tagRule"
></glsx-combi-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
plain
size=
"small"
class=
"btn-three"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
:loading=
"loading"
@
click=
"handleConfirm"
>
确定
</el-button>
</span>
</GLDialog>
</
template
>
<
script
>
export
default
{
name
:
'TagFormDialog'
,
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
},
tagInfo
:
{
type
:
Object
,
default
:
()
=>
({})
}
},
data
()
{
return
{
isVisible
:
false
,
loading
:
false
,
tagForm
:
{
id
:
''
,
parentId
:
''
,
name
:
''
},
tagFormData
:
[
{
label
:
'标签名称'
,
name
:
'name'
,
type
:
'input'
,
maxlength
:
50
}
],
tagRule
:
{
name
:
[
{
required
:
true
,
message
:
'请输入标签名称'
,
trigger
:
'blur'
},
{
min
:
1
,
max
:
50
,
message
:
'标签名称长度为1-50个字符'
,
trigger
:
'blur'
}
]
}
}
},
computed
:
{
dialogTitle
()
{
return
this
.
tagForm
.
id
?
'编辑标签'
:
'新增标签'
}
},
watch
:
{
visible
:
{
immediate
:
true
,
handler
(
val
)
{
this
.
isVisible
=
val
if
(
val
)
{
this
.
initForm
()
}
}
}
},
methods
:
{
initForm
()
{
this
.
tagForm
=
{
id
:
this
.
tagInfo
.
id
||
''
,
parentId
:
this
.
tagInfo
.
parentId
||
''
,
name
:
this
.
tagInfo
.
name
||
''
}
this
.
$nextTick
(()
=>
{
const
formRef
=
this
.
$refs
.
tagFormRef
&&
this
.
$refs
.
tagFormRef
.
$refs
.
tagChildRef
formRef
&&
formRef
.
clearValidate
()
})
},
handleClose
()
{
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'close'
)
},
handleConfirm
()
{
const
formRef
=
this
.
$refs
.
tagFormRef
&&
this
.
$refs
.
tagFormRef
.
$refs
.
tagChildRef
if
(
!
formRef
)
return
formRef
.
validate
(
valid
=>
{
if
(
!
valid
)
return
this
.
loading
=
true
const
params
=
{
name
:
this
.
tagForm
.
name
,
parentId
:
this
.
tagForm
.
parentId
}
if
(
this
.
tagForm
.
id
)
{
params
.
id
=
this
.
tagForm
.
id
}
this
.
$apis
.
withdraw
.
saveTag
(
params
)
.
then
(
res
=>
{
if
(
res
)
{
this
.
$message
.
success
(
'保存成功'
)
this
.
$emit
(
'success'
)
this
.
handleClose
()
}
})
.
finally
(()
=>
{
this
.
loading
=
false
})
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.tag-form-dialog
{
/deep/
{
.el-form--inline
.el-form-item
{
display
:
block
;
}
.el-form
.el-input
{
width
:
100%
;
}
}
}
</
style
>
src/views/withdraw/list.vue
View file @
a6e0b99
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
<template
slot=
"channel"
>
<template
slot=
"channel"
>
<el-cascader
:options=
"baseData.channelList"
:props=
"props"
style=
"width: 100%"
v-model=
"searchForm.channelList"
:placeholder=
"'请选择'"
filterable
@
change=
"selectAddAttr($event, 'searchForm')"
></el-cascader>
<el-cascader
:options=
"baseData.channelList"
:props=
"props"
style=
"width: 100%"
v-model=
"searchForm.channelList"
:placeholder=
"'请选择'"
filterable
@
change=
"selectAddAttr($event, 'searchForm')"
></el-cascader>
</
template
>
</
template
>
<
template
slot=
"manualTag"
>
<el-cascader
v-model=
"searchForm.transferOutTagIdPath"
:options=
"baseData.manualTagList"
:props=
"manualTagProps"
style=
"width: 100%"
placeholder=
"请选择手动标签项"
separator=
" / "
clearable
filterable
@
change=
"handleManualTagChange"
></el-cascader>
</
template
>
</GLCombiForm>
</GLCombiForm>
<div
class=
"statistics"
>
<div
class=
"statistics"
>
<div
class=
"title"
>
累计结算金额
</div>
<div
class=
"title"
>
累计结算金额
</div>
...
@@ -63,6 +66,8 @@
...
@@ -63,6 +66,8 @@
<!-- <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
<!-- <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
<el-button size="small" @click="handlePay()">批量付款</el-button> -->
<el-button size="small" @click="handlePay()">批量付款</el-button> -->
<el-button
size=
"small"
@
click=
"handleTagBind"
>
标签标注
</el-button>
<el-button
size=
"small"
@
click=
"customTagVisible = true"
type=
"primary"
>
自定义标签
</el-button>
<el-button
size=
"small"
@
click=
"handleImport"
>
提现导入
</el-button>
<el-button
size=
"small"
@
click=
"handleImport"
>
提现导入
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
...
@@ -194,6 +199,8 @@
...
@@ -194,6 +199,8 @@
</GLDialog>
</GLDialog>
<!-- 详情 -->
<!-- 详情 -->
<detail-dialog
class=
""
:detail-visible=
"detailVisible"
:id=
"id"
@
dialogClose=
"dialogClose"
></detail-dialog>
<detail-dialog
class=
""
:detail-visible=
"detailVisible"
:id=
"id"
@
dialogClose=
"dialogClose"
></detail-dialog>
<batch-tag-dialog
:visible
.
sync=
"batchTagVisible"
:ids=
"ids"
@
success=
"handleTagBindSuccess"
></batch-tag-dialog>
<custom-tag-drawer
:visible
.
sync=
"customTagVisible"
@
drawerClose=
"handleDrawerClose"
></custom-tag-drawer>
<!-- 累计结算金额 -->
<!-- 累计结算金额 -->
<GLDialog
class=
"settleAmount-dialog"
title=
"累计结算金额"
mode=
"big"
:visible
.
sync=
"isMore"
:close-on-click-modal=
"false"
:hasFooter=
"hasFooter"
>
<GLDialog
class=
"settleAmount-dialog"
title=
"累计结算金额"
mode=
"big"
:visible
.
sync=
"isMore"
:close-on-click-modal=
"false"
:hasFooter=
"hasFooter"
>
<div
class=
"content"
>
<div
class=
"content"
>
...
@@ -212,6 +219,8 @@
...
@@ -212,6 +219,8 @@
<
script
>
<
script
>
import
*
as
XLSX
from
'xlsx'
import
*
as
XLSX
from
'xlsx'
import
DetailDialog
from
'./detail.vue'
import
DetailDialog
from
'./detail.vue'
import
BatchTagDialog
from
'./components/batchTagDialog.vue'
import
CustomTagDrawer
from
'./components/customTagDrawer.vue'
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
util
from
'@/utils/index'
import
util
from
'@/utils/index'
...
@@ -221,17 +230,31 @@ const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E'
...
@@ -221,17 +230,31 @@ const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E'
const
tabelHeaderModel
=
[
'商户名称'
,
'商户号'
,
'客户名称'
,
'客户手机号'
,
'提现金额'
,
'收款人姓名'
,
'收款人身份证'
,
'收款银行卡号'
,
'收款银行'
,
'收款人手机号'
]
const
tabelHeaderModel
=
[
'商户名称'
,
'商户号'
,
'客户名称'
,
'客户手机号'
,
'提现金额'
,
'收款人姓名'
,
'收款人身份证'
,
'收款银行卡号'
,
'收款银行'
,
'收款人手机号'
]
export
default
{
export
default
{
components
:
{
components
:
{
DetailDialog
DetailDialog
,
BatchTagDialog
,
CustomTagDrawer
},
},
data
()
{
data
()
{
return
{
return
{
isMore
:
false
,
isMore
:
false
,
ids
:
[],
selectedRows
:
[],
isBatchReject
:
false
,
batchTagVisible
:
false
,
customTagVisible
:
false
,
statisticsTypeList
,
statisticsTypeList
,
props
:
{
props
:
{
value
:
'code'
,
value
:
'code'
,
label
:
'name'
,
label
:
'name'
,
children
:
'child'
children
:
'child'
},
},
manualTagProps
:
{
value
:
'id'
,
label
:
'name'
,
children
:
'children'
,
checkStrictly
:
true
,
emitPath
:
true
},
isFold
:
true
,
isFold
:
true
,
id
:
''
,
id
:
''
,
isIdCard
:
false
,
isIdCard
:
false
,
...
@@ -262,13 +285,18 @@ export default {
...
@@ -262,13 +285,18 @@ export default {
customerPhone
:
''
,
customerPhone
:
''
,
status
:
''
,
status
:
''
,
channelList
:
[],
channelList
:
[],
merchant
Name
:
''
,
merchant
Ids
:
[]
,
transferType
:
''
,
transferType
:
''
,
mode
:
''
,
mode
:
''
,
withdrawalSource
:
''
,
withdrawalSource
:
''
,
realityMerchantName
:
''
,
realityMerchantName
:
''
,
channel
:
''
,
channel
:
''
,
paymentEntityCode
:
''
paymentEntityCode
:
''
,
limitStoreFlagQuery
:
''
,
mainBrandIds
:
[],
provinceCodes
:
[],
transferOutTagIdQuery
:
''
,
transferOutTagIdPath
:
[]
},
},
hasFooter
:
false
,
hasFooter
:
false
,
tableSearchForm
:
{},
tableSearchForm
:
{},
...
@@ -351,12 +379,14 @@ export default {
...
@@ -351,12 +379,14 @@ export default {
},
},
{
{
label
:
'所属门店'
,
label
:
'所属门店'
,
name
:
'merchant
Name
'
,
name
:
'merchant
Ids
'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'merchantName'
,
optionId
:
'id'
,
optionLabel
:
'merchantName'
,
optionLabel
:
'nameWithId'
,
optionsName
:
'merchantList'
optionsName
:
'merchantList'
,
multiple
:
true
,
isClear
:
true
},
},
{
{
label
:
'到账时间'
,
label
:
'到账时间'
,
...
@@ -397,6 +427,42 @@ export default {
...
@@ -397,6 +427,42 @@ export default {
name
:
'realityMerchantName'
,
name
:
'realityMerchantName'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
},
{
label
:
'限制门店'
,
name
:
'limitStoreFlagQuery'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'value'
,
optionLabel
:
'label'
,
optionsName
:
'limitStoreFlagList'
},
{
label
:
'主营品牌'
,
name
:
'mainBrandIds'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'name'
,
optionsName
:
'mainBrandList'
,
multiple
:
true
,
isClear
:
true
},
{
label
:
'省份'
,
name
:
'provinceCodes'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'code'
,
optionLabel
:
'name'
,
optionsName
:
'provinceList'
,
multiple
:
true
,
isClear
:
true
},
{
label
:
'手动标签项'
,
name
:
'transferOutTagIdPath'
,
addHtml
:
'manualTag'
}
}
],
],
tableButtonList
:
[
tableButtonList
:
[
...
@@ -435,7 +501,7 @@ export default {
...
@@ -435,7 +501,7 @@ export default {
fn
:
'驳回'
fn
:
'驳回'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
status
==
0
||
row
.
status
==
1
||
row
.
status
==
6
return
row
.
status
==
0
||
row
.
status
==
1
||
row
.
status
==
6
||
row
.
status
==
8
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -487,6 +553,36 @@ export default {
...
@@ -487,6 +553,36 @@ export default {
}
}
},
},
{
{
label
:
'限制门店'
,
prop
:
'limitStoreFlag'
,
width
:
'100px'
,
formatter
:
cellValue
=>
{
const
flagMap
=
{
Y
:
'是'
,
N
:
'否'
}
return
flagMap
[
cellValue
.
limitStoreFlag
]
||
'--'
}
},
{
label
:
'手动标签'
,
prop
:
'manualTagPath'
,
line
:
1
,
width
:
180
},
{
label
:
'主营品牌'
,
prop
:
'mainBrandName'
,
line
:
1
,
width
:
180
},
{
label
:
'省份'
,
prop
:
'provinceName'
,
line
:
1
,
width
:
120
},
{
label
:
'提现方式'
,
label
:
'提现方式'
,
prop
:
'mode'
,
prop
:
'mode'
,
width
:
'100px'
,
width
:
'100px'
,
...
@@ -510,7 +606,10 @@ export default {
...
@@ -510,7 +606,10 @@ export default {
label
:
'所属门店'
,
label
:
'所属门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
line
:
1
,
line
:
1
,
width
:
150
width
:
220
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantName
?
(
cellValue
.
merchantName
+
'('
+
cellValue
.
merchantId
+
')'
)
:
'--'
}
},
},
{
{
label
:
'平台方'
,
label
:
'平台方'
,
...
@@ -706,6 +805,19 @@ export default {
...
@@ -706,6 +805,19 @@ export default {
channelList
:
[],
channelList
:
[],
paymentEntityList
:
[],
paymentEntityList
:
[],
channelPayList
:
[],
channelPayList
:
[],
limitStoreFlagList
:
[
{
label
:
'是'
,
value
:
'Y'
},
{
label
:
'否'
,
value
:
'N'
}
],
mainBrandList
:
[],
provinceList
:
[],
manualTagList
:
[],
withdrawalTypeList
:
withdrawalTypeList
,
withdrawalTypeList
:
withdrawalTypeList
,
modeTypeList
:
modeTypeList
,
modeTypeList
:
modeTypeList
,
sourceList
:
sourceList
,
sourceList
:
sourceList
,
...
@@ -832,7 +944,7 @@ export default {
...
@@ -832,7 +944,7 @@ export default {
ids
:
[]
ids
:
[]
},
},
isImport
:
false
,
isImport
:
false
,
batchOptions
:
[
'批量审核'
,
'批量付款'
,
'批量生成批次'
],
batchOptions
:
[
'批量审核'
,
'批量付款'
,
'批量
驳回'
,
'批量
生成批次'
],
keyOptions
:
[
'一键审核'
,
'一键付款'
]
keyOptions
:
[
'一键审核'
,
'一键付款'
]
}
}
},
},
...
@@ -847,6 +959,9 @@ export default {
...
@@ -847,6 +959,9 @@ export default {
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
)
this
.
getChannelTree
()
this
.
getChannelTree
()
this
.
getMerchantList
()
this
.
getMerchantList
()
this
.
getBrandList
()
this
.
getProvinceList
()
this
.
getManualTagList
()
this
.
getSettleAmount
()
this
.
getSettleAmount
()
},
},
methods
:
{
methods
:
{
...
@@ -942,6 +1057,10 @@ export default {
...
@@ -942,6 +1057,10 @@ export default {
this
.
isIdCard
=
true
this
.
isIdCard
=
true
}
}
},
},
handleDrawerClose
()
{
this
.
getManualTagList
()
this
.
handleReset
()
},
//协议
//协议
openAgreement
(
url
)
{
openAgreement
(
url
)
{
this
.
pdfUrl
=
url
this
.
pdfUrl
=
url
...
@@ -1035,16 +1154,27 @@ export default {
...
@@ -1035,16 +1154,27 @@ export default {
let
data
=
await
this
.
checkRecordsTransferType
(
type
)
let
data
=
await
this
.
checkRecordsTransferType
(
type
)
this
.
payForm
.
transferType
=
data
.
transferType
this
.
payForm
.
transferType
=
data
.
transferType
this
.
payForm
.
mode
=
data
.
mode
this
.
payForm
.
mode
=
data
.
mode
this
.
handlePay
()
await
this
.
handlePay
()
}
}
}
}
}
else
{
}
else
{
if
(
!
this
.
ids
||
this
.
ids
.
length
==
0
)
{
const
errorObj
=
{
this
.
$message
.
error
(
'请选择需要生成批次的【积分提现】记录'
)
2
:
'请选择需要批量驳回的【积分提现】记录'
,
3
:
'请选择需要生成批次的【积分提现】记录'
}
if
(
type
==
'batch'
&&
(
!
this
.
ids
||
this
.
ids
.
length
==
0
))
{
this
.
$message
.
error
(
errorObj
[
index
])
return
return
}
}
switch
(
index
)
{
case
2
:
this
.
handleBatchReject
()
break
case
3
:
//批量生成批次
//批量生成批次
this
.
handleAllBatch
(
false
)
this
.
handleAllBatch
(
false
)
break
}
}
}
},
},
//canApprove=false的时候就提示只能选待审核的,付款的时候canPay=false就提示只能选待付款和受理失败的
//canApprove=false的时候就提示只能选待审核的,付款的时候canPay=false就提示只能选待付款和受理失败的
...
@@ -1112,14 +1242,59 @@ export default {
...
@@ -1112,14 +1242,59 @@ export default {
},
},
getMerchantList
()
{
getMerchantList
()
{
this
.
$apis
.
withdraw
.
getMerchantList
({}).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
getMerchantList
({}).
then
(
res
=>
{
this
.
baseData
.
merchantList
=
res
.
map
(
item
=>
{
this
.
baseData
.
merchantList
=
Array
.
isArray
(
res
)
?
res
.
map
(
item
=>
{
return
{
return
{
merchantName
:
item
...
item
,
nameWithId
:
`
${
item
.
name
}
(
${
item
.
id
}
)`
}
}
})
})
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
,
false
,
'merchantName'
)
:
[]
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
,
false
,
'merchantIds'
)
})
},
getBrandList
()
{
this
.
$apis
.
withdraw
.
getBrandList
({}).
then
(
res
=>
{
const
list
=
Array
.
isArray
(
res
)
?
res
:
res
&&
Array
.
isArray
(
res
.
data
)
?
res
.
data
:
[]
this
.
baseData
.
mainBrandList
=
list
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
,
false
,
'mainBrandIds'
)
})
},
getProvinceList
()
{
this
.
$apis
.
withdraw
.
getProvinceList
({}).
then
(
res
=>
{
const
list
=
Array
.
isArray
(
res
)
?
res
:
res
&&
Array
.
isArray
(
res
.
data
)
?
res
.
data
:
[]
this
.
baseData
.
provinceList
=
list
this
.
$utils
.
getOptionsList
(
this
,
'showFormData'
,
false
,
'provinceCodes'
)
})
},
getManualTagList
()
{
this
.
$apis
.
withdraw
.
getTagTree
({}).
then
(
res
=>
{
const
list
=
Array
.
isArray
(
res
)
?
res
:
res
&&
Array
.
isArray
(
res
.
data
)
?
res
.
data
:
[]
this
.
baseData
.
manualTagList
=
this
.
formatManualTagTree
(
list
)
})
})
},
},
formatManualTagTree
(
list
)
{
return
(
list
||
[]).
map
(
item
=>
{
const
sourceChildren
=
item
.
children
||
item
.
child
||
item
.
childList
||
[]
const
children
=
this
.
formatManualTagTree
(
sourceChildren
)
const
option
=
{
...
item
,
id
:
item
.
id
,
name
:
item
.
name
||
item
.
label
||
item
.
tagName
||
''
}
if
(
children
.
length
)
{
option
.
children
=
children
}
else
{
delete
option
.
children
delete
option
.
child
delete
option
.
childList
}
return
option
})
},
handleManualTagChange
(
val
)
{
this
.
searchForm
.
transferOutTagIdQuery
=
val
&&
val
.
length
?
val
[
val
.
length
-
1
]
:
''
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
console
.
log
(
this
.
searchForm
)
console
.
log
(
this
.
searchForm
)
...
@@ -1136,6 +1311,7 @@ export default {
...
@@ -1136,6 +1311,7 @@ export default {
params
.
receiptDateEnd
=
dayjs
(
this
.
searchForm
.
receiptDateStr
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
params
.
receiptDateEnd
=
dayjs
(
this
.
searchForm
.
receiptDateStr
[
1
]).
format
(
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
delete
params
.
channelList
delete
params
.
channelList
delete
params
.
transferOutTagIdPath
delete
params
.
payTimeStr
,
delete
params
.
applyDateStr
,
delete
params
.
receiptDateStr
delete
params
.
payTimeStr
,
delete
params
.
applyDateStr
,
delete
params
.
receiptDateStr
return
params
return
params
},
},
...
@@ -1158,7 +1334,7 @@ export default {
...
@@ -1158,7 +1334,7 @@ export default {
customerPhone
:
''
,
customerPhone
:
''
,
status
:
''
,
status
:
''
,
channelList
:
[],
channelList
:
[],
merchant
Name
:
''
,
merchant
Ids
:
[]
,
mode
:
''
,
mode
:
''
,
withdrawalSource
:
''
,
withdrawalSource
:
''
,
channelProvider
:
''
,
channelProvider
:
''
,
...
@@ -1166,7 +1342,12 @@ export default {
...
@@ -1166,7 +1342,12 @@ export default {
levyCode
:
''
,
levyCode
:
''
,
channel
:
''
,
channel
:
''
,
transferType
:
''
,
transferType
:
''
,
realityMerchantName
:
''
realityMerchantName
:
''
,
limitStoreFlagQuery
:
''
,
mainBrandIds
:
[],
provinceCodes
:
[],
transferOutTagIdQuery
:
''
,
transferOutTagIdPath
:
[]
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
@@ -1325,8 +1506,34 @@ export default {
...
@@ -1325,8 +1506,34 @@ export default {
},
},
//获取复选table数据
//获取复选table数据
selectionTable
(
val
)
{
selectionTable
(
val
)
{
this
.
selectedRows
=
val
this
.
ids
=
val
.
map
(
item
=>
item
.
id
)
this
.
ids
=
val
.
map
(
item
=>
item
.
id
)
},
},
handleTagBind
()
{
if
(
!
this
.
ids
.
length
)
{
this
.
$message
.
warning
(
'请选择要标签的明细'
)
return
}
this
.
batchTagVisible
=
true
},
handleTagBindSuccess
()
{
this
.
batchTagVisible
=
false
this
.
ids
=
[]
this
.
selectedRows
=
[]
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
this
.
$refs
.
withdrawRef
.
refreshTable
()
},
handleBatchReject
()
{
const
canReject
=
this
.
selectedRows
.
every
(
row
=>
row
.
status
==
0
||
row
.
status
==
1
||
row
.
status
==
6
||
row
.
status
==
8
)
if
(
!
canReject
)
{
this
.
$message
.
error
(
'请选择能够驳回的提现记录'
)
return
}
this
.
operaForm
.
select
=
false
this
.
isBatchReject
=
true
this
.
isRefuse
=
2
this
.
showPassDialog
=
true
},
//批量审核
//批量审核
handleCheck
(
row
,
isRefuse
=
0
)
{
handleCheck
(
row
,
isRefuse
=
0
)
{
// console.log(row)
// console.log(row)
...
@@ -1340,7 +1547,13 @@ export default {
...
@@ -1340,7 +1547,13 @@ export default {
this
.
showPassDialog
=
true
this
.
showPassDialog
=
true
},
},
//付款
//付款
handlePay
(
row
)
{
async
handlePay
(
row
,
skipLimitConfirm
=
false
)
{
if
(
!
skipLimitConfirm
&&
(
await
this
.
hasLimitStorePayOrder
(
row
)))
{
this
.
confirmLimitStorePay
(()
=>
{
this
.
handlePay
(
row
,
true
)
})
return
}
if
(
row
)
{
if
(
row
)
{
this
.
operaForm
.
select
=
false
this
.
operaForm
.
select
=
false
this
.
ids
=
[
row
.
id
]
this
.
ids
=
[
row
.
id
]
...
@@ -1362,6 +1575,27 @@ export default {
...
@@ -1362,6 +1575,27 @@ export default {
}
}
this
.
isPay
=
true
this
.
isPay
=
true
},
},
async
hasLimitStorePayOrder
(
row
)
{
if
(
!
row
&&
this
.
operaForm
.
select
)
{
const
res
=
await
this
.
$apis
.
withdraw
.
checkAllPayLimitStore
({
...
this
.
tableSearchForm
})
return
res
}
const
rows
=
row
?
[
row
]
:
this
.
selectedRows
return
rows
.
some
(
item
=>
item
.
limitStoreFlag
==
'Y'
)
},
confirmLimitStorePay
(
callback
)
{
this
.
$confirm
(
'注意:所选数据中包含限制门店的订单,是否付款?'
,
'二次确认'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
callback
&&
callback
()
})
.
catch
(()
=>
{})
},
getAdmin
()
{
getAdmin
()
{
this
.
$apis
.
withdraw
.
getAdmin
({
channel
:
this
.
payForm
.
channel
}).
then
(
res
=>
{
this
.
$apis
.
withdraw
.
getAdmin
({
channel
:
this
.
payForm
.
channel
}).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
...
@@ -1435,6 +1669,25 @@ export default {
...
@@ -1435,6 +1669,25 @@ export default {
return
return
}
}
this
.
checkLoading
=
true
this
.
checkLoading
=
true
if
(
this
.
isBatchReject
)
{
this
.
$apis
.
withdraw
.
batchReject
({
ids
:
this
.
ids
,
rejectReason
:
this
.
form
.
remark
})
.
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
.
finally
(()
=>
{
this
.
handleReset
()
this
.
clearSelect
()
this
.
checkLoading
=
false
})
return
}
let
{
isRefuse
}
=
this
,
let
{
isRefuse
}
=
this
,
{
select
}
=
this
.
operaForm
,
//true为一键操作
{
select
}
=
this
.
operaForm
,
//true为一键操作
Methods
=
select
?
'integralAllOut'
:
this
.
isRefuse
==
2
?
'integralOut'
:
'integralApprove'
,
Methods
=
select
?
'integralAllOut'
:
this
.
isRefuse
==
2
?
'integralOut'
:
'integralApprove'
,
...
@@ -1464,6 +1717,8 @@ export default {
...
@@ -1464,6 +1717,8 @@ export default {
},
},
clearSelect
()
{
clearSelect
()
{
this
.
ids
=
''
this
.
ids
=
''
this
.
selectedRows
=
[]
this
.
isBatchReject
=
false
this
.
form
.
remark
=
''
this
.
form
.
remark
=
''
this
.
showPassDialog
=
false
this
.
showPassDialog
=
false
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
this
.
$refs
.
withdrawRef
.
clearMutiSelect
()
...
...
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