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
2474dc99
Commit
2474dc99
authored
Feb 10, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b399b1db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
355 additions
and
595 deletions
+355
-595
customer.vue
src/components/sale/peerInfo/customer.vue
+165
-228
order.vue
src/components/sale/peerInfo/order.vue
+189
-366
b2bAllCustomer.vue
src/pages/sale/b2bAllCustomer.vue
+1
-1
No files found.
src/components/sale/peerInfo/customer.vue
View file @
2474dc99
<
template
>
<
template
>
<div
class=
"b2bcustomer"
>
<div
class=
"b2bcustomer"
>
<div
class=
"full-width flex no-wrap items-center q-mb-sm"
>
<div
class=
"full-width flex no-wrap items-center q-mb-sm"
>
<q-tabs
<q-tabs
v-model=
"msg.StuStage"
active-color=
"primary"
dense
outside-arrows
align=
"left"
style=
"width:70%"
v-model=
"msg.StuStage"
@
input=
"getStudent"
>
active-color=
"primary"
<q-tab
v-for=
"(item, index) in stagelist"
:key=
"index"
:name=
"item.StuStage"
>
dense
outside-arrows
align=
"left"
style=
"width:70%"
@
input=
"getStudent"
>
<q-tab
v-for=
"(item, index) in stagelist"
:key=
"index"
:name=
"item.StuStage"
>
{{
item
.
StuStageName
}}
(
{{
item
.
StuNum
}}
)
{{
item
.
StuStageName
}}
(
{{
item
.
StuNum
}}
)
</q-tab>
</q-tab>
</q-tabs>
</q-tabs>
<q-input
<q-input
outlined
dense
v-model=
"msg.StuName"
label=
"昵称"
@
input=
"getStudent"
/>
outlined
dense
v-model=
"msg.StuName"
label=
"昵称"
@
input=
"getStudent"
/>
</div>
</div>
<q-table
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
:pagination=
"msg"
separator=
"none"
:data=
"list"
:columns=
"columns"
row-key=
"Id"
>
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"none"
:data=
"list"
:columns=
"columns"
row-key=
"Id"
>
<!--
<template
v-slot:body-cell-StuIcon=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-avatar
size=
"md"
v-if=
"props.value"
>
<img
:src=
"props.value"
/>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
StuName
.
substring
(
0
,
1
)
}}
</q-avatar
>
</q-td>
</
template
>
-->
<template
v-slot:body-cell-StuName=
"props"
>
<template
v-slot:body-cell-StuName=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
@
click=
"getStuRight(props.row)"
>
<div
class=
"text-blue cursor-pointer"
@
click=
"getStuRight(props.row)"
>
...
@@ -61,204 +21,181 @@
...
@@ -61,204 +21,181 @@
</
template
>
</
template
>
<
template
v-slot:body-cell-StuSex=
"props"
>
<
template
v-slot:body-cell-StuSex=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-badge
<q-badge
:color=
"props.value == 1 ? 'negative' : 'primary'"
:label=
"props.value == 1 ? '女' : '男'"
/>
:color=
"props.value == 1 ? 'negative' : 'primary'"
:label=
"props.value == 1 ? '女' : '男'"
/>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-Status=
"props"
>
<
template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-toggle
<q-toggle
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
size=
"md"
title=
"注意:关闭后,学员将无法正常使用."
@
input=
"deleteStudentInfo(props.row)"
/>
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
title=
"注意:关闭后,学员将无法正常使用."
@
input=
"deleteStudentInfo(props.row)"
/>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
class=
"full-width justify-end"
:input=
"true"
@
input=
"changePage"
/>
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
</q-table>
</q-table>
<stuDetail
<stuDetail
v-if=
"isShowStuRight"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
></stuDetail>
v-if=
"isShowStuRight"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
></stuDetail>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getStudentPage
}
from
"../../../api/school"
;
import
{
import
{
getCustomerStuStageStatistics
}
from
"../../../api/sale/peemanagement"
;
getStudentPage
import
stuDetail
from
"../../../components/school/student/studentRight-form"
;
}
from
"../../../api/school"
;
export
default
{
import
{
components
:
{
getCustomerStuStageStatistics
stuDetail
}
from
"../../../api/sale/peemanagement"
;
},
import
stuDetail
from
"../../../components/school/student/studentRight-form"
;
props
:
{
export
default
{
Id
:
{
components
:
{
type
:
Number
,
stuDetail
default
:
0
},
}
props
:
{
},
Id
:
{
data
()
{
type
:
Number
,
return
{
default
:
0
loading
:
false
,
}
list
:
[],
},
pageCount
:
0
,
data
()
{
columns
:
[
return
{
// {
loading
:
false
,
// name: "StuIcon",
list
:
[],
// label: "",
pageCount
:
0
,
// field: "StuIcon",
columns
:
[
// align: "left"
{
// },
name
:
"StuName"
,
{
required
:
true
,
name
:
"StuName"
,
label
:
"昵称"
,
required
:
true
,
align
:
"left"
,
label
:
"昵称"
,
field
:
row
=>
row
.
StuName
align
:
"left"
,
},
field
:
row
=>
row
.
StuName
{
},
name
:
"StuSex"
,
{
label
:
"性别"
,
name
:
"StuSex"
,
field
:
"StuSex"
,
label
:
"性别"
,
align
:
"left"
field
:
"StuSex"
,
},
align
:
"left"
{
},
name
:
"StuBirthStr"
,
{
label
:
"出生日期"
,
name
:
"StuBirthStr"
,
field
:
"StuBirthStr"
,
label
:
"出生日期"
,
align
:
"left"
field
:
"StuBirthStr"
,
},
align
:
"left"
{
},
name
:
"StuTel"
,
{
label
:
"手机号码"
,
name
:
"StuTel"
,
field
:
"StuTel"
,
label
:
"手机号码"
,
align
:
"left"
field
:
"StuTel"
,
},
align
:
"left"
{
},
name
:
"CreateTypeStr"
,
{
label
:
"客户来源"
,
name
:
"CreateTypeStr"
,
field
:
"CreateTypeStr"
,
label
:
"客户来源"
,
align
:
"left"
field
:
"CreateTypeStr"
,
},
align
:
"left"
{
},
name
:
"StuStageName"
,
{
label
:
"客户阶段"
,
name
:
"StuStageName"
,
field
:
"StuStageName"
,
label
:
"客户阶段"
,
align
:
"left"
field
:
"StuStageName"
,
},
align
:
"left"
{
name
:
"CreateTimeStr"
,
label
:
"创建时间"
,
field
:
"CreateTimeStr"
,
align
:
"left"
}
],
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
rowsPerPage
:
10
,
StuName
:
""
,
StuTel
:
""
,
Status
:
"-1"
,
School_Id
:
0
,
CustomerId
:
0
,
StuStage
:
0
},
},
{
stagelist
:
[],
name
:
"CreateTimeStr"
,
stuOption
:
{},
label
:
"创建时间"
,
isShowStuRight
:
false
field
:
"CreateTimeStr"
,
};
align
:
"left"
},
}
methods
:
{
// {
getStudent
()
{
// name: "CreateByName",
this
.
msg
.
CategoryId
=
this
.
Id
;
// label: "负责人",
this
.
loading
=
true
;
// align: "left",
getStudentPage
(
this
.
msg
)
// field: "CreateByName"
.
then
(
res
=>
{
// }
this
.
loading
=
false
;
],
this
.
list
=
res
.
Data
.
PageData
;
msg
:
{
this
.
pageCount
=
res
.
Data
.
PageCount
;
pageIndex
:
1
,
})
pageSize
:
10
,
.
catch
(()
=>
{
rowsPerPage
:
10
,
this
.
loading
=
false
;
StuName
:
""
,
});
StuTel
:
""
,
Status
:
"-1"
,
School_Id
:
0
,
CustomerId
:
0
,
StuStage
:
0
},
},
stagelist
:
[],
getStage
()
{
stuOption
:
{},
getCustomerStuStageStatistics
({
isShowStuRight
:
false
CategoryId
:
this
.
Id
};
}).
then
(
res
=>
{
},
this
.
stagelist
=
res
.
Data
;
methods
:
{
const
total
=
res
.
Data
.
reduce
((
pre
,
cur
)
=>
{
getStudent
()
{
return
cur
.
StuNum
+
pre
;
this
.
msg
.
CustomerId
=
this
.
Id
;
},
0
);
this
.
loading
=
true
;
const
obj
=
{
getStudentPage
(
this
.
msg
)
StuStage
:
0
,
.
then
(
res
=>
{
StuStageName
:
"全部"
,
this
.
loading
=
false
;
StuNum
:
total
this
.
list
=
res
.
Data
.
PageData
;
};
this
.
pageCount
=
res
.
Data
.
PageCount
;
this
.
stagelist
.
unshift
(
obj
);
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
});
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getStudent
();
},
closeStuForm
()
{
this
.
isShowStuRight
=
false
;
},
//点击学生姓名弹出
getStuRight
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
{};
}
this
.
isShowStuRight
=
true
;
}
},
},
getStage
()
{
mounted
()
{
getCustomerStuStageStatistics
({
CustomerId
:
this
.
Id
}).
then
(
res
=>
{
this
.
stagelist
=
res
.
Data
;
const
total
=
res
.
Data
.
reduce
((
pre
,
cur
)
=>
{
return
cur
.
StuNum
+
pre
;
},
0
);
const
obj
=
{
StuStage
:
0
,
StuStageName
:
"全部"
,
StuNum
:
total
};
this
.
stagelist
.
unshift
(
obj
);
});
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getStudent
();
this
.
getStudent
();
},
this
.
getStage
();
closeStuForm
()
{
this
.
isShowStuRight
=
false
;
},
//点击学生姓名弹出
getStuRight
(
obj
)
{
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
{};
}
this
.
isShowStuRight
=
true
;
}
}
},
};
mounted
()
{
this
.
getStudent
();
this
.
getStage
();
}
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.
b2bcustomer
:
:-
webkit-scrollbar
{
.
b2bcustomer
:
:-
webkit-scrollbar
{
width
:
5px
;
width
:
5px
;
height
:
5px
;
height
:
5px
;
}
}
.
b2bcustomer
:
:-
webkit-scrollbar-track
{
background
:
#fff
;
.
b2bcustomer
:
:-
webkit-scrollbar-track
{
border-radius
:
2px
;
background
:
#fff
;
}
border-radius
:
2px
;
.
b2bcustomer
:
:-
webkit-scrollbar-thumb
{
}
background
:
#444
;
border-radius
:
10px
;
.
b2bcustomer
:
:-
webkit-scrollbar-thumb
{
}
background
:
#444
;
.
b2bcustomer
:
:-
webkit-scrollbar-thumb
:
hover
{
border-radius
:
10px
;
background
:
#999
;
}
}
.
b2bcustomer
:
:-
webkit-scrollbar-corner
{
.
b2bcustomer
:
:-
webkit-scrollbar-thumb
:
hover
{
background
:
#204754
;
background
:
#999
;
}
}
</
style
>
.
b2bcustomer
:
:-
webkit-scrollbar-corner
{
background
:
#204754
;
}
</
style
>
\ No newline at end of file
src/components/sale/peerInfo/order.vue
View file @
2474dc99
...
@@ -2,15 +2,7 @@
...
@@ -2,15 +2,7 @@
<div
class=
" myOrder q-pb-lg"
>
<div
class=
" myOrder q-pb-lg"
>
<div
class=
"row q-my-xs"
>
<div
class=
"row q-my-xs"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.OrderId"
label=
"订单号"
dense
maxlength=
"10"
/>
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.OrderId"
label=
"订单号"
dense
maxlength=
"10"
/>
</div>
</div>
</div>
</div>
<div
class=
"row wrap q-gutter-xs q-my-xs"
v-if=
"data.Statistics"
>
<div
class=
"row wrap q-gutter-xs q-my-xs"
v-if=
"data.Statistics"
>
...
@@ -39,392 +31,223 @@
...
@@ -39,392 +31,223 @@
</div>
</div>
<div
style=
"width:100%;overflow:auto"
>
<div
style=
"width:100%;overflow:auto"
>
<orderlist
<orderlist
:dataList=
"data.List"
:authObj=
"authObj"
@
success=
"refreshClassOrder"
:modityOrderType=
"3"
:dataList=
"data.List"
ref=
"orderL"
>
:authObj=
"authObj"
@
success=
"refreshClassOrder"
:modityOrderType=
"3"
ref=
"orderL"
>
</orderlist>
</orderlist>
<div
class=
"row"
style=
"justify-content: flex-end;padding: 5px 20px"
>
<div
class=
"row"
style=
"justify-content: flex-end;padding: 5px 20px"
>
<q-pagination
<q-pagination
v-model=
"msg.pageIndex"
:max=
"pageCount"
@
input=
"changePage"
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:input=
"true"
>
:max=
"pageCount"
@
input=
"changePage"
class=
"full-width justify-end"
color=
"primary"
:input=
"true"
>
</q-pagination>
</q-pagination>
</div>
</div>
</div>
</div>
<classinfo-form
<classinfo-form
v-if=
"isShowClassInfo"
:seting-obj=
"classObjOption"
@
close=
"closeClass"
v-if=
"isShowClassInfo"
@
success=
"refreshClassOrder"
>
:seting-obj=
"classObjOption"
@
close=
"closeClass"
@
success=
"refreshClassOrder"
>
</classinfo-form>
</classinfo-form>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
getMyOrderStatisticsPageList
,
//获取订单列表
getMyOrderStatisticsPageList
,
//获取订单列表
getOrderStateEnumList
//订单状态
getOrderStateEnumList
//订单状态
}
from
"../../../api/sale/sale"
;
}
from
"../../../api/sale/sale"
;
import
{
import
{
queryCourseDropdownList
,
queryCourseDropdownList
,
getCourseSubject
getCourseSubject
}
from
"../../../api/course/index"
;
}
from
"../../../api/course/index"
;
import
myOrderForm
from
"../../../components/sale/myOrder-form"
;
import
myOrderForm
from
"../../../components/sale/myOrder-form"
;
import
classinfoForm
from
"../../../components/course/classinfo-form"
;
import
classinfoForm
from
"../../../components/course/classinfo-form"
;
import
orderlist
from
"./b2bOrderlist"
;
import
orderlist
from
"./b2bOrderlist"
;
import
{
queryEmployee
}
from
"../../../api/users/user"
;
import
{
import
{
EduDownLoad
}
from
"../../../api/common/common"
;
queryEmployee
export
default
{
}
from
"../../../api/users/user"
;
props
:
{
import
{
Id
:
{
EduDownLoad
type
:
Number
,
}
from
"../../../api/common/common"
;
default
:
0
export
default
{
}
props
:
{
},
Id
:
{
components
:
{
type
:
Number
,
myOrderForm
,
default
:
0
classinfoForm
,
orderlist
},
data
()
{
return
{
dialog
:
false
,
data
:
{},
loading
:
false
,
dateList
:
[],
//报名时间
dateList2
:
[],
//开班时间
msg
:
{
pageIndex
:
1
,
pageSize
:
8
,
OrderId
:
""
,
//订单号
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
,
//平台税金
EnterID
:
""
,
//业务员id
ClassNo
:
""
,
//班号
HelpEnterId
:
""
,
//关联教师
CourseSubject
:
""
,
//所属科目
CustomerId
:
0
},
//订单状态
OrderStateList
:
[],
pageCount
:
0
,
CourseList
:
[],
//关联课程下拉数据
classObjOption
:
null
,
isShowClassInfo
:
false
,
//是否显示课程信息
showone
:
false
,
//权限判断
authObj
:
{
isShowGuestBtn
:
0
,
//显示新增学员名单按钮
isShowFinanceBtn
:
false
,
//显示财务单据按钮
isShowTransOrder
:
false
,
//显示转交订单按钮
isShowSaleRemark
:
false
,
//显示修改销售备注
isShowBackClass
:
false
,
//显示退课按钮
isShowRenewClass
:
false
,
//显示续课按钮
isShowEdit
:
false
,
//不显示修改按钮
isShowBackClass
:
false
,
//不显示退课
isShowRenewClass
:
false
//不显示续课
},
EmployeeList
:
[],
//业务员
AllemployeeList
:
[],
TeacherList
:
[],
//关联教师
AllTeacherList
:
[],
CourseSubjectList
:
[]
//科目列表
};
},
created
()
{
if
(
this
.
$route
.
query
.
OrderId
)
{
this
.
msg
.
OrderId
=
this
.
$route
.
query
.
OrderId
;
}
// let nowDay = new Date();
// var year = nowDay.getFullYear(); //年
// var month = nowDay.getMonth() + 1; //月
// var day = nowDay.getDate(); //日
// var currentDay = year + '-' + month + '-' + day;
// this.msg.StartTime = currentDay
// if (this.$route.query.StartTime) {
// this.msg.StartTime = this.$route.query.StartTime + '-01';
// }
// if (this.$route.query.EndTime) {
// this.msg.EndTime = this.$route.query.EndTime + '-01';
// }
if
(
this
.
$route
.
query
.
EnterID
)
{
this
.
msg
.
EnterID
=
Number
(
this
.
$route
.
query
.
EnterID
);
}
if
(
this
.
$route
.
query
.
ClassName
)
{
this
.
msg
.
ClassName
=
decodeURI
(
this
.
$route
.
query
.
ClassName
);
}
this
.
queryCourseSubject
();
this
.
getOrderState
();
this
.
getCourseList
();
},
mounted
()
{
this
.
getList
();
this
.
getEmployee
(
0
);
this
.
getglteacher
();
},
methods
:
{
queryCourseSubject
()
{
getCourseSubject
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
CourseSubjectList
=
res
.
Data
;
}
});
},
//订单状态
getOrderState
()
{
getOrderStateEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
tempArray
=
res
.
Data
;
if
(
!
tempArray
)
{
tempArray
=
[];
}
tempArray
.
unshift
({
Id
:
0
,
Name
:
"不限"
});
this
.
OrderStateList
=
tempArray
;
}
});
},
//获取课程
getCourseList
()
{
queryCourseDropdownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
tempArray
=
res
.
Data
;
if
(
!
tempArray
)
{
tempArray
=
[];
}
tempArray
.
unshift
({
CourseId
:
0
,
CourseName
:
"不限"
});
this
.
CourseList
=
tempArray
;
}
});
},
//翻页
changePage
(
val
)
{
if
(
this
.
showone
==
true
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
}
else
{
this
.
showone
=
true
;
}
}
},
},
resetSearch
()
{
components
:
{
this
.
msg
.
pageIndex
=
1
;
myOrderForm
,
this
.
getList
();
classinfoForm
,
orderlist
},
},
//获取菜单分页列表
data
()
{
getList
()
{
return
{
// if (this.dateList && this.dateList.length > 0) {
dialog
:
false
,
// this.msg.StartTime = this.dateList[0];
data
:
{},
// this.msg.EndTime = this.dateList[1];
loading
:
false
,
// } else {
dateList
:
[],
//报名时间
// this.msg.StartTime = '';
dateList2
:
[],
//开班时间
// this.msg.EndTime = '';
msg
:
{
// }
pageIndex
:
1
,
if
(
this
.
dateList2
&&
this
.
dateList2
.
length
>
0
)
{
pageSize
:
8
,
this
.
msg
.
OPStartTime
=
this
.
dateList2
[
0
];
OrderId
:
""
,
//订单号
this
.
msg
.
OPEndTime
=
this
.
dateList2
[
1
];
GuestName
:
""
,
//客人名称
}
else
{
ClassName
:
""
,
//班级名称
this
.
msg
.
OPStartTime
=
""
;
CouseId
:
0
,
//课程id
this
.
msg
.
OPEndTime
=
""
;
StartTime
:
""
,
//报名开始时间
}
EndTime
:
""
,
//报名结束时间
this
.
msg
.
CustomerId
=
this
.
Id
;
OPStartTime
:
""
,
//开班开始时间
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
OPEndTime
:
""
,
//开班结束时间
if
(
msg
.
OrderId
==
""
||
msg
.
OrderId
==
null
)
{
Q_NotCollect
:
"0"
,
//查询未收齐 1是 0否
msg
.
OrderId
=
0
;
OrderState
:
0
,
//订单状态 枚举
}
Q_OrderState
:
1
,
//查询 1正常订单 2取消订单 (默认传1 如果 选择了订单状态 则传 0)
Q_OrderBy
:
2
,
//写死 =2
this
.
loading
=
true
;
PlatformTax
:
0
,
//平台税金
getMyOrderStatisticsPageList
(
msg
)
EnterID
:
""
,
//业务员id
.
then
(
res
=>
{
ClassNo
:
""
,
//班号
this
.
data
=
res
.
Data
.
PageData
;
HelpEnterId
:
""
,
//关联教师
let
OrderIds
=
[];
CourseSubject
:
""
,
//所属科目
this
.
data
.
List
.
forEach
(
x
=>
{
CustomerId
:
0
,
OrderIds
.
push
(
x
.
OrderId
);
CategoryId
:
0
,
});
},
this
.
loading
=
false
;
//订单状态
OrderIds
=
OrderIds
.
join
(
","
);
OrderStateList
:
[],
if
(
this
.
data
.
List
.
length
>
0
)
{
pageCount
:
0
,
this
.
$refs
.
orderL
.
getOrderFinanceList
(
OrderIds
,
1
);
CourseList
:
[],
//关联课程下拉数据
}
classObjOption
:
null
,
this
.
pageCount
=
res
.
Data
.
PageCount
;
isShowClassInfo
:
false
,
//是否显示课程信息
})
showone
:
false
,
.
catch
(()
=>
{
//权限判断
this
.
loading
=
false
;
authObj
:
{
});
isShowGuestBtn
:
0
,
//显示新增学员名单按钮
isShowFinanceBtn
:
false
,
//显示财务单据按钮
isShowTransOrder
:
false
,
//显示转交订单按钮
isShowSaleRemark
:
false
,
//显示修改销售备注
isShowBackClass
:
false
,
//显示退课按钮
isShowRenewClass
:
false
,
//显示续课按钮
isShowEdit
:
false
,
//不显示修改按钮
isShowBackClass
:
false
,
//不显示退课
isShowRenewClass
:
false
//不显示续课
},
};
},
},
//刷新页面
created
()
{},
refreshClassOrder
()
{
mounted
()
{
this
.
getList
();
this
.
getList
();
},
},
getClassInfo
(
obj
)
{
methods
:
{
//打开班级详情组件
//翻页
this
.
classObjOption
=
obj
;
changePage
(
val
)
{
this
.
isShowClassInfo
=
true
;
if
(
this
.
showone
==
true
)
{
},
this
.
msg
.
pageIndex
=
val
;
//关闭班级信息弹窗
this
.
getList
();
closeClass
()
{
this
.
isShowClassInfo
=
false
;
},
getglteacher
()
{
var
qMsg
=
{
AccountTypeStr
:
2
};
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
let
obj
=
{
Id
:
""
,
EmployeeName
:
"不限"
};
this
.
TeacherList
.
unshift
(
obj
);
this
.
AllTeacherList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
TeacherList
));
}
});
},
//筛选关联老师
filterFn3
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
""
)
{
this
.
TeacherList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllTeacherList
));
}
else
{
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
showone
=
true
;
this
.
TeacherList
=
this
.
AllTeacherList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
}
});
},
},
resetSearch
()
{
//业务员
this
.
msg
.
pageIndex
=
1
;
getEmployee
(
id
)
{
this
.
getList
();
var
qMsg
=
{
},
Dept_Id
:
0
//获取菜单分页列表
};
getList
()
{
qMsg
.
Dept_Id
=
id
;
this
.
msg
.
CategoryId
=
this
.
Id
;
queryEmployee
(
qMsg
)
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
.
then
(
res
=>
{
if
(
msg
.
OrderId
==
""
||
msg
.
OrderId
==
null
)
{
if
(
res
.
Code
==
1
)
{
msg
.
OrderId
=
0
;
this
.
EmployeeList
=
res
.
Data
;
let
obj
=
{
Id
:
""
,
EmployeeName
:
"不限"
};
this
.
EmployeeList
.
unshift
(
obj
);
this
.
AllemployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
EmployeeList
)
);
}
})
.
catch
(()
=>
{});
},
//筛选业务员
filterFn2
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
""
)
{
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllemployeeList
));
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
EmployeeList
=
this
.
AllemployeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
}
});
this
.
loading
=
true
;
},
console
.
log
(
"msg"
,
msg
);
goexport
()
{
getMyOrderStatisticsPageList
(
msg
)
//导出
.
then
(
res
=>
{
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
this
.
data
=
res
.
Data
.
PageData
;
EduDownLoad
(
let
OrderIds
=
[];
"/order/GetOrderPageListStatisticsToExcel"
,
this
.
data
.
List
.
forEach
(
x
=>
{
msg
,
OrderIds
.
push
(
x
.
OrderId
);
"订单列表.xls"
});
);
this
.
loading
=
false
;
OrderIds
=
OrderIds
.
join
(
","
);
if
(
this
.
data
.
List
.
length
>
0
)
{
this
.
$refs
.
orderL
.
getOrderFinanceList
(
OrderIds
,
1
);
}
this
.
pageCount
=
res
.
Data
.
PageCount
;
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
},
//刷新页面
refreshClassOrder
()
{
this
.
getList
();
},
getClassInfo
(
obj
)
{
//打开班级详情组件
this
.
classObjOption
=
obj
;
this
.
isShowClassInfo
=
true
;
},
//关闭班级信息弹窗
closeClass
()
{
this
.
isShowClassInfo
=
false
;
},
}
}
}
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
li
{
li
{
list-style-type
:
none
;
list-style-type
:
none
;
}
}
.myOrder
ul
{
.myOrder
ul
{
padding
:
0px
;
padding
:
0px
;
}
}
.myOrder
.price-popup
{
.myOrder
.price-popup
{
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.myOrder
.el-range-editor
.el-range-input
{
.myOrder
.el-range-editor
.el-range-input
{
background
:
transparent
;
background
:
transparent
;
}
}
.myOrder
.el-range-editor.el-input__inner
{
.myOrder
.el-range-editor.el-input__inner
{
background-color
:
transparent
;
background-color
:
transparent
;
}
}
.myOrder
.q-mb-md
{
.myOrder
.q-mb-md
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
.myOrder
.stics
{
.myOrder
.stics
{
padding
:
5px
10px
;
padding
:
5px
10px
;
background
:
#dddee0
;
background
:
#dddee0
;
border-radius
:
4px
;
border-radius
:
4px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#000000
;
color
:
#000000
;
font-weight
:
bold
;
font-weight
:
bold
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.myOrder
.stics
.stics-name
{
.myOrder
.stics
.stics-name
{
color
:
#2d2d2d
;
color
:
#2d2d2d
;
font-weight
:
600
;
font-weight
:
600
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.myOrder
.tis
{
.myOrder
.tis
{
margin
:
10px
0
;
margin
:
10px
0
;
align-items
:
center
;
align-items
:
center
;
}
}
.myOrder
.tis
.tis-k
{
.myOrder
.tis
.tis-k
{
width
:
10px
;
width
:
10px
;
height
:
10px
;
height
:
10px
;
margin-right
:
8px
;
margin-right
:
8px
;
}
}
.myOrder
.tis
span
{
.myOrder
.tis
span
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#2d2d2d
;
color
:
#2d2d2d
;
font-weight
:
600
;
font-weight
:
600
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.myOrder
.el-input__inner
{
.myOrder
.el-input__inner
{
border
:
none
!important
;
border
:
none
!important
;
background
:
transparent
!important
;
background
:
transparent
!important
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/pages/sale/b2bAllCustomer.vue
View file @
2474dc99
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
"QQ"
,
"QQ"
,
"WeChatNo"
,
"WeChatNo"
,
],
],
tabCheck
:
1
,
tabCheck
:
2
,
//审核状态列表
//审核状态列表
ApproveStateList
:
[
ApproveStateList
:
[
{
{
...
...
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