Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
62204f8f
authored
Jun 28, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
解决冲突
parents
11ace591
4b5f88eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
0 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Services/SupplierStatisticsService.php
config/fixed.php
resources/views/web/supplier/SupplierListCommon.blade.php
resources/views/web/supplier/SupplierPayType.blade.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
62204f8f
...
...
@@ -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
;
}
...
...
app/Http/Services/SupplierStatisticsService.php
View file @
62204f8f
...
...
@@ -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
)
{
...
...
config/fixed.php
View file @
62204f8f
...
...
@@ -236,6 +236,7 @@ return [
'has_supplier_tag'
=>
'客户指定供应商'
,
'history_abnormal'
=>
'历史检测异常'
,
'level_a'
=>
'战略供应商'
,
'pay_type_term'
=>
'账期供应商'
,
],
//Sku列表的罗盘对应菜单id
'SkuListCompassMenuMap'
=>
[
...
...
resources/views/web/supplier/SupplierListCommon.blade.php
View file @
62204f8f
...
...
@@ -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"
>
...
...
resources/views/web/supplier/SupplierPayType.blade.php
View file @
62204f8f
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment