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
119dc846
Commit
119dc846
authored
Sep 06, 2023
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
67374 病历管理,头像会从有到无
parent
ea04de1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
default_pet.jpg
src/assets/images/default_pet.jpg
+0
-0
medical-edit.vue
src/views/medical-record-management/medical-edit.vue
+12
-8
No files found.
src/assets/images/default_pet.jpg
0 → 100644
View file @
119dc846
14.9 KB
src/views/medical-record-management/medical-edit.vue
View file @
119dc846
...
@@ -1434,7 +1434,7 @@ import {
...
@@ -1434,7 +1434,7 @@ import {
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
{
addHospital
,
delHospital
,
listHospital
,
updateHospitalRecord
}
from
'@/api/business/inHospital'
import
{
addHospital
,
delHospital
,
listHospital
,
updateHospitalRecord
}
from
'@/api/business/inHospital'
import
moment
from
'moment/moment'
import
moment
from
'moment/moment'
import
a
from
'@/assets/images/bg.pn
g'
import
petPic
from
'@/assets/images/default_pet.jp
g'
import
{
checkPermi
}
from
'@/utils/permission'
import
{
checkPermi
}
from
'@/utils/permission'
export
default
{
export
default
{
...
@@ -1459,7 +1459,7 @@ export default {
...
@@ -1459,7 +1459,7 @@ export default {
return
{
return
{
submiting
:
false
,
// 提交按钮loading flag
submiting
:
false
,
// 提交按钮loading flag
/* 默认头像 */
/* 默认头像 */
defaultImage
:
a
,
defaultImage
:
petPic
,
drugOptions
:
[],
// 药品列表
drugOptions
:
[],
// 药品列表
// 是否显示检查弹窗flag
// 是否显示检查弹窗flag
isShowCheckReport
:
false
,
isShowCheckReport
:
false
,
...
@@ -1706,12 +1706,16 @@ export default {
...
@@ -1706,12 +1706,16 @@ export default {
if
(
data
.
drugId
&&
data
.
recipelNum
)
{
if
(
data
.
drugId
&&
data
.
recipelNum
)
{
const
drugInfo
=
this
.
drugOptions
.
find
(
item
=>
data
.
drugId
===
item
.
drugId
)
const
drugInfo
=
this
.
drugOptions
.
find
(
item
=>
data
.
drugId
===
item
.
drugId
)
console
.
log
(
'drugInfo'
,
drugInfo
)
console
.
log
(
'drugInfo'
,
drugInfo
)
let
result
=
'-'
if
(
drugInfo
)
{
if
(
drugInfo
.
sallUnit
!==
drugInfo
.
normsUnit
)
{
let
result
=
'-'
result
=
data
.
recipelNum
*
drugInfo
.
ratioValue
if
(
drugInfo
.
sallUnit
!==
drugInfo
.
normsUnit
)
{
result
=
data
.
recipelNum
*
drugInfo
.
ratioValue
}
result
=
result
>
drugInfo
.
sallNum
?
result
:
drugInfo
.
sallNum
return
Math
.
ceil
(
result
)
?
Math
.
ceil
(
result
)
+
drugInfo
.
sallUnit
:
'-'
}
else
{
return
'-'
}
}
result
=
result
>
drugInfo
.
sallNum
?
result
:
drugInfo
.
sallNum
return
Math
.
ceil
(
result
)
?
Math
.
ceil
(
result
)
+
drugInfo
.
sallUnit
:
'-'
}
else
{
}
else
{
return
'-'
return
'-'
}
}
...
@@ -1728,7 +1732,7 @@ export default {
...
@@ -1728,7 +1732,7 @@ export default {
/* 展示默认头像的方法 */
/* 展示默认头像的方法 */
showLogo
()
{
showLogo
()
{
console
.
log
(
'dadada'
,
this
.
petInfo
.
petPicture
)
console
.
log
(
'dadada'
,
this
.
petInfo
.
petPicture
)
if
(
this
.
petInfo
.
petPicture
!==
null
&&
this
.
petInfo
.
petPicture
!==
''
)
{
if
(
this
.
petInfo
.
petPicture
)
{
return
this
.
baseURL
+
this
.
petInfo
.
petPicture
return
this
.
baseURL
+
this
.
petInfo
.
petPicture
}
else
{
}
else
{
return
this
.
defaultImage
return
this
.
defaultImage
...
...
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