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
59459c21
Commit
59459c21
authored
Dec 17, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
dd082416
fcba2775
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
87 deletions
+126
-87
stulist.vue
src/components/school/student/stulist.vue
+1
-1
courselist.vue
src/components/school/student/transfer-order/courselist.vue
+84
-79
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+41
-7
No files found.
src/components/school/student/stulist.vue
View file @
59459c21
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"stuList"
>
<div
class=
"stuList"
>
<q-table
:pagination=
"pageMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"
multip
le"
<q-table
:pagination=
"pageMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"
sing
le"
:selected
.
sync=
"selection"
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
:selected
.
sync=
"selection"
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"StuId"
hide-bottom
>
:data=
"dataList"
:columns=
"columns"
row-key=
"StuId"
hide-bottom
>
<template
v-slot:top
>
<template
v-slot:top
>
...
...
src/components/school/student/transfer-order/courselist.vue
View file @
59459c21
<
template
>
<
template
>
<div
class=
"orderCourse"
>
<q-table
:pagination=
"msg"
selection=
"single"
:selected
.
sync=
"selection"
no-data-label=
"暂无相关数据"
flat
<q-table
class=
"sticky-tow-column-table sticky-two-header-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
:pagination=
"msg"
row-key=
"ClassId"
@
update:selected=
"emitSel"
table-class=
"table"
hide-bottom
>
selection=
"single"
</q-table>
:selected
.
sync=
"selection"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table "
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"ClassId"
title=
"日语培训产品列表"
@
update:selected =
"emitSel"
>
<!--
<template
v-slot:body-cell-ClassName=
"props"
>
<q-td
:props=
"props"
>
{{
props
.
row
.
ClassName
}}
</q-td>
</
template
>
-->
<
template
v-slot:bottom
>
</
template
>
</q-table>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:
{
props
:
{
dataList
:
{
dataList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
select
:{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
selection
:
[],
msg
:
{
pageIndex
:
1
,
rowsPerPage
:
0
},
},
columns
:
[
select
:
{
{
type
:
Array
,
name
:
"ClassName"
,
default
:
()
=>
[]
label
:
"班级"
,
}
align
:
"left"
,
},
field
:
"ClassName"
data
()
{
},
return
{
{
selection
:
[],
name
:
"CourseName"
,
msg
:
{
label
:
"课程"
,
pageIndex
:
1
,
field
:
"CourseName"
,
rowsPerPage
:
0
align
:
"left"
},
{
name
:
"TeacherName"
,
label
:
"老师"
,
field
:
"TeacherName"
,
align
:
"left"
},
},
{
columns
:
[{
name
:
"OpenTime"
,
name
:
"ClassName"
,
label
:
"上课时间"
,
label
:
"班级"
,
field
:
"OpenTime"
,
align
:
"left"
,
align
:
"left"
field
:
"ClassName"
}
},
]
{
};
name
:
"CourseName"
,
},
label
:
"课程"
,
mounted
()
{
field
:
"CourseName"
,
this
.
selection
=
this
.
select
align
:
"left"
},
},
methods
:
{
{
emitSel
(
val
){
name
:
"TeacherName"
,
this
.
$emit
(
"select"
,
val
)
label
:
"老师"
,
field
:
"TeacherName"
,
align
:
"left"
},
{
name
:
"OpenTime"
,
label
:
"上课时间"
,
field
:
"OpenTime"
,
align
:
"left"
}
]
};
},
mounted
()
{
this
.
selection
=
this
.
select
},
methods
:
{
emitSel
(
val
)
{
this
.
$emit
(
"select"
,
val
)
},
},
}
}
};
};
</
script
>
</
script
>
<
style
>
<
style
>
.orderCourse
.q-table__bottom
{
.table
{
min-height
:
0
;
max-height
:
400px
;
}
}
.table
::-webkit-scrollbar
{
width
:
5px
;
height
:
5px
;
}
.table
::-webkit-scrollbar-track
{
background
:
#fff
;
border-radius
:
2px
;
}
.table
::-webkit-scrollbar-thumb
{
background
:
#444
;
border-radius
:
10px
;
}
.table
::-webkit-scrollbar-thumb:hover
{
background
:
#999
;
}
.table
::-webkit-scrollbar-corner
{
background
:
#204754
;
}
</
style
>
</
style
>
src/components/school/student/transfer-order/order-form.vue
View file @
59459c21
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
label=
"客人来源"
label=
"客人来源"
/>
/>
<q-select
<q-select
:disable=
"
modityOrderType == 2 || OrderMsg.JoinType == 3
"
:disable=
"
(modityOrderType == 2 || OrderMsg.JoinType == 3)||HelpEnterDisable
"
v-model=
"OrderMsg.HelpEnterId"
v-model=
"OrderMsg.HelpEnterId"
:options=
"EmployeeList"
:options=
"EmployeeList"
filled
filled
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
</
template
>
</
template
>
</q-select>
</q-select>
<q-select
<q-select
:disable=
"
modityOrderType == 2 || OrderMsg.JoinType == 3
"
:disable=
"
(modityOrderType == 2 || OrderMsg.JoinType == 3)||CourseConsultantDisable
"
v-model=
"OrderMsg.CourseConsultantId"
v-model=
"OrderMsg.CourseConsultantId"
:options=
"EmployeeList"
:options=
"EmployeeList"
filled
filled
...
@@ -293,6 +293,15 @@
...
@@ -293,6 +293,15 @@
label=
"少价金额(每人)"
label=
"少价金额(每人)"
:hint=
"'总少价金额:' + OrderMsg.PerLessMoney * OrderMsg.GuestNum"
:hint=
"'总少价金额:' + OrderMsg.PerLessMoney * OrderMsg.GuestNum"
/>
/>
<q-input
disable
v-if=
"OrderMsg.EnterId >0"
filled
stack-label
v-model=
"EnterName"
class=
"col-6 q-py-sm"
label=
"市场人员"
/>
<q-input
<q-input
filled
filled
stack-label
stack-label
...
@@ -322,9 +331,10 @@ import {
...
@@ -322,9 +331,10 @@ import {
queryChaClassInfo
,
queryChaClassInfo
,
GetSelectClassOrderList
,
//获取前置下拉
GetSelectClassOrderList
,
//获取前置下拉
}
from
"../../../../api/sale/sale"
;
}
from
"../../../../api/sale/sale"
;
import
{
GetStudentAssistList
,
}
from
'../../../../api/sale/sale'
//获取协助人员
import
{
queryEmployee
}
from
"../../../../api/users/user"
;
//获取员工
import
{
queryEmployee
}
from
"../../../../api/users/user"
;
//获取员工
import
{
mapState
}
from
"vuex"
;
export
default
{
export
default
{
props
:
{
props
:
{
saveObj
:
{
saveObj
:
{
...
@@ -384,9 +394,11 @@ export default {
...
@@ -384,9 +394,11 @@ export default {
CustomerId
:
0
,
//同行
CustomerId
:
0
,
//同行
OrderIdentify
:
2
,
//标识参数, 1产品下单 2客户转订单
OrderIdentify
:
2
,
//标识参数, 1产品下单 2客户转订单
StuIds
:
""
,
StuIds
:
""
,
EnterId
:
0
,
//市场人员
// NormalCommission:'',//正常返佣金额
// NormalCommission:'',//正常返佣金额
// RenewCommission:"",// 预计返佣金额
// RenewCommission:"",// 预计返佣金额
},
},
EnterName
:
''
,
//市场人员
Unit_PriceRemark
:
""
,
//单价规则
Unit_PriceRemark
:
""
,
//单价规则
IsShowUpPrice
:
false
,
//是否显示高于定价
IsShowUpPrice
:
false
,
//是否显示高于定价
UnitPrice
:
0
,
UnitPrice
:
0
,
...
@@ -396,6 +408,8 @@ export default {
...
@@ -396,6 +408,8 @@ export default {
CourseList
:
[],
//课程列表
CourseList
:
[],
//课程列表
courseObj
:
{},
//选择的课程
courseObj
:
{},
//选择的课程
beforeOrderList
:
[],
//前置订单数据
beforeOrderList
:
[],
//前置订单数据
HelpEnterDisable
:
false
,
//是否可选择协助教师
CourseConsultantDisable
:
false
,
//是否可选择课程顾问
};
};
},
},
created
()
{
created
()
{
...
@@ -409,9 +423,30 @@ export default {
...
@@ -409,9 +423,30 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
initData
();
this
.
initData
();
this
.
getAssistList
();
this
.
OrderMsg
.
EnterId
=
this
.
stuData
.
EnterId
this
.
EnterName
=
this
.
stuData
.
EnterName
},
},
watch
:
{},
methods
:
{
methods
:
{
//获取协助人员
getAssistList
()
{
const
ids
=
this
.
stuData
.
StuList
.
map
(
e
=>
e
.
StuId
).
toString
();
GetStudentAssistList
({
StuId
:
ids
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
console
.
log
(
422
,
res
.
Data
)
res
.
Data
.
map
(
e
=>
{
if
(
e
.
AssistType
==
4
){
this
.
OrderMsg
.
HelpEnterId
=
e
.
AssistId
this
.
HelpEnterDisable
=
true
}
if
(
e
.
AssistType
==
2
){
this
.
OrderMsg
.
CourseConsultantId
=
e
.
AssistId
this
.
CourseConsultantDisable
=
true
}
})
}
})
},
//获取班级课程信息
//获取班级课程信息
initConfig
()
{
initConfig
()
{
var
qMsg
=
{
var
qMsg
=
{
...
@@ -438,7 +473,6 @@ export default {
...
@@ -438,7 +473,6 @@ export default {
},
},
//计算课程单价和应收金额
//计算课程单价和应收金额
calcPrice
()
{
calcPrice
()
{
console
.
log
(
"this.OrderMsg"
,
this
.
OrderMsg
)
var
guestNum
=
0
;
var
guestNum
=
0
;
if
(
this
.
OrderMsg
.
GuestNum
&&
this
.
OrderMsg
.
GuestNum
>
0
)
{
if
(
this
.
OrderMsg
.
GuestNum
&&
this
.
OrderMsg
.
GuestNum
>
0
)
{
guestNum
=
Number
(
this
.
OrderMsg
.
GuestNum
);
guestNum
=
Number
(
this
.
OrderMsg
.
GuestNum
);
...
@@ -675,7 +709,7 @@ export default {
...
@@ -675,7 +709,7 @@ export default {
//修改订单
//修改订单
saveOrderInfo() {
saveOrderInfo() {
//插班验证课程和生效时间
//插班验证课程和生效时间
console.log(
783
,this.OrderMsg)
console.log(
"OrderMsg"
,this.OrderMsg)
if (this.OrderMsg.IsChaBan == 1) {
if (this.OrderMsg.IsChaBan == 1) {
this.$refs.CourseId.validate();
this.$refs.CourseId.validate();
this.$refs.EffectTime.validate();
this.$refs.EffectTime.validate();
...
...
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