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
5d347f42
authored
Aug 10, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
体验需求
parent
80ceab50
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
app/Http/Controllers/SupplierController.php
app/Http/Validators/SupplierValidator.php
resources/views/web/SupplierList.blade.php
resources/views/web/supplier/SupplierBase.blade.php
app/Http/Controllers/SupplierController.php
View file @
5d347f42
...
...
@@ -6,6 +6,7 @@ use App\Http\Services\LogService;
use
App\Http\Services\RegionService
;
use
App\Http\Services\SupplierAttachmentService
;
use
App\Http\Services\SupplierService
;
use
App\Http\Services\SupplierShareApplyService
;
use
App\Http\Services\SupplierStatisticsService
;
use
App\Http\Services\SupplierTagService
;
use
App\Http\Transformers\LogTransformer
;
...
...
@@ -64,6 +65,10 @@ class SupplierController extends Controller
$statistics
=
$supplierStatisticsService
->
getSupplierListStatistics
();
$this
->
data
[
'statistics'
]
=
$statistics
;
$this
->
data
[
'validPerms'
]
=
[];
//获取共用审核的条数
$applyService
=
new
SupplierShareApplyService
();
$applyData
=
$applyService
->
getSupplierShareApplyList
(
$request
->
user
->
userId
);
$this
->
data
[
'shareApplyCount'
]
=
$applyData
[
'total'
];
return
$this
->
view
(
'供应商列表'
);
}
...
...
@@ -173,8 +178,8 @@ class SupplierController extends Controller
$supplier
[
'system_tags'
]
=
$systemTags
?
implode
(
','
,
$systemTags
)
:
''
;
$supplier
[
'customer_tags'
]
=
$customerTags
?
implode
(
','
,
$customerTags
)
:
''
;
$supplierModel
=
new
SupplierChannelModel
();
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'customer_tags'
=>
$supplier
[
'customer_tags'
],
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'customer_tags'
=>
$supplier
[
'customer_tags'
],
'system_tags'
=>
$supplier
[
'system_tags'
],
]);
$this
->
data
[
'supplier'
]
=
$supplier
;
...
...
app/Http/Validators/SupplierValidator.php
View file @
5d347f42
...
...
@@ -33,7 +33,7 @@ class SupplierValidator
'return_consignee'
=>
'max:50'
,
'return_phone'
=>
'max:50'
,
'business_license'
=>
'required'
,
'established_time'
=>
'required'
,
//
'established_time' => 'required',
'cn_ratio'
=>
'min:1'
,
'us_ratio'
=>
'min:1'
,
];
...
...
resources/views/web/SupplierList.blade.php
View file @
5d347f42
...
...
@@ -47,6 +47,10 @@
@if(checkPerm('AuditSupplierShare'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
audit_supplier_share_apply
">
共用审核
@if (!empty(
$shareApplyCount
))
(
{
{$shareApplyCount}
}
)
<span style="
margin
-
left
:
0
" class="
layui
-
badge
-
dot
layui
-
bg
-
orange
"></span>
@endif
</button>
@endif
</div>
...
...
resources/views/web/supplier/SupplierBase.blade.php
View file @
5d347f42
...
...
@@ -90,7 +90,7 @@
</div>
</div>
<div
class=
"layui-col-md8"
>
<label
class=
"layui-form-label"
style=
"width: 80px"
>
<span
class=
"require"
>
*
</span>
成立时间 :
<label
class=
"layui-form-label"
style=
"width: 80px"
>
成立时间 :
</label>
<div
class=
"layui-input-block"
style=
"width: 150px"
>
<input
type=
"text"
id=
"established_time"
name=
"established_time"
...
...
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