Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
md-vue-chc
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
何鹏程
md-vue-chc
Commits
ad78410e
You need to sign in or sign up before continuing.
Commit
ad78410e
authored
Sep 03, 2021
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
900aec20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
11 deletions
+67
-11
detail.vue
src/page/hospital/detail.vue
+67
-11
No files found.
src/page/hospital/detail.vue
View file @
ad78410e
...
...
@@ -6,7 +6,13 @@
@
click=
"goBack"
><i
class=
"el-icon-back"
></i>
返回
</span>
<el-divider
direction=
"vertical"
></el-divider>
<span
class=
"title"
>
患者详情
</span>
<span
class=
"title"
>
{{
type
===
'update'
?
'修改病患'
:
type
===
'add'
?
'新增病患'
:
type
===
'detail'
?
'病患详情'
:
''
}}
</span>
</div>
<div
class=
"main-page-body"
>
<div
class=
"mainContent background-white"
>
...
...
@@ -420,7 +426,7 @@
>
<el-select
v-model=
"dataForm.inHospitalCode"
placeholder=
"请选择接诊医院名称
:
"
placeholder=
"请选择接诊医院名称"
style=
"width: 100%"
:clearable=
"true"
filterable
...
...
@@ -428,6 +434,7 @@
ref=
"hospitalCode"
:loading=
"selectLoading"
:remote-method=
"remoteMethod"
@
focus=
"remoteMethod('')"
>
<el-option
v-for=
"item in hospitalList"
...
...
@@ -467,6 +474,7 @@
ref=
"hospitalCode"
:loading=
"selectLoading2"
:remote-method=
"remoteMethod2"
@
focus=
"remoteMethod2('')"
>
<el-option
v-for=
"item in hospitalList2"
...
...
@@ -1641,6 +1649,25 @@ export default {
}
},
methods
:
{
init
()
{
this
.
patientType
=
this
.
$route
.
query
.
patientType
||
'1'
this
.
associationId
=
this
.
$route
.
query
.
associationId
this
.
type
=
this
.
$route
.
query
.
type
queryEmergencySiteList
().
then
(
res
=>
{
if
(
res
.
msg
===
201
)
{
this
.
siteList
=
res
.
respData
}
else
{
this
.
$message
.
error
(
res
.
content
)
}
})
queryHospitalList
().
then
(
res
=>
{
this
.
hospitalList
=
res
.
respData
this
.
hospitalList2
=
res
.
respData
})
if
(
this
.
type
===
'update'
||
this
.
type
===
'detail'
)
{
this
.
getDetailData
()
}
},
getDetailData
()
{
const
params
=
{
patientType
:
this
.
patientType
,
...
...
@@ -1683,12 +1710,10 @@ export default {
this
.
$message
.
error
(
'无效数据'
);
return
}
this
.
hospitalList
=
[{
...
site
}]
this
.
remoteMethod
(
site
.
hospitalName
)
this
.
dataForm
.
inHospitalCode
=
site
.
hospitalCode
console
.
log
(
this
.
dataForm
.
inHospitalCode
)
console
.
log
(
this
.
hospitalList
)
//
console.log(this.dataForm.inHospitalCode)
//
console.log(this.hospitalList)
}
},
...
...
@@ -1730,6 +1755,12 @@ export default {
submitForm
()
{
this
.
$refs
.
dataForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
const
params
=
{
type
:
this
.
patientType
,
}
...
...
@@ -1752,6 +1783,8 @@ export default {
}
const
{
siteName
}
=
site
formData
.
carCompany
=
siteName
}
else
{
formData
.
carCompany
=
""
}
...
...
@@ -1764,6 +1797,8 @@ export default {
return
}
formData
.
inHospitalName
=
inHospital
.
hospitalName
}
else
{
formData
.
inHospitalName
=
""
}
// 基层医院
...
...
@@ -1775,7 +1810,10 @@ export default {
return
}
formData
.
outHospitalName
=
outHospital
.
hospitalName
}
else
{
formData
.
outHospitalName
=
""
}
if
(
this
.
patientType
==
1
)
{
params
.
preChestVo
=
formData
}
else
if
(
this
.
patientType
==
2
)
{
...
...
@@ -1786,8 +1824,20 @@ export default {
params
.
preBurnVo
=
formData
}
savePreInfo
(
this
.
type
,
params
).
then
(
res
=>
{
loading
.
close
();
if
(
res
.
msg
===
201
)
{
this
.
$message
.
success
(
this
.
type
===
'add'
?
'新增成功!'
:
'修改成功'
)
this
.
$confirm
(
'保存成功,是否继续?'
,
'提示'
,
{
confirmButtonText
:
'继续'
,
cancelButtonText
:
'退出'
,
closeOnClickModal
:
false
,
closeOnPressEscape
:
false
,
type
:
'success '
}).
then
(()
=>
{
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
())
this
.
init
()
}).
catch
(()
=>
{
window
.
close
();
});
}
else
{
this
.
$message
.
error
(
res
.
content
)
}
...
...
@@ -1865,10 +1915,12 @@ export default {
</
style
>
<
style
lang=
"scss"
>
.background-gray
{
.el-tabs__item
{
.el-tabs__item
,
.el-tabs__item.is-disabled
{
color
:
#333
;
}
.el-tabs__item.is-active
{
.el-tabs__item.is-active
,
.el-tabs__item.is-disabled.is-active
{
color
:
#017bce
;
}
.el-input.is-disabled
.el-input__inner
{
...
...
@@ -1880,7 +1932,11 @@ export default {
border-color
:
#40a2de
;
background-color
:
#fff
;
}
.
el-radio__input
.
is-disabled
.
el-radio__inner
:
:
after
{
.el-radio__input.is-disabled.is-checked
.el-radio__inner
{
border-color
:
#40a2de
;
background-color
:
#fff
;
}
.
el-radio__input
.
is-disabled
.
is-checked
.
el-radio__inner
:
:
after
{
background-color
:
#40a2de
;
}
.el-radio__input.is-disabled
+
span
.el-radio__label
{
...
...
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