Commit 05b4b390 authored by zhengke's avatar zhengke

修改

parent 40add874
......@@ -49,8 +49,15 @@
maxlength="50" v-model="OrderMsg.GeneralOccupation" class="col-12 q-pb-lg" label="一般同行" />
<q-input :disable="(modityOrderType==2)" v-if="OrderMsg.OrderSource==7" filled stack-label :dense="false"
maxlength="50" v-model="OrderMsg.EduOccupation" class="col-12 q-pb-lg" label="教育同行" />
<q-select v-if="classHour==1" v-model="OrderMsg.ClassHour" :options="CourseList" filled
use-input label="已上课时" option-label="Name" option-value="Id"
class="col-6 q-pb-lg" emit-value map-options>
</q-select>
<q-toggle :disable="(modityOrderType==2)" v-model="OrderMsg.IsLessPrice" :false-value="0" :true-value="1"
label="是否少价" class="q-mb-md" />
<q-input :disable="(modityOrderType==2)" v-if="OrderMsg.IsLessPrice==1"
@keyup.native="checkPrice(OrderMsg,'LessPrice')" maxlength="10" filled stack-label :dense="false"
v-model="OrderMsg.LessPrice" class="col-12" label="少价金额" />
......@@ -112,6 +119,11 @@
modityOrderType: {
type: Number,
default: 0, //1-销售修改,2-OP修改,3-总经理修改
},
//已上课时
classHour: {
type: Number,
default: 0,
}
},
data() {
......@@ -135,6 +147,7 @@
LessPrice: 0, //少价金额
OrderNature: 1, //订单性质
OldPreferPrice: 0, //原实际应收
ClassHour:1 //已上课时
},
IsShowUpPrice: false, //是否显示高于定价
StepPriceList: [],
......@@ -155,7 +168,15 @@
Name: '返佣'
}
],
isHaveModify: false
isHaveModify: false,
//已上课时
CourseList:[{
Id:1,
Name:'第一课'
},{
Id:2,
Name:'第二课'
}]
}
},
created() {
......@@ -172,6 +193,7 @@
}
},
mounted() {
console.log(this.modityOrderType,'modityOrderType');
this.initData()
},
methods: {
......
......@@ -249,8 +249,8 @@
</div>
<div class="d7">
<div>
<q-btn style="margin-top:40px;" color="primary" size="sm" label="立即下单" v-if="item.IsCanApply==1"
@click="placeAnorder(item)" />
<q-btn style="margin-top:20px;" color="primary" size="sm" label="立即下单" v-if="item.IsCanApply==1"
@click="placeAnorder(item,-1)" />
</div>
<div v-if="item.IsCanApply==0">
<img src="../../assets/images/administration/bmym.png" alt=""
......@@ -260,8 +260,9 @@
</div>
<div>
<q-btn style="margin-top:10px;" size="sm" color="primary" label="订单中心" @click="goclassorder(item)" />
<q-btn style="margin-top:10px;" size="sm" color="primary" label="插班报名" @click="" />
</div>
<div>
<q-btn style="margin-top:10px;" size="sm" color="primary" label="插班报名" @click="placeAnorder(item,1)" />
</div>
</div>
</div>
......@@ -282,7 +283,7 @@
</ul>
<div v-else style="width: 100%;color: #999999;text-align: center;font-size: 15px">暂无数据</div>
</div>
<editorder-form v-if="isShowEditOrderForm" :save-obj="orderObj" :orderType="1" @close="closeOrderSaveForm"
<editorder-form v-if="isShowEditOrderForm" :save-obj="orderObj" :orderType="1" :classHour="classHour" @close="closeOrderSaveForm"
@success="refreshOrder">
</editorder-form>
</div>
......@@ -340,7 +341,8 @@
orderObj: {
ClassId: 0,
Unit_Price: 0,
}
},
classHour:-1
}
},
created() {
......@@ -501,7 +503,9 @@
this.loading = false
})
},
placeAnorder(item) {
//立即报名和插班报名
placeAnorder(item,type) {
this.classHour=type;
this.orderObj.ClassId = item.ClassId;
this.orderObj.Unit_Price = item.SellPrice;
this.isShowEditOrderForm = true;
......
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