Commit f5079e2e by 王志慧

Merge branch 'wangzh_dev_v3.5.0' into 'v3.5.0'

commit

See merge request !446
2 parents 6bf1ab39 7fc644b0
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
<template v-if="activeName == 1 || activeName == 4"> <template v-if="activeName == 1 || activeName == 4">
<el-form-item label="是否互动:"> <el-form-item label="是否互动:">
<el-select v-model="drawerSearchForm.isInteract" placeholder=""> <el-select v-model="drawerSearchForm.isInteract" placeholder="">
<el-option label="全部" value=""></el-option>
<el-option label="是" value="true"></el-option> <el-option label="是" value="true"></el-option>
<el-option label="否" value="false"></el-option> <el-option label="否" value="false"></el-option>
</el-select> </el-select>
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
if (this.id) { if (this.id) {
this.getServiceInfo() this.getServiceInfo()
} else { } else {
this.ruleForm.giveGoldFlag = 2 this.ruleForm.giveGoldFlag = 2
} }
// this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情 // this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
}, },
...@@ -226,6 +226,11 @@ export default { ...@@ -226,6 +226,11 @@ export default {
this.choseItemList.push(k) this.choseItemList.push(k)
}) })
}) })
if (this.choseItemList.length> 0) {
this.setmealContentRules = false
}else{
this.setmealContentRules = true
}
}, },
handleGiftDelete(attr, idx) { handleGiftDelete(attr, idx) {
this.couponObj[attr].list.splice(idx, 1) this.couponObj[attr].list.splice(idx, 1)
...@@ -313,10 +318,6 @@ export default { ...@@ -313,10 +318,6 @@ export default {
} }
return return
} }
if (this.choseItemList.length <= 0) {
this.setmealContentRules = true
return
}
if (this.id) { if (this.id) {
//需要调config的接口???? //需要调config的接口????
...@@ -332,7 +333,7 @@ export default { ...@@ -332,7 +333,7 @@ export default {
param.packagePrice = this.ruleForm.packagePrice param.packagePrice = this.ruleForm.packagePrice
param.notes = this.ruleForm.notes param.notes = this.ruleForm.notes
param.switchStatus = this.ruleForm.switchStatus ? 1 : 0 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 let lists = this.choseItemList
for (var k in lists) { for (var k in lists) {
param[`lists[${k}].serviceQuantity`] = lists[k].couponAmount param[`lists[${k}].serviceQuantity`] = lists[k].couponAmount
...@@ -368,7 +369,7 @@ export default { ...@@ -368,7 +369,7 @@ export default {
params.packagePrice = this.ruleForm.packagePrice params.packagePrice = this.ruleForm.packagePrice
params.notes = this.ruleForm.notes params.notes = this.ruleForm.notes
params.switchStatus = this.ruleForm.switchStatus ? 1 : 0 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 let list = this.choseItemList
for (var i in list) { for (var i in list) {
params[`list[${i}].serviceQuantity`] = list[i].couponAmount 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!