From 6331768f662e7a11854170c9c0fb86c5b3cb6afd Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 28 四月 2025 17:01:26 +0800
Subject: [PATCH] #wms端生成任务优化
---
rsf-admin/src/page/orders/outStock/OutOrderCreate.jsx | 61 ++++++++++++------------------
1 files changed, 24 insertions(+), 37 deletions(-)
diff --git a/rsf-admin/src/page/orders/outStock/OutOrderCreate.jsx b/rsf-admin/src/page/orders/outStock/OutOrderCreate.jsx
index 28cd69d..ec66955 100644
--- a/rsf-admin/src/page/orders/outStock/OutOrderCreate.jsx
+++ b/rsf-admin/src/page/orders/outStock/OutOrderCreate.jsx
@@ -27,13 +27,14 @@
Grid,
Box,
} from '@mui/material';
-import DialogCloseButton from "../components/DialogCloseButton";
-import StatusSelectInput from "../components/StatusSelectInput";
-import MemoInput from "../components/MemoInput";
+import DialogCloseButton from "../../components/DialogCloseButton";
+import StatusSelectInput from "../../components/StatusSelectInput";
+import MemoInput from "../../components/MemoInput";
const OutOrderCreate = (props) => {
const { open, setOpen } = props;
-
+ 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 translate = useTranslate();
const notify = useNotify();
@@ -69,7 +70,9 @@
disableRestoreFocus
maxWidth="md" // 'xs' | 'sm' | 'md' | 'lg' | 'xl'
>
- <Form>
+ <Form
+ resource="outStock"
+ >
<DialogTitle id="form-dialog-title" sx={{
position: 'sticky',
top: 0,
@@ -84,71 +87,56 @@
</DialogTitle>
<DialogContent sx={{ mt: 2 }}>
<Grid container rowSpacing={2} columnSpacing={2}>
- {/* <Grid item xs={6} display="flex" gap={1}>
- <TextInput
- label="table.field.asnOrder.code"
- source="code"
- parse={v => v}
- autoFocus
- />
- </Grid> */}
- <Grid item xs={6} display="flex" gap={1}>
+ <Grid item xs={12} display="flex" gap={1}>
<TextInput
label="table.field.asnOrder.poCode"
source="poCode"
parse={v => v}
/>
- </Grid>
- <Grid item xs={6} display="flex" gap={1}>
<NumberInput
label="table.field.asnOrder.poId"
source="poId"
/>
- </Grid>
- <Grid item xs={6} display="flex" gap={1}>
- <TextInput
+ {/* <AutocompleteInput
+ choices={dicts}
+ optionText="label"
label="table.field.asnOrder.type"
source="type"
- parse={v => v}
+ optionValue="value"
validate={required()}
- />
+ parse={v => v}
+ /> */}
</Grid>
- <Grid item xs={6} display="flex" gap={1}>
- <TextInput
+ <Grid item xs={12} display="flex" gap={1}>
+ <AutocompleteInput
+ choices={business}
+ optionText="label"
label="table.field.asnOrder.wkType"
source="wkType"
- parse={v => v}
+ optionValue="value"
validate={required()}
+ parse={v => v}
/>
- </Grid>
- {/* <Grid item xs={6} display="flex" gap={1}>
<NumberInput
label="table.field.asnOrder.anfme"
source="anfme"
validate={required()}
/>
- </Grid> */}
- {/* <Grid item xs={6} display="flex" gap={1}>
<NumberInput
label="table.field.asnOrder.qty"
source="qty"
- validate={required()}
/>
- </Grid> */}
- <Grid item xs={6} display="flex" gap={1}>
+ </Grid>
+ <Grid item xs={12} display="flex" gap={1}>
<TextInput
label="table.field.asnOrder.logisNo"
source="logisNo"
parse={v => v}
/>
- </Grid>
- <Grid item xs={6} display="flex" gap={1}>
<DateInput
label="table.field.asnOrder.arrTime"
source="arrTime"
/>
- </Grid>
- <Grid item xs={6} display="flex" gap={1}>
<SelectInput
label="table.field.asnOrder.rleStatus"
source="rleStatus"
@@ -158,8 +146,7 @@
]}
/>
</Grid>
-
- <Grid item xs={6} display="flex" gap={1}>
+ <Grid item xs={4} display="flex" gap={1}>
<StatusSelectInput />
</Grid>
<Grid item xs={12} display="flex" gap={1}>
--
Gitblit v1.9.1