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
ff3a3133
Commit
ff3a3133
authored
Jun 28, 2023
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/assets/styles/element-ui.scss
parents
f6834aa9
b9e9f652
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
300 additions
and
142 deletions
+300
-142
index.vue
src/components/Pagination/index.vue
+1
-1
index.js
src/router/index.js
+1
-1
banner_add.vue
src/views/banner_management/banner_add.vue
+23
-0
banner_management.vue
src/views/banner_management/banner_management.vue
+78
-38
equipment-add.vue
...uipment-management/equipment-management/equipment-add.vue
+33
-3
equipment-detail.vue
...ment-management/equipment-management/equipment-detail.vue
+10
-10
equipment-management.vue
...-management/equipment-management/equipment-management.vue
+5
-5
use-details.vue
...views/equipment-management/use-management/use-details.vue
+6
-9
use-management.vue
...ws/equipment-management/use-management/use-management.vue
+28
-30
medical-record-management.vue
...s/medical-record-management/medical-record-management.vue
+1
-1
check-detail.vue
...ice-management/medical-record-management/check-detail.vue
+4
-2
check-subscribe.vue
...-management/medical-record-management/check-subscribe.vue
+3
-2
medical-record-management.vue
...t/medical-record-management/medical-record-management.vue
+17
-9
register-modle.vue
...nagement/registration-queue/components/register-modle.vue
+1
-1
registration-queue.vue
...vice-management/registration-queue/registration-queue.vue
+2
-2
treatment-detail.vue
...vice-management/treatment-management/treatment-detail.vue
+1
-1
treatment-management.vue
...-management/treatment-management/treatment-management.vue
+86
-27
No files found.
src/components/Pagination/index.vue
View file @
ff3a3133
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
pageSizes
:
{
pageSizes
:
{
type
:
Array
,
type
:
Array
,
default
()
{
default
()
{
return
[
10
,
20
,
30
,
5
0
]
return
[
20
,
50
,
10
0
]
}
}
},
},
// 移动端页码按钮的数量端默认值5
// 移动端页码按钮的数量端默认值5
...
...
src/router/index.js
View file @
ff3a3133
...
@@ -153,7 +153,7 @@ export const constantRoutes = [
...
@@ -153,7 +153,7 @@ export const constantRoutes = [
props
:
true
,
props
:
true
,
component
:
()
=>
import
(
'@/views/equipment-management/use-management/use-details'
),
component
:
()
=>
import
(
'@/views/equipment-management/use-management/use-details'
),
name
:
'UseDetails'
,
name
:
'UseDetails'
,
meta
:
{
title
:
'详情'
,
icon
:
'table'
,
activeMenu
:
'/use-details'
}
meta
:
{
title
:
'详情'
,
icon
:
'table'
}
}
}
]
]
},
},
...
...
src/views/banner_management/banner_add.vue
0 → 100644
View file @
ff3a3133
<
template
>
<div>
新增轮播图
</div>
</
template
>
<
script
>
export
default
{
name
:
'BannerAdd'
,
data
()
{
return
{}
},
watch
:
{},
created
()
{
},
methods
:
{}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/banner_management/banner_management.vue
View file @
ff3a3133
...
@@ -13,37 +13,44 @@
...
@@ -13,37 +13,44 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"img"
>
<el-form-item
prop=
"imgBoolean"
>
<el-input
<el-select
v-model
.
trim=
"queryParams.imgBoolean"
clearable
placeholder=
"轮播图"
>
v-model=
"queryParams.img"
<el-option
placeholder=
"请输入图片地址"
v-for=
"item in imgStatus"
clearable
:key=
"item.value"
@
keyup
.
enter
.
native=
"handleQuery"
:label=
"item.label"
/>
:value=
"item.value"
/>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"url"
>
<el-form-item
prop=
"status"
>
<el-input
<el-select
v-model
.
trim=
"queryParams.status"
clearable
placeholder=
"状态"
>
v-model=
"queryParams.url"
<el-option
placeholder=
"请输入跳转链接"
v-for=
"item in dict.type.banner_status"
clearable
:key=
"item.value"
@
keyup
.
enter
.
native=
"handleQuery"
:label=
"item.label.substring(1)"
/>
:value=
"item.value"
/>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"sort"
>
<el-form-item
prop=
"createTime"
>
<el-input
<el-date-picker
v-model=
"queryParams.sort"
v-model
.
trim=
"queryParams.createTime"
placeholder=
"请输入权重"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
placeholder=
"请选择创建日期"
type=
"date"
value-format=
"yyyy-MM-dd"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"notes"
>
<el-form-item
prop=
"sortWay"
>
<el-input
<el-select
v-model
.
trim=
"queryParams.sortWay"
clearable
placeholder=
"请选择排序方式"
>
v-model=
"queryParams.notes"
<el-option
placeholder=
"请输入备注"
v-for=
"item in dict.type.banner_order"
clearable
:key=
"item.value"
@
keyup
.
enter
.
native=
"handleQuery"
:label=
"item.label"
/>
:value=
"item.value"
/>
</el-select>
</el-form-item>
</el-form-item>
<div>
<div>
<!--顶部操作按钮-->
<!--顶部操作按钮-->
...
@@ -70,20 +77,24 @@
...
@@ -70,20 +77,24 @@
<el-table
<el-table
v-loading=
"loading"
v-loading=
"loading"
:data=
"bannerList"
:data=
"bannerList"
@
selection-change=
"handleSelectionChange"
:header-cell-style=
"
{background:'#E8E9E8'}"
:header-cell-style=
"
{background:'#E8E9E8'}"
@selection-change="handleSelectionChange"
>
>
<el-table-column
label=
"序号"
min-width=
"80"
show-overflow-tooltip
type=
"index"
/>
<el-table-column
label=
"序号"
min-width=
"80"
show-overflow-tooltip
type=
"index"
/>
<el-table-column
label=
"标题"
prop=
"title"
show-overflow-tooltip
/>
<el-table-column
label=
"标题"
prop=
"title"
show-overflow-tooltip
/>
<el-table-column
label=
"图片地址"
prop=
"img"
show-overflow-tooltip
/>
<el-table-column
label=
"轮播图"
prop=
"img"
show-overflow-tooltip
width=
"80px"
>
<el-table-column
label=
"跳转链接"
prop=
"url"
show-overflow-tooltip
/>
<template
slot-scope=
"scope"
>
<el-table-column
label=
"权重"
prop=
"sort"
width=
"60"
/>
{{
scope
.
row
.
img
?
'已上传'
:
'未上传'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"跳转链接"
prop=
"url"
show-overflow-tooltip
/>
<el-table-column
label=
"权重"
prop=
"sort"
width=
"60"
/>
<el-table-column
label=
"创建日期"
prop=
"createTime"
width=
"80"
/>
<el-table-column
label=
"状态"
prop=
"status"
width=
"80"
>
<el-table-column
label=
"状态"
prop=
"status"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.banner_status"
:value=
"scope.row.status"
/>
<dict-tag
:options=
"dict.type.banner_status"
:value=
"scope.row.status"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"备注"
prop=
"notes"
show-overflow-tooltip
/>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
...
@@ -110,7 +121,7 @@
...
@@ -110,7 +121,7 @@
>
编辑
>
编辑
</el-button>
</el-button>
</div>
</div>
<div
v-if=
"scope.row.
articleStatus==='1'
"
>
<div
v-if=
"scope.row.
status==='2' && scope.row.id !== 1
"
>
<el-button
<el-button
key=
"1"
key=
"1"
v-hasPermi=
"['business:article:remove']"
v-hasPermi=
"['business:article:remove']"
...
@@ -123,7 +134,7 @@
...
@@ -123,7 +134,7 @@
>
删除
>
删除
</el-button>
</el-button>
</div>
</div>
<div
v-else-if=
"scope.row.
articleStatus==='0'
"
>
<div
v-else-if=
"scope.row.
status==='1' && scope.row.id !== 1
"
>
<el-button
<el-button
key=
"2"
key=
"2"
icon=
"el-icon-video-pause"
icon=
"el-icon-video-pause"
...
@@ -131,7 +142,7 @@
...
@@ -131,7 +142,7 @@
size=
"mini"
size=
"mini"
style=
"width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(255,157,78);"
style=
"width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(255,157,78);"
type=
"warning"
type=
"warning"
@
click=
"
handleChange
(scope.row)"
@
click=
"
deListBanner
(scope.row)"
>
下架
>
下架
</el-button>
</el-button>
</div>
</div>
...
@@ -158,7 +169,7 @@ import { listBanner, getBanner, delBanner, addBanner, updateBanner } from '@/api
...
@@ -158,7 +169,7 @@ import { listBanner, getBanner, delBanner, addBanner, updateBanner } from '@/api
export
default
{
export
default
{
name
:
'BannerManagement'
,
name
:
'BannerManagement'
,
dicts
:
[
'banner_status'
],
dicts
:
[
'banner_status'
,
'banner_order'
],
data
()
{
data
()
{
return
{
return
{
activeName
:
'first'
,
activeName
:
'first'
,
...
@@ -185,12 +196,29 @@ export default {
...
@@ -185,12 +196,29 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
title
:
null
,
title
:
null
,
img
:
null
,
imgBoolean
:
null
,
sortWay
:
null
,
url
:
null
,
url
:
null
,
sort
:
null
,
sort
:
null
,
status
:
null
,
status
:
null
,
notes
:
null
notes
:
null
,
createTime
:
null
},
},
// 轮播图状态下拉框
imgStatus
:
[
// {
// label: '全部',
// value: 'all'
// },
{
label
:
'已上传'
,
value
:
'y'
},
{
label
:
'未上传'
,
value
:
'n'
}
],
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 表单校验
// 表单校验
...
@@ -301,6 +329,18 @@ export default {
...
@@ -301,6 +329,18 @@ export default {
this
.
download
(
'business/banner/export'
,
{
this
.
download
(
'business/banner/export'
,
{
...
this
.
queryParams
...
this
.
queryParams
},
`banner_
${
new
Date
().
getTime
()}
.xlsx`
)
},
`banner_
${
new
Date
().
getTime
()}
.xlsx`
)
},
/** 下架轮播图 */
deListBanner
(
row
)
{
const
update
=
{
id
:
row
.
id
,
status
:
'2'
}
updateBanner
(
update
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
getBannerList
()
}
})
}
}
}
}
}
}
...
...
src/views/equipment-management/equipment-management/equipment-add.vue
View file @
ff3a3133
...
@@ -370,7 +370,8 @@ export default {
...
@@ -370,7 +370,8 @@ export default {
{
required
:
true
,
message
:
'请选择设备类型'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择设备类型'
,
trigger
:
'change'
}
],
],
selectedOptions
:
[
selectedOptions
:
[
{
required
:
true
,
message
:
'请选择服务地点'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请选择服务地点'
,
trigger
:
'blur'
},
{
type
:
'number'
,
validator
:
this
.
validaddress
,
trigger
:
'change'
}
],
],
useNum
:
[
useNum
:
[
{
required
:
true
,
message
:
'请输入服务单位时段服务数'
,
trigger
:
'change,blur'
},
{
required
:
true
,
message
:
'请输入服务单位时段服务数'
,
trigger
:
'change,blur'
},
...
@@ -405,10 +406,12 @@ export default {
...
@@ -405,10 +406,12 @@ export default {
{
min
:
2
,
max
:
200
,
message
:
'备注长度必须介于2~200之间'
,
trigger
:
'blur'
}
{
min
:
2
,
max
:
200
,
message
:
'备注长度必须介于2~200之间'
,
trigger
:
'blur'
}
],
],
serviceArea
:
[
serviceArea
:
[
{
required
:
true
,
message
:
'请选择支持服务地区'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请选择支持服务地区'
,
trigger
:
'blur'
},
{
type
:
'number'
,
validator
:
this
.
validserviceArea
,
trigger
:
'change'
}
],
],
checkType
:
[
checkType
:
[
{
required
:
true
,
message
:
'请选择支持检查类型'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请选择支持检查类型'
,
trigger
:
'blur'
},
{
type
:
'number'
,
validator
:
this
.
validcheckType
,
trigger
:
'change'
}
]
]
},
},
// 是否医院自有设备
// 是否医院自有设备
...
@@ -574,6 +577,33 @@ export default {
...
@@ -574,6 +577,33 @@ export default {
}
}
console
.
log
(
'中文'
,
this
.
addForm
)
console
.
log
(
'中文'
,
this
.
addForm
)
},
},
// 服务地点表单校验
validaddress
(
rule
,
value
,
callback
)
{
console
.
log
(
'validaddress'
,
this
.
form
.
selectedOptions
)
if
(
this
.
form
.
selectedOptions
.
length
>
0
)
{
callback
()
}
else
{
callback
(
new
Error
(
'请选择服务地点'
))
}
},
// 支持服务地区表单校验
validserviceArea
(
rule
,
value
,
callback
)
{
console
.
log
(
'validaddress'
,
this
.
form
.
serviceArea
)
if
(
this
.
form
.
serviceArea
.
length
>
0
)
{
callback
()
}
else
{
callback
(
new
Error
(
'请选择支持检查项目'
))
}
},
// 支持检查类型表单校验
validcheckType
(
rule
,
value
,
callback
)
{
console
.
log
(
'validaddress'
,
this
.
form
.
checkType
)
if
(
this
.
form
.
checkType
.
length
>
0
)
{
callback
()
}
else
{
callback
(
new
Error
(
'请选择支持服务地区'
))
}
},
// 四个时间的表单校验
// 四个时间的表单校验
validateMorningStart
(
rule
,
value
,
callback
)
{
validateMorningStart
(
rule
,
value
,
callback
)
{
// // TODO: please clear this log
// // TODO: please clear this log
...
...
src/views/equipment-management/equipment-management/equipment-detail.vue
View file @
ff3a3133
...
@@ -266,7 +266,7 @@
...
@@ -266,7 +266,7 @@
<el-col>
<el-col>
<el-form-item
label=
"支持服务地区"
>
<el-form-item
label=
"支持服务地区"
>
<el-input
<el-input
v-model
.
trim=
"form.serviceArea
Lis
t"
v-model
.
trim=
"form.serviceArea
Tex
t"
type=
"textarea"
type=
"textarea"
style=
"width:705%;;"
style=
"width:705%;;"
:row=
"4"
:row=
"4"
...
@@ -278,11 +278,11 @@
...
@@ -278,11 +278,11 @@
<!-- 9-->
<!-- 9-->
<el-row>
<el-row>
<el-col>
<el-col>
<el-form-item
label=
"支持检查
类型
"
>
<el-form-item
label=
"支持检查
项目
"
>
<el-input
<el-input
v-model
.
trim=
"form.checkType
Lis
t"
v-model
.
trim=
"form.checkType
Tex
t"
type=
"textarea"
type=
"textarea"
style=
"width:705%;
;
"
style=
"width:705%;"
:row=
"4"
:row=
"4"
disabled
disabled
/>
/>
...
@@ -674,8 +674,8 @@ export default {
...
@@ -674,8 +674,8 @@ export default {
deviceName
:
''
,
deviceName
:
''
,
// appointmentMethod: '',
// appointmentMethod: '',
serviceArea
:
''
,
serviceArea
:
''
,
serviceArea
Lis
t
:
[],
serviceArea
Tex
t
:
[],
checkType
Lis
t
:
[],
checkType
Tex
t
:
[],
head
:
''
,
head
:
''
,
phone
:
''
,
phone
:
''
,
deviceType
:
''
,
deviceType
:
''
,
...
@@ -1058,8 +1058,8 @@ export default {
...
@@ -1058,8 +1058,8 @@ export default {
// }
// }
// if (this.form.serviceArea != null && this.form.serviceArea !== '') {
// if (this.form.serviceArea != null && this.form.serviceArea !== '') {
console
.
log
(
'this.form.serviceArea'
,
this
.
form
.
serviceArea
)
console
.
log
(
'this.form.serviceArea'
,
this
.
form
.
serviceArea
)
this
.
form
.
serviceArea
Lis
t
=
selectDictLabels
(
this
.
dict
.
type
.
service_area
,
this
.
form
.
serviceArea
)
this
.
form
.
serviceArea
Tex
t
=
selectDictLabels
(
this
.
dict
.
type
.
service_area
,
this
.
form
.
serviceArea
)
console
.
log
(
' this.form.serviceArea
List'
,
this
.
form
.
serviceAreaLis
t
)
console
.
log
(
' this.form.serviceArea
Text'
,
this
.
form
.
serviceAreaTex
t
)
this
.
form
.
serviceArea
=
response
.
data
.
serviceArea
.
split
(
','
)
this
.
form
.
serviceArea
=
response
.
data
.
serviceArea
.
split
(
','
)
// this.getDicts('service_area').then(response => {
// this.getDicts('service_area').then(response => {
...
@@ -1071,8 +1071,8 @@ export default {
...
@@ -1071,8 +1071,8 @@ export default {
// })
// })
// }
// }
if
(
this
.
form
.
checkType
!=
null
&&
this
.
form
.
checkType
!==
''
)
{
if
(
this
.
form
.
checkType
!=
null
&&
this
.
form
.
checkType
!==
''
)
{
this
.
form
.
checkType
List
=
selectDictLabels
(
this
.
dict
.
type
.
check
_type
,
this
.
form
.
checkType
)
this
.
form
.
checkType
Text
=
selectDictLabels
(
this
.
dict
.
type
.
exam
_type
,
this
.
form
.
checkType
)
console
.
log
(
' this.form.checkType
List'
,
this
.
form
.
checkTypeLis
t
)
console
.
log
(
' this.form.checkType
Text'
,
this
.
form
.
checkTypeTex
t
)
this
.
form
.
checkType
=
response
.
data
.
checkType
.
split
(
','
)
this
.
form
.
checkType
=
response
.
data
.
checkType
.
split
(
','
)
}
}
...
...
src/views/equipment-management/equipment-management/equipment-management.vue
View file @
ff3a3133
...
@@ -87,13 +87,13 @@
...
@@ -87,13 +87,13 @@
>
新增设备
>
新增设备
</el-button>
</el-button>
<el-button
<el-button
icon=
"el-icon-
top-left
"
icon=
"el-icon-
finished
"
class=
"fourWordsBtn"
class=
"fourWordsBtn"
@
click=
"selectAll()"
@
click=
"selectAll()"
>
选择全部
>
选择全部
</el-button>
</el-button>
<el-button
<el-button
icon=
"el-icon-
top-right
"
icon=
"el-icon-
back
"
class=
"fourWordsBtn"
class=
"fourWordsBtn"
@
click=
"reverseSelect(deviceList)"
@
click=
"reverseSelect(deviceList)"
>
反向选择
>
反向选择
...
@@ -101,14 +101,14 @@
...
@@ -101,14 +101,14 @@
<el-button
<el-button
v-hasPermi=
"['business:device:import']"
v-hasPermi=
"['business:device:import']"
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
bottom-left
"
icon=
"el-icon-
download
"
@
click=
"handleImport"
@
click=
"handleImport"
>
批量导入
>
批量导入
</el-button>
</el-button>
<el-button
<el-button
v-hasPermi=
"['business:device:export']"
v-hasPermi=
"['business:device:export']"
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
top-right
"
icon=
"el-icon-
upload2
"
@
click=
"handleExport"
@
click=
"handleExport"
>
批量导出
>
批量导出
</el-button>
</el-button>
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"deviceList"
:header-cell-style=
"
{ background:'#E8E9E8'}"
border
:row-key="getRowKeys" @selection-change="handleSelectionChange">
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"deviceList"
:header-cell-style=
"
{ background:'#E8E9E8'}" :row-key="getRowKeys" @selection-change="handleSelectionChange">
<el-table-column
type=
"selection"
width=
"47"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
type=
"selection"
width=
"47"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
label=
"设备名称"
align=
"left"
prop=
"deviceName"
show-overflow-tooltip
/>
<el-table-column
label=
"设备名称"
align=
"left"
prop=
"deviceName"
show-overflow-tooltip
/>
...
...
src/views/equipment-management/use-management/use-details.vue
View file @
ff3a3133
<
template
>
<
template
>
<div>
<div>
<div
style=
"background-color: #fff;height: 100%;margin-top: 20px;"
>
<div
style=
"background-color: #fff;height: 100%;margin-top: 20px;"
>
<div
style=
" text-align: center;padding-top:
40
px;height: 100px;"
>
<div
style=
" text-align: center;padding-top:
35
px;height: 100px;"
>
<span
style=
"font-size: 24px;font-weight: bold; color: #333333;line-height: 20px;"
>
详情
</span>
<span
style=
"font-size: 24px;font-weight: bold; color: #333333;line-height: 20px;"
>
详情
</span>
</div>
</div>
<div
style=
"display: flex; padding-left: 20px;padding-
top: 20px;padding-bottom: 2
0px;"
>
<div
style=
"display: flex; padding-left: 20px;padding-
bottom: 1
0px;"
>
<div
class=
"tip1"
/>
<div
class=
"tip1"
/>
<div
style=
"padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;"
>
设备信息
</div>
<div
style=
"padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;"
>
设备信息
</div>
</div>
</div>
...
@@ -317,14 +317,10 @@ import { CodeToText } from 'element-china-area-data'
...
@@ -317,14 +317,10 @@ import { CodeToText } from 'element-china-area-data'
export
default
{
export
default
{
name
:
'UseDetails'
,
name
:
'UseDetails'
,
dicts
:
[
'payment_status'
,
'exam_type'
,
'device_status'
,
'device_type'
,
'pet_sex'
,
'sterilization_status'
,
'vaccine_situation'
,
'pet_insure'
],
dicts
:
[
'payment_status'
,
'exam_type'
,
'device_status'
,
'device_type'
,
'pet_sex'
,
'sterilization_status'
,
'vaccine_situation'
,
'pet_insure'
],
props
:
{
id
:
{
type
:
Number
,
required
:
true
}
},
data
()
{
data
()
{
return
{
return
{
useId
:
''
,
createTime
:
''
,
// 检查时间
// 检查时间
checkTime
:
''
,
checkTime
:
''
,
// 检查日期
// 检查日期
...
@@ -353,6 +349,7 @@ export default {
...
@@ -353,6 +349,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
useId
=
localStorage
.
getItem
(
'useId'
)
this
.
getUseDetail
()
this
.
getUseDetail
()
this
.
getCheckList
()
this
.
getCheckList
()
},
},
...
@@ -382,7 +379,7 @@ export default {
...
@@ -382,7 +379,7 @@ export default {
},
},
// 查询详情
// 查询详情
getUseDetail
()
{
getUseDetail
()
{
useManagementDetail
(
this
.
i
d
).
then
(
res
=>
{
useManagementDetail
(
this
.
useI
d
).
then
(
res
=>
{
this
.
form
=
res
.
data
this
.
form
=
res
.
data
console
.
log
(
'xiangq'
,
res
)
console
.
log
(
'xiangq'
,
res
)
if
(
res
.
data
.
useTime
!==
''
&&
res
.
data
.
useTime
!==
null
)
{
if
(
res
.
data
.
useTime
!==
''
&&
res
.
data
.
useTime
!==
null
)
{
...
...
src/views/equipment-management/use-management/use-management.vue
View file @
ff3a3133
...
@@ -41,10 +41,10 @@
...
@@ -41,10 +41,10 @@
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-date-picker
<el-date-picker
v-model=
"
daterangeCreate
Time"
v-model=
"
queryParams.report
Time"
type=
"date"
type=
"date"
style=
"width: 240px"
style=
"width: 240px"
placeholder=
"选择
创建
日期"
placeholder=
"选择
检查
日期"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"userList"
border
:row-key=
"getRowKeys"
:header-cell-class-name=
"cellClass
"
@
selection-change=
"handleSelectionChange"
>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"userList"
:row-key=
"getRowKeys"
:header-cell-style=
"
{background:'#E8E9E8'}
" @selection-change="handleSelectionChange">
<el-table-column
type=
"selection"
min-width=
"50"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
type=
"selection"
min-width=
"50"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
type=
"index"
label=
"序号"
min-width=
"60"
/>
<el-table-column
type=
"index"
label=
"序号"
min-width=
"60"
/>
<el-table-column
label=
"设备名称"
align=
"left"
prop=
"deviceName"
min-width=
"80"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"设备名称"
align=
"left"
prop=
"deviceName"
min-width=
"80"
:show-overflow-tooltip=
"true"
>
...
@@ -128,12 +128,12 @@
...
@@ -128,12 +128,12 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"检查日期"
align=
"left"
prop=
"checkStartTime"
>
<el-table-column
label=
"检查日期"
align=
"left"
prop=
"checkStartTime"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
checkSta
rtTime
,
'{y
}
/{m
}
/{d
}
'
)
||
'-'
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
repo
rtTime
,
'{y
}
/{m
}
/{d
}
'
)
||
'-'
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"检查时间"
align
=
"left"
prop
=
"checkStartTime"
>
<
el
-
table
-
column
label
=
"检查时间"
align
=
"left"
prop
=
"checkStartTime"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
checkSta
rtTime
,
'{h
}
:{m
}
'
)
||
'-'
}}
<
/span
>
<
span
>
{{
parseTime
(
scope
.
row
.
repo
rtTime
,
'{h
}
:{m
}
'
)
||
'-'
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"缴费金额"
align
=
"left"
prop
=
"payAmount"
>
<
el
-
table
-
column
label
=
"缴费金额"
align
=
"left"
prop
=
"payAmount"
>
...
@@ -215,29 +215,29 @@ export default {
...
@@ -215,29 +215,29 @@ export default {
sortedColumn
:
''
,
sortedColumn
:
''
,
// 排序规则
// 排序规则
sortedList
:
[
sortedList
:
[
{
id
:
'1'
,
collation
:
'asc'
,
sortedColumn
:
'按检查时间升序'
,
nameColumn
:
'checkItemsName'
}
,
{
{
id
:
'2'
,
id
:
'2'
,
collation
:
'desc'
,
collation
:
'desc'
,
sortedColumn
:
'按检查时间
降
序'
,
sortedColumn
:
'按检查时间
倒
序'
,
nameColumn
:
'c
heckItemsNa
me'
nameColumn
:
'c
.report_ti
me'
}
,
}
,
{
{
id
:
'
3
'
,
id
:
'
1
'
,
collation
:
'asc'
,
collation
:
'asc'
,
sortedColumn
:
'按
预约时间升
序'
,
sortedColumn
:
'按
检查时间正
序'
,
nameColumn
:
'
appointT
ime'
nameColumn
:
'
c.report_t
ime'
}
,
}
,
{
{
id
:
'4'
,
id
:
'4'
,
collation
:
'desc'
,
collation
:
'desc'
,
sortedColumn
:
'按预约时间降序'
,
sortedColumn
:
'按预约时间倒序'
,
nameColumn
:
'appointTime'
nameColumn
:
'c.appoint_time'
}
,
{
id
:
'3'
,
collation
:
'asc'
,
sortedColumn
:
'按预约时间正序'
,
nameColumn
:
'c.appoint_time'
}
}
],
],
total
:
0
,
total
:
0
,
...
@@ -245,8 +245,8 @@ export default {
...
@@ -245,8 +245,8 @@ export default {
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
isAsc
:
''
,
isAsc
:
'
desc
'
,
orderByColumn
:
''
,
orderByColumn
:
'
c.report_time
'
,
searchText
:
''
,
searchText
:
''
,
insureList
:
''
,
insureList
:
''
,
checkItemsIdList
:
''
,
checkItemsIdList
:
''
,
...
@@ -297,8 +297,8 @@ export default {
...
@@ -297,8 +297,8 @@ export default {
this
.
queryParams
=
{
this
.
queryParams
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
isAsc
:
''
,
isAsc
:
'
desc
'
,
orderByColumn
:
''
,
orderByColumn
:
'
c.report_time
'
,
searchText
:
''
,
searchText
:
''
,
insureList
:
''
,
insureList
:
''
,
checkItemsIdList
:
''
,
checkItemsIdList
:
''
,
...
@@ -328,10 +328,10 @@ export default {
...
@@ -328,10 +328,10 @@ export default {
}
,
}
,
// 获取列表数据
// 获取列表数据
getUseList
()
{
getUseList
()
{
if
(
this
.
daterangeCreateTime
!==
''
)
{
//
if (this.daterangeCreateTime !== '')
{
this
.
queryParams
.
beginCheckTime
=
this
.
daterangeCreateTime
+
' 00:00:00'
//
this.queryParams.beginCheckTime = this.daterangeCreateTime + ' 00:00:00'
this
.
queryParams
.
endCheckTime
=
this
.
daterangeCreateTime
+
' 23:59:59'
//
this.queryParams.endCheckTime = this.daterangeCreateTime + ' 23:59:59'
}
//
}
listUseManagement
(
this
.
queryParams
).
then
(
res
=>
{
listUseManagement
(
this
.
queryParams
).
then
(
res
=>
{
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
userList
=
res
.
rows
this
.
userList
=
res
.
rows
...
@@ -385,11 +385,9 @@ export default {
...
@@ -385,11 +385,9 @@ export default {
}
,
}
,
// 去详情页
// 去详情页
detailsUse
(
row
)
{
detailsUse
(
row
)
{
localStorage
.
setItem
(
'useId'
,
row
.
id
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'UseDetails'
,
name
:
'UseDetails'
params
:
{
id
:
row
.
id
}
}
)
}
)
}
,
}
,
// 设备状态 value 和label 的转换
// 设备状态 value 和label 的转换
...
...
src/views/medical-record-management/medical-record-management.vue
View file @
ff3a3133
...
@@ -266,7 +266,7 @@ export default {
...
@@ -266,7 +266,7 @@ export default {
sort
:
null
sort
:
null
}
,
}
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1
0
,
pageSize
:
2
0
,
petNickname
:
null
,
petNickname
:
null
,
nickname
:
null
,
nickname
:
null
,
petOwnerNumber
:
null
,
petOwnerNumber
:
null
,
...
...
src/views/service-management/medical-record-management/check-detail.vue
View file @
ff3a3133
...
@@ -157,7 +157,9 @@
...
@@ -157,7 +157,9 @@
<
/el-row
>
<
/el-row
>
<
el
-
row
v
-
show
=
"checkDetail.checkSchedule < 2"
>
<
el
-
row
v
-
show
=
"checkDetail.checkSchedule < 2"
>
<
el
-
col
:
span
=
"8"
>
<
el
-
col
:
span
=
"8"
>
<
el
-
form
-
item
label
=
"暂未预约"
/>
<
el
-
form
-
item
label
=
"暂未预约"
>
<
span
><
/span
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
div
v
-
show
=
"checkDetail.checkSchedule >= 2"
>
<
div
v
-
show
=
"checkDetail.checkSchedule >= 2"
>
...
@@ -178,7 +180,7 @@
...
@@ -178,7 +180,7 @@
<
el
-
col
:
span
=
"8"
>
<
el
-
col
:
span
=
"8"
>
<
el
-
form
-
item
label
=
"检查状态"
>
<
el
-
form
-
item
label
=
"检查状态"
>
<
span
v
-
show
=
"checkDetail.checkSchedule === '0' || checkDetail.checkSchedule === '1'"
>-<
/span
>
<
span
v
-
show
=
"checkDetail.checkSchedule === '0' || checkDetail.checkSchedule === '1'"
>-<
/span
>
<
span
v
-
show
=
"checkDetail.checkSchedule === '2'"
>
未
检查
<
/span
>
<
span
v
-
show
=
"checkDetail.checkSchedule === '2'"
>
待
检查
<
/span
>
<
span
v
-
show
=
"checkDetail.checkSchedule === '3'"
>
已检查
<
/span
>
<
span
v
-
show
=
"checkDetail.checkSchedule === '3'"
>
已检查
<
/span
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
...
...
src/views/service-management/medical-record-management/check-subscribe.vue
View file @
ff3a3133
...
@@ -154,7 +154,8 @@
...
@@ -154,7 +154,8 @@
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
width
=
"180"
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
width
=
"180"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
<
el
-
button
class
=
"fourWordsBtn"
style
=
"color: #5FB54B"
type
=
"text"
@
click
=
"handleBookNow(scope.row)"
@
click
=
"handleBookNow(scope.row)"
>
立即预约
<
/el-button
>
>
立即预约
<
/el-button
>
<
/template
>
<
/template
>
...
@@ -286,7 +287,7 @@ export default {
...
@@ -286,7 +287,7 @@ export default {
this
.
total
=
res
.
total
this
.
total
=
res
.
total
if
(
this
.
subscribeMessage
.
checkType
===
'2'
&&
this
.
deviceList
.
length
>
0
)
{
if
(
this
.
subscribeMessage
.
checkType
===
'2'
&&
this
.
deviceList
.
length
>
0
)
{
this
.
deviceList
.
forEach
(
item
=>
{
this
.
deviceList
.
forEach
(
item
=>
{
item
[
'price'
]
=
this
.
subscribeMessage
.
devicePrice
item
[
'price'
]
=
this
.
subscribeMessage
.
payAmount
}
)
}
)
}
}
console
.
log
(
'列表'
,
this
.
deviceList
)
console
.
log
(
'列表'
,
this
.
deviceList
)
...
...
src/views/service-management/medical-record-management/medical-record-management.vue
View file @
ff3a3133
...
@@ -66,28 +66,28 @@
...
@@ -66,28 +66,28 @@
<el-row
:gutter=
"10"
class=
"mb8"
style=
"margin: 0 0 20px 1px"
>
<el-row
:gutter=
"10"
class=
"mb8"
style=
"margin: 0 0 20px 1px"
>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
plus
"
icon=
"el-icon-
finished
"
size=
"mini"
size=
"mini"
@
click=
"selectAll()"
@
click=
"selectAll()"
>
选择全部
>
选择全部
</el-button>
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
edit
"
icon=
"el-icon-
back
"
size=
"mini"
size=
"mini"
@
click=
"reverseSelect()"
@
click=
"reverseSelect()"
>
反向选择
>
反向选择
</el-button>
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
delete
"
icon=
"el-icon-
upload2
"
size=
"mini"
size=
"mini"
@
click=
"handleExport()"
@
click=
"handleExport()"
>
批量导出
>
批量导出
</el-button>
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
download
"
icon=
"el-icon-
setting
"
size=
"mini"
size=
"mini"
@
click=
"checkItem()"
@
click=
"checkItem()"
>
检查项目
>
检查项目
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<el-table-column
label=
"检查状态"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"checkSchedule"
>
<el-table-column
label=
"检查状态"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"checkSchedule"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-show=
"scope.row.checkSchedule === '0' || scope.row.checkSchedule === '1'"
>
-
</span>
<span
v-show=
"scope.row.checkSchedule === '0' || scope.row.checkSchedule === '1'"
>
-
</span>
<span
v-show=
"scope.row.checkSchedule === '2'"
>
未
检查
</span>
<span
v-show=
"scope.row.checkSchedule === '2'"
>
待
检查
</span>
<span
v-show=
"scope.row.checkSchedule === '3'"
>
已检查
</span>
<span
v-show=
"scope.row.checkSchedule === '3'"
>
已检查
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
/>
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"7"
>
<
el
-
col
:
span
=
"7"
v
-
show
=
"currentCheckType === '2'"
>
<
el
-
form
-
item
label
=
"支出账户金额"
prop
=
"shadowReport"
label
-
width
=
"120"
>
<
el
-
form
-
item
label
=
"支出账户金额"
prop
=
"shadowReport"
label
-
width
=
"120"
>
1200.00
1200.00
<
/el-form-item
>
<
/el-form-item
>
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"num"
align
=
"left"
label
=
"剩余可预约"
/>
<
el
-
table
-
column
prop
=
"num"
align
=
"left"
label
=
"剩余可预约"
/>
<
el
-
table
-
column
prop
=
"date"
align
=
"left"
label
=
"设备服务费"
/>
<
el
-
table
-
column
v
-
if
=
"currentCheckType === '2'"
prop
=
"date"
align
=
"left"
label
=
"设备服务费"
/>
<
el
-
table
-
column
align
=
"left"
label
=
"操作"
>
<
el
-
table
-
column
align
=
"left"
label
=
"操作"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
<
el
-
button
...
@@ -378,7 +378,7 @@ export default {
...
@@ -378,7 +378,7 @@ export default {
}
,
}
,
{
{
value
:
'1'
,
value
:
'1'
,
label
:
'
未
检查'
label
:
'
待
检查'
}
}
],
],
deviceQueryParams
:
{
deviceQueryParams
:
{
...
@@ -420,7 +420,9 @@ export default {
...
@@ -420,7 +420,9 @@ export default {
// 当前的检查ID
// 当前的检查ID
currentCheckId
:
null
,
currentCheckId
:
null
,
// 当前的设备服务费
// 当前的设备服务费
currentPayAmount
:
null
currentPayAmount
:
null
,
// 检查类型(0-自有、2-外部)
currentCheckType
:
null
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -568,6 +570,7 @@ export default {
...
@@ -568,6 +570,7 @@ export default {
this
.
deviceQueryParams
.
reservationTime
=
this
.
getCurrentTime
()
this
.
deviceQueryParams
.
reservationTime
=
this
.
getCurrentTime
()
this
.
currentCheckId
=
row
.
id
this
.
currentCheckId
=
row
.
id
this
.
currentPayAmount
=
row
.
payAmount
this
.
currentPayAmount
=
row
.
payAmount
this
.
currentCheckType
=
row
.
checkType
console
.
log
(
'点击立即预约后的状态'
,
this
.
deviceQueryParams
)
console
.
log
(
'点击立即预约后的状态'
,
this
.
deviceQueryParams
)
// 设置检查项目id
// 设置检查项目id
this
.
getDevice
()
this
.
getDevice
()
...
@@ -620,6 +623,11 @@ export default {
...
@@ -620,6 +623,11 @@ export default {
console
.
log
(
'设备'
,
res
)
console
.
log
(
'设备'
,
res
)
this
.
deviceList
=
res
.
rows
.
table
this
.
deviceList
=
res
.
rows
.
table
this
.
deviceTotal
=
res
.
total
this
.
deviceTotal
=
res
.
total
if
(
this
.
currentCheckType
===
'2'
&&
this
.
deviceList
.
length
>
0
)
{
this
.
deviceList
.
forEach
(
item
=>
{
item
[
'price'
]
=
this
.
currentPayAmount
}
)
}
}
)
}
)
}
,
}
,
/** 重置按钮操作 */
/** 重置按钮操作 */
...
...
src/views/service-management/registration-queue/components/register-modle.vue
View file @
ff3a3133
...
@@ -243,7 +243,7 @@ export default {
...
@@ -243,7 +243,7 @@ export default {
const
temp
=
{
const
temp
=
{
// 给接口所需的宠物赋值
// 给接口所需的宠物赋值
petOwnerBo
:
this
.
petForm
,
petOwnerBo
:
this
.
petForm
,
type
:
this
.
registrationType
,
type
:
'1'
,
// 这个字段区分的是现场还是预约 1为现场
// 宠物宠主本身的信息
// 宠物宠主本身的信息
petsId
:
this
.
doctorForm
.
petsId
||
null
,
petsId
:
this
.
doctorForm
.
petsId
||
null
,
petType
:
this
.
doctorForm
.
petStatus
,
petType
:
this
.
doctorForm
.
petStatus
,
...
...
src/views/service-management/registration-queue/registration-queue.vue
View file @
ff3a3133
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
label
=
"缴费状态"
min
-
width
=
"70"
prop
=
"payStatus"
show
-
overflow
-
tooltip
>
<
el
-
table
-
column
align
=
"center"
label
=
"缴费状态"
min
-
width
=
"70"
prop
=
"payStatus"
show
-
overflow
-
tooltip
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
dict
-
tag
:
options
=
"dict.type.payment_status"
:
value
=
"scope.row.payStatus"
/
>
<
span
:
style
=
"scope.row.payStatus === '0' ? 'color: #F56C6C' : 'color: #67C23A'"
><
dict
-
tag
:
options
=
"dict.type.payment_status"
:
value
=
"scope.row.payStatus"
/><
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
min
-
width
=
"180"
>
<
el
-
table
-
column
align
=
"center"
class
-
name
=
"small-padding fixed-width"
label
=
"操作"
min
-
width
=
"180"
>
...
@@ -295,7 +295,7 @@ export default {
...
@@ -295,7 +295,7 @@ export default {
// 排序方式声明
// 排序方式声明
sort
:
''
,
sort
:
''
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1
0
,
pageSize
:
2
0
,
type
:
null
,
type
:
null
,
petId
:
null
,
petId
:
null
,
petNickname
:
null
,
petNickname
:
null
,
...
...
src/views/service-management/treatment-management/treatment-detail.vue
View file @
ff3a3133
...
@@ -503,7 +503,7 @@ export default {
...
@@ -503,7 +503,7 @@ export default {
return
treatRange
return
treatRange
}
,
}
,
// 预约诊室搜索
// 预约诊室搜索
allocationFormChangeName
(
value
)
{
allocationFormChangeName
()
{
this
.
getAppointmentRecord
()
this
.
getAppointmentRecord
()
}
,
}
,
// 分配诊室治疗时间查询
// 分配诊室治疗时间查询
...
...
src/views/service-management/treatment-management/treatment-management.vue
View file @
ff3a3133
...
@@ -51,29 +51,47 @@
...
@@ -51,29 +51,47 @@
<el-row
:gutter=
"10"
class=
"mb8"
style=
"margin: 0 0 20px 1px"
>
<el-row
:gutter=
"10"
class=
"mb8"
style=
"margin: 0 0 20px 1px"
>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
top-left
"
icon=
"el-icon-
finished
"
@
click=
"selectAll()"
@
click=
"selectAll()"
>
选择全部
</el-button>
>
选择全部
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
top-right
"
icon=
"el-icon-
back
"
size=
"mini"
size=
"mini"
@
click=
"reverseSelect(treatmentList)"
@
click=
"reverseSelect(treatmentList)"
>
反向选择
</el-button>
>
反向选择
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-
bottom-right
"
icon=
"el-icon-
upload2
"
size=
"mini"
size=
"mini"
@
click=
"handleExport"
@
click=
"handleExport"
>
批量导出
</el-button>
>
批量导出
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-setting"
icon=
"el-icon-setting"
size=
"mini"
size=
"mini"
@
click=
"checkItem()"
@
click=
"checkItem()"
>
治疗项目
</el-button>
>
治疗项目
<el-button
style=
"position: relative; float: right;"
class=
"resetBtn"
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-button>
<el-button
style=
"position: relative; float: right;"
class=
"queryBtn"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"position: relative; float: right;"
class=
"resetBtn"
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
style=
"position: relative; float: right;"
class=
"queryBtn"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
查询
</el-button>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -82,8 +100,8 @@
...
@@ -82,8 +100,8 @@
:data=
"treatmentList"
:data=
"treatmentList"
:row-key=
"getRowKeys"
:row-key=
"getRowKeys"
:header-cell-class-name=
"cellClass"
:header-cell-class-name=
"cellClass"
:header-cell-style=
"
{background:'#E8E9E8'}"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
:header-cell-style=
"
{ background:'#E8E9E8' }"
>
>
<el-table-column
type=
"selection"
min-width=
"47"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
type=
"selection"
min-width=
"47"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"left"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"left"
/>
...
@@ -196,7 +214,15 @@
...
@@ -196,7 +214,15 @@
/>
/>
<!--
分配诊室对话框
-->
<!--
分配诊室对话框
-->
<
el
-
dialog
title
=
"分配诊室"
:
visible
.
sync
=
"open"
width
=
"800px"
append
-
to
-
body
:
close
-
on
-
press
-
escape
=
"false"
:
close
-
on
-
click
-
modal
=
"false"
@
close
=
"closeDialogRoom"
>
<
el
-
dialog
title
=
"分配诊室"
:
visible
.
sync
=
"open"
width
=
"800px"
append
-
to
-
body
:
close
-
on
-
press
-
escape
=
"false"
:
close
-
on
-
click
-
modal
=
"false"
@
close
=
"closeDialogRoom"
>
<
div
style
=
"display: flex;padding-bottom: 20px;"
>
<
div
style
=
"display: flex;padding-bottom: 20px;"
>
<
div
class
=
"tip1"
/>
<
div
class
=
"tip1"
/>
<
div
style
=
"padding-top: 3px;padding-left: 18px;font-size: 16px;font-weight: bold;color: #333333;"
>
预约记录
<
/div
>
<
div
style
=
"padding-top: 3px;padding-left: 18px;font-size: 16px;font-weight: bold;color: #333333;"
>
预约记录
<
/div
>
...
@@ -205,7 +231,14 @@
...
@@ -205,7 +231,14 @@
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"诊室"
>
<
el
-
form
-
item
label
=
"诊室"
>
<
el
-
select
v
-
model
=
"allocationForm.consultRoomIdList"
clearable
multiple
collapse
-
tags
placeholder
=
"请选择诊室"
@
change
=
"allocationFormChangeName"
>
<
el
-
select
v
-
model
=
"allocationForm.consultRoomIdList"
clearable
multiple
collapse
-
tags
placeholder
=
"请选择诊室"
@
change
=
"allocationFormChangeName"
>
<
el
-
option
<
el
-
option
v
-
for
=
"item in consultingName"
v
-
for
=
"item in consultingName"
:
key
=
"item.id"
:
key
=
"item.id"
...
@@ -244,13 +277,15 @@
...
@@ -244,13 +277,15 @@
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
show
=
"scope.row.treatStartTime!== null"
>
{{
parseTime
(
scope
.
row
.
treatStartTime
,
'{h
}
:00'
)
}}
<
/span
>
<
span
v
-
show
=
"scope.row.treatStartTime!== null"
>
{{
parseTime
(
scope
.
row
.
treatStartTime
,
'{h
}
:00'
)
}}
<
/span
>
<
span
v
-
show
=
"scope.row.treatEndTime!== null"
>~
{{
parseTime
(
scope
.
row
.
treatEndTime
,
'{h
}
:00'
)
}}
<
/span
>
<
span
v
-
show
=
"scope.row.treatEndTime!== null"
>~
{{
parseTime
(
scope
.
row
.
treatEndTime
,
'{h
}
:00'
)
}}
<
/span
>
<
span
v
-
show
=
"scope.row.treatStartTime === null
&& scope.row.treatEndTime
=== null"
>-<
/span
>
<
span
v
-
show
=
"scope.row.treatStartTime === null
&& scope.row.treatEndTime
=== null"
>-<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"left"
label
=
"治疗时长"
>
<
el
-
table
-
column
align
=
"left"
label
=
"治疗时长"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
show
=
"scope.row.treatStartTime!== null"
>
{{
treatRange
(
scope
.
row
.
treatStartTime
,
scope
.
row
.
treatEndTime
)
}}
h
<
/span
>
<
span
<
span
v
-
show
=
"scope.row.treatStartTime === null&& scope.row.treatEndTime=== null"
>-<
/span
>
v
-
show
=
"scope.row.treatStartTime!== null"
>
{{
treatRange
(
scope
.
row
.
treatStartTime
,
scope
.
row
.
treatEndTime
)
}}
h
<
/span
>
<
span
v
-
show
=
"scope.row.treatStartTime === null && scope.row.treatEndTime === null"
>-<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"treatOperator"
align
=
"left"
label
=
"治疗负责人"
/>
<
el
-
table
-
column
prop
=
"treatOperator"
align
=
"left"
label
=
"治疗负责人"
/>
...
@@ -263,7 +298,14 @@
...
@@ -263,7 +298,14 @@
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"诊室"
prop
=
"consultRoomId"
>
<
el
-
form
-
item
label
=
"诊室"
prop
=
"consultRoomId"
>
<
el
-
select
v
-
model
=
"reservationForm.consultRoomName"
clearable
placeholder
=
"请选择诊室"
value
-
key
=
"id"
style
=
"width: 200px"
@
change
=
"getconsultingName"
>
<
el
-
select
v
-
model
=
"reservationForm.consultRoomName"
clearable
placeholder
=
"请选择诊室"
value
-
key
=
"id"
style
=
"width: 200px"
@
change
=
"getconsultingName"
>
<
el
-
option
<
el
-
option
v
-
for
=
"item in consultingName"
v
-
for
=
"item in consultingName"
:
key
=
"item.id"
:
key
=
"item.id"
...
@@ -328,8 +370,11 @@
...
@@ -328,8 +370,11 @@
<
/el-row
>
<
/el-row
>
<
el
-
row
>
<
el
-
row
>
<
div
style
=
"padding-top: 20px;"
>
<
div
style
=
"padding-top: 20px;"
>
<
el
-
button
style
=
"width: 98px;height: 32px;"
class
=
"queryBtn"
icon
=
"el-icon-check"
@
click
=
"submitForm"
>
提交
<
/el-button
>
<
el
-
button
style
=
"width: 98px;height: 32px;"
class
=
"queryBtn"
icon
=
"el-icon-check"
@
click
=
"submitForm"
>
<
el
-
button
style
=
"width: 98px;height: 32px;"
icon
=
"el-icon-back"
class
=
"resetBtn"
@
click
=
"cancel"
>
返
回
<
/el-button
>
提交
<
/el-button
>
<
el
-
button
style
=
"width: 98px;height: 32px;"
icon
=
"el-icon-back"
class
=
"resetBtn"
@
click
=
"cancel"
>
返
回
<
/el-button
>
<
/div
>
<
/div
>
<
/el-row
>
<
/el-row
>
<
/el-form
>
<
/el-form
>
...
@@ -368,12 +413,18 @@ export default {
...
@@ -368,12 +413,18 @@ export default {
],
],
// 治疗状态下拉框
// 治疗状态下拉框
treatStatusList
:
[
treatStatusList
:
[
{
value
:
null
,
{
label
:
'全部'
}
,
value
:
null
,
{
value
:
[
'2'
],
label
:
'全部'
label
:
'待治疗'
}
,
}
,
{
value
:
[
'3'
],
{
label
:
'已治疗'
}
value
:
[
'3'
],
label
:
'已治疗'
}
,
{
value
:
[
'2'
],
label
:
'待治疗'
}
],
],
// 预约诊室集合
// 预约诊室集合
appointmentRoomList
:
[],
appointmentRoomList
:
[],
...
@@ -449,7 +500,9 @@ export default {
...
@@ -449,7 +500,9 @@ export default {
methods
:
{
methods
:
{
// 表单选择框对齐
// 表单选择框对齐
cellClass
(
row
)
{
cellClass
(
row
)
{
if
(
row
.
columnIndex
===
0
)
{
return
'disabledCheck'
}
if
(
row
.
columnIndex
===
0
)
{
return
'disabledCheck'
}
}
,
}
,
// 表格
// 表格
getRowKeys
(
row
)
{
getRowKeys
(
row
)
{
...
@@ -551,7 +604,7 @@ export default {
...
@@ -551,7 +604,7 @@ export default {
console
.
log
(
value
)
console
.
log
(
value
)
}
,
}
,
// 预约诊室搜索
// 预约诊室搜索
allocationFormChangeName
(
value
)
{
allocationFormChangeName
()
{
console
.
log
(
typeof
this
.
allocationForm
.
consultRoomIdList
[
0
])
console
.
log
(
typeof
this
.
allocationForm
.
consultRoomIdList
[
0
])
this
.
getAppointmentRecord
()
this
.
getAppointmentRecord
()
}
,
}
,
...
@@ -686,8 +739,9 @@ export default {
...
@@ -686,8 +739,9 @@ export default {
border
-
radius
:
6
px
6
px
6
px
6
px
;
border
-
radius
:
6
px
6
px
6
px
6
px
;
border
:
1
px
solid
rgb
(
95
,
181
,
75
);
border
:
1
px
solid
rgb
(
95
,
181
,
75
);
color
:
#
5
FB54B
;
color
:
#
5
FB54B
;
background
:
rgba
(
91
,
182
,
71
,
0.08
);
background
:
rgba
(
91
,
182
,
71
,
0.08
);
font
-
family
:
Microsoft
YaHei
-
Regular
,
Microsoft
YaHei
;
font
-
family
:
Microsoft
YaHei
-
Regular
,
Microsoft
YaHei
;
&
:
hover
{
&
:
hover
{
background
:
rgba
(
95
,
181
,
75
,
0.08
);
background
:
rgba
(
95
,
181
,
75
,
0.08
);
opacity
:
1
;
opacity
:
1
;
...
@@ -695,6 +749,7 @@ export default {
...
@@ -695,6 +749,7 @@ export default {
color
:
#
5
FB54B
!
important
;
color
:
#
5
FB54B
!
important
;
}
}
}
}
/** 立即预约 */
/** 立即预约 */
.
bookNow
{
.
bookNow
{
width
:
80
px
;
width
:
80
px
;
...
@@ -703,6 +758,7 @@ export default {
...
@@ -703,6 +758,7 @@ export default {
color
:
#
FF9D4E
;
color
:
#
FF9D4E
;
background
:
rgba
(
255
,
157
,
78
,
0.08
);
background
:
rgba
(
255
,
157
,
78
,
0.08
);
font
-
family
:
Microsoft
YaHei
-
Regular
,
Microsoft
YaHei
;
font
-
family
:
Microsoft
YaHei
-
Regular
,
Microsoft
YaHei
;
&
:
hover
{
&
:
hover
{
background
:
rgba
(
95
,
181
,
75
,
0.08
);
background
:
rgba
(
95
,
181
,
75
,
0.08
);
opacity
:
1
;
opacity
:
1
;
...
@@ -710,6 +766,7 @@ export default {
...
@@ -710,6 +766,7 @@ export default {
color
:
#
FF9D4E
!
important
;
color
:
#
FF9D4E
!
important
;
}
}
}
}
.
bookNowNo
{
.
bookNowNo
{
width
:
80
px
;
width
:
80
px
;
border
-
radius
:
6
px
6
px
6
px
6
px
;
border
-
radius
:
6
px
6
px
6
px
6
px
;
...
@@ -717,6 +774,7 @@ export default {
...
@@ -717,6 +774,7 @@ export default {
color
:
#
909399
;
color
:
#
909399
;
background
:
#
ffffff
;
background
:
#
ffffff
;
font
-
family
:
Microsoft
YaHei
-
Regular
,
Microsoft
YaHei
;
font
-
family
:
Microsoft
YaHei
-
Regular
,
Microsoft
YaHei
;
&
:
hover
{
&
:
hover
{
background
:
rgba
(
95
,
181
,
75
,
0.08
);
background
:
rgba
(
95
,
181
,
75
,
0.08
);
opacity
:
1
;
opacity
:
1
;
...
@@ -724,6 +782,7 @@ export default {
...
@@ -724,6 +782,7 @@ export default {
color
:
#
909399
!
important
;
color
:
#
909399
!
important
;
}
}
}
}
.
app
-
container
{
.
app
-
container
{
background
-
color
:
#
FFFFFF
;
background
-
color
:
#
FFFFFF
;
}
}
...
...
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