Commit d8f1a7d7 by 杨树贤

新增页面修改

parent 204f8e0b
...@@ -114,6 +114,12 @@ return [ ...@@ -114,6 +114,12 @@ return [
'SupplierType' => [ 'SupplierType' => [
1 => '正式', 1 => '正式',
2 => '临时', 2 => '临时',
3 => '待转正', ],
//TT(电汇)、支票、信用卡、其他
'SettlementType' => [
1 => 'TT(电汇)',
2 => '支票',
3 => '信用卡',
0 => '其他',
] ]
]; ];
\ No newline at end of file
<script> <script>
layui.use(['table', 'form', 'element', 'layer', 'Split', 'admin'], function () { layui.use(['table', 'form', 'element', 'layer', 'Split', 'admin','index'], function () {
let $ = layui.jquery; let $ = layui.jquery;
let Split = layui.Split; let Split = layui.Split;
// 水平分割,需要分割的元素(id)、默认大小(百分比)、最小值(单位px) // 水平分割,需要分割的元素(id)、默认大小(百分比)、最小值(单位px)
Split(['#s1', '#s2', '#s3', '#s4', '#s5', '#s6'], {sizes: [9, 12, 12, 12, 12, 43], minSize: 70}); Split(['#s1', '#s2', '#s3', '#s4', '#s5', '#s6'], {sizes: [9, 12, 12, 12, 12, 43], minSize: 70});
let table = layui.table; let table = layui.table;
let form = layui.form; let form = layui.form;
let index = layui.index;
let admin = layui.admin; let admin = layui.admin;
let initCondition = {source_type: 'all'}; let initCondition = {source_type: 'all'};
...@@ -228,15 +229,22 @@ ...@@ -228,15 +229,22 @@
//新增供应商弹窗 //新增供应商弹窗
$("#add_supplier").click(function () { $("#add_supplier").click(function () {
layer.open({ // layer.open({
type: 2, // type: 2,
content: '/supplier/AddSupplier?view=iframe', // content: '/supplier/AddSupplier?view=iframe',
area: ['1000px', '97%'], // area: ['1000px', '97%'],
// title: '新增供应商',
// offset: ['10px'],
// end: function () {
// table.reload('list');
// supplierStatistics();
// }
// });
index.openTab({
title: '新增供应商', title: '新增供应商',
offset: ['10px'], url: '/supplier/AddSupplier?view=iframe',
end: function () { end: function() {
table.reload('list'); // insTb.reload();
supplierStatistics();
} }
}); });
}) })
......
...@@ -12,18 +12,314 @@ ...@@ -12,18 +12,314 @@
line-height: 30px; line-height: 30px;
} }
/*.layui-form-label {*/
/* width: 150px;*/
/*}*/
/*.layui-input-block {*/
/* margin-left: 180px;*/
/*}*/
</style> </style>
<div class="layui-card"> <div class="layui-card">
{{Autograph()}} {{Autograph()}}
<div class="layui-card-body"> <div class="layui-card-body">
@include('web.supplier.SupplierBase') <style>
.fix-button {
height: 110px;
margin-top: 0;
margin-left: -30px;
padding: 10px 45px;
position: fixed;
bottom: 0;
background: white;
width: 100%;
z-index: 10;
}
</style>
<blockquote class="layui-elem-quote layui-text">
<b>基本信息</b>
</blockquote>
<form class="layui-form" action="">
<div class="layui-form-item">
<div class="layui-col-md5">
@inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'1',config('field.SupplierType'),['require'=>true]) !!}
</div>
<div class="layui-col-md7">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('purchase_uid','渠道开发员','',$userCodes,['required'=>true,'width'=>'150px']) !!}
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>供应商名称 : </label>
<div class="layui-input-block">
<input type="text" name="supplier_name" id="supplier_name"
placeholder="请输入供应商名称" class="layui-input" value="">
</div>
</div>
<div class="layui-col-md7">
<label class="layui-form-label">注册公司名 : </label>
<div class="layui-input-block">
<input type="text" name="register_company_name" id="register_company_name"
placeholder="请输入注册公司名,注册公司名必须同执照" class="layui-input" value="">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label">英文名称 : </label>
<div class="layui-input-block">
<input type="text" name="supplier_name_en" id="supplier_name_en"
placeholder="请输入供应商英文名称" class="layui-input" value="">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-row">
<div class="layui-col-md5">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('region','所在区域 : ','',
config('fixed.Region'),['required'=>true,'width'=>'150px']) !!}
</div>
<div class="layui-col-md7">
<div class="city-div" style="display: none">
<label class="layui-form-label">选择省市 : </label>
<div class="city-selector" id="city-selector"></div>
</div>
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>注册地址 :
</label>
<div class="layui-input-block">
<input type="text" name="supplier_address" id="supplier_address"
placeholder="请输入注册地址" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md7">
<label class="layui-form-label">发货地址 : </label>
<div class="layui-input-block">
<input type="text" name="shipping_address" id="shipping_address"
placeholder="请输入发货地址" class="layui-input"
value="">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md3">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('supplier_group','公司性质',!empty($supplier)?array_get($supplier,'supplier_group',null):'',
config('fixed.SupplierGroup'),['required'=>true]) !!}
</div>
<div class="layui-col-md3">
<label class="layui-form-label"><span class="require">*</span>法人代表 :
</label>
<div class="layui-input-block">
<input type="text" style="width: 150px" name="legal_representative"
id="legal_representative"
placeholder="请输入法人代表" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md6">
<label class="layui-form-label" style="width: 80px">成立时间 :
</label>
<div class="layui-input-block" style="width: 150px">
<input type="text" id="established_time" name="established_time"
placeholder="请输入成立时间"
class="layui-input"
autocomplete="off"
value="">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md3">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('currency','结算币种',
isset($supplier)?$supplier['currency']:'',config('fixed.Currency'),['required'=>true]) !!}
</div>
<div class="layui-col-md3">
<div class="layui-inline">
<label class="layui-form-label">到票时间 :
</label>
<div class="layui-input-block">
<input type="text" style="width: 170px" name="ticket_time" id="ticket_time"
placeholder="请输入到票时间" class="layui-input" value="">
</div>
</div>
</div>
<div class="layui-col-md6">
<label class="layui-form-label">3-5家客户 :
</label>
<div class="layui-input-block">
<input type="text" name="main_customers" id="main_customers"
placeholder="请输入3-5家客户" class="layui-input"
value="">
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">
<span class="require">*</span>
主营品牌</label>
<div class="layui-input-block">
<div id="brand_selector" class="layui-input-inline" style="width: 100%;">
</div>
<input type="hidden" name="main_brands" value=""
id="main_brands">
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label"><span class="require">*</span>合作类型</label>
<div class="layui-input-block">
<input type="hidden" name="stockup_type"
value="{{$supplier['stockup_type'] or ''}}">
@foreach(config('fixed.StockupType') as $k=>$type)
<input type="checkbox" name="stockup_type[{{$k}}]"
lay-skin="primary"
title="{{$type}}">
@endforeach
</div>
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">资信调查 : </label>
<div class="layui-input-block">
<textarea name="credit_investigation" placeholder="请输入资信调查" class="layui-textarea"></textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline" id="tax_number_div"
style="display: none;"
>
<label class="layui-form-label"><span class="require">*</span>公司税号</label>
<div class="layui-input-inline">
<input type="text" name="tax_number" placeholder="请输入公司税号" class="layui-input" value="">
</div>
</div>
</div>
@include('web.supplier.SupplierPayType')
<blockquote class="layui-elem-quote layui-text">
<b>联系人</b>
</blockquote>
<div class="layui-form-item">
<div class="layui-col-md5">
<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="">
</div>
</div>
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>职位</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_position" id="supplier_position"
placeholder="请输入职位" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md2">
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>邮箱</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_email" id="supplier_email"
placeholder="请输入邮箱" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>手机号</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_mobile" id="supplier_mobile"
placeholder="请输入手机号" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md2"></div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>座机</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_telephone" id="supplier_telephone"
placeholder="请输入座机" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md5">
<label class="layui-form-label">QQ</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_qq" id="supplier_qq"
placeholder="请输入QQ" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md2"></div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label">传真</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_fax" id="supplier_fax"
placeholder="请输入传真" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md5">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('can_check_uids','采购员','',
$userCodes,['required'=>true]) !!}
</div>
<div class="layui-col-md2"></div>
</div>
<div style="height: 100px"></div>
<div class="fix-button">
<div class="layui-row" style="width: 90%;">
<hr>
<div class="layui-col-md7">
<p>
<b>特别说明:</b>
</p>
<p>
1.在创建新的供应商前,请先查询该供应商是否已经存在。如果供应商已存在,则不允许新增。
</p>
<p>
2.附件上传支持小于20M的PDF/ZIP/JPG/PNG/BMP格式,每个类型最多支持上传一个文件
</p>
<P>
3.此处新增供应商基本信息以及配置跟进人,其他信息补全必须进入编辑页面
</P>
</div>
<div class="layui-col-md5" style="margin-top: 30px">
<div class="layui-row" style="text-align: right">
<button type="button" class="layui-btn layui-btn submit-loading" id="apply_audit_button"
lay-submit lay-filter="addAndApplySupplier">申请审核
</button>
<button type="button" class="layui-btn layui-btn submit-loading" lay-submit
lay-filter="addSupplier">确认
</button>
<button lay-filter="cancelAddSupplier"
type="button" lay-submit
class="layui-btn layui-btn-primary">取消
</button>
</div>
</div>
</div>
</div>
</form>
<hr/>
</div> </div>
</div> </div>
</div> @include('script.supplier.SupplierBaseScript')
\ No newline at end of file
<style>
.fix-button {
height: 110px;
margin-top: 0;
margin-left: -30px;
padding: 10px 45px;
position: fixed;
bottom: 0;
background: white;
width: 100%;
z-index: 10;
}
</style>
<blockquote class="layui-elem-quote layui-text">
<b>基本信息</b>
</blockquote>
<form class="layui-form" action="">
<div class="layui-form-item">
@inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'1',$supplierType,$option) !!}
</div>
<div class="layui-form-item">
<label class="layui-form-label"><span class="require">*</span>供应商名称 : </label>
<div class="layui-input-block">
<input type="text" name="supplier_name" id="supplier_name"
placeholder="请输入供应商名称" class="layui-input" value="">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">注册公司名 : </label>
<div class="layui-input-block">
<input type="text" name="register_company_name" id="register_company_name"
placeholder="请输入注册公司名" class="layui-input" value="">
</div>
</div>
<div style="margin-top: -15px;margin-left: 20px">
<div class="layui-form-mid layui-word-aux">注册公司名必须同执照</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">英文名称 : </label>
<div class="layui-input-block">
<input type="text" name="supplier_name_en" id="supplier_name_en"
placeholder="请输入供应商英文名称" class="layui-input" value="">
</div>
</div>
<div class="layui-form-item">
<div class="layui-row">
<div class="layui-col-md4">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('region','所在区域','',
config('fixed.Region'),['required'=>true,'width'=>'150px']) !!}
</div>
<div class="layui-col-md8">
<div class="city-div" style="display: none">
<label class="layui-form-label">选择省市 : </label>
<div class="city-selector" id="city-selector"></div>
</div>
</div>
<div class="layui-col-md12">
<label class="layui-form-label"><span class="require">*</span>注册地址 :
</label>
<div class="layui-input-block">
<input type="text" name="supplier_address" id="supplier_address"
placeholder="请输入注册地址" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md12">
<label class="layui-form-label">发货地址 : </label>
<div class="layui-input-block">
<input type="text" name="shipping_address" id="shipping_address"
placeholder="请输入发货地址" class="layui-input"
value="">
</div>
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-row">
<div class="layui-col-md4">
<label class="layui-form-label"><span class="require">*</span>法人代表 :
</label>
<div class="layui-input-block">
<input type="text" style="width: 150px" name="legal_representative" id="legal_representative"
placeholder="请输入法人代表" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md8">
<label class="layui-form-label" style="width: 80px">成立时间 :
</label>
<div class="layui-input-block" style="width: 150px">
<input type="text" id="established_time" name="established_time"
placeholder="请输入成立时间"
class="layui-input"
autocomplete="off"
value="">
</div>
</div>
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">资信调查 : </label>
<div class="layui-input-block">
<textarea name="credit_investigation" placeholder="请输入资信调查"
class="layui-textarea"></textarea>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">
<span class="require">*</span>
主营品牌</label>
<div class="layui-input-block" style="margin-top: 15px">
<div id="brand_selector" class="layui-input-inline" style="width: 100%;">
</div>
<input type="hidden" name="main_brands" value=""
id="main_brands">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">3-5家客户 :
</label>
<div class="layui-input-block">
<input type="text" name="main_customers" id="main_customers"
placeholder="请输入3-5家客户" class="layui-input"
value="">
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label"><span class="require">*</span>合作类型</label>
<div class="layui-input-block">
<input type="hidden" name="stockup_type"
value="{{$supplier['stockup_type'] or ''}}">
@foreach(config('fixed.StockupType') as $k=>$type)
<input type="checkbox" name="stockup_type[{{$k}}]"
lay-skin="primary"
title="{{$type}}">
@endforeach
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-row">
<div class="layui-col-md4">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('supplier_group','公司性质',!empty($supplier)?array_get($supplier,'supplier_group',null):'',
config('fixed.SupplierGroup'),['required'=>true]) !!}
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('currency','结算币种',
isset($supplier)?$supplier['currency']:'',config('fixed.Currency'),['required'=>true]) !!}
</div>
<div class="layui-inline" id="tax_number_div"
style="display: none;"
>
<label class="layui-form-label"><span class="require">*</span>公司税号</label>
<div class="layui-input-inline">
<input type="text" name="tax_number" placeholder="请输入公司税号" class="layui-input" value="">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">到票时间 :
</label>
<div class="layui-input-block">
<input type="text" style="width: 170px" name="ticket_time" id="ticket_time"
placeholder="请输入到票时间" class="layui-input" value="">
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label"><span class="require">*</span>账期详情</label>
<div class="layui-input-block">
<input type="text" name="billing_period_detail" style="width: 470px" placeholder="请输入账期详情"
class="layui-input" value="">
</div>
</div>
</div>
@include('web.supplier.SupplierFile')
<blockquote class="layui-elem-quote layui-text">
<b>跟进人</b>
</blockquote>
@inject('statusPresenter','App\Presenters\StatusPresenter')
<div class="layui-form-item">
{!! $statusPresenter->render('purchase_uid','渠道开发员','',$userCodes,['required'=>true,'width'=>'150px']) !!}
</div>
<blockquote class="layui-elem-quote layui-text">
<b>联系人</b>
</blockquote>
<div class="layui-form-item">
<div class="layui-col-md5">
<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="">
</div>
</div>
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>职位</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_position" id="supplier_position"
placeholder="请输入职位" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md2">
</div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>邮箱</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_email" id="supplier_email"
placeholder="请输入邮箱" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>手机号</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_mobile" id="supplier_mobile"
placeholder="请输入手机号" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md2"></div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label"><span class="require">*</span>座机</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_telephone" id="supplier_telephone"
placeholder="请输入座机" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md5">
<label class="layui-form-label">QQ</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_qq" id="supplier_qq"
placeholder="请输入QQ" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md2"></div>
</div>
<div class="layui-form-item">
<div class="layui-col-md5">
<label class="layui-form-label">传真</label>
<div class="layui-input-block block-42">
<input type="text" name="supplier_fax" id="supplier_fax"
placeholder="请输入传真" class="layui-input"
value="">
</div>
</div>
<div class="layui-col-md5">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('can_check_uids','采购员','',
$userCodes,['required'=>true]) !!}
</div>
<div class="layui-col-md2"></div>
</div>
@include('script.supplier.SupplierBaseScript')
<div style="height: 100px"></div>
<div class="fix-button">
<div class="layui-row" style="width: 90%;">
<hr>
<div class="layui-col-md8">
<p>
<b>特别说明:</b>
</p>
<p>
1.在创建新的供应商前,请先查询该供应商是否已经存在。如果供应商已存在,则不允许新增。
</p>
<p>
2.附件上传支持小于20M的PDF/ZIP/JPG/PNG/BMP格式,每个类型最多支持上传一个文件
</p>
<P>
3.此处新增供应商基本信息以及配置跟进人,其他信息补全必须进入编辑页面
</P>
</div>
<div class="layui-col-md4" style="margin-top: 30px">
<div class="layui-row" style="text-align: right">
<button type="button" class="layui-btn layui-btn submit-loading" id="apply_audit_button"
lay-submit lay-filter="addAndApplySupplier">申请审核
</button>
<button type="button" class="layui-btn layui-btn submit-loading" lay-submit
lay-filter="addSupplier">确认
</button>
<button lay-filter="cancelAddSupplier"
type="button" lay-submit
class="layui-btn layui-btn-primary">取消
</button>
</div>
</div>
</div>
</div>
</form>
...@@ -18,16 +18,20 @@ ...@@ -18,16 +18,20 @@
<form class="layui-form" action=""> <form class="layui-form" action="">
@endif @endif
<?php <?php
$supplierType = config('field.SupplierType');
$option = ['required' => true]; $option = ['required' => true];
//正式供应商不允许修改供应商类型了 //正式供应商不允许修改供应商类型了或者是竞调供应商is_type=1也不允许修改供应商
if (!empty($supplier) && $supplier['supplier_type'] == \App\Model\SupplierChannelModel::SUPPLIER_TYPE_OFFICIAL) { if ((!empty($supplier) && $supplier['supplier_type'] == \App\Model\SupplierChannelModel::SUPPLIER_TYPE_OFFICIAL) || (!empty($supplier) && $supplier['is_type'] == 1)) {
$option['disable'] = true; $option['disable'] = true;
$supplierType[3] = '待转正';
} }
?> ?>
<div class="layui-form-item"> <div class="layui-form-item">
@inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter') @inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter')
{!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'1',config('field.SupplierType'),$option) !!} {!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'1',$supplierType,$option) !!}
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<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"> <div class="layui-input-block">
...@@ -350,8 +354,8 @@ ...@@ -350,8 +354,8 @@
</div> </div>
<div class="layui-col-md4" style="margin-top: 30px"> <div class="layui-col-md4" style="margin-top: 30px">
<div class="layui-row" style="text-align: right"> <div class="layui-row" style="text-align: right">
<button type="button" class="layui-btn layui-btn submit-loading" id="apply_audit_button" lay-submit <button type="button" class="layui-btn layui-btn submit-loading" id="apply_audit_button"
lay-filter="addAndApplySupplier">申请审核 lay-submit lay-filter="addAndApplySupplier">申请审核
</button> </button>
<button type="button" class="layui-btn layui-btn submit-loading" lay-submit <button type="button" class="layui-btn layui-btn submit-loading" lay-submit
lay-filter="addSupplier">确认 lay-filter="addSupplier">确认
......
...@@ -9,20 +9,28 @@ ...@@ -9,20 +9,28 @@
</script> </script>
@endif @endif
<div id="pay_type_div_list"> <div id="pay_type_div_list">
<div style="margin-bottom: 10px;margin-top: 5px"> @if (!empty($supplier))
<button type="button" class="layui-btn layui-btn-sm add_pay_type">新增付款方式</button> <div style="margin-bottom: 10px;margin-top: 5px">
</div> <button type="button" class="layui-btn layui-btn-sm add_pay_type">新增付款方式</button>
</div>
@endif
@if (!empty($supplier['pay_type_list'])) @if (!empty($supplier['pay_type_list']))
@foreach($supplier['pay_type_list'] as $payType) @foreach($supplier['pay_type_list'] as $payType)
<div class="layui-row pay_type_div" style="margin-bottom: 5px;"> <div class="layui-row pay_type_div" style="margin-bottom: 5px;">
<div class="layui-col-md3"> <div class="layui-col-md3">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('SettlementType','结算方式 : ',
'',config('field.SettlementType'),['required'=>true]) !!}
</div>
<div class="layui-col-md3">
<div class="layui-inline"> <div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter') @inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('pay_type[]','付款方式 : ', {!! $statusPresenter->render('pay_type[]','付款方式 : ',
$payType['pay_type'],config('fixed.SupplierPayType'),['required'=>false]) !!} $payType['pay_type'],config('fixed.SupplierPayType'),['required'=>true]) !!}
</div> </div>
</div> </div>
<div class="layui-col-md10" style="width:500px;margin-bottom: 3px;"> <div class="layui-col-md6" style="width:500px;margin-bottom: 3px;">
<div class="layui-row"> <div class="layui-row">
@if ($payType['pay_type']==1) @if ($payType['pay_type']==1)
<div class="pay_type_1_div"> <div class="pay_type_1_div">
...@@ -41,11 +49,13 @@ ...@@ -41,11 +49,13 @@
<option value="60" <option value="60"
@if($payType['pay_type_value']==60) @if($payType['pay_type_value']==60)
selected='selected' selected='selected'
@endif>60</option> @endif>60
</option>
<option value="90" <option value="90"
@if($payType['pay_type_value']==90) @if($payType['pay_type_value']==90)
selected='selected' selected='selected'
@endif>90</option> @endif>90
</option>
</select> </select>
</div> </div>
&nbsp天 &nbsp天
...@@ -83,72 +93,72 @@ ...@@ -83,72 +93,72 @@
</div> </div>
@endif @endif
@if ($payType['pay_type']==3) {{-- @if ($payType['pay_type']==3)--}}
<div class="pay_type_3_div"> {{-- <div class="pay_type_3_div">--}}
<div class="layui-col-md3"> {{-- <div class="layui-col-md3">--}}
<label class="layui-form-label"> {{-- <label class="layui-form-label">--}}
<span class="require">*</span>首款要求 : {{-- <span class="require">*</span>首款要求 :--}}
</label> {{-- </label>--}}
</div> {{-- </div>--}}
<div class="layui-col-md3" style="margin-left: -15px"> {{-- <div class="layui-col-md3" style="margin-left: -15px">--}}
<div class="layui-input-inline" style="width: 100px"> {{-- <div class="layui-input-inline" style="width: 100px">--}}
<select lay-filter="pay_type_3_type"> {{-- <select lay-filter="pay_type_3_type">--}}
<option value="首款比例" {{-- <option value="首款比例"--}}
@if (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'%')!==false) {{-- @if (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'%')!==false)--}}
selected='selected' {{-- selected='selected'--}}
@endif>首款比例 {{-- @endif>首款比例--}}
</option> {{-- </option>--}}
<option value="首款金额" {{-- <option value="首款金额"--}}
@if (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'RMB')!==false) {{-- @if (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'RMB')!==false)--}}
selected='selected' {{-- selected='selected'--}}
@endif>首款金额 {{-- @endif>首款金额--}}
</option> {{-- </option>--}}
</select> {{-- </select>--}}
</div> {{-- </div>--}}
</div> {{-- </div>--}}
<div class="layui-col-md6"> {{-- <div class="layui-col-md6">--}}
<div class="layui-input-inline" style="width: 100px;margin-left: -20px;"> {{-- <div class="layui-input-inline" style="width: 100px;margin-left: -20px;">--}}
<input class="layui-input valueInput" type="text" name="pay_type_value[]" {{-- <input class="layui-input valueInput" type="text" name="pay_type_value[]"--}}
value="{{$payType['pay_type_value']}}"> {{-- value="{{$payType['pay_type_value']}}">--}}
</div> {{-- </div>--}}
&nbsp {{-- &nbsp--}}
@if (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'%')!==false) {{-- @if (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'%')!==false)--}}
<span class="temp">%</span> {{-- <span class="temp">%</span>--}}
<input type="hidden" class="valueInput" name="pay_type_extra[]" value="%"> {{-- <input type="hidden" class="valueInput" name="pay_type_extra[]" value="%">--}}
@elseif (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'RMB')!==false) {{-- @elseif (!empty($payType['pay_type_extra'])&&strpos($payType['pay_type_extra'],'RMB')!==false)--}}
<span class="temp">RMB</span> {{-- <span class="temp">RMB</span>--}}
<input type="hidden" class="valueInput" name="pay_type_extra[]" value="RMB"> {{-- <input type="hidden" class="valueInput" name="pay_type_extra[]" value="RMB">--}}
@else {{-- @else--}}
<span class="temp">%</span> {{-- <span class="temp">%</span>--}}
<input type="hidden" class="valueInput" name="pay_type_extra[]" {{-- <input type="hidden" class="valueInput" name="pay_type_extra[]"--}}
value="%"> {{-- value="%">--}}
@endif {{-- @endif--}}
</div> {{-- </div>--}}
</div> {{-- </div>--}}
@else {{-- @else--}}
<div class="pay_type_3_div" style="display: none"> {{-- <div class="pay_type_3_div" style="display: none">--}}
<div class="layui-col-md3"> {{-- <div class="layui-col-md3">--}}
<label class="layui-form-label"> {{-- <label class="layui-form-label">--}}
<span class="require">*</span>首款要求 : {{-- <span class="require">*</span>首款要求 :--}}
</label> {{-- </label>--}}
</div> {{-- </div>--}}
<div class="layui-col-md3" style="margin-left: -15px"> {{-- <div class="layui-col-md3" style="margin-left: -15px">--}}
<div class="layui-input-inline" style="width: 100px"> {{-- <div class="layui-input-inline" style="width: 100px">--}}
<select lay-filter="pay_type_3_type"> {{-- <select lay-filter="pay_type_3_type">--}}
<option value="首款比例">首款比例</option> {{-- <option value="首款比例">首款比例</option>--}}
<option value="首款金额">首款金额</option> {{-- <option value="首款金额">首款金额</option>--}}
</select> {{-- </select>--}}
</div> {{-- </div>--}}
</div> {{-- </div>--}}
<div class="layui-col-md6"> {{-- <div class="layui-col-md6">--}}
<div class="layui-input-inline" style="width: 100px;margin-left: -20px;"> {{-- <div class="layui-input-inline" style="width: 100px;margin-left: -20px;">--}}
<input class="layui-input valueInput" type="text" name=""> {{-- <input class="layui-input valueInput" type="text" name="">--}}
</div> {{-- </div>--}}
&nbsp<span class="temp">%</span> {{-- &nbsp<span class="temp">%</span>--}}
<input type="hidden" class="valueInput" name="" value="%"> {{-- <input type="hidden" class="valueInput" name="" value="%">--}}
</div> {{-- </div>--}}
</div> {{-- </div>--}}
@endif {{-- @endif--}}
</div> </div>
</div> </div>
<button type="button" class="layui-btn layui-btn-danger layui-btn-sm delete_pay_type">删除</button> <button type="button" class="layui-btn layui-btn-danger layui-btn-sm delete_pay_type">删除</button>
...@@ -160,36 +170,40 @@ ...@@ -160,36 +170,40 @@
<template id="pay_type_template"> <template id="pay_type_template">
<div class="layui-row pay_type_div" style="margin-bottom: 5px;"> <div class="layui-row pay_type_div" style="margin-bottom: 5px;">
<div class="layui-col-md3"> <div class="layui-col-md3">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('SettlementType','结算方式 : ',
'',config('field.SettlementType'),['required'=>true]) !!}
</div>
<div class="layui-col-md3">
<div class="layui-inline"> <div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter') @inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('pay_type[]','付款方式 : ', {!! $statusPresenter->render('pay_type[]','付款方式 : ',
isset($supplier['pay_type[]'])?$supplier['pay_type[]']:'',config('fixed.SupplierPayType'),['required'=>false]) !!} isset($supplier['pay_type[]'])?$supplier['pay_type[]']:'',config('fixed.SupplierPayType'),['required'=>true]) !!}
</div> </div>
</div> </div>
<input type="hidden"> <div class="layui-col-md6" style="width:500px;margin-bottom: 3px;">
<div class="layui-col-md10" style="width:500px;margin-bottom: 3px;">
<div class="layui-row"> <div class="layui-row">
<div class="pay_type_3_div" style="display: none"> <div class="pay_type_3_div" style="display: none">
<div class="layui-col-md3"> {{-- <div class="layui-col-md3">--}}
<label class="layui-form-label"> {{-- <label class="layui-form-label">--}}
<span class="require">*</span>首款要求 : {{-- <span class="require">*</span>首款要求 :--}}
</label> {{-- </label>--}}
</div> {{-- </div>--}}
<div class="layui-col-md3" style="margin-left: -15px"> {{-- <div class="layui-col-md3" style="margin-left: -15px">--}}
<div class="layui-input-inline" style="width: 100px"> {{-- <div class="layui-input-inline" style="width: 100px">--}}
<select lay-filter="pay_type_3_type"> {{-- <select lay-filter="pay_type_3_type">--}}
<option value="首款比例">首款比例</option> {{-- <option value="首款比例">首款比例</option>--}}
<option value="首款金额">首款金额</option> {{-- <option value="首款金额">首款金额</option>--}}
</select> {{-- </select>--}}
</div> {{-- </div>--}}
</div> {{-- </div>--}}
<div class="layui-col-md6"> {{-- <div class="layui-col-md6">--}}
<div class="layui-input-inline" style="width: 100px;margin-left: -20px;"> {{-- <div class="layui-input-inline" style="width: 100px;margin-left: -20px;">--}}
<input class="layui-input valueInput" type="text" name="pay_type_value[]"> {{-- <input class="layui-input valueInput" type="text" name="pay_type_value[]">--}}
</div> {{-- </div>--}}
&nbsp<span class="temp">%</span> {{-- &nbsp<span class="temp">%</span>--}}
<input type="hidden" class="valueInput" name="pay_type_extra[]" value="%"> {{-- <input type="hidden" class="valueInput" name="pay_type_extra[]" value="%">--}}
</div> {{-- </div>--}}
</div> </div>
<div class="pay_type_1_div" style="display: none"> <div class="pay_type_1_div" style="display: none">
<div class="layui-row" style="padding-left:80px"> <div class="layui-row" style="padding-left:80px">
...@@ -213,7 +227,9 @@ ...@@ -213,7 +227,9 @@
</div> </div>
</div> </div>
</div> </div>
<button type="button" class="layui-btn layui-btn-danger layui-btn-sm delete_pay_type">删除</button> @if (!empty($supplier))
<button type="button" class="layui-btn layui-btn-danger layui-btn-sm delete_pay_type">删除</button>
@endif
</div> </div>
</template> </template>
......
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