From beff9e424cbc5a86fb02ae5b089bd6ae9d04d78e Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期五, 21 三月 2025 14:52:18 +0800
Subject: [PATCH] 修改 1. 仓库修改添加同名空管 2. 仓库库区修改添加同空管
---
rsf-admin/src/page/asnOrder/AsnOrderModal.jsx | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx b/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx
index 1b23e74..57035a4 100644
--- a/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx
+++ b/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx
@@ -53,6 +53,7 @@
import { Add, Edit, Delete } from '@mui/icons-material';
import _ from 'lodash';
import { DataGrid } from '@mui/x-data-grid';
+import DictionarySelect from "../components/DictionarySelect";
const AsnOrderModal = (props) => {
const { open, setOpen, asnId } = props;
@@ -84,8 +85,8 @@
const [tabelData, setTableData] = useState([]);
- const handleChange = (e) => {
- const { name, value } = e.target;
+
+ const handleChange = (value, name) => {
setFormData((prevData) => ({
...prevData,
[name]: value
@@ -171,20 +172,19 @@
</Box>
</DialogTitle>
<DialogContent sx={{ mt: 2 }}>
- <Box component="form" sx={{ display: 'flex', flexDirection: 'column', gap: 3 }}>
- <form>
+ <Box sx={{ display: 'flex', flexDirection: 'column', gap: 3 }}>
+ <Form>
<Grid container spacing={2}>
<Grid item xs={4}>
- <TextField
- label={translate('table.field.asnOrder.type')}
+ <DictionarySelect
+ label={translate("table.field.asnOrder.type")}
name="type"
value={formData.type}
- onChange={handleChange}
- onBlur={requestSetHead}
- variant="outlined"
+ onChange={(e) => handleChange(+e.target.value, 'type')}
size="small"
- required
+ dictTypeCode="sys_bill_type"
/>
+
</Grid>
{/* <Grid item xs={4}>
@@ -198,7 +198,7 @@
/>
</Grid> */}
</Grid>
- </form>
+ </Form>
</Box>
<Box sx={{ mt: 2 }}>
@@ -216,7 +216,7 @@
<DialogActions sx={{ position: 'sticky', bottom: 0, backgroundColor: 'background.paper', zIndex: 1000 }}>
<Toolbar sx={{ width: '100%', justifyContent: 'space-between' }} >
<Button onClick={handleSubmit} variant="contained" startIcon={<SaveIcon />}>
- 纭
+ {translate('toolbar.confirm')}
</Button>
</Toolbar>
</DialogActions>
--
Gitblit v1.9.1