cqpCow 2 vuotta sitten
vanhempi
sitoutus
db43cda86d
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/Service/DispatchService.php

+ 1 - 0
app/Service/DispatchService.php

@@ -277,6 +277,7 @@ class DispatchService extends Service
         if(empty($data['dispatch_time'][0]) || empty($data['dispatch_time'][1])) return [false,'计划生产时间不能为空!'];
         if(empty($data['out_order_no_time'][0]) || empty($data['out_order_no_time'][1])) return [false,'制单时间不能为空!'];
         if($this->isEmpty($data,'process_id')) return [false,'工序不能为空!'];
+        if(! isset($data['is_split'])) return [false,'是否拆分标识不能为空!'];
 
         $result = OrdersProduct::whereIn('id',$data['id'])
             ->select('id as order_product_id','sale_orders_product_id','order_no','table_header_mark','product_no','product_title','product_size','product_unit','production_quantity','technology_material','technology_name','wood_name','process_mark','table_body_mark','sale_orders_product_id','out_order_no_time','price','customer_name')