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
fd165559
Commit
fd165559
authored
May 13, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
7d947a57
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
669 additions
and
53 deletions
+669
-53
sale.js
src/api/sale/sale.js
+12
-0
transfer-order.vue
src/components/school/student/transfer-order.vue
+8
-5
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+545
-46
sysuser.vue
src/pages/school/sysuser.vue
+104
-2
No files found.
src/api/sale/sale.js
View file @
fd165559
...
...
@@ -34,6 +34,18 @@ export function setClassOrder(data) {
})
}
/**
* 新增 多个约课订单
*
*/
export
function
SetClassOrderBatch
(
data
)
{
return
request
({
url
:
'/order/SetClassOrderBatch'
,
method
:
'post'
,
data
})
}
/**
* 销售 我的订单
*
...
...
src/components/school/student/transfer-order.vue
View file @
fd165559
...
...
@@ -65,7 +65,7 @@
:max=
"coursePageCount"
:input=
"true"
@
input=
"changePage"
/>
</template>
<
template
v-if=
"mode == 2"
>
<yueke
@
select=
"selectCourse"
:select=
"
defaultCourse
"
></yueke>
<yueke
@
select=
"selectCourse"
:select=
"
selectedCourseList
"
></yueke>
</
template
>
<
template
v-if=
"mode == 3"
>
<vipcourse
ref=
"vipCourse"
@
success=
"$emit('close')"
:stuData=
"stuData"
></vipcourse>
...
...
@@ -73,7 +73,7 @@
</q-step>
<q-step
:name=
"3"
title=
"确认"
icon=
"settings"
:done=
"step > 3"
>
<orderForm
ref=
"orderForm"
:mode=
"mode"
:schoolList=
"schoolList"
:save-obj=
"saveObj"
:stuData=
"stuData"
:modityOrderType=
"1"
:
defaultCourse=
"defaultCourse
"
@
success=
"$emit('close')"
@
cancelloading=
"cancelloading"
></orderForm>
:modityOrderType=
"1"
:
selectedCourseList=
"selectedCourseList
"
@
success=
"$emit('close')"
@
cancelloading=
"cancelloading"
></orderForm>
</q-step>
</q-stepper>
</q-card-section>
...
...
@@ -188,7 +188,8 @@
myClassList
:
[],
allClassList
:
[],
loading1
:
false
,
//防止多次点击
mode
:
1
mode
:
1
,
selectedCourseList
:[],
//多选课程
};
},
mounted
()
{
...
...
@@ -284,6 +285,7 @@
},
// 选择班级
selectClass
(
val
)
{
this
.
selectedCourseList
=
[]
if
(
val
.
length
>
0
)
{
this
.
saveObj
=
val
[
0
];
this
.
saveObj
.
Unit_Price
=
this
.
saveObj
.
SellPrice
;
...
...
@@ -296,14 +298,15 @@
},
// 选择课程
selectCourse
(
val
)
{
this
.
selectedCourseList
=
[]
if
(
val
.
length
>
0
)
{
this
.
saveObj
=
val
[
0
];
this
.
saveObj
.
Unit_Price
=
this
.
saveObj
.
SellPrice
;
this
.
defaultCourse
=
val
;
this
.
selectedCourseList
=
val
;
}
else
{
this
.
saveObj
=
{};
this
.
saveObj
.
Unit_Price
=
0
;
this
.
defaultCourse
=
[];
this
.
selectedCourseList
=
[];
}
},
next
()
{
...
...
src/components/school/student/transfer-order/order-form.vue
View file @
fd165559
This diff is collapsed.
Click to expand it.
src/pages/school/sysuser.vue
View file @
fd165559
...
...
@@ -182,6 +182,11 @@
<q-item-label>
客户交接
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"orderHandover(props.row)"
v-if=
'DeptEmpEnable==1'
>
<q-item-section>
<q-item-label>
订单交接
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
...
...
@@ -194,10 +199,11 @@
</employee-set>
<employee-info
v-if=
"isShowEmpInfo"
:save-obj=
"managerOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</employee-info>
<!-- 企业微信客户交接 -->
<q-dialog
v-model=
"isDetails"
>
<q-card
style=
"width: 450px;"
>
<q-card-section
class=
"row items-center q-pb-none"
>
<div
class=
"text-h6"
>
客户交接
</div>
<div
class=
"text-h6"
>
企业微信
客户交接
</div>
<q-space
/>
<q-btn
icon=
"close"
flat
round
dense
v-close-popup
/>
</q-card-section>
...
...
@@ -210,7 +216,7 @@
</div>
<div
style=
"font-size: 12px;color:red;margin-top: 10px;"
>
注:必须选择一项转移目标
</div>
<div
style=
"display: flex;align-items: center;margin-top: 0px;"
>
<div
style=
"width: 110px;"
>
客户转移
</div>
<div
style=
"width: 110px;"
>
企微
客户转移
</div>
<q-radio
v-model=
"joinMsg.CustomerTransfer"
val=
"1"
label=
"是"
/>
<q-radio
v-model=
"joinMsg.CustomerTransfer"
val=
"2"
label=
"否"
/>
</div>
...
...
@@ -228,6 +234,41 @@
</q-card>
</q-dialog>
<!-- 订单交接 -->
<q-dialog
v-model=
"orderIsDetails"
>
<q-card
style=
"width: 450px;"
>
<q-card-section
class=
"row items-center q-pb-none"
>
<div
class=
"text-h6"
>
订单交接
</div>
<q-space
/>
<q-btn
icon=
"close"
flat
round
dense
v-close-popup
/>
</q-card-section>
<q-separator
/>
<q-card-section>
<div>
<q-select
style=
"width: 100%;"
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
use-input
v-model=
"joinMsg.ReceiveUserId"
@
filter=
"filterFn"
ref=
"Id"
:options=
"Employeelist"
label=
"交接人员"
:dense=
"false"
emit-value
map-options
/>
</div>
<div
style=
"font-size: 12px;color:red;margin-top: 10px;"
>
注:必须选择一项转移目标
</div>
<div
style=
"display: flex;align-items: center;margin-top: 0px;"
>
<div
style=
"width: 110px;"
>
订单转移
</div>
<q-radio
v-model=
"joinMsg.CustomerTransfer"
val=
"1"
label=
"是"
/>
<q-radio
v-model=
"joinMsg.CustomerTransfer"
val=
"2"
label=
"否"
/>
</div>
<div
style=
"display: flex;align-items: center;margin-top: 10px;"
>
<div
style=
"width: 110px;"
>
渠道码人员转移
</div>
<q-radio
v-model=
"joinMsg.ChannelTransfer"
val=
"1"
label=
"是"
/>
<q-radio
v-model=
"joinMsg.ChannelTransfer"
val=
"2"
label=
"否"
/>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"isDetails=false"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"确定"
@
click=
"saveOrderHandoverInfo()"
:loading=
"jtloading"
/>
</q-card-actions>
</q-card>
</q-dialog>
</div>
</div>
</template>
...
...
@@ -428,6 +469,18 @@
Employeelist
:
[],
AllEmployeelist
:
[],
DeptEmpEnable
:
0
,
//是否显示企业微信信息 1 显示
orderIsDetails
:
false
,
//离职人员订单交接
orderHandoverMsg
:{
TransferUserId
:
""
,
//原跟进成员的userid
ReceiveUserId
:
""
,
//接替成员的userid
ClientList
:[
{
handover_userid
:
""
,
external_userid
:
""
,
dimission_time
:
""
}
]
},
//离职人员订单交接数据
}
},
mounted
()
{
...
...
@@ -440,6 +493,55 @@
this
.
getmicrodeploy
()
//获取企业微信的配置
},
methods
:
{
// 订单交接
orderHandover
(
row
){
this
.
orderHandoverMsg
.
TransferUserId
=
row
.
EmAccountId
this
.
orderIsDetails
=
true
},
saveOrderHandoverInfo
()
{
//保存
if
(
this
.
joinMsg
.
ReceiveUserId
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`请选择接替人员`
,
position
:
'top'
})
return
}
if
(
this
.
joinMsg
.
ReceiveUserId
==
this
.
joinMsg
.
TransferUserId
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`接替人员不能是本人`
,
position
:
'top'
})
return
}
if
(
this
.
joinMsg
.
CustomerTransfer
==
2
&&
this
.
joinMsg
.
ChannelTransfer
==
2
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
message
:
`转移目标必须选择一项`
,
position
:
'top'
})
return
}
this
.
jtloading
=
true
setUserCoustomerTransfer
(
this
.
joinMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
this
.
isDetails
=
false
this
.
jtloading
=
false
this
.
getManager
()
})
.
catch
(
err
=>
{
this
.
jtloading
=
false
})
},
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getManager
()
...
...
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