From d2cb36959b65ece32cec7e2db4d6764f5c788b1d Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 30 四月 2025 08:33:24 +0800 Subject: [PATCH] 1. 波次删除判断是否有子任务列表 2. 任务明细添加字段:执行数量,完成数量, 源单据号,源单据ID --- rsf-admin/src/page/task/TaskEdit.jsx | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/rsf-admin/src/page/task/TaskEdit.jsx b/rsf-admin/src/page/task/TaskEdit.jsx index bca87b3..e5c4a9f 100644 --- a/rsf-admin/src/page/task/TaskEdit.jsx +++ b/rsf-admin/src/page/task/TaskEdit.jsx @@ -20,7 +20,8 @@ const { getValues } = useFormContext(); return ( <Toolbar sx={{ justifyContent: 'end' }}> - <SaveButton /> + <></> + {/* <SaveButton /> */} {/* <DeleteButton mutationMode="optimistic" /> */} </Toolbar> ) @@ -42,6 +43,17 @@ toolbar={<FormToolbar />} mode="onTouched" defaultValues={{}} + sx={{ + "& .MuiFormLabel-root.MuiInputLabel-root.Mui-disabled": { + bgcolor: 'white', + WebkitTextFillColor: "rgba(0, 0, 0)" + }, + + "& .MuiInputBase-input.MuiFilledInput-input.Mui-disabled": { + bgcolor: 'white', + WebkitTextFillColor: "rgba(0, 0, 0)" + } + }} > <Grid container width={{ xs: '100%', xl: '80%' }} rowSpacing={3} columnSpacing={3}> <Grid item xs={24} md={16}> @@ -107,14 +119,12 @@ </Grid> </SimpleForm> </Edit > - <Card sx={{ marginTop: '1em', }}> - <Grid item xs={24} md={16} sx={{ margin: '1em' }}> - <Typography variant="h6" gutterBottom > - {translate('common.edit.title.common')} - </Typography> - <TaskItemList /> - </Grid> - </Card> + <Grid item xs={24} md={16} sx={{ margin: '1em', height: 'auto' }}> + <Typography variant="h6" gutterBottom > + {translate('common.edit.title.common')} + </Typography> + </Grid> + <TaskItemList /> </> ) } -- Gitblit v1.9.1