Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4445cdd2
authored
Dec 13, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化箱信息同步问题
parent
b833b6b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
pages/stockRecheck/sort.vue
pages/stockRecheck/sort.vue
View file @
4445cdd2
...
...
@@ -1003,21 +1003,26 @@
* 获取箱信息
*/
getPackList
()
{
this
.
request
(
API
.
getPackList
,
'POST'
,
{
stock_out_id
:
this
.
searchParams
.
stock_out_id
},
fals
e
).
then
(
res
=>
{
this
.
request
(
API
.
getPackList
,
'POST'
,
{
stock_out_id
:
this
.
searchParams
.
stock_out_id
},
tru
e
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
this
.
company_id
==
1
||
this
.
company_id
==
3
)
{
//猎芯和华云
this
.
packList
=
res
.
data
.
list
;
}
else
if
(
this
.
company_id
==
2
)
{
//深茂
if
(
res
.
data
.
custome_box_info
.
select_box_type
==
1
)
{
//深贸电默认按复核数据
this
.
custome_box_info_index
=
0
;
}
else
if
(
res
.
data
.
custome_box_info
.
select_box_type
==
2
)
{
//猎芯科技,华云数智默认手动填写
this
.
custome_box_info_index
=
1
;
}
else
{
//默认是手动填写
this
.
custome_box_info_index
=
1
;
this
.
setCustomBoxInfoParams
.
total_box_num
=
res
.
data
.
custome_box_info
.
total_box_num
;
//更新后台总箱数
this
.
setCustomBoxInfoParams
.
total_weight
=
res
.
data
.
custome_box_info
.
total_weight
;
//更新后台总重量
}
//同步信息字段
this
.
packList
=
res
.
data
.
list
;
//打包箱信息
this
.
setCustomBoxInfoParams
.
total_box_num
=
res
.
data
.
custome_box_info
.
total_box_num
;
//更新后台总箱数
this
.
setCustomBoxInfoParams
.
total_weight
=
res
.
data
.
custome_box_info
.
total_weight
;
//更新后台总重量
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'
error
'
icon
:
'
none
'
});
}
});
...
...
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