Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
scm_wms_outstore_api
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
1a2a97a8
authored
May 08, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善数据
parent
5b65c4c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
111 additions
and
4 deletions
app/Http/Controllers/OutStoreController.php
app/Http/Controllers/OutStoreController.php
View file @
1a2a97a8
...
...
@@ -24,7 +24,7 @@ class OutStoreController extends Controller
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'
location_id'
,
'
pick_task_sn'
],
$data
);
CommonLogic
::
checkEmpty
([
'pick_task_sn'
],
$data
);
$returnData
=
$this
->
curl
(
'/pick_task/getFrontPickTaskList'
,
$data
,
$request
);
...
...
@@ -61,6 +61,27 @@ class OutStoreController extends Controller
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
//拣货确认
public
function
cancel_pick
(
$request
)
{
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'pick_task_detail_id'
],
$data
);
$returnData
=
$this
->
curl
(
'/pick_task/cancelPick'
,
$data
,
$request
);
if
(
!
isset
(
$returnData
[
'errcode'
])
&&
!
empty
(
$returnData
[
'errcode'
])){
CommonLogic
::
$errCode
=
$returnData
[
'errcode'
];
throw
new
\Exception
(
$returnData
[
'data'
]);
}
}
catch
(
\Exception
$exception
){
return
$this
->
returnJson
(
$exception
->
getMessage
());
}
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
//获取卡板信息
public
function
pallet_box_list
(
$request
)
...
...
@@ -68,7 +89,7 @@ class OutStoreController extends Controller
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'pallet_
id
'
],
$data
);
CommonLogic
::
checkEmpty
([
'pallet_
sn
'
],
$data
);
$returnData
=
$this
->
curl
(
'/out_store/palletBoxList'
,
$data
,
$request
);
...
...
@@ -107,9 +128,94 @@ class OutStoreController extends Controller
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
//扫描出库
public
function
scan_out_store
(
$request
)
//扫描出库
列表
public
function
scan_out_store
_list
(
$request
)
{
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'pallet_box_sn'
],
$data
);
$returnData
=
$this
->
curl
(
'/out_store/scan_out_store_list'
,
$data
,
$request
);
if
(
isset
(
$returnData
[
'errcode'
])
&&
!
empty
(
$returnData
[
'errcode'
])){
CommonLogic
::
$errCode
=
$returnData
[
'errcode'
];
throw
new
\Exception
(
$returnData
[
'data'
]);
}
}
catch
(
\Exception
$exception
){
return
$this
->
returnJson
(
$exception
->
getMessage
());
}
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
//确认出库
public
function
confirm_out_store
(
$request
)
{
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'pick_task_detail_id'
],
$data
);
$returnData
=
$this
->
curl
(
'/out_store/confirm_out_store'
,
$data
,
$request
);
if
(
isset
(
$returnData
[
'errcode'
])
&&
!
empty
(
$returnData
[
'errcode'
])){
CommonLogic
::
$errCode
=
$returnData
[
'errcode'
];
throw
new
\Exception
(
$returnData
[
'data'
]);
}
}
catch
(
\Exception
$exception
){
return
$this
->
returnJson
(
$exception
->
getMessage
());
}
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
//取消出库
public
function
cancel_out_store
(
$request
)
{
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'pick_task_detail_id'
],
$data
);
$returnData
=
$this
->
curl
(
'/out_store/cancel_out_store'
,
$data
,
$request
);
if
(
isset
(
$returnData
[
'errcode'
])
&&
!
empty
(
$returnData
[
'errcode'
])){
CommonLogic
::
$errCode
=
$returnData
[
'errcode'
];
throw
new
\Exception
(
$returnData
[
'data'
]);
}
}
catch
(
\Exception
$exception
){
return
$this
->
returnJson
(
$exception
->
getMessage
());
}
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
//发货
public
function
deliver_goods
(
$request
)
{
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'pick_task_detail_id'
],
$data
);
$returnData
=
$this
->
curl
(
'/out_store/deliver_goods'
,
$data
,
$request
);
if
(
isset
(
$returnData
[
'errcode'
])
&&
!
empty
(
$returnData
[
'errcode'
])){
CommonLogic
::
$errCode
=
$returnData
[
'errcode'
];
throw
new
\Exception
(
$returnData
[
'data'
]);
}
}
catch
(
\Exception
$exception
){
return
$this
->
returnJson
(
$exception
->
getMessage
());
}
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
//获取箱子信息
public
function
get_box_info
(
$request
)
{
$data
=
$request
->
all
();
try
{
CommonLogic
::
checkEmpty
([
'box_sn'
],
$data
);
$returnData
=
$this
->
curl
(
'/out_store/get_box_info'
,
$data
,
$request
);
if
(
isset
(
$returnData
[
'errcode'
])
&&
!
empty
(
$returnData
[
'errcode'
])){
CommonLogic
::
$errCode
=
$returnData
[
'errcode'
];
throw
new
\Exception
(
$returnData
[
'data'
]);
}
}
catch
(
\Exception
$exception
){
return
$this
->
returnJson
(
$exception
->
getMessage
());
}
return
$this
->
returnJson
(
$returnData
[
'data'
]);
}
}
\ No newline at end of file
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