Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_web
Commits
d13e7620
Commit
d13e7620
authored
Jan 08, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠卷管理更改显示
parent
1d4d2ed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
58 deletions
+12
-58
index.vue
src/views/system/coupon/index.vue
+12
-58
No files found.
src/views/system/coupon/index.vue
View file @
d13e7620
...
...
@@ -116,28 +116,8 @@
<dict-tag
:options=
"dict.type.store_coupon_type"
:value=
"scope.row.couponType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"门店类型"
align=
"center"
prop=
"storeType"
width=
"240px"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.storeType.length"
style=
"display: flex;flex-wrap: wrap;width: 100%;"
>
<dict-tag
style=
"margin: 0 3px;"
v-for=
"(item ,k) in scope.row.storeType"
:key=
"k"
:options=
"dict.type.store_type"
:value=
"item"
/>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"房间类型"
align=
"center"
prop=
"roomType"
width=
"240px"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.roomType.length"
style=
"display: flex;flex-wrap: wrap;width: 100%;"
>
<dict-tag
style=
"margin: 0 3px;"
v-for=
"(item ,k) in scope.row.roomType"
:key=
"k"
:options=
"dict.type.store_room_type"
:value=
"item"
/>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"门槛时长"
align=
"center"
prop=
"minDuration"
/>
<el-table-column
label=
"折扣最大时长"
align=
"center"
prop=
"maxDuration"
/>
<el-table-column
label=
"时长"
align=
"center"
prop=
"duration"
/>
<el-table-column
label=
"门槛金额"
align=
"center"
prop=
"minPrice"
/>
<el-table-column
label=
"减去金额"
align=
"center"
prop=
"subPrice"
/>
<!-- <el-table-column label="第三方平台名称" align="center" prop="platform" />-->
<el-table-column
label=
"第三方平台类型"
align=
"center"
prop=
"platformType"
>
<el-table-column
label=
"平台类型"
align=
"center"
prop=
"platformType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_platform_type"
:value=
"scope.row.platformType"
/>
</
template
>
...
...
@@ -152,7 +132,9 @@
<
span
>
{{
parseTime
(
scope
.
row
.
endDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"数量"
align
=
"center"
prop
=
"number"
/>
<
el
-
table
-
column
label
=
"备注"
align
=
"center"
prop
=
"remark"
/>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
...
...
@@ -190,50 +172,17 @@
<
el
-
form
-
item
label
=
"优惠券类型"
prop
=
"couponType"
>
<
el
-
select
v
-
model
=
"form.couponType"
placeholder
=
"请选择优惠券类型"
>
<
el
-
option
v
-
for
=
"dict in dict.type.
store_
coupon_type"
v
-
for
=
"dict in dict.type.coupon_type"
:
key
=
"dict.value"
:
label
=
"dict.label"
:
value
=
"parseInt(dict.value)"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"门店类型"
prop
=
"storeType"
>
<
el
-
select
style
=
"width: 100%;"
v
-
model
=
"storeType"
multiple
placeholder
=
"请选择门店类型"
@
change
=
"onChangeStoreType"
>
<
el
-
option
v
-
for
=
"dict in dict.type.store_type"
:
key
=
"dict.value"
:
label
=
"dict.label"
:
value
=
"dict.value"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"房间类型"
prop
=
"roomType"
>
<
el
-
select
style
=
"width: 100%;"
v
-
model
=
"roomType"
multiple
placeholder
=
"请选择门店类型"
@
change
=
"onChangeRoomType"
>
<
el
-
option
v
-
for
=
"dict in dict.type.store_room_type"
:
key
=
"dict.value"
:
label
=
"dict.label"
:
value
=
"dict.value"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"时长"
prop
=
"duration"
>
<
el
-
input
-
number
v
-
model
=
"form.duration"
placeholder
=
"请输入时长"
/>
<
el
-
input
-
number
v
-
model
=
"form.duration"
:
min
=
"0"
:
max
=
"24"
placeholder
=
"请输入时长"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"门槛时长"
prop
=
"minDuration"
>
<
el
-
input
-
number
v
-
model
=
"form.minDuration"
placeholder
=
"请输入门槛时长"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"折扣最大时长"
prop
=
"maxDuration"
>
<
el
-
input
-
number
v
-
model
=
"form.maxDuration"
placeholder
=
"请输入时长"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"满金额"
prop
=
"minPrice"
>
<
el
-
input
v
-
model
=
"form.minPrice"
placeholder
=
"请输入满减最小可使用金额"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"金额"
prop
=
"subPrice"
>
<
el
-
input
v
-
model
=
"form.subPrice"
placeholder
=
"请输入减去金额"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"第三方平台类型"
prop
=
"platformType"
>
<
el
-
form
-
item
label
=
"平台类型"
prop
=
"platformType"
>
<
el
-
select
v
-
model
=
"form.platformType"
placeholder
=
"请选择第三方平台类型"
>
<
el
-
option
v
-
for
=
"dict in dict.type.store_platform_type"
...
...
@@ -259,9 +208,14 @@
placeholder
=
"请选择有效期结束"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"数量"
prop
=
"number"
>
<
el
-
input
-
number
v
-
model
=
"form.number"
:
min
=
"0"
:
max
=
"9999"
label
=
"优惠卷数量"
/>
<!--
<
el
-
input
v
-
model
=
"form.number"
type
=
"textarea"
placeholder
=
"请输入数量"
/>-->
<
/el-form-item
>
<
el
-
form
-
item
label
=
"备注"
prop
=
"remark"
>
<
el
-
input
v
-
model
=
"form.remark"
type
=
"textarea"
placeholder
=
"请输入内容"
/>
<
/el-form-item
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
type
=
"primary"
@
click
=
"submitForm"
>
确
定
<
/el-button
>
...
...
@@ -276,7 +230,7 @@ import { listCoupon, getCoupon, delCoupon, addCoupon, updateCoupon } from "@/api
export
default
{
name
:
"Coupon"
,
dicts
:
[
'store_coupon_type'
,
'store_type'
,
'store_room_type'
,
'store_platform
_type'
],
dicts
:
[
'store_coupon_type'
,
'store_type'
,
'store_room_type'
,
'store_platform_type'
,
'coupon
_type'
],
data
()
{
return
{
// 遮罩层
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment