From 32f1d2179f6d7ccb5b167aa40116a59e68851a90 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 13 二月 2023 18:09:04 +0800
Subject: [PATCH] 2023-02-13

---
 src/tabviews/custom/components/module/voucher/index.jsx |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/custom/components/module/voucher/index.jsx b/src/tabviews/custom/components/module/voucher/index.jsx
index 80c4e62..2932113 100644
--- a/src/tabviews/custom/components/module/voucher/index.jsx
+++ b/src/tabviews/custom/components/module/voucher/index.jsx
@@ -180,7 +180,9 @@
         })
       } else {
         this.setState({
-          typeOptions: typeOptions
+          typeOptions: typeOptions,
+          orgcode: res.orgcode,
+          orgname: res.orgname,
         })
       }
 
@@ -308,8 +310,8 @@
         charType: res.voucher_class,
         charName: res.voucher_char,
         charInt: res.voucher_char_int,
-        orgcode: res.orgcode,
-        orgname: res.orgname,
+        // orgcode: res.orgcode,
+        // orgname: res.orgname,
         tbdata: fromJS(data).toJS(),
         status: 'saved'
       })
@@ -703,7 +705,7 @@
   }
 
   render() {
-    const { type, status, loading, config, typeOptions, charType, charInt, data, vouDate, username, remark, attachments, title, attachlist } = this.state
+    const { type, status, book, loading, config, orgcode, typeOptions, charType, charInt, data, vouDate, username, remark, attachments, title, attachlist } = this.state
 
     return (
       <div className="menu-voucher-wrap" style={config.style}>
@@ -736,7 +738,7 @@
             </div>
             <div className="voucher-affix">
               闄勫崟鎹� <InputNumber precision={0} value={attachments || 0} autoComplete="off" onChange={this.changeAttach}/> 寮�
-              <ResetAttach attachlist={attachlist} onChange={(vals) => this.setState({attachlist: vals})}/>
+              <ResetAttach config={config} book={book} orgcode={orgcode} attachlist={attachlist} onChange={(vals) => this.setState({attachlist: vals})}/>
               <ResetRemark remark={remark} ID={config.uuid + 'remark'} onChange={(val) => this.setState({remark: val})}/>
             </div>
           </div> : null}

--
Gitblit v1.8.0