Commit 91360a3c authored by Mac's avatar Mac

学员转订单

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