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
2df93c9e
authored
a year ago
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
银行信息修改
parent
f67f56ad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
app/Http/Controllers/Api/SupplierReceiptApiController.php
app/Http/Services/SyncSupplierService.php
app/Http/Validators/ReceiptValidator.php
resources/views/script/supplier/SupplierReceiptScript.blade.php
resources/views/web/AddSupplierReceipt.blade.php
app/Http/Controllers/Api/SupplierReceiptApiController.php
View file @
2df93c9e
...
...
@@ -58,7 +58,7 @@ class SupplierReceiptApiController extends Controller
'certificate'
,
'account_name'
,
'remark'
,
'international_code'
//
'international_code'
]);
$receipt
[
'account_adderss'
]
=
empty
(
$receipt
[
'account_adderss'
])
?
' '
:
$receipt
[
'account_adderss'
];
if
(
$receipt
[
'receipt_type'
]
==
1
)
{
...
...
This diff is collapsed.
Click to expand it.
app/Http/Services/SyncSupplierService.php
View file @
2df93c9e
...
...
@@ -100,7 +100,7 @@ class SyncSupplierService
'bankaccount'
=>
$receipt
[
'account_adderss'
],
'bankaccount'
=>
$receipt
[
'certificate'
],
'bankaccount'
=>
$receipt
[
'business_license'
],
'bankaccount'
=>
$receipt
[
'international_code'
],
//
'bankaccount' => $receipt['international_code'],
];
}
}
...
...
This diff is collapsed.
Click to expand it.
app/Http/Validators/ReceiptValidator.php
View file @
2df93c9e
...
...
@@ -25,7 +25,7 @@ class ReceiptValidator
$rules
[
"swift_code"
]
=
'required'
;
$rules
[
"account_adderss"
]
=
'required'
;
$rules
[
"account_name"
]
=
'required'
;
$rules
[
"international_code"
]
=
'required'
;
//
$rules["international_code"] = 'required';
}
$messages
=
$this
->
messages
();
$validator
=
Validator
::
make
(
$receipt
,
$rules
,
$messages
);
...
...
@@ -51,7 +51,7 @@ class ReceiptValidator
'account_name.required'
=>
'账户名称 不能为空'
,
'certificate.required'
=>
'银行信息凭证 不能为空'
,
'account_adderss.required'
=>
'银行地址 不能为空'
,
'international_code.required'
=>
'国际代码 不能为空'
,
//
'international_code.required' => '国际代码 不能为空',
];
}
}
This diff is collapsed.
Click to expand it.
resources/views/script/supplier/SupplierReceiptScript.blade.php
View file @
2df93c9e
...
...
@@ -34,7 +34,7 @@
{
field
:
'account_no'
,
title
:
'
<
span
class
=
"require"
>*
<
/span>银行账号', align: 'center', width: 130}
,
{
field
:
'account_name'
,
title
:
'账户名称'
,
align
:
'center'
,
width
:
150
},
{
field
:
'swift_code'
,
title
:
'电汇号码'
,
align
:
'center'
,
width
:
130
},
{
field
:
'international_code'
,
title
:
'国际代码'
,
align
:
'center'
,
width
:
130
},
//
{field: 'international_code', title: '国际代码', align: 'center', width: 130},
{
field
:
'certificate'
,
title
:
'
<
span
class
=
"require"
>*
<
/span>信息凭证'
,
...
...
This diff is collapsed.
Click to expand it.
resources/views/web/AddSupplierReceipt.blade.php
View file @
2df93c9e
...
...
@@ -69,16 +69,16 @@
value=
"{{$receipt['account_adderss'] or ''}}"
>
</div>
</div>
<div
class=
"layui-form-item"
x-show=
"receiptType === '2'"
>
<label
class=
"layui-form-label"
>
<span
style=
"color: red"
>
*
</span>
国际代码 :
</label>
<div
class=
"layui-input-block block-42"
>
<input
type=
"text"
name=
"international_code"
id=
"international_code"
placeholder=
"请输入银行国际代码"
class=
"layui-input"
value=
"{{$receipt['international_code'] or ''}}"
>
</div>
</div>
{{--
<div
class=
"layui-form-item"
x-show=
"receiptType === '2'"
>
--}}
{{--
<label
class=
"layui-form-label"
>
--}}
{{--
<span
style=
"color: red"
>
*
</span>
--}}
{{-- 国际代码 :
</label>
--}}
{{--
<div
class=
"layui-input-block block-42"
>
--}}
{{--
<input
type=
"text"
name=
"international_code"
id=
"international_code"
--
}}
{{
--
placeholder=
"请输入银行国际代码"
class=
"layui-input"
--
}}
{{
--
value=
"{{$receipt['international_code'] or ''}}"
>
--}}
{{--
</div>
--}}
{{--
</div>
--}}
<div
class=
"layui-form-item"
id=
"swift_code_div"
x-show=
"receiptType === '2'"
>
<label
class=
"layui-form-label"
><span
class=
"require"
>
*
</span>
Swift Code :
</label>
<div
class=
"layui-input-block block-42"
>
...
...
This diff is collapsed.
Click to expand it.
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