Commit d0167691 by wuwx

修改新建服务券创建方法

1 parent 64585f67
......@@ -209,6 +209,7 @@ export default {
}, 1000)
}
return {
clickStatus: false,
isEdit: false,
showSubmit: true,
disabledDescription: false,
......@@ -402,7 +403,8 @@ export default {
},
submitForm(formName) {
this.sloading = true
if (this.clickStatus) return
this.clickStatus = true
this.$refs[formName].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
......@@ -430,6 +432,7 @@ export default {
},
//创建服务
createService() {
this.sloading = true
let params = {
effectiveDays: '',
useAmount: '',
......@@ -505,10 +508,12 @@ export default {
})
.finally(() => {
this.sloading = false
this.clickStatus = false
})
},
//更新服务
updateService() {
this.sloading = true
let param = {}
param.anticipatedCost = this.ruleForm.anticipatedCost * 100
param.discountType = 7
......@@ -531,6 +536,7 @@ export default {
})
.finally(() => {
this.sloading = false
this.clickStatus = false
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!