From f3d4db769ba9b51b799d981511a710fd443d0e08 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 21 四月 2025 12:18:03 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/tabviews/custom/components/module/voucher/resetAttach/addAttach/index.jsx |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/custom/components/module/voucher/resetAttach/addAttach/index.jsx b/src/tabviews/custom/components/module/voucher/resetAttach/addAttach/index.jsx
index d730aa2..c0770a2 100644
--- a/src/tabviews/custom/components/module/voucher/resetAttach/addAttach/index.jsx
+++ b/src/tabviews/custom/components/module/voucher/resetAttach/addAttach/index.jsx
@@ -20,6 +20,7 @@
         files.forEach(item => {
           if (item.data_code === values.data_code) {
             values.data_name = item.data_name
+            values.BID = item.id
           }
         })
 
@@ -59,7 +60,7 @@
         <Col span={12}>
           <Form.Item label="鏂囦欢澶�">
             {getFieldDecorator('data_code', {
-              initialValue: '',
+              initialValue: files[0] ? files[0].data_code : '',
               rules: [
                 {
                   required: true,
@@ -67,8 +68,8 @@
                 }
               ]
             })(<Select>
-              {files.map((option, i) =>
-                <Select.Option key={i} value={option.data_code}>{option.data_name}</Select.Option>
+              {files.map(option =>
+                <Select.Option key={option.id} value={option.data_code}>{option.data_name}</Select.Option>
               )}
             </Select>)}
           </Form.Item>
@@ -130,8 +131,8 @@
                   message: '璇疯緭鍏ユ枃浠跺悕锛�'
                 },
                 {
-                  max: 50,
-                  message: '鏈�澶ч暱搴︿负50浣嶏紒'
+                  max: 100,
+                  message: '鏈�澶ч暱搴︿负100浣嶏紒'
                 }
               ]
             })(<Input />)}

--
Gitblit v1.8.0