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 053a4d50
authored
May 19, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_v2.3.0' into 'v2.3.0'
Chenwq dev v2.3.0 See merge request
!138
2 parents
48003a23
695a26b4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
11 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/couponManage/index.vue
src/views/couponManage/receiveDetail.vue
src/views/couponManage/recordList.vue
src/views/couponManage/editCashCoupon.vue
View file @
053a4d5
...
...
@@ -109,7 +109,7 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<
template
slot=
"stock"
slot-scope=
"scope"
>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<el-input
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<el-input
:disabled=
"apear != 'couponAdd'"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<span
slot=
"suffix"
>
张
</span>
</el-input>
</
template
>
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
053a4d5
...
...
@@ -122,7 +122,7 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<
template
slot=
"stock"
slot-scope=
"scope"
>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<el-input
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<el-input
:disabled=
"apear != 'couponAdd'"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<span
slot=
"suffix"
>
张
</span>
</el-input>
</
template
>
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
053a4d5
...
...
@@ -57,7 +57,7 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<template
slot=
"stock"
slot-scope=
"scope"
>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<el-input
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<el-input
:disabled=
"apear != 'couponAdd'"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<span
slot=
"suffix"
>
张
</span>
</el-input>
</
template
>
...
...
src/views/couponManage/editMemberService.vue
View file @
053a4d5
...
...
@@ -45,7 +45,7 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<
template
slot=
"stock"
slot-scope=
"scope"
>
<span
v-if=
"$isGroupUp"
>
无库存限制
</span>
<el-input
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<el-input
:disabled=
"apear != 'couponAdd'"
v-else
class=
"w-150"
v-model=
"editForm[scope.scope.name]"
placeholder=
"请输入库存"
>
<span
slot=
"suffix"
>
张
</span>
</el-input>
</
template
>
...
...
@@ -158,13 +158,15 @@ export default {
label
:
'会员价'
,
name
:
'vipPrice'
,
width
:
'150px'
,
type
:
'input'
type
:
'input'
,
isHide
:
false
},
{
label
:
'门店价'
,
name
:
'shopPrice'
,
width
:
'150px'
,
type
:
'input'
type
:
'input'
,
isHide
:
false
},
{
label
:
'库存'
,
...
...
@@ -208,6 +210,13 @@ export default {
created
()
{
this
.
editRule
.
stock
[
0
].
required
=
!
this
.
$isGroupUp
let
hideAttrList
=
[
'vipPrice'
,
'shopPrice'
]
if
(
this
.
$isGroupUp
)
{
hideAttrList
.
forEach
(
item
=>
{
let
idx
=
this
.
editFormData
.
findIndex
(
k
=>
k
.
name
==
item
)
this
.
editFormData
[
idx
].
isHide
=
true
})
}
},
mounted
()
{
...
...
src/views/couponManage/index.vue
View file @
053a4d5
...
...
@@ -34,7 +34,7 @@
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLButton
v-if=
"scope.scope.status == '1'"
type=
"text"
@
click=
"start(scope.scope)"
fn=
"生效"
display=
"disabled"
mode=
"el-button"
>
生效
</GLButton>
<el-button
v-if=
"scope.scope.status == '2'"
type=
"text"
@
click=
"end(scope.scope)"
>
失效
</el-button>
<GLButton
v-if=
"scope.scope.status == '2' || scope.scope.status == '3'"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
:fn=
"scope.scope.discountType == 3 ? '查看代金券' : scope.scope.discountType == 7 ? '查看
服务券
' : scope.scope.discountType == 2 ? '查看折扣券' : '查看兑换券'"
mode=
"el-button"
>
查看
</GLButton>
<GLButton
v-if=
"scope.scope.status == '2' || scope.scope.status == '3'"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
:fn=
"scope.scope.discountType == 3 ? '查看代金券' : scope.scope.discountType == 7 ? '查看
会员服务
' : scope.scope.discountType == 2 ? '查看折扣券' : '查看兑换券'"
mode=
"el-button"
>
查看
</GLButton>
<GLButton
v-if=
"scope.scope.status == '1' || scope.scope.status == '3'"
type=
"text"
@
click=
"del(scope.scope)"
fn=
"删除"
mode=
"el-button"
display=
"disabled"
>
删除
</GLButton>
<GLButton
type=
"text"
@
click=
"receiveDetail(scope.scope)"
fn=
"领取详情"
mode=
"el-button"
>
领取详情
</GLButton>
</div>
...
...
src/views/couponManage/receiveDetail.vue
View file @
053a4d5
...
...
@@ -250,8 +250,8 @@ export default {
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
params
.
couponId
=
this
.
$route
.
params
.
id
if
(
params
.
daterange
)
{
params
.
receiveTimeBegin
=
this
.
searchForm
.
daterange
[
0
]
params
.
receiveTimeEnd
=
this
.
searchForm
.
daterange
[
1
]
params
.
receiveTimeBegin
=
new
Date
(
this
.
searchForm
.
daterange
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
receiveTimeEnd
=
new
Date
(
this
.
searchForm
.
daterange
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
...
...
src/views/couponManage/recordList.vue
View file @
053a4d5
...
...
@@ -327,8 +327,8 @@ export default {
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
verificationTimeStart
=
this
.
searchForm
.
daterange
[
0
]
params
.
verificationTimeEnd
=
this
.
searchForm
.
daterange
[
1
]
params
.
verificationTimeStart
=
new
Date
(
this
.
searchForm
.
daterange
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
verificationTimeEnd
=
new
Date
(
this
.
searchForm
.
daterange
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
else
{
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
...
...
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