Commit 1754e2bb by 杨树贤

供应商名称

parent 2938074b
Showing with 4 additions and 0 deletions
...@@ -28,6 +28,10 @@ class SupplierValidator ...@@ -28,6 +28,10 @@ class SupplierValidator
$isAdd = empty($validateData['supplier_id']) ? true : false; $isAdd = empty($validateData['supplier_id']) ? true : false;
if (!$validateData['supplier_name']) {
return '供应商名称不能为空';
}
if ($validateData['supplier_name']) { if ($validateData['supplier_name']) {
//新增的时候要先去检验下一体化的数据,如果是实体黑名单用户,那么就不允许新增 //新增的时候要先去检验下一体化的数据,如果是实体黑名单用户,那么就不允许新增
$regionType = $validateData['region'] == SupplierChannelModel::REGION_CN ? 1 : 2; $regionType = $validateData['region'] == SupplierChannelModel::REGION_CN ? 1 : 2;
......
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