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
94d365aa
Commit
94d365aa
authored
Jan 21, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备货选择商品全选了某入仓记录的明细则带上快递单号和入仓影像
https://zentao.test.jdshangmen.com/bug-view-5906.html
parent
0e4a7655
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
5 deletions
+83
-5
ChooseOrderProducts.vue
...ews/ecw/order/stocking/components/ChooseOrderProducts.vue
+27
-1
Package.vue
src/views/ecw/order/stocking/components/Package.vue
+21
-0
index.vue
src/views/ecw/order/stocking/index.vue
+28
-3
WarehouseRecordDetail.vue
...cw/order/warehousing/components/WarehouseRecordDetail.vue
+7
-1
No files found.
src/views/ecw/order/stocking/components/ChooseOrderProducts.vue
View file @
94d365aa
...
@@ -81,7 +81,13 @@ export default {
...
@@ -81,7 +81,13 @@ export default {
let
arr
=
[]
let
arr
=
[]
this
.
orderItemDetails
.
forEach
(
item
=>
{
this
.
orderItemDetails
.
forEach
(
item
=>
{
item
.
orderWarehouseInCommonAttrVOList
?.
forEach
((
vo
,
index
)
=>
{
item
.
orderWarehouseInCommonAttrVOList
?.
forEach
((
vo
,
index
)
=>
{
arr
.
push
({...
item
,
...
vo
,
index
,
span
:
index
===
0
?
item
.
orderWarehouseInCommonAttrVOList
?.
length
:
0
})
arr
.
push
({
...
item
,
...
vo
,
index
,
span
:
index
===
0
?
item
.
orderWarehouseInCommonAttrVOList
?.
length
:
0
,
warehouseInId
:
item
.
id
})
})
})
})
})
return
arr
return
arr
...
@@ -112,6 +118,26 @@ export default {
...
@@ -112,6 +118,26 @@ export default {
}
}
})
})
// 如果某条入仓记录下的箱明细被全部选中了,则需要将他的快递单号和影像带过去
const
expressNos
=
[]
const
pictureUrls
=
[]
this
.
orderItemDetails
.
forEach
(
warehouseIn
=>
{
// 本条入仓记录被选中的明细数
const
selectedCount
=
arr
.
filter
(
item
=>
item
.
warehouseInId
==
warehouseIn
.
id
).
length
if
(
selectedCount
==
warehouseIn
.
orderWarehouseInCommonAttrVOList
?.
length
){
if
(
warehouseIn
.
expressNo
){
expressNos
.
push
(
warehouseIn
.
expressNo
)
}
if
(
warehouseIn
.
pictureUrls
?.
length
){
pictureUrls
.
push
(...
warehouseIn
.
pictureUrls
)
}
}
})
// 根据warehouseInId 给对应的入仓记录追加快递单号和影像
// 存到全局变量,在调用对应finishPack接口的时候判断追加
window
.
ChooseOrderProductsExpressNos
=
expressNos
window
.
ChooseOrderProductsPictureUrls
=
pictureUrls
this
.
$emit
(
"
success
"
,
arr
)
this
.
$emit
(
"
success
"
,
arr
)
},
},
handleClose
()
{
handleClose
()
{
...
...
src/views/ecw/order/stocking/components/Package.vue
View file @
94d365aa
...
@@ -201,6 +201,7 @@
...
@@ -201,6 +201,7 @@
show-choose-order-item
show-choose-order-item
:order-id=
"order.orderId"
:order-id=
"order.orderId"
:warehouse-in-id=
"row.id"
:warehouse-in-id=
"row.id"
@
close=
"checkAppendExpressAndPictures(row)"
/>
/>
<el-popconfirm
<el-popconfirm
v-if=
"$index >= protectRowCount"
v-if=
"$index >= protectRowCount"
...
@@ -720,6 +721,26 @@ export default {
...
@@ -720,6 +721,26 @@ export default {
titleZh
:
undefined
,
titleZh
:
undefined
,
titleEn
:
undefined
titleEn
:
undefined
}
}
},
// 检查并追加快递单号和入仓影像
checkAppendExpressAndPictures
(
row
){
if
(
window
.
ChooseOrderProductsExpressNos
?.
length
){
// 去重追加
window
.
ChooseOrderProductsExpressNos
?.
forEach
(
no
=>
{
if
(
row
.
expressNo
.
indexOf
(
no
)
===
-
1
){
row
.
expressNo
+=
"
,
"
+
no
}
})
}
if
(
window
.
ChooseOrderProductsPictureUrls
?.
length
){
this
.
pictureUrls
=
this
.
pictureUrls
.
concat
(
window
.
ChooseOrderProductsPictureUrls
)
// 去重
this
.
pictureUrls
=
Array
.
from
(
new
Set
(
this
.
pictureUrls
))
}
// 清掉
window
.
ChooseOrderProductsExpressNos
=
null
window
.
ChooseOrderProductsPictureUrls
=
null
}
}
}
}
}
}
...
...
src/views/ecw/order/stocking/index.vue
View file @
94d365aa
...
@@ -69,10 +69,11 @@
...
@@ -69,10 +69,11 @@
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<WarehouseRecordDetail
<WarehouseRecordDetail
v-model=
"row.orderWarehouseInDetailsVOList"
v-model=
"row.orderWarehouseInDetailsVOList"
@
input=
"saveDetail(props.row)"
@
input=
"saveDetail(props.row
, row.id
)"
show-choose-order-item
show-choose-order-item
:order-id=
"orderId"
:order-id=
"orderId"
:warehouse-in-id=
"row.id"
:warehouse-in-id=
"row.id"
@
close=
"clearAppendExpressNoAndPictures"
/>
/>
<el-button
class=
"pl-5 pr-5"
size=
"mini"
type=
"primary"
@
click=
"package(props.row, $t('修改打包'))"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
<el-button
class=
"pl-5 pr-5"
size=
"mini"
type=
"primary"
@
click=
"package(props.row, $t('修改打包'))"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
<el-button
class=
"pl-5 pr-5"
size=
"mini"
type=
"danger"
@
click=
"package(props.row, $t('修改打包'))"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
<el-button
class=
"pl-5 pr-5"
size=
"mini"
type=
"danger"
@
click=
"package(props.row, $t('修改打包'))"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
...
@@ -482,18 +483,35 @@ export default {
...
@@ -482,18 +483,35 @@ export default {
this
.
curPictrues
=
wareItem
.
pictureUrls
||
[]
this
.
curPictrues
=
wareItem
.
pictureUrls
||
[]
},
},
// 保存箱明细
// 保存箱明细
saveDetail
(
row
){
saveDetail
(
row
,
warehouseInId
){
const
wareItem
=
this
.
wareItem
(
row
.
orderItemId
)
const
wareItem
=
this
.
wareItem
(
row
.
orderItemId
)
const
orderWarehouseInItemDtoList
=
wareItem
.
orderWarehouseInBackItemDoList
const
orderWarehouseInItemDtoList
=
wareItem
.
orderWarehouseInBackItemDoList
orderWarehouseInItemDtoList
.
map
(
item
=>
{
orderWarehouseInItemDtoList
.
map
(
item
=>
{
item
.
orderLocationCreateReqVOList
=
item
.
orderLocationBackVOList
||
[]
item
.
orderLocationCreateReqVOList
=
item
.
orderLocationBackVOList
||
[]
return
item
return
item
})
})
let
pictures
=
wareItem
.
pictureUrls
||
[]
if
(
window
.
ChooseOrderProductsPictureUrls
?.
length
){
pictures
.
push
(...
window
.
ChooseOrderProductsPictureUrls
)
// 去重
pictures
=
Array
.
from
(
new
Set
(
pictures
))
}
if
(
window
.
ChooseOrderProductsExpressNos
?.
length
){
const
warehouseInItem
=
orderWarehouseInItemDtoList
.
find
(
item
=>
item
.
id
===
warehouseInId
)
if
(
!
warehouseInItem
.
expressNo
)
warehouseInItem
.
expressNo
=
""
window
.
ChooseOrderProductsExpressNos
?.
forEach
(
item
=>
{
if
(
warehouseInItem
.
expressNo
.
indexOf
(
item
)
===
-
1
){
if
(
warehouseInItem
.
expressNo
?.
length
)
warehouseInItem
.
expressNo
+=
"
,
"
warehouseInItem
.
expressNo
+=
item
}
})
}
const
data
=
{
const
data
=
{
orderId
:
row
.
orderId
,
orderId
:
row
.
orderId
,
orderItemId
:
row
.
orderItemId
,
orderItemId
:
row
.
orderItemId
,
orderWarehouseInItemDtoList
:
orderWarehouseInItemDtoList
,
orderWarehouseInItemDtoList
:
orderWarehouseInItemDtoList
,
pictureUrls
:
wareItem
.
pictureUrls
||
[]
pictureUrls
:
pictures
}
}
finishPacked
(
data
).
then
(
res
=>
{
finishPacked
(
data
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
...
@@ -514,6 +532,13 @@ export default {
...
@@ -514,6 +532,13 @@ export default {
},
},
printTag
(){
printTag
(){
this
.
showPrintTagDialog
=
true
this
.
showPrintTagDialog
=
true
},
// 箱明细关闭后清理快递单号和影像临时数据
clearAppendExpressNoAndPictures
(){
setTimeout
(()
=>
{
window
.
ChooseOrderProductsExpressNos
=
null
window
.
ChooseOrderProductsPictureUrls
=
null
},
100
)
}
}
},
},
watch
:
{
watch
:
{
...
...
src/views/ecw/order/warehousing/components/WarehouseRecordDetail.vue
View file @
94d365aa
...
@@ -92,7 +92,13 @@ export default {
...
@@ -92,7 +92,13 @@ export default {
showChooseDialog
:
false
showChooseDialog
:
false
};
};
},
},
watch
:{
dialogVisible
(
v
){
if
(
!
v
){
this
.
$emit
(
"
close
"
)
}
}
},
mounted
()
{
mounted
()
{
this
.
getAttrList
()
this
.
getAttrList
()
},
},
...
...
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