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
331dd422
Commit
331dd422
authored
Jul 10, 2023
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
住院管理
parent
4a3d1c55
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
353 additions
and
6 deletions
+353
-6
inHospital.js
src/api/business/inHospital.js
+44
-0
index.js
src/router/index.js
+9
-0
hospitalization-management.vue
...hospitalization-management/hospitalization-management.vue
+300
-6
No files found.
src/api/business/inHospital.js
0 → 100644
View file @
331dd422
import
request
from
'@/utils/request'
// 查询业务管理-住院管理列表
export
function
listHospital
(
query
)
{
return
request
({
url
:
'/business/hospital/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询业务管理-住院管理详细
export
function
getHospital
(
id
)
{
return
request
({
url
:
'/business/hospital/'
+
id
,
method
:
'get'
})
}
// 新增业务管理-住院管理
export
function
addHospital
(
data
)
{
return
request
({
url
:
'/business/hospital'
,
method
:
'post'
,
data
:
data
})
}
// 修改业务管理-住院管理
export
function
updateHospital
(
data
)
{
return
request
({
url
:
'/business/hospital'
,
method
:
'put'
,
data
:
data
})
}
// 删除业务管理-住院管理
export
function
delHospital
(
id
)
{
return
request
({
url
:
'/business/hospital/'
+
id
,
method
:
'delete'
})
}
src/router/index.js
View file @
331dd422
...
...
@@ -360,6 +360,15 @@ export const constantRoutes = [
title
:
'检查管理'
,
icon
:
'component'
}
},
{
path
:
'hospitalization-management'
,
component
:
()
=>
import
(
'@/views/service-management/hospitalization-management/hospitalization-management.vue'
),
name
:
'HospitalizationManagement'
,
props
:
true
,
meta
:
{
title
:
'住院管理'
,
icon
:
'component'
}
},
// 检查详情
{
path
:
'check-detail'
,
...
...
src/views/service-management/hospitalization-management/hospitalization-management.vue
View file @
331dd422
<
template
>
<div>
住院管理
</div>
<div
class=
"app-container"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:model=
"queryParams"
size=
"small"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"病历id"
prop=
"medicalRecordId"
>
<el-input
v-model=
"queryParams.medicalRecordId"
placeholder=
"请输入病历id"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"沐浴"
prop=
"bathe"
>
<el-input
v-model=
"queryParams.bathe"
placeholder=
"请输入沐浴"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"出院结果1-允许出院、2-占用"
prop=
"result"
>
<el-input
v-model=
"queryParams.result"
placeholder=
"请输入出院结果1-允许出院、2-占用"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"病情等级"
prop=
"diseaseLevel"
>
<el-input
v-model=
"queryParams.diseaseLevel"
placeholder=
"请输入病情等级"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['business:hospital:add']"
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['business:hospital:edit']"
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['business:hospital:remove']"
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
>
删除
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
v-hasPermi=
"['business:hospital:export']"
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
>
导出
</el-button>
</el-col>
<right-toolbar
:show-search
.
sync=
"showSearch"
@
queryTable=
"getList"
/>
</el-row>
<el-table
v-loading=
"loading"
:data=
"hospitalList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"主键"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"病历id"
align=
"center"
prop=
"medicalRecordId"
/>
<el-table-column
label=
"沐浴"
align=
"center"
prop=
"bathe"
/>
<el-table-column
label=
"1-待缴费"
align=
"center"
prop=
"status"
/>
<el-table-column
label=
"出院情况"
align=
"center"
prop=
"dischargeStatus"
/>
<el-table-column
label=
"医嘱"
align=
"center"
prop=
"doctorAdvice"
/>
<el-table-column
label=
"出院结果1-允许出院、2-占用"
align=
"center"
prop=
"result"
/>
<el-table-column
label=
"病情等级"
align=
"center"
prop=
"diseaseLevel"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
v-hasPermi=
"['business:hospital:edit']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
v-hasPermi=
"['business:hospital:remove']"
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改业务管理-住院管理对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"病历id"
prop=
"medicalRecordId"
>
<el-input
v-model=
"form.medicalRecordId"
placeholder=
"请输入病历id"
/>
</el-form-item>
<el-form-item
label=
"沐浴"
prop=
"bathe"
>
<el-input
v-model=
"form.bathe"
placeholder=
"请输入沐浴"
/>
</el-form-item>
<el-form-item
label=
"医嘱"
prop=
"doctorAdvice"
>
<el-input
v-model=
"form.doctorAdvice"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"出院结果1-允许出院、2-占用"
prop=
"result"
>
<el-input
v-model=
"form.result"
placeholder=
"请输入出院结果1-允许出院、2-占用"
/>
</el-form-item>
<el-form-item
label=
"0"
prop=
"delFlag"
>
<el-input
v-model=
"form.delFlag"
placeholder=
"请输入0"
/>
</el-form-item>
<el-form-item
label=
"病情等级"
prop=
"diseaseLevel"
>
<el-input
v-model=
"form.diseaseLevel"
placeholder=
"请输入病情等级"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listHospital
,
getHospital
,
delHospital
,
addHospital
,
updateHospital
}
from
'@/api/business/inHospital'
export
default
{
name
:
'HospitalizationManagement'
name
:
'HospitalizationManagement'
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 业务管理-住院管理表格数据
hospitalList
:
[],
// 弹出层标题
title
:
''
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
medicalRecordId
:
null
,
bathe
:
null
,
status
:
null
,
dischargeStatus
:
null
,
doctorAdvice
:
null
,
result
:
null
,
diseaseLevel
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
}
},
created
()
{
this
.
getList
()
},
methods
:
{
/** 查询业务管理-住院管理列表 */
getList
()
{
this
.
loading
=
true
listHospital
(
this
.
queryParams
).
then
(
response
=>
{
this
.
hospitalList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
})
},
// 取消按钮
cancel
()
{
this
.
open
=
false
this
.
reset
()
},
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
medicalRecordId
:
null
,
bathe
:
null
,
status
:
null
,
dischargeStatus
:
null
,
doctorAdvice
:
null
,
result
:
null
,
createTime
:
null
,
createBy
:
null
,
updateTime
:
null
,
updateBy
:
null
,
delFlag
:
null
,
diseaseLevel
:
null
}
this
.
resetForm
(
'form'
)
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
this
.
getList
()
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
'queryForm'
)
this
.
handleQuery
()
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
this
.
title
=
'添加业务管理-住院管理'
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
()
const
id
=
row
.
id
||
this
.
ids
getHospital
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
open
=
true
this
.
title
=
'修改业务管理-住院管理'
})
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateHospital
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
}
else
{
addHospital
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
this
.
$modal
.
confirm
(
'是否确认删除业务管理-住院管理编号为"'
+
ids
+
'"的数据项?'
).
then
(
function
()
{
return
delHospital
(
ids
)
}).
then
(()
=>
{
this
.
getList
()
this
.
$modal
.
msgSuccess
(
'删除成功'
)
}).
catch
(()
=>
{})
},
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'business/hospital/export'
,
{
...
this
.
queryParams
},
`hospital_
${
new
Date
().
getTime
()}
.xlsx`
)
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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