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
cd41bbd5
Commit
cd41bbd5
authored
Apr 29, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券字段
parent
c5d5f8c8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
55 deletions
+55
-55
index.vue
src/views/system/consumerCoupon/index.vue
+6
-6
durationIndex.vue
src/views/system/coupon/durationIndex.vue
+13
-13
index.vue
src/views/system/coupon/index.vue
+10
-10
queryShopDeal.vue
src/views/system/coupon/queryShopDeal.vue
+2
-2
querySkuId.vue
src/views/system/coupon/querySkuId.vue
+2
-2
tiktokindex.vue
src/views/system/coupon/tiktokindex.vue
+10
-10
index.vue
src/views/system/roomLabel/index.vue
+12
-12
No files found.
src/views/system/consumerCoupon/index.vue
View file @
cd41bbd5
...
...
@@ -198,9 +198,9 @@
</
template
>
</el-table-column>
<el-table-column
label=
"时长"
align=
"center"
prop=
"duration"
/>
<el-table-column
label=
"优惠金额"
align=
"center"
prop=
"sub
Price"
/>
<el-table-column
align=
"center"
label=
"优惠金额"
prop=
"original
Price"
/>
<el-table-column
align=
"center"
label=
"优惠售卖金额"
prop=
"couponPayPrice"
width=
"130px"
/>
<el-table-column
align=
"center"
label=
"优惠促销金额"
prop=
"
promotion
Price"
width=
"130px"
/>
<el-table-column
align=
"center"
label=
"优惠促销金额"
prop=
"
sale
Price"
width=
"130px"
/>
<el-table-column
align=
"center"
label=
"优惠券来源"
prop=
"sourceType"
width=
"120px"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.consumer_coupon_source_type"
:value=
"scope.row.sourceType"
/>
...
...
@@ -347,8 +347,8 @@
<
el
-
form
-
item
label
=
"门槛金额"
prop
=
"minPrice"
>
<
el
-
input
v
-
model
=
"form.minPrice"
placeholder
=
"请输入门槛金额"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"减去金额(满减券单位:元,折扣为系数)"
prop
=
"
sub
Price"
>
<
el
-
input
v
-
model
=
"form.
sub
Price"
placeholder
=
"请输入减去金额(满减券单位:元,折扣为系数)"
/>
<
el
-
form
-
item
label
=
"减去金额(满减券单位:元,折扣为系数)"
prop
=
"
original
Price"
>
<
el
-
input
v
-
model
=
"form.
original
Price"
placeholder
=
"请输入减去金额(满减券单位:元,折扣为系数)"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"有效期开始"
prop
=
"startDate"
>
<
el
-
date
-
picker
clearable
...
...
@@ -466,7 +466,7 @@ export default {
maxDuration
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
sourceType
:
null
,
platformType
:
null
,
startDate
:
null
,
...
...
@@ -545,7 +545,7 @@ export default {
maxDuration
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
sourceType
:
null
,
platformType
:
null
,
startDate
:
null
,
...
...
src/views/system/coupon/durationIndex.vue
View file @
cd41bbd5
...
...
@@ -116,9 +116,9 @@
<dict-tag
:options=
"dict.type.store_coupon_type"
:value=
"scope.row.couponType"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"优惠券原始金额"
prop=
"
sub
Price"
width=
"120px"
/>
<
el-table-column
align=
"center"
label=
"优惠券售卖金额"
prop=
"couponPayPrice"
width=
"120px"
/
>
<el-table-column
align=
"center"
label=
"优惠券促销金额"
prop=
"
promotion
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券原始金额"
prop=
"
original
Price"
width=
"120px"
/>
<
!-- <el-table-column align="center" label="优惠券售卖金额" prop="couponPayPrice" width="120px"/>--
>
<el-table-column
align=
"center"
label=
"优惠券促销金额"
prop=
"
sale
Price"
width=
"120px"
/>
<el-table-column
label=
"时长"
align=
"center"
prop=
"duration"
/>
<el-table-column
label=
"门槛时长"
align=
"center"
prop=
"minDuration"
/>
<el-table-column
label=
"平台类型"
align=
"center"
prop=
"platformType"
>
...
...
@@ -219,14 +219,14 @@
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"优惠券原始金额"
prop
=
"
sub
Price"
>
<
el
-
input
v
-
model
=
"form.
sub
Price"
placeholder
=
"请输入优惠券原始金额"
/>
<
el
-
form
-
item
label
=
"优惠券原始金额"
prop
=
"
original
Price"
>
<
el
-
input
v
-
model
=
"form.
original
Price"
placeholder
=
"请输入优惠券原始金额"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"优惠券售卖金额"
prop
=
"couponPayPrice"
>
<
el
-
input
v
-
model
=
"form.couponPayPrice"
placeholder
=
"请输入优惠券售卖金额"
/
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"优惠券促销金额"
prop
=
"
promotion
Price"
>
<
el
-
input
v
-
model
=
"form.
promotion
Price"
placeholder
=
"请输入优惠券促销金额"
/>
<
!--
<
el
-
form
-
item
label
=
"优惠券售卖金额"
prop
=
"couponPayPrice"
>--
>
<!--
<
el
-
input
v
-
model
=
"form.couponPayPrice"
placeholder
=
"请输入优惠券售卖金额"
/>--
>
<
!--
<
/el-form-item>--
>
<
el
-
form
-
item
label
=
"优惠券促销金额"
prop
=
"
sale
Price"
>
<
el
-
input
v
-
model
=
"form.
sale
Price"
placeholder
=
"请输入优惠券促销金额"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"时长"
prop
=
"duration"
>
<
el
-
input
-
number
v
-
model
=
"form.duration"
:
max
=
"24"
:
min
=
"0.5"
:
step
=
"0.5"
placeholder
=
"请输入时长"
/>
...
...
@@ -388,7 +388,7 @@ export default {
couponType
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
useStatus
:
null
,
platformType
:
null
,
startDate
:
null
,
...
...
@@ -416,7 +416,7 @@ export default {
endDate
:
[
{
required
:
true
,
message
:
"有效期结束不能为空"
,
trigger
:
"change"
}
],
promotion
Price
:
[
sale
Price
:
[
//限制为数字
{
pattern
:
/^
[
0-9
]
+
(
.
[
0-9
]
{1,2
}
)?
$/
,
message
:
'请输入正确的金额格式'
,
trigger
:
'blur'
}
,
{
required
:
true
,
message
:
"促销金额不能为空"
,
trigger
:
"change"
}
...
...
@@ -519,7 +519,7 @@ export default {
couponType
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
platform
:
null
,
platformType
:
null
,
startDate
:
null
,
...
...
src/views/system/coupon/index.vue
View file @
cd41bbd5
...
...
@@ -116,9 +116,9 @@
<dict-tag
:options=
"dict.type.store_coupon_type"
:value=
"scope.row.couponType"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"优惠券原始金额"
prop=
"
sub
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券原始金额"
prop=
"
original
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券售卖金额"
prop=
"couponPayPrice"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券促销金额"
prop=
"
promotion
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券促销金额"
prop=
"
sale
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"时长"
prop=
"duration"
/>
<el-table-column
label=
"平台类型"
align=
"center"
prop=
"platformType"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -214,8 +214,8 @@
<
el
-
form
-
item
label
=
"时长"
prop
=
"duration"
>
<
el
-
input
-
number
v
-
model
=
"form.duration"
:
max
=
"24"
:
min
=
"0"
placeholder
=
"请输入时长"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"优惠券促销金额"
prop
=
"
promotion
Price"
>
<
el
-
input
-
number
v
-
model
=
"form.
promotion
Price"
:
max
=
"500"
:
min
=
"0"
placeholder
=
"请输入优惠券促销金额"
/>
<
el
-
form
-
item
label
=
"优惠券促销金额"
prop
=
"
sale
Price"
>
<
el
-
input
-
number
v
-
model
=
"form.
sale
Price"
:
max
=
"500"
:
min
=
"0"
placeholder
=
"请输入优惠券促销金额"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"平台类型"
prop
=
"platformType"
>
<!--
输入框
显示美团
值为
2
-->
...
...
@@ -370,7 +370,7 @@ export default {
couponType
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
validStartTime
:
null
,
validEndTime
:
null
,
useStatus
:
null
,
...
...
@@ -382,7 +382,7 @@ export default {
form
:
{
}
,
// 表单校验
rules
:
{
sub
Price
:
[
original
Price
:
[
//只保留2位小数
{
pattern
:
/^
(([
1-9
]
{1
}
\d
*
)
|
(
0{1
}
))(\.\d
{0,2
}
)?
$/
,
message
:
"请输入正确的优惠金额"
,
trigger
:
"blur"
}
],
...
...
@@ -395,7 +395,7 @@ export default {
duration
:
[
{
required
:
true
,
message
:
"时长不能为空"
,
trigger
:
"blur"
}
],
promotion
Price
:
[
sale
Price
:
[
//限制为数字
{
pattern
:
/^
[
0-9
]
+
(
.
[
0-9
]
{1,2
}
)?
$/
,
message
:
'请输入正确的金额格式'
,
trigger
:
'blur'
}
,
{
required
:
true
,
message
:
"促销金额不能为空"
,
trigger
:
"change"
}
...
...
@@ -488,7 +488,7 @@ export default {
couponType
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
platform
:
null
,
platformType
:
null
,
startDate
:
null
,
...
...
@@ -612,11 +612,11 @@ export default {
openShopDeal
()
{
this
.
$refs
.
select
.
show
();
}
,
queryShopDeal
(
name
,
startDate
,
endDate
,
sub
Price
,
dealgroupId
,
storeIds
,
couponPayPrice
)
{
queryShopDeal
(
name
,
startDate
,
endDate
,
original
Price
,
dealgroupId
,
storeIds
,
couponPayPrice
)
{
this
.
form
.
name
=
name
;
this
.
form
.
startDate
=
startDate
;
this
.
form
.
endDate
=
endDate
;
this
.
form
.
subPrice
=
sub
Price
;
this
.
form
.
originalPrice
=
original
Price
;
this
.
form
.
dealgroupId
=
dealgroupId
;
this
.
form
.
storeIds
=
storeIds
;
this
.
form
.
couponPayPrice
=
couponPayPrice
;
...
...
src/views/system/coupon/queryShopDeal.vue
View file @
cd41bbd5
...
...
@@ -15,7 +15,7 @@
<
span
>
{{
parseTime
(
scope
.
row
.
endDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"套餐价格"
align
=
"center"
prop
=
"sub
Price"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"套餐价格"
prop
=
"original
Price"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"售卖价格"
prop
=
"couponPayPrice"
/>
<
el
-
table
-
column
label
=
"团购ID"
align
=
"center"
prop
=
"dealgroupId"
/>
<
el
-
table
-
column
label
=
"适用门店id"
align
=
"center"
prop
=
"storeIds"
width
=
"350"
>
...
...
@@ -65,7 +65,7 @@ export default {
this
.
visible
=
true
;
}
,
clickRow
(
row
)
{
this
.
$emit
(
'select'
,
row
.
name
,
row
.
startDate
,
row
.
endDate
,
row
.
sub
Price
,
row
.
dealgroupId
,
row
.
storeIds
,
row
.
couponPayPrice
);
this
.
$emit
(
'select'
,
row
.
name
,
row
.
startDate
,
row
.
endDate
,
row
.
original
Price
,
row
.
dealgroupId
,
row
.
storeIds
,
row
.
couponPayPrice
);
this
.
visible
=
false
;
}
,
// 查询表数据
...
...
src/views/system/coupon/querySkuId.vue
View file @
cd41bbd5
...
...
@@ -15,7 +15,7 @@
<
span
>
{{
parseTime
(
scope
.
row
.
endDate
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"套餐价格"
align
=
"center"
prop
=
"sub
Price"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"套餐价格"
prop
=
"original
Price"
/>
<
el
-
table
-
column
align
=
"center"
label
=
"售卖价格"
prop
=
"couponPayPrice"
/>
<
el
-
table
-
column
label
=
"团购ID"
align
=
"center"
prop
=
"tiktokSkuId"
/>
<
el
-
table
-
column
label
=
"适用门店id"
align
=
"center"
prop
=
"storeIds"
width
=
"350"
>
...
...
@@ -56,7 +56,7 @@ export default {
this
.
tiktokvisible
=
true
;
}
,
clickRow
(
row
)
{
this
.
$emit
(
'selectSku'
,
row
.
tiktokSkuId
,
row
.
name
,
row
.
sub
Price
,
row
.
startDate
,
row
.
endDate
,
row
.
storeIds
,
row
.
couponPayPrice
);
this
.
$emit
(
'selectSku'
,
row
.
tiktokSkuId
,
row
.
name
,
row
.
original
Price
,
row
.
startDate
,
row
.
endDate
,
row
.
storeIds
,
row
.
couponPayPrice
);
this
.
dataList
=
[];
this
.
tiktokvisible
=
false
;
}
,
...
...
src/views/system/coupon/tiktokindex.vue
View file @
cd41bbd5
...
...
@@ -116,9 +116,9 @@
<dict-tag
:options=
"dict.type.store_coupon_type"
:value=
"scope.row.couponType"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"优惠券原始金额"
prop=
"
sub
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券原始金额"
prop=
"
original
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券售卖金额"
prop=
"couponPayPrice"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券促销金额"
prop=
"
promotion
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"优惠券促销金额"
prop=
"
sale
Price"
width=
"120px"
/>
<el-table-column
align=
"center"
label=
"时长"
prop=
"duration"
/>
<el-table-column
label=
"平台类型"
align=
"center"
prop=
"platformType"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -214,8 +214,8 @@
<
el
-
form
-
item
label
=
"时长"
prop
=
"duration"
>
<
el
-
input
-
number
v
-
model
=
"form.duration"
:
max
=
"24"
:
min
=
"0"
placeholder
=
"请输入时长"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"优惠券促销金额"
prop
=
"
promotion
Price"
>
<
el
-
input
-
number
v
-
model
=
"form.
promotion
Price"
:
max
=
"500"
:
min
=
"0"
placeholder
=
"请输入优惠券促销金额"
/>
<
el
-
form
-
item
label
=
"优惠券促销金额"
prop
=
"
sale
Price"
>
<
el
-
input
-
number
v
-
model
=
"form.
sale
Price"
:
max
=
"500"
:
min
=
"0"
placeholder
=
"请输入优惠券促销金额"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"平台类型"
prop
=
"platformType"
>
<!--
输入框
显示美团
值为
2
-->
...
...
@@ -370,7 +370,7 @@ export default {
couponType
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
validStartTime
:
null
,
validEndTime
:
null
,
useStatus
:
null
,
...
...
@@ -382,7 +382,7 @@ export default {
form
:
{
}
,
// 表单校验
rules
:
{
sub
Price
:
[
original
Price
:
[
//只保留2位小数
{
pattern
:
/^
(([
1-9
]
{1
}
\d
*
)
|
(
0{1
}
))(\.\d
{0,2
}
)?
$/
,
message
:
"请输入正确的优惠金额"
,
trigger
:
"blur"
}
],
...
...
@@ -395,7 +395,7 @@ export default {
duration
:
[
{
required
:
true
,
message
:
"时长不能为空"
,
trigger
:
"blur"
}
],
promotion
Price
:
[
sale
Price
:
[
//限制为数字
{
pattern
:
/^
[
0-9
]
+
(
.
[
0-9
]
{1,2
}
)?
$/
,
message
:
'请输入正确的金额格式'
,
trigger
:
'blur'
}
,
{
required
:
true
,
message
:
"促销金额不能为空"
,
trigger
:
"change"
}
...
...
@@ -488,7 +488,7 @@ export default {
couponType
:
null
,
duration
:
null
,
minPrice
:
null
,
sub
Price
:
null
,
original
Price
:
null
,
platform
:
null
,
platformType
:
null
,
startDate
:
null
,
...
...
@@ -612,11 +612,11 @@ export default {
openSku
()
{
this
.
$refs
.
selectSkuList
.
show
();
}
,
querySku
(
tiktokSkuId
,
name
,
sub
Price
,
startDate
,
endDate
,
storeIds
,
couponPayPrice
)
{
querySku
(
tiktokSkuId
,
name
,
original
Price
,
startDate
,
endDate
,
storeIds
,
couponPayPrice
)
{
this
.
form
.
tiktokSkuId
=
tiktokSkuId
;
this
.
form
.
startDate
=
startDate
;
this
.
form
.
endDate
=
endDate
;
this
.
form
.
subPrice
=
sub
Price
;
this
.
form
.
originalPrice
=
original
Price
;
this
.
form
.
storeIds
=
storeIds
;
this
.
form
.
name
=
name
;
this
.
form
.
couponPayPrice
=
couponPayPrice
;
...
...
src/views/system/roomLabel/index.vue
View file @
cd41bbd5
...
...
@@ -131,8 +131,8 @@
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"备注"
prop
=
"remark"
/>
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
>
<
template
slot
-
scope
=
"scope"
>
<
!--
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
>--
>
<!--
<
template
slot
-
scope
=
"scope"
>--
>
<!--
<
el
-
button
-->
<!--
size
=
"mini"
-->
<!--
type
=
"text"
-->
...
...
@@ -140,16 +140,16 @@
<!--
@
click
=
"handleUpdate(scope.row)"
-->
<!--
v
-
hasPermi
=
"['system:roomLabel:edit']"
-->
<!--
>
修改
<
/el-button>--
>
<
el
-
button
v
-
hasPermi
=
"['system:roomLabel:remove']"
icon
=
"el-icon-delete"
size
=
"mini"
type
=
"text"
@
click
=
"handleDelete(scope.row)"
>
删除
<
/el-button
>
<
/template
>
<
/el-table-column
>
<!--
<
el
-
button
-->
<!--
v
-
hasPermi
=
"['system:roomLabel:remove']"
-->
<!--
icon
=
"el-icon-delete"
-->
<!--
size
=
"mini"
-->
<!--
type
=
"text"
-->
<!--
@
click
=
"handleDelete(scope.row)"
-->
<!--
>
删除
-->
<!--
<
/el-button>--
>
<!--
<
/template>--
>
<
!--
<
/el-table-column>--
>
<
/el-table
>
<
pagination
...
...
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