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
691faf3a
Commit
691faf3a
authored
Jun 20, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善拆单操作
parent
f9be6a38
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
17 deletions
+66
-17
App.vue
src/App.vue
+4
-0
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+14
-2
PutIn.vue
src/views/ecw/order/splitApply/components/PutIn.vue
+35
-13
index.vue
src/views/ecw/order/splitApply/index.vue
+13
-2
No files found.
src/App.vue
View file @
691faf3a
...
...
@@ -46,6 +46,10 @@ export default {
align-items
:
center
;
justify-content
:
center
;
}
.flex-between
{
display
:
flex
;
justify-content
:
space-between
;
}
.empty-placeholder
{
padding
:
50px
;
text-align
:
center
;
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
691faf3a
...
...
@@ -283,7 +283,13 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"page-title"
>
{{$t('已放入入仓记录')}}
</div>
<div
class=
"flex-between mt-20 mb-10"
>
<div
class=
"page-title"
style=
"margin: 0"
>
{{$t('已放入入仓记录')}}
</div>
<el-button
type=
"danger"
size=
"mini"
@
click=
"clearAll"
>
清空放入数据
</el-button>
</div>
<el-table
:data=
"shopForm.specsRecordVOList"
style=
"width: 100%"
>
...
...
@@ -788,8 +794,8 @@ export default {
this
.
$message
.
success
(
this
.
$t
(
"
放入成功
"
));
this
.
querySplitGoods
();
this
.
$refs
[
"
shopForm
"
].
resetFields
();
this
.
shopOpen
=
false
;
});
this
.
shopOpen
=
false
;
}
});
},
...
...
@@ -892,6 +898,12 @@ export default {
this
.
shopForm
.
specsRecordVOList
.
push
({...
item
})
})
this
.
currentPutIn
=
null
},
// 清空放入记录
clearAll
(){
this
.
$confirm
(
this
.
$t
(
"
确定要清空放入数据么?
"
)).
then
(
res
=>
{
this
.
shopForm
.
specsRecordVOList
=
[]
})
}
},
};
...
...
src/views/ecw/order/splitApply/components/PutIn.vue
View file @
691faf3a
...
...
@@ -4,8 +4,8 @@
<el-card>
<div
slot=
"header"
>
{{
$t
(
'
可拆出入仓记录
'
)
}}
</div>
<el-table
:data=
"[warehouseRecord]"
>
<el-table-column
:label=
"$t('
剩余') +'/'+ $t('
箱数')"
prop=
"cartonsNum"
>
<template
slot-scope=
"
{row}">
{{
leftData
(
'
num
'
)
}}
/
{{
row
.
cartonsNum
}}
</
template
>
<el-table-column
:label=
"$t('箱数')"
prop=
"cartonsNum"
>
<template
slot-scope=
"
{row}">
{{
row
.
cartonsNum
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('入仓类型')"
prop=
"specificationType"
>
<
template
slot-scope=
"{row}"
>
...
...
@@ -45,6 +45,12 @@
</
template
>
</el-table-column>
</el-table>
<div>
{{$t('剩余')}}:
{{leftData('num')}}{{$t('箱')}},
{{$t('体积')}}:{{leftData('volume')}}{{$t('m³')}},
{{$t('重量')}}:{{leftData('weight')}}{{$t('kg')}}
</div>
</el-card>
<el-card
class=
"box-card mt-10"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -243,18 +249,24 @@ export default {
},
// 剩余数据
leftData
(){
return
field
=>
{
return
(
field
,
containNew
=
false
)
=>
{
// 入仓记录跟拆单记录的箱数字段不同,要做特殊处理
let
left
=
new
Decimal
(
this
.
warehouseRecord
[
field
==
'
num
'
?
'
cartonsNum
'
:
field
]
||
0
)
console
.
log
(
'
leftData
'
,
left
.
toNumber
())
// 累减已拆记录
this
.
warehouseRecord
.
specsRecordVOList
.
forEach
(
item
=>
{
left
=
left
.
minus
(
new
Decimal
(
item
[
field
]
||
0
))
})
// 累减本页添加的入仓记录
this
.
form
.
list
.
forEach
(
item
=>
{
left
=
left
.
minus
(
new
Decimal
(
item
[
field
]
||
0
))
})
if
(
this
.
warehouseRecord
.
specsRecordVOList
&&
this
.
warehouseRecord
.
specsRecordVOList
.
length
){
this
.
warehouseRecord
.
specsRecordVOList
.
forEach
(
item
=>
{
left
=
left
.
minus
(
new
Decimal
(
item
[
field
]
||
0
))
})
}
// 如果是包含新数据(本次放入数据)
if
(
containNew
){
// 累减本页添加的入仓记录
this
.
form
.
list
.
forEach
(
item
=>
{
left
=
left
.
minus
(
new
Decimal
(
item
[
field
]
||
0
))
})
}
return
left
.
toNumber
()
}
}
...
...
@@ -271,7 +283,10 @@ export default {
// 根据入仓记录添加一行
this
.
form
.
list
.
push
({
warehouseInId
:
this
.
warehouseRecord
.
id
,
specificationType
,
boxGauge1
,
boxGauge2
,
boxGauge3
,
volume
,
weight
,
num
,
specificationType
,
boxGauge1
,
boxGauge2
,
boxGauge3
,
volume
:
this
.
leftData
(
'
volume
'
,
true
),
weight
:
this
.
leftData
(
'
weight
'
,
true
),
num
:
this
.
leftData
(
'
num
'
,
true
),
orderLocationList
:
this
.
warehouseRecord
.
orderLocationBackVOList
})
},
...
...
@@ -312,8 +327,15 @@ export default {
if
(
!
valid
){
return
false
}
if
(
this
.
splitTotal
(
'
num
'
)
>
this
.
warehouseRecord
.
cartonsNum
){
return
this
.
$message
.
error
(
"
拆出箱数不能大于原入仓箱数
"
)
if
(
this
.
splitTotal
(
'
num
'
)
>
this
.
leftData
(
'
num
'
)){
return
this
.
$message
.
error
(
"
拆出箱数不能大于剩余箱数
"
)
}
if
(
this
.
splitTotal
(
'
volume
'
)
>
this
.
leftData
(
'
volume
'
)){
return
this
.
$message
.
error
(
"
拆出体积不能大于剩余体积
"
)
}
if
(
this
.
splitTotal
(
'
weight
'
)
>
this
.
leftData
(
'
weight
'
)){
return
this
.
$message
.
error
(
"
拆出重量不能大于剩余重量
"
)
}
// 如果全拆(拆出箱数 == 原入仓箱数),则体积重量也需要全拆
if
(
this
.
splitTotal
(
'
num
'
)
===
this
.
warehouseRecord
.
cartonsNum
){
...
...
src/views/ecw/order/splitApply/index.vue
View file @
691faf3a
...
...
@@ -314,7 +314,12 @@
</
template
>
</el-table-column>
</el-table>
<div
class=
"page-title"
>
{{$t('已放入入仓记录')}}
</div>
<div
class=
"flex-between mt-20 mb-10"
>
<div
class=
"page-title"
style=
"margin: 0"
>
{{$t('已放入入仓记录')}}
</div>
<el-button
type=
"danger"
size=
"mini"
@
click=
"clearAll"
>
清空放入数据
</el-button>
</div>
<el-table
:data=
"shopForm.specsRecordVOList"
style=
"width: 100%"
>
...
...
@@ -1091,7 +1096,7 @@ export default {
putInRecord
(
row
){
this
.
currentPutIn
=
row
// 此条入仓记录已拆出的入仓记录,这样在放入的时候可以确保不超过此入仓记录的数量
let
specsRecordVOList
=
this
.
getWarehouseInspecsRecordVOList
(
getWarehouseInspecsRecordVOList
)
let
specsRecordVOList
=
this
.
getWarehouseInspecsRecordVOList
(
row
.
id
)
this
.
currentPutIn
.
specsRecordVOList
=
specsRecordVOList
},
// 放入回调
...
...
@@ -1103,6 +1108,12 @@ export default {
this
.
shopForm
.
specsRecordVOList
.
push
({...
item
})
})
this
.
currentPutIn
=
null
},
// 清空放入记录
clearAll
(){
this
.
$confirm
(
this
.
$t
(
"
确定要清空放入数据么?
"
)).
then
(
res
=>
{
this
.
shopForm
.
specsRecordVOList
=
[]
})
}
}
}
...
...
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