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
4b5f88eb
authored
Jun 28, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
账期日期选择
parent
c3643f04
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
3 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 @
4b5f88eb
...
...
@@ -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
;
}
...
...
app/Http/Services/SupplierStatisticsService.php
View file @
4b5f88eb
...
...
@@ -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 @
4b5f88eb
...
...
@@ -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 @
4b5f88eb
...
...
@@ -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>
...
...
resources/views/web/supplier/SupplierPayType.blade.php
View file @
4b5f88eb
...
...
@@ -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