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
252ac297
authored
Aug 28, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化页面
parent
711ce6a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
5 deletions
app/Http/Controllers/SkuController.php
resources/views/script/SkuListScript.blade.php
resources/views/web/BatchAddSkuTag.blade.php
resources/views/web/BatchUpdateGoodsLabel.blade.php
app/Http/Controllers/SkuController.php
View file @
252ac297
...
...
@@ -133,6 +133,13 @@ class SkuController extends Controller
$supplier
=
$supplier
->
toArray
();
$supplierCodes
[
$supplier
[
'supplier_code'
]]
=
$supplier
[
'supplier_name'
]
.
'('
.
$supplier
[
'supplier_code'
]
.
')'
;
}
$skuIds
=
$request
->
input
(
'sku_ids'
);
if
(
!
empty
(
$skuIds
))
{
$skuIds
=
explode
(
','
,
$skuIds
);
$this
->
data
[
'skuIds'
]
=
$skuIds
;
}
$this
->
data
[
'supplierCodes'
]
=
$supplierCodes
;
return
$this
->
view
(
'批量设置sku显示类型'
);
}
...
...
resources/views/script/SkuListScript.blade.php
View file @
252ac297
...
...
@@ -36,6 +36,26 @@
});
// 点击行checkbox选中
$
(
document
).
on
(
"click"
,
".layui-table-body table.layui-table tbody tr"
,
function
()
{
let
index
=
$
(
this
).
attr
(
'data-index'
);
let
tableBox
=
$
(
this
).
parents
(
'.layui-table-box'
);
let
tableDiv
=
null
;
if
(
tableBox
.
find
(
".layui-table-fixed.layui-table-fixed-l"
).
length
>
0
)
{
tableDiv
=
tableBox
.
find
(
".layui-table-fixed.layui-table-fixed-l"
);
}
else
{
tableDiv
=
tableBox
.
find
(
".layui-table-body.layui-table-main"
);
}
let
checkCell
=
tableDiv
.
find
(
"tr[data-index="
+
index
+
"]"
).
find
(
"td div.laytable-cell-checkbox div.layui-form-checkbox I"
);
if
(
checkCell
.
length
>
0
)
{
checkCell
.
click
();
}
});
$
(
document
).
on
(
"click"
,
"td div.laytable-cell-checkbox div.layui-form-checkbox"
,
function
(
e
)
{
e
.
stopPropagation
();
});
@
if
(
request
()
->
get
(
'search'
)
==
1
)
setTimeout
(
function
()
{
$
(
'#getSupplierListButton'
).
click
();
...
...
resources/views/web/BatchAddSkuTag.blade.php
View file @
252ac297
...
...
@@ -13,11 +13,6 @@
</blockquote>
<div
class=
"layui-form-item"
>
<table
class=
"layui-table"
>
{{--
<thead>
--}}
{{--
<tr>
--}}
{{--
<th>
商品ID
</th>
--}}
{{--
</tr>
--}}
{{--
</thead>
--}}
<tbody>
@foreach($skuIds as $skuId)
<tr>
...
...
resources/views/web/BatchUpdateGoodsLabel.blade.php
View file @
252ac297
...
...
@@ -6,6 +6,27 @@
<form
class=
"layui-form"
action=
""
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
style=
"height: 400px"
>
@if(request()->get('sku_ids'))
<div
id=
"selected_sku_id"
>
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
选择的sku
</b>
</blockquote>
<div
class=
"layui-form-item"
>
<table
class=
"layui-table"
>
<tbody>
@foreach($skuIds as $skuId)
<tr>
<td>
{{$skuId}}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endif
<blockquote
class=
"layui-elem-quote layui-text"
>
<b>
设置标签
</b>
</blockquote>
...
...
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