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
59f4538e
Commit
59f4538e
authored
Jan 13, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加是否可用字段
parent
b7832257
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
4 deletions
+45
-4
index.vue
src/views/system/consumerCoupon/index.vue
+7
-1
durationIndex.vue
src/views/system/coupon/durationIndex.vue
+22
-2
index.vue
src/views/system/coupon/index.vue
+16
-1
No files found.
src/views/system/consumerCoupon/index.vue
View file @
59f4538e
...
@@ -205,6 +205,11 @@
...
@@ -205,6 +205,11 @@
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"是否周末可用"
align=
"center"
prop=
"isSunday"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_is_use_coupon"
:value=
"scope.row.isSunday"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"有效开始时段"
align=
"center"
prop=
"couponTimeStart"
/>
<el-table-column
label=
"有效开始时段"
align=
"center"
prop=
"couponTimeStart"
/>
<el-table-column
label=
"有效结束时段"
align=
"center"
prop=
"couponTimeEnd"
/>
<el-table-column
label=
"有效结束时段"
align=
"center"
prop=
"couponTimeEnd"
/>
<el-table-column
label=
"有效期开始"
align=
"center"
prop=
"startDate"
width=
"180"
>
<el-table-column
label=
"有效期开始"
align=
"center"
prop=
"startDate"
width=
"180"
>
...
@@ -371,7 +376,8 @@ import {query} from '@/api/system/pack'
...
@@ -371,7 +376,8 @@ import {query} from '@/api/system/pack'
export
default
{
export
default
{
name
:
'ConsumerCoupon'
,
name
:
'ConsumerCoupon'
,
dicts
:
[
'consumer_coupon_platform_type'
,
'store_coupon_type'
,
'consumer_coupon_source_type'
,
'store_room_type'
,
'coupon_use_status'
,
'store_order_type'
],
dicts
:
[
'consumer_coupon_platform_type'
,
'store_coupon_type'
,
'consumer_coupon_source_type'
,
'store_room_type'
,
'coupon_use_status'
,
'store_order_type'
,
'store_is_use_coupon'
],
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
...
src/views/system/coupon/durationIndex.vue
View file @
59f4538e
...
@@ -117,6 +117,7 @@
...
@@ -117,6 +117,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"时长"
align=
"center"
prop=
"duration"
/>
<el-table-column
label=
"时长"
align=
"center"
prop=
"duration"
/>
<el-table-column
label=
"门槛时长"
align=
"center"
prop=
"minDuration"
/>
<el-table-column
label=
"平台类型"
align=
"center"
prop=
"platformType"
>
<el-table-column
label=
"平台类型"
align=
"center"
prop=
"platformType"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_platform_type"
:value=
"scope.row.platformType"
/>
<dict-tag
:options=
"dict.type.store_platform_type"
:value=
"scope.row.platformType"
/>
...
@@ -127,6 +128,11 @@
...
@@ -127,6 +128,11 @@
<dict-tag
:options=
"dict.type.store_order_type"
:value=
"scope.row.orderType"
/>
<dict-tag
:options=
"dict.type.store_order_type"
:value=
"scope.row.orderType"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"是否周末可用"
align=
"center"
prop=
"isSunday"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_is_use_coupon"
:value=
"scope.row.isSunday"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"套餐"
align=
"center"
prop=
"packageId"
>
<el-table-column
label=
"套餐"
align=
"center"
prop=
"packageId"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.packageId"
>
<div
v-if=
"scope.row.packageId"
>
...
@@ -194,8 +200,12 @@
...
@@ -194,8 +200,12 @@
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"时长"
prop
=
"duration"
>
<
el
-
form
-
item
label
=
"时长"
prop
=
"duration"
>
<
el
-
input
-
number
v
-
model
=
"form.duration"
:
min
=
"0"
:
max
=
"24"
placeholder
=
"请输入时长"
/>
<
el
-
input
-
number
v
-
model
=
"form.duration"
:
min
=
"1"
:
max
=
"24"
placeholder
=
"请输入时长"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"门槛时长"
prop
=
"minDuration"
>
<
el
-
input
-
number
v
-
model
=
"form.minDuration"
:
min
=
"1"
:
max
=
"24"
placeholder
=
"请输入门槛时长"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"平台类型"
prop
=
"platformType"
>
<
el
-
form
-
item
label
=
"平台类型"
prop
=
"platformType"
>
<
el
-
select
v
-
model
=
"form.platformType"
placeholder
=
"请选择平台类型"
clearable
disabled
>
<
el
-
select
v
-
model
=
"form.platformType"
placeholder
=
"请选择平台类型"
clearable
disabled
>
<
el
-
option
<
el
-
option
...
@@ -219,6 +229,16 @@
...
@@ -219,6 +229,16 @@
/>
/>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"是否首次下单可用"
prop
=
"isSunday"
>
<
el
-
radio
-
group
v
-
model
=
"form.isSunday"
>
<
el
-
radio
v
-
for
=
"dict in dict.type.store_is_use_coupon"
:
key
=
"dict.value"
:
label
=
"parseInt(dict.value)"
>
{{
dict
.
label
}}
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"套餐"
prop
=
"packageId"
>
<
el
-
form
-
item
label
=
"套餐"
prop
=
"packageId"
>
<
el
-
select
v
-
model
=
"form.packageId"
placeholder
=
"请选择套餐"
clearable
>
<
el
-
select
v
-
model
=
"form.packageId"
placeholder
=
"请选择套餐"
clearable
>
<
el
-
option
<
el
-
option
...
@@ -268,7 +288,7 @@ import {query} from '@/api/system/pack'
...
@@ -268,7 +288,7 @@ import {query} from '@/api/system/pack'
export
default
{
export
default
{
name
:
"Coupon"
,
name
:
"Coupon"
,
dicts
:
[
'store_coupon_type'
,
'store_type'
,
'store_room_type'
,
'store_platform_type'
,
'duration_coupon_type'
,
'store_order_type'
,
'coupon_use_status'
],
dicts
:
[
'store_coupon_type'
,
'store_type'
,
'store_room_type'
,
'store_platform_type'
,
'duration_coupon_type'
,
'store_order_type'
,
'coupon_use_status'
,
'store_is_use_coupon'
],
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
...
src/views/system/coupon/index.vue
View file @
59f4538e
...
@@ -134,6 +134,11 @@
...
@@ -134,6 +134,11 @@
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"是否周末可用"
align=
"center"
prop=
"isSunday"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.store_is_use_coupon"
:value=
"scope.row.isSunday"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"适用门店"
align=
"center"
prop=
"storeIds"
width=
"350"
>
<el-table-column
label=
"适用门店"
align=
"center"
prop=
"storeIds"
width=
"350"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.storeIds"
style=
"display: flex;flex-wrap: wrap;width: 100%;"
>
<div
v-if=
"scope.row.storeIds"
style=
"display: flex;flex-wrap: wrap;width: 100%;"
>
...
@@ -233,6 +238,16 @@
...
@@ -233,6 +238,16 @@
/>
/>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"是否首次下单可用"
prop
=
"isSunday"
>
<
el
-
radio
-
group
v
-
model
=
"form.isSunday"
>
<
el
-
radio
v
-
for
=
"dict in dict.type.store_is_use_coupon"
:
key
=
"dict.value"
:
label
=
"parseInt(dict.value)"
>
{{
dict
.
label
}}
<
/el-radio
>
<
/el-radio-group
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"套餐"
prop
=
"packageId"
>
<
el
-
form
-
item
label
=
"套餐"
prop
=
"packageId"
>
<
el
-
select
v
-
model
=
"form.packageId"
placeholder
=
"请选择套餐"
clearable
>
<
el
-
select
v
-
model
=
"form.packageId"
placeholder
=
"请选择套餐"
clearable
>
<
el
-
option
<
el
-
option
...
@@ -308,7 +323,7 @@ import queryShopDeal from "./queryShopDeal";
...
@@ -308,7 +323,7 @@ import queryShopDeal from "./queryShopDeal";
export
default
{
export
default
{
name
:
"Coupon"
,
name
:
"Coupon"
,
components
:
{
queryShopDeal
}
,
components
:
{
queryShopDeal
}
,
dicts
:
[
'store_coupon_type'
,
'store_type'
,
'store_room_type'
,
'store_platform_type'
,
'cash_coupon_type'
,
'store_order_type'
,
'coupon_use_status'
],
dicts
:
[
'store_coupon_type'
,
'store_type'
,
'store_room_type'
,
'store_platform_type'
,
'cash_coupon_type'
,
'store_order_type'
,
'coupon_use_status'
,
'store_is_use_coupon'
],
data
()
{
data
()
{
return
{
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