Commit 2a8b649e authored by zhengke's avatar zhengke

修改

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