Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1c59341b
authored
Feb 17, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善
parent
f9abe9cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Validators/ReceiptValidator.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
1c59341b
...
...
@@ -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
,
'该供应商名称已经存在,请修正后再提交'
);
}
...
...
app/Http/Validators/ReceiptValidator.php
View file @
1c59341b
...
...
@@ -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'
=>
'银行地址 不能为空'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment