Commit 8f680c5e by liuchenxi

update: 修改卡券过期天数

parent 9698f94e
......@@ -750,19 +750,18 @@
<!-- v-if="parent.templateCode == 'com024'" -->
<div v-if="parent.templateCode == 'com024'">
<div style="margin-bottom:20px">
<el-select v-model="expiration" style="width:90px;">
<el-option label="1" value="1"></el-option>
<el-option label="2" value="2"></el-option>
<el-option label="3" value="3"></el-option>
<el-option label="4" value="4"></el-option>
<el-option label="5" value="5"></el-option>
<el-option label="6" value="6"></el-option>
<el-option label="7" value="7"></el-option>
</el-select>
<el-input type="text" v-model="expiration" style="width:90px;" @change="onChangeTime" />
天后过期
<span class="grey">(仅支持输入1-30之间的正整数)</span>
</div>
卡券类型:<el-radio-group v-model="cardRadioType">
<el-radio :label="0">全部卡券</el-radio>
<el-radio :label="1">部分卡券</el-radio>
</el-radio-group>
<vue-gic-card
v-show="cardRadioType"
ref="gicCard"
style="margin-top:20px"
@reciver-card-list="reciverCardList"
:disabledList="disabledList"
:cardLimit="cardLimit"
......@@ -770,6 +769,7 @@
:tag-list="tagList"
:type="1">
</vue-gic-card>
<p v-show="!cardRadioType" class="grey" style="margin-top:15px">说明:选择全部卡券后,后续创建的卡券也会进行统计。</p>
</div>
</div>
</div>
......@@ -1056,7 +1056,8 @@ export default {
cardParams: {
startTime: '',
endTime: ''
}
},
cardRadioType: 1
};
},
watch: {
......@@ -1925,6 +1926,14 @@ export default {
console.log('saddssdsd', `${v}`.replace(/\s/g, ''))
return `${v}`.replace(/\s/g, '');
},
onChangeTime(val) {
if(isNaN(val)) {
this.expiration = 1;
return;
}
if(val < 1) this.expiration = '1';
else if(val > 30) this.expiration = '30';
}
},
created() {
......@@ -2134,6 +2143,8 @@ export default {
padding: 20px 10px;
border-bottom: 1px solid rgba(220, 223, 230, 1);
}
.grey {
color: rgb(186,186,186);
}
</style>
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