|
@@ -172,6 +172,13 @@ class ProductionOrderService extends Service
|
|
|
if(! empty($data['out_order_no_time'][0]) && ! empty($data['out_order_no_time'][1])) $model->whereBetween('out_order_no_time',[$data['out_order_no_time'][0],$data['out_order_no_time'][1]]);
|
|
|
if(! empty($data['production_time'][0]) && ! empty($data['production_time'][1])) $model->whereBetween('production_time',[$data['production_time'][0],$data['production_time'][1]]);
|
|
|
if(isset($data['status'])) $model->where('status',$data['status']);
|
|
|
+ if(isset($data['is_create'])) {
|
|
|
+ if($data['is_create']){
|
|
|
+ $model->whereColumn('dispatch_complete_quantity', '>=', 'production_quantity');
|
|
|
+ }else{
|
|
|
+ $model->whereColumn('production_quantity', '>', 'dispatch_complete_quantity');
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
$list = $this->limit($model,'',$data);
|
|
|
$list = $this->fillData($list);
|