king
2023-02-13 32f1d2179f6d7ccb5b167aa40116a59e68851a90
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}