Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
3ce18603
Commit
3ce18603
authored
Sep 08, 2025
by
靳野
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:商品管理对于驳回商品可以批量修改商品
parent
e035aa9c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
env.config.js
config/env.config.js
+1
-1
index.jsx
src/pages/GoodsManage/index.jsx
+1
-1
service.js
src/pages/GoodsManage/service.js
+6
-2
No files found.
config/env.config.js
View file @
3ce18603
import
RoleType
,
{
isPlatForm
}
from
'
./role.config
'
;
import
RoleType
,
{
isPlatForm
}
from
'
./role.config
'
;
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
;
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
;
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
environment
=
'
sc
'
;
const
environment
=
'
yxm2
'
;
const
envAPi
=
{
const
envAPi
=
{
api
:
`https://security-
${
environment
}
.liangkebang.net`
,
//'https://security-xyqb.liangkebang.net',
api
:
`https://security-
${
environment
}
.liangkebang.net`
,
//'https://security-xyqb.liangkebang.net',
...
...
src/pages/GoodsManage/index.jsx
View file @
3ce18603
...
@@ -344,7 +344,7 @@ class goodsManage extends Component {
...
@@ -344,7 +344,7 @@ class goodsManage extends Component {
serviceVisbleChange
=
async
row
=>
{
serviceVisbleChange
=
async
row
=>
{
const
{
state
,
spuId
,
productType
,
skuId
}
=
row
;
const
{
state
,
spuId
,
productType
,
skuId
}
=
row
;
this
.
setState
({
createloading
:
true
});
this
.
setState
({
createloading
:
true
});
const
{
data
,
msg
}
=
await
spuDetail
({
skuId
}
);
// spuId
const
{
data
,
msg
}
=
await
spuDetail
({
skuId
,
id
:
spuId
},
state
);
// spuId
if
(
data
)
{
if
(
data
)
{
const
SourceData
=
ProcessEditData
(
data
,
row
);
const
SourceData
=
ProcessEditData
(
data
,
row
);
console
.
log
(
'
index.js=============>
'
,
SourceData
);
console
.
log
(
'
index.js=============>
'
,
SourceData
);
...
...
src/pages/GoodsManage/service.js
View file @
3ce18603
...
@@ -59,8 +59,12 @@ export async function apiGetAttribute(categoryId) {
...
@@ -59,8 +59,12 @@ export async function apiGetAttribute(categoryId) {
return
data
;
return
data
;
}
}
// 编辑--获取详情
// 编辑--获取详情
export
async
function
spuDetail
(
params
)
{
export
async
function
spuDetail
(
params
,
state
)
{
return
request
.
post
(
'
/api/merchants/products/sku-detail
'
,
{
let
url
=
'
/api/merchants/products/sku-detail
'
;
if
(
state
===
4
)
{
url
=
'
/api/merchants/products/detail
'
;
}
return
request
.
post
(
url
,
{
prefix
:
goodsApi
,
prefix
:
goodsApi
,
params
,
params
,
headers
,
headers
,
...
...
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