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
Commit
ad78410e
authored
Sep 03, 2021
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
900aec20
Changes
1
Hide 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 @@
...
@@ -6,7 +6,13 @@
@
click=
"goBack"
@
click=
"goBack"
><i
class=
"el-icon-back"
></i>
返回
</span>
><i
class=
"el-icon-back"
></i>
返回
</span>
<el-divider
direction=
"vertical"
></el-divider>
<el-divider
direction=
"vertical"
></el-divider>
<span
class=
"title"
>
患者详情
</span>
<span
class=
"title"
>
{{
type
===
'update'
?
'修改病患'
:
type
===
'add'
?
'新增病患'
:
type
===
'detail'
?
'病患详情'
:
''
}}
</span>
</div>
</div>
<div
class=
"main-page-body"
>
<div
class=
"main-page-body"
>
<div
class=
"mainContent background-white"
>
<div
class=
"mainContent background-white"
>
...
@@ -420,7 +426,7 @@
...
@@ -420,7 +426,7 @@
>
>
<el-select
<el-select
v-model=
"dataForm.inHospitalCode"
v-model=
"dataForm.inHospitalCode"
placeholder=
"请选择接诊医院名称
:
"
placeholder=
"请选择接诊医院名称"
style=
"width: 100%"
style=
"width: 100%"
:clearable=
"true"
:clearable=
"true"
filterable
filterable
...
@@ -428,6 +434,7 @@
...
@@ -428,6 +434,7 @@
ref=
"hospitalCode"
ref=
"hospitalCode"
:loading=
"selectLoading"
:loading=
"selectLoading"
:remote-method=
"remoteMethod"
:remote-method=
"remoteMethod"
@
focus=
"remoteMethod('')"
>
>
<el-option
<el-option
v-for=
"item in hospitalList"
v-for=
"item in hospitalList"
...
@@ -467,6 +474,7 @@
...
@@ -467,6 +474,7 @@
ref=
"hospitalCode"
ref=
"hospitalCode"
:loading=
"selectLoading2"
:loading=
"selectLoading2"
:remote-method=
"remoteMethod2"
:remote-method=
"remoteMethod2"
@
focus=
"remoteMethod2('')"
>
>
<el-option
<el-option
v-for=
"item in hospitalList2"
v-for=
"item in hospitalList2"
...
@@ -1641,6 +1649,25 @@ export default {
...
@@ -1641,6 +1649,25 @@ export default {
}
}
},
},
methods
:
{
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
()
{
getDetailData
()
{
const
params
=
{
const
params
=
{
patientType
:
this
.
patientType
,
patientType
:
this
.
patientType
,
...
@@ -1683,12 +1710,10 @@ export default {
...
@@ -1683,12 +1710,10 @@ export default {
this
.
$message
.
error
(
'无效数据'
);
this
.
$message
.
error
(
'无效数据'
);
return
return
}
}
this
.
hospitalList
=
[{
this
.
remoteMethod
(
site
.
hospitalName
)
...
site
}]
this
.
dataForm
.
inHospitalCode
=
site
.
hospitalCode
this
.
dataForm
.
inHospitalCode
=
site
.
hospitalCode
console
.
log
(
this
.
dataForm
.
inHospitalCode
)
//
console.log(this.dataForm.inHospitalCode)
console
.
log
(
this
.
hospitalList
)
//
console.log(this.hospitalList)
}
}
},
},
...
@@ -1730,6 +1755,12 @@ export default {
...
@@ -1730,6 +1755,12 @@ export default {
submitForm
()
{
submitForm
()
{
this
.
$refs
.
dataForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
dataForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
const
params
=
{
const
params
=
{
type
:
this
.
patientType
,
type
:
this
.
patientType
,
}
}
...
@@ -1752,6 +1783,8 @@ export default {
...
@@ -1752,6 +1783,8 @@ export default {
}
}
const
{
siteName
}
=
site
const
{
siteName
}
=
site
formData
.
carCompany
=
siteName
formData
.
carCompany
=
siteName
}
else
{
formData
.
carCompany
=
""
}
}
...
@@ -1764,6 +1797,8 @@ export default {
...
@@ -1764,6 +1797,8 @@ export default {
return
return
}
}
formData
.
inHospitalName
=
inHospital
.
hospitalName
formData
.
inHospitalName
=
inHospital
.
hospitalName
}
else
{
formData
.
inHospitalName
=
""
}
}
// 基层医院
// 基层医院
...
@@ -1775,7 +1810,10 @@ export default {
...
@@ -1775,7 +1810,10 @@ export default {
return
return
}
}
formData
.
outHospitalName
=
outHospital
.
hospitalName
formData
.
outHospitalName
=
outHospital
.
hospitalName
}
else
{
formData
.
outHospitalName
=
""
}
}
if
(
this
.
patientType
==
1
)
{
if
(
this
.
patientType
==
1
)
{
params
.
preChestVo
=
formData
params
.
preChestVo
=
formData
}
else
if
(
this
.
patientType
==
2
)
{
}
else
if
(
this
.
patientType
==
2
)
{
...
@@ -1786,8 +1824,20 @@ export default {
...
@@ -1786,8 +1824,20 @@ export default {
params
.
preBurnVo
=
formData
params
.
preBurnVo
=
formData
}
}
savePreInfo
(
this
.
type
,
params
).
then
(
res
=>
{
savePreInfo
(
this
.
type
,
params
).
then
(
res
=>
{
loading
.
close
();
if
(
res
.
msg
===
201
)
{
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
{
}
else
{
this
.
$message
.
error
(
res
.
content
)
this
.
$message
.
error
(
res
.
content
)
}
}
...
@@ -1865,10 +1915,12 @@ export default {
...
@@ -1865,10 +1915,12 @@ export default {
</
style
>
</
style
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.background-gray
{
.background-gray
{
.el-tabs__item
{
.el-tabs__item
,
.el-tabs__item.is-disabled
{
color
:
#333
;
color
:
#333
;
}
}
.el-tabs__item.is-active
{
.el-tabs__item.is-active
,
.el-tabs__item.is-disabled.is-active
{
color
:
#017bce
;
color
:
#017bce
;
}
}
.el-input.is-disabled
.el-input__inner
{
.el-input.is-disabled
.el-input__inner
{
...
@@ -1880,7 +1932,11 @@ export default {
...
@@ -1880,7 +1932,11 @@ export default {
border-color
:
#40a2de
;
border-color
:
#40a2de
;
background-color
:
#fff
;
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
;
background-color
:
#40a2de
;
}
}
.el-radio__input.is-disabled
+
span
.el-radio__label
{
.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