|
|
|
@ -348,6 +348,11 @@ class CarInfoHandle |
|
|
|
|
CarInfoT::destroy($source['id']); |
|
|
|
|
unset($sources[$index]); |
|
|
|
|
break; |
|
|
|
|
} else if ($key == 'car_no' && !in_array(strlen($source_a[$key]), [7,8])) { |
|
|
|
|
list($source_a, $source) = [$source, $source_a]; |
|
|
|
|
CarInfoT::destroy($source['id']); |
|
|
|
|
unset($sources[$index]); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -489,7 +494,7 @@ class CarInfoHandle |
|
|
|
|
'car_number' => $worksheet->getCellByColumnAndRow(4, $row)->getValue(), |
|
|
|
|
'car_phone' => $worksheet->getCellByColumnAndRow(5, $row)->getValue(), |
|
|
|
|
'car_frame_no' => $worksheet->getCellByColumnAndRow(6, $row)->getValue(), |
|
|
|
|
'car_no' => $worksheet->getCellByColumnAndRow(7, $row)->getValue(), |
|
|
|
|
'car_no' => str_replace('-', '', $worksheet->getCellByColumnAndRow(7, $row)->getValue()), |
|
|
|
|
'engine_no' => $worksheet->getCellByColumnAndRow(8, $row)->getValue(), |
|
|
|
|
'factory_model' => $worksheet->getCellByColumnAndRow(9, $row)->getValue(), |
|
|
|
|
'purchase_price' => $worksheet->getCellByColumnAndRow(10, $row)->getValue(), |
|
|
|
|