Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-pda-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-pda-master
Commits
7970bea4
Commit
7970bea4
authored
Aug 07, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包添加箱明细从订单商品中选择追加影像和快递单号
parent
008c2737
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
+29
-3
index.vue
src/components/warehouse-record-detail/index.vue
+2
-1
chooseOrderProducts.vue
src/pages/stocking/chooseOrderProducts.vue
+7
-1
pack.vue
src/pages/stocking/components/pack.vue
+20
-1
No files found.
src/components/warehouse-record-detail/index.vue
View file @
7970bea4
...
@@ -173,7 +173,8 @@ export default {
...
@@ -173,7 +173,8 @@ export default {
"
brand
"
:
item
.
brand
,
"
brand
"
:
item
.
brand
,
"
cartonsNum
"
:
undefined
,
"
cartonsNum
"
:
undefined
,
"
createTime
"
:
""
,
"
createTime
"
:
""
,
"
expressNo
"
:
""
,
"
expressNo
"
:
item
.
expressNo
,
"
pictureUrls
"
:
item
.
pictureUrls
,
"
prodAttrIds
"
:
item
.
prodAttrIds
,
"
prodAttrIds
"
:
item
.
prodAttrIds
,
"
prodId
"
:
item
.
prodId
,
"
prodId
"
:
item
.
prodId
,
"
quantityAll
"
:
item
.
quantityAll
,
"
quantityAll
"
:
item
.
quantityAll
,
...
...
src/pages/stocking/chooseOrderProducts.vue
View file @
7970bea4
...
@@ -126,11 +126,17 @@ export default {
...
@@ -126,11 +126,17 @@ export default {
return
i
.
prodId
==
item
.
prodId
&&
i
.
brand
==
item
.
brand
&&
i
.
material
==
item
.
material
&&
i
.
prodAttrIds
==
item
.
prodAttrIds
&&
i
.
usageIds
==
item
.
usageIds
return
i
.
prodId
==
item
.
prodId
&&
i
.
brand
==
item
.
brand
&&
i
.
material
==
item
.
material
&&
i
.
prodAttrIds
==
item
.
prodAttrIds
&&
i
.
usageIds
==
item
.
usageIds
})
})
if
(
index
==
-
1
)
{
if
(
index
==
-
1
)
{
arr
.
push
({...
item
})
arr
.
push
({
...
item
,
expressNo
:
warehouseIn
.
expressNo
,
pictureUrls
:
warehouseIn
.
pictureUrls
,
})
}
else
{
}
else
{
arr
[
index
].
quantityAll
+=
item
.
quantityAll
arr
[
index
].
quantityAll
+=
item
.
quantityAll
}
}
})
})
// TODO 要把商品的入仓影响,快递单号合并到主商品中
})
})
arr
.
forEach
(
item
=>
{
arr
.
forEach
(
item
=>
{
uni
.
addProductFromOrder
(
item
)
uni
.
addProductFromOrder
(
item
)
...
...
src/pages/stocking/components/pack.vue
View file @
7970bea4
...
@@ -109,7 +109,12 @@
...
@@ -109,7 +109,12 @@
<
view
class
=
"
card-row
"
>
<
view
class
=
"
card-row
"
>
<
text
>
{{
$t
(
'
快递单号
'
)
}}
<
/text
>
<
text
>
{{
$t
(
'
快递单号
'
)
}}
<
/text
>
<
uni
-
easyinput
v
-
model
=
"
item.expressNo
"
:
placeholder
=
"
$t('输入快递单号')
"
:
clearable
=
"
false
"
/>
<
uni
-
easyinput
v
-
model
=
"
item.expressNo
"
:
placeholder
=
"
$t('输入快递单号')
"
:
clearable
=
"
false
"
/>
<
WarehouseRecordDetail
v
-
model
=
"
item.orderWarehouseInDetailsVOList
"
:
order
-
id
=
"
order.orderId
"
:
warehouse
-
in
-
id
=
"
item.id
"
/>
<
WarehouseRecordDetail
v
-
model
=
"
item.orderWarehouseInDetailsVOList
"
:
order
-
id
=
"
order.orderId
"
:
warehouse
-
in
-
id
=
"
item.id
"
@
input
=
"
handleMergeExpressAndPictures(index)
"
/>
<
/view
>
<
/view
>
<
view
v
-
if
=
"
index
"
class
=
"
delete-btn
"
@
tap
=
"
delRow(index)
"
>
{{
$t
(
'
删除
'
)
}}
<
/view
>
<
view
v
-
if
=
"
index
"
class
=
"
delete-btn
"
@
tap
=
"
delRow(index)
"
>
{{
$t
(
'
删除
'
)
}}
<
/view
>
...
@@ -354,6 +359,20 @@ export default {
...
@@ -354,6 +359,20 @@ export default {
this
.
$refs
.
warehouseDetail
.
showDetail
(
this
.
order
)
this
.
$refs
.
warehouseDetail
.
showDetail
(
this
.
order
)
}
)
}
)
}
,
}
,
// 想明细更新后将影响和快递单号合并到主商品中
handleMergeExpressAndPictures
(
index
){
this
.
orderWarehouseInItemDtoList
?.
forEach
((
item
,
i
)
=>
{
item
.
orderWarehouseInDetailsVOList
?.
forEach
(
detail
=>
{
// 合并影像到入仓记录中
this
.
pictureUrls
=
this
.
pictureUrls
.
concat
(
detail
.
pictureUrls
)
// 合并快递单号到打包记录中
if
(
i
===
index
&&
detail
.
expressNo
?.
length
){
item
.
expressNo
+=
`,${detail.expressNo
}
`
}
}
)
}
)
}
/*delimage(index){
/*delimage(index){
this.pictureUrls.splice(index,1)
this.pictureUrls.splice(index,1)
}
,
}
,
...
...
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