cqp 1 miesiąc temu
rodzic
commit
e01b9c19e6
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/Service/OrderService.php

+ 1 - 0
app/Service/OrderService.php

@@ -208,6 +208,7 @@ class OrderService extends Service
         if(empty($data['order_time'])) return [false, '订单日期不能为空'];
         if(empty($data['order_time'])) return [false, '订单日期不能为空'];
         $data['order_time'] = $this->changeDateToDate($data['order_time']);
         $data['order_time'] = $this->changeDateToDate($data['order_time']);
         if(empty($data['details'])) return [false, '物料不能为空'];
         if(empty($data['details'])) return [false, '物料不能为空'];
+        if(! empty($data['lt_arrived_time'])) $data['lt_arrived_time'] = $this->changeDateToDate($data['lt_arrived_time']);
         $total = 0;
         $total = 0;
         foreach ($data['details'] as $value){
         foreach ($data['details'] as $value){
             if(empty($value['code'])) return [false, '物料编码不能为空'];
             if(empty($value['code'])) return [false, '物料编码不能为空'];