Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
28db2287
Commit
28db2287
authored
Jun 24, 2023
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
治疗详情页
parent
877e5bee
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
332 additions
and
70 deletions
+332
-70
treatment.js
src/api/business/treatment.js
+18
-1
treatment-detail.vue
...vice-management/treatment-management/treatment-detail.vue
+262
-38
treatment-management.vue
...-management/treatment-management/treatment-management.vue
+52
-31
No files found.
src/api/business/treatment.js
View file @
28db2287
...
@@ -21,8 +21,25 @@ export function selectTreatListP(query) {
...
@@ -21,8 +21,25 @@ export function selectTreatListP(query) {
// 查询治疗列表不分页
// 查询治疗列表不分页
export
function
selectTreatAll
(
query
)
{
export
function
selectTreatAll
(
query
)
{
return
request
({
return
request
({
url
:
'/business/treat/
use
ListAll'
,
url
:
'/business/treat/
treat
ListAll'
,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
})
})
}
}
// 修改治疗管理
export
function
updateTreatList
(
data
)
{
return
request
({
url
:
'/business/treat'
,
method
:
'put'
,
data
:
data
})
}
// 通过id查询详情
export
function
getTreatDetail
(
id
)
{
return
request
({
url
:
'/business/treat/'
+
id
,
method
:
'get'
})
}
src/views/service-management/treatment-management/treatment-detail.vue
View file @
28db2287
This diff is collapsed.
Click to expand it.
src/views/service-management/treatment-management/treatment-management.vue
View file @
28db2287
...
@@ -218,11 +218,17 @@
...
@@ -218,11 +218,17 @@
:
data
=
"appointmentRoomList"
:
data
=
"appointmentRoomList"
style
=
"width: 100%"
style
=
"width: 100%"
>
>
<
el
-
table
-
column
prop
=
"date"
align
=
"left"
label
=
"诊室名称"
/>
<
el
-
table
-
column
prop
=
"consultRoomName"
align
=
"left"
label
=
"诊室名称"
/>
<
el
-
table
-
column
prop
=
"date"
align
=
"left"
label
=
"治疗日期"
/>
<
el
-
table
-
column
prop
=
"treatStartTime"
align
=
"left"
label
=
"治疗日期"
/>
<
el
-
table
-
column
prop
=
"date"
align
=
"left"
label
=
"治疗时段"
/>
<
el
-
table
-
column
prop
=
"treatStartTime"
align
=
"left"
label
=
"治疗时段"
>
<
el
-
table
-
column
prop
=
"date"
align
=
"left"
label
=
"治疗时长"
/>
<
template
slot
-
scope
=
"scope"
>
<
el
-
table
-
column
prop
=
"date"
align
=
"left"
label
=
"治疗负责人"
/>
<
span
v
-
show
=
"scope.row.treatStartTime!== null"
>
{{
parseTime
(
scope
.
row
.
treatStartTime
,
'{h
}
:{m
}
'
)
}}
<
/span
>
<
span
v
-
show
=
"scope.row.treatEndTime!== null"
>~
{{
parseTime
(
scope
.
row
.
treatEndTime
,
'{h
}
:{m
}
'
)
}}
<
/span
>
<
span
v
-
show
=
"scope.row.treatStartTime === null&& scope.row.treatEndTime=== null"
>-<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"left"
label
=
"治疗时长"
/>
<
el
-
table
-
column
prop
=
"treatOperator"
align
=
"left"
label
=
"治疗负责人"
/>
<
/el-table
>
<
/el-table
>
<
div
style
=
"display: flex;padding-top: 20px;padding-bottom: 20px;"
>
<
div
style
=
"display: flex;padding-top: 20px;padding-bottom: 20px;"
>
<
div
class
=
"tip1"
/>
<
div
class
=
"tip1"
/>
...
@@ -232,12 +238,12 @@
...
@@ -232,12 +238,12 @@
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"8"
>
<
el
-
col
:
span
=
"8"
>
<
el
-
form
-
item
label
=
"诊室"
prop
=
"consultRoomId"
>
<
el
-
form
-
item
label
=
"诊室"
prop
=
"consultRoomId"
>
<
el
-
select
v
-
model
=
"
appointmentRoom.consultRoomId"
clearable
placeholder
=
"请选择诊室
"
>
<
el
-
select
v
-
model
=
"
reservationForm.consultRoomName"
clearable
placeholder
=
"请选择诊室"
value
-
key
=
"id"
@
change
=
"getconsultingName
"
>
<
el
-
option
<
el
-
option
v
-
for
=
"item in consultingName"
v
-
for
=
"item in consultingName"
:
key
=
"item.id"
:
key
=
"item.id"
:
label
=
"item.consultingName"
:
label
=
"item.consultingName"
:
value
=
"item
.id
"
:
value
=
"item"
/>
/>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -247,6 +253,8 @@
...
@@ -247,6 +253,8 @@
<
el
-
date
-
picker
<
el
-
date
-
picker
v
-
model
=
"appointmentRoom.treatDate"
v
-
model
=
"appointmentRoom.treatDate"
type
=
"date"
type
=
"date"
format
=
"yyyy-MM-dd"
value
-
format
=
"yyyy-MM-dd"
:
picker
-
options
=
"pickerOptions"
:
picker
-
options
=
"pickerOptions"
:
disabled
-
date
=
"disabledDate"
:
disabled
-
date
=
"disabledDate"
placeholder
=
"请选择治疗日期"
placeholder
=
"请选择治疗日期"
...
@@ -302,9 +310,9 @@
...
@@ -302,9 +310,9 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
delManage
,
addManage
,
updateManage
}
from
'@/api/business/manage'
import
{
delManage
}
from
'@/api/business/manage'
import
{
listReservationDevice
}
from
'@/api/business/device'
import
{
listReservationDevice
}
from
'@/api/business/device'
import
{
consultRoomListAll
,
selectTreatAll
,
selectTreatListP
}
from
'@/api/business/treatment'
import
{
consultRoomListAll
,
selectTreatAll
,
selectTreatListP
,
updateTreatList
}
from
'@/api/business/treatment'
export
default
{
export
default
{
name
:
'MedicalRecordManagement'
,
name
:
'MedicalRecordManagement'
,
...
@@ -361,6 +369,7 @@ export default {
...
@@ -361,6 +369,7 @@ export default {
}
,
}
,
// 分配诊室搜索预约记录
// 分配诊室搜索预约记录
allocationForm
:
{
allocationForm
:
{
treatSchedule
:
'2'
,
consultRoomIdList
:
[],
consultRoomIdList
:
[],
treatStartTimeS
:
''
,
treatStartTimeS
:
''
,
treatStartTimeE
:
''
treatStartTimeE
:
''
...
@@ -395,8 +404,8 @@ export default {
...
@@ -395,8 +404,8 @@ export default {
isAsc
:
''
,
isAsc
:
''
,
orderByColumn
:
''
orderByColumn
:
''
}
,
}
,
// 表单参数
//
添加预约
表单参数
f
orm
:
{
}
,
reservationF
orm
:
{
}
,
// 设备集合
// 设备集合
deviceList
:
[]
deviceList
:
[]
}
}
...
@@ -410,6 +419,7 @@ export default {
...
@@ -410,6 +419,7 @@ export default {
getAppointmentRecord
()
{
getAppointmentRecord
()
{
console
.
log
(
'this.allocationForm'
,
this
.
allocationForm
)
console
.
log
(
'this.allocationForm'
,
this
.
allocationForm
)
selectTreatAll
(
this
.
allocationForm
).
then
(
res
=>
{
selectTreatAll
(
this
.
allocationForm
).
then
(
res
=>
{
this
.
appointmentRoomList
=
res
.
data
console
.
log
(
'预约记录'
,
res
)
console
.
log
(
'预约记录'
,
res
)
}
)
}
)
}
,
}
,
...
@@ -421,6 +431,7 @@ export default {
...
@@ -421,6 +431,7 @@ export default {
}
,
}
,
// 弹出框重置
// 弹出框重置
rest
()
{
rest
()
{
this
.
reservationForm
.
consultRoomName
=
''
this
.
appointmentRoomList
=
[]
this
.
appointmentRoomList
=
[]
// 预约诊室
// 预约诊室
this
.
appointmentRoom
=
{
this
.
appointmentRoom
=
{
...
@@ -431,19 +442,30 @@ export default {
...
@@ -431,19 +442,30 @@ export default {
}
}
// 分配诊室搜索预约记录
// 分配诊室搜索预约记录
this
.
allocationForm
=
{
this
.
allocationForm
=
{
treat_schedule
:
'2'
,
consultRoomIdList
:
''
,
consultRoomIdList
:
''
,
treatStartTimeS
:
''
,
treatStartTimeS
:
''
,
treatStartTimeE
:
''
treatStartTimeE
:
''
}
}
}
,
}
,
// 预约诊室获取名字
getconsultingName
(
value
)
{
this
.
reservationForm
.
consultRoomName
=
value
.
consultingName
this
.
reservationForm
.
consultRoomId
=
value
.
id
console
.
log
(
value
)
}
,
// 预约诊室搜索
// 预约诊室搜索
allocationFormChangeName
()
{
allocationFormChangeName
(
value
)
{
this
.
allocationForm
.
consultRoomIdList
=
this
.
allocationForm
.
consultRoomIdList
.
map
(
str
=>
parseInt
(
str
))
this
.
getAppointmentRecord
()
this
.
getAppointmentRecord
()
}
,
}
,
allocationFormChangeTime
()
{
allocationFormChangeTime
(
value
)
{
this
.
allocationForm
.
treatStartTimeS
=
this
.
treatStartTime
+
' 00:00:00'
if
(
value
!==
''
&&
value
!==
null
)
{
this
.
allocationForm
.
treatStartTimeE
=
this
.
treatStartTime
+
' 23:59:59'
this
.
allocationForm
.
treatStartTimeS
=
this
.
treatStartTime
+
' 00:00:00'
this
.
allocationForm
.
treatStartTimeE
=
this
.
treatStartTime
+
' 23:59:59'
}
else
{
this
.
allocationForm
.
treatStartTimeS
=
''
this
.
allocationForm
.
treatStartTimeE
=
''
}
this
.
getAppointmentRecord
()
this
.
getAppointmentRecord
()
}
,
}
,
// 获取诊室下拉框
// 获取诊室下拉框
...
@@ -482,11 +504,12 @@ export default {
...
@@ -482,11 +504,12 @@ export default {
this
.
queryParams
.
pageNum
=
1
this
.
queryParams
.
pageNum
=
1
this
.
getList
()
this
.
getList
()
}
,
}
,
/**
立即预约
*/
/**
分配诊室
*/
handleSubscribe
(
row
)
{
handleSubscribe
(
row
)
{
this
.
open
=
true
this
.
open
=
true
console
.
log
(
'点击立即预约'
,
row
)
console
.
log
(
'点击立即预约'
,
row
)
this
.
appointmentRoom
.
id
=
row
.
id
this
.
appointmentRoom
.
id
=
row
.
id
this
.
reservationForm
=
row
}
,
}
,
/** 获取设备列表 */
/** 获取设备列表 */
getDevice
()
{
getDevice
()
{
...
@@ -519,6 +542,7 @@ export default {
...
@@ -519,6 +542,7 @@ export default {
/** 详情 */
/** 详情 */
handleDetails
(
row
)
{
handleDetails
(
row
)
{
console
.
log
(
'点击详情后'
,
row
)
console
.
log
(
'点击详情后'
,
row
)
localStorage
.
setItem
(
'treatId'
,
row
.
id
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'TreatmentDetail'
,
name
:
'TreatmentDetail'
,
query
:
{
detail
:
row
}
query
:
{
detail
:
row
}
...
@@ -526,21 +550,18 @@ export default {
...
@@ -526,21 +550,18 @@ export default {
}
,
}
,
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
this
.
reservationForm
.
treatStartTime
=
this
.
appointmentRoom
.
treatDate
+
' '
+
this
.
appointmentRoom
.
sTime
this
.
reservationForm
.
treatEndTime
=
this
.
appointmentRoom
.
treatDate
+
' '
+
this
.
appointmentRoom
.
eTime
this
.
reservationForm
.
treatSchedule
=
'2'
const
reservation
=
[]
reservation
.
push
(
this
.
reservationForm
)
console
.
log
(
'this.reservationForm'
,
this
.
reservationForm
)
this
.
$refs
[
'treatTimeForm'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateTreatList
(
reservation
).
then
(
res
=>
{
updateManage
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'预约成功'
)
this
.
$modal
.
msgSuccess
(
'修改成功'
)
this
.
cancel
()
this
.
open
=
false
}
)
this
.
getList
()
}
)
}
else
{
addManage
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
}
)
}
}
}
}
)
}
)
}
,
}
,
...
...
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