Commit 59f4538e by 吕明尚

增加是否可用字段

parent b7832257
...@@ -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 {
// 遮罩层 // 遮罩层
......
...@@ -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 {
// 遮罩层 // 遮罩层
......
...@@ -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 {
// 遮罩层 // 遮罩层
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment