Commit 1c59341b by 杨树贤

完善

parent f9abe9cd
......@@ -786,7 +786,7 @@ class SupplierApiController extends Controller
$supplierName = $request->input('supplier_name');
$supplierName = trim($supplierName);
$exist = SupplierChannelModel::where('supplier_name', $supplierName)->exists();
$exist = SupplierChannelModel::where('supplier_name', $supplierName)->where('supplier_id', '!=', $supplierId)->exists();
if ($exist) {
$this->response(-1, '该供应商名称已经存在,请修正后再提交');
}
......
......@@ -59,7 +59,7 @@ class ReceiptValidator
'swift_code.required' => '银行国际代码 Swift Code 不能为空',
'account_no.required' => '银行账号 不能为空',
'account_no.regex' => '国内银行账号仅支持输入数字且中间不能有空格',
'account_no.alpha_num' => '国内银行账号都只允许输入英文和数字',
'account_no.alpha_num' => '银行账号都只允许输入英文和数字',
'account_name.required' => '账户名称 不能为空',
'certificate.required' => '银行信息凭证 不能为空',
'account_adderss.required' => '银行地址 不能为空',
......
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