From d5a12181a3fe9719e721920fea6093e31cc58ecb Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 23 二月 2022 18:26:30 +0800
Subject: [PATCH] 2022-02-23

---
 src/tabviews/custom/components/module/voucher/index.jsx |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/custom/components/module/voucher/index.jsx b/src/tabviews/custom/components/module/voucher/index.jsx
index 59ea03c..f5a95a1 100644
--- a/src/tabviews/custom/components/module/voucher/index.jsx
+++ b/src/tabviews/custom/components/module/voucher/index.jsx
@@ -4,9 +4,11 @@
 import { Button, Select, Input, DatePicker } from 'antd'
 // import { EditOutlined, ToolOutlined, DeleteOutlined, FontColorsOutlined } from '@ant-design/icons'
 
+import asyncComponent from '@/utils/asyncComponent'
 // import MKEmitter from '@/utils/events.js'
-
 import './index.scss'
+
+const VoucherTable = asyncComponent(() => import('./voucherTable'))
 
 class VoucherModule extends Component {
   static propTpyes = {
@@ -70,7 +72,7 @@
   }
 
   render() {
-    const { config, disableSave, disableAdd, typeOptions } = this.state
+    const { config, disableSave, disableAdd, typeOptions, data } = this.state
 
     return (
       <div className="menu-voucher-wrap" style={config.style}>
@@ -87,13 +89,18 @@
                   <Select.Option value={option.value}>{option.label}</Select.Option>
                 )}
               </Select>
-              <Input autoComplete="off" />鍙�
+              <Input autoComplete="off" /> 鍙�
             </div>
             <div className="voucher-date">
               鏃ユ湡锛�<DatePicker onChange={this.onChange}/>
             </div>
+            <div className="voucher-affix">
+              闄勫崟鎹� <Input autoComplete="off" /> 寮�
+              <Button type="link" className="" onClick={this.triggerprint}>闄勪欢</Button>
+              <Button type="link" className="" onClick={this.triggerprint}>澶囨敞</Button>
+            </div>
           </div>
-
+          <VoucherTable config={config} data={data}/>
         </div>
       </div>
     )

--
Gitblit v1.8.0