From f84b3af27f34be7e22990c54612f3110559c7710 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 19 八月 2025 18:28:44 +0800
Subject: [PATCH] 盘点单、入库单、出库单同步接口
---
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