From e918d4fa4f5065b51be706f21da6793c378c9aaf Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 16 八月 2025 17:05:05 +0800 Subject: [PATCH] 接口文档修改 --- rsf-admin/src/page/orders/delivery/DeliveryCreate.jsx | 45 +++++++++++++++++---------------------------- 1 files changed, 17 insertions(+), 28 deletions(-) diff --git a/rsf-admin/src/page/orders/delivery/DeliveryCreate.jsx b/rsf-admin/src/page/orders/delivery/DeliveryCreate.jsx index eeccfba..0a740c4 100644 --- a/rsf-admin/src/page/orders/delivery/DeliveryCreate.jsx +++ b/rsf-admin/src/page/orders/delivery/DeliveryCreate.jsx @@ -36,6 +36,8 @@ const translate = useTranslate(); const notify = useNotify(); + const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_order_type')) || []; + const business = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_business_type')) || []; const handleClose = (event, reason) => { if (reason !== "backdropClick") { @@ -84,36 +86,31 @@ </DialogTitle> <DialogContent sx={{ mt: 2 }}> <Grid container rowSpacing={2} columnSpacing={2}> - <Grid item xs={6} display="flex" gap={1}> - <TextInput - label="table.field.delivery.code" - source="code" - parse={v => v} - autoFocus - /> - </Grid> - <Grid item xs={6} display="flex" gap={1}> + <Grid item xs={16} display="flex" gap={1}> <TextInput label="table.field.delivery.platId" source="platId" parse={v => v} /> - </Grid> - <Grid item xs={6} display="flex" gap={1}> - <TextInput - label="table.field.delivery.type" + <AutocompleteInput + choices={dicts} + optionText="label" + label="table.field.asnOrder.type" source="type" + optionValue="value" parse={v => v} + validate={required()} + /> - </Grid> - <Grid item xs={6} display="flex" gap={1}> - <TextInput - label="table.field.delivery.wkType" + <AutocompleteInput + choices={business} + optionText="label" + label="table.field.asnOrder.wkType" source="wkType" + optionValue="value" + validate={required()} parse={v => v} /> - </Grid> - <Grid item xs={6} display="flex" gap={1}> <TextInput label="table.field.delivery.source" source="source" @@ -121,28 +118,20 @@ validate={required()} /> </Grid> - <Grid item xs={6} display="flex" gap={1}> + <Grid item xs={16} display="flex" gap={1}> <NumberInput label="table.field.delivery.anfme" source="anfme" validate={required()} /> - </Grid> - <Grid item xs={6} display="flex" gap={1}> <NumberInput label="table.field.delivery.qty" source="qty" - validate={required()} /> - </Grid> - <Grid item xs={6} display="flex" gap={1}> <NumberInput label="table.field.delivery.workQty" source="workQty" - validate={required()} /> - </Grid> - <Grid item xs={6} display="flex" gap={1}> <TextInput label="table.field.delivery.platCode" source="platCode" -- Gitblit v1.9.1