积分申请
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="addPoints">
|
||||
<div class="item">
|
||||
<div class="item_left"><span class="red">*</span><span class="color-666">事件类型</span></div>
|
||||
<AiSelect dict="fpAssistanceMeasures" v-model="form.applyItem"/>
|
||||
<AiSelect dict="integralApplyEventType" v-model="form.eventType"/>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="item_left"><span class="red">*</span><span class="color-666">申请事项</span></div>
|
||||
@@ -32,6 +32,7 @@ export default {
|
||||
return {
|
||||
value: '',
|
||||
form: {
|
||||
eventType: '',
|
||||
applyItem: '',
|
||||
applyIntegral: '',
|
||||
voucherImageUrl: '',
|
||||
@@ -45,7 +46,16 @@ export default {
|
||||
if(opt) {
|
||||
this.getDetail(opt.id)
|
||||
}
|
||||
this.$dict.load('fpAssistanceMeasures')
|
||||
this.$dict.load('integralApplyEventType')
|
||||
},
|
||||
watch: {
|
||||
'form.eventType'(val) {
|
||||
if(val==0 || val == 1 || val == 5) {
|
||||
this.form.applyIntegral = 2
|
||||
} else if(val == 2 || val == 3 || val == 4) {
|
||||
this.form.applyIntegral = 5
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getDetail(id) {
|
||||
@@ -59,6 +69,10 @@ export default {
|
||||
submit() {
|
||||
if(this.flag) return
|
||||
|
||||
if(!this.form.eventType) {
|
||||
return this.$u.toast('请选择事件类型')
|
||||
}
|
||||
|
||||
if(!this.form.applyItem) {
|
||||
return this.$u.toast('请输入申请事项')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user