Commit b904c307 by Joneq

增加箱号和卡板号的判断

parent c2a2f6d9
......@@ -70,7 +70,7 @@ class OutstoreController extends Controller
{
$data = $request->all();
try{
$data['pick_task_detail_id_arr'] = PickTaskLogic::getPickTaskDetailList($data);
$data['pick_task_detail_id_arr'] = PalletLogic::getPalletBoxPatailPickTaskDetailIdArr($data,0);
$returnData = (new PalletLogic())->confirmOutStore($data);
}catch (\Exception $exception){
if (empty(self::$errCode))self::$errCode=101;
......@@ -84,8 +84,7 @@ class OutstoreController extends Controller
{
$data = $request->all();
try{
//获取所有的out_store_detail_id
$data['pick_task_detail_id_arr'] = PickTaskLogic::getPickTaskDetailList($data);
$data['pick_task_detail_id_arr'] = PalletLogic::getPalletBoxPatailPickTaskDetailIdArr($data,1);
$returnData = (new PalletLogic())->cancelOutStore($data);
}catch (\Exception $exception){
if (empty(self::$errCode))self::$errCode=101;
......
......@@ -92,7 +92,7 @@ class PalletLogic
//获取当前卡板的箱号任务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');
if (empty($palletId)){
......@@ -111,7 +111,7 @@ class PalletLogic
//确认出库
public function confirmOutStore($data)
static public function confirmOutStore($data)
{
$outStoreDetailIdArr = $data['pick_task_detail_id_arr'];
......
......@@ -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');
......
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