Commit e13523b3 authored by 黄奎's avatar 黄奎

页面修改

parent 03dcad33
......@@ -345,6 +345,13 @@
},
//修改订单
saveOrderInfo() {
if (this.isChaBan == 1) {
this.$refs.CourseId.validate();
this.$refs.StartClassHours.validate();
if (this.$refs.CourseId.hasError || this.$refs.StartClassHours.hasError) {
return;
}
}
//计算应收价格
if (this.OrderMsg.IsChaBan == 1) {
if (this.modityOrderType == 1 || this.modityOrderType == 2) {
......@@ -357,13 +364,6 @@
this.OrderMsg.PreferPrice = (this.OrderMsg.GuestNum * this.OrderMsg.Unit_Price) - this.OrderMsg.LessPrice;
}
}
if (this.isChaBan == 1) {
this.$refs.CourseId.validate();
this.$refs.StartClassHours.validate();
if (this.$refs.CourseId.hasError || this.$refs.StartClassHours.hasError) {
return;
}
}
setClassOrder(this.OrderMsg).then(res => {
if (res.Code == 1) {
this.$q.notify({
......
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