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
afd52278
authored
Aug 04, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
标签修改
parent
b92aef04
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
app/Http/Controllers/SupplierController.php
app/Http/Services/SupplierService.php
app/Http/Services/SupplierShareApplyService.php
resources/views/web/supplier/SupplierFile.blade.php
app/Http/Controllers/SupplierController.php
View file @
afd52278
...
...
@@ -172,6 +172,11 @@ class SupplierController extends Controller
$customerTags
=
$tagService
->
getTagsBySupplierId
(
$supplierId
,
2
);
$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'
],
'system_tags'
=>
$supplier
[
'system_tags'
],
]);
$this
->
data
[
'supplier'
]
=
$supplier
;
$this
->
data
[
'address'
]
=
$supplierService
->
getAddress
(
$supplierId
);
$supplierAttachmentService
=
new
SupplierAttachmentService
();
...
...
app/Http/Services/SupplierService.php
View file @
afd52278
...
...
@@ -150,8 +150,8 @@ class SupplierService
$oldCustomerTags
=
array_get
(
$oldSupplier
,
'customer_tags'
);
$oldSystemTags
=
array_get
(
$oldSupplier
,
'system_tags'
);
$tagService
=
new
SupplierTagService
();
//
$tagService->saveTags($supplierId, 14, $channel['system_tags'], $oldSystemTags);
//
$tagService->saveTags($supplierId, 4, $channel['customer_tags'], $oldCustomerTags);
$tagService
->
saveTags
(
$supplierId
,
14
,
$channel
[
'system_tags'
],
$oldSystemTags
);
$tagService
->
saveTags
(
$supplierId
,
4
,
$channel
[
'customer_tags'
],
$oldCustomerTags
);
}
//保存附件
$attachmentService
=
new
SupplierAttachmentService
();
...
...
app/Http/Services/SupplierShareApplyService.php
View file @
afd52278
...
...
@@ -81,7 +81,7 @@ class SupplierShareApplyService
{
$applyModel
=
new
SupplierShareApplyModel
();
$count
=
$applyModel
->
where
(
'supplier_id'
,
$map
[
'supplier_id'
])
->
where
(
'apply_code_id'
,
$map
[
'apply_code_id'
])
->
where
(
'department_id'
,
$map
[
'apply_department_id'
])
->
where
(
'apply_code_id'
,
$map
[
'apply_code_id'
])
->
where
(
'
apply_
department_id'
,
$map
[
'apply_department_id'
])
->
whereNotIn
(
'status'
,
[
$applyModel
::
STATUS_AUDIT_REJECT
,
$applyModel
::
STATUS_REVIEW_REJECT
])
->
count
();
return
$count
;
}
...
...
resources/views/web/supplier/SupplierFile.blade.php
View file @
afd52278
...
...
@@ -35,7 +35,7 @@
<div
id=
"{{$name}}_file_div"
>
@foreach($attachment[$name] as $k=>$item)
<span
class=
"single_file_div"
>
<a
href=
"{{$item['url']}}"
target=
"_blank"
>
<a
href=
"{{$item['url']}}"
target=
"_blank"
value=
"{{array_get($item,'file_name','未知文件名')}}"
>
{{array_get($item,'file_name','未知文件名')}}
</a>
<i
class=
"layui-icon delete_file"
...
...
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