Commit 2a8b649e authored by zhengke's avatar zhengke

修改

parent ccb5be5a
......@@ -29,8 +29,8 @@
:options="CourseList" emit-value map-options class="q-pb-lg" :rules="[val => !!val || '请选择课程']" label="选择课程"
@input="changePrice" />
<q-input filled stack-label :dense="false" v-model="OrderMsg.StartClassHours"
@keyup.native="checkInteger(OrderMsg,'StartClassHours')" ref="StartClassHours" @blur="countPrice"
class="col-12" label="起始课时" :rules="[val => !!val || '请填起始课时']" />
@keyup.native="checkInteger(OrderMsg,'StartClassHours')" ref="StartClassHours" @input="countPrice"
class="col-12" label="起始课时11" :rules="[val => !!val || '请填起始课时']" />
</template>
<template v-if="modityOrderType==1">
<q-input filled stack-label :dense="false" v-model="OrderMsg.Unit_Price"
......@@ -39,11 +39,11 @@
<q-toggle v-model="IsShowUpPrice" label="高于定价收生" class="q-mb-md" />
</template>
<template v-if="modityOrderType==2">
<q-input filled stack-label :dense="false" v-model="OrderMsg.Unit_Price" :disable="true" @blur="countPrice"
<q-input filled stack-label :dense="false" v-model="OrderMsg.Unit_Price" :disable="true" @input="countPrice"
class="col-12" label="成交单价" :rules="[val => !!val || '请填成交单价']" />
</template>
<template v-if="modityOrderType==3">
<q-input filled stack-label :dense="false" v-model="OrderMsg.Unit_Price" @blur="countPrice" class="col-12"
<q-input filled stack-label :dense="false" v-model="OrderMsg.Unit_Price" @input="countPrice" class="col-12"
label="成交单价" :rules="[val => !!val || '请填成交单价']" />
</template>
<q-input filled stack-label :disable="modityOrderType!=3" :dense="false" maxlength="10"
......@@ -236,6 +236,8 @@
this.OrderMsg.IsChaBan = tempData.IsChaBan;
this.UnitPrice = this.OrderMsg.Unit_Price;
this.IsShowEditOrder = true;
}
})
} else {
......@@ -328,9 +330,10 @@
//计算应收价格
if (this.OrderMsg.IsChaBan == 1) {
var newPreferPrice = 0;
console.log(this.courseObj,'this.courseObj');
if (this.courseObj) {
newPreferPrice = this.courseObj.SellPrice / this.courseObj.ClassHours * (this.courseObj.ClassHours - this
.courseObj.StartClassHours)
newPreferPrice = (this.courseObj.SellPrice / this.courseObj.ClassHours) * (this.courseObj.ClassHours - this
.OrderMsg.StartClassHours)
}
this.OrderMsg.PreferPrice = Number(newPreferPrice).toFixed(2);
} else {
......
......@@ -88,7 +88,7 @@
</div>
</template>
<template v-if="item.OrderType==1">
课程名称:{{item.CourseName}}
<div v-if="item.CourseName">课程名称:{{item.CourseName}}</div>
<div v-if="item.IsChaBan==1" style="color:red;">
插班报入 插班开始课时:{{item.StartClassHours}}
</div>
......
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