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
bc572a01
Commit
bc572a01
authored
Dec 14, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时提交
parent
388d2162
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
173 additions
and
6 deletions
+173
-6
index.js
src/api/duty/index.js
+8
-0
schedul-visit.vue
src/components/schedul/schedul-visit.vue
+165
-6
No files found.
src/api/duty/index.js
View file @
bc572a01
...
...
@@ -12,6 +12,14 @@ export function qyeryDutyFrequencyPage(data) {
})
}
export
function
queryDutyTrialLesson
(
data
)
{
return
request
({
url
:
'/DutyPlan/GetDutyTrialLesson'
,
method
:
'post'
,
data
})
}
/**
* 获取班次列表
* @param {JSON参数} data
...
...
src/components/schedul/schedul-visit.vue
View file @
bc572a01
...
...
@@ -422,7 +422,13 @@
>
<
template
v-slot:body-cell-Option=
"props"
>
<q-td
:props=
"props"
>
<q-btn
dense
flat
color=
"primary"
v-if=
"props.row.IsVisit != 1"
>
<q-btn
dense
flat
color=
"primary"
v-if=
"props.row.IsVisit != 1"
@
click=
"setCustomerVisitHandler(props.row.Id)"
>
<q-icon
name=
"edit"
color=
"primary"
...
...
@@ -441,6 +447,53 @@
</q-td>
</
template
>
</q-table>
<q-table
v-if=
"tabCheck == 'third'"
hide-bottom
:columns=
"dutyColumns"
:data=
"shwoTrialList"
:loading=
"loadingObj.trialLoading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
>
<
template
v-slot:body-cell-StuName=
"props"
>
<q-td
:props=
"props"
style=
"border-left:1px solid #E5e5e5;padding:0"
>
<template
v-for=
"(x, i) in props.row.GuestList"
>
<div
:key=
"i"
class=
"q-pa-md"
:style=
"
{
'border-bottom':
i == props.row.GuestList.length - 1
? 'none'
: '1px solid #e5e5e5'
}"
>
{{
x
.
GuestName
}}
</div>
</
template
>
</q-td>
</template>
<
template
v-slot:body-cell-StuPhone=
"props"
>
<q-td
:props=
"props"
style=
"border-right:1px solid #E5e5e5;padding:0"
>
<template
v-for=
"(x, i) in props.row.GuestList"
>
<div
:key=
"i + 'tel'"
class=
"q-pa-md"
:style=
"
{
'border-bottom':
i == props.row.GuestList.length - 1
? 'none'
: '1px solid #e5e5e5'
}"
>
{{
x
.
StuTel
}}
</div>
</
template
>
</q-td>
</template>
</q-table>
</div>
<schedulFanke
v-if=
"isShowDetail"
...
...
@@ -452,8 +505,10 @@
<
script
>
import
{
getTodayVisitList
}
from
"../../api/stuMan/index"
;
import
{
getStudentPage
,
saveStudent
,
getStudentInfo
}
from
"../../api/school"
;
import
{
saveStudentVisitFeedback
}
from
"../../api/customerstudent/customerstudent"
;
import
{
getGuestBasicsEnumList
}
from
"../../api/sale/sale"
;
import
schedulFanke
from
"../schedul/schedul-fanke"
;
import
{
queryDutyTrialLesson
}
from
"../../api/duty/index"
;
export
default
{
props
:
{
...
...
@@ -576,11 +631,49 @@ export default {
field
:
"Option"
}
],
dutyColumns
:
[
{
name
:
"TeacherName"
,
label
:
"试讲老师"
,
field
:
"TeacherName"
,
align
:
"left"
},
{
name
:
"StartTime"
,
label
:
"开始时间"
,
field
:
"StartTime"
,
align
:
"left"
},
{
name
:
"CourseName"
,
label
:
"试讲内容"
,
field
:
"CourseName"
,
align
:
"left"
},
{
name
:
"RoomName"
,
label
:
"教室"
,
field
:
"RoomName"
,
align
:
"left"
},
{
name
:
"StuName"
,
label
:
"客户姓名"
,
align
:
"left"
},
{
name
:
"StuPhone"
,
label
:
"客户电话"
,
align
:
"left"
}
],
searchObj
:
{
arriveVisitKey
:
""
arriveVisitKey
:
""
,
dutyKey
:
""
},
loadingObj
:
{
visitLoading
:
true
visitLoading
:
true
,
trialLoading
:
true
},
data
:
[],
loading
:
true
,
...
...
@@ -683,7 +776,9 @@ export default {
sendObj
:
{},
isShowDetail
:
false
,
todayVistList
:
[],
showTodayVist
:
[]
showTodayVist
:
[],
trialList
:
[],
shwoTrialList
:
[]
};
},
watch
:
{
...
...
@@ -693,6 +788,18 @@ export default {
this
.
initAuth
();
},
immediate
:
true
},
tabCheck
:
{
handler
(
newValue
)
{
if
(
newValue
==
"first"
)
{
this
.
initTodayVistList
();
}
else
if
(
newValue
==
"second"
)
{
this
.
getVisitoryPage
();
}
else
{
this
.
initDutyTrialLessonList
();
}
},
immediate
:
true
}
},
created
()
{},
...
...
@@ -702,6 +809,7 @@ export default {
this
.
initAuth
();
this
.
getVisitoryPage
();
this
.
initTodayVistList
();
this
.
initDutyTrialLessonList
();
},
methods
:
{
submitForm
(
addMsg1
)
{
...
...
@@ -825,19 +933,70 @@ export default {
this
.
loadingObj
.
visitLoading
=
false
;
});
},
setCustomerVisitHandler
(
id
)
{
this
.
$q
.
dialog
({
title
:
"确认到访"
,
message
:
"请再次确认改客户是否到达"
,
cancel
:
true
,
persistent
:
true
})
.
onOk
(()
=>
{
let
msg
=
{
Id
:
id
,
IsVisit
:
1
,
Feedback
:
""
};
saveStudentVisitFeedback
(
msg
).
then
(
r
=>
{
this
.
initTodayVistList
();
});
});
},
initTodayVistList
()
{
this
.
loadingObj
.
visitLoading
=
true
;
if
(
this
.
$route
.
query
.
Id
)
{
let
msg
=
{
Id
:
this
.
$route
.
query
.
Id
};
getTodayVisitList
(
msg
).
then
(
r
=>
{
console
.
log
(
r
);
this
.
todayVistList
=
r
.
Data
;
this
.
showTodayVist
=
this
.
todayVistList
;
this
.
changeVisitList
()
;
this
.
loadingObj
.
visitLoading
=
false
;
});
}
else
{
this
.
loadingObj
.
visitLoading
=
false
;
}
},
changeDutyTrialHander
()
{
this
.
shwoTrialList
=
this
.
trialList
;
return
;
this
.
loadingObj
.
trialLoading
=
true
;
this
.
shwoTrialList
=
[];
this
.
$nextTick
(()
=>
{
this
.
shwoTrialList
=
this
.
trialList
.
filter
(
x
=>
{
return
(
x
.
StuName
.
indexOf
(
this
.
searchObj
.
dutyKey
)
!=
-
1
||
x
.
StuTel
.
indexOf
(
this
.
searchObj
.
dutyKey
)
!=
-
1
);
});
this
.
loadingObj
.
trialLoading
=
false
;
});
},
initDutyTrialLessonList
()
{
this
.
loadingObj
.
trialLoading
=
true
;
if
(
this
.
$route
.
query
.
Id
)
{
let
msg
=
{
Id
:
this
.
$route
.
query
.
Id
};
queryDutyTrialLesson
(
msg
).
then
(
r
=>
{
if
(
r
.
Data
)
{
r
.
Data
.
forEach
(
x
=>
{
x
.
CourseName
=
x
.
CourseName
.
split
(
":"
)[
0
];
});
}
this
.
trialList
=
r
.
Data
;
this
.
changeDutyTrialHander
();
this
.
loadingObj
.
trialLoading
=
false
;
});
}
else
{
this
.
loadingObj
.
trialLoading
=
false
;
}
}
}
};
...
...
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