Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
a4cb91ab
Commit
a4cb91ab
authored
Sep 01, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调拨出仓,调拨入仓 合计
parent
40f64694
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
transferWarehousing.vue
src/views/ecw/order/transferWarehousing.vue
+24
-9
No files found.
src/views/ecw/order/transferWarehousing.vue
View file @
a4cb91ab
...
...
@@ -8,8 +8,8 @@
<el-divider
content-position=
"left"
>
货物信息
</el-divider>
<el-table
:data=
" orderDetails.orderItemVOList && orderDetails.orderItemVOList.length > 0 ? orderDetails.orderItemVOList : [] "
>
<el-table-column
type=
"index"
label=
"序号"
></el-table-column>
<el-table
:
show-summary=
"true"
:summary-method=
"totalFn"
:
data=
" orderDetails.orderItemVOList && orderDetails.orderItemVOList.length > 0 ? orderDetails.orderItemVOList : [] "
>
<el-table-column
width=
"80"
type=
"index"
label=
"序号"
></el-table-column>
<el-table-column
label=
"品名"
>
<template
v-slot=
"
{row}">
<div>
{{
row
.
prodTitleZh
}}
</div>
...
...
@@ -18,22 +18,21 @@
</el-table-column>
<el-table-column
label=
"填单货物属性"
>
<
template
v-slot=
"{row}"
>
<el-descriptions
size=
"mini"
:column=
"
1
"
>
<el-descriptions
size=
"mini"
:column=
"
2
"
>
<el-descriptions-item
label=
"品牌"
>
{{
row
.
brand
}}
</el-descriptions-item>
<el-descriptions-item
label=
"箱数"
>
{{
row
.
num
}}
</el-descriptions-item>
<el-descriptions-item
label=
"体积"
>
{{
row
.
volume
}}
</el-descriptions-item>
<el-descriptions-item
label=
"重量"
>
</el-descriptions-item>
<el-descriptions-item
label=
"体积"
>
{{
row
.
volume
}}
m³
</el-descriptions-item>
<el-descriptions-item
label=
"重量"
>
{{
row
.
weight
}}
Kg
</el-descriptions-item>
</el-descriptions>
</
template
>
</el-table-column>
<el-table-column
label=
"入库货物属性"
>
<
template
v-slot=
"{row}"
>
<el-descriptions
size=
"mini"
:column=
"
4
"
>
<el-descriptions
size=
"mini"
:column=
"
2
"
>
<el-descriptions-item
label=
"品牌"
>
{{
row
.
brand
}}
</el-descriptions-item>
<el-descriptions-item
label=
"箱数"
>
{{
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
cartonsNum
:
''
}}
</el-descriptions-item>
<el-descriptions-item
label=
"体积"
>
{{
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
volume
:
''
}}
</el-descriptions-item>
<el-descriptions-item
label=
"重量"
>
{{
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
weight
:
''
}}
</el-descriptions-item>
<el-descriptions-item
label=
"体积"
>
{{
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
volume
:
''
}}
m³
</el-descriptions-item>
<el-descriptions-item
label=
"重量"
>
{{
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
weight
:
''
}}
Kg
</el-descriptions-item>
</el-descriptions>
</
template
>
</el-table-column>
...
...
@@ -238,6 +237,22 @@ export default {
this
.
$router
.
back
();
}
})
},
totalFn
({
columns
,
data
}){
// 体积,数量,重量 W:入仓
let
volume
=
0
,
num
=
0
,
weight
=
0
;
let
Wvolume
=
0
,
Wnum
=
0
,
Wweight
=
0
;
data
.
forEach
(
i
=>
{
volume
+=
Number
(
i
.
volume
)
num
+=
Number
(
i
.
num
)
weight
+=
Number
(
i
.
weight
)
Wvolume
+=
Number
(
i
.
warehouseInInfoVO
?
i
.
warehouseInInfoVO
.
volume
:
0
);
Wnum
+=
Number
(
i
.
warehouseInInfoVO
?
i
.
warehouseInInfoVO
.
num
:
0
)
Wweight
+=
Number
(
i
.
warehouseInInfoVO
?
i
.
warehouseInInfoVO
.
weight
:
0
)
})
let
text
=
`下单统计:
${
num
}
箱
${
volume
}
m³
${
weight
}
Kg`
let
text2
=
` 入仓统计:
${
Wnum
}
箱
${
Wvolume
}
m³
${
Wweight
}
Kg`
return
[
'
合计:
'
,
text
,
text2
]
}
},
}
...
...
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