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 e0effb58
authored
Jul 15, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
e616839d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
30 deletions
src/views/memberCenter/order.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/memberCenter/order.vue
View file @
e0effb5
...
...
@@ -70,10 +70,10 @@
</div>
<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"
>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div
style=
"color: #FF4D4F;padding: 6px 0;"
>
(时间:{{orderDate}} 金额:{{orderPrice}}元)
</div>
<div>
暂不支持退款
</div>
<img
class=
"img"
src=
"../../images/warn.png"
/>
<div>
该会员在升级黑卡会员期间,已购买过生活权益
</div>
<div
style=
"color: #FF4D4F;padding: 6px 0;"
>
(时间:{{orderDate}} 金额:{{orderPrice}}元)
</div>
<div>
暂不支持退款
</div>
</div>
</glsx-dialog>
<glsx-dialog
class=
"refund-fill-box"
:width=
"'720px'"
title=
"退款确认"
:isVisible=
"refundVisible"
@
confirmDialog=
"refundConfirmDialog"
@
closeDialog=
"refundVisible = false"
:isShowCloseBtn=
"true"
>
...
...
@@ -88,13 +88,13 @@
<
script
>
import
{
orderTypesList
,
orderStatusList
,
exportFn
}
from
'@/common/constant'
import
url
from
'@/assets/empty.png'
import
{
getOrderListApi
,
orderExportApi
,
orderRefund
,
ordeRefundApi
}
from
'@/api/modules/order'
import
{
getOrderListApi
,
orderExportApi
,
orderRefund
,
ordeRefundApi
}
from
'@/api/modules/order'
export
default
{
data
()
{
return
{
isShow
:
false
,
orderPrice
:
''
,
orderDate
:
''
,
isShow
:
false
,
orderPrice
:
''
,
orderDate
:
''
,
orderCode
:
''
,
refund
:
''
,
refundVisible
:
false
,
...
...
@@ -151,7 +151,13 @@ export default {
name
:
'merchantName'
,
type
:
'input'
,
maxlength
:
100
}
},
{
label
:
'推荐人'
,
name
:
'shareStaffName'
,
type
:
'input'
,
maxlength
:
100
},
],
choseList
:
[
'全部'
,
'待收货'
,
'已完成'
,
'退款|售后'
],
currentIndex
:
1
,
...
...
@@ -180,7 +186,7 @@ export default {
fn
:
'退款'
},
condition
:
row
=>
{
if
(
row
.
packageType
==
2
)
{
if
(
row
.
packageType
==
2
)
{
return
row
.
refundFlag
==
1
&&
row
.
show
}
else
{
return
row
.
refundFlag
==
1
...
...
@@ -214,7 +220,8 @@ export default {
},
{
label
:
'价格/元'
,
prop
:
'originalPrice'
prop
:
'originalPrice'
,
width
:
'100'
},
{
label
:
'实收金额/元'
,
...
...
@@ -224,7 +231,7 @@ export default {
{
label
:
'订单状态'
,
prop
:
'orderStatus'
,
width
:
'
8
0'
,
width
:
'
10
0'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
orderStatus
).
confName
}
...
...
@@ -283,10 +290,10 @@ export default {
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
if
(
this
.
$isGroupUp
)
{
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
'推荐人'
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
}
//
if (this.$isGroupUp) {
//
let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
//
this.tableParams.tableColumns.splice(idx, 1)
//
}
},
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
...
...
@@ -366,21 +373,21 @@ export default {
})
},
ordeRefund
(
orderCode
)
{
ordeRefundApi
({
orderCode
}).
then
(
res
=>
{
if
(
res
!=
null
)
{
this
.
orderDate
=
res
.
orderDate
this
.
orderPrice
=
res
.
orderPrice
this
.
isShow
=
true
}
else
{
this
.
refundVisible
=
true
}
})
ordeRefundApi
({
orderCode
}).
then
(
res
=>
{
if
(
res
!=
null
)
{
this
.
orderDate
=
res
.
orderDate
this
.
orderPrice
=
res
.
orderPrice
this
.
isShow
=
true
}
else
{
this
.
refundVisible
=
true
}
})
},
handleRefund
(
data
)
{
this
.
orderCode
=
data
.
orderCode
this
.
refund
=
''
// this.refundVisible = !this.refundVisible
if
(
data
.
packageType
==
2
)
{
if
(
data
.
packageType
==
2
)
{
this
.
ordeRefund
(
data
.
orderCode
)
}
else
{
this
.
refundVisible
=
true
...
...
@@ -433,12 +440,12 @@ export default {
//接收到的数据为空
this
.
$refs
.
memberOrderRef
.
data
.
length
?
(
this
.
$refs
.
memberOrderRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
memberOrderRef
.
setTableHeightFun
()
let
arr
=
this
.
$refs
.
memberOrderRef
.
data
if
(
arr
.
length
>
0
)
{
if
(
arr
.
length
>
0
)
{
arr
.
map
(
e
=>
{
if
(
e
.
refundFlag
==
1
&&
e
.
packageType
==
2
)
{
if
(
e
.
refundFlag
==
1
&&
e
.
packageType
==
2
)
{
let
time
=
new
Date
(
`
${
e
.
createDate
}
`
)
let
timer
=
new
Date
()
if
(
timer
.
getTime
()
<
time
.
getTime
()
+
604800000
)
{
if
(
timer
.
getTime
()
<
time
.
getTime
()
+
604800000
)
{
e
.
show
=
true
}
}
...
...
@@ -532,7 +539,7 @@ export default {
padding-bottom
:
12px
;
}
}
::v-deep
.el-dialog__footer
{
::v-deep
.el-dialog__footer
{
text-align
:
center
;
}
}
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
e0effb5
...
...
@@ -179,6 +179,13 @@ import { limitPrice } from '@/common/constant'
export
default
{
name
:
'editActivity'
,
data
()
{
var
validatorPhone
=
function
(
rule
,
value
,
callback
)
{
if
(
!
/^
(
0|86|17951
)?(
13
[
0-9
]
|15
[
0123456789
]
|17
[
678
]
|18
[
0-9
]
|14
[
57
])[
0-9
]{8}
$/
.
test
(
value
))
{
callback
(
new
Error
(
'手机号格式错误'
))
}
else
{
callback
()
}
}
return
{
size
:
'small'
,
footerLeft
:
'0'
,
...
...
@@ -269,6 +276,7 @@ export default {
// selectedAllProList: [],
// selectedProList: [],
editRule
:
{
customerServicePhone
:
{
required
:
false
,
validator
:
validatorPhone
,
trigger
:
'blur'
},
activityName
:
[{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'change'
}],
activityImg
:
[{
required
:
true
,
message
:
'请选择活动宣传图'
,
trigger
:
'change'
}],
promotion
:
[{
required
:
true
,
message
:
'请输入活动宣传语'
,
trigger
:
'change'
}],
...
...
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