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
b308772b
Commit
b308772b
authored
Jan 07, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备货选择订单商品箱明细优化
parent
3977228b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
9 deletions
+36
-9
order.js
src/api/ecw/order.js
+4
-3
ChooseOrderProducts.vue
...ews/ecw/order/stocking/components/ChooseOrderProducts.vue
+18
-3
Package.vue
src/views/ecw/order/stocking/components/Package.vue
+6
-1
WarehouseRecordDetail.vue
...cw/order/warehousing/components/WarehouseRecordDetail.vue
+8
-2
No files found.
src/api/ecw/order.js
View file @
b308772b
...
...
@@ -1025,9 +1025,10 @@ export function getParentOrder(orderId){
}
// 获取订单入仓商品明细通用属性集合,用于备货选择订单商品到明细
export
function
getOrderItemCommonAttr
(
orderId
){
export
function
getOrderItemCommonAttr
(
orderId
,
excludeOrderWarehouseInId
){
return
request
({
url
:
'
/order/order-warehouse-in/get-order-warehouse-in-common-attr-list?orderId=
'
+
orderId
,
method
:
'
get
'
url
:
'
/order/order-warehouse-in/get-order-warehouse-in-common-attr-list
'
,
method
:
'
get
'
,
params
:
{
orderId
,
excludeOrderWarehouseInId
}
})
}
src/views/ecw/order/stocking/components/ChooseOrderProducts.vue
View file @
b308772b
...
...
@@ -52,7 +52,8 @@ export default {
orderId
:
{
type
:
Number
,
default
:
undefined
}
},
warehouseInId
:
Number
},
data
(){
return
{
...
...
@@ -70,7 +71,7 @@ export default {
},
},
async
created
()
{
getOrderItemCommonAttr
(
this
.
orderId
).
then
(
res
=>
{
getOrderItemCommonAttr
(
this
.
orderId
,
this
.
warehouseInId
).
then
(
res
=>
{
this
.
orderItemDetails
=
res
.
data
})
},
...
...
@@ -80,7 +81,21 @@ export default {
this
.
multipleSelection
=
e
},
handleSubmit
(){
this
.
$emit
(
"
success
"
,
this
.
multipleSelection
)
// 品名+品牌+材质+商品特性+用途一致的会合并,数量累加
// https://zentao.test.jdshangmen.com/task-view-3423.html
let
arr
=
[]
this
.
multipleSelection
.
forEach
(
item
=>
{
let
index
=
arr
.
findIndex
(
i
=>
{
return
i
.
prodId
==
item
.
prodId
&&
i
.
brand
==
item
.
brand
&&
i
.
material
==
item
.
material
&&
i
.
prodAttrIds
==
item
.
prodAttrIds
&&
i
.
usageIds
==
item
.
usageIds
})
if
(
index
==
-
1
)
{
arr
.
push
({...
item
})
}
else
{
arr
[
index
].
quantityAll
+=
item
.
quantityAll
}
})
this
.
$emit
(
"
success
"
,
arr
)
},
handleClose
()
{
this
.
visible
=
false
...
...
src/views/ecw/order/stocking/components/Package.vue
View file @
b308772b
...
...
@@ -196,7 +196,12 @@
</el-table-column>
<el-table-column
:label=
"$t('操作')"
>
<
template
v-slot=
"{ row, column, $index}"
>
<WarehouseRecordDetail
v-model=
"form.table[$index].orderWarehouseInDetailsVOList"
show-choose-order-item
:order-id=
"order.orderId"
/>
<WarehouseRecordDetail
v-model=
"form.table[$index].orderWarehouseInDetailsVOList"
show-choose-order-item
:order-id=
"order.orderId"
:warehouse-in-id=
"row.id"
/>
<el-popconfirm
v-if=
"$index >= protectRowCount"
title=
"确定要删除该行记录吗?"
...
...
src/views/ecw/order/warehousing/components/WarehouseRecordDetail.vue
View file @
b308772b
...
...
@@ -37,7 +37,12 @@
<el-button
type=
"primary"
@
click=
"handleSave"
>
确 定
</el-button>
</span>
</el-dialog>
<choose-order-products
v-if=
"showChooseDialog"
:order-id=
"orderId"
@
close=
"showChooseDialog=false"
@
success=
"handleChooseOrderProducts"
></choose-order-products>
<choose-order-products
v-if=
"showChooseDialog"
:order-id=
"orderId"
:warehouse-in-id=
"warehouseInId"
@
close=
"showChooseDialog=false"
@
success=
"handleChooseOrderProducts"
></choose-order-products>
</div>
</template>
...
...
@@ -74,7 +79,8 @@ export default {
},
// 是否显示添加订单商品按钮
showChooseOrderItem
:
Boolean
,
orderId
:
Number
orderId
:
Number
,
warehouseInId
:
Number
},
data
()
{
...
...
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