Commit cf0f80c8 authored by zhengke's avatar zhengke

修改

parent ec0626bf
......@@ -22,7 +22,7 @@
</div>
<div style="padding:20px 15px;">
<q-input filled stack-label maxlength="100" :dense="false" @keyup.native="checkInteger(OrderMsg,'GuestNum')"
v-model="OrderMsg.GuestNum" @input="countPrice" class="col-12" label="人数" :rules="[val => !!val || '请填写人数']"
v-model="OrderMsg.GuestNum" @input="changePrice(),countPrice()" class="col-12" label="人数" :rules="[val => !!val || '请填写人数']"
:disable="modityOrderType==2" />
<template v-if="isChaBan==1">
<q-select filled option-value="CourseId" :disable="modityOrderType==2" option-label="CourseName" ref="CourseId" v-model="OrderMsg.CourseId"
......@@ -202,7 +202,6 @@
//选择课程切换价格
changePrice() {
let temp = this.CourseList.find(x => x.CourseId == this.OrderMsg.CourseId);
console.log("temp",temp);
if (temp) {
this.courseObj = temp;
if(this.OrderMsg.GuestNum==1){
......@@ -215,6 +214,9 @@
this.OrderMsg.Unit_Price = temp.SellPrice-item.CoursePriceList[0].PriceMoney;
this.UnitPrice = temp.SellPrice-item.CoursePriceList[0].PriceMoney;
}
}else{
this.OrderMsg.Unit_Price = temp.SellPrice;
this.UnitPrice = temp.SellPrice;
}
}
if(this.OrderMsg.GuestNum>1){
......@@ -227,6 +229,9 @@
this.OrderMsg.Unit_Price = temp.SellPrice-item.CoursePriceList[1].PriceMoney;
this.UnitPrice = temp.SellPrice-item.CoursePriceList[1].PriceMoney;
}
}else{
this.OrderMsg.Unit_Price = temp.SellPrice;
this.UnitPrice = temp.SellPrice;
}
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment