Commit 49985b68 by 朱继来

调整导入验证

parent 48620242
Showing with 2 additions and 2 deletions
......@@ -802,7 +802,7 @@ Class AddOrderController extends Controller
$err[] = '第'.$key.'行,供应商为digikey,未找SKU信息';
return;
}
if ($response['data']['goods_name'] != $val['goods_name']) {
$err[] = '第'.$key.'行,供应商为digikey,商品名称不匹配';
return;
......@@ -823,7 +823,7 @@ Class AddOrderController extends Controller
}
// 自营ID、采购数量和单价为数字类型
if ($k == 'id' || $k == 'num' || $k == 'goods_price') {
if (($type == 2 && $k == 'id') || $k == 'num' || $k == 'goods_price') {
if (!preg_match('/\d/', $v)) {
$err[] = $required[$k].'列,第'.$key.'行格式错误';
break;
......
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