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
a7c18430
Commit
a7c18430
authored
Aug 07, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查管理-平台权限
parent
2bec70f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
15 deletions
+68
-15
medical-record-management.vue
...t/medical-record-management/medical-record-management.vue
+68
-15
No files found.
src/views/service-management/medical-record-management/medical-record-management.vue
View file @
a7c18430
...
...
@@ -8,7 +8,7 @@
clearable
/>
</el-form-item>
<el-form-item
prop=
"checkType"
>
<el-form-item
v-if=
"!isPlatRole"
prop=
"checkType"
>
<el-select
v-model=
"queryParams.checkType"
clearable
placeholder=
"检查类型"
@
change=
"checkTypeChange"
>
<el-option
v-for=
"item in checkTypeOptions"
...
...
@@ -18,7 +18,7 @@
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item
v-if=
"!isPlatRole"
>
<el-select
v-model=
"queryParams.checkItemsId"
:disabled=
"queryParams.checkType === null || queryParams.checkType === ''"
...
...
@@ -33,6 +33,20 @@
/>
</el-select>
</el-form-item>
<el-form-item
v-else
>
<el-select
v-model=
"queryParams.checkItemsId"
clearable
placeholder=
"检查项目"
>
<el-option
v-for=
"item in checkItemOptions"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-select
v-model=
"queryParams.checkSchedule"
clearable
placeholder=
"检查状态"
>
<el-option
...
...
@@ -121,7 +135,7 @@
>
<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=
"检查类型"
align=
"left"
prop=
"checkType"
min-width=
"105"
>
<el-table-column
v-if=
"!isPlatRole"
label=
"检查类型"
align=
"left"
prop=
"checkType"
min-width=
"105"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.check_type"
...
...
@@ -134,8 +148,13 @@
<span>
{{
scope
.
row
.
checkItemsName
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"宠物昵称"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"petNickname"
/>
<el-table-column
label=
"宠物保险"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"insure"
>
<el-table-column
v-if=
"isPlatRole"
label=
"检查设备"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"deviceName"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
deviceName
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"!isPlatRole"
label=
"宠物昵称"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"petNickname"
/>
<el-table-column
v-if=
"!isPlatRole"
label=
"宠物保险"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"insure"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.pet_insure"
...
...
@@ -143,15 +162,31 @@
/>
</
template
>
</el-table-column>
<el-table-column
label=
"宠主姓名"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"nickname"
>
<el-table-column
v-if=
"!isPlatRole"
label=
"宠主姓名"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"nickname"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
nickname
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"联系方式"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"phonenumber"
min-width=
"100"
/>
<el-table-column
v-if=
"!isPlatRole"
label=
"联系方式"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"phonenumber"
min-width=
"100"
/>
<el-table-column
label=
"预约兽医"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"doctorName"
/>
<el-table-column
label=
"所属科室"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"doctorDeptName"
/>
<el-table-column
label=
"缴费状态"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"payType"
>
<el-table-column
v-if=
"!isPlatRole"
label=
"所属科室"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"doctorDeptName"
/>
<el-table-column
v-if=
"isPlatRole"
label=
"所属医院"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"hospitalName"
/>
<el-table-column
v-if=
"isPlatRole"
label=
"宠物昵称"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"petNickname"
/>
<el-table-column
v-if=
"isPlatRole"
label=
"宠物保险"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"insure"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.pet_insure"
:value=
"scope.row.insure"
/>
</
template
>
</el-table-column>
<el-table-column
v-if=
"isPlatRole"
label=
"宠主姓名"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"nickname"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
nickname
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"isPlatRole"
label=
"联系方式"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"phonenumber"
min-width=
"100"
/>
<el-table-column
v-if=
"!isPlatRole"
label=
"缴费状态"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"payType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.payment_status"
...
...
@@ -159,7 +194,7 @@
/>
</
template
>
</el-table-column>
<el-table-column
label=
"预约状态"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"checkSchedule"
>
<el-table-column
v-if=
"!isPlatRole"
label=
"预约状态"
align=
"left"
:show-overflow-tooltip=
"true"
prop=
"checkSchedule"
>
<
template
slot-scope=
"scope"
>
<span
v-show=
"scope.row.checkSchedule
<
2
"
style=
"color: #F56C6C"
>
待预约
</span>
<span
v-show=
"scope.row.checkSchedule >= 2"
style=
"color: #67C23A"
>
已预约
</span>
...
...
@@ -195,6 +230,7 @@
>
详情
<
/el-button
>
<
el
-
button
v
-
if
=
"!isPlatRole"
style
=
"width: 80px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(255, 157, 78);color: #FF9D4E;background: rgba(255,157,78,0.08);"
size
=
"mini"
type
=
"success"
...
...
@@ -321,7 +357,7 @@
<
script
>
import
{
getManage
,
delManage
,
addManage
,
updateManage
,
listCheckManage
,
selectCheckAll
}
from
'@/api/business/manage'
import
{
deviceUseInSubscribeList
,
listReservationDevice
}
from
'@/api/business/device'
import
{
listItemByType
}
from
'@/api/business/item'
import
{
listItemByType
,
listPlatformItem
}
from
'@/api/business/item'
import
{
parseTime
}
from
'@/utils/ruoyi'
import
{
updateCheck
}
from
'@/api/business/mdeicalRecord'
...
...
@@ -330,6 +366,7 @@ export default {
dicts
:
[
'exam_type'
,
'check_type'
,
'pet_insure'
,
'payment_status'
],
data
()
{
return
{
isPlatRole
:
false
,
options
:
[],
// 遮罩层
loading
:
true
,
...
...
@@ -436,15 +473,26 @@ export default {
}
}
,
created
()
{
if
(
this
.
$store
.
state
.
user
.
userType
!==
'00'
)
{
console
.
log
(
'非平台权限'
)
this
.
getList
()
}
else
{
console
.
log
(
'平台权限'
)
this
.
getItemForPlat
()
this
.
getList
()
this
.
loading
=
false
this
.
isPlatRole
=
true
}
}
,
methods
:
{
parseTime
,
/** 查询业务管理-检查管理列表 */
getList
()
{
this
.
loading
=
true
console
.
log
(
'检查状态'
,
typeof
this
.
queryParams
.
checkSchedule
)
// console.log('检查状态', typeof this.queryParams.checkSchedule)
console
.
log
(
'检查筛选条件'
,
this
.
queryParams
)
listCheckManage
(
this
.
queryParams
).
then
(
response
=>
{
console
.
log
(
'检查列表'
,
response
)
this
.
manageList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
...
...
@@ -528,9 +576,14 @@ export default {
// 根据检查类型(医院自有服务、预约外部服务)查询检查项目
getItemByType
(
itemType
)
{
listItemByType
({
itemType
:
itemType
}
).
then
(
res
=>
{
console
.
log
(
'检查项目'
,
res
)
console
.
log
(
'检查项目下拉框数据'
,
res
.
rows
)
this
.
checkItemOptions
=
res
.
rows
}
)
}
,
getItemForPlat
()
{
listPlatformItem
({
itemType
:
'2'
}
).
then
(
res
=>
{
console
.
log
(
'检查项目下拉框数据'
,
res
.
rows
)
this
.
checkItemOptions
=
res
.
rows
console
.
log
(
'xdddd'
,
this
.
checkItemOptions
)
}
)
}
,
/** 获取所有设备用于设备下拉 */
...
...
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