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
955cdc3a
Commit
955cdc3a
authored
Mar 28, 2023
by
baxibaba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新时间回显问题
parent
201d9923
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
FormTakeaway.jsx
src/pages/ServiceGoods/components/FormTakeaway.jsx
+10
-1
index.jsx
src/pages/ServiceGoods/index.jsx
+0
-1
No files found.
src/pages/ServiceGoods/components/FormTakeaway.jsx
View file @
955cdc3a
...
...
@@ -481,7 +481,7 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
let {
productStock,
specs,
serviceItem: { maxStock },
serviceItem: { maxStock
, saleTimeType, saleDates, saleTimes
},
} = editData?.skuList[0];
let { quantity, unit, salePrice } = specs[0];
editData.productStock = productStock;
...
...
@@ -490,6 +490,15 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
editData.salePrice = salePrice;
editData.maxStock = maxStock;
editData.categoryId = [firstCategoryId, secondCategoryId, thirdCategoryId];
editData.saleTimeType = saleTimeType;
editData.saleDates = [1, 2, 4];
editData.saleTimes = saleTimes.length
? saleTimes.map(item => {
item = [moment(item?.startTime, format), moment(item?.endTime, format)];
return item;
})
: [];
setTimeType(saleTimeType);
}
form.setFieldsValue(editData);
onCardSuccessImageList(editData?.detailImageList);
...
...
src/pages/ServiceGoods/index.jsx
View file @
955cdc3a
...
...
@@ -207,7 +207,6 @@ const ServiceGoods = options => {
setPageLoading
(
true
);
const
sendAsyncHttpRequest
=
isEdit
?
merchantProductEdit
:
merchantProductAdd
;
const
addResponse
=
await
sendAsyncHttpRequest
(
sendData
);
debugger
;
if
(
addResponse
.
data
)
{
message
.
success
(
`
${
isEdit
?
'
修改
'
:
'
添加
'
}
成功!`
);
localStorage
.
remove
(
localAutoSaveKey
);
...
...
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