king
2022-02-23 d5a12181a3fe9719e721920fea6093e31cc58ecb
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>
    )