Commit 7fc644b0 by 王志慧

commit

1 parent 365b4c95
......@@ -50,6 +50,7 @@
<template v-if="activeName == 1 || activeName == 4">
<el-form-item label="是否互动:">
<el-select v-model="drawerSearchForm.isInteract" placeholder="">
<el-option label="全部" value=""></el-option>
<el-option label="是" value="true"></el-option>
<el-option label="否" value="false"></el-option>
</el-select>
......
......@@ -203,7 +203,7 @@ export default {
if (this.id) {
this.getServiceInfo()
} else {
this.ruleForm.giveGoldFlag = 2
this.ruleForm.giveGoldFlag = 2
}
// this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
},
......@@ -226,6 +226,11 @@ export default {
this.choseItemList.push(k)
})
})
if (this.choseItemList.length> 0) {
this.setmealContentRules = false
}else{
this.setmealContentRules = true
}
},
handleGiftDelete(attr, idx) {
this.couponObj[attr].list.splice(idx, 1)
......@@ -313,10 +318,6 @@ export default {
}
return
}
if (this.choseItemList.length <= 0) {
this.setmealContentRules = true
return
}
if (this.id) {
//需要调config的接口????
......@@ -332,7 +333,7 @@ export default {
param.packagePrice = this.ruleForm.packagePrice
param.notes = this.ruleForm.notes
param.switchStatus = this.ruleForm.switchStatus ? 1 : 0
if(this.showGh) param.giveGoldFlag = this.ruleForm.giveGoldFlag
if (this.showGh) param.giveGoldFlag = this.ruleForm.giveGoldFlag
let lists = this.choseItemList
for (var k in lists) {
param[`lists[${k}].serviceQuantity`] = lists[k].couponAmount
......@@ -368,7 +369,7 @@ export default {
params.packagePrice = this.ruleForm.packagePrice
params.notes = this.ruleForm.notes
params.switchStatus = this.ruleForm.switchStatus ? 1 : 0
if(this.showGh) params.giveGoldFlag = this.ruleForm.giveGoldFlag
if (this.showGh) params.giveGoldFlag = this.ruleForm.giveGoldFlag
let list = this.choseItemList
for (var i in list) {
params[`list[${i}].serviceQuantity`] = list[i].couponAmount
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!