|
|
@@ -535,15 +535,15 @@ class U8ThirdPartyService extends Service
|
|
|
// $return = $this->formatAndValidateDate($value['productDate']);
|
|
|
// if(! $return) return [false, '生产日期格式错误'];
|
|
|
// $productDate = $return;
|
|
|
-// if(empty($value['failureDate'])) return [false, '失效日期不能为空'];
|
|
|
-// $return = $this->formatAndValidateDate($value['failureDate']);
|
|
|
-// if(! $return) return [false, '生产日期格式错误'];
|
|
|
-// $failureDate= $return;
|
|
|
+ if(empty($value['failureDate'])) return [false, '失效日期不能为空'];
|
|
|
+ $return = $this->formatAndValidateDate($value['failureDate']);
|
|
|
+ if(! $return) return [false, '失效日期格式错误'];
|
|
|
+ $failureDate= $return;
|
|
|
if(empty($value['lot'])) return [false, '批号不能为空'];
|
|
|
if(empty($value['iQuantity']) || ! is_numeric($value['iQuantity'])) return [false, '存货数量错误'];
|
|
|
$detail_map[$value['materialCode']][] = [
|
|
|
// 'productDate' => $productDate,
|
|
|
-// 'failureDate' => $failureDate,
|
|
|
+ 'failureDate' => $failureDate,
|
|
|
'lot' => $value['lot'],
|
|
|
'iQuantity' => $value['iQuantity'],
|
|
|
];
|