Commit d0167691 by wuwx

修改新建服务券创建方法

1 parent 64585f67
...@@ -209,6 +209,7 @@ export default { ...@@ -209,6 +209,7 @@ export default {
}, 1000) }, 1000)
} }
return { return {
clickStatus: false,
isEdit: false, isEdit: false,
showSubmit: true, showSubmit: true,
disabledDescription: false, disabledDescription: false,
...@@ -402,7 +403,8 @@ export default { ...@@ -402,7 +403,8 @@ export default {
}, },
submitForm(formName) { submitForm(formName) {
this.sloading = true if (this.clickStatus) return
this.clickStatus = true
this.$refs[formName].validate((valid, errorObj) => { this.$refs[formName].validate((valid, errorObj) => {
var merchantval = true var merchantval = true
var merchantErrorObj = [] var merchantErrorObj = []
...@@ -430,6 +432,7 @@ export default { ...@@ -430,6 +432,7 @@ export default {
}, },
//创建服务 //创建服务
createService() { createService() {
this.sloading = true
let params = { let params = {
effectiveDays: '', effectiveDays: '',
useAmount: '', useAmount: '',
...@@ -505,10 +508,12 @@ export default { ...@@ -505,10 +508,12 @@ export default {
}) })
.finally(() => { .finally(() => {
this.sloading = false this.sloading = false
this.clickStatus = false
}) })
}, },
//更新服务 //更新服务
updateService() { updateService() {
this.sloading = true
let param = {} let param = {}
param.anticipatedCost = this.ruleForm.anticipatedCost * 100 param.anticipatedCost = this.ruleForm.anticipatedCost * 100
param.discountType = 7 param.discountType = 7
...@@ -531,6 +536,7 @@ export default { ...@@ -531,6 +536,7 @@ export default {
}) })
.finally(() => { .finally(() => {
this.sloading = false 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!