Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-finance-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-finance-web
Commits
d82ea29e
Commit
d82ea29e
authored
Sep 27, 2023
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
药品bug
parent
d525fdc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
drug-delivery-management.vue
...ent/drug-delivery-management/drug-delivery-management.vue
+7
-3
No files found.
src/views/inventory-management/drug-delivery-management/drug-delivery-management.vue
View file @
d82ea29e
...
...
@@ -185,7 +185,7 @@
</el-table-column>
<el-table-column
label=
"当前库存"
align=
"left"
prop=
"currentQty"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
currentQty
}}
</span>
<span>
{{
scope
.
row
.
currentQty
||
"0"
}}
</span>
<span
style=
"margin-left: 5px"
>
{{
scope
.
row
.
stockUnit
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -274,7 +274,8 @@
</el-table-column>
<el-table-column
label=
"当前库存 "
align=
"left"
:min-width=
"50"
prop=
"currentQty"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
currentQty
+
scope
.
row
.
stockUnit
}}
<span>
{{
scope
.
row
.
currentQty
||
"0"
}}
</span>
<span
style=
"margin-left: 5px"
>
{{
scope
.
row
.
stockUnit
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"货架"
align=
"left"
:min-width=
"50"
prop=
"location"
/>
...
...
@@ -492,7 +493,7 @@
<
script
>
import
{
parseTime
}
from
'@/utils/ruoyi'
import
{
parse
StrEmpty
,
parse
Time
}
from
'@/utils/ruoyi'
import
{
mapGetters
}
from
'vuex'
import
{
drugOut
,
getDrug
,
listDrugDelivery
}
from
'../../../api/financial/drug'
import
{
deepClone
,
moneyFormat
}
from
'@/utils'
...
...
@@ -749,6 +750,9 @@ export default {
getDrug
(
id
).
then
(
res
=>
{
console
.
log
(
'药品信息'
,
res
)
this
.
form
=
{
number
:
0
,
...
res
.
data
}
if
(
parseStrEmpty
(
this
.
form
.
currentQty
)
===
''
)
{
this
.
form
.
currentQty
=
'0'
}
if
(
this
.
form
.
currentQty
<
this
.
form
.
safeQty
)
{
console
.
log
(
'为真了'
)
...
...
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