Commit 03dcad33 authored by 黄奎's avatar 黄奎

页面修改

parent 1d2ddb2e
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
@input="changePrice" /> @input="changePrice" />
<q-input filled stack-label :dense="false" v-model="OrderMsg.StartClassHours" <q-input filled stack-label :dense="false" v-model="OrderMsg.StartClassHours"
@keyup.native="checkInteger(OrderMsg,'StartClassHours')" ref="StartClassHours" @input="countPrice" @keyup.native="checkInteger(OrderMsg,'StartClassHours')" ref="StartClassHours" @input="countPrice"
class="col-12" label="起始课时11" :rules="[val => !!val || '请填起始课时']" /> class="col-12" label="起始课时" :rules="[val => !!val || '请填起始课时']" />
</template> </template>
<template v-if="modityOrderType==1"> <template v-if="modityOrderType==1">
<q-input filled stack-label :dense="false" v-model="OrderMsg.Unit_Price" <q-input filled stack-label :dense="false" v-model="OrderMsg.Unit_Price"
...@@ -175,11 +175,8 @@ ...@@ -175,11 +175,8 @@
mounted() { mounted() {
this.initData() this.initData()
}, },
watch:{ watch: {
CourseList: function (val, oldval) {
console.log(val,'val');
this.courseObj = val.find(x => x.CourseId == this.OrderMsg.CourseId);
}
}, },
methods: { methods: {
//获取插班报入配置信息 //获取插班报入配置信息
...@@ -334,8 +331,7 @@ ...@@ -334,8 +331,7 @@
//计算应收价格 //计算应收价格
if (this.OrderMsg.IsChaBan == 1) { if (this.OrderMsg.IsChaBan == 1) {
var newPreferPrice = 0; var newPreferPrice = 0;
console.log(this.courseObj,'this.courseObj'); if (this.courseObj && this.courseObj.CourseId && this.courseObj.CourseId > 0) {
if (this.courseObj) {
newPreferPrice = (this.courseObj.SellPrice / this.courseObj.ClassHours) * (this.courseObj.ClassHours - this newPreferPrice = (this.courseObj.SellPrice / this.courseObj.ClassHours) * (this.courseObj.ClassHours - this
.OrderMsg.StartClassHours) * guestNum .OrderMsg.StartClassHours) * guestNum
} }
......
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