Commit cd41bbd5 by 吕明尚

修改优惠券字段

parent c5d5f8c8
......@@ -198,9 +198,9 @@
</template>
</el-table-column>
<el-table-column label="时长" align="center" prop="duration"/>
<el-table-column label="优惠金额" align="center" prop="subPrice"/>
<el-table-column align="center" label="优惠金额" prop="originalPrice"/>
<el-table-column align="center" label="优惠售卖金额" prop="couponPayPrice" width="130px"/>
<el-table-column align="center" label="优惠促销金额" prop="promotionPrice" width="130px"/>
<el-table-column align="center" label="优惠促销金额" prop="salePrice" 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="subPrice">
<el-input v-model="form.subPrice" placeholder="请输入减去金额(满减券单位:元,折扣为系数)"/>
<el-form-item label="减去金额(满减券单位:元,折扣为系数)" prop="originalPrice">
<el-input v-model="form.originalPrice" 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,
subPrice: null,
originalPrice: null,
sourceType: null,
platformType: null,
startDate: null,
......@@ -545,7 +545,7 @@ export default {
maxDuration: null,
duration: null,
minPrice: null,
subPrice: null,
originalPrice: null,
sourceType: null,
platformType: null,
startDate: null,
......
......@@ -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="subPrice" width="120px"/>
<el-table-column align="center" label="优惠券售卖金额" prop="couponPayPrice" width="120px"/>
<el-table-column align="center" label="优惠券促销金额" prop="promotionPrice" width="120px"/>
<el-table-column align="center" label="优惠券原始金额" prop="originalPrice" width="120px"/>
<!-- <el-table-column align="center" label="优惠券售卖金额" prop="couponPayPrice" width="120px"/>-->
<el-table-column align="center" label="优惠券促销金额" prop="salePrice" 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="subPrice">
<el-input v-model="form.subPrice" placeholder="请输入优惠券原始金额"/>
<el-form-item label="优惠券原始金额" prop="originalPrice">
<el-input v-model="form.originalPrice" 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="promotionPrice">
<el-input v-model="form.promotionPrice" placeholder="请输入优惠券促销金额"/>
<!-- <el-form-item label="优惠券售卖金额" prop="couponPayPrice">-->
<!-- <el-input v-model="form.couponPayPrice" placeholder="请输入优惠券售卖金额"/>-->
<!-- </el-form-item>-->
<el-form-item label="优惠券促销金额" prop="salePrice">
<el-input v-model="form.salePrice" 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,
subPrice: null,
originalPrice: null,
useStatus: null,
platformType: null,
startDate: null,
......@@ -416,7 +416,7 @@ export default {
endDate: [
{required: true, message: "有效期结束不能为空", trigger: "change"}
],
promotionPrice: [
salePrice: [
//限制为数字
{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,
subPrice: null,
originalPrice: null,
platform: null,
platformType: null,
startDate: null,
......
......@@ -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="subPrice" width="120px"/>
<el-table-column align="center" label="优惠券原始金额" prop="originalPrice" width="120px"/>
<el-table-column align="center" label="优惠券售卖金额" prop="couponPayPrice" width="120px"/>
<el-table-column align="center" label="优惠券促销金额" prop="promotionPrice" width="120px"/>
<el-table-column align="center" label="优惠券促销金额" prop="salePrice" 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="promotionPrice">
<el-input-number v-model="form.promotionPrice" :max="500" :min="0" placeholder="请输入优惠券促销金额"/>
<el-form-item label="优惠券促销金额" prop="salePrice">
<el-input-number v-model="form.salePrice" :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,
subPrice: null,
originalPrice: null,
validStartTime: null,
validEndTime: null,
useStatus: null,
......@@ -382,7 +382,7 @@ export default {
form: {},
// 表单校验
rules: {
subPrice: [
originalPrice: [
//只保留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"}
],
promotionPrice: [
salePrice: [
//限制为数字
{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,
subPrice: null,
originalPrice: null,
platform: null,
platformType: null,
startDate: null,
......@@ -612,11 +612,11 @@ export default {
openShopDeal() {
this.$refs.select.show();
},
queryShopDeal(name, startDate, endDate, subPrice, dealgroupId, storeIds, couponPayPrice) {
queryShopDeal(name, startDate, endDate, originalPrice, dealgroupId, storeIds, couponPayPrice) {
this.form.name = name;
this.form.startDate = startDate;
this.form.endDate = endDate;
this.form.subPrice = subPrice;
this.form.originalPrice = originalPrice;
this.form.dealgroupId = dealgroupId;
this.form.storeIds = storeIds;
this.form.couponPayPrice = couponPayPrice;
......
......@@ -15,7 +15,7 @@
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="套餐价格" align="center" prop="subPrice"/>
<el-table-column align="center" label="套餐价格" prop="originalPrice"/>
<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.subPrice, row.dealgroupId, row.storeIds, row.couponPayPrice);
this.$emit('select', row.name, row.startDate, row.endDate, row.originalPrice, row.dealgroupId, row.storeIds, row.couponPayPrice);
this.visible = false;
},
// 查询表数据
......
......@@ -15,7 +15,7 @@
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="套餐价格" align="center" prop="subPrice"/>
<el-table-column align="center" label="套餐价格" prop="originalPrice"/>
<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.subPrice, row.startDate, row.endDate, row.storeIds, row.couponPayPrice);
this.$emit('selectSku', row.tiktokSkuId, row.name, row.originalPrice, row.startDate, row.endDate, row.storeIds, row.couponPayPrice);
this.dataList = [];
this.tiktokvisible = false;
},
......
......@@ -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="subPrice" width="120px"/>
<el-table-column align="center" label="优惠券原始金额" prop="originalPrice" width="120px"/>
<el-table-column align="center" label="优惠券售卖金额" prop="couponPayPrice" width="120px"/>
<el-table-column align="center" label="优惠券促销金额" prop="promotionPrice" width="120px"/>
<el-table-column align="center" label="优惠券促销金额" prop="salePrice" 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="promotionPrice">
<el-input-number v-model="form.promotionPrice" :max="500" :min="0" placeholder="请输入优惠券促销金额"/>
<el-form-item label="优惠券促销金额" prop="salePrice">
<el-input-number v-model="form.salePrice" :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,
subPrice: null,
originalPrice: null,
validStartTime: null,
validEndTime: null,
useStatus: null,
......@@ -382,7 +382,7 @@ export default {
form: {},
// 表单校验
rules: {
subPrice: [
originalPrice: [
//只保留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"}
],
promotionPrice: [
salePrice: [
//限制为数字
{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,
subPrice: null,
originalPrice: null,
platform: null,
platformType: null,
startDate: null,
......@@ -612,11 +612,11 @@ export default {
openSku() {
this.$refs.selectSkuList.show();
},
querySku(tiktokSkuId, name, subPrice, startDate, endDate, storeIds, couponPayPrice) {
querySku(tiktokSkuId, name, originalPrice, startDate, endDate, storeIds, couponPayPrice) {
this.form.tiktokSkuId = tiktokSkuId;
this.form.startDate = startDate;
this.form.endDate = endDate;
this.form.subPrice = subPrice;
this.form.originalPrice = originalPrice;
this.form.storeIds = storeIds;
this.form.name = name;
this.form.couponPayPrice = couponPayPrice;
......
......@@ -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
......
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