*申请事项
@@ -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('请输入申请事项')
}