From 523d8cf68615134c7780f74933e70a14edb60f01 Mon Sep 17 00:00:00 2001
From: skyouc <958836976@qq.com>
Date: 星期五, 05 九月 2025 17:00:39 +0800
Subject: [PATCH] wcs联调功能优化

---
 rsf-admin/src/page/orders/purchase/PurchaseCreate.jsx |   33 +++++++++++++++++++++++----------
 1 files changed, 23 insertions(+), 10 deletions(-)

diff --git a/rsf-admin/src/page/orders/purchase/PurchaseCreate.jsx b/rsf-admin/src/page/orders/purchase/PurchaseCreate.jsx
index f44ae47..14650e6 100644
--- a/rsf-admin/src/page/orders/purchase/PurchaseCreate.jsx
+++ b/rsf-admin/src/page/orders/purchase/PurchaseCreate.jsx
@@ -33,7 +33,8 @@
 
 const PurchaseCreate = (props) => {
     const { open, setOpen } = props;
-
+    const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_in_stock_type')) || [];
+    const business = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_business_type'))?.filter(data => (data.group == '1')) || [];
     const translate = useTranslate();
     const notify = useNotify();
 
@@ -93,11 +94,23 @@
                                     />
                                 </Grid> */}
                                 <Grid item xs={6} display="flex" gap={1}>
-                                    <TextInput
-                                        label="table.field.purchase.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}>
+                                    <AutocompleteInput
+                                        choices={business}
+                                        optionText="label"
+                                        label="table.field.asnOrder.wkType"
+                                        source="wkType"
+                                        optionValue="value"
+                                        parse={v => v}
                                     />
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
@@ -108,12 +121,12 @@
                                         validate={required()}
                                     />
                                 </Grid>
-                                <Grid item xs={6} display="flex" gap={1}>
+                                {/* <Grid item xs={6} display="flex" gap={1}>
                                     <DateInput
                                         label="table.field.purchase.preArr"
                                         source="preArr"
                                     />
-                                </Grid>
+                                </Grid> */}
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <NumberInput
                                         label="table.field.purchase.anfme"
@@ -121,7 +134,7 @@
                                         validate={required()}
                                     />
                                 </Grid>
-                                <Grid item xs={6} display="flex" gap={1}>
+                                {/* <Grid item xs={6} display="flex" gap={1}>
                                     <NumberInput
                                         label="table.field.purchase.qty"
                                         source="qty"
@@ -134,7 +147,7 @@
                                         source="workQty"
                                         validate={required()}
                                     />
-                                </Grid>
+                                </Grid> */}
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput
                                         label="table.field.purchase.channel"
@@ -142,13 +155,13 @@
                                         parse={v => v}
                                     />
                                 </Grid>
-                                <Grid item xs={6} display="flex" gap={1}>
+                                {/* <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput
                                         label="table.field.purchase.platCode"
                                         source="platCode"
                                         parse={v => v}
                                     />
-                                </Grid>
+                                </Grid> */}
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <DateInput
                                         label="table.field.purchase.startTime"

--
Gitblit v1.9.1