Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
91360a3c
Commit
91360a3c
authored
Jan 18, 2022
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学员转订单
parent
2d116d47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
3 deletions
+43
-3
transfer-order.vue
src/components/school/student/transfer-order.vue
+9
-2
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+34
-1
No files found.
src/components/school/student/transfer-order.vue
View file @
91360a3c
...
...
@@ -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
>
...
...
src/components/school/student/transfer-order/order-form.vue
View file @
91360a3c
...
...
@@ -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 = {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment