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
d25c7f47
Commit
d25c7f47
authored
Dec 16, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c6461536
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
4 deletions
+88
-4
sale.js
src/api/sale/sale.js
+12
-0
backclass-form.vue
src/components/sale/backclass-form.vue
+76
-4
No files found.
src/api/sale/sale.js
View file @
d25c7f47
...
@@ -214,4 +214,16 @@ export function quertClassOrderList(data) {
...
@@ -214,4 +214,16 @@ export function quertClassOrderList(data) {
method
:
'post'
,
method
:
'post'
,
data
data
})
})
}
/**
* 学员退课申请
*
*/
export
function
SetBackClassApply
(
data
)
{
return
request
({
url
:
'/order/BackClassApply'
,
method
:
'post'
,
data
})
}
}
\ No newline at end of file
src/components/sale/backclass-form.vue
View file @
d25c7f47
...
@@ -2,15 +2,29 @@
...
@@ -2,15 +2,29 @@
<
template
>
<
template
>
<q-dialog
v-model=
"IsShowBackClassDialog"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
<q-dialog
v-model=
"IsShowBackClassDialog"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
transition-hide=
"scale"
>
<q-card
style=
"width:
400px;max-width:5
00px;"
>
<q-card
style=
"width:
800px;max-width:9
00px;"
>
<q-card-section>
<q-card-section>
<div
class=
"text-h6"
>
退课申请
</div>
<div
class=
"text-h6"
>
退课申请
</div>
</q-card-section>
</q-card-section>
<q-table
:loading=
"loading"
no-data-label=
"暂无相关学员数据"
flat
class=
"sticky-column-table"
separator=
"none"
:data=
"studentList"
:columns=
"columns"
hide-bottom
row-key=
"Id"
>
<template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"min-width:190px;width:100%"
>
<q-btn
v-if=
"props.row.GuestState==1"
flat
size=
"xs"
icon=
"iconfont icon-shenhe"
color=
"info"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"申请"
@
click=
"clickItem(props.row,1)"
/>
<q-btn
v-if=
"props.row.AuditStatus==3"
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"重新申请"
@
click=
"clickItem(props.row,2)"
/>
</div>
</q-td>
</
template
>
</q-table>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"applyReason"
style=
"margin-top: 20px"
type=
"textarea"
class=
"col-12"
label=
"申请理由"
/>
<q-separator
/>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeBackClassForm"
/>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeBackClassForm"
/>
<q-btn
label=
"
立即提交
"
color=
"accent"
class=
"q-px-md"
style=
"font-weight:400 !important"
<q-btn
label=
"
确认申请
"
color=
"accent"
class=
"q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveOrderBackClass"
/>
@
click=
"saveOrderBackClass"
/>
</q-card-actions>
</q-card-actions>
</q-card>
</q-card>
...
@@ -37,7 +51,52 @@
...
@@ -37,7 +51,52 @@
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
1000
,
pageSize
:
1000
,
},
},
applyReason
:
""
,
//申请理由
loading
:
false
,
columns
:
[{
name
:
'GuestName'
,
label
:
'姓名'
,
field
:
'GuestName'
,
align
:
'left'
,
},
{
name
:
'SexStr'
,
label
:
'性别'
,
field
:
'SexStr'
,
align
:
'left'
,
},
{
name
:
'Age'
,
label
:
'年龄'
,
field
:
'Age'
,
align
:
'left'
,
},
{
name
:
'Mobile'
,
label
:
'联系电话'
,
align
:
'left'
,
field
:
'Mobile'
},
{
name
:
'ClassHours'
,
label
:
'已上课时'
,
field
:
'ClassHours'
,
align
:
'left'
,
},
{
name
:
'GuestStateStr'
,
label
:
'状态'
,
field
:
'GuestStateStr'
,
align
:
'left'
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'Id'
}
],
studentList
:
[],
//学员列表
studentList
:
[],
//学员列表
chooseItem
:
{},
//当前选择项
}
}
},
},
created
()
{
created
()
{
...
@@ -46,9 +105,17 @@
...
@@ -46,9 +105,17 @@
this
.
getStudentList
();
this
.
getStudentList
();
},
},
methods
:
{
methods
:
{
//当前点击项
clickItem
(
item
,
type
)
{
this
.
chooseItem
=
item
;
},
//关闭弹窗
//关闭弹窗
closeBackClassForm
()
{
closeBackClassForm
()
{
this
.
IsShowBackClassDialog
=
false
;
this
.
IsShowBackClassDialog
=
false
;
this
.
applyReason
=
""
;
this
.
backClassMsg
.
OrderId
=
0
;
this
.
backClassMsg
.
ClassId
=
0
;
this
.
chooseItem
=
{};
this
.
$emit
(
'close'
);
this
.
$emit
(
'close'
);
},
},
//获取订单学员列表
//获取订单学员列表
...
@@ -57,12 +124,17 @@
...
@@ -57,12 +124,17 @@
getOrderGuestPageList
(
this
.
backClassMsg
).
then
(
res
=>
{
getOrderGuestPageList
(
this
.
backClassMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
studentList
=
res
.
Data
.
PageData
;
this
.
studentList
=
res
.
Data
.
PageData
;
console
.
log
(
"res"
,
this
.
studentList
);
}
}
})
})
},
},
//获取学员退课申请
//获取学员退课申请
saveOrderBackClass
()
{
saveOrderBackClass
()
{
var
applyMsg
=
{
GuestId
:
this
.
chooseItem
.
Id
,
OrderId
:
this
.
chooseItem
.
OrderId
,
applyReason
:
this
.
applyReason
};
console
.
log
(
"item"
,
applyMsg
);
// updateOrderRemark(this.OrderRemarkMsg).then(res => {
// updateOrderRemark(this.OrderRemarkMsg).then(res => {
// if (res.Code == 1) {
// if (res.Code == 1) {
// this.$q.notify({
// this.$q.notify({
...
...
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