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
b35eb5d9
Commit
b35eb5d9
authored
Apr 01, 2023
by
huhaiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拆单放入数量
parent
c0e8ca35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
11 deletions
+31
-11
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+31
-11
No files found.
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
b35eb5d9
...
...
@@ -448,32 +448,53 @@ export default {
this
.
isQuantity
=
false
;
},
async
changeProdTitleZh
()
{
const
data
=
await
this
.
getSelectData
(
"
zhId
"
);
this
.
shopForm
.
enId
=
data
.
id
;
const
item
=
this
.
setShopForm
(
"
zhId
"
);
this
.
shopForm
.
enId
=
item
.
id
;
this
.
shopForm
=
{
...
this
.
shopForm
};
await
this
.
getSelectData
(
item
);
},
async
changeProdTitleEn
()
{
const
data
=
await
this
.
getSelectData
(
"
enId
"
);
this
.
shopForm
.
zhId
=
data
.
id
;
const
item
=
this
.
setShopForm
(
"
enId
"
);
this
.
shopForm
.
zhId
=
item
.
id
;
this
.
shopForm
=
{
...
this
.
shopForm
};
await
this
.
getSelectData
(
item
);
},
async
getSelectData
(
key
)
{
setShopForm
(
key
)
{
let
list
=
[];
list
=
this
.
orderItems
.
filter
((
item
)
=>
item
.
id
==
this
.
shopForm
[
key
]);
this
.
shopForm
.
num
=
this
.
currRow
.
num
-
this
.
currRow
.
installNum
;
const
data
=
list
[
0
];
const
itemNum
=
data
.
num
??
0
;
// 获取拆单项的总num
const
total
=
this
.
totalSplitNum
();
// 订单的剩余
const
orderNum
=
this
.
currRow
.
num
-
this
.
currRow
.
installNum
;
// 剩余可装
const
remainNum
=
Decimal
.
sub
(
orderNum
,
total
).
toNumber
();
this
.
shopForm
.
num
=
0
;
this
.
shopForm
.
putNum
=
0
;
// 剩余可装大于等于订单项剩余,显示订单剩余
if
(
remainNum
>=
itemNum
)
{
this
.
shopForm
.
num
=
remainNum
;
this
.
shopForm
.
putNum
=
itemNum
;
}
// 订单剩余小于订单项剩余,显示订单项剩余
if
(
remainNum
<
itemNum
)
{
this
.
shopForm
.
num
=
this
.
shopForm
.
putNum
=
remainNum
;
}
this
.
shopForm
.
orderItemId
=
data
.
orderItemId
;
this
.
shopForm
.
putNum
=
data
.
num
??
0
;
this
.
shopForm
.
quantity
=
data
.
quantity
??
0
;
this
.
shopForm
.
putQuantity
=
Decimal
.
div
(
data
.
quantity
??
0
,
this
.
shopForm
.
num
).
toFixed
(
0
);
return
data
;
},
async
getSelectData
(
item
)
{
await
quantitycheck
({
seaFreightVolume
:
data
.
seaFreightVolume
,
clearanceFreightVolume
:
data
.
clearanceFreightVolume
,
seaFreightVolume
:
item
.
seaFreightVolume
,
clearanceFreightVolume
:
item
.
clearanceFreightVolume
,
}).
then
((
res
)
=>
{
if
(
res
.
data
)
{
this
.
isQuantity
=
true
;
...
...
@@ -489,7 +510,6 @@ export default {
delete
this
.
shopRules
.
putQuantity
;
}
});
return
data
;
},
shopAdd
()
{
this
.
$refs
[
"
shopForm
"
].
validate
((
valid
)
=>
{
...
...
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