Commit 86c9b021 by 朱继来

下单导入添加判断

parent bac54290
Showing with 10 additions and 0 deletions
......@@ -839,6 +839,16 @@ Class AddOrderController extends Controller
return;
}
if ($type == 1 && $val['buyer_id'] == '平台') {
if (!$val['id']) {
$err[] = '第'.($key+1).'行,采购员为平台时,SKUID必填';
return;
} else if (strlen($val['id']) == 19) {
$err[] = '第'.($key+1).'行,采购员为平台时,必须填写自营SKUID';
return;
}
}
// if ($type == 1 && !$val['standard_brand_name']) {
// $err[] = '第'.($key+1).'行,标准品牌不能为空';
// return;
......
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