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