Commit cc336e2d by Joneq

增加确认判断

parent b6fb68b6
Showing with 3 additions and 0 deletions
......@@ -184,6 +184,9 @@ class PalletLogic
}
}
if(PickTaskDetailModel::whereIn('pick_task_detail_id',$pickTaskDetailIdArr)->where('is_confirm',0)->value('pick_task_detail_id')){
throw new \Exception('单据存在未确认数据,请确认');
}
if(PickTaskDetailModel::whereIn('pick_task_detail_id',$pickTaskDetailIdArr)->whereIn('pack_status',[4])->value('pick_task_detail_id')){
throw new \Exception('单据存在已出库数据,不可重复操作');
......
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