Commit dd9b8758 by 杨树贤

银行信息修改

parent 873ae021
......@@ -27,6 +27,7 @@ class ReceiptValidator
$rules["swift_code"] = 'required';
$rules["account_adderss"] = 'required';
$rules["account_name"] = 'required';
$rules["bank_adderss"] = 'required';
//$rules["international_code"] = 'required';
}
$messages = $this->messages();
......@@ -64,7 +65,7 @@ class ReceiptValidator
'receipt_type.required' => '银行类型 不能为空',
'bank_name.required' => '开户名称 不能为空',
'bank_adderss.required' => '开户行 不能为空',
'swift_code.required' => '电汇号码 Swift Code 不能为空',
'swift_code.required' => '银行国际代码 Swift Code 不能为空',
'account_no.required' => '银行账号 不能为空',
'account_name.required' => '账户名称 不能为空',
'certificate.required' => '银行信息凭证 不能为空',
......
......@@ -11,8 +11,14 @@
form.on('radio(receipt_type)', function (data) {
if (data.value == 1) {
$('#swift_code_div').hide();
$('#account_name_label').text('账户名称 : ');
$('#account_name_require_span').hide();
$('#bank_address_require_span').hide();
} else {
$('#swift_code_div').show();
$('#account_name_label').text('国外受益人 : ');
$('#account_name_require_span').show();
$('#bank_address_require_span').show();
}
});
......
......@@ -33,7 +33,7 @@
{field: 'bank_adderss', title: '<span class="require">* </span>开户行', align: 'center', width: 150},
{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: 'swift_code', title: 'Swift Code', align: 'center', width: 130},
// {field: 'international_code', title: '国际代码', align: 'center', width: 130},
{
field: 'certificate',
......@@ -43,6 +43,7 @@
return "<a style='color: blue' href='" + data.certificate + "' target='_blank'>" + data.certificate + "</a>";
}
},
{field: 'account_adderss', title: '银行地址', align: 'center', width: 200},
{field: 'remark', title: '备注', align: 'center', width: 200},
]],
id: 'receiptList',
......
......@@ -319,7 +319,7 @@
</div>
</div>
<div class="layui-col-md4">
<label class="layui-form-label">账户名称 : </label>
<label class="layui-form-label" id="account_name_label"><span class="require" id="account_name_require_span">*</span>账户名称 : </label>
<div class="layui-input-block block-42">
<input type="text" name="account_name" id="account_name"
placeholder="请输入账户名称" class="layui-input"
......@@ -327,10 +327,10 @@
</div>
</div>
<div class="layui-col-md4">
<label class="layui-form-label">银行地址 : </label>
<label class="layui-form-label"><span class="require" style="display: none" id="bank_address_require_span" >*</span>银行地址 : </label>
<div class="layui-input-block block-42">
<input type="text" name="account_adderss" id="account_adderss"
placeholder="请输入银行具体地址,精确到街道" class="layui-input"
placeholder="请输入银行具体地址或银行所在国家" class="layui-input"
value="">
</div>
</div>
......@@ -355,7 +355,7 @@
<label class="layui-form-label"><span class="require">*</span>Swift Code : </label>
<div class="layui-input-block block-42">
<input type="text" name="swift_code" id="Swift Code"
placeholder="请输入电汇号码" class="layui-input"
placeholder="请输入银行国际代码" class="layui-input"
value="">
</div>
</div>
......
......@@ -65,7 +65,7 @@
银行地址 : </label>
<div class="layui-input-block block-42">
<input type="text" name="account_adderss" id="account_adderss"
placeholder="请输入银行具体地址,精确到街道" class="layui-input"
placeholder="请输入银行具体地址或银行所在国家" class="layui-input"
value="{{$receipt['account_adderss'] or ''}}">
</div>
</div>
......@@ -83,7 +83,7 @@
<label class="layui-form-label"><span class="require">*</span>Swift Code : </label>
<div class="layui-input-block block-42">
<input type="text" name="swift_code" id="Swift Code"
placeholder="请输入电汇号码" class="layui-input"
placeholder="请输入银行国际代码" class="layui-input"
value="{{$receipt['swift_code'] or ''}}">
</div>
</div>
......
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