Commit 62204f8f by 杨树贤

解决冲突

parents 11ace591 4b5f88eb
......@@ -306,6 +306,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">
......
......@@ -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