Commit 1a2a97a8 by Joneq

完善数据

parent 5b65c4c2
Showing with 111 additions and 4 deletions
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment