From 9e84e0199af37546a5fe76befdf004fae84ca921 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期三, 25 二月 2026 13:36:34 +0800
Subject: [PATCH] 站点初始化,批量增加
---
rsf-admin/src/page/basicInfo/loc/LocEdit.jsx | 60 ++++++++++++++++++++++++++++--------------------------------
1 files changed, 28 insertions(+), 32 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx b/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx
index 482e84a..aa3668e 100644
--- a/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx
+++ b/rsf-admin/src/page/basicInfo/loc/LocEdit.jsx
@@ -36,7 +36,6 @@
import * as Common from '@/utils/common';
import LocItemList from "./LocItemList";
import request from '@/utils/request';
-import { da } from "date-fns/locale";
const FormToolbar = () => {
const { getValues } = useFormContext();
@@ -89,7 +88,7 @@
{translate('common.edit.title.main')}
</Typography>
<Grid container rowSpacing={2} columnSpacing={2}>
- <Grid item display="flex" gap={2}>
+ <Grid item xs={12} display="flex" gap={2}>
<ReferenceInput
source="warehouseId"
reference="warehouse"
@@ -105,6 +104,7 @@
<ReferenceInput
source="areaId"
reference="warehouseAreas"
+ sort={{ field: 'sort', order: 'ASC' }}
filter={{ warehouseId }}
>
<AutocompleteInput
@@ -120,30 +120,6 @@
parse={v => v}
validate={required()}
/>
- <NumberInput
- label="table.field.loc.length"
- source="length"
- />
-
- <NumberInput
- label="table.field.loc.width"
- source="width"
- />
-
- <NumberInput
- label="table.field.loc.height"
- source="height"
- />
- </Grid>
- <Grid item display="flex" gap={1}>
- <ReferenceArrayInput source="typeIds" reference="locType" >
- <SelectArrayInput label="table.field.loc.type" />
- </ReferenceArrayInput>
- <TextInput
- label="table.field.loc.unit"
- source="unit"
- parse={v => v}
- />
<DictionarySelect
label={translate("table.field.loc.useStatus")}
name="useStatus"
@@ -151,18 +127,42 @@
size="small"
dictTypeCode="sys_loc_use_stas"
/>
+ {/* <NumberInput
+ label="table.field.loc.length"
+ source="length"
+ />
+ <NumberInput
+ label="table.field.loc.width"
+ source="width"
+ />
+ <NumberInput
+ label="table.field.loc.height"
+ source="height"
+ /> */}
+ </Grid>
+ <Grid item xs={12} display="flex" gap={1}>
+ <ReferenceArrayInput source="typeIds" reference="locType" >
+ <SelectArrayInput label="table.field.loc.type" />
+ </ReferenceArrayInput>
+ {/* <TextInput
+ label="table.field.loc.unit"
+ source="unit"
+ parse={v => v}
+ /> */}
+ <NumberInput
+ label="table.field.loc.channel"
+ source="channel"
+ />
<NumberInput
label="table.field.loc.row"
source="row"
validate={required()}
/>
-
<NumberInput
label="table.field.loc.col"
source="col"
validate={required()}
/>
-
<NumberInput
label="table.field.loc.lev"
source="lev"
@@ -181,7 +181,3 @@
export default LocEdit;
-
-const ArraySelectInput = () => {
-
-}
--
Gitblit v1.9.1