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
882b0e1c
Commit
882b0e1c
authored
Oct 16, 2022
by
huyufeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
108b0861
4b1cd564
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
44 deletions
+67
-44
indexSea.vue
src/views/ecw/box/indexSea.vue
+1
-1
splitOrder.vue
...views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
+66
-43
No files found.
src/views/ecw/box/indexSea.vue
View file @
882b0e1c
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
<el-dropdown-item
command=
"error"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"error"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"delete"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"delete"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
<el-dropdown-item
v-if=
"scope.row.ldStatus>
42"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<
42
"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
>
...
...
src/views/ecw/box/shippingSea/nodePage/cabinet/splitOrder.vue
View file @
882b0e1c
...
@@ -193,12 +193,24 @@
...
@@ -193,12 +193,24 @@
<el-option
v-for=
"item in orderItems"
:label=
"item.prodTitleEn"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"item in orderItems"
:label=
"item.prodTitleEn"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"剩余箱数:"
>
<el-row>
{{shopForm.sum||0}}
<el-col
:span=
"12"
>
</el-form-item>
<el-form-item
label=
"剩余箱数:"
>
{{shopForm.sum||0}}
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"剩余数量(个):"
>
{{shopForm.quantity||0}}
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"放入箱数:"
prop=
"num"
>
<el-form-item
label=
"放入箱数:"
prop=
"num"
>
<el-input-number
v-model=
"shopForm.num"
controls-position=
"right"
:min=
"0"
:max=
"shopForm.sum"
></el-input-number>
<el-input-number
v-model=
"shopForm.num"
controls-position=
"right"
:min=
"0"
:max=
"shopForm.sum"
></el-input-number>
</el-form-item>
</el-form-item>
<el-form-item
label=
"放入数量(个):"
prop=
"putQuantity"
>
<el-input-number
v-model=
"shopForm.putQuantity"
controls-position=
"right"
:min=
"0"
></el-input-number>
</el-form-item>
<el-form-item
label=
"备注信息:"
>
<el-form-item
label=
"备注信息:"
>
<el-input
v-model=
"shopForm.remarks"
></el-input>
<el-input
v-model=
"shopForm.remarks"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -215,7 +227,7 @@
...
@@ -215,7 +227,7 @@
<
script
>
<
script
>
import
{
import
{
getSplitList
,
getSplitList
,
createSplit
,
quantitycheck
,
createSplitItem
,
createSplitItem
,
deleteSplitItem
,
deleteSplitItem
,
}
from
"
@/api/ecw/orderHandle
"
;
}
from
"
@/api/ecw/orderHandle
"
;
...
@@ -329,18 +341,16 @@ export default {
...
@@ -329,18 +341,16 @@ export default {
/* 打开拆单 */
/* 打开拆单 */
getSplit
()
{
getSplit
()
{
this
.
orderItems
=
this
.
currRow
.
goodsList
??
[];
this
.
orderItems
=
this
.
currRow
.
goodsList
??
[];
console
.
log
(
this
.
orderItems
);
const
{
shipmentObj
}
=
this
.
$attrs
;
const
{
shipmentObj
}
=
this
.
$attrs
;
splitList
({
splitList
({
orderId
:
this
.
currRow
.
orderId
,
orderId
:
this
.
currRow
.
orderId
,
shipmentId
:
shipmentObj
.
id
,
shipmentId
:
shipmentObj
.
id
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
const
orderSplitBackVOList
=
res
.
data
;
const
orderSplitBackVOList
=
res
.
data
;
if
(
orderSplitBackVOList
&&
orderSplitBackVOList
.
length
)
{
// 取拆单项
// 取拆单项
this
.
splitData
=
this
.
splitData
=
orderSplitBackVOList
.
filter
(
orderSplitBackVOList
.
filter
((
item
)
=>
!
item
.
isMaster
)?.[
0
]
??
{};
(
item
)
=>
!
item
.
isMaster
)[
0
];
}
});
});
},
},
/* 查询拆单项 */
/* 查询拆单项 */
...
@@ -350,16 +360,12 @@ export default {
...
@@ -350,16 +360,12 @@ export default {
orderId
:
this
.
currRow
.
orderId
,
orderId
:
this
.
currRow
.
orderId
,
shipmentType
:
1
,
shipmentType
:
1
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
res
)
const
{
orderSplitBackVOList
}
=
res
.
data
;
// 取拆单项
const
{
orderSplitBackVOList
}
=
res
.
data
;
const
list
=
if
(
orderSplitBackVOList
&&
orderSplitBackVOList
.
length
)
{
orderSplitBackVOList
.
filter
((
item
)
=>
!
item
.
isMaster
)?.[
0
]
??
{};
this
.
orderItems
=
this
.
currRow
.
goodsList
??
[];
console
.
log
(
this
.
orderItems
);
this
.
splitData
.
orderSplitItemBackVOList
=
// 取拆单项
list
.
orderSplitItemBackVOList
??
[];
this
.
splitData
=
orderSplitBackVOList
.
filter
(
(
item
)
=>
!
item
.
isMaster
)[
0
];
}
});
});
},
},
getOrderDetail
()
{
getOrderDetail
()
{
...
@@ -414,20 +420,6 @@ export default {
...
@@ -414,20 +420,6 @@ export default {
leviteW
,
leviteW
,
}
}
);
);
/* "下单统计:" +
orderSum +
" 箱 " +
orderV +
" m³ " +
orderW +
" kg " +
" 入仓统计:" +
leviteSum +
" 箱 " +
leviteV +
" m³ " +
leviteW +
" kg"; */
return
sums
;
return
sums
;
},
},
...
@@ -457,20 +449,44 @@ export default {
...
@@ -457,20 +449,44 @@ export default {
this
.
shopOpen
=
true
;
this
.
shopOpen
=
true
;
},
},
changeProdTitleZh
()
{
changeProdTitleZh
()
{
let
list
=
[];
const
data
=
this
.
getSelectData
(
"
zhId
"
);
list
=
this
.
orderItems
.
filter
((
item
)
=>
item
.
id
==
this
.
shopForm
.
zhId
);
this
.
shopForm
.
prodTitleEn
=
data
.
prodTitleEn
;
this
.
shopForm
.
sum
=
this
.
currRow
.
num
-
this
.
currRow
.
installNum
-
this
.
totalSplitNum
();
this
.
shopForm
.
orderItemId
=
list
[
0
].
orderItemId
;
this
.
shopForm
.
prodTitleEn
=
list
[
0
].
prodTitleEn
;
},
},
changeProdTitleEn
()
{
changeProdTitleEn
()
{
const
data
=
this
.
getSelectData
(
"
enId
"
);
this
.
shopForm
.
prodTitleZh
=
data
.
prodTitleZh
;
},
async
getSelectData
(
key
)
{
let
list
=
[];
let
list
=
[];
list
=
this
.
orderItems
.
filter
((
item
)
=>
item
.
id
==
this
.
shopForm
.
enId
);
list
=
this
.
orderItems
.
filter
((
item
)
=>
item
.
id
==
this
.
shopForm
[
key
]
);
this
.
shopForm
.
sum
=
this
.
shopForm
.
sum
=
this
.
currRow
.
num
-
this
.
currRow
.
installNum
-
this
.
totalSplitNum
();
this
.
currRow
.
num
-
this
.
currRow
.
installNum
-
this
.
totalSplitNum
();
this
.
shopForm
.
orderItemId
=
list
[
0
].
orderItemId
;
this
.
shopForm
.
prodTitleZh
=
list
[
0
].
prodTitleZh
;
const
data
=
list
[
0
];
this
.
shopForm
.
orderItemId
=
data
.
orderItemId
;
this
.
shopForm
.
quantity
=
data
.
quantity
;
this
.
shopForm
.
putQuantity
=
Decimal
.
div
(
data
.
quantity
,
this
.
shopForm
.
sum
).
toFixed
(
0
);
await
quantitycheck
({
seaFreightVolume
:
data
.
seaFreightVolume
,
clearanceFreightVolume
:
data
.
clearanceFreightVolume
,
}).
then
((
res
)
=>
{
const
{
data
}
=
res
;
if
(
data
)
{
this
.
shopRules
.
putQuantity
=
[
{
required
:
true
,
message
:
this
.
$t
(
"
请输入数量(个)
"
),
trigger
:
"
change
"
,
},
];
}
else
{
delete
this
.
shopRules
.
putQuantity
;
}
});
return
data
;
},
},
shopAdd
()
{
shopAdd
()
{
this
.
$refs
[
"
shopForm
"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"
shopForm
"
].
validate
((
valid
)
=>
{
...
@@ -490,9 +506,14 @@ export default {
...
@@ -490,9 +506,14 @@ export default {
this
.
$message
.
error
(
this
.
$t
(
"
放入箱数不能为0
"
));
this
.
$message
.
error
(
this
.
$t
(
"
放入箱数不能为0
"
));
return
;
return
;
}
}
if
(
this
.
shopForm
.
putQuantity
===
0
)
{
this
.
$message
.
error
(
this
.
$t
(
"
放入数量(个)不能为0
"
));
return
;
}
let
params
=
{
let
params
=
{
num
:
this
.
shopForm
.
num
,
num
:
this
.
shopForm
.
num
,
quantity
:
this
.
shopForm
.
putQuantity
,
orderItemId
:
this
.
shopForm
.
orderItemId
,
orderItemId
:
this
.
shopForm
.
orderItemId
,
orderSplitId
:
this
.
splitData
.
id
,
orderSplitId
:
this
.
splitData
.
id
,
remarks
:
this
.
shopForm
.
remarks
,
remarks
:
this
.
shopForm
.
remarks
,
...
@@ -500,6 +521,7 @@ export default {
...
@@ -500,6 +521,7 @@ export default {
createSplitItem
(
params
).
then
((
res
)
=>
{
createSplitItem
(
params
).
then
((
res
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
放入成功
"
));
this
.
$message
.
success
(
this
.
$t
(
"
放入成功
"
));
this
.
querySplitGoods
();
this
.
querySplitGoods
();
this
.
$refs
[
"
shopForm
"
].
resetFields
();
});
});
this
.
shopOpen
=
false
;
this
.
shopOpen
=
false
;
}
}
...
@@ -528,6 +550,7 @@ export default {
...
@@ -528,6 +550,7 @@ export default {
});
});
},
},
shopCancel
()
{
shopCancel
()
{
this
.
$refs
[
"
shopForm
"
].
resetFields
();
this
.
shopOpen
=
false
;
this
.
shopOpen
=
false
;
this
.
shopForm
=
{};
this
.
shopForm
=
{};
},
},
...
...
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