Commit d82385ad by Joneq

修改拣货任务

parent e54f94e7
Showing with 2 additions and 2 deletions
......@@ -494,14 +494,14 @@ class PickTaskLogic
throw new \Exception('卡板ID不存在');
}
$returnData = OutStoreDetailModel::getWhereObj([])->where('pallet_id',$palletId)->orderBy('add_time','desc')->get()->toArray();
$returnData = PickTaskDetailModel::getWhereObj([])->where('pallet_id',$palletId)->orderBy('add_time','desc')->get()->toArray();
if (empty($returnData)){
return [];
}
foreach ($returnData as $key=>$value){
$value = array_merge(PickTaskDetailModel::where('out_store_detail_id',$value['out_store_detail_id'])->first()->toArray(),$value);
$value = array_merge(OutStoreDetailModel::where('out_store_detail_id',$value['out_store_detail_id'])->first()->toArray(),$value);
$returnData[$key] = CommonLogic::getHaveKeyCn($value);
}
return $returnData;
......
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