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
fd7b9b1a
Commit
fd7b9b1a
authored
Dec 09, 2024
by
honghy
Committed by
wux
Jan 02, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空运备货-新增无需打包批量操作
parent
e8e6f11a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
order.js
src/api/ecw/order.js
+10
-0
index.vue
src/views/ecw/order/stocking/index.vue
+37
-1
No files found.
src/api/ecw/order.js
View file @
fd7b9b1a
...
...
@@ -915,6 +915,16 @@ export function noNeedPack(orderItemId) {
})
}
// 批量无需打包
export
function
noNeedPacks
(
data
)
{
return
request
({
url
:
"
/order/order-warehouse-in/no-need-to-packs
"
,
method
:
"
post
"
,
data
})
}
// 完成打包
export
function
finishPacked
(
data
)
{
return
request
({
...
...
src/views/ecw/order/stocking/index.vue
View file @
fd7b9b1a
...
...
@@ -5,6 +5,7 @@
<order-base-info
:order=
"order"
stocking
></order-base-info>
<div
class=
"flex items-center"
>
<div
class=
"flex-1 page-title"
>
{{
$t
(
"
货物信息
"
)
}}
</div>
<el-button
type=
"primary"
@
click=
"noNeedPacks"
:loading=
"loading"
>
{{
$t
(
"
无需打包
"
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"showNewProductDialog = true"
>
{{
$t
(
"
添加新品名
"
)
}}
</el-button>
...
...
@@ -22,7 +23,10 @@
:data=
"order.orderItemVOList || []"
default-expand-all
style=
"width: 100%"
@
select=
"checkboxSelect"
@
select-all=
"checkboxSelect"
>
<el-table-column
type=
"selection"
align=
"center"
width=
"55"
fixed=
"left"
/>
<!--入仓记录-->
<el-table-column
type=
"expand"
>
<template
slot-scope=
"props"
>
...
...
@@ -459,6 +463,7 @@ import {
rollbackDelete
,
warehousePictureList
,
getPackStatistics
,
noNeedPacks
}
from
"
@/api/ecw/order
"
;
import
orderBaseInfo
from
"
@/components/OrderBaseInfo
"
;
import
WarehouseAreaDialog
from
"
@/components/WarehouseAreaDialog
"
;
...
...
@@ -569,6 +574,9 @@ export default {
showPrintTagDialog
:
false
,
// 统计数据
statistics
:
{},
// 勾选行
selectedRows
:
[],
loading
:
false
};
},
...
...
@@ -682,6 +690,34 @@ export default {
this
.
getList
();
});
},
// 批量打包
noNeedPacks
()
{
this
.
$confirm
(
"
确认货物无需打包
"
).
then
(()
=>
{
if
(
this
.
selectedRows
.
length
===
0
)
{
this
.
$message
.
error
(
this
.
$t
(
"
请选择
"
));
return
;
}
var
selectedRows
=
this
.
selectedRows
var
ids
=
[]
for
(
var
i
=
0
;
i
<
selectedRows
.
length
;
i
++
){
if
(
this
.
wareItem
(
selectedRows
[
i
].
orderItemId
).
packStatus
!=
1
)
{
this
.
$message
.
error
(
"
不能重复打包
"
);
return
;
}
ids
.
push
(
selectedRows
[
i
].
orderItemId
)
}
this
.
loading
=
true
noNeedPacks
(
ids
).
then
((
res
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
操作成功
"
));
this
.
getList
();
this
.
loading
=
false
});
})
},
// 选中
checkboxSelect
(
selection
)
{
this
.
selectedRows
=
selection
;
},
onPackageClose
()
{
this
.
packageOrderItem
=
null
;
this
.
packageOrderItem
=
null
;
...
...
@@ -846,7 +882,7 @@ export default {
urls
=
urls
.
concat
(
item
.
pictureUrls
||
[]);
});
return
urls
;
}
,
}
},
};
</
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