Commit 78da315b by 杨树贤

导入校验

parent 9f9acde1
......@@ -111,7 +111,7 @@ class SupplierExaminationService
$errMsg[] = "检货时间不能为空! (第${lineNo}行),请修改为 2022/10/10 这种格式后再次提交";
}
if (!empty($examineTime)&&!isDateTime($examineTime)) {
if (!empty($examineTime) && !isDateTime($examineTime)) {
$errMsg[] = "检货时间格式不规范! (第${lineNo}行),请修改为 2022/10/10 这种格式后再次提交";
}
......@@ -234,6 +234,9 @@ class SupplierExaminationService
'备注'
];
foreach ($header as $key => $item) {
if ($key > count($validHeader) - 1) {
continue;
}
if (strpos($item, $validHeader[$key]) === false) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment