Commit 2231ac1c by 杨树贤

筛选

parent adbf7650
...@@ -60,8 +60,8 @@ class SupplierFilter ...@@ -60,8 +60,8 @@ class SupplierFilter
if (!empty($map['purchase_uid'])) { if (!empty($map['purchase_uid'])) {
$query->where('purchase_uid', $map['purchase_uid']); $query->where('purchase_uid', $map['purchase_uid']);
} }
if (!empty($map['uploaded_sku'])) { if (!empty($map['has_uploaded_sku'])) {
$query->where('uploaded_sku', $map['uploaded_sku']); $query->where('uploaded_sku', $map['has_uploaded_sku']);
} }
if (!empty($map['channel_uid'])) { if (!empty($map['channel_uid'])) {
$query->where('channel_uid', 'like', "%{$map['channel_uid']}%"); $query->where('channel_uid', 'like', "%{$map['channel_uid']}%");
......
...@@ -62,6 +62,17 @@ ...@@ -62,6 +62,17 @@
$('.hide_filter_type').show(); $('.hide_filter_type').show();
}); });
$('#show_filter_row2').click(function () {
let isHidden = $('#filter_row2').is(':hidden');
if (isHidden) {
$('#filter_row2').show();
$('#show_filter_row2').text('隐藏');
} else {
$('#filter_row2').hide();
$('#show_filter_row2').text('展开');
}
});
//这个是页面点击刷新方法,隐藏起来是为了页面切换回这个列表的时候触发的 //这个是页面点击刷新方法,隐藏起来是为了页面切换回这个列表的时候触发的
$('#refreshWindow').click(function () { $('#refreshWindow').click(function () {
//判断当前是否有layui弹窗窗口,有的话不刷新 //判断当前是否有layui弹窗窗口,有的话不刷新
......
...@@ -17,113 +17,113 @@ ...@@ -17,113 +17,113 @@
</div> </div>
</div> </div>
</div> </div>
{{-- <div class="split-item" id="s2" style="text-align: center">--}} {{-- <div class="split-item" id="s2" style="text-align: center">--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="need_review" data-value="-1">--}} {{-- <a class="main_filter" id="need_review" data-value="-1">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @if(checkPerm('SupplierPendingList'))--}} {{-- @if(checkPerm('SupplierPendingList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="pending" data-value="0">--}} {{-- <a class="main_filter" id="pending" data-value="0">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierInReviewList'))--}} {{-- @if(checkPerm('SupplierInReviewList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="in_review" data-value="1">--}} {{-- <a class="main_filter" id="in_review" data-value="1">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierRejectList'))--}} {{-- @if(checkPerm('SupplierRejectList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="rejected" data-value="3">--}} {{-- <a class="main_filter" id="rejected" data-value="3">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierPassedList'))--}} {{-- @if(checkPerm('SupplierPassedList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="passed" data-value="2">--}} {{-- <a class="main_filter" id="passed" data-value="2">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- </div>--}} {{-- </div>--}}
{{-- <div class="split-item" id="s3" style="text-align: center">--}} {{-- <div class="split-item" id="s3" style="text-align: center">--}}
{{-- @if(checkPerm('SupplierNoPurchaseUidList'))--}} {{-- @if(checkPerm('SupplierNoPurchaseUidList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a title="非禁用状态的渠道开发员为空的供应商" class="main_filter" id="no_purchase_uid">--}} {{-- <a title="非禁用状态的渠道开发员为空的供应商" class="main_filter" id="no_purchase_uid">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierNoChannelUidList'))--}} {{-- @if(checkPerm('SupplierNoChannelUidList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a title="采购员为空的供应商" class="main_filter" id="no_channel_uid">--}} {{-- <a title="采购员为空的供应商" class="main_filter" id="no_channel_uid">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierInvalidChannelUidList'))--}} {{-- @if(checkPerm('SupplierInvalidChannelUidList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a title="非禁止交易状态联系人绑定的采购员姓名不在组织架构中(采购员离职)的供应商"--}} {{-- <a title="非禁止交易状态联系人绑定的采购员姓名不在组织架构中(采购员离职)的供应商"--}}
{{-- class="main_filter"--}} {{-- class="main_filter"--}}
{{-- id="invalid_channel_uid">--}} {{-- id="invalid_channel_uid">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierInvalidPurchaseUidList'))--}} {{-- @if(checkPerm('SupplierInvalidPurchaseUidList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a title="非禁止交易状态联系人绑定的渠道开发员姓名不在组织架构中(渠道开发员离职)的供应商"--}} {{-- <a title="非禁止交易状态联系人绑定的渠道开发员姓名不在组织架构中(渠道开发员离职)的供应商"--}}
{{-- class="main_filter"--}} {{-- class="main_filter"--}}
{{-- id="invalid_purchase_uid">--}} {{-- id="invalid_purchase_uid">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a title="联系人中存在非必填字段未填写" class="main_filter"--}} {{-- <a title="联系人中存在非必填字段未填写" class="main_filter"--}}
{{-- id="contact_no_complete">--}} {{-- id="contact_no_complete">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- <div class="split-item" id="s4" style="text-align: center">--}} {{-- <div class="split-item" id="s4" style="text-align: center">--}}
{{-- @if(checkPerm('SupplierToFollowUpList'))--}} {{-- @if(checkPerm('SupplierToFollowUpList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a title="非禁止交易状态的供应商重新分配渠道员,且必填信息不完整;或者禁用状态的供应商重新分配渠道员"--}} {{-- <a title="非禁止交易状态的供应商重新分配渠道员,且必填信息不完整;或者禁用状态的供应商重新分配渠道员"--}}
{{-- class="main_filter"--}} {{-- class="main_filter"--}}
{{-- id="to_follow_up">--}} {{-- id="to_follow_up">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierNoSkuList'))--}} {{-- @if(checkPerm('SupplierNoSkuList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="no_sku">--}} {{-- <a class="main_filter" id="no_sku">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a title="采购员全离职" class="main_filter" id="all_channel_user_resigned">--}} {{-- <a title="采购员全离职" class="main_filter" id="all_channel_user_resigned">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- <div class="split-item" id="s5" style="text-align: center">--}} {{-- <div class="split-item" id="s5" style="text-align: center">--}}
{{-- @if(checkPerm('SupplierBlockList'))--}} {{-- @if(checkPerm('SupplierBlockList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="block" data-value="-3">--}} {{-- <a class="main_filter" id="block" data-value="-3">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- @if(checkPerm('SupplierDisableList'))--}} {{-- @if(checkPerm('SupplierDisableList'))--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" id="disable" data-value="-2">--}} {{-- <a class="main_filter" id="disable" data-value="-2">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- @endif--}} {{-- @endif--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" title="历史检测异常" id="history_abnormal">--}} {{-- <a class="main_filter" title="历史检测异常" id="history_abnormal">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- <div class="layui-row">--}} {{-- <div class="layui-row">--}}
{{-- <a class="main_filter" title="系统标签中贴有客户指定的供应商" id="has_supplier_tag">--}} {{-- <a class="main_filter" title="系统标签中贴有客户指定的供应商" id="has_supplier_tag">--}}
{{-- </a>--}} {{-- </a>--}}
{{-- </div>--}} {{-- </div>--}}
{{-- </div>--}} {{-- </div>--}}
<div class="split-item" id="s6" style="text-align: center"> <div class="split-item" id="s6" style="text-align: center">
<div class="layui-row"> <div class="layui-row">
<a class="main_filter" title="战略供应商" id="level_a"> <a class="main_filter" title="战略供应商" id="level_a">
...@@ -221,15 +221,19 @@ ...@@ -221,15 +221,19 @@
$routerName = explode('/', request()->path())[1]; $routerName = explode('/', request()->path())[1];
?> ?>
<div class="layui-row"> <div class="layui-row">
<div class="layui-row">
<div class="layui-inline"> <div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter') @inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['supplier_group'=>'供应商性质','company_nature'=>'公司实际性质'], {!! $multiTransformableSelectPresenter->render(['supplier_group'=>'供应商性质'],
['supplier_group'=>config('fixed.SupplierGroup'),'company_nature'=>config('field.CompanyNature')]) !!} ['supplier_group'=>config('fixed.SupplierGroup')]) !!}
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
@inject('transformableInputPresenter','App\Presenters\Filter\TransformableInputPresenter') @inject('transformableInputPresenter','App\Presenters\Filter\TransformableInputPresenter')
{!! $transformableInputPresenter->render(['supplier_name'=>'供应商名称','supplier_code'=>'供应商编码','group_code'=>'集团编码','supplier_id'=>'供应商ID']) !!} {!! $transformableInputPresenter->render(['supplier_name'=>'供应商名称']) !!}
</div>
<div class="layui-inline">
@inject('transformableInputPresenter','App\Presenters\Filter\TransformableInputPresenter')
{!! $transformableInputPresenter->render(['supplier_code'=>'供应商编码']) !!}
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter') @inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
...@@ -239,16 +243,74 @@ ...@@ -239,16 +243,74 @@
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter') @inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
{!! $multiSelectorPresenter->render('stockup_type','合作类型','',$stockupTypeData) !!} {!! $multiSelectorPresenter->render('stockup_type','合作类型','',$stockupTypeData) !!}
</div> </div>
</div>
<div class="layui-row">
<div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['has_sku'=>'SKU上传'],
['has_sku'=>[1=>'是',-1=>'否']]) !!}
</div>
<div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['yunxin_channel_uid' => '线上采购员'],
['yunxin_channel_uid' => $userCodes]) !!}
</div>
<div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['source' => 'SKU上传方式',],
['source'=>config('field.SkuSource')]) !!}
</div>
<div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('purchase_type','代购类型','',config('field.PurchaseType')) !!}
</div>
<div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['has_uploaded_sku'=>'历史SKU合作'],
['has_uploaded_sku'=>[1=>'是',-1=>'否']]) !!}
</div>
<button class="layui-btn layui-btn-sm" type="button" id="show_filter_row2">展开</button>
</div>
</div>
<div class="layui-row" id="filter_row2" style="display: none">
<div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['company_nature'=>'公司实际性质'],
['company_nature'=>config('field.CompanyNature')]) !!}
</div>
<div class="layui-inline">
@inject('transformableInputPresenter','App\Presenters\Filter\TransformableInputPresenter')
{!! $transformableInputPresenter->render(['supplier_code'=>'供应商编码']) !!}
</div>
<div class="layui-inline">
@inject('transformableInputPresenter','App\Presenters\Filter\TransformableInputPresenter')
{!! $transformableInputPresenter->render(['group_code'=>'集团编码']) !!}
</div>
<div class="layui-inline">
@inject('transformableInputPresenter','App\Presenters\Filter\TransformableInputPresenter')
{!! $transformableInputPresenter->render(['supplier_id'=>'供应商ID']) !!}
</div>
<div class="layui-inline"> <div class="layui-inline">
@inject('transformableSelectPresenter','App\Presenters\Filter\TransformableSelectPresenter') @inject('transformableSelectPresenter','App\Presenters\Filter\TransformableSelectPresenter')
{!! $transformableSelectPresenter->render(['channel_uid'=>'采购员','purchase_uid'=>'开发员','create_uid'=>'创建人'],$userCodes) !!} {!! $transformableSelectPresenter->render(['channel_uid'=>'采购员'],$userCodes) !!}
</div> </div>
<div class="layui-inline">
@inject('transformableSelectPresenter','App\Presenters\Filter\TransformableSelectPresenter')
{!! $transformableSelectPresenter->render(['purchase_uid'=>'开发员'],$userCodes) !!}
</div>
<div class="layui-inline">
@inject('transformableSelectPresenter','App\Presenters\Filter\TransformableSelectPresenter')
{!! $transformableSelectPresenter->render(['create_uid'=>'创建人'],$userCodes) !!}
</div> </div>
<div class="layui-row">
<div class="layui-inline"> <div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter') @inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['has_sku'=>'SKU上传','sku_tag'=>'SKU标准','sku_mode'=>'SKU模式','uploaded_sku' => '历史SKU合作','outside_contact_type' => 'SKU上传方式','yunxin_channel_uid' => '线上采购员'], {!! $multiTransformableSelectPresenter->render(['sku_tag'=>'SKU标准'],
['has_sku'=>[1=>'是',-1=>'否'], 'sku_tag'=>config('field.SkuTag'),'sku_mode'=>config('field.SkuMode'),'uploaded_sku'=>[1=>'是',-1=>'否'],'outside_contact_type'=>config('field.OutsideContactType'),'yunxin_channel_uid' => $userCodes]) !!} ['sku_tag'=>config('field.SkuTag')]) !!}
</div>
<div class="layui-inline">
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['sku_mode'=>'SKU模式'],
['sku_mode'=>config('field.SkuMode')]) !!}
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter') @inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
...@@ -263,18 +325,14 @@ ...@@ -263,18 +325,14 @@
{!! $multiTransformableSelectPresenter->render(['has_cooperation_agreement'=>'平台合作协议'], {!! $multiTransformableSelectPresenter->render(['has_cooperation_agreement'=>'平台合作协议'],
['has_cooperation_agreement'=>[1=>'是',-1=>'否']]) !!} ['has_cooperation_agreement'=>[1=>'是',-1=>'否']]) !!}
</div> </div>
<div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('purchase_type','代购类型','',config('field.PurchaseType')) !!}
</div>
</div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-inline" style="width: 600px"> <div class="layui-inline" style="width: 600px">
@inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter') @inject('transformableTimeIntervalPresenter','App\Presenters\Filter\TransformableTimeIntervalPresenter')
{!! $transformableTimeIntervalPresenter->render(['update_time'=>'更新时间','create_time'=>'创建时间','sku_create_time' => '首次上传sku时间','sku_update_time'=> '最新上传sku时间']) !!} {!! $transformableTimeIntervalPresenter->render(['update_time'=>'更新时间','create_time'=>'创建时间','sku_create_time' => '首次上传sku时间','sku_update_time'=> '最新上传sku时间']) !!}
</div> </div>
</div> </div>
</div>
<div class="layui-row" style="margin-top:10px;margin-bottom: 10px;margin-left: 20px;"> <div class="layui-row" style="margin-top:10px;margin-bottom: 10px;margin-left: 20px;">
<button class="layui-btn layui-btn-sm layui-btn load" id="getSupplierListButton" lay-submit="" <button class="layui-btn layui-btn-sm layui-btn load" id="getSupplierListButton" lay-submit=""
......
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