Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陈婉清
/
scrm-micro-inventory
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit baf475d7
authored
Apr 17, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
35379d23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
23 deletions
src/views/check/inventoryDetailDialog.vue
src/views/check/inventoryDetailDialog.vue
View file @
baf475d
<!-- 盘点详情弹窗弹窗 -->
<!-- 盘点详情弹窗弹窗 -->
<
template
>
<
template
>
<GLDialog
bigTitle=
"详细信息"
<GLDialog
bigTitle=
"详细信息"
:visible
.
sync=
"inventoryDetailVisible"
:before-close=
"handleClose"
class=
"inventoryDetailDailog"
mode=
"big"
okText=
"关闭"
@
onCancel=
"handleClose"
@
onOk=
"handleClose"
>
:visible
.
sync=
"inventoryDetailVisible"
class=
"inventoryDetailDailog"
mode=
"big"
okText=
"关闭"
@
onCancel=
"handleClose"
@
onOk=
"handleClose"
>
<div>
<div>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
style=
"padding: 10px 20px"
>
slot=
"header"
style=
"padding: 10px 20px;"
>
<!--
<GLCombiForm
ref=
"showSearch"
<!--
<GLCombiForm
ref=
"showSearch"
class=
"show-search"
class=
"show-search"
:search-form=
"searchForm"
:search-form=
"searchForm"
...
@@ -18,20 +10,12 @@
...
@@ -18,20 +10,12 @@
:form-data=
"showFormData"
></GLCombiForm>
-->
:form-data=
"showFormData"
></GLCombiForm>
-->
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<GLTable
ref=
"recordTable"
<GLTable
ref=
"recordTable"
:getListApi=
"getListApi"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
:getListApi=
"getListApi"
<template
slot=
"profitAndLoss"
slot-scope=
"scope"
>
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
<template
slot=
"profitAndLoss"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0"
>
<span
v-if=
"scope.scope.profitAndLoss || scope.scope.profitAndLoss == 0"
>
<span
v-if=
"parseFloat(scope.scope.profitAndLoss) > 0"
<span
v-if=
"parseFloat(scope.scope.profitAndLoss) > 0"
style=
"color: blue"
>
{{
'+'
+
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
style=
"color:blue"
>
{{
'+'
+
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-else-if=
"parseFloat(scope.scope.profitAndLoss)
< 0
"
style=
"color: red"
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-else-if=
"parseFloat(scope.scope.profitAndLoss)
< 0
"
<span
v-else
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
style=
"color:red"
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-else
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
</span>
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment