Commit 870b0f11 by qiuxia

新增进口保函其他交易

parent b368a260
export {default as model} from './model'
export {default as descriptor} from './descriptor'
export {default} from './views'
\ 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,BottomBtn} from '@/components/Common-Library'
import Api from '@/service/api'
import mGitadd 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} from 'antd'
import Ptspta2 from '@/views/Public/Ptspta2'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GitaddScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitadd'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGitadd()
this.bind = Bind.bind(this)
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmation Status" trn="gitadd" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("cnfsta")} code={CodeTable.cnfsta} desp="Confirmation Status" path="/gidgrp/rec/cnfsta"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmation Amount" trn="gitadd" />
</Col>
<Col span={3}>
<InputItem InputProps={bind("cnf_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/cnf/cur" />
</Col>
<Col span={4} offset={1}>
<InputItem InputProps={bind("cnf_amt")} desp="Balance" path="/gidgrp/cbs/cnf/amt" />
</Col>
<Col span={1} style={{marginLeft:12}}>
<Label itext="or" trn="gitadd" />
</Col>
<Col span={4}>
<InputItem InputProps={bind("partcon")} desp="Partial Confirmation" path="/gidgrp/rec/partcon" />
</Col>
<Col span={1} style={{marginLeft:12}}>
<Label itext="%" trn="gitadd" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmed on" trn="gitadd" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("cnfdat")} desp="Confirmation Date" path="/gidgrp/rec/cnfdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank's Ref. " trn="gitadd" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gidgrp/con/pts/ref" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts4_ref")} maxLength={16} desp="参考号" path="/gidgrp/iss/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Confirming Bank" trn="gitadd" /> */}
<Row>
<Col span={12}>
{/* <Row className="row">
<Col span={16} offset={2}>
<InputItem InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/con/pts/extkey" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" icon="search" onClick={this.onConp_sel} desp="查询" path="/gitp/conp/sel">
<Label itext="查询"/>
</Button>
</Col>
</Row> */}
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts3', url: 'gitadd/conp_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
</Col>
<Col span={12}>
{/* <Row className="row">
<Col span={16} offset={2}>
<InputItem InputProps={bind("pts4_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/iss/pts/extkey" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" icon="search" onClick={this.onIssp_sel} desp="查询" path="/gitp/issp/sel">
<Label itext="查询"/>
</Button>
</Col>
</Row> */}
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts4', url: 'gitadd/issp_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
</Col>
</Row>
{/* <Row>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
<TextAreaItem InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/gidgrp/con/pts/adrblk"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
<TextAreaItem InputProps={bind("pts4_adrblk")} desp="SWIFT地址" path="/gidgrp/iss/pts/adrblk"/>
</Col>
</Row>
</Col>
</Row> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
)
}
}
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 mGitadd from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import Ovwp from './Ovwp'
import Confp from './Confp'
import Detp from './Detp'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitaddScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitadd'}
}
@observable
formBlur=false
@observable
extra = { inifrm: 'gitadd', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
this.model = new mGitadd()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitadd/init',{params: { gidinr:this.extra.gidinr}})
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="Editing Contract without generating Correspondence" size="small" className="transTitle">
<Steps>
<StepItem title="overview">
<Ovwp model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<StepItem title="Confirmation Details">
<Confp model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<StepItem title="Details">
<Detp 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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
......@@ -135,7 +135,7 @@ export default fieldSet = {
// {type:'string',max:12,message:'长度不能超过12个字符'}, // \oldgidgrp\rec\liadat Liability until
],
pts_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\adv\pts\adrblk SWIFT地址
{type:'string',max:135,message:'长度不能超过135个字符'}, // \gidgrp\adv\pts\adrblk SWIFT地址
],
pts_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\adv\pts\extkey 客户编号
......@@ -144,7 +144,7 @@ export default fieldSet = {
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\adv\pts\ref 参考号
],
pts1_adrblk:[
{type:'string',max:135,message:'长度不能超过35个字符'}, // \gidgrp\apl\pts\adrblk SWIFT地址
{type:'string',max:135,message:'长度不能超过135个字符'}, // \gidgrp\apl\pts\adrblk SWIFT地址
],
pts1_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\apl\pts\extkey 客户编号
......@@ -153,7 +153,7 @@ export default fieldSet = {
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\apl\pts\ref 参考号
],
pts2_adrblk:[
{type:'string',max:135,message:'长度不能超过35个字符'}, // \gidgrp\ben\pts\adrblk SWIFT地址
{type:'string',max:135,message:'长度不能超过135个字符'}, // \gidgrp\ben\pts\adrblk SWIFT地址
],
pts2_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\ben\pts\extkey 客户编号
......@@ -216,7 +216,7 @@ export default fieldSet = {
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn2\cur Currency
],
pts3_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\con\pts\adrblk SWIFT地址
{type:'string',max:135,message:'长度不能超过135个字符'}, // \gidgrp\con\pts\adrblk SWIFT地址
],
pts3_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\con\pts\extkey 客户编号
......@@ -237,7 +237,7 @@ export default fieldSet = {
{type:'string',max:20,message:'长度不能超过20个字符'}, // \gidgrp\ghd\wahnum 仓库号
],
pts4_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\iss\pts\adrblk SWIFT地址
{type:'string',max:135,message:'长度不能超过135个字符'}, // \gidgrp\iss\pts\adrblk SWIFT地址
],
pts4_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\iss\pts\extkey 客户编号
......
......@@ -85,6 +85,7 @@ export default class GitameScreen extends Page
return (
<div style={{ position: 'relative' }}>
<Business wrappedComponentRef={ref => (this.com = ref)} page={this} steps={this.props.steps} extra={this.props.extra} model={this.model} />
<Row>
<Col span={12}>
<Row className="row">
......@@ -92,13 +93,18 @@ export default class GitameScreen extends Page
<Label itext="Confirmation Status" trn="gitame" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("cnfsta")} code={CodeTable.cnfsta} desp="Confirmation Status" path="/gidgrp/rec/cnfsta"/>
<SelectItem disabled={true} InputProps={bind("cnfsta")} code={CodeTable.cnfsta} desp="Confirmation Status" path="/gidgrp/rec/cnfsta"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmed on" trn="gitame" />
</Col>
<Col span={14}>
<DatePickerItem disabled={true} InputProps={bind("cnfdat")} desp="Confirmation Date" path="/gidgrp/rec/cnfdat" />
</Col>
</Row>
</Col>
</Row>
......@@ -109,16 +115,16 @@ export default class GitameScreen extends Page
<Label itext="Confirmation Amount" trn="gitame" />
</Col>
<Col span={4}>
<InputItem InputProps={bind("cnf_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/cnf/cur" />
<InputItem disabled={true} InputProps={bind("cnf_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/cnf/cur" />
</Col>
<Col span={4} offset={1}>
<InputItem InputProps={bind("cnf_amt")} desp="Balance" path="/gidgrp/cbs/cnf/amt" />
<InputItem disabled={true} InputProps={bind("cnf_amt")} desp="Balance" path="/gidgrp/cbs/cnf/amt" />
</Col>
<Col span={1} offset={1}>
<Label itext="or" trn="gitame" />
</Col>
<Col span={4}>
<InputItem InputProps={bind("partcon")} desp="Partial Confirmation" path="/gidgrp/rec/partcon" />
<InputItem disabled={true} InputProps={bind("partcon")} desp="Partial Confirmation" path="/gidgrp/rec/partcon" />
</Col>
<Col span={1} offset={1}>
<Label itext="%" trn="gitame" />
......@@ -128,47 +134,26 @@ export default class GitameScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmed on" trn="gitame" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("cnfdat")} desp="Confirmation Date" path="/gidgrp/rec/cnfdat" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Confirming Bank" trn="gitame" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank's Ref. " trn="gitame" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gidgrp/con/pts/ref" />
<InputItem disabled={true} InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gidgrp/con/pts/ref" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts4_ref")} maxLength={16} desp="参考号" path="/gidgrp/iss/pts/ref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
</Col>
<Col span={14}>
</Col>
<InputItem disabled={true} InputProps={bind("pts4_ref")} maxLength={16} desp="参考号" path="/gidgrp/iss/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Confirming Bank" trn="gitame" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={14} offset={2}>
<InputItem InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/con/pts/extkey" />
<Col span={15} offset={2}>
<InputItem disabled={true} InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/con/pts/extkey" />
</Col>
<Col span={5} offset={1}>
<Col span={3} offset={1}>
<Button type="primary" icon="search" onClick={this.onConp_sel} desp="查询" path="/gitp/conp/sel">
<Label itext="查询"/>
</Button>
......@@ -177,10 +162,10 @@ export default class GitameScreen extends Page
</Col>
<Col span={12}>
<Row className="row">
<Col span={14} offset={2}>
<InputItem InputProps={bind("pts4_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/iss/pts/extkey" />
<Col span={15} offset={2}>
<InputItem disabled={true} InputProps={bind("pts4_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/iss/pts/extkey" />
</Col>
<Col span={5} offset={1}>
<Col span={3} offset={1}>
<Button type="primary" icon="search" onClick={this.onIssp_sel} desp="查询" path="/gitp/issp/sel">
<Label itext="查询"/>
</Button>
......@@ -193,14 +178,14 @@ export default class GitameScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
<TextAreaItem InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/gidgrp/con/pts/adrblk"/>
<TextAreaItem disabled={true} InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/gidgrp/con/pts/adrblk"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
<TextAreaItem InputProps={bind("pts4_adrblk")} desp="SWIFT地址" path="/gidgrp/iss/pts/adrblk"/>
<TextAreaItem disabled={true} InputProps={bind("pts4_adrblk")} desp="SWIFT地址" path="/gidgrp/iss/pts/adrblk"/>
</Col>
</Row>
</Col>
......
......@@ -67,12 +67,13 @@ export default class GitameScreen extends Page
<div style={{ position: 'relative' }}>
<Row>
<Col span={12}>
<Business wrappedComponentRef={ref => (this.com = ref)} page={this} steps={this.props.steps} extra={this.props.extra} model={this.model} />
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Declaration of" trn="gitame" />
</Col>
<Col span={11}>
<TextAreaItem InputProps={bind("blk_revtxt")} desp="Declaration of Indemnity Text" path="/gidgrp/blk/revtxt"/>
<TextAreaItem disabled={true} InputProps={bind("blk_revtxt")} desp="Declaration of Indemnity Text" path="/gidgrp/blk/revtxt"/>
</Col>
<Col span={2} offset={1}>
<Button type="primary" icon="search" onClick={this.onRevtxt_buttxmsel} desp="..." path="/gitp/revtxt/buttxmsel">
......@@ -97,10 +98,10 @@ export default class GitameScreen extends Page
<Label itext="Additional Amount" trn="gitame" />
</Col>
<Col span={6}>
<SelectItem InputProps={bind("max2_cur")} code={CodeTable.curtxt} desp="Currency" path="/gidgrp/cbs/max2/cur"/>
<SelectItem disabled={true} InputProps={bind("max2_cur")} code={CodeTable.curtxt} desp="Currency" path="/gidgrp/cbs/max2/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max2_amt")} desp="Balance" path="/gidgrp/cbs/max2/amt" />
<InputItem disabled={true} InputProps={bind("max2_amt")} desp="Balance" path="/gidgrp/cbs/max2/amt" />
</Col>
</Row>
</Col>
......@@ -110,10 +111,10 @@ export default class GitameScreen extends Page
<Label itext="Open Add. Amount" trn="gitame" />
</Col>
<Col span={6}>
<SelectItem InputProps={bind("opn2_cur")} code={CodeTable.curtxt} desp="Currency" path="/gidgrp/cbs/opn2/cur"/>
<SelectItem disabled={true} InputProps={bind("opn2_cur")} code={CodeTable.curtxt} desp="Currency" path="/gidgrp/cbs/opn2/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("opn2_amt")} desp="Balance" path="/gidgrp/cbs/opn2/amt" />
<InputItem disabled={true} InputProps={bind("opn2_amt")} desp="Balance" path="/gidgrp/cbs/opn2/amt" />
</Col>
</Row>
</Col>
......@@ -126,7 +127,7 @@ export default class GitameScreen extends Page
<Label itext="Covered" trn="gitame" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("blk_addamtcov")} desp="Additional Amount Covered" path="/gidgrp/blk/addamtcov"/>
<TextAreaItem disabled={true} InputProps={bind("blk_addamtcov")} desp="Additional Amount Covered" path="/gidgrp/blk/addamtcov"/>
</Col>
</Row>
</Col>
......@@ -136,7 +137,7 @@ export default class GitameScreen extends Page
<Label itext="Amendments so Far" trn="gitame" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("blk_gidtxtame")} desp="History of Amendments" path="/gidgrp/blk/gidtxtame"/>
<TextAreaItem disabled={true} InputProps={bind("blk_gidtxtame")} desp="History of Amendments" path="/gidgrp/blk/gidtxtame"/>
</Col>
</Row>
</Col>
......
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
}
\ No newline at end of file
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 Gitatt {
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
pts_nam="" // \gidgrp\adv\pts\nam 客户英文名称
@observable
pts1_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts2_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts3_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
gitp0_aplmullab="" // \gitp0\aplmullab Label, that is set, if there are multiple applicants
@observable
gitp0_expfldlab="" // \gitp0\expfldlab Label for Field Validity
@observable
gitp0_liafldlab="" // \gitp0\liafldlab Label for Field Lability
get descriptor()
{
return _descriptor
}
clear()
{
this.expdat=""
this.gartyp=""
this.hndtyp=""
this.liadat=""
this.nam=""
this.ownref=""
this.pts_nam=""
this.pts1_nam=""
this.pts2_nam=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_nam=""
this.gitp0_aplmullab=""
this.gitp0_expfldlab=""
this.gitp0_liafldlab=""
}
}
export default Gitatt
\ 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,BottomBtn} from '@/components/Common-Library'
import Api from '@/service/api'
import mGitatt 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} from 'antd'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GitattScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitatt'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div style={{ position: 'relative' }}>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="gitatt" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="gitatt" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("nam")} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gidgrp/rec/nam" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Applicant" trn="gitatt" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="gitatt" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("max_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/max/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/gidgrp/cbs/max/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitatt" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="gitatt" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("opn1_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/opn1/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("opn1_amt")} desp="Balance" path="/gidgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitatt" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitatt" />
<Label itext="Adv\Rcv Bank" trn="gitatt" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitatt" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitatt" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitatt" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Valid until" trn="gitatt"/>
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitatt" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitatt" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
)
}
}
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 mGitatt 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitattScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitatt'}
}
@observable
formBlur=false
@observable
extra = { inifrm: 'gitatt', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
this.model = new mGitatt()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitatt/init',{params: { gidinr:this.extra.gidinr}})
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="Attaching an Incoming Message to a Guarantee" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem> */}
</Steps>
</Card>
)
}
}
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
purcan:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\rec\purcan Reason of Cancelation
],
autflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \autflg Authentication
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
mtabut_clsflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \mtabut\clsflg Close Flag
],
newref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \newref New Reference
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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 Gitcan {
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
purcan="" // \gidgrp\rec\purcan Reason of Cancelation
@observable
autflg="" // \autflg Authentication
@observable
pts_nam="" // \gidgrp\adv\pts\nam 客户英文名称
@observable
pts1_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts2_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts3_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
gitp0_aplmullab="" // \gitp0\aplmullab Label, that is set, if there are multiple applicants
@observable
gitp0_expfldlab="" // \gitp0\expfldlab Label for Field Validity
@observable
gitp0_liafldlab="" // \gitp0\liafldlab Label for Field Lability
@observable
liaall_liaallg=[] // \liaall\liaallg
@observable
liaccv_chgamt="" // \liaall\liaccv\chgamt 变动金额
@observable
liaccv_concur="" // \liaall\liaccv\concur 业务结算币种
@observable
liaccv_cshpct="" // \liaall\liaccv\cshpct 保证金应收比例
@observable
liaccv_liaccvg=[] // \liaall\liaccv\liaccvg
@observable
liaccv_newamt="" // \liaall\liaccv\newamt 业务金额
@observable
liaccv_pctresamt="" // \liaall\liaccv\pctresamt 应收/支保证金
@observable
liaccv_relcshpct="" // \liaall\liaccv\relcshpct 保证金实收比例
@observable
liaccv_totcovamt="" // \liaall\liaccv\totcovamt 保证金合计
@observable
mtabut_clsflg="" // \mtabut\clsflg Close Flag
@observable
newref="" // \newref New Reference
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
get descriptor()
{
return _descriptor
}
clear()
{
this.expdat=""
this.gartyp=""
this.hndtyp=""
this.liadat=""
this.nam=""
this.ownref=""
this.purcan=""
this.autflg=""
this.pts_nam=""
this.pts1_nam=""
this.pts2_nam=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_nam=""
this.gitp0_aplmullab=""
this.gitp0_expfldlab=""
this.gitp0_liafldlab=""
this.liaall_liaallg=[]
this.liaccv_chgamt=""
this.liaccv_concur=""
this.liaccv_cshpct=""
this.liaccv_liaccvg=[]
this.liaccv_newamt=""
this.liaccv_pctresamt=""
this.liaccv_relcshpct=""
this.liaccv_totcovamt=""
this.mtabut_clsflg=""
this.newref=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.glemod_glelst=[]
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_setmac=""
this.spt_inr=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
}
}
export default Gitcan
\ 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 mGitcan 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitcanScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitcan'}
}
@observable
formBlur=false
@observable
extra = { inifrm: 'gitame', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
this.model = new mGitcan()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitcan/init',{params: { gidinr:this.extra.gidinr }})
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="Cancelation of a Guarantee" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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 Gitcom {
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
pts_nam="" // \gidgrp\adv\pts\nam 客户英文名称
@observable
pts1_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts2_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts3_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
gitp0_aplmullab="" // \gitp0\aplmullab Label, that is set, if there are multiple applicants
@observable
gitp0_expfldlab="" // \gitp0\expfldlab Label for Field Validity
@observable
gitp0_liafldlab="" // \gitp0\liafldlab Label for Field Lability
@observable
liaall_liaallg=[] // \liaall\liaallg
@observable
liaccv_chgamt="" // \liaall\liaccv\chgamt 变动金额
@observable
liaccv_concur="" // \liaall\liaccv\concur 业务结算币种
@observable
liaccv_cshpct="" // \liaall\liaccv\cshpct 保证金应收比例
@observable
liaccv_liaccvg=[] // \liaall\liaccv\liaccvg
@observable
liaccv_newamt="" // \liaall\liaccv\newamt 业务金额
@observable
liaccv_pctresamt="" // \liaall\liaccv\pctresamt 应收/支保证金
@observable
liaccv_relcshpct="" // \liaall\liaccv\relcshpct 保证金实收比例
@observable
liaccv_totcovamt="" // \liaall\liaccv\totcovamt 保证金合计
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
get descriptor()
{
return _descriptor
}
clear()
{
this.expdat=""
this.gartyp=""
this.hndtyp=""
this.liadat=""
this.nam=""
this.ownref=""
this.pts_nam=""
this.pts1_nam=""
this.pts2_nam=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_nam=""
this.gitp0_aplmullab=""
this.gitp0_expfldlab=""
this.gitp0_liafldlab=""
this.liaall_liaallg=[]
this.liaccv_chgamt=""
this.liaccv_concur=""
this.liaccv_cshpct=""
this.liaccv_liaccvg=[]
this.liaccv_newamt=""
this.liaccv_pctresamt=""
this.liaccv_relcshpct=""
this.liaccv_totcovamt=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.glemod_glelst=[]
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_setmac=""
this.spt_inr=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
}
}
export default Gitcom
\ 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,BottomBtn} from '@/components/Common-Library'
import Api from '@/service/api'
import mGitcom 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} from 'antd'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GitcomScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitcom'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGitcom()
this.bind = Bind.bind(this)
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div style={{ position: 'relative' }}>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="gitcom" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="gitcom" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("nam")} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gidgrp/rec/nam" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Applicant" trn="gitcom" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="gitcom" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("max_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/max/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/gidgrp/cbs/max/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitcom"/>
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="gitcom" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("opn1_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/opn1/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("opn1_amt")} desp="Balance" path="/gidgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitcom" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitcom" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitcom" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitcom" />
<Label itext="Adv\Rcv Bank" trn="gitcom" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitcom" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Valid until" trn="gitcom"/>
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitcom" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitcom" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
)
}
}
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 mGitcom 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitcomScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitcom'}
}
@observable
formBlur=false
@observable
extra = { inifrm: 'gitcom', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
this.model = new mGitcom()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitcom/init',{params: { gidinr:this.extra.gidinr}})
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="Commission" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
clmdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gcdgrp\rec\clmdat Date of Claim
],
docprbrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\rec\docprbrol Presented by
],
msgdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gcdgrp\rec\msgdat Rejection Message Date
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gcdgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\rec\ownref Reference
],
payrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\rec\payrol Payer
],
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
ownref1:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gcdgrp\apl\pts\nam 客户英文名称
],
pts_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\apl\pts\ref 参考号
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gcdgrp\ben\pts\nam 客户英文名称
],
pts1_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\ben\pts\ref 参考号
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\opn1\cur Currency
],
pts2_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gcdgrp\oth\pts\adrblk SWIFT地址
],
pts2_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\oth\pts\extkey 客户编号
],
pts3_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gcdgrp\prb\pts\adrblk SWIFT地址
],
pts3_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\prb\pts\extkey 客户编号
],
pts3_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\prb\pts\ref 参考号
],
gctp_adaflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gctp\adaflg Add. Amount
],
gctp_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gctp\aplmullab Label, that is set, if there are multiple applicants
],
gctp_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gctp\expfldlab Label for Field Validity
],
gctp_explab:[
{type:'string',max:11,message:'长度不能超过11个字符'}, // \gctp\explab Label unlimited Validity
],
gctp_liafldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gctp\liafldlab Label for Field Liability
],
gctp_lialab:[
{type:'string',max:11,message:'长度不能超过11个字符'}, // \gctp\lialab Label unlimited Liability
],
opn11_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn11_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
mtabut_clsflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \mtabut\clsflg Close Flag
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
strinf:[
{type:'string',max:50,message:'长度不能超过50个字符'}, // \strinf Narrative
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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 Gitcrj {
@observable
clmdat="" // \gcdgrp\rec\clmdat Date of Claim
@observable
docprbrol="" // \gcdgrp\rec\docprbrol Presented by
@observable
msgdat="" // \gcdgrp\rec\msgdat Rejection Message Date
@observable
nam="" // \gcdgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gcdgrp\rec\ownref Reference
@observable
payrol="" // \gcdgrp\rec\payrol Payer
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
ownref1="" // \gidgrp\rec\ownref Reference
@observable
pts_nam="" // \gcdgrp\apl\pts\nam 客户英文名称
@observable
pts_ref="" // \gcdgrp\apl\pts\ref 参考号
@observable
pts1_nam="" // \gcdgrp\ben\pts\nam 客户英文名称
@observable
pts1_ref="" // \gcdgrp\ben\pts\ref 参考号
@observable
max_amt="" // \gcdgrp\cbs\max\amt Balance
@observable
max_cur="" // \gcdgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gcdgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gcdgrp\cbs\opn1\cur Currency
@observable
pts2_adrblk="" // \gcdgrp\oth\pts\adrblk SWIFT地址
@observable
pts2_extkey="" // \gcdgrp\oth\pts\extkey 客户编号
@observable
pts3_adrblk="" // \gcdgrp\prb\pts\adrblk SWIFT地址
@observable
pts3_extkey="" // \gcdgrp\prb\pts\extkey 客户编号
@observable
pts3_ref="" // \gcdgrp\prb\pts\ref 参考号
@observable
gctp_adaflg="" // \gctp\adaflg Add. Amount
@observable
gctp_aplmullab="" // \gctp\aplmullab Label, that is set, if there are multiple applicants
@observable
gctp_expfldlab="" // \gctp\expfldlab Label for Field Validity
@observable
gctp_explab="" // \gctp\explab Label unlimited Validity
@observable
gctp_liafldlab="" // \gctp\liafldlab Label for Field Liability
@observable
gctp_lialab="" // \gctp\lialab Label unlimited Liability
@observable
opn11_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn11_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
liaall_liaallg=[] // \liaall\liaallg
@observable
liaccv_chgamt="" // \liaall\liaccv\chgamt 变动金额
@observable
liaccv_concur="" // \liaall\liaccv\concur 业务结算币种
@observable
liaccv_cshpct="" // \liaall\liaccv\cshpct 保证金应收比例
@observable
liaccv_liaccvg=[] // \liaall\liaccv\liaccvg
@observable
liaccv_newamt="" // \liaall\liaccv\newamt 业务金额
@observable
liaccv_pctresamt="" // \liaall\liaccv\pctresamt 应收/支保证金
@observable
liaccv_relcshpct="" // \liaall\liaccv\relcshpct 保证金实收比例
@observable
liaccv_totcovamt="" // \liaall\liaccv\totcovamt 保证金合计
@observable
mtabut_clsflg="" // \mtabut\clsflg Close Flag
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
strinf="" // \strinf Narrative
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
get descriptor()
{
return _descriptor
}
clear()
{
this.clmdat=""
this.docprbrol=""
this.msgdat=""
this.nam=""
this.ownref=""
this.payrol=""
this.expdat=""
this.gartyp=""
this.liadat=""
this.ownref1=""
this.pts_nam=""
this.pts_ref=""
this.pts1_nam=""
this.pts1_ref=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts2_adrblk=""
this.pts2_extkey=""
this.pts3_adrblk=""
this.pts3_extkey=""
this.pts3_ref=""
this.gctp_adaflg=""
this.gctp_aplmullab=""
this.gctp_expfldlab=""
this.gctp_explab=""
this.gctp_liafldlab=""
this.gctp_lialab=""
this.opn11_amt=""
this.opn11_cur=""
this.liaall_liaallg=[]
this.liaccv_chgamt=""
this.liaccv_concur=""
this.liaccv_cshpct=""
this.liaccv_liaccvg=[]
this.liaccv_newamt=""
this.liaccv_pctresamt=""
this.liaccv_relcshpct=""
this.liaccv_totcovamt=""
this.mtabut_clsflg=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.glemod_glelst=[]
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_setmac=""
this.strinf=""
this.spt_inr=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
}
}
export default Gitcrj
\ 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 mGitcrj 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitcrjScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitcrj'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGitcrj()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitcrj/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="Rejection of Claim" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
clmdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gcdgrp\rec\clmdat Date of Claim
],
docprbrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\rec\docprbrol Presented by
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gcdgrp\rec\nam Externally Displayed Name to Identify the Contract
],
newexpdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gcdgrp\rec\newexpdat Validity Requested
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\rec\ownref Reference
],
payrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\rec\payrol Payer
],
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
ownref1:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
clmtxt:[
{type:'string',max:50,message:'长度不能超过50个字符'}, // \clmtxt Text of claim
],
extpay:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \extpay Extend or Pay
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gcdgrp\apl\pts\nam 客户英文名称
],
pts_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\apl\pts\ref 参考号
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gcdgrp\ben\pts\nam 客户英文名称
],
pts1_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\ben\pts\ref 参考号
],
max2_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\max2\amt Balance
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\opn1\cur Currency
],
opn2_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\opn2\cur Currency
],
pts2_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gcdgrp\oth\pts\adrblk SWIFT地址
],
pts2_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\oth\pts\extkey 客户编号
],
pts3_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gcdgrp\prb\pts\adrblk SWIFT地址
],
pts3_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\prb\pts\extkey 客户编号
],
pts3_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\prb\pts\ref 参考号
],
gctp_adaflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gctp\adaflg Add. Amount
],
gctp_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gctp\aplmullab Label, that is set, if there are multiple applicants
],
gctp_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gctp\expfldlab Label for Field Validity
],
gctp_explab:[
{type:'string',max:11,message:'长度不能超过11个字符'}, // \gctp\explab Label unlimited Validity
],
gctp_liafldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gctp\liafldlab Label for Field Liability
],
gctp_lialab:[
{type:'string',max:11,message:'长度不能超过11个字符'}, // \gctp\lialab Label unlimited Liability
],
opn11_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn11_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
nxtflg:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \nxtflg Further Processing
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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 Gitcrq {
@observable
clmdat="" // \gcdgrp\rec\clmdat Date of Claim
@observable
docprbrol="" // \gcdgrp\rec\docprbrol Presented by
@observable
nam="" // \gcdgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
newexpdat="" // \gcdgrp\rec\newexpdat Validity Requested
@observable
ownref="" // \gcdgrp\rec\ownref Reference
@observable
payrol="" // \gcdgrp\rec\payrol Payer
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
ownref1="" // \gidgrp\rec\ownref Reference
@observable
clmtxt="" // \clmtxt Text of claim
@observable
extpay="" // \extpay Extend or Pay
@observable
pts_nam="" // \gcdgrp\apl\pts\nam 客户英文名称
@observable
pts_ref="" // \gcdgrp\apl\pts\ref 参考号
@observable
pts1_nam="" // \gcdgrp\ben\pts\nam 客户英文名称
@observable
pts1_ref="" // \gcdgrp\ben\pts\ref 参考号
@observable
max2_amt="" // \gcdgrp\cbs\max2\amt Balance
@observable
max_amt="" // \gcdgrp\cbs\max\amt Balance
@observable
max_cur="" // \gcdgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gcdgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gcdgrp\cbs\opn1\cur Currency
@observable
opn2_cur="" // \gcdgrp\cbs\opn2\cur Currency
@observable
pts2_adrblk="" // \gcdgrp\oth\pts\adrblk SWIFT地址
@observable
pts2_extkey="" // \gcdgrp\oth\pts\extkey 客户编号
@observable
pts3_adrblk="" // \gcdgrp\prb\pts\adrblk SWIFT地址
@observable
pts3_extkey="" // \gcdgrp\prb\pts\extkey 客户编号
@observable
pts3_ref="" // \gcdgrp\prb\pts\ref 参考号
@observable
gctp_adaflg="" // \gctp\adaflg Add. Amount
@observable
gctp_aplmullab="" // \gctp\aplmullab Label, that is set, if there are multiple applicants
@observable
gctp_expfldlab="" // \gctp\expfldlab Label for Field Validity
@observable
gctp_explab="" // \gctp\explab Label unlimited Validity
@observable
gctp_liafldlab="" // \gctp\liafldlab Label for Field Liability
@observable
gctp_lialab="" // \gctp\lialab Label unlimited Liability
@observable
opn11_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn11_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
liaall_liaallg=[] // \liaall\liaallg
@observable
liaccv_chgamt="" // \liaall\liaccv\chgamt 变动金额
@observable
liaccv_concur="" // \liaall\liaccv\concur 业务结算币种
@observable
liaccv_cshpct="" // \liaall\liaccv\cshpct 保证金应收比例
@observable
liaccv_liaccvg=[] // \liaall\liaccv\liaccvg
@observable
liaccv_newamt="" // \liaall\liaccv\newamt 业务金额
@observable
liaccv_pctresamt="" // \liaall\liaccv\pctresamt 应收/支保证金
@observable
liaccv_relcshpct="" // \liaall\liaccv\relcshpct 保证金实收比例
@observable
liaccv_totcovamt="" // \liaall\liaccv\totcovamt 保证金合计
@observable
nxtflg="" // \nxtflg Further Processing
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
get descriptor()
{
return _descriptor
}
clear()
{
this.clmdat=""
this.docprbrol=""
this.nam=""
this.newexpdat=""
this.ownref=""
this.payrol=""
this.expdat=""
this.gartyp=""
this.liadat=""
this.ownref1=""
this.clmtxt=""
this.extpay=""
this.pts_nam=""
this.pts_ref=""
this.pts1_nam=""
this.pts1_ref=""
this.max2_amt=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.opn2_cur=""
this.pts2_adrblk=""
this.pts2_extkey=""
this.pts3_adrblk=""
this.pts3_extkey=""
this.pts3_ref=""
this.gctp_adaflg=""
this.gctp_aplmullab=""
this.gctp_expfldlab=""
this.gctp_explab=""
this.gctp_liafldlab=""
this.gctp_lialab=""
this.opn11_amt=""
this.opn11_cur=""
this.liaall_liaallg=[]
this.liaccv_chgamt=""
this.liaccv_concur=""
this.liaccv_cshpct=""
this.liaccv_liaccvg=[]
this.liaccv_newamt=""
this.liaccv_pctresamt=""
this.liaccv_relcshpct=""
this.liaccv_totcovamt=""
this.nxtflg=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.glemod_glelst=[]
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_setmac=""
this.spt_inr=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
}
}
export default Gitcrq
\ 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 mGitcrq 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitcrqScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitcrq'}
}
@observable
formBlur=false
@observable
extra = { inifrm: 'gitame', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
this.model = new mGitcrq()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitcrq/init',{params: { gidinr:this.extra.gidinr } })
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="Registeration of Claim" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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 Giteng {
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
pts_nam="" // \gidgrp\adv\pts\nam 客户英文名称
@observable
pts1_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts2_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts3_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
gitp0_aplmullab="" // \gitp0\aplmullab Label, that is set, if there are multiple applicants
@observable
gitp0_expfldlab="" // \gitp0\expfldlab Label for Field Validity
@observable
gitp0_liafldlab="" // \gitp0\liafldlab Label for Field Lability
@observable
liaccv_chgamt="" // \liaall\liaccv\chgamt 变动金额
@observable
liaccv_concur="" // \liaall\liaccv\concur 业务结算币种
@observable
liaccv_cshpct="" // \liaall\liaccv\cshpct 保证金应收比例
@observable
liaccv_liaccvg=[] // \liaall\liaccv\liaccvg
@observable
liaccv_newamt="" // \liaall\liaccv\newamt 业务金额
@observable
liaccv_pctresamt="" // \liaall\liaccv\pctresamt 应收/支保证金
@observable
liaccv_relcshpct="" // \liaall\liaccv\relcshpct 保证金实收比例
@observable
liaccv_totcovamt="" // \liaall\liaccv\totcovamt 保证金合计
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
get descriptor()
{
return _descriptor
}
clear()
{
this.expdat=""
this.gartyp=""
this.hndtyp=""
this.liadat=""
this.nam=""
this.ownref=""
this.pts_nam=""
this.pts1_nam=""
this.pts2_nam=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_nam=""
this.gitp0_aplmullab=""
this.gitp0_expfldlab=""
this.gitp0_liafldlab=""
this.liaccv_chgamt=""
this.liaccv_concur=""
this.liaccv_cshpct=""
this.liaccv_liaccvg=[]
this.liaccv_newamt=""
this.liaccv_pctresamt=""
this.liaccv_relcshpct=""
this.liaccv_totcovamt=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_setmac=""
this.spt_inr=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
}
}
export default Giteng
\ 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 mGiteng 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitengScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'giteng'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGiteng()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('giteng/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="Cash Adjustment" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
intmbu_othbussec:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \xxtfee\intmbu\othbussec Business Sector
],
intmbu_umbflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \xxtfee\intmbu\umbflg Internal Transfer Y/N
],
pts4_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \xxtfee\intmbu\umh\pts\adrblk SWIFT地址
],
pts4_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \xxtfee\intmbu\umh\pts\extkey 客户编号
],
pts4_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \xxtfee\intmbu\umh\pts\ref 参考号
],
intmbu_umhmsgflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \xxtfee\intmbu\umhmsgflg Send Message
],
intmbu_umhrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \xxtfee\intmbu\umhrol Credit Party
],
pts5_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \xxtfee\intmbu\ums\pts\adrblk SWIFT地址
],
pts5_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \xxtfee\intmbu\ums\pts\extkey 客户编号
],
pts5_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \xxtfee\intmbu\ums\pts\ref 参考号
],
intmbu_umsmsgflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \xxtfee\intmbu\umsmsgflg Send Message
],
intmbu_umsrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \xxtfee\intmbu\umsrol Debit Party
],
}
\ No newline at end of file
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 Gitfee {
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
pts_nam="" // \gidgrp\adv\pts\nam 客户英文名称
@observable
pts1_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts2_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts3_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
gitp0_aplmullab="" // \gitp0\aplmullab Label, that is set, if there are multiple applicants
@observable
gitp0_expfldlab="" // \gitp0\expfldlab Label for Field Validity
@observable
gitp0_liafldlab="" // \gitp0\liafldlab Label for Field Lability
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
@observable
intmbu_othbussec="" // \xxtfee\intmbu\othbussec Business Sector
@observable
intmbu_umbflg="" // \xxtfee\intmbu\umbflg Internal Transfer Y/N
@observable
pts4_adrblk="" // \xxtfee\intmbu\umh\pts\adrblk SWIFT地址
@observable
pts4_extkey="" // \xxtfee\intmbu\umh\pts\extkey 客户编号
@observable
pts4_ref="" // \xxtfee\intmbu\umh\pts\ref 参考号
@observable
intmbu_umhmsgflg="" // \xxtfee\intmbu\umhmsgflg Send Message
@observable
intmbu_umhrol="" // \xxtfee\intmbu\umhrol Credit Party
@observable
pts5_adrblk="" // \xxtfee\intmbu\ums\pts\adrblk SWIFT地址
@observable
pts5_extkey="" // \xxtfee\intmbu\ums\pts\extkey 客户编号
@observable
pts5_ref="" // \xxtfee\intmbu\ums\pts\ref 参考号
@observable
intmbu_umsmsgflg="" // \xxtfee\intmbu\umsmsgflg Send Message
@observable
intmbu_umsrol="" // \xxtfee\intmbu\umsrol Debit Party
get descriptor()
{
return _descriptor
}
clear()
{
this.expdat=""
this.gartyp=""
this.hndtyp=""
this.liadat=""
this.nam=""
this.ownref=""
this.pts_nam=""
this.pts1_nam=""
this.pts2_nam=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_nam=""
this.gitp0_aplmullab=""
this.gitp0_expfldlab=""
this.gitp0_liafldlab=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.glemod_glelst=[]
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_setmac=""
this.spt_inr=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
this.intmbu_othbussec=""
this.intmbu_umbflg=""
this.pts4_adrblk=""
this.pts4_extkey=""
this.pts4_ref=""
this.intmbu_umhmsgflg=""
this.intmbu_umhrol=""
this.pts5_adrblk=""
this.pts5_extkey=""
this.pts5_ref=""
this.intmbu_umsmsgflg=""
this.intmbu_umsrol=""
}
}
export default Gitfee
\ 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 mGitfee 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitfeeScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitfee'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGitfee()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitfee/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="Charge Settlement under a Guarantee" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
fremsg_ccrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \fremsg\ccrol Role Copy
],
fremsg_flg:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \fremsg\flg flg for gitfre
],
pts_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \fremsg\fmc\pts\adrblk SWIFT地址
],
pts_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \fremsg\fmc\pts\extkey 客户编号
],
pts1_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \fremsg\fmo\pts\adrblk SWIFT地址
],
pts1_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \fremsg\fmo\pts\extkey 客户编号
],
fremsg_fulmt:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \fremsg\fulmt MT to Send
],
fremsg_msgrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \fremsg\msgrol Role Message
],
fremsg_prttitle:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \fremsg\prttitle Document Title
],
fremsg_reldat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \fremsg\reldat from
],
fremsg_reldatlab:[
{type:'string',max:25,message:'长度不能超过25个字符'}, // \fremsg\reldatlab label for date
],
fremsg_reldir:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \fremsg\reldir relevant message sent/received
],
fremsg_relmt:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \fremsg\relmt related MT
],
fremsg_sndmt:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \fremsg\sndmt message to be created
],
fremsg_strinf:[
{type:'string',max:50,message:'长度不能超过50个字符'}, // \fremsg\strinf Narrative
],
fremsg_strinflab:[
{type:'string',max:80,message:'长度不能超过80个字符'}, // \fremsg\strinflab label for tag 79
],
fremsg_tag20lab:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \fremsg\tag20lab MT799tag20
],
fremsg_tag20ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \fremsg\tag20ref tag 20 Ref
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts4_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts5_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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 Gitfre {
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
fremsg_ccrol="" // \fremsg\ccrol Role Copy
@observable
fremsg_flg="" // \fremsg\flg flg for gitfre
@observable
pts_adrblk="" // \fremsg\fmc\pts\adrblk SWIFT地址
@observable
pts_extkey="" // \fremsg\fmc\pts\extkey 客户编号
@observable
pts1_adrblk="" // \fremsg\fmo\pts\adrblk SWIFT地址
@observable
pts1_extkey="" // \fremsg\fmo\pts\extkey 客户编号
@observable
fremsg_fulmt="" // \fremsg\fulmt MT to Send
@observable
fremsg_msgrol="" // \fremsg\msgrol Role Message
@observable
fremsg_prttitle="" // \fremsg\prttitle Document Title
@observable
fremsg_reldat="" // \fremsg\reldat from
@observable
fremsg_reldatlab="" // \fremsg\reldatlab label for date
@observable
fremsg_reldir="" // \fremsg\reldir relevant message sent/received
@observable
fremsg_relmt="" // \fremsg\relmt related MT
@observable
fremsg_sndmt="" // \fremsg\sndmt message to be created
@observable
fremsg_strinf="" // \fremsg\strinf Narrative
@observable
fremsg_strinflab="" // \fremsg\strinflab label for tag 79
@observable
fremsg_tag20lab="" // \fremsg\tag20lab MT799tag20
@observable
fremsg_tag20ref="" // \fremsg\tag20ref tag 20 Ref
@observable
pts2_nam="" // \gidgrp\adv\pts\nam 客户英文名称
@observable
pts3_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts4_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts5_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
gitp0_aplmullab="" // \gitp0\aplmullab Label, that is set, if there are multiple applicants
@observable
gitp0_expfldlab="" // \gitp0\expfldlab Label for Field Validity
@observable
gitp0_liafldlab="" // \gitp0\liafldlab Label for Field Lability
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
get descriptor()
{
return _descriptor
}
clear()
{
this.expdat=""
this.gartyp=""
this.hndtyp=""
this.liadat=""
this.nam=""
this.ownref=""
this.fremsg_ccrol=""
this.fremsg_flg=""
this.pts_adrblk=""
this.pts_extkey=""
this.pts1_adrblk=""
this.pts1_extkey=""
this.fremsg_fulmt=""
this.fremsg_msgrol=""
this.fremsg_prttitle=""
this.fremsg_reldat=""
this.fremsg_reldatlab=""
this.fremsg_reldir=""
this.fremsg_relmt=""
this.fremsg_sndmt=""
this.fremsg_strinf=""
this.fremsg_strinflab=""
this.fremsg_tag20lab=""
this.fremsg_tag20ref=""
this.pts2_nam=""
this.pts3_nam=""
this.pts4_nam=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts5_nam=""
this.gitp0_aplmullab=""
this.gitp0_expfldlab=""
this.gitp0_liafldlab=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.glemod_glelst=[]
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_setmac=""
this.spt_inr=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
}
}
export default Gitfre
\ 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 mGitfre 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitfreScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitfre'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGitfre()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitfre/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="Common Messages under a Guarantee" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
purcan:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\rec\purcan Reason of Cancelation
],
autflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \autflg Authentication
],
canmsg:[
{type:'string',max:65,message:'长度不能超过65个字符'}, // \canmsg 撤销文书
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
mtabut_clsflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \mtabut\clsflg Close Flag
],
newref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \newref New Reference
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
swiadd_strinf:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \trnmod\swiadd\strinf Sender to receiver info Tag 72
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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 Gitpca {
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
purcan="" // \gidgrp\rec\purcan Reason of Cancelation
@observable
autflg="" // \autflg Authentication
@observable
canmsg="" // \canmsg 撤销文书
@observable
pts_nam="" // \gidgrp\adv\pts\nam 客户英文名称
@observable
pts1_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts2_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts3_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
gitp0_aplmullab="" // \gitp0\aplmullab Label, that is set, if there are multiple applicants
@observable
gitp0_expfldlab="" // \gitp0\expfldlab Label for Field Validity
@observable
gitp0_liafldlab="" // \gitp0\liafldlab Label for Field Lability
@observable
liaall_liaallg=[] // \liaall\liaallg
@observable
liaccv_chgamt="" // \liaall\liaccv\chgamt 变动金额
@observable
liaccv_concur="" // \liaall\liaccv\concur 业务结算币种
@observable
liaccv_cshpct="" // \liaall\liaccv\cshpct 保证金应收比例
@observable
liaccv_liaccvg=[] // \liaall\liaccv\liaccvg
@observable
liaccv_newamt="" // \liaall\liaccv\newamt 业务金额
@observable
liaccv_pctresamt="" // \liaall\liaccv\pctresamt 应收/支保证金
@observable
liaccv_relcshpct="" // \liaall\liaccv\relcshpct 保证金实收比例
@observable
liaccv_totcovamt="" // \liaall\liaccv\totcovamt 保证金合计
@observable
mtabut_clsflg="" // \mtabut\clsflg Close Flag
@observable
newref="" // \newref New Reference
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
swiadd_strinf="" // \trnmod\swiadd\strinf Sender to receiver info Tag 72
@observable
trndoc_condocstm="" // \trnmod\trndoc\condocstm Connected Documents
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doctrestm="" // \trnmod\trndoc\doctrestm Document tree
@observable
trndoc_shwinc="" // \trnmod\trndoc\shwinc Show Incoming Messages
@observable
trndoc_shwout="" // \trnmod\trndoc\shwout Show Outgoing Messages
@observable
trndoc_shwoutint="" // \trnmod\trndoc\shwoutint Show Internal Messages
get descriptor()
{
return _descriptor
}
clear()
{
this.expdat=""
this.gartyp=""
this.hndtyp=""
this.liadat=""
this.nam=""
this.ownref=""
this.purcan=""
this.autflg=""
this.canmsg=""
this.pts_nam=""
this.pts1_nam=""
this.pts2_nam=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_nam=""
this.gitp0_aplmullab=""
this.gitp0_expfldlab=""
this.gitp0_liafldlab=""
this.liaall_liaallg=[]
this.liaccv_chgamt=""
this.liaccv_concur=""
this.liaccv_cshpct=""
this.liaccv_liaccvg=[]
this.liaccv_newamt=""
this.liaccv_pctresamt=""
this.liaccv_relcshpct=""
this.liaccv_totcovamt=""
this.mtabut_clsflg=""
this.newref=""
this.glemod_glelst=[]
this.spt_inr=""
this.swiadd_strinf=""
this.trndoc_condocstm=""
this.trndoc_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doctrestm=""
this.trndoc_shwinc=""
this.trndoc_shwout=""
this.trndoc_shwoutint=""
}
}
export default Gitpca
\ 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 mGitpca 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 { Card } from 'antd'
import Engp from '@/views/Public/Engp'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GitpcaScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'gitpca'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGitpca()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitpca/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="Cancelation of a Guarantee" size="small" className="transTitle">
<Steps>
<StepItem title="Import Guarantee">
<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} flag={this.state.flag}/>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
</Steps>
</Card>
)
}
}
export default fieldSet = {
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \chgamt Change Amount
],
chgdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \chgdat Change Date
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\adv\pts\nam 客户英文名称
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
gitp0_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gitp0\aplmullab Label, that is set, if there are multiple applicants
],
gitp0_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp0\expfldlab Label for Field Validity
],
gitp0_liafldlab:[
{type:'string',max:13,message:'长度不能超过13个字符'}, // \gitp0\liafldlab Label for Field Lability
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_condocstm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\condocstm Connected Documents
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doctrestm:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\doctrestm Document tree
],
trndoc_shwinc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwinc Show Incoming Messages
],
trndoc_shwout:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwout Show Outgoing Messages
],
trndoc_shwoutint:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \trnmod\trndoc\shwoutint Show Internal Messages
],
}
\ No newline at end of file
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