Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 66ceed3d
authored
Jul 05, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
退款逻辑开发
1 parent
46129eb0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
14 deletions
s
src/api/modules/order.js
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/memberCenter/order.vue
src/views/sop/editSop/baseInfo.vue
s
0 → 100644
View file @
66ceed3
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslbackend=openssl
http.sslcainfo=D:/git/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.email=1960@qq.com
user.name=wuwx
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=git@192.168.3.233:saas/scrm-micro-marketing.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.v1.2.0.remote=origin
branch.v1.2.0.merge=refs/heads/v1.2.0
branch.v2.0.0.remote=origin
branch.v2.0.0.merge=refs/heads/v2.0.0
branch.v2.1.0.remote=origin
branch.v2.1.0.merge=refs/heads/v2.1.0
gui.wmstate=normal
gui.geometry=841x483+130+130 189 218
branch.v2.5.0.remote=origin
branch.v2.5.0.merge=refs/heads/v2.5.0
branch.wuwx_dev_v2.6.0.remote=origin
branch.wuwx_dev_v2.6.0.merge=refs/heads/wuwx_dev_v2.6.0
branch.v2.6.0.remote=origin
branch.v2.6.0.merge=refs/heads/v2.6.0
src/api/modules/order.js
View file @
66ceed3
...
@@ -54,5 +54,14 @@ const getCouponList = params => {
...
@@ -54,5 +54,14 @@ const getCouponList = params => {
sign
:
true
sign
:
true
})
})
}
}
// 集团套餐订单是否允许退款
export
{
getOrderListApi
,
getOrderPageDetail
,
orderExportApi
,
orderRefund
,
getCouponList
}
const
ordeRefundApi
=
params
=>
{
params
.
method
=
'scrm.api.equity.merchant.order.refund.check'
return
http
({
url
:
'/rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
{
getOrderListApi
,
getOrderPageDetail
,
orderExportApi
,
orderRefund
,
getCouponList
,
ordeRefundApi
}
src/views/customerTransform/addCustomer.vue
View file @
66ceed3
...
@@ -462,7 +462,7 @@ export default {
...
@@ -462,7 +462,7 @@ export default {
type
:
'success'
,
type
:
'success'
,
message
:
'操作成功!'
message
:
'操作成功!'
})
})
this
.
$tracker
.
track
(
Object
.
assign
({},{
name
:
'新建客户群发'
,
params
}))
this
.
$tracker
.
track
(
Object
.
assign
({},{
pageName
:
'群发助手'
,
name
:
'新建客户群发'
,
params
}))
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
66ceed3
...
@@ -336,7 +336,7 @@ export default {
...
@@ -336,7 +336,7 @@ export default {
message
:
'操作成功!'
message
:
'操作成功!'
})
})
// this.$router.push('/customerTransform/index')
// this.$router.push('/customerTransform/index')
this
.
$tracker
.
track
(
Object
.
assign
({},{
name
:
'新建客户群群发'
,
params
}))
this
.
$tracker
.
track
(
Object
.
assign
({},{
pageName
:
'群发助手'
,
name
:
'新建客户群群发'
,
params
}))
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
...
...
src/views/memberCenter/order.vue
View file @
66ceed3
...
@@ -67,15 +67,15 @@
...
@@ -67,15 +67,15 @@
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
<glsx-dialog
class=
"refund-fill-boxss"
v-if=
"isShow"
:width=
"'576px'"
title=
"提示"
:show-close=
"true"
:isVisible=
"refundVisible"
@
confirmDialog=
"refundVisible = false"
@
closeDialog=
"refundVisible
= false"
:noCancel=
"true"
>
<glsx-dialog
class=
"refund-fill-boxss"
:width=
"'576px'"
title=
"提示"
:show-close=
"true"
:isVisible=
"isShow"
@
confirmDialog=
"isShow = false"
@
closeDialog=
"isShow
= false"
:noCancel=
"true"
>
<div
class=
"dialog-refund"
>
<div
class=
"dialog-refund"
>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div
style=
"color: #FF4D4F;padding: 6px 0;"
>
(时间:
2022-07-07 12:34:34 金额:29.3
元)
</div>
<div
style=
"color: #FF4D4F;padding: 6px 0;"
>
(时间:
{{orderDate}} 金额:{{orderPrice}}
元)
</div>
<div>
暂不支持退款
</div>
<div>
暂不支持退款
</div>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
<glsx-dialog
class=
"refund-fill-box"
v-else
:width=
"'720px'"
title=
"退款确认"
:isVisible=
"refundVisible"
@
confirmDialog=
"refundConfirmDialog"
@
closeDialog=
"refundVisible = false"
:isShowCloseBtn=
"true"
>
<glsx-dialog
class=
"refund-fill-box"
:width=
"'720px'"
title=
"退款确认"
:isVisible=
"refundVisible"
@
confirmDialog=
"refundConfirmDialog"
@
closeDialog=
"refundVisible = false"
:isShowCloseBtn=
"true"
>
<div
class=
"dialog-form"
>
<div
class=
"dialog-form"
>
<label>
说明:
</label>
<label>
说明:
</label>
<el-input
v-model
.
trim=
"refund"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入退款说明"
></el-input>
<el-input
v-model
.
trim=
"refund"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入退款说明"
></el-input>
...
@@ -87,11 +87,13 @@
...
@@ -87,11 +87,13 @@
<
script
>
<
script
>
import
{
orderTypesList
,
orderStatusList
,
exportFn
}
from
'@/common/constant'
import
{
orderTypesList
,
orderStatusList
,
exportFn
}
from
'@/common/constant'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
getOrderListApi
,
orderExportApi
,
orderRefund
}
from
'@/api/modules/order'
import
{
getOrderListApi
,
orderExportApi
,
orderRefund
,
ordeRefundApi
}
from
'@/api/modules/order'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isShow
:
false
,
isShow
:
false
,
orderPrice
:
''
,
orderDate
:
''
,
orderCode
:
''
,
orderCode
:
''
,
refund
:
''
,
refund
:
''
,
refundVisible
:
false
,
refundVisible
:
false
,
...
@@ -177,7 +179,11 @@ export default {
...
@@ -177,7 +179,11 @@ export default {
fn
:
'退款'
fn
:
'退款'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
refundFlag
==
1
if
(
row
.
packageType
==
2
)
{
return
row
.
refundFlag
==
1
&&
row
.
show
}
else
{
return
row
.
refundFlag
==
1
}
},
},
listeners
:
{
listeners
:
{
click
:
this
.
handleRefund
click
:
this
.
handleRefund
...
@@ -358,12 +364,22 @@ export default {
...
@@ -358,12 +364,22 @@ export default {
resolve
()
resolve
()
})
})
},
},
ordeRefund
(
orderCode
)
{
ordeRefundApi
({
orderCode
}).
then
(
res
=>
{
if
(
res
!=
null
)
{
this
.
orderDate
=
res
.
orderDate
this
.
orderPrice
=
res
.
orderPrice
this
.
isShow
=
true
}
else
{
this
.
refundVisible
=
true
}
})
},
handleRefund
(
data
)
{
handleRefund
(
data
)
{
this
.
orderCode
=
data
.
orderCode
this
.
orderCode
=
data
.
orderCode
this
.
refund
=
''
this
.
refund
=
''
this
.
refundVisible
=
!
this
.
refundVisible
// this.refundVisible = !this.refundVisible
console
.
log
(
'123'
,
data
);
this
.
ordeRefund
(
data
.
orderCode
)
this
.
isShow
=
data
.
packageType
!=
1
},
},
refundConfirmDialog
()
{
refundConfirmDialog
()
{
if
(
this
.
refund
==
''
)
{
if
(
this
.
refund
==
''
)
{
...
@@ -411,6 +427,19 @@ export default {
...
@@ -411,6 +427,19 @@ export default {
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
memberOrderRef
.
data
.
length
?
(
this
.
$refs
.
memberOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
memberOrderRef
.
setTableHeightFun
()
this
.
$refs
.
memberOrderRef
.
data
.
length
?
(
this
.
$refs
.
memberOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
memberOrderRef
.
setTableHeightFun
()
let
arr
=
this
.
$refs
.
memberOrderRef
.
data
if
(
arr
.
length
>
0
)
{
arr
.
map
(
e
=>
{
if
(
e
.
refundFlag
==
1
&&
e
.
packageType
==
2
)
{
let
time
=
new
Date
(
`
${
e
.
createDate
}
`
)
let
timer
=
new
Date
()
if
(
timer
.
getTime
()
<
time
.
getTime
()
+
604800000
)
{
e
.
show
=
true
}
}
return
e
})
}
},
},
handleReset
()
{
handleReset
()
{
this
.
isReload
=
false
this
.
isReload
=
false
...
...
src/views/sop/editSop/baseInfo.vue
View file @
66ceed3
...
@@ -785,7 +785,7 @@ export default {
...
@@ -785,7 +785,7 @@ export default {
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
this
.
$tracker
.
track
(
Object
.
assign
({},{
name
:
'编辑sop事件'
,
params
}))
this
.
$tracker
.
track
(
Object
.
assign
({},{
pageName
:
'营销SOP'
,
name
:
'编辑sop事件'
,
params
}))
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
...
@@ -798,7 +798,7 @@ export default {
...
@@ -798,7 +798,7 @@ export default {
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
this
.
$tracker
.
track
(
Object
.
assign
({},{
name
:
'创建sop事件'
,
params
}))
this
.
$tracker
.
track
(
Object
.
assign
({},{
pageName
:
'营销SOP'
,
name
:
'创建sop事件'
,
params
}))
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
...
...
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