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
23a0c2af
Commit
23a0c2af
authored
Sep 16, 2025
by
靳野
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-sku' into feature-sku-2
parents
783cd97c
7ee33fc9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
staticdata.js
src/pages/GoodsManage/SupplyPriceUpdate/staticdata.js
+1
-1
index.jsx
src/pages/GoodsManage/index.jsx
+1
-1
service.js
src/pages/GoodsManage/service.js
+6
-2
No files found.
src/pages/GoodsManage/SupplyPriceUpdate/staticdata.js
View file @
23a0c2af
...
...
@@ -65,7 +65,7 @@ export function column(specArr = []) {
initialValue
=
{
row
.
stock
||
0
}
rules
=
{[{
required
:
true
,
message
:
'
请输入库存!
'
},
{
validator
:
isIntegerNotMust
}]}
>
<
InputNumber
min
=
{
1
}
max
=
{
999999
}
/
>
<
InputNumber
min
=
{
0
}
max
=
{
999999
}
/
>
<
/Form.Item
>
<
/div
>
),
...
...
src/pages/GoodsManage/index.jsx
View file @
23a0c2af
...
...
@@ -344,7 +344,7 @@ class goodsManage extends Component {
serviceVisbleChange
=
async
row
=>
{
const
{
state
,
spuId
,
productType
,
skuId
}
=
row
;
this
.
setState
({
createloading
:
true
});
const
{
data
,
msg
}
=
await
spuDetail
({
skuId
}
);
// spuId
const
{
data
,
msg
}
=
await
spuDetail
({
skuId
,
id
:
spuId
},
state
);
// spuId
if
(
data
)
{
const
SourceData
=
ProcessEditData
(
data
,
row
);
console
.
log
(
'
index.js=============>
'
,
SourceData
);
...
...
src/pages/GoodsManage/service.js
View file @
23a0c2af
...
...
@@ -59,8 +59,12 @@ export async function apiGetAttribute(categoryId) {
return
data
;
}
// 编辑--获取详情
export
async
function
spuDetail
(
params
)
{
return
request
.
post
(
'
/api/merchants/products/sku-detail
'
,
{
export
async
function
spuDetail
(
params
,
state
)
{
let
url
=
'
/api/merchants/products/sku-detail
'
;
if
(
state
===
4
)
{
url
=
'
/api/merchants/products/detail
'
;
}
return
request
.
post
(
url
,
{
prefix
:
goodsApi
,
params
,
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