Commit 91360a3c authored by Mac's avatar Mac

学员转订单

parent 2d116d47
......@@ -133,6 +133,7 @@
:stuData="stuData"
:modityOrderType="1"
@success="$emit('close')"
@cancelloading = 'cancelloading'
></orderForm>
</q-step>
</q-stepper>
......@@ -155,6 +156,7 @@
<q-btn
label="保存"
color="primary"
:loading="loading1"
@click="saveOrderForm"
v-if="step == 2"
/>
......@@ -250,7 +252,8 @@ export default {
schoolList: [],
ClassList: [], //关联课程下拉数据
myClassList: [],
allClassList: []
allClassList: [],
loading1:false,//防止多次点击
};
},
mounted() {
......@@ -399,8 +402,12 @@ export default {
this.getCourseList();
},
saveOrderForm() {
this.loading1 = true
this.$refs.orderForm.saveOrderInfo();
}
},
cancelloading(){
this.loading1 = false
},
}
};
</script>
......
......@@ -331,6 +331,23 @@
>
<q-icon name="iconfont icon-jujue1" size="26px" />
</div>
<q-dialog v-model="inception">
<q-card v-if="inceptionData">
<q-card-section>
<div class="text-h6">提示</div>
</q-card-section>
<q-card-section class="q-pt-none">
{{inceptionData.Message}}
</q-card-section>
<q-card-actions align="right" class="text-primary">
<q-btn flat label="取消" size="sm" v-close-popup />
<q-btn label="立即查看" size="sm" color="accent q-px-md" style="font-weight:400 !important" @click="goorder" />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
......@@ -419,7 +436,9 @@ export default {
courseObj: {}, //选择的课程
beforeOrderList: [], //前置订单数据
HelpEnterDisable: false, //是否可选择协助教师
CourseConsultantDisable: false //是否可选择课程顾问
CourseConsultantDisable: false, //是否可选择课程顾问
inception:false,
inceptionData:null,
};
},
created() {
......@@ -775,6 +794,7 @@ export default {
this.OrderMsg.StuIds = this.stuData.StuList.map(e => e.StuId).toString();
this.OrderMsg.CustomerId = this.stuData.CustomerId;
setClassOrder(this.OrderMsg).then(res => {
this.$emit("cancelloading");//取消按钮的加载
if (res.Code == 1) {
this.$q.notify({
icon: "iconfont icon-chenggong",
......@@ -793,8 +813,21 @@ export default {
message: res.Message
});
}
})
.catch(err=>{
this.$emit("cancelloading");//取消按钮的加载
if(err.Code==2){
this.inceptionData = err
this.inception = true;
}
});
},
goorder(){
this.OpenNewUrl('/sale/myOrder', {
OrderId: this.inceptionData.Data,
});
this.inception = false;
},
//获取前置下拉数据
getSelectClass() {
var qMsg = {
......
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