Commit dce86376 by 前端

Merge branch 'chenwq_dev_v2.3.0' into 'v2.3.0'

无限制期-永久有效

See merge request !140
2 parents 8304a004 6ae940ba
......@@ -75,7 +75,7 @@
</div>
</template>
<template slot="effectiveHtml">
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio>
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">永久有效</el-radio>
<br />
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
......@@ -623,7 +623,7 @@ export default {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
......@@ -688,7 +688,7 @@ export default {
obj.useChannel = form.useChannel
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
obj.effectiveType = form.effectiveType
if (form.effectiveType == 1) {
//固定天数
......
......@@ -435,7 +435,7 @@ export default {
this.editForm.full = this.editForm.full
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
......@@ -487,7 +487,7 @@ export default {
obj.discountType = '2'
obj.directionalFlag = '1'
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
obj.effectiveType = form.effectiveType
if (form.effectiveType == 1) {
//固定天数
......
......@@ -354,7 +354,7 @@ export default {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
......@@ -396,7 +396,7 @@ export default {
obj.discountType = '4'
obj.directionalFlag = '1'
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
obj.effectiveType = form.effectiveType
if (form.effectiveType == 1) {
//固定天数
......
......@@ -5,7 +5,7 @@
<p class="edit-title">{{ title }}服务券</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="effectiveHtml">
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio>
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">永久有效</el-radio>
<br />
<el-form-item prop="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
......@@ -303,7 +303,7 @@ export default {
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
......@@ -362,7 +362,7 @@ export default {
obj.discountType = '7'
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:永久有效
obj.effectiveType = form.effectiveType
if (form.effectiveType == 1) {
//固定天数
......
......@@ -131,7 +131,7 @@ export default {
case 2:
return dayjs(cellValue.effectiveStartTime).format('YYYY-MM-DD HH:mm:ss') + '-' + dayjs(cellValue.effectiveEndTime).format('YYYY-MM-DD HH:mm:ss')
case 3:
return '无有效期'
return '永久有效'
default:
return '-'
}
......
......@@ -282,8 +282,8 @@ export default {
//时间段
this.coupon.effectiveTxt = coupon.effectiveStartTime + ' - ' + coupon.effectiveEndTime
} else if (coupon.effectiveType == 3) {
//无有效期
this.coupon.effectiveTxt = '无有效期'
//永久有效
this.coupon.effectiveTxt = '永久有效'
}
if (coupon.discountType == 3) {
......
......@@ -162,8 +162,8 @@ export default {
//时间段
this.effective = coupon.effectiveStartTime + ' ~ ' + coupon.effectiveEndTime
} else if (coupon.effectiveType == 3) {
//无有效期
this.effective = '无有效期'
//永久有效
this.effective = '永久有效'
}
if (coupon.discountType == 3) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!