Commit 4b5f88eb by 杨树贤

账期日期选择

parent c3643f04
......@@ -58,7 +58,7 @@ class SupplierFilter
$query->where('create_uid', $adminId);
}
if ((isset($map['status']) && $map['status'] === "0") || !empty($map['status'])) {
$query->whereIn('status', explode(',',$map['status']));
$query->whereIn('status', explode(',', $map['status']));
}
if (!empty($map['is_type'])) {
......@@ -300,6 +300,9 @@ class SupplierFilter
break;
case "level_a":
$query->where('level', 'A');
break;
case "pay_type_term":
$query->where('pay_type', 1);
}
return $query;
}
......
......@@ -55,6 +55,8 @@ class SupplierStatisticsService
//历史检测异常
$historyAbnormal = $this->getStatisticsCount('history_abnormal');
//战略供应商(等级为A)
$payTypeTerm = $this->getStatisticsCount('pay_type_term');
//账期供应商
$levelA = $this->getStatisticsCount('level_a');
$result = [
'total' => $total,
......@@ -75,6 +77,7 @@ class SupplierStatisticsService
'has_supplier_tag' => $hasTagSupplier,
'contact_no_complete' => $concatNoComplete,
'history_abnormal' => $historyAbnormal,
'pay_type_term' => $payTypeTerm,
'level_a' => $levelA,
];
$result = array_map(function ($value) {
......
......@@ -236,6 +236,7 @@ return [
'has_supplier_tag' => '客户指定供应商',
'history_abnormal' => '历史检测异常',
'level_a' => '战略供应商',
'pay_type_term' => '账期供应商',
],
//Sku列表的罗盘对应菜单id
'SkuListCompassMenuMap' => [
......
......@@ -126,6 +126,10 @@
<a class="main_filter" title="战略供应商" id="level_a">
</a>
</div>
<div class="layui-row">
<a class="main_filter" title="账期供应商" id="pay_type_term">
</a>
</div>
</div>
<div class="split-item" id="s7" style="text-align: center">
......@@ -152,8 +156,8 @@
{!! $transformableInputPresenter->render(['supplier_name'=>'供应商名称','supplier_code'=>'供应商编码','supplier_id'=>'供应商ID']) !!}
</div>
<div class="layui-inline">
{{-- @inject('statusPresenter','App\Presenters\StatusPresenter')--}}
{{-- {!! $statusPresenter->render('status','供应商状态','',config('fixed.SupplierStatus')) !!}--}}
{{-- @inject('statusPresenter','App\Presenters\StatusPresenter')--}}
{{-- {!! $statusPresenter->render('status','供应商状态','',config('fixed.SupplierStatus')) !!}--}}
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
{!! $multiSelectorPresenter->render('status','供应商状态','',$statusData) !!}
</div>
......
......@@ -26,11 +26,26 @@
value="{{$supplier['pay_type_value'] or ''}}">
<select lay-filter="pay_type_month">
<option value="">请选择</option>
<option value="7"
@if($supplier['pay_type_value']==7)
selected='selected'
@endif>7
</option>
<option value="15"
@if($supplier['pay_type_value']==15)
selected='selected'
@endif>15
</option>
<option value="30"
@if($supplier['pay_type_value']==30)
selected='selected'
@endif>30
</option>
<option value="45"
@if($supplier['pay_type_value']==45)
selected='selected'
@endif>45
</option>
<option value="60"
@if($supplier['pay_type_value']==60)
selected='selected'
......@@ -55,7 +70,10 @@
<input class="layui-input valueInput" type="hidden" name="pay_type_value">
<select lay-filter="pay_type_month">
<option value="">请选择</option>
<option value="30">7</option>
<option value="30">15</option>
<option value="30">30</option>
<option value="30">45</option>
<option value="60">60</option>
<option value="90">90</option>
</select>
......
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