Commit 6c74ca6c by 李长胜

会员中心修改

1 parent fbf2af39
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<el-button type="primary" @click="goBack" size="small">取消</el-button> <el-button type="primary" @click="goBack" size="small">取消</el-button>
</div> </div>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" --> <!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog title="" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <glsx-dialog title="" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body"> <div class="content-body">
当前有内容信息未保存,是否继续取消 当前有内容信息未保存,是否继续取消
</div> </div>
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button> <el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button>
<el-button type="primary" @click="goBack" size="small">取消</el-button> <el-button type="primary" @click="goBack" size="small">取消</el-button>
</div> </div>
<!-- :modalAppendToBody="false" -->
<glsx-dialog title="套餐服务" class="setmealServiceDialog" width="1142px" :noCancel="true" :noClose="false" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <glsx-dialog title="套餐服务" class="setmealServiceDialog" width="1142px" :noCancel="true" :noClose="false" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body"> <div class="content-body">
<div class="subTitle"> <div class="subTitle">
...@@ -95,7 +96,7 @@ ...@@ -95,7 +96,7 @@
</div> </div>
</div> </div>
</glsx-dialog> </glsx-dialog>
<glsx-dialog title="" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm"> <glsx-dialog title="" :hasScroll="false" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm">
<div class="content-body">当前有内容信息未保存,是否继续返回</div> <div class="content-body">当前有内容信息未保存,是否继续返回</div>
</glsx-dialog> </glsx-dialog>
</div> </div>
...@@ -144,10 +145,13 @@ export default { ...@@ -144,10 +145,13 @@ export default {
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
this.merchantName = this.$globalState.session.merchantName this.merchantName = this.$globalState.session.merchantName
} }
this.getSetmealServiceFun()
if (this.id) { // if (this.id) {
this.getServiceInfo() //获取编辑详情 this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
}
// }else{
// this.getSetmealServiceFun()
// }
}, },
watch: { watch: {
// allItemList: { // allItemList: {
...@@ -190,6 +194,15 @@ export default { ...@@ -190,6 +194,15 @@ export default {
this.ruleForm = res.data this.ruleForm = res.data
this.choseItemList = res.data.list || [] this.choseItemList = res.data.list || []
this.totalPrice = res.data.referencePrice this.totalPrice = res.data.referencePrice
this.choseItemList.forEach(item => {
for (let i = 0; i < this.allItemList.length; i++) {
if (item.serviceId == this.allItemList[i].id) {
item.vipPrice = this.allItemList[i].vipPrice
}
}
})
this.copyTotalPrice = this.totalPrice this.copyTotalPrice = this.totalPrice
this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据 this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据
this.copyChoseItemList = this.choseItemList this.copyChoseItemList = this.choseItemList
...@@ -211,6 +224,10 @@ export default { ...@@ -211,6 +224,10 @@ export default {
serviceQuantity: 0 serviceQuantity: 0
} }
}) })
if (this.id) {
this.getServiceInfo() //获取编辑详情
}
}) })
}, },
//选中该条服务套餐 //选中该条服务套餐
...@@ -384,6 +401,7 @@ export default { ...@@ -384,6 +401,7 @@ export default {
serviceId: ele.id serviceId: ele.id
} }
}) })
console.log('确定之后choseItemList', this.choseItemList)
this.setmealDialogVisible = false this.setmealDialogVisible = false
}, },
handleClose() { handleClose() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!