Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
scm_wms_outstore_service
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
44175795
authored
May 19, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改整箱字判断
parent
cc336e2d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
app/Http/Model/Logic/PalletLogic.php
app/Http/Model/Logic/PickTaskLogic.php
app/Http/Model/Logic/PalletLogic.php
View file @
44175795
...
@@ -113,11 +113,15 @@ class PalletLogic
...
@@ -113,11 +113,15 @@ class PalletLogic
//确认出库
//确认出库
static
public
function
confirmOutStore
(
$data
)
static
public
function
confirmOutStore
(
$data
)
{
{
$
outStore
DetailIdArr
=
$data
[
'pick_task_detail_id_arr'
];
$
pickTask
DetailIdArr
=
$data
[
'pick_task_detail_id_arr'
];
$adminInfo
=
CommonLogic
::
getAdminInfo
();
$adminInfo
=
CommonLogic
::
getAdminInfo
();
PickTaskDetailModel
::
whereIn
(
'pick_task_detail_id'
,
$outStoreDetailIdArr
)
->
update
([
if
(
PickTaskDetailModel
::
getWhereObj
([])
->
whereIn
(
'pick_task_detail_id'
,
$pickTaskDetailIdArr
)
->
where
(
'pick_status'
,
'!='
,
3
)){
throw
new
\Exception
(
'拣货任务存在未拣货数据,请拣货'
);
}
PickTaskDetailModel
::
whereIn
(
'pick_task_detail_id'
,
$pickTaskDetailIdArr
)
->
update
([
'is_confirm'
=>
1
,
'confirm_time'
=>
time
(),
'is_confirm'
=>
1
,
'confirm_time'
=>
time
(),
'confirm_user_name'
=>
$adminInfo
[
'admin_name'
],
'confirm_user_name'
=>
$adminInfo
[
'admin_name'
],
'confirm_user_id'
=>
$adminInfo
[
'admin_id'
],
'confirm_user_id'
=>
$adminInfo
[
'admin_id'
],
...
@@ -129,9 +133,9 @@ class PalletLogic
...
@@ -129,9 +133,9 @@ class PalletLogic
public
function
cancelOutStore
(
$data
)
public
function
cancelOutStore
(
$data
)
{
{
//获取需要修改的货品
//获取需要修改的货品
$
outStore
DetailIdArr
=
$data
[
'pick_task_detail_id_arr'
];
$
pickTask
DetailIdArr
=
$data
[
'pick_task_detail_id_arr'
];
PickTaskDetailModel
::
whereIn
(
'pick_task_detail_id'
,
$
outStore
DetailIdArr
)
->
update
([
'is_confirm'
=>
0
]);
PickTaskDetailModel
::
whereIn
(
'pick_task_detail_id'
,
$
pickTask
DetailIdArr
)
->
update
([
'is_confirm'
=>
0
]);
return
[];
return
[];
}
}
...
...
app/Http/Model/Logic/PickTaskLogic.php
View file @
44175795
...
@@ -73,6 +73,7 @@ class PickTaskLogic
...
@@ -73,6 +73,7 @@ class PickTaskLogic
$data
[
'number'
]
=
$value
;
$data
[
'number'
]
=
$value
;
$data
[
'location_id'
]
=
$locatiion
[
0
];
$data
[
'location_id'
]
=
$locatiion
[
0
];
$data
[
'pallet_id'
]
=
$locatiion
[
1
];
$data
[
'pallet_id'
]
=
$locatiion
[
1
];
$data
[
'box_id'
]
=
$locatiion
[
2
];
if
(
!
empty
(
$data
[
'pallet_id'
])){
if
(
!
empty
(
$data
[
'pallet_id'
])){
...
@@ -84,9 +85,8 @@ class PickTaskLogic
...
@@ -84,9 +85,8 @@ class PickTaskLogic
$isAllGoods
++
;
$isAllGoods
++
;
}
}
$data
[
'box_id'
]
=
$locatiion
[
2
];
if
(
!
empty
(
$data
[
'box_id'
])){
if
(
empty
(
$data
[
'pallet_id'
])
&&
!
empty
(
$data
[
'box_id'
])){
if
(
StockModel
::
where
(
'pallet_id'
,
$data
[
'pallet_id'
])
->
where
(
'warehousing_sn'
,
$outStoreDetail
[
'warehousing_sn'
])
->
sum
(
'stock'
)
==
$value
){
if
(
StockModel
::
where
(
'pallet_id'
,
$data
[
'pallet_id'
])
->
where
(
'warehousing_sn'
,
$outStoreDetail
[
'warehousing_sn'
])
->
sum
(
'stock'
)
==
$value
){
$data
[
'pick_remark'
]
=
'整箱'
;
$data
[
'pick_remark'
]
=
'整箱'
;
}
else
{
}
else
{
...
...
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