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
4a08ff17
Commit
4a08ff17
authored
Jul 28, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化出货拆单
parent
23bd9d88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
9 deletions
+26
-9
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+26
-9
No files found.
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
4a08ff17
...
...
@@ -372,7 +372,7 @@
</el-form-item>
<el-form-item
:label=
"$t('放入货值')"
>
<el-input-number
v-model=
"shopForm.worth"
controls-position=
"right"
:min=
"0"
:max=
"
mainOrderItem.w
orth"
>
<el-input-number
v-model=
"shopForm.worth"
controls-position=
"right"
:min=
"0"
:max=
"
leftW
orth"
>
<
template
slot=
"append"
>
{{
$t
(
'
元
'
)
}}
</
template
>
</el-input-number>
</el-form-item>
...
...
@@ -477,8 +477,8 @@ export default {
selectedWarehouseInId
:
null
,
// 当前正在放入的入仓记录
currentPutIn
:
null
,
// 订单剩余数据
orderLeftData
:
null
/
*/
/ 订单剩余数据
orderLeftData: null
*/
};
},
created
()
{
...
...
@@ -521,11 +521,17 @@ export default {
'
shopForm.orderItemId
'
(){
// 默认取以前放入的品名
this
.
shopForm
.
specsRecordVOList
=
[]
let
specsRecordVOList
=
this
.
splitData
.
orderSplitItemBackVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)?.
specsRecordVOList
||
[]
const
splitItem
=
this
.
splitData
.
orderSplitItemBackVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)
let
specsRecordVOList
=
splitItem
?.
specsRecordVOList
||
[]
specsRecordVOList
.
forEach
(
item
=>
{
const
[
boxGauge1
,
boxGauge2
,
boxGauge3
]
=
item
.
boxGauge
.
split
(
'
*
'
)
this
.
shopForm
.
specsRecordVOList
.
push
({...
item
,
boxGauge1
,
boxGauge2
,
boxGauge3
})
})
// 显示原来默认的收费数据
this
.
$set
(
this
.
shopForm
,
'
chargeVolume
'
,
splitItem
.
chargeVolume
)
this
.
$set
(
this
.
shopForm
,
'
chargeWeight
'
,
splitItem
.
chargeWeight
)
this
.
$set
(
this
.
shopForm
,
'
worth
'
,
splitItem
.
worth
)
}
},
computed
:
{
...
...
@@ -672,11 +678,18 @@ export default {
// 订单剩余可拆货值
leftWorth
(){
if
(
!
this
.
orderData
?.
costVO
?.
totalWorth
)
return
0
;
let
worth
=
this
.
orderData
.
costVO
.
totalWorth
let
worth
=
new
Decimal
(
this
.
orderData
.
costVO
.
totalWorth
)
this
.
splitData
.
orderSplitItemBackVOList
.
forEach
(
item
=>
{
worth
-=
item
.
worth
worth
=
worth
.
minus
(
item
.
worth
||
0
)
})
return
worth
// 包当前选择的品名之前填写的货值包含进去
if
(
this
.
shopForm
.
orderItemId
){
let
splitItem
=
this
.
splitData
.
orderSplitItemBackVOList
.
find
(
item
=>
item
.
orderItemId
==
this
.
shopForm
.
orderItemId
)
if
(
splitItem
){
worth
=
worth
.
plus
(
splitItem
.
worth
||
0
)
}
}
return
worth
.
toNumber
()
},
},
methods
:
{
...
...
@@ -853,6 +866,10 @@ export default {
if
(
this
.
isQuantity
){
params
.
quantity
=
this
.
putin
.
quantity
}
// 货值不能超过剩余货值
if
(
params
.
worth
>
this
.
leftWorth
){
return
this
.
$message
.
error
(
this
.
$t
(
"
货值不能超过剩余货值
"
));
}
createSplitItem
(
params
).
then
((
res
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
放入成功
"
));
this
.
querySplitGoods
();
...
...
@@ -994,11 +1011,11 @@ export default {
this
.
$set
(
this
.
shopForm
,
'
worth
'
,
worth
)
},
// 查询订单剩余数据
getOrderLeftData
(){
/*
getOrderLeftData(){
splitItemWorthCheck(this.orderData.orderId).then(res => {
this.orderLeftData = res.data
})
}
}
*/
}
};
</
script
>
...
...
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