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
451ff952
Commit
451ff952
authored
Aug 23, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
edce08fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
medical-edit.vue
src/views/medical-record-management/medical-edit.vue
+6
-4
No files found.
src/views/medical-record-management/medical-edit.vue
View file @
451ff952
...
@@ -975,6 +975,7 @@ color: #333333;"
...
@@ -975,6 +975,7 @@ color: #333333;"
<el-table
ref=
"inHospitalForm"
:data=
"petInHospitalList"
:header-cell-style=
"{ background:'#F4F4F4'}"
border
>
<el-table
ref=
"inHospitalForm"
:data=
"petInHospitalList"
:header-cell-style=
"{ background:'#F4F4F4'}"
border
>
<el-table-column
align=
"center"
label=
"病情等级"
prop=
"diseaseLevel"
>
<el-table-column
align=
"center"
label=
"病情等级"
prop=
"diseaseLevel"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<sapn
v-if=
"!scope.row.diseaseLevel && !petInHospitalUpdateShow"
>
-
</sapn>
<dict-tag
v-if=
"!petInHospitalUpdateShow"
:options=
"dict.type.disease_level"
:value=
"scope.row.diseaseLevel"
/>
<dict-tag
v-if=
"!petInHospitalUpdateShow"
:options=
"dict.type.disease_level"
:value=
"scope.row.diseaseLevel"
/>
<el-form-item
v-else
:prop=
"'diseaseLevel'"
style=
"height: 55px"
:rule=
"inHosRules.diseaseLevel"
>
<el-form-item
v-else
:prop=
"'diseaseLevel'"
style=
"height: 55px"
:rule=
"inHosRules.diseaseLevel"
>
<el-select
v-model=
"scope.row.diseaseLevel"
placeholder=
"请选择病情等级"
clearable=
"true"
>
<el-select
v-model=
"scope.row.diseaseLevel"
placeholder=
"请选择病情等级"
clearable=
"true"
>
...
@@ -995,7 +996,7 @@ color: #333333;"
...
@@ -995,7 +996,7 @@ color: #333333;"
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"能否沐浴"
prop=
"bathe"
>
<el-table-column
align=
"center"
label=
"能否沐浴"
prop=
"bathe"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"!petInHospitalUpdateShow"
>
{{
scope
.
row
.
bathe
===
'0'
?
'能'
:
'否
'
}}
</span>
<span
v-if=
"!petInHospitalUpdateShow"
>
{{
scope
.
row
.
bathe
?
(
scope
.
row
.
bathe
===
'0'
?
'能'
:
'否'
):
'-
'
}}
</span>
<el-form-item
v-else
:prop=
"'bathe'"
style=
"height: 55px"
:rule=
"inHosRules.bathe"
>
<el-form-item
v-else
:prop=
"'bathe'"
style=
"height: 55px"
:rule=
"inHosRules.bathe"
>
<el-select
v-model=
"scope.row.bathe"
placeholder=
"请选择能否沐浴"
clearable=
"true"
>
<el-select
v-model=
"scope.row.bathe"
placeholder=
"请选择能否沐浴"
clearable=
"true"
>
<el-option
<el-option
...
@@ -1061,11 +1062,11 @@ color: #333333;"
...
@@ -1061,11 +1062,11 @@ color: #333333;"
>
保存
>
保存
</el-button>
</el-button>
<el-button
<el-button
v-if=
"isEdit && !petInHospitalStatus && !petInHospitalUpdateShow"
v-if=
"isEdit && !petInHospitalStatus && !petInHospitalUpdateShow
&& (scope.row.status === '1' || scope.row.status === '2')
"
icon=
"el-icon-document"
icon=
"el-icon-document"
plain
plain
size=
"mini"
size=
"mini"
style=
"width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(155,0,65);
"
class=
"el-button--error--solid
"
type=
"danger"
type=
"danger"
@
click=
"delPetInHospital(scope.row)"
@
click=
"delPetInHospital(scope.row)"
>
删除
>
删除
...
@@ -1899,7 +1900,7 @@ export default {
...
@@ -1899,7 +1900,7 @@ export default {
wardRuleId
:
''
,
wardRuleId
:
''
,
admissionDate
:
''
,
admissionDate
:
''
,
actualDays
:
''
,
actualDays
:
''
,
status
:
'
1
'
status
:
''
}
}
this
.
petInHospitalList
=
[]
this
.
petInHospitalList
=
[]
this
.
petInHospitalList
.
push
(
obj
)
this
.
petInHospitalList
.
push
(
obj
)
...
@@ -2074,6 +2075,7 @@ export default {
...
@@ -2074,6 +2075,7 @@ export default {
console
.
log
(
'修改保存'
,
row
)
console
.
log
(
'修改保存'
,
row
)
this
.
$refs
.
inHosForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
inHosForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
row
.
state
=
'1'
const
updateForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
recordDetail
))
const
updateForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
recordDetail
))
updateForm
.
inHospitalBo
=
row
updateForm
.
inHospitalBo
=
row
updateForm
.
inHospitalBo
.
createTime
=
null
updateForm
.
inHospitalBo
.
createTime
=
null
...
...
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