Authored by shuaiguo

feat: 优惠券新增是否展示在详情页

... ... @@ -160,6 +160,9 @@
<i-form-item label="需要校验" prop="checkRequired">
<checkbox v-model="formData.isCheckRequired" :disabled="allreadonly" @on-change="getCheckRequired"></checkbox>
</i-form-item>
<i-form-item label="展示在详情页" prop="isShowInDetail">
<checkbox v-model="formData.isShowInDetail" :disabled="allreadonly" @on-change="setIsShowInDetail"></checkbox>
</i-form-item>
</i-form>
</i-modal>
</template>
... ... @@ -255,6 +258,8 @@ export default {
businessClient: "",
checkRequired: 0,
isCheckRequired: true,
// 是否展示在详情页
isShowInDetail: false
},
ruleValidate: {
couponType: {
... ... @@ -380,7 +385,8 @@ export default {
skupAllowType: "",
businessClientLabel: [],
businessClient: "",
checkRequired: 0
checkRequired: 0,
isShowInDetail: false
// skupForbidTypeLable:[],
// skupForbidType: ''
};
... ... @@ -444,7 +450,8 @@ export default {
businessClientLabel: businessClientTypeLabel,
businessClient: coupon.businessClient, //购买渠道
checkRequired: coupon.checkRequired,
isCheckRequired
isCheckRequired,
isShowInDetail: coupon.showInPrdDetail === 'Y'
};
} else {
result.message && this.$Message.warning(result.message);
... ... @@ -473,6 +480,9 @@ export default {
},
setIsShowInDetail(checked) {
this.formData.isShowInDetail = checked
},
getCheckBox() {
// checkbox勾选取消的监测
let arr = [];
... ... @@ -525,7 +535,8 @@ export default {
receiveEndTime: params.receiveTime[1]
? dayjs(params.receiveTime[1]).unix()
: void 0,
checkRequired:params.checkRequired
checkRequired:params.checkRequired,
showInPrdDetail: params.isShowInDetail ? 'Y' : 'N'
});
... ... @@ -602,14 +613,16 @@ export default {
};
</script>
<style lang="scss">
.ivu-form-item .ivu-form-item-label {
width: 102px !important;
}
</style>
<style lang="scss" scoped>
.form-group {
width: 100%;
height: 30px;
background-color: #f5f7f9;
}
.ivu-form-item-label {
width: 90px !important;
}
</style>
... ...