From bfc43ca0e4683c1c0322a6cad5d5be2bc07decc3 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 24 七月 2025 15:00:44 +0800 Subject: [PATCH] 新增调拔单功能 盘点功能优化 --- rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupCreate.jsx | 24 +++++++++--------------- 1 files changed, 9 insertions(+), 15 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupCreate.jsx b/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupCreate.jsx index 0146f24..27f633a 100644 --- a/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupCreate.jsx +++ b/rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupCreate.jsx @@ -43,23 +43,16 @@ } }; - const handleSuccess = async (data) => { - setOpen(false); - notify('common.response.success'); - }; - - const handleError = async (error) => { - notify(error.message || 'common.response.fail', { type: 'error', messageArgs: { _: error.message } }); - }; - return ( <> <CreateBase - record={{}} - transform={(data) => { - return data; - }} - mutationOptions={{ onSuccess: handleSuccess, onError: handleError }} + // record={{}} + // transform={(data) => { + // console.log('success========>'); + + // return data; + // }} + // mutationOptions={{ onSuccess: handleSuccess, onError: handleError }} > <Dialog open={open} @@ -84,7 +77,7 @@ </DialogTitle> <DialogContent sx={{ mt: 2 }}> <Grid container rowSpacing={2} columnSpacing={2}> - + <Grid item xs={6} display="flex" gap={1}> <TextInput label="table.field.matnrGroup.name" @@ -104,6 +97,7 @@ <Grid item xs={6} display="flex" gap={1}> <NumberInput label="table.field.matnrGroup.parentId" + validate={[required()]} source="parentId" /> </Grid> -- Gitblit v1.9.1