Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
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 59b71024
authored
May 09, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
字段添加
1 parent
416a6695
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
21 deletions
src/views/allocation/allocationDetailDialog.vue
src/views/check/inventoryDetailDialog.vue
src/views/allocation/allocationDetailDialog.vue
View file @
59b7102
<!-- 盘点详情弹窗弹窗 -->
<!-- 盘点详情弹窗弹窗 -->
<
template
>
<
template
>
<GLDialog
bigTitle=
"详细信息"
<GLDialog
bigTitle=
"详细信息"
:visible
.
sync=
"allocationDetailVisible"
class=
"inventoryDetailDailog"
mode=
"big"
okText=
"关闭"
:visible
.
sync=
"allocationDetailVisible"
@
onCancel=
"handleClose"
@
onOk=
"handleClose"
>
class=
"inventoryDetailDailog"
mode=
"big"
okText=
"关闭"
@
onCancel=
"handleClose"
@
onOk=
"handleClose"
>
<div>
<div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<GLTable
ref=
"recordTable"
<GLTable
ref=
"recordTable"
:getListApi=
"getListApi"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleClose"
>
关闭
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleClose"
>
关闭
</el-button>
</span>
</span>
</GLDialog>
</GLDialog>
...
@@ -47,6 +39,11 @@ export default {
...
@@ -47,6 +39,11 @@ export default {
prop
:
'goodsName'
prop
:
'goodsName'
},
},
{
{
label
:
'商品编码'
,
prop
:
'productCode'
,
// width: 250
},
{
label
:
'系列'
,
label
:
'系列'
,
prop
:
'sourceMaterialName'
prop
:
'sourceMaterialName'
},
},
...
@@ -74,7 +71,7 @@ export default {
...
@@ -74,7 +71,7 @@ export default {
},
},
allocationInfo
:
{
allocationInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
}
},
},
...
@@ -104,6 +101,7 @@ export default {
...
@@ -104,6 +101,7 @@ export default {
color
:
#2a58ad
;
color
:
#2a58ad
;
margin
:
0
2px
;
margin
:
0
2px
;
}
}
.inventoryDetailDailog
.el-dialog
{
.inventoryDetailDailog
.el-dialog
{
margin-top
:
20vh
!important
;
margin-top
:
20vh
!important
;
min-width
:
700px
;
min-width
:
700px
;
...
...
src/views/check/inventoryDetailDialog.vue
View file @
59b7102
<!-- 盘点详情弹窗弹窗 -->
<!-- 盘点详情弹窗弹窗 -->
<
template
>
<
template
>
<GLDialog
bigTitle=
"详细信息"
:visible
.
sync=
"inventoryDetailVisible"
:before-close=
"handleClose"
class=
"inventoryDetailDailog"
mode=
"big"
okText=
"关闭"
@
onCancel=
"handleClose"
@
onOk=
"handleClose"
>
<GLDialog
bigTitle=
"详细信息"
:visible
.
sync=
"inventoryDetailVisible"
:before-close=
"handleClose"
class=
"inventoryDetailDailog"
mode=
"big"
okText=
"关闭"
@
onCancel=
"handleClose"
@
onOk=
"handleClose"
>
<div>
<div>
<div
class=
"header"
slot=
"header"
style=
"padding: 10px 20px"
>
<div
class=
"header"
slot=
"header"
style=
"padding: 10px 20px"
>
<!--
<GLCombiForm
ref=
"showSearch"
<!--
<GLCombiForm
ref=
"showSearch"
...
@@ -10,12 +11,18 @@
...
@@ -10,12 +11,18 @@
:form-data=
"showFormData"
></GLCombiForm>
-->
:form-data=
"showFormData"
></GLCombiForm>
-->
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<GLTable
ref=
"recordTable"
:getListApi=
"getListApi"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"recordTable"
:getListApi=
"getListApi"
:searchForm=
"searchFormSearch"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
>
<template
slot=
"profitAndLoss"
slot-scope=
"scope"
>
<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"
style=
"color: blue"
>
{{
'+'
+
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
<span
v-if=
"parseFloat(scope.scope.profitAndLoss) > 0"
style=
"color: blue"
>
{{
'+'
+
<span
v-else-if=
"parseFloat(scope.scope.profitAndLoss)
< 0
"
style=
"color: red"
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
<span
v-else
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
:
'件'
)
}}
</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
>
{{
parseFloat
(
scope
.
scope
.
profitAndLoss
).
toFixed
(
2
)
+
(
membraneTypeList
.
includes
(
scope
.
scope
.
goodsType
)
?
'米'
:
'件'
)
}}
</span>
</span>
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
...
@@ -55,6 +62,11 @@ export default {
...
@@ -55,6 +62,11 @@ export default {
// width: '200px'
// width: '200px'
},
},
{
{
label
:
'商品编码'
,
prop
:
'productCode'
,
// width: 250
},
{
label
:
'系列'
,
label
:
'系列'
,
prop
:
'sourceMaterialName'
prop
:
'sourceMaterialName'
},
},
...
@@ -97,12 +109,12 @@ export default {
...
@@ -97,12 +109,12 @@ export default {
},
},
recordInfo
:
{
recordInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
}
},
},
computed
:
{},
computed
:
{},
mounted
()
{},
mounted
()
{
},
methods
:
{
methods
:
{
beforeSearchFn
()
{
beforeSearchFn
()
{
...
@@ -125,6 +137,7 @@ export default {
...
@@ -125,6 +137,7 @@ export default {
color
:
#2a58ad
;
color
:
#2a58ad
;
margin
:
0
2px
;
margin
:
0
2px
;
}
}
.inventoryDetailDailog
.el-dialog
{
.inventoryDetailDailog
.el-dialog
{
margin-top
:
20vh
!important
;
margin-top
:
20vh
!important
;
min-width
:
700px
;
min-width
:
700px
;
...
...
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