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
d546f297
authored
Aug 06, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复盘
parent
39b20a28
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Services/DataService.php
app/Http/Services/SupplierStatisticsService.php
app/Http/routes.php
resources/views/web/supplier/SupplierListCommon.blade.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
d546f297
...
@@ -237,7 +237,8 @@ class SupplierFilter
...
@@ -237,7 +237,8 @@ class SupplierFilter
break
;
break
;
case
"has_supplier_tag"
:
case
"has_supplier_tag"
:
$query
->
where
(
function
(
$q
)
{
$query
->
where
(
function
(
$q
)
{
$q
->
where
(
'system_tags'
,
'!='
,
''
)
->
orWhere
(
'customer_tags'
,
'!='
,
''
);
$q
->
whereRaw
(
"system_tags REGEXP '客户指定供应商'"
);
// $q->where('system_tags', '!=', '')->orWhere('customer_tags', '!=', '');
});
});
break
;
break
;
//附件里面缺少品质协议的
//附件里面缺少品质协议的
...
@@ -245,17 +246,16 @@ class SupplierFilter
...
@@ -245,17 +246,16 @@ class SupplierFilter
$query
->
leftjoin
(
'supplier_attachment'
,
'supplier_channel.supplier_id'
,
'='
,
$query
->
leftjoin
(
'supplier_attachment'
,
'supplier_channel.supplier_id'
,
'='
,
'supplier_attachment.supplier_id'
)
'supplier_attachment.supplier_id'
)
->
selectRaw
(
'lie_supplier_channel.*,
->
selectRaw
(
'lie_supplier_channel.*,
lie_supplier_attachment.quality_assurance_agreement,lie_supplier_attachment.supplier_id'
)
lie_supplier_attachment.quality_assurance_agreement,lie_supplier_attachment.supplier_id
as supplier_attachment_supplier_id
'
)
->
where
(
function
(
$q
)
{
->
where
(
function
(
$q
)
{
$q
->
where
(
'supplier_attachment.quality_assurance_agreement'
,
''
)
$q
->
where
(
'supplier_attachment.quality_assurance_agreement'
,
''
)
->
orWhereNull
(
'supplier_attachment.supplier_id'
);
->
orWhereNull
(
'supplier_attachment.supplier_id'
);
});
});
$query
->
whereNotIn
(
'status'
,
[
SupplierChannelModel
::
STATUS_DISABLE
,
SupplierChannelModel
::
STATUS_BLOCK
]);
//而且还是贸易商类型的供应商
$query
->
where
(
'supplier_group'
,
2
);
break
;
break
;
// case "no_quality_assurance_agreement":
// $query->whereHas('attachment', function ($q) {
// $q->where('quality_assurance_agreement1', '')->orWhereNull('supplier_id');
// });
// break;
//联系人待完善
//联系人待完善
case
"contact_no_complete"
:
case
"contact_no_complete"
:
$query
->
whereHas
(
'contact'
,
function
(
$q
)
{
$query
->
whereHas
(
'contact'
,
function
(
$q
)
{
...
...
app/Http/Services/DataService.php
View file @
d546f297
...
@@ -118,6 +118,10 @@ class DataService
...
@@ -118,6 +118,10 @@ class DataService
4
=>
'标签4'
,
4
=>
'标签4'
,
];
];
$tagList
=
[
5
=>
'客户指定供应商'
,
];
$client
=
new
Client
([
$client
=
new
Client
([
'base_uri'
=>
config
(
'website.TagUrl'
),
'base_uri'
=>
config
(
'website.TagUrl'
),
]);
]);
...
...
app/Http/Services/SupplierStatisticsService.php
View file @
d546f297
...
@@ -48,7 +48,7 @@ class SupplierStatisticsService
...
@@ -48,7 +48,7 @@ class SupplierStatisticsService
//没有品牌协议附件的
//没有品牌协议附件的
$noQualityAssuranceAgreement
=
$this
->
getStatisticsCount
(
'no_quality_assurance_agreement'
);
$noQualityAssuranceAgreement
=
$this
->
getStatisticsCount
(
'no_quality_assurance_agreement'
);
//有标签的(客户指定供应商)
//有标签的(客户指定供应商)
$hasTagSupplier
=
0
;
$hasTagSupplier
=
$this
->
getStatisticsCount
(
'has_supplier_tag'
)
;
//联系人未完善
//联系人未完善
$concatNoComplete
=
$this
->
getStatisticsCount
(
'contact_no_complete'
);
$concatNoComplete
=
$this
->
getStatisticsCount
(
'contact_no_complete'
);
...
...
app/Http/routes.php
View file @
d546f297
...
@@ -44,6 +44,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
...
@@ -44,6 +44,7 @@ Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () {
});
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
$service
=
new
\App\Http\Services\DataService
();
$service
=
new
\App\Http\Services\DataService
();
$service
->
initSystemTag
();
$service
->
changeSupplierIsTypeByCheckChannelUidOrPurchaseUid
();
$service
->
changeSupplierIsTypeByCheckChannelUidOrPurchaseUid
();
// $service->initSystemTag();
// $service->initSystemTag();
// $service->transferFileData();
// $service->transferFileData();
...
...
resources/views/web/supplier/SupplierListCommon.blade.php
View file @
d546f297
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</div>
</div>
@endif
@endif
<div
class=
"layui-row"
>
<div
class=
"layui-row"
>
<a
class=
"main_filter"
id=
"no_quality_assurance_agreement"
>
<a
title=
"公司性质为贸易商性质的供应商没有上传品质协议"
class=
"main_filter"
id=
"no_quality_assurance_agreement"
>
</a>
</a>
</div>
</div>
</div>
</div>
...
...
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