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
bacd3a18
authored
Jul 07, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
temp
parent
7c76d512
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
0 deletions
app/Http/Controllers/SupplierTagsController.php
resources/views/script/SupplierListScript.blade.php
resources/views/web/SupplierList.blade.php
app/Http/Controllers/SupplierTagsController.php
0 → 100644
View file @
bacd3a18
<?php
namespace
App\Http\Controllers
;
use
App\Http\Services\RoleService
;
use
App\Http\Services\SupplierContactService
;
use
App\Http\Services\SupplierService
;
use
App\Http\Services\SupplierStatisticsService
;
use
App\Http\Services\ViewCheckService
;
use
App\Http\Transformers\SupplierTransformer
;
use
App\Model\IntracodeModel
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierReceiptModel
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\DB
;
class
SupplierTagsController
extends
Controller
{
public
function
info
(
Request
$request
,
$id
=
''
)
{
{
if
(
$request
->
path
()
==
'/'
)
{
$path
=
'web/index'
;
}
else
{
$path
=
$request
->
path
();
}
$this
->
data
=
[
'menus'
=>
$request
->
menus
,
'header'
=>
$request
->
user
->
header
,
'username'
=>
$request
->
user
->
email
,
'user_email'
=>
$request
->
user
->
email
,
'uri'
=>
'/'
.
$path
,
'id'
=>
$id
,
];
return
$this
->
$id
(
$request
);
}
}
public
function
__call
(
$name
,
$arr
)
{
$data
[
'errinfo'
]
=
'访问路径错误'
;
return
view
(
'errors.error'
,
$data
);
}
//供应商详情
public
function
BatchAddTags
(
$request
)
{
$supplierIds
=
$request
->
get
(
'supplier_ids'
);
$this
->
data
[
'supplierIds'
]
=
$supplierIds
;
$supplierIds
=
explode
(
','
,
$supplierIds
);
$model
=
new
SupplierChannelModel
();
$suppliers
=
$model
->
whereIn
(
'supplier_id'
,
$supplierIds
)
->
get
()
->
toArray
();
$transformer
=
new
SupplierTransformer
();
$suppliers
=
$transformer
->
transformList
(
$suppliers
);
$this
->
data
[
'suppliers'
]
=
$suppliers
;
$this
->
data
[
'title'
]
=
'批量修改供应商编码'
;
return
$this
->
view
(
'批量修改供应商编码'
);
}
}
\ No newline at end of file
resources/views/script/SupplierListScript.blade.php
View file @
bacd3a18
...
...
@@ -661,4 +661,17 @@
$
(
'.main_filter'
).
attr
(
'class'
,
'main_filter'
);
$
(
'.status_filter'
).
attr
(
'class'
,
'status_filter'
);
}
//批量修改供应商标签
//共用供应商申请
$
(
"#batch_add_tags"
).
click
(
function
()
{
layer
.
open
({
type
:
2
,
content
:
'/supplier_tag/BatchAddTags?view=iframe'
,
area
:
[
'700px'
,
'80%'
],
title
:
'供应商标签添加'
,
end
:
function
()
{
}
});
});
</script>
\ No newline at end of file
resources/views/web/SupplierList.blade.php
View file @
bacd3a18
...
...
@@ -57,6 +57,11 @@
@endif
</button>
@endif
@if(checkPerm('BatchAddTags'))
<button type="
button
" class="
layui
-
btn
layui
-
btn
-
sm
" id="
batch_add_tags
">
批量修改供应商标签
</button>
@endif
</div>
<button type="
button
" id="
refreshWindow
" style="
display
:
none
">刷新页面</button>
<table class="
layui
-
table
" id="
list
" lay-filter="
list
"></table>
...
...
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