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
0d7265f5
Commit
0d7265f5
authored
Dec 14, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
044a8938
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
97 deletions
+31
-97
sale.js
src/api/sale/sale.js
+13
-0
orderitem.vue
src/components/sale/orderitem.vue
+3
-2
classorder.vue
src/pages/course/classorder.vue
+10
-95
routes.js
src/router/routes.js
+5
-0
No files found.
src/api/sale/sale.js
View file @
0d7265f5
...
...
@@ -202,3 +202,16 @@ export function getClassOrderLogList(data) {
data
})
}
/**
* 获取班级订单列表
*
*/
export
function
quertClassOrderList
(
data
)
{
return
request
({
url
:
'/order/GetClassOrderList'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/sale/orderitem.vue
View file @
0d7265f5
<
template
>
</
template
>
\ No newline at end of file
<tbody>
</tbody>
</
template
>
src/pages/course/classorder.vue
View file @
0d7265f5
...
...
@@ -13,7 +13,7 @@
<div
class=
"tis-k"
style=
"background: #F28C1D"
></div>
<span>
带班老师头像
</span>
</div>
</div>
<div
class=
"page-content"
>
...
...
@@ -288,14 +288,8 @@
</template>
<
script
>
import
{
getMyOrderPageList
,
//获取订单列表
getOrderStateEnumList
,
//订单状态
updateOrderRemark
,
//修改订单备注
setClassOrderCareOf
,
//订单转交
cancelClassOrder
,
//订单取消
getClassOrderInfo
,
//获取订单详情
getOrderSourceEnumList
,
//获取订单来源 枚举
setClassOrder
,
//修改订单
quertClassOrderList
}
from
'../../api/sale/sale'
;
import
{
queryEmployee
...
...
@@ -314,33 +308,10 @@
dialog
:
false
,
data
:
{},
loading
:
false
,
dateList
:
[],
//报名时间
dateList2
:
[],
//开班时间
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
OrderId
:
0
,
//订单号
GuestName
:
''
,
//客人名称
ClassName
:
''
,
//班级名称
CouseId
:
0
,
//课程id
StartTime
:
''
,
//报名开始时间
EndTime
:
''
,
//报名结束时间
OPStartTime
:
''
,
//开班开始时间
OPEndTime
:
''
,
//开班结束时间
Q_NotCollect
:
'0'
,
//查询未收齐 1是 0否
OrderState
:
0
,
//订单状态 枚举
Q_OrderState
:
1
,
//查询 1正常订单 2取消订单 (默认传1 如果 选择了订单状态 则传 0)
Q_OrderBy
:
2
,
//写死 =2
PlatformTax
:
0
,
//平台税金
ClassId
:
1
},
//订单状态
OrderState
:
[],
pageCount
:
0
,
ClassList
:
[],
//关联课程下拉数据
alert
:
false
,
options
:
[],
CareOfmsg
:
{
model
:
''
,
OrderId
:
0
,
...
...
@@ -356,9 +327,7 @@
}
},
created
()
{
this
.
getOrderState
();
this
.
CourseList
();
this
.
getOrderSEList
()
},
mounted
()
{
this
.
getList
();
...
...
@@ -372,69 +341,15 @@
closeMOSaveForm
()
{
this
.
isShowmyorderForm
=
false
;
},
getOrderSEList
()
{
getOrderSourceEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
tempArray
=
res
.
Data
;
this
.
SourceEnumList
=
tempArray
;
this
.
enrollMsg
.
OrderSource
=
tempArray
[
0
].
Id
;
}
})
},
//订单状态
getOrderState
()
{
getOrderStateEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
tempArray
=
res
.
Data
;
if
(
!
tempArray
)
{
tempArray
=
[];
}
tempArray
.
unshift
({
Id
:
0
,
Name
:
"不限"
})
this
.
OrderState
=
tempArray
;
}
})
},
//获取课程
CourseList
()
{
queryCourseDropdownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
ClassList
=
res
.
Data
;
}
})
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
()
},
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getList
()
},
//获取菜单分页列表
getList
()
{
if
(
this
.
dateList
&&
this
.
dateList
.
length
>
0
)
{
this
.
msg
.
StartTime
=
this
.
dateList
[
0
];
this
.
msg
.
EndTime
=
this
.
dateList
[
1
];
}
else
{
this
.
msg
.
StartTime
=
''
;
this
.
msg
.
EndTime
=
''
;
}
if
(
this
.
dateList2
&&
this
.
dateList2
.
length
>
0
)
{
this
.
msg
.
OPStartTime
=
this
.
dateList2
[
0
];
this
.
msg
.
OPEndTime
=
this
.
dateList2
[
1
];
}
else
{
this
.
msg
.
OPStartTime
=
''
;
this
.
msg
.
OPEndTime
=
''
;
}
this
.
loading
=
true
;
getMyOrderPage
List
(
this
.
msg
).
then
(
res
=>
{
quertClassOrder
List
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
;
this
.
data
=
res
.
Data
}).
catch
(()
=>
{
this
.
loading
=
false
})
...
...
src/router/routes.js
View file @
0d7265f5
...
...
@@ -102,6 +102,11 @@ const routes = [{
component
:
()
=>
import
(
"pages/course/classManage.vue"
)
},
{
path
:
"/course/classorder"
,
//班级订单
component
:
()
=>
import
(
"pages/course/classorder.vue"
)
},
{
path
:
"/course/teachplan"
,
//教案管理
component
:
()
=>
...
...
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