Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-platform-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
shuaiguo
5 years ago
Commit
6a7a7018ce5137860554969a624aab400c055817
1 parent
560df047
feat: 优惠券新增是否展示在详情页
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
src/views/coupon/components/modal-create-coupon.vue
src/views/coupon/components/modal-create-coupon.vue
View file @
6a7a701
...
...
@@ -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>
...
...
Please
register
or
login
to post a comment