Commit e7a7a6bb by qiuxia

新增lcyadd和lcyame

parent a94db154
export {default as model} from './model'
export {default as descriptor} from './descriptor'
export {default} from './views'
\ No newline at end of file
import { action, observable } from 'mobx'
import _descriptor from '../descriptor'
import {modelWrapper} from '@/components/RunTime'
@modelWrapper
class Lcyadd {
@observable
actiontyp="" //操作类型
@observable
reasonremark="" // 补录/修改/撤销原因
@observable
reasoncod="" // 补录修改原因代码
@observable
baksrinum="" // 银行自身流水号
@observable
biztypcod="" // 业务类型代码
@observable
idtypecod="" // 证件类型代码
@observable
idcode="" // 证件号码
@observable
ctycod="" // 国家/地区代码
@observable
addidcode="" // 补充证件号码
@observable
personnam="" // 姓名
@observable
salefxtxcode="" // 结汇资金属性代码
@observable
cur="" // 币种
@observable
salefxamt="" // 结汇金额
@observable
lcycnyacc="" // 结汇人民币账户
@observable
selsetcod="" // 结汇资金形态代码
@observable
lcyacctno="" //个人外汇账户账号
@observable
biztxchnlcod="" // 业务办理渠道代码
@observable
业务办理时间="" // 业务办理时间
@observable
remark="" // 备注
@observable
agentcorpcod="" // 代理企业组织机构代码
@observable
agentcorpnam="" // 代理企业名称
@observable
indivorgcode="" // 个体工商户组织机构代码
@observable
indivorgname="" // 个体工商户名称
@observable
payorgcod="" // 支付机构组织代码
@observable
capitalno="" // 外汇局批件号
get descriptor()
{
return _descriptor
}
clear()
{
this.actiontyp=""
this.reasonremark=""
this.reasoncod=""
this.baksrinum=""
this.biztypcod=""
this.idtypecod=""
this.idcode=""
this.ctycod=""
this.addidcode=""
this.personnam=""
this.salefxtxcode=""
this.cur=""
this.salefxamt=""
this.lcycnyacc=""
this.selsetcod=""
this.lcyacctno=""
this.biztxchnlcod=""
this.biztxtime=""
this.remark=""
this.agentcorpcod=""
this.agentcorpnam=""
this.indivorgcode=""
this.indivorgname=""
this.payorgcod=""
this.capitalno=""
}
}
export default Lcyadd
\ 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,Table,Steps} from '@/components/Common-Library'
import Api from '@/service/api'
import mLcyadd 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 { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class LcyaddScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'lcyadd'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mLcyadd()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('lcyadd/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 (
<Card title="个人结汇新增" size="small" className="transTitle">
<Steps>
<StepItem title="新增">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
</Steps>
</Card>
)
}
}
export {default as model} from './model'
export {default as descriptor} from './descriptor'
export {default} from './views'
\ No newline at end of file
import { action, observable } from 'mobx'
import _descriptor from '../descriptor'
import {modelWrapper} from '@/components/RunTime'
@modelWrapper
class Lcyadd {
@observable
actiontyp="" //操作类型
@observable
reasonremark="" // 补录/修改/撤销原因
@observable
reasoncod="" // 补录修改原因代码
@observable
baksrinum="" // 银行自身流水号
@observable
biztypcod="" // 业务类型代码
@observable
idtypecod="" // 证件类型代码
@observable
idcode="" // 证件号码
@observable
ctycod="" // 国家/地区代码
@observable
addidcode="" // 补充证件号码
@observable
personnam="" // 姓名
@observable
salefxtxcode="" // 结汇资金属性代码
@observable
cur="" // 币种
@observable
salefxamt="" // 结汇金额
@observable
lcycnyacc="" // 结汇人民币账户
@observable
selsetcod="" // 结汇资金形态代码
@observable
lcyacctno="" //个人外汇账户账号
@observable
biztxchnlcod="" // 业务办理渠道代码
@observable
业务办理时间="" // 业务办理时间
@observable
remark="" // 备注
@observable
agentcorpcod="" // 代理企业组织机构代码
@observable
agentcorpnam="" // 代理企业名称
@observable
indivorgcode="" // 个体工商户组织机构代码
@observable
indivorgname="" // 个体工商户名称
@observable
payorgcod="" // 支付机构组织代码
@observable
capitalno="" // 外汇局批件号
get descriptor()
{
return _descriptor
}
clear()
{
this.actiontyp=""
this.reasonremark=""
this.reasoncod=""
this.baksrinum=""
this.biztypcod=""
this.idtypecod=""
this.idcode=""
this.ctycod=""
this.addidcode=""
this.personnam=""
this.salefxtxcode=""
this.cur=""
this.salefxamt=""
this.lcycnyacc=""
this.selsetcod=""
this.lcyacctno=""
this.biztxchnlcod=""
this.biztxtime=""
this.remark=""
this.agentcorpcod=""
this.agentcorpnam=""
this.indivorgcode=""
this.indivorgname=""
this.payorgcod=""
this.capitalno=""
}
}
export default Lcyadd
\ 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,Table,Steps} from '@/components/Common-Library'
import Api from '@/service/api'
import mLcyame 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 { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class LcyameScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'lcyame'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mLcyame()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('lcyame/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 (
<Card title="个人结汇修改" size="small" className="transTitle">
<Steps>
<StepItem title="修改">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</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