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
b904c307
authored
May 19, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加箱号和卡板号的判断
parent
c2a2f6d9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
app/Http/Controllers/OutstoreController.php
app/Http/Model/Logic/PalletLogic.php
app/Http/Model/Logic/PickTaskLogic.php
app/Http/Controllers/OutstoreController.php
View file @
b904c307
...
@@ -70,7 +70,7 @@ class OutstoreController extends Controller
...
@@ -70,7 +70,7 @@ class OutstoreController extends Controller
{
{
$data
=
$request
->
all
();
$data
=
$request
->
all
();
try
{
try
{
$data
[
'pick_task_detail_id_arr'
]
=
P
ickTaskLogic
::
getPickTaskDetailList
(
$data
);
$data
[
'pick_task_detail_id_arr'
]
=
P
alletLogic
::
getPalletBoxPatailPickTaskDetailIdArr
(
$data
,
0
);
$returnData
=
(
new
PalletLogic
())
->
confirmOutStore
(
$data
);
$returnData
=
(
new
PalletLogic
())
->
confirmOutStore
(
$data
);
}
catch
(
\Exception
$exception
){
}
catch
(
\Exception
$exception
){
if
(
empty
(
self
::
$errCode
))
self
::
$errCode
=
101
;
if
(
empty
(
self
::
$errCode
))
self
::
$errCode
=
101
;
...
@@ -84,8 +84,7 @@ class OutstoreController extends Controller
...
@@ -84,8 +84,7 @@ class OutstoreController extends Controller
{
{
$data
=
$request
->
all
();
$data
=
$request
->
all
();
try
{
try
{
//获取所有的out_store_detail_id
$data
[
'pick_task_detail_id_arr'
]
=
PalletLogic
::
getPalletBoxPatailPickTaskDetailIdArr
(
$data
,
1
);
$data
[
'pick_task_detail_id_arr'
]
=
PickTaskLogic
::
getPickTaskDetailList
(
$data
);
$returnData
=
(
new
PalletLogic
())
->
cancelOutStore
(
$data
);
$returnData
=
(
new
PalletLogic
())
->
cancelOutStore
(
$data
);
}
catch
(
\Exception
$exception
){
}
catch
(
\Exception
$exception
){
if
(
empty
(
self
::
$errCode
))
self
::
$errCode
=
101
;
if
(
empty
(
self
::
$errCode
))
self
::
$errCode
=
101
;
...
...
app/Http/Model/Logic/PalletLogic.php
View file @
b904c307
...
@@ -92,7 +92,7 @@ class PalletLogic
...
@@ -92,7 +92,7 @@ class PalletLogic
//获取当前卡板的箱号任务ID
//获取当前卡板的箱号任务ID
public
function
getPalletBoxPatailPickTaskDetailIdArr
(
$data
,
$isConfirm
=
0
)
static
public
function
getPalletBoxPatailPickTaskDetailIdArr
(
$data
,
$isConfirm
=
0
)
{
{
$palletId
=
PalletModel
::
where
(
'pallet_sn'
,
$data
[
'pallet_sn'
])
->
value
(
'pallet_id'
);
$palletId
=
PalletModel
::
where
(
'pallet_sn'
,
$data
[
'pallet_sn'
])
->
value
(
'pallet_id'
);
if
(
empty
(
$palletId
)){
if
(
empty
(
$palletId
)){
...
@@ -111,7 +111,7 @@ class PalletLogic
...
@@ -111,7 +111,7 @@ class PalletLogic
//确认出库
//确认出库
public
function
confirmOutStore
(
$data
)
static
public
function
confirmOutStore
(
$data
)
{
{
$outStoreDetailIdArr
=
$data
[
'pick_task_detail_id_arr'
];
$outStoreDetailIdArr
=
$data
[
'pick_task_detail_id_arr'
];
...
...
app/Http/Model/Logic/PickTaskLogic.php
View file @
b904c307
...
@@ -486,7 +486,7 @@ class PickTaskLogic
...
@@ -486,7 +486,7 @@ class PickTaskLogic
}
}
//获取拣货任务明细列表
//获取拣货任务明细列表
static
public
function
getPickTaskDetailList
(
$data
)
public
function
getPickTaskDetailList
(
$data
)
{
{
$palletId
=
PalletModel
::
where
(
'pallet_sn'
,
$data
[
'pallet_box_sn'
])
->
value
(
'pallet_id'
);
$palletId
=
PalletModel
::
where
(
'pallet_sn'
,
$data
[
'pallet_box_sn'
])
->
value
(
'pallet_id'
);
...
...
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