Commit a94db154 by YuMengShuai

新增个人购汇部分交易

parent 1f4ed1d6
export {default as model} from './model'
export {default} from './views/'
\ No newline at end of file
import { action, observable } from 'mobx'
import {modelWrapper} from '@/components/RunTime'
@modelWrapper
class Fcyadd {
@observable
actiontyp="" //操作类型
@observable
reasonremark="" //补录/修改/撤销原因
@observable
reasoncod="" //补录/修改/撤销原因代码
@observable
baksrinum="" //银行自身流水号
@observable
biztypcod="" //业务类型代码
@observable
idtypecod="" //证件类型代码
@observable
idcode="" //证件号码
@observable
personnam="" //姓名
@observable
addidcode="" //补充证件号码
@observable
ctycod="" //国家/地区代码
@observable
puraddcny="" //购汇人民币账户
@observable
purfxtypecod="" //购汇资金属性代码
@observable
lcyacctno="" //个人外汇账户账户
@observable
cur="" //币种
@observable
biztxchnlcod="" //业务办理渠道代码
@observable
puramt="" //购汇金额
@observable
biztxtime="" //业务办理时间
@observable
purcshamt="" //购汇提钞金额
@observable
remark="" //备注
@observable
fcyremamt="" //汇出资金金额
@observable
agentcorpnam="" //代理企业名称
@observable
fcyaccamt="" //存入个人外汇账户金额
@observable
indivorgcode="" //个体工商户组织机构代码
@observable
tchamt="" //旅行支票金额
@observable
capitalno="" //外汇局批件号
@observable
payorgcod="" //支付机构组织代码
@observable
indivorgname="" //个体工商户名称
@observable
agentcorpcod="" //代理企业组织机构代码
clear()
{
this.actiontyp="" //操作类型
this.reasonremark="" //补录/修改/撤销原因
this.reasoncod="" //补录/修改/撤销原因代码
this.baksrinum="" //银行自身流水号
this.biztypcod="" //业务类型代码
this.idtypecod="" //证件类型代码
this.idcode="" //证件号码
this.personnam="" //姓名
this.addidcode="" //补充证件号码
this.ctycod="" //国家/地区代码
this.puraddcny="" //购汇人民币账户
this.purfxtypecod="" //购汇资金属性代码
this.lcyacctno="" //个人外汇账户账户
this.cur="" //币种
this.biztxchnlcod="" //业务办理渠道代码
this.puramt="" //购汇金额
this.biztxtime="" //业务办理时间
this.purcshamt="" //购汇提钞金额
this.remark="" //备注
this.fcyremamt="" //汇出资金金额
this.agentcorpnam="" //代理企业名称
this.fcyaccamt="" //存入个人外汇账户金额
this.indivorgcode="" //个体工商户组织机构代码
this.tchamt="" //旅行支票金额
this.capitalno="" //外汇局批件号
this.payorgcod="" //支付机构组织代码
this.indivorgname="" //个体工商户名称
this.agentcorpcod="" //代理企业组织机构代码
}
}
export default Fcyadd
\ No newline at end of file
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,BottomBtn} from '@/components/Common-Library'
import Api from '@/service/api'
import mFcyadd from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col, Table} from 'antd';
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class FcyaddScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'fcyadd'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mFcyadd()
this.bind = Bind.bind(this)
}
// async componentWillMount()
// {
// /*
// *添加初始化代码
// */
// const rtnmsg = await Api.post('fcyadd/init',{data:this.model})
// if(rtnmsg.retcod == SUCCESS)
// {
// const {data} = rtnmsg
// runInAction(()=>{
// Object.assign(this.model,data)
// })
// }
// //快照模式下,不必开启校验,否则,静默校验,和记录变动
// !this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
// }
// componentWillUnmount()
// {
// this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
// }
//
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
{/* brtp/brthdr */}
{/* 第1行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="操作类型" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("actiontyp")} maxLength={16} desp="操作类型" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="补录修改撤销原因代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("reasoncod")} maxLength={16} desp="补录/修改/撤销原因代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="补录/修改/撤销原因" trn="fcyadd" />
</Col>
<Col span={14} >
<TextAreaItem rows={3} InputProps={bind("reasonremark")} desp="补录/修改/撤销原因" />
</Col>
</Row>
</Col>
</Row>
{/* 第2行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="银行自身流水号" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("baksrinum")} maxLength={16} desp="银行自身流水号" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="业务类型代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("biztypcod")} maxLength={16} desp="业务类型代码" />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="证件类型代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("idtypecod")} maxLength={16} desp="证件类型代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="证件号码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("idcode")} maxLength={16} desp="证件号码" />
</Col>
</Row>
</Col>
</Row>
{/* 第4行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="姓名" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("personnam")} maxLength={16} desp="姓名" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="补充证件号码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("addidcode")} maxLength={16} desp="补充证件号码" />
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="国家/地区代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ctycod")} maxLength={16} desp="国家/地区代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇人民币账户" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("puraddcny")} maxLength={16} desp="购汇人民币账户" />
</Col>
</Row>
</Col>
</Row>
{/* 第6行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇资金属性代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("purfxtypecod")} maxLength={16} desp="购汇资金属性代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="个人外汇账户账户" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("lcyacctno")} maxLength={16} desp="个人外汇账户账户" />
</Col>
</Row>
</Col>
</Row>
{/* 第7行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="币种" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("cur")} maxLength={16} desp="币种" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="业务办理渠道代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("biztxchnlcod")} maxLength={16} desp="业务办理渠道代码" />
</Col>
</Row>
</Col>
</Row>
{/* 第8行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇金额" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("puramt")} maxLength={16} desp="购汇金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="业务办理时间" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("biztxtime")} maxLength={16} desp="业务办理时间" />
</Col>
</Row>
</Col>
</Row>
{/* 第9行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇提钞金额" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("purcshamt")} maxLength={16} desp="购汇提钞金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="备注" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("remark")} maxLength={16} desp="备注" />
</Col>
</Row>
</Col>
</Row>
{/* 第10行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="汇出资金金额" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("fcyremamt")} maxLength={16} desp="汇出资金金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="代理企业名称" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("agentcorpnam")} maxLength={16} desp="代理企业名称" />
</Col>
</Row>
</Col>
</Row>
{/* 第11行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="存入个人外汇账户金额" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("fcyaccamt")} maxLength={16} desp="存入个人外汇账户金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="个体工商户机构代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("indivorgcode")} maxLength={16} desp="个体工商户组织机构代码" />
</Col>
</Row>
</Col>
</Row>
{/* 第12行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="旅行支票金额" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("tchamt")} maxLength={16} desp="旅行支票金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="外汇局批件号" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("capitalno")} maxLength={16} desp="外汇局批件号" />
</Col>
</Row>
</Col>
</Row>
{/* 第13行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="支付机构组织代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("payorgcod")} maxLength={16} desp="支付机构组织代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="个体工商户名称" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("indivorgname")} maxLength={16} desp="个体工商户名称" />
</Col>
</Row>
</Col>
</Row>
{/* 第13行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="代理企业组织机构代码" trn="fcyadd" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("agentcorpcod")} maxLength={16} desp="代理企业组织机构代码" />
</Col>
</Row>
</Col>
</Row>
<BottomBtn _this={this} />
</div>
)
}
}
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, Table, TextArea, ConfirmButton, Steps
} from '@/components/Common-Library'
import Api from '@/service/api'
import mFcyadd from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable, runInAction } from 'mobx'
import Basic from './Basic'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import Engp from '@/views/Public/Engp'
import { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class FcyaddScreen extends Page {
@observable
formBlur = false
@observable
extra = { inifrm: 'fcyadd', sptinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mFcyadd()
}
//交易初始化
async componentWillMount() {
let brdinr = '';
if (this.props.location.query) {
if(this.props.location.query.from=="sptsel"){
this.extra.sptinr=this.props.location.query.sptinr;
}else{
brdinr=this.props.location.query.brdinr;
}
}
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { sptinr:this.extra.sptinr,brdinr } })
if (rtnmsg.retcod == SUCCESS) {
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
this.extra.bopmod_szflg = rtnmsg.codetable.bopmod_szflg;
Object.assign(this.model, rtnmsg.data)
this.model.max_cur = 'CNY'
this.model.concur = 'CNY'
this.model.nom1_cur= 'CNY'
this.setState({ flag: false })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor() //开启校验
}
componentWillUnmount() {
this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage() {
return (
<Card title="个人购汇" size="small" className="transTitle">
<Steps>
<StepItem title="新增">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
{/* <StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem> */}
</Steps>
</Card>
)
}
}
export {default as model} from './model'
export {default} from './views/'
\ No newline at end of file
import { action, observable } from 'mobx'
import {modelWrapper} from '@/components/RunTime'
@modelWrapper
class Fcyame {
@observable
actiontyp="" //操作类型
@observable
reasonremark="" //补录/修改/撤销原因
@observable
reasoncod="" //补录/修改/撤销原因代码
@observable
baksrinum="" //银行自身流水号
@observable
biztypcod="" //业务类型代码
@observable
idtypecod="" //证件类型代码
@observable
idcode="" //证件号码
@observable
personnam="" //姓名
@observable
addidcode="" //补充证件号码
@observable
ctycod="" //国家/地区代码
@observable
puraddcny="" //购汇人民币账户
@observable
purfxtypecod="" //购汇资金属性代码
@observable
lcyacctno="" //个人外汇账户账户
@observable
cur="" //币种
@observable
biztxchnlcod="" //业务办理渠道代码
@observable
puramt="" //购汇金额
@observable
biztxtime="" //业务办理时间
@observable
purcshamt="" //购汇提钞金额
@observable
remark="" //备注
@observable
fcyremamt="" //汇出资金金额
@observable
agentcorpnam="" //代理企业名称
@observable
fcyaccamt="" //存入个人外汇账户金额
@observable
indivorgcode="" //个体工商户组织机构代码
@observable
tchamt="" //旅行支票金额
@observable
capitalno="" //外汇局批件号
@observable
payorgcod="" //支付机构组织代码
@observable
indivorgname="" //个体工商户名称
@observable
agentcorpcod="" //代理企业组织机构代码
clear()
{
this.actiontyp="" //操作类型
this.reasonremark="" //补录/修改/撤销原因
this.reasoncod="" //补录/修改/撤销原因代码
this.baksrinum="" //银行自身流水号
this.biztypcod="" //业务类型代码
this.idtypecod="" //证件类型代码
this.idcode="" //证件号码
this.personnam="" //姓名
this.addidcode="" //补充证件号码
this.ctycod="" //国家/地区代码
this.puraddcny="" //购汇人民币账户
this.purfxtypecod="" //购汇资金属性代码
this.lcyacctno="" //个人外汇账户账户
this.cur="" //币种
this.biztxchnlcod="" //业务办理渠道代码
this.puramt="" //购汇金额
this.biztxtime="" //业务办理时间
this.purcshamt="" //购汇提钞金额
this.remark="" //备注
this.fcyremamt="" //汇出资金金额
this.agentcorpnam="" //代理企业名称
this.fcyaccamt="" //存入个人外汇账户金额
this.indivorgcode="" //个体工商户组织机构代码
this.tchamt="" //旅行支票金额
this.capitalno="" //外汇局批件号
this.payorgcod="" //支付机构组织代码
this.indivorgname="" //个体工商户名称
this.agentcorpcod="" //代理企业组织机构代码
}
}
export default Fcyame
\ No newline at end of file
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,BottomBtn} from '@/components/Common-Library'
import Api from '@/service/api'
import mFcyame from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col, Table} from 'antd';
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class FcyameScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'fcyame'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mFcyame()
this.bind = Bind.bind(this)
}
// async componentWillMount()
// {
// /*
// *添加初始化代码
// */
// const rtnmsg = await Api.post('fcyame/init',{data:this.model})
// if(rtnmsg.retcod == SUCCESS)
// {
// const {data} = rtnmsg
// runInAction(()=>{
// Object.assign(this.model,data)
// })
// }
// //快照模式下,不必开启校验,否则,静默校验,和记录变动
// !this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
// }
// componentWillUnmount()
// {
// this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
// }
//
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
{/* brtp/brthdr */}
{/* 第1行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="操作类型" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("actiontyp")} maxLength={16} desp="操作类型" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="补录修改撤销原因代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("reasoncod")} maxLength={16} desp="补录/修改/撤销原因代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="补录/修改/撤销原因" trn="fcyame" />
</Col>
<Col span={14} >
<TextAreaItem rows={3} InputProps={bind("reasonremark")} desp="补录/修改/撤销原因" />
</Col>
</Row>
</Col>
</Row>
{/* 第2行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="银行自身流水号" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("baksrinum")} maxLength={16} desp="银行自身流水号" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="业务类型代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("biztypcod")} maxLength={16} desp="业务类型代码" />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="证件类型代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("idtypecod")} maxLength={16} desp="证件类型代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="证件号码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("idcode")} maxLength={16} desp="证件号码" />
</Col>
</Row>
</Col>
</Row>
{/* 第4行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="姓名" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("personnam")} maxLength={16} desp="姓名" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="补充证件号码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("addidcode")} maxLength={16} desp="补充证件号码" />
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="国家/地区代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ctycod")} maxLength={16} desp="国家/地区代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇人民币账户" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("puraddcny")} maxLength={16} desp="购汇人民币账户" />
</Col>
</Row>
</Col>
</Row>
{/* 第6行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇资金属性代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("purfxtypecod")} maxLength={16} desp="购汇资金属性代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="个人外汇账户账户" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("lcyacctno")} maxLength={16} desp="个人外汇账户账户" />
</Col>
</Row>
</Col>
</Row>
{/* 第7行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="币种" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("cur")} maxLength={16} desp="币种" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="业务办理渠道代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("biztxchnlcod")} maxLength={16} desp="业务办理渠道代码" />
</Col>
</Row>
</Col>
</Row>
{/* 第8行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇金额" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("puramt")} maxLength={16} desp="购汇金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="业务办理时间" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("biztxtime")} maxLength={16} desp="业务办理时间" />
</Col>
</Row>
</Col>
</Row>
{/* 第9行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="购汇提钞金额" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("purcshamt")} maxLength={16} desp="购汇提钞金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="备注" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("remark")} maxLength={16} desp="备注" />
</Col>
</Row>
</Col>
</Row>
{/* 第10行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="汇出资金金额" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("fcyremamt")} maxLength={16} desp="汇出资金金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="代理企业名称" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("agentcorpnam")} maxLength={16} desp="代理企业名称" />
</Col>
</Row>
</Col>
</Row>
{/* 第11行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="存入个人外汇账户金额" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("fcyaccamt")} maxLength={16} desp="存入个人外汇账户金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="个体工商户机构代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("indivorgcode")} maxLength={16} desp="个体工商户组织机构代码" />
</Col>
</Row>
</Col>
</Row>
{/* 第12行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="旅行支票金额" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("tchamt")} maxLength={16} desp="旅行支票金额" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="外汇局批件号" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("capitalno")} maxLength={16} desp="外汇局批件号" />
</Col>
</Row>
</Col>
</Row>
{/* 第13行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="支付机构组织代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("payorgcod")} maxLength={16} desp="支付机构组织代码" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="个体工商户名称" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("indivorgname")} maxLength={16} desp="个体工商户名称" />
</Col>
</Row>
</Col>
</Row>
{/* 第13行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="代理企业组织机构代码" trn="fcyame" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("agentcorpcod")} maxLength={16} desp="代理企业组织机构代码" />
</Col>
</Row>
</Col>
</Row>
<BottomBtn _this={this} />
</div>
)
}
}
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, Table, TextArea, ConfirmButton, Steps
} from '@/components/Common-Library'
import Api from '@/service/api'
import mFcyame from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable, runInAction } from 'mobx'
import Basic from './Basic'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import Engp from '@/views/Public/Engp'
import { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class FcyameScreen extends Page {
@observable
formBlur = false
@observable
extra = { inifrm: 'fcyame', sptinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mFcyame()
}
//交易初始化
async componentWillMount() {
let brdinr = '';
if (this.props.location.query) {
if(this.props.location.query.from=="sptsel"){
this.extra.sptinr=this.props.location.query.sptinr;
}else{
brdinr=this.props.location.query.brdinr;
}
}
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { sptinr:this.extra.sptinr,brdinr } })
if (rtnmsg.retcod == SUCCESS) {
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
this.extra.bopmod_szflg = rtnmsg.codetable.bopmod_szflg;
Object.assign(this.model, rtnmsg.data)
this.model.max_cur = 'CNY'
this.model.concur = 'CNY'
this.model.nom1_cur= 'CNY'
this.setState({ flag: false })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor() //开启校验
}
componentWillUnmount() {
this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage() {
return (
<Card title="个人购汇" size="small" className="transTitle">
<Steps>
<StepItem title="修改">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
{/* <StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem> */}
</Steps>
</Card>
)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment