<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> @if($operate=='add') <form class="layui-form" action="" lay-filter="supplier_form"> @endif <?php $supplierType = config('field.SupplierType'); $option = ['required' => true]; //竞调供应商is_type=1也不允许修改供应商类型 if ((!empty($supplier) && $supplier['is_type'] == 1)) { $option['disable'] = true; } //临时类型的供应商,不显示待转正选项 if ($supplier['supplier_type'] == 2 || $supplier['is_type'] == 0) { unset($supplierType[3]); } ?> <div class="layui-form-item"> <div class="layui-col-md3"> @inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter') {!! $singleSelectPresenter->render('supplier_type','供应商类别',!empty($supplier)?array_get($supplier,'supplier_type',0):'1',$supplierType,$option) !!} </div> <div class="layui-col-md3"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('region','所在区域 : ',$supplier['region'], config('fixed.Region'),['required'=>true,'width'=>'150px']) !!} </div> <div class="layui-col-md6"> <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 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 @if ($supplier) layui-disabled @endif" value="{{$supplier['supplier_name'] or ''}}" @if ($supplier) disabled @endif> <div id='supplier_check_tip' style='margin-top: 5px'> <p style='color: red;'></p> </div> </div> </div> <div class="layui-col-md5"> <div class="layui-block" id="tax_number_div" @if (!empty($supplier)&&$supplier['region']!=2) style="display: none" @endif > <label class="layui-form-label"><span id="tax_number_required_span" class="require">*</span>公司税号</label> <div class="layui-input-block"> <input type="text" name="tax_number" id="tax_number" placeholder="选择所在区域才允许输入公司税号,海外供应商没有税号可以不填" class="layui-input layui-disabled" disabled value="{{$supplier['tax_number'] or ''}}"> </div> <div id='supplier_check_tip' style='margin-top: 5px'> <p style='color: red;'></p> </div> </div> </div> <div class="layui-col-md2" style="padding-left: 40px"> <button type="button" class="layui-btn layui-btn-sm" id="recheck_company_info">重新查验公司信息</button> </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="register_company_name" id="register_company_name" placeholder="请输入注册公司名,注册公司名必须同执照" class="layui-input" value="{{$supplier['register_company_name']}}"> </div> </div> <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="{{$supplier['supplier_name_en']}}"> </div> </div> </div> <div class="layui-form-item"> <div class="layui-row"> <div class="layui-col-md3"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('purchase_uid','渠道开发员 : ',$supplier['purchase_uid'],$userCodes,['required'=>true,'width'=>'150px']) !!} </div> <div class="layui-col-md3"> <label class="layui-form-label"><span class="require">*</span>注册资金(万): </label> <div class="layui-input-block" style="width: 150px"> <input type="text" name="registered_capital" id="registered_capital" placeholder="单位(万),至少50万" class="layui-input" value="{{$supplier['registered_capital']}}"> </div> </div> <div class="layui-col-md3"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('is_business_abnormal','是否历史经营异常 : ',$supplier['is_business_abnormal'], [-1=>'否',1=>'是'],['required'=>true,'label_width'=>'120px']) !!} </div> <div class="layui-col-md3"> <label class="layui-form-label"><span class="require">*</span>公司电话 : </label> <div class="layui-input-block" style="width: 150px"> <input type="text" name="phone" id="phone" placeholder="请输入公司电话" class="layui-input" value="{{$supplier['phone']}}"> </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="{{$supplier['supplier_address'] or ''}}"> </div> </div> @if($operate=='add') <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="{{$address['shipping_address'] or ''}}"> </div> </div> @endif </div> <div class="layui-form-item"> <div class="layui-row"> <div class="layui-col-md3"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('supplier_group','公司性质',!empty($supplier)?array_get($supplier,'supplier_group',0):'', 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="{{$supplier['legal_representative'] or ''}}"> </div> </div> <div class="layui-col-md3"> @inject('singleSelectPresenter','App\Presenters\SingleSelectPresenter') {!! $singleSelectPresenter->render('has_legal_ID_card','法人身份证 :',$supplier['has_legal_ID_card'],[1=>'有',-1=>'无']) !!} </div> <div class="layui-col-md3"> <label class="layui-form-label" style="width: 80px"><span class="require">*</span>成立时间 : </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="{{$supplier['established_time'] or ''}}"> </div> </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="{{$supplier['ticket_time'] or ''}}"> </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="{{$supplier['main_customers'] or ''}}"> </div> </div> </div> <div class="layui-form-item"> <div class="layui-col-md12"> <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" value="{{$supplier['main_brands'] or ''}}"> </div> <a style="color: #009688;" id="batchAddMainBrands">+批量增加主营品牌</a> <div id="batchAddMainBrandsDiv" style="padding-left: 30px;padding-top: 30px;padding-right: 30px;display: none"> <div class="layui-col-md12"> <textarea rows="7" placeholder="标准品牌名称,多个用英文逗号隔开" class="layui-textarea" id="batchAddMainBrandsTextarea"></textarea> <blockquote class="layui-elem-quote" id="batchAddMainBrandsBlockQuote"></blockquote> <span style="color: red" id="invalid_${name}_name_list"></span> </div> <div class="layui-col-md12"> <button class="layui-btn layui-btn-sm" type="button" id="confirmBatchAddMainBrands">验证并且添加</button> <button class="layui-btn layui-btn-sm layui-btn-primary" type="button" id="closeBatchAddMainBrands">关闭</button> </div> </div> </div> </div> {{--选择“混合分销商”时,在主营品牌下面新增一栏“代理品牌”;代理品牌取值同主营品牌一样--}} <div class="layui-form-item" id="agency_brands_div" style=" @if(!empty($supplier)&&$supplier['supplier_group']!=\App\Model\SupplierChannelModel::SUPPLIER_GROUP_MIX) display:none; @endif "> <label class="layui-form-label"> <span class="require">*</span> 代理品牌</label> <div class="layui-input-block" style="margin-top: 15px"> <div id="agency_brand_selector" class="layui-input-inline" style="width: 100%;"> </div> <input type="hidden" name="agency_brands" value="{{$supplier['agency_brands'] or ''}}" id="agency_brands"> </div> </div> <div class="layui-form-item"> <div class="layui-col-md6"> <div class="layui-inline"> <label class="layui-form-label"><span class="require">*</span>合作类型</label> <div class="layui-input-block"> @foreach(config('fixed.StockupType') as $k=>$type) <input type="checkbox" lay-filter="stockup_type_filter" name="stockup_type[{{$k}}]" lay-skin="primary" @if(!empty($supplier['stockup_type_data'])&&in_array($k,$supplier['stockup_type_data'])) checked @endif title="{{$type}}"> @endforeach </div> </div> </div> <div class="layui-col-md6"> <div class="layui-inline"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('purchase_type','代购类型 : ',!empty($supplier)?$supplier['purchase_type']:'',config('field.PurchaseType')) !!} </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">{{$supplier['credit_investigation'] or ''}}</textarea> </div> </div> @include('web.supplier.SupplierPayType') <div @if($operate!='add' && checkPerm('UpdateSupplierTags')) @else style="display: none" @endif> <blockquote class="layui-elem-quote layui-text"> <b>供应商标签 : </b> </blockquote> <div class="layui-form-item"> <div class="layui-col-md3"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('level','等级',!empty($supplier)?$supplier['level']:'',['A'=>'A','B'=>'B','C'=>'C','D'=>'D'],['width'=>'150px']) !!} </div> <div class="layui-col-md3"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('has_certification','认证',!empty($supplier)?$supplier['has_certification']:'',[1=>'认证',-1=>'非认证'],['width'=>'150px']) !!} </div> <div class="layui-col-md6"> </div> </div> <div class="layui-form-item"> <label class="layui-form-label"> 系统标签 : </label> <div class="layui-input-block" style="margin-top: 15px"> <div id="system_tags_selector" class="layui-input-inline" style="width: 100%;"> </div> <input type="hidden" name="system_tags" value="{{$supplier['system_tags'] or ''}}" id="system_tags"> </div> </div> <div class="layui-form-item"> <label class="layui-form-label"> 自定义标签 : </label> <div class="layui-input-block" style="margin-top: 15px"> <input name="customer_tags" id="customer_tags" value="{{$supplier['customer_tags'] or ''}}"> </div> </div> </div> @include('script.supplier.SupplierBaseScript')