Commit 5f8b0d32 by 杨树贤

新增页面修改

parent 8a3c2d64
......@@ -211,37 +211,82 @@
<div class="layui-form-item">
<div class="layui-col-md4">
@inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render('supplier_type','供应商类别',1,config('field.SupplierType'),['require'=>true]) !!}
{!! $singleSelectPresenter->render('receipt_type','供应商类别',1,config('fixed.ReceiptType'),['require'=>true]) !!}
</div>
<div class="layui-col-md4">
<label class="layui-form-label"><span class="require">*</span>联系人</label>
<label class="layui-form-label"><span class="require">*</span>开户名称 : </label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_consignee" id="supplier_consignee"
placeholder="请输入联系人" class="layui-input"
value="">
<input type="text" name="bank_name" id="bank_name"
placeholder="请输入开户名称,比如深圳市猎芯科技有限公司" class="layui-input"
value="{{$receipt['bank_name'] or ''}}">
</div>
</div>
<div class="layui-col-md4">
<label class="layui-form-label"><span class="require">*</span>联系人</label>
<label class="layui-form-label"><span class="require">*</span>开户行 : </label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_consignee" id="supplier_consignee"
placeholder="请输入联系人" class="layui-input"
value="">
<input type="text" name="bank_adderss" id="bank_adderss"
placeholder="请输入开户行,比如深圳建设银行" class="layui-input"
value="{{$receipt['bank_adderss'] or ''}}">
</div>
</div>
<div class="layui-col-md4">
<label class="layui-form-label"><span class="require">*</span>银行账号 : </label>
<div class="layui-input-block block-42">
<input type="text" name="account_no" id="account_no"
placeholder="请输入银行账号" class="layui-input"
value="{{$receipt['account_no'] or ''}}">
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md4">
<label class="layui-form-label"><span class="require">*</span>联系人</label>
<label class="layui-form-label">账户名称 : </label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_consignee" id="supplier_consignee"
placeholder="请输入联系人" class="layui-input"
value="">
<input type="text" name="account_name" id="account_name"
placeholder="请输入账户名称" class="layui-input"
value="{{$receipt['account_name'] or ''}}">
</div>
</div>
<div class="layui-col-md4">
<label class="layui-form-label">银行地址 : </label>
<div class="layui-input-block block-42">
<input type="text" name="account_adderss" id="account_adderss"
placeholder="请输入银行具体地址,精确到街道" class="layui-input"
value="{{$receipt['account_adderss'] or ''}}">
</div>
</div>
<div class="layui-col-md4">
<div id="swift_code_div"
@if((!empty($receipt['receipt_type'])&&$receipt['receipt_type']==1)||empty($receipt['receipt_type']))
style="display: none" @endif>
<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"
value="{{$receipt['swift_code'] or ''}}">
</div>
</div>
</div>
<div class="layui-col-md4">
<label class="layui-form-label">
<span class="require">*</span>银行凭证:
</label>
<div class="layui-input-block">
<input type="hidden" name="certificate" id="certificate"
value="{{$receipt['certificate'] or ''}}">
<button type="button" class="layui-btn upload-img layui-btn-sm" preview="preview" data-obj="certificate">
<i class="layui-icon">&#xe67c;</i>上传文件
</button>
<a target="_blank" id="certificate_url"
href="{{$receipt['certificate'] or ''}}">{{$receipt['certificate'] or ''}}</a>
</div>
</div>
<div class="layui-col-md4">
<label class="layui-form-label">备注 : </label>
<div class="layui-input-block block-42">
<input type="text" name="remark" id="remark"
placeholder="请输入备注" class="layui-input"
value="{{$receipt['remark'] or ''}}">
</div>
</div>
</div>
<blockquote class="layui-elem-quote layui-text">
......@@ -321,8 +366,10 @@
</div>
<div class="layui-col-md2"></div>
</div>
<blockquote class="layui-elem-quote layui-text">
<b>附件管理</b>
</blockquote>
@include('web.supplier.SupplierFile')
<div style="height: 100px"></div>
<div class="fix-button">
<div class="layui-row" style="width: 90%;">
......
<div class="layui-form-item">
<div class="layui-row">
<div class="@if (empty($supplier['supplier_id']))layui-col-md4 @else layui-col-md2 @endif">
<div clas="layui-col-md3">
<label class="layui-form-label"><span class="require" id="attachment_required_span">*</span>附件上传</label>
<div class="layui-input-block block-12" style="width: 155px" id="file_type_selector">
<div class="layui-input-inline" style="width: 155px" id="file_type_selector">
<select lay-verify="" lay-filter="file_type_selector">
<option value="">请选择</option>
@foreach(config('fixed.FileNameMapping') as $name=>$cnName)
......@@ -14,7 +14,7 @@
@if (empty($supplier['supplier_id']))
@endif
<div @if (empty($supplier['supplier_id']))class="layui-col-md8" style="margin-left: -30px;"@else class="layui-col-md10" style="padding-left: 10px;" @endif >
<div class="layui-col-md9">
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm layui-btn-disabled"
id="disable_upload_button">请选择附件类型再上传
</button>
......@@ -35,7 +35,8 @@
<div id="{{$name}}_file_div">
@foreach($attachment[$name] as $k=>$item)
<span class="single_file_div">
<a href="{{$item['url']}}" target="_blank" value="{{array_get($item,'file_name','未知文件名')}}">
<a href="{{$item['url']}}" target="_blank"
value="{{array_get($item,'file_name','未知文件名')}}">
{{array_get($item,'file_name','未知文件名')}}
</a>
<i class="layui-icon delete_file"
......
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