Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 1cce7acf
authored
Dec 20, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加多选
1 parent
7a7a19b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
13 deletions
src/views/orderManage/index.vue
src/views/orderManage/index.vue
View file @
1cce7ac
...
@@ -56,8 +56,7 @@
...
@@ -56,8 +56,7 @@
class=
"default-blue-btn refund-btn"
class=
"default-blue-btn refund-btn"
:size=
"size"
:size=
"size"
type=
"default"
type=
"default"
@
click=
"handleExport"
@
click=
"batchRefundVisible = true"
disabled
>
批量退款
</el-button>
>
批量退款
</el-button>
<GLTable
<GLTable
ref=
"allOrderRef"
ref=
"allOrderRef"
...
@@ -68,6 +67,7 @@
...
@@ -68,6 +67,7 @@
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
>
<div
<div
slot=
"weChatName"
slot=
"weChatName"
...
@@ -377,7 +377,8 @@
...
@@ -377,7 +377,8 @@
mode=
"mid"
mode=
"mid"
class=
"refund-dialog"
class=
"refund-dialog"
title=
"退款"
title=
"退款"
:visible
.
sync=
"battleVisible"
:visible
.
sync=
"refundVisible"
@
onCancel=
"refundVisible = !refundVisible"
>
>
<div
class=
"gl-form-page gl-form-min"
>
<div
class=
"gl-form-page gl-form-min"
>
<el-form
<el-form
...
@@ -386,7 +387,7 @@
...
@@ -386,7 +387,7 @@
>
>
<el-form-item
label=
"退款类型:"
>
<el-form-item
label=
"退款类型:"
>
<el-radio-group
<el-radio-group
v-model=
"
test
"
v-model=
"
refundType
"
@
change=
"changeType"
@
change=
"changeType"
>
>
<div
class=
"refund-item"
>
<div
class=
"refund-item"
>
...
@@ -408,6 +409,21 @@
...
@@ -408,6 +409,21 @@
</el-form>
</el-form>
</div>
</div>
</GLDialog>
</GLDialog>
<!-- 批量退款 -->
<GLDialog
mode=
"big"
class=
"refund-dialog"
title=
"批量退款"
:visible
.
sync=
"batchRefundVisible"
@
onCancel=
"batchRefundVisible = !batchRefundVisible"
>
<GLTable
:hasPage=
"false"
:tableData=
"selectList"
:tableParams=
"selectTableParams"
>
</GLTable>
</GLDialog>
</div>
</div>
</template>
</template>
...
@@ -737,7 +753,7 @@ export default {
...
@@ -737,7 +753,7 @@ export default {
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
let
phoneReg
=
/^
(
13
[
0-9
]
|15
[
0-9
]
|16
[
0-9
]
|17
[
0-9
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
0-9
])[
0-9
]{8}
$/
let
phoneReg
=
/^
(
13
[
0-9
]
|15
[
0-9
]
|16
[
0-9
]
|17
[
0-9
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
0-9
])[
0-9
]{8}
$/
return
phoneReg
.
test
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的联系号码'
))
return
phoneReg
.
refundType
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的联系号码'
))
},
},
trigger
:
'blur'
trigger
:
'blur'
}
}
...
@@ -790,7 +806,7 @@ export default {
...
@@ -790,7 +806,7 @@ export default {
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
this
.
battle
Visible
=
true
this
.
refund
Visible
=
true
// this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
// this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
}
}
}
}
...
@@ -869,9 +885,8 @@ export default {
...
@@ -869,9 +885,8 @@ export default {
// 表格
// 表格
getListApi
:
this
.
$apis
.
orderManage
.
getListApi
,
getListApi
:
this
.
$apis
.
orderManage
.
getListApi
,
tableParams
:
{
tableParams
:
{
/*******改👇 */
mutiSelectName
:
'table'
,
mutiSelectName
:
'id'
,
mutiSelectUniqueKey
:
'orderCode'
,
mutiSelectUniqueKey
:
'id'
,
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
...
@@ -1093,8 +1108,47 @@ export default {
...
@@ -1093,8 +1108,47 @@ export default {
businessTypeList
:
utils
.
deepClone
(
businessType
)
businessTypeList
:
utils
.
deepClone
(
businessType
)
},
},
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
battleVisible
:
false
,
batchRefundVisible
:
false
,
test
:
'2'
refundVisible
:
false
,
refundType
:
'1'
,
selectList
:
[],
selectTableParams
:
{
tableColumns
:
[
{
label
:
'客户信息'
,
prop
:
'customerName'
,
width
:
160
,
formatter
:
cellValue
=>
{
return
cellValue
.
customerName
||
'-'
}
},
{
label
:
'推荐人'
,
prop
:
'shareStaffName'
,
width
:
210
,
addHtml
:
'shareStaffName'
},
{
label
:
'支付定金/元'
,
prop
:
'payPrice'
,
width
:
'120'
,
formatter
:
cellValue
=>
{
return
cellValue
.
payPrice
||
'0'
}
},
{
label
:
'门店'
,
prop
:
'merchantName'
,
line
:
1
,
width
:
280
},
{
label
:
'活动名称'
,
prop
:
'activityName'
,
}
]
}
}
}
},
},
...
@@ -1424,9 +1478,11 @@ export default {
...
@@ -1424,9 +1478,11 @@ export default {
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
allOrderRef
.
data
.
length
?
(
this
.
$refs
.
allOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
allOrderRef
.
setTableHeightFun
()
this
.
$refs
.
allOrderRef
.
data
.
length
?
(
this
.
$refs
.
allOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
allOrderRef
.
setTableHeightFun
()
this
.
getCount
()
this
.
getCount
()
},
},
handleSearch
()
{
handleSearch
()
{
// this.$refs.allOrderRef.refreshTable(true, false)
this
.
$refs
.
allOrderRef
.
refreshTable
()
this
.
$refs
.
allOrderRef
.
refreshTable
()
},
},
...
@@ -1444,7 +1500,12 @@ export default {
...
@@ -1444,7 +1500,12 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
handleSearch
()
this
.
handleSearch
()
}
},
selectionTable
(
selectList
)
{
this
.
selectList
=
selectList
.
filter
(
e
=>
e
.
orderCode
)
},
}
}
}
}
</
script
>
</
script
>
...
@@ -1544,7 +1605,7 @@ export default {
...
@@ -1544,7 +1605,7 @@ export default {
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.refund-dialog
{
.refund-dialog
{
.refund-item{
.refund-item
{
padding-top
:
14px
;
padding-top
:
14px
;
}
}
.refund-tips
{
.refund-tips
{
...
...
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