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
3a670845
authored
Jan 19, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善上架校验
parent
7767996a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
100 deletions
app/Http/Controllers/Api/SkuApiController.php
app/Http/Services/SkuService.php
resources/views/script/BatchUpdateSkuStatusScript.blade.php
resources/views/script/SkuListScript.blade.php
app/Http/Controllers/Api/SkuApiController.php
View file @
3a670845
...
...
@@ -75,14 +75,14 @@ class SkuApiController extends Controller
$uploadLogId
=
SkuUploadLogModel
::
where
(
'supplier_code'
,
$supplierCode
)
->
where
(
'status'
,
SkuUploadLogModel
::
STATUS_HANDLED
)
->
orderBy
(
'id'
,
'desc'
)
->
value
(
'id'
);
$content
=
[
'supplier_code'
=>
$supplierCode
,
'brand_id'
=>
$brandId
,
'log_id'
=>
$uploadLogId
,
"down_type"
=>
1
,
'user_name'
=>
$request
->
user
->
name
,
];
Log
::
info
(
$content
);
$content
=
[
'supplier_code'
=>
$supplierCode
,
'brand_id'
=>
$brandId
,
'log_id'
=>
$uploadLogId
,
"down_type"
=>
1
,
'user_name'
=>
$request
->
user
->
name
,
];
Log
::
info
(
$content
);
$data
=
[
'supplier_code'
=>
$supplierCode
,
...
...
@@ -137,7 +137,10 @@ class SkuApiController extends Controller
$this
->
response
(
-
1
,
'请设置上架有效期'
);
}
}
(
new
SkuService
())
->
batchUpdateSkuStatus
(
$data
);
$result
=
(
new
SkuService
())
->
batchUpdateSkuStatus
(
$data
);
if
(
$result
!==
true
)
{
$this
->
response
(
-
1
,
$result
);
}
$this
->
response
(
0
,
'操作成功,请等待后台上下架任务完成刷新查看'
);
}
...
...
app/Http/Services/SkuService.php
View file @
3a670845
This diff is collapsed.
Click to expand it.
resources/views/script/BatchUpdateSkuStatusScript.blade.php
View file @
3a670845
...
...
@@ -51,7 +51,7 @@
success
:
function
(
res
)
{
if
(
res
.
err_code
===
0
)
{
admin
.
closeThisDialog
();
parent
.
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
});
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
});
}
else
{
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
});
}
...
...
resources/views/script/SkuListScript.blade.php
View file @
3a670845
...
...
@@ -396,7 +396,7 @@
if
(
status
!==
'offshelf'
)
{
layer
.
open
({
type
:
2
,
area
:
[
'
6
00px'
,
'500px'
],
area
:
[
'
8
00px'
,
'500px'
],
offset
:
'100px'
,
fixed
:
false
,
//不固定
maxmin
:
true
,
...
...
@@ -425,14 +425,14 @@
success
:
function
(
res
)
{
console
.
log
(
res
);
if
(
res
.
err_code
===
0
)
{
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
});
parent
.
layer
.
msg
(
res
.
err_msg
,
{
icon
:
6
});
table
.
reload
(
'skuList'
,
{
page
:
{
curr
:
currentPage
},
});
}
else
{
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
});
parent
.
layer
.
msg
(
res
.
err_msg
,
{
icon
:
5
});
return
false
;
}
}
...
...
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