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
08ba7d4f
Commit
08ba7d4f
authored
Jul 04, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调仓状态调整,bug修复
parent
f04e0b36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
16 deletions
+34
-16
transferWarehousing.vue
src/views/ecw/order/transferWarehousing.vue
+34
-16
No files found.
src/views/ecw/order/transferWarehousing.vue
View file @
08ba7d4f
...
@@ -18,7 +18,12 @@
...
@@ -18,7 +18,12 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('填单货物属性')"
>
<el-table-column
:label=
"$t('填单货物属性')"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<div>
{{
$t
(
'
品牌
'
)
}}
:无
</div><div>
{{
$t
(
'
箱数
'
)
}}
:
{{
row
.
num
}}
</div><div>
{{
$t
(
'
体积
'
)
}}
:
{{
row
.
volume
}}
m³
</div><div>
{{
$t
(
'
重量
'
)
}}
:
{{
row
.
weight
}}
Kg
</div>
<div>
{{
$t
(
'
品牌
'
)
}}
:
{{
(
brandList
.
find
(
item
=>
item
.
id
==
row
.
brand
)
||
{
}
).
titleZh
}}
<
span
v
-
if
=
"
!row.brand
"
>
{{
$t
(
'
无
'
)
}}
<
/span> </
div
>
<
div
>
{{
$t
(
'
箱数
'
)
}}
:
{{
row
.
num
}}
<
/div
>
<
div
>
{{
$t
(
'
体积
'
)
}}
:
{{
row
.
volume
}}
m
³
<
/div
>
<
div
>
{{
$t
(
'
重量
'
)
}}
:
{{
row
.
weight
}}
Kg
<
/div
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('入库货物属性')
"
>
<
el
-
table
-
column
:
label
=
"
$t('入库货物属性')
"
>
...
@@ -26,13 +31,18 @@
...
@@ -26,13 +31,18 @@
<
div
v
-
for
=
"
(item,index) in row.orderWarehouseInBackItemDoList
"
:
key
=
"
index
"
>
<
div
v
-
for
=
"
(item,index) in row.orderWarehouseInBackItemDoList
"
:
key
=
"
index
"
>
<
div
>
{{
$t
(
'
规格
'
)
}}
:
{{
item
.
boxGauge
.
split
(
'
*
'
).
map
(
item
=>
`${item
}
cm`
).
join
(
'
*
'
)
}}
<
/div
>
<
div
>
{{
$t
(
'
规格
'
)
}}
:
{{
item
.
boxGauge
.
split
(
'
*
'
).
map
(
item
=>
`${item
}
cm`
).
join
(
'
*
'
)
}}
<
/div
>
<
div
>
<
div
>
<
div
>
{{
$t
(
'
品牌
'
)
}}
:
{{(
brandList
.
find
(
item
=>
item
.
id
==
row
.
brand
)
||
{
}
).
titleZh
}}
<
div
>
{{
$t
(
'
品牌
'
)
}}
:
{{(
brandList
.
find
(
item
=>
item
.
id
==
row
.
brand
)
||
{
}
).
titleZh
}}
<
/div
>
<
span
v
-
if
=
"
!row.brand
"
>
{{
$t
(
'
无
'
)
}}
<
/span></
div
>
<
div
>
{{
$t
(
'
箱数
'
)
}}
:
{{
item
.
cartonsNum
}}
<
/div
>
<
div
>
{{
$t
(
'
箱数
'
)
}}
:
{{
item
.
cartonsNum
}}
<
/div
>
<
div
>
{{
$t
(
'
体积
'
)
}}
:
{{
item
.
volume
}}
CMB
<
/div
>
<
div
>
{{
$t
(
'
体积
'
)
}}
:
{{
item
.
volume
}}
CMB
<
/div
>
<
div
>
{{
$t
(
'
重量
'
)
}}
:
{{
item
.
weight
}}
KG
<
/div
>
<
div
>
{{
$t
(
'
重量
'
)
}}
:
{{
item
.
weight
}}
KG
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
p
v
-
if
=
"
row.orderWarehouseInBackItemDoList.length === 0
"
>
{{
$t
(
'
暂无货物入库信息
'
)
}}
<
/p
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('最后操作时间')
"
>
<
el
-
table
-
column
:
label
=
"
$t('最后操作时间')
"
>
...
@@ -42,7 +52,7 @@
...
@@ -42,7 +52,7 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('状态')
"
>
<
el
-
table
-
column
:
label
=
"
$t('状态')
"
>
<
template
v
-
slot
=
"
{row
}
"
>
<
template
v
-
slot
=
"
{row
}
"
>
{{
calculationStatus
(
row
.
cartonsNumDiff
)
}}
{{
calculationStatus
(
row
)
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
@@ -265,13 +275,19 @@ export default {
...
@@ -265,13 +275,19 @@ export default {
}
,
}
,
calculationStatus
(){
calculationStatus
(){
return
(
val
)
=>
{
return
(
val
)
=>
{
if
(
val
>
0
){
let
des
=
''
return
`${this.$t('多')
}
${val
}
${this.$t('箱')
}
`
switch
(
val
.
diffType
)
{
}
else
if
(
val
<
0
){
case
2
:
return
`${this.$t('少')
}
${Math.abs(val)
}
${this.$t('箱')
}
`
des
=
`${this.$t('多了')
}
${val.cartonsNumDiff
}
${this.$t('箱')
}
`
}
else
{
break
return
this
.
$t
(
'
准确到齐
'
)
case
3
:
des
=
`${this.$t('少了')
}
${val.cartonsNumDiff
}
${this.$t('箱')
}
`
break
case
4
:
des
=
this
.
$t
(
'
准确到齐
'
)
break
}
}
return
des
}
}
}
}
}
,
}
,
...
@@ -373,11 +389,13 @@ export default {
...
@@ -373,11 +389,13 @@ export default {
volume
+=
Number
(
i
.
volume
)
volume
+=
Number
(
i
.
volume
)
num
+=
Number
(
i
.
num
)
num
+=
Number
(
i
.
num
)
weight
+=
Number
(
i
.
weight
)
weight
+=
Number
(
i
.
weight
)
if
(
i
.
orderWarehouseInBackItemDoList
){
i
.
orderWarehouseInBackItemDoList
.
forEach
(
m
=>
{
i
.
orderWarehouseInBackItemDoList
.
forEach
(
m
=>
{
Wvolume
+=
Number
(
m
.
volume
||
0
)
Wvolume
+=
Number
(
m
.
volume
||
0
)
Wnum
+=
Number
(
m
.
cartonsNum
||
0
)
Wnum
+=
Number
(
m
.
cartonsNum
||
0
)
Wweight
+=
Number
(
m
.
weight
||
0
)
Wweight
+=
Number
(
m
.
weight
||
0
)
}
)
}
)
}
}
)
}
)
let
text
=
`${this.$t('下单统计')
}
:${num
}
${this.$t('箱')
}
${volume.toFixed(2)
}
m³ ${weight.toFixed(2)
}
Kg`
let
text
=
`${this.$t('下单统计')
}
:${num
}
${this.$t('箱')
}
${volume.toFixed(2)
}
m³ ${weight.toFixed(2)
}
Kg`
let
text2
=
` ${this.$t('入仓统计')
}
:${Wnum
}
${this.$t('箱')
}
${Wvolume.toFixed(2)
}
m³ ${Wweight.toFixed(2)
}
Kg`
let
text2
=
` ${this.$t('入仓统计')
}
:${Wnum
}
${this.$t('箱')
}
${Wvolume.toFixed(2)
}
m³ ${Wweight.toFixed(2)
}
Kg`
...
...
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