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 {
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 {
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