From becc33ce9681fcc75d26eb2b8fbe650d53cb1f89 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 30 七月 2025 14:55:26 +0800 Subject: [PATCH] 1. 调拔单功能优化 2. 7.30问题及bug修复 --- rsf-admin/src/page/orders/purchase/PurchaseEdit.jsx | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/rsf-admin/src/page/orders/purchase/PurchaseEdit.jsx b/rsf-admin/src/page/orders/purchase/PurchaseEdit.jsx index 3953ed2..1a0c2f7 100644 --- a/rsf-admin/src/page/orders/purchase/PurchaseEdit.jsx +++ b/rsf-admin/src/page/orders/purchase/PurchaseEdit.jsx @@ -55,9 +55,23 @@ <SimpleForm shouldUnregister warnWhenUnsavedChanges - toolbar={<FormToolbar />} + toolbar={false} 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)" + }, + "& .MuiFilledInput-root.MuiInputBase-sizeSmall": { + bgcolor: 'white', + } + }} // validate={(values) => { }} > <Grid container width={{ xs: '100%', xl: '100%' }} rowSpacing={3} columnSpacing={3}> @@ -81,6 +95,7 @@ source="type" optionValue="value" parse={v => v} + readOnly /> <AutocompleteInput choices={business} @@ -89,16 +104,19 @@ source="wkType" optionValue="value" parse={v => v} + readOnly /> <TextInput label="table.field.purchase.source" source="source" parse={v => v} + readOnly validate={required()} /> <NumberInput label="table.field.purchase.anfme" source="anfme" + readOnly validate={required()} /> </Stack> @@ -106,25 +124,30 @@ <TextInput label="table.field.purchase.project" source="project" + readOnly parse={v => v} /> <TextInput label="table.field.purchase.channel" source="channel" parse={v => v} + readOnly /> <TextInput label="table.field.purchase.platCode" source="platCode" parse={v => v} + readOnly /> <DateInput label="table.field.purchase.startTime" source="startTime" + readOnly /> <DateInput label="table.field.purchase.endTime" source="endTime" + readOnly /> </Stack> </Grid> -- Gitblit v1.9.1