Commit b1d3f3cd by YuMengShuai

新增出口保函部分交易

parent 0da2ddab
export default fieldSet = {
cfaguatyp:[
{type:'string',max:4,message:'长度不能超过4个字符'}, // \gidgrp\rec\cfaguatyp 对外担保类型
],
cmtflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\cmtflg 跨境人民币保函
],
cnfdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\cnfdat Confirmation Date
],
cnfsta:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\cnfsta Confirmation Status
],
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
expflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\expflg Unlimited Guarantee
],
fenlishi:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\fenlishi 是否分离式保函
],
fingua:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\fingua 是否对外担保
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
giduil:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\giduil Guarantee Language
],
gtxinr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \gidgrp\rec\gtxinr INR of Generating Text
],
guaflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\guaflg Mortgage Flag
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
inudat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\inudat Inure Date
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
],
liaflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\liaflg Unlimited Liability
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
oldref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\oldref Old Reference
],
opndat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\opndat Valid from
],
oppbnk:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\oppbnk 境内外对手行代码
],
orddat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\orddat Date of Customer's Order
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
partcon:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \gidgrp\rec\partcon Partial Confirmation
],
resflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\resflg Reserved Contract
],
teskeyunc:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\teskeyunc Test Key Unconfirmity
],
pts_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\adv\pts\adrblk SWIFT地址
],
pts_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\adv\pts\extkey 客户编号
],
pts_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\adv\pts\ref 参考号
],
pts1_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\apl\pts\adrblk SWIFT地址
],
pts1_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\apl\pts\extkey 客户编号
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\apl\pts\nam 客户英文名称
],
pts1_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\apl\pts\ref 参考号
],
pts2_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\ben\pts\adrblk SWIFT地址
],
pts2_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\ben\pts\extkey 客户编号
],
pts2_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\ben\pts\nam 客户英文名称
],
pts2_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\ben\pts\ref 参考号
],
blk_apprul:[
{type:'string',max:4,message:'长度不能超过4个字符'}, // \gidgrp\blk\apprul Applicable Rules
],
blk_apprultxt:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\blk\apprultxt Specification of Applicable Rule
],
blk_contag79:[
{type:'string',max:50,message:'长度不能超过50个字符'}, // \gidgrp\blk\contag79 Content of TAG 79
],
blk_gidtxt:[
{type:'string',max:65,message:'长度不能超过65个字符'}, // \gidgrp\blk\gidtxt Guarantee Text
],
cnf_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\cnf\amt Balance
],
cnf_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\cnf\cur Currency
],
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\ctr\pts\nam 客户英文名称
],
ghd_segtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\ghd\segtyp 特殊保函类型
],
pts4_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gidgrp\iss\pts\nam 客户英文名称
],
usr_nam:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \gitp\\sysmod\usr\nam 用户ID
],
aammod_addamtflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gitp\aamp\aammod\addamtflg Add. Amount
],
gitp_drpreflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gitp\drpreflg Type of Request
],
gitp_drpreflglab:[
{type:'string',max:20,message:'长度不能超过20个字符'}, // \gitp\drpreflglab Label for Type of Request
],
gitp_expfldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp\expfldlab Label for Field Validity
],
gitp_explab:[
{type:'string',max:11,message:'长度不能超过11个字符'}, // \gitp\explab Label unlimited Validity
],
gitp_gidtxtmodflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gitp\gidtxtmodflg Modify Guarantee Text
],
gitp_lettername:[
{type:'string',max:60,message:'长度不能超过60个字符'}, // \gitp\lettername 面函标题
],
gitp_liafldlab:[
{type:'string',max:10,message:'长度不能超过10个字符'}, // \gitp\liafldlab Label for Field Lability
],
gitp_lialab:[
{type:'string',max:11,message:'长度不能超过11个字符'}, // \gitp\lialab Label unlimited lLability
],
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 保证金合计
],
reqdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \reqdat Confirmation requested on
],
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 Getamc {
@observable
cfaguatyp="" // \gidgrp\rec\cfaguatyp 对外担保类型
@observable
cmtflg="" // \gidgrp\rec\cmtflg 跨境人民币保函
@observable
cnfdat="" // \gidgrp\rec\cnfdat Confirmation Date
@observable
cnfsta="" // \gidgrp\rec\cnfsta Confirmation Status
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
expflg="" // \gidgrp\rec\expflg Unlimited Guarantee
@observable
fenlishi="" // \gidgrp\rec\fenlishi 是否分离式保函
@observable
fingua="" // \gidgrp\rec\fingua 是否对外担保
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
giduil="" // \gidgrp\rec\giduil Guarantee Language
@observable
gtxinr="" // \gidgrp\rec\gtxinr INR of Generating Text
@observable
guaflg="" // \gidgrp\rec\guaflg Mortgage Flag
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
inudat="" // \gidgrp\rec\inudat Inure Date
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
liaflg="" // \gidgrp\rec\liaflg Unlimited Liability
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
oldref="" // \gidgrp\rec\oldref Old Reference
@observable
opndat="" // \gidgrp\rec\opndat Valid from
@observable
oppbnk="" // \gidgrp\rec\oppbnk 境内外对手行代码
@observable
orddat="" // \gidgrp\rec\orddat Date of Customer's Order
@observable
ownref="" // \gidgrp\rec\ownref Reference
@observable
partcon="" // \gidgrp\rec\partcon Partial Confirmation
@observable
resflg="" // \gidgrp\rec\resflg Reserved Contract
@observable
teskeyunc="" // \gidgrp\rec\teskeyunc Test Key Unconfirmity
@observable
pts_adrblk="" // \gidgrp\adv\pts\adrblk SWIFT地址
@observable
pts_extkey="" // \gidgrp\adv\pts\extkey 客户编号
@observable
pts_ref="" // \gidgrp\adv\pts\ref 参考号
@observable
pts1_adrblk="" // \gidgrp\apl\pts\adrblk SWIFT地址
@observable
pts1_extkey="" // \gidgrp\apl\pts\extkey 客户编号
@observable
pts1_nam="" // \gidgrp\apl\pts\nam 客户英文名称
@observable
pts1_ref="" // \gidgrp\apl\pts\ref 参考号
@observable
pts2_adrblk="" // \gidgrp\ben\pts\adrblk SWIFT地址
@observable
pts2_extkey="" // \gidgrp\ben\pts\extkey 客户编号
@observable
pts2_nam="" // \gidgrp\ben\pts\nam 客户英文名称
@observable
pts2_ref="" // \gidgrp\ben\pts\ref 参考号
@observable
blk_apprul="" // \gidgrp\blk\apprul Applicable Rules
@observable
blk_apprultxt="" // \gidgrp\blk\apprultxt Specification of Applicable Rule
@observable
blk_contag79="" // \gidgrp\blk\contag79 Content of TAG 79
@observable
blk_gidtxt="" // \gidgrp\blk\gidtxt Guarantee Text
@observable
cnf_amt="" // \gidgrp\cbs\cnf\amt Balance
@observable
cnf_cur="" // \gidgrp\cbs\cnf\cur Currency
@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\ctr\pts\nam 客户英文名称
@observable
ghd_segtyp="" // \gidgrp\ghd\segtyp 特殊保函类型
@observable
pts4_nam="" // \gidgrp\iss\pts\nam 客户英文名称
@observable
usr_nam="" // \gitp\\sysmod\usr\nam 用户ID
@observable
aammod_addamtflg="" // \gitp\aamp\aammod\addamtflg Add. Amount
@observable
gitp_drpreflg="" // \gitp\drpreflg Type of Request
@observable
gitp_drpreflglab="" // \gitp\drpreflglab Label for Type of Request
@observable
gitp_expfldlab="" // \gitp\expfldlab Label for Field Validity
@observable
gitp_explab="" // \gitp\explab Label unlimited Validity
@observable
gitp_gidtxtmodflg="" // \gitp\gidtxtmodflg Modify Guarantee Text
@observable
gitp_lettername="" // \gitp\lettername 面函标题
@observable
gitp_liafldlab="" // \gitp\liafldlab Label for Field Lability
@observable
gitp_lialab="" // \gitp\lialab Label unlimited lLability
@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
reqdat="" // \reqdat Confirmation requested on
@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.cfaguatyp=""
this.cmtflg=""
this.cnfdat=""
this.cnfsta=""
this.expdat=""
this.expflg=""
this.fenlishi=""
this.fingua=""
this.gartyp=""
this.giduil=""
this.gtxinr=""
this.guaflg=""
this.hndtyp=""
this.inudat=""
this.liadat=""
this.liaflg=""
this.nam=""
this.oldref=""
this.opndat=""
this.oppbnk=""
this.orddat=""
this.ownref=""
this.partcon=""
this.resflg=""
this.teskeyunc=""
this.pts_adrblk=""
this.pts_extkey=""
this.pts_ref=""
this.pts1_adrblk=""
this.pts1_extkey=""
this.pts1_nam=""
this.pts1_ref=""
this.pts2_adrblk=""
this.pts2_extkey=""
this.pts2_nam=""
this.pts2_ref=""
this.blk_apprul=""
this.blk_apprultxt=""
this.blk_contag79=""
this.blk_gidtxt=""
this.cnf_amt=""
this.cnf_cur=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_nam=""
this.ghd_segtyp=""
this.pts4_nam=""
this.usr_nam=""
this.aammod_addamtflg=""
this.gitp_drpreflg=""
this.gitp_drpreflglab=""
this.gitp_expfldlab=""
this.gitp_explab=""
this.gitp_gidtxtmodflg=""
this.gitp_lettername=""
this.gitp_liafldlab=""
this.gitp_lialab=""
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.reqdat=""
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 Getamc
\ No newline at end of file
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem, BottomBtn,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, ConfirmButton, Steps, TextAreaItem
} from '@/components/Common-Library'
import Api from '@/service/api'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable, autorun } from 'mobx'
import { Row, Col, Popconfirm, Modal, Spin } from 'antd';
import { PtyPicker } from '@/components/Business-Library'
import { Link, withRouter } from 'react-router-dom'
import Ptspta2 from '@/views/Public/Ptspta2'
import Business from '@/views/Public/Business'
import moment from 'moment';
const { Pre, Next, StepWrapper } = Steps
const CodeTable = CodeTableFactory.getInstance()
const confirm = Modal.confirm
@withRouter
@inject('UserContext')
@inject('i18n')
@observer
export default class Ddksdcreen extends Page {
@observable
formBlur = false
constructor(props) {
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
componentWillUnmount() {
this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage() {
const bind = this.bind
const { i18n } = this.props
const { bchlevelLst } = this.props.extra
if (this.props.flag == true) {
return <Spin style={{ width: "100%", justifyContent: "center" }} spinning={this.props.flag} />
}
return (
<div style={{ position: 'relative' }}>
<Business wrappedComponentRef={ref => (this.com = ref)} page={this} extra={this.props.extra} steps={this.props.steps} model={this.model} />
{/* 第1行 */}
<Row>
{/* 第1行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="getamc" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
</Col>
</Row>
</Col>
{/* 第1行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="getamc" />
</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>
{/* 第2行 */}
<Row>
{/* 第2行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="getamc" />
</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="Applicant" trn="getamc" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
{/* 第3行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getamc" />
</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>
{/* 第3行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Beneficiary" trn="getamc" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第4行 */}
<Row>
{/* 第4行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="getamc" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp" />
</Col>
</Row>
</Col>
{/* 第4行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Accountee" trn="getamc" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ctr/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
{/* 第5行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp" />
</Col>
</Row>
</Col>
{/* 第5行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts4_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第6行 */}
<Row>
{/* 第6行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="expfldlab" trn="getamc" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
{/* <Label value={this.model.gitp_expfldlab} desp="Label for Field Validity" path="/gitp/expfldlab" />
<Label value={this.model.gitp_explab} desp="Label unlimited Validity" path="/gitp/explab" /> */}
</Col>
</Row>
</Col>
{/* 第6行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="liafldlab" trn="getamc" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
</Row>
</Col>
</Row>
{/* <Label value={this.model.gitp_liafldlab} desp="Label for Field Lability" path="/gitp/liafldlab" />
<Label value={this.model.gitp_lialab} desp="Label unlimited lLability" path="/gitp/lialab" /> */}
{/* 第7行 */}
<Row>
{/* 第7行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="getamc" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp" />
</Col>
</Row>
</Col>
{/* 第7行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Content of TAG 79" trn="getamc" />
</Col>
<Col span={14} >
<TextAreaItem InputProps={bind("blk_contag79")} desp="Content of TAG 79" path="/gidgrp/blk/contag79"/>
</Col>
</Row>
</Col>
</Row>
{/* 第8行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmation Status" trn="getamc" />
</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 Status" trn="getamc" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("cnfsta")} code={CodeTable.cnfsta} desp="Confirmation Status" path="/gidgrp/rec/cnfsta"/>
</Col>
</Row>
</Col>
</Row>
{/* 第9行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmation Amount" trn="getamc" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("cnf_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/cnf/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("cnf_amt")} desp="Balance" path="/gidgrp/cbs/cnf/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="or" trn="getamc" />
</Col>
<Col span={12} >
<InputItem InputProps={bind("partcon")} desp="Partial Confirmation" path="/gidgrp/rec/partcon" />
</Col>
<Col span={1} offset={1}>
<Label itext="%" trn="getamc" />
</Col>
</Row>
</Col>
</Row>
{/* 第10行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confir. Requested on" trn="getamc" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("reqdat")} desp="Confirmation requested on" path="/reqdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmed on" trn="getamc" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("cnfdat")} desp="Confirmation Date" path="/gidgrp/rec/cnfdat" />
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div >
)
}
}
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem1, Checkbox,
InputItem, Input, Bind, SelectItem, Button, Label, Image, Table} from '@/components/Common-Library'
import Api from '@/service/api'
import Business from '@/views/Public/Business'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import Ptspta2 from '@/views/Public/Ptspta2'
import { Row, Col } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GetopnScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'getamc'}
}
@observable
formBlur=false
@observable
visible=false
@observable
dataSource=[]
@observable
datakey=''
@observable
prefix=''
constructor(props)
{
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getamc/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()//关闭校验
}
//
onGetref = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post('getamc/getref', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
this.model.ownref = rtnmsg.data.ownref;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
Checkboxchange=(type,value)=>{
console.log(value)
if(value){
this.model[type]='0'
}else{
this.model[type]='1'
}
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<Business wrappedComponentRef={ref => (this.com = ref)} extra={this.props.extra} model={this.model} />
{/* 第1行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="getamc" />
</Col>
<Col span={11} >
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" onClick={this.onGetref} desp="Get Ref." path="/mtabut/getref">
<Label itext="获取" />
</Button>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="getamc" />
</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>
{/* 第2行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Responsible" trn="getamc" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("usr_nam")} maxLength={8} desp="用户ID" path="/gitp//sysmod/usr/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reserved Contract" trn="getamc" />
</Col>
<Col span={14}>
<CheckboxItem1 InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" onChange={(value)=>this.Checkboxchange("resflg",value)} />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="getamc" />
</Col>
<Col span={6}>
<SelectItem InputProps={bind("max_cur")} code={CodeTable.curtxt} 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>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="drprtflglab" trn="getamc" />
<Label value={this.model.gitp_drpreflglab} desp="Label for Type of Request" path="/gitp/drpreflglab" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("gitp_drpreflg")} code={CodeTable.drpreflg} desp="Type of Request" path="/gitp/drpreflg" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Applicant Ref." trn="getamc" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_ref")} maxLength={16} desp="参考号" path="/gidgrp/apl/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts1', url: 'getamc/aplp_sel', flg: 'C', datakey: '\\gitp\\aplp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getamc" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("opn1_cur")} code={CodeTable.curtxt} 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="Add. Amount" trn="getamc" />
</Col>
<Col span={1}>
<CheckboxItem1 InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" onChange={(value)=>this.Checkboxchange("aammod_addamtflg",value)}/>
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="境内外对手行代码" trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("oppbnk")} maxLength={12} desp="境内外对手行代码" path="/gidgrp/rec/oppbnk" />
</Col>
</Row>
</Col>
</Row>
{/* 第8行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="面函标题" trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("gitp_lettername")} maxLength={60} desp="面函标题" path="/gitp/lettername" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Applicable Rules" trn="getamc" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("blk_apprul")} code={CodeTable.gitapprul} desp="Applicable Rules" path="/gidgrp/blk/apprul" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("blk_apprultxt")} maxLength={35} desp="Specification of Applicable Rule" path="/gidgrp/blk/apprultxt" />
</Col>
</Row>
</Col>
</Row>
{/* 第8-11行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Language of Undertak." trn="getamc" /> */}
<Label itext="LOU" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("giduil")} code={CodeTable.uiltxt} desp="Guarantee Language" path="/gidgrp/rec/giduil" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Choice of Text" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("gtxinr")} desp="INR of Generating Text" path="/gidgrp/rec/gtxinr" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="特殊保函类型" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("ghd_segtyp")} desp="特殊保函类型" path="/gidgrp/ghd/segtyp" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Adv Rcv bank Ref." trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/gidgrp/adv/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts', url: 'getamc/advp_sel', flg: 'B', datakey: '\\gitp\\advp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
{/* 第12行 */}
<Row>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
<Label itext="是否分离式保函" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("fenlishi")} code={CodeTable.fenlishi} desp="是否分离式保函" path="/gidgrp/rec/fenlishi" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Order Date" trn="getamc" />
</Col>
<Col span={14} >
<DatePickerItem InputProps={bind("orddat")} desp="Date of Customer's Order" path="/gidgrp/rec/orddat" />
</Col>
</Row>
</Col>
</Row>
{/* 第13-15行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuance Date" trn="getamc" />
</Col>
<Col span={14} >
<DatePickerItem InputProps={bind("opndat")} desp="Valid from" path="/gidgrp/rec/opndat" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Old Reference" trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("oldref")} maxLength={16} desp="Old Reference" path="/gidgrp/rec/oldref" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="保函生效日" trn="getamc" />
</Col>
<Col span={14} >
<DatePickerItem InputProps={bind("inudat")} desp="Inure Date" path="/gidgrp/rec/inudat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Beneficiary Ref." trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts2_ref")} maxLength={16} desp="参考号" path="/gidgrp/ben/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts2', url: 'getamc/benp_sel', flg: 'C', datakey: '\\gitp\\benp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
{/* 第16行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Validity until" trn="getamc" />
</Col>
<Col span={12} >
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Unlimited Guarantee" trn="getamc" />
</Col>
<Col span={1} >
<CheckboxItem1 InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" onChange={(value)=>this.Checkboxchange("expflg",value)}/>
</Col>
</Row>
</Col>
</Row>
{/* 第17行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Our Liability until" trn="getamc" />
</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="Unlimited Liability" trn="getamc" />
</Col>
<Col span={1} >
<CheckboxItem1 InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" onChange={(value)=>this.Checkboxchange("liaflg",value)}/>
</Col>
</Row>
</Col>
</Row>
{/* 第18行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Mortgage Flag" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("guaflg")} code={CodeTable.guaflg} desp="Mortgage Flag" path="/gidgrp/rec/guaflg" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Test Key Unconfirmity" trn="getamc" />
</Col>
<Col span={1} >
<CheckboxItem1 InputProps={bind("teskeyunc")} desp="Test Key Unconfirmity" path="/gidgrp/rec/teskeyunc" onChange={(value)=>this.Checkboxchange("teskeyunc",value)}/>
</Col>
</Row>
</Col>
</Row>
{/* 第19行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="是否对外担保" trn="getamc" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("fingua")} code={CodeTable.fingua} desp="是否对外担保" path="/gidgrp/rec/fingua"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="担保类型" trn="getamc" />
</Col>
<Col span={12} >
<InputItem InputProps={bind("cfaguatyp")} maxLength={4} desp="对外担保类型" path="/gidgrp/rec/cfaguatyp" />
</Col>
<Col span={1} offset={1}>
<CheckboxItem1 InputProps={bind("cmtflg")} desp="跨境人民币保函" path="/gidgrp/rec/cmtflg" onChange={(value)=>this.Checkboxchange("cmtflg",value)}/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Text of Undertaking" trn="getamc" />
</Col>
<Col span={14} >
<TextAreaItem InputProps={bind("blk_gidtxt")} desp="Guarantee Text" path="/gidgrp/blk/gidtxt"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Modify Guarantee Text" trn="getamc" />
</Col>
<Col span={1} >
<CheckboxItem1 InputProps={bind("gitp_gidtxtmodflg")} desp="Modify Guarantee Text" path="/gitp/gidtxtmodflg" onChange={(value)=>this.Checkboxchange("gitp_gidtxtmodflg",value)}/>
</Col>
</Row>
</Col>
</Row>
<BottomBtn _this={this} />
</div>
)
}
}
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem, BottomBtn,CheckboxItem1,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, ConfirmButton, Steps, TextAreaItem
} from '@/components/Common-Library'
import Api from '@/service/api'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import { Row, Col, Popconfirm, Modal, Spin } from 'antd';
import { PtyPicker } from '@/components/Business-Library'
import { Link, withRouter } from 'react-router-dom'
import Ptspta from '@/views/Public/Ptspta'
import Business from '@/views/Public/Business'
import Ptspta1 from '@/views/Public/Ptspta1'
const { Pre, Next, StepWrapper } = Steps
const CodeTable = CodeTableFactory.getInstance()
const confirm = Modal.confirm
@withRouter
@inject('UserContext')
@inject('i18n')
@observer
export default class GetamcScreen extends Page {
@observable
formBlur = false
constructor(props) {
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
Checkboxchange=(type,value)=>{
console.log(value)
if(value){
this.model[type]='0'
}else{
this.model[type]='1'
}
}
//交易内实现
renderPage() {
const bind = this.bind
const { i18n } = this.props
const { bchlevelLst } = this.props.extra
//const {next,pre} = this.props.steps
bind("pts_namcn")
bind("pts5_namcn")
bind("pts2_namcn")
bind("pts6_namcn")
if (this.props.flag == true) {
return <Spin style={{ width: "100%", justifyContent: "center" }} spinning={this.props.flag} />
}
return (
<div style={{ position: 'relative' }}>
<Business wrappedComponentRef={ref => (this.com = ref)} page={this} steps={this.props.steps} extra={this.props.extra} model={this.model} />
{/* 第1行 */}
<Row>
{/* 第1行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Document tree" trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("trndoc_doctrestm")} desp="Document tree" path="/trnmod/trndoc/doctrestm" style="width:100px;height:50px;"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Connected Documents" trn="getamc" /> */}
<Label itext="C Dmts" trn="getamc" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("trndoc_condocstm")} desp="Connected Documents" path="/trnmod/trndoc/condocstm" />
</Col>
</Row>
</Col>
</Row>
{/* 第2行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Show Incoming Messages" trn="getamc" /> */}
<Label itext="S Icm Msg" trn="getamc" />
</Col>
<Col span={14} >
<CheckboxItem1 onChange={(value)=>this.Checkboxchange("trndoc_shwinc",value)} InputProps={bind("trndoc_shwinc")} desp="Show Incoming Messages" path="/trnmod/trndoc/shwinc" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Show Internal Messages" trn="getamc" /> */}
<Label itext="S Itl Msg" trn="getamc" />
</Col>
<Col span={14} >
<CheckboxItem1 onChange={(value)=>this.Checkboxchange("trndoc_shwoutint",value)} InputProps={bind("trndoc_shwoutint")} desp="Show Internal Messages" path="/trnmod/trndoc/shwoutint" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Show Outgoing Messages" trn="getamc" /> */}
<Label itext="S Otg Msg" trn="getamc" />
</Col>
<Col span={14} >
<CheckboxItem1 onChange={(value)=>this.Checkboxchange("trndoc_shwout",value)} InputProps={bind("trndoc_shwout")} desp="Show Outgoing Messages" path="/trnmod/trndoc/shwout" />
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div >
)
}
}
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, Table, TextArea, ConfirmButton, Steps
} from '@/components/Common-Library'
import Api from '@/service/api'
import mGetamc 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 FuJia from './FuJia'
import FuJia1 from './FuJia1'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import Engp from '@/views/Public/Engp'
import { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GetamcScreen extends Page{
@observable
formBlur = false
@observable
extra = { inifrm: 'getamc', getinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mGetamc()
}
async componentWillMount()
{
/*
*添加初始化代码
*/
let didinr = '';
if (this.props.location.query) {
if(this.props.location.query.from=="getsel"){
this.extra.getinr=this.props.location.query.getinr;
}else{
didinr=this.props.location.query.didinr;
}
}
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { getinr:this.extra.getinr,didinr } })
if (rtnmsg.retcod == SUCCESS) {
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
this.extra.bopmod_szflg = rtnmsg.codetable.bopmod_szflg;
Object.assign(this.model, rtnmsg.data)
this.model.max_cur = 'CNY'
this.model.concur = 'CNY'
this.model.nom1_cur= 'CNY'
this.setState({ flag: false })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor() //开启校验
}
componentWillUnmount() {
this.model.stopMonitor()//关闭校验
}
renderPage(){
return(
<Card title="出口保函保兑" size="small" className="transTitle">
<Steps>
<StepItem title="明细">
<Basic model={this.model} extra={this.extra} flag={this.state.flag}/>
</StepItem>
<StepItem title="附加">
<FuJia model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<StepItem title="附加1">
<FuJia1 model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem>
</Steps>
</Card>
)
}
}
import React, { Component, Fragment } from 'react' import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { import {
Page, Validator, Notification, FormItem, DatePickerItem, TextAreaItem, CheckboxItem, Checkbox, Page, Validator, Notification, FormItem, DatePickerItem, TextAreaItem, CheckboxItem1, Checkbox,
InputItem , Input, Bind, SelectItem, Button, Label, Image, Table, BottomBtn InputItem , Input, Bind, SelectItem, Button, Label, Image, Table, BottomBtn
} from '@/components/Common-Library' } from '@/components/Common-Library'
import Api from '@/service/api' import Api from '@/service/api'
...@@ -59,7 +59,14 @@ export default class GetameScreen extends Page { ...@@ -59,7 +59,14 @@ export default class GetameScreen extends Page {
}) })
} }
Checkboxchange=(type,value)=>{
console.log(value)
if(value){
this.model[type]='0'
}else{
this.model[type]='1'
}
}
//交易内实现 //交易内实现
renderPage() { renderPage() {
const bind = this.bind const bind = this.bind
...@@ -292,7 +299,7 @@ export default class GetameScreen extends Page { ...@@ -292,7 +299,7 @@ export default class GetameScreen extends Page {
<Label itext="Unlimited" trn="getame" /> <Label itext="Unlimited" trn="getame" />
</Col> </Col>
<Col span={14} > <Col span={14} >
<CheckboxItem InputProps={bind("swiadd_newexpflg")} desp="Unlimited Validity" path="/gitamep/swiadd/newexpflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("swiadd_newexpflg",value)} InputProps={bind("swiadd_newexpflg")} desp="Unlimited Validity" path="/gitamep/swiadd/newexpflg" />
</Col> </Col>
</Row> </Row>
...@@ -301,7 +308,7 @@ export default class GetameScreen extends Page { ...@@ -301,7 +308,7 @@ export default class GetameScreen extends Page {
<Label itext="Add. Amount" trn="getame" /> <Label itext="Add. Amount" trn="getame" />
</Col> </Col>
<Col span={14} > <Col span={14} >
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("aammod_addamtflg",value)} InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" />
</Col> </Col>
</Row> </Row>
...@@ -359,7 +366,7 @@ export default class GetameScreen extends Page { ...@@ -359,7 +366,7 @@ export default class GetameScreen extends Page {
<Label itext="CAM" trn="getame" /> <Label itext="CAM" trn="getame" />
</Col> </Col>
<Col span={14} > <Col span={14} >
<CheckboxItem InputProps={bind("gitamep_cre767flg")} desp="Create Amendment Message" path="/gitamep/cre767flg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("gitamep_cre767flg",value)} InputProps={bind("gitamep_cre767flg")} desp="Create Amendment Message" path="/gitamep/cre767flg" />
</Col> </Col>
</Row> </Row>
<Row className="row"> <Row className="row">
...@@ -368,7 +375,7 @@ export default class GetameScreen extends Page { ...@@ -368,7 +375,7 @@ export default class GetameScreen extends Page {
<Label itext="cft" trn="getame" /> <Label itext="cft" trn="getame" />
</Col> </Col>
<Col span={14} > <Col span={14} >
<CheckboxItem InputProps={bind("gitamep_prtflg")} desp="choose full text" path="/gitamep/prtflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("gitamep_prtflg",value)} InputProps={bind("gitamep_prtflg")} desp="choose full text" path="/gitamep/prtflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -381,7 +388,7 @@ export default class GetameScreen extends Page { ...@@ -381,7 +388,7 @@ export default class GetameScreen extends Page {
<Label itext="Cpucn" trn="getame" /> <Label itext="Cpucn" trn="getame" />
</Col> </Col>
<Col span={14}> <Col span={14}>
<CheckboxItem InputProps={bind("gitamep_clsclmflg")} desp="Close picked up claim now" path="/gitamep/clsclmflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("gitamep_clsclmflg",value)} InputProps={bind("gitamep_clsclmflg")} desp="Close picked up claim now" path="/gitamep/clsclmflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -392,7 +399,7 @@ export default class GetameScreen extends Page { ...@@ -392,7 +399,7 @@ export default class GetameScreen extends Page {
<Label itext="aobr" trn="getame" /> <Label itext="aobr" trn="getame" />
</Col> </Col>
<Col span={14}> <Col span={14}>
<CheckboxItem InputProps={bind("gitamep_abrflg")} desp="agreement of bene. required" path="/gitamep/abrflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("gitamep_abrflg",value)} InputProps={bind("gitamep_abrflg")} desp="agreement of bene. required" path="/gitamep/abrflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
......
import React, { Component, Fragment } from 'react' import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { import {
Page, Validator, Notification, FormItem, DatePickerItem , TextAreaItem, CheckboxItem, Checkbox, Page, Validator, Notification, FormItem, DatePickerItem , TextAreaItem, CheckboxItem1, Checkbox,
InputItem , Input, Bind, SelectItem , Button, Label, Image, Table, BottomBtn InputItem , Input, Bind, SelectItem , Button, Label, Image, Table, BottomBtn
} from '@/components/Common-Library' } from '@/components/Common-Library'
import Api from '@/service/api' import Api from '@/service/api'
...@@ -62,6 +62,14 @@ export default class GetameScreen extends Page { ...@@ -62,6 +62,14 @@ export default class GetameScreen extends Page {
}) })
} }
Checkboxchange=(type,value)=>{
console.log(value)
if(value){
this.model[type]='0'
}else{
this.model[type]='1'
}
}
//交易内实现 //交易内实现
renderPage() { renderPage() {
...@@ -121,7 +129,7 @@ export default class GetameScreen extends Page { ...@@ -121,7 +129,7 @@ export default class GetameScreen extends Page {
<Label itext="Reserved Contract" trn="getame" /> <Label itext="Reserved Contract" trn="getame" />
</Col> </Col>
<Col span={14}> <Col span={14}>
<CheckboxItem InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("resflg",value)} InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -196,7 +204,7 @@ export default class GetameScreen extends Page { ...@@ -196,7 +204,7 @@ export default class GetameScreen extends Page {
<Label itext="Add. Amount" trn="getame" /> <Label itext="Add. Amount" trn="getame" />
</Col> </Col>
<Col span={1}> <Col span={1}>
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("aammod_addamtflg",value)} InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -388,7 +396,7 @@ export default class GetameScreen extends Page { ...@@ -388,7 +396,7 @@ export default class GetameScreen extends Page {
<Label itext="Unlimited Guarantee" trn="getame" /> <Label itext="Unlimited Guarantee" trn="getame" />
</Col> </Col>
<Col span={1} > <Col span={1} >
<CheckboxItem InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("expflg",value)} InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -411,7 +419,7 @@ export default class GetameScreen extends Page { ...@@ -411,7 +419,7 @@ export default class GetameScreen extends Page {
<Label itext="Unlimited Liability" trn="getame" /> <Label itext="Unlimited Liability" trn="getame" />
</Col> </Col>
<Col span={1} > <Col span={1} >
<CheckboxItem InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("liaflg",value)} InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -435,7 +443,7 @@ export default class GetameScreen extends Page { ...@@ -435,7 +443,7 @@ export default class GetameScreen extends Page {
<Label itext="Test Key Unconfirmity" trn="getame" /> <Label itext="Test Key Unconfirmity" trn="getame" />
</Col> </Col>
<Col span={1} > <Col span={1} >
<CheckboxItem InputProps={bind("teskeyunc")} desp="Test Key Unconfirmity" path="/gidgrp/rec/teskeyunc" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("teskeyunc",value)} InputProps={bind("teskeyunc")} desp="Test Key Unconfirmity" path="/gidgrp/rec/teskeyunc" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -463,7 +471,7 @@ export default class GetameScreen extends Page { ...@@ -463,7 +471,7 @@ export default class GetameScreen extends Page {
<InputItem disabled={true} InputProps={bind("cfaguatyp")} maxLength={4} desp="对外担保类型" path="/gidgrp/rec/cfaguatyp" /> <InputItem disabled={true} InputProps={bind("cfaguatyp")} maxLength={4} desp="对外担保类型" path="/gidgrp/rec/cfaguatyp" />
</Col> </Col>
<Col span={1} offset={1}> <Col span={1} offset={1}>
<CheckboxItem InputProps={bind("cmtflg")} desp="跨境人民币保函" path="/gidgrp/rec/cmtflg" /> <CheckboxItem1 onChange={(value)=>this.Checkboxchange("cmtflg",value)} InputProps={bind("cmtflg")} desp="跨境人民币保函" path="/gidgrp/rec/cmtflg" />
</Col> </Col>
</Row> </Row>
</Col> </Col>
......
...@@ -78,7 +78,7 @@ export default class GetselScreen extends Page { ...@@ -78,7 +78,7 @@ export default class GetselScreen extends Page {
//交易内实现 //交易内实现
renderPage() { renderPage() {
return ( return (
<Card title="包含修改确认" size="small" className="transTitle"> <Card title="出口包含修改" size="small" className="transTitle">
<Steps> <Steps>
......
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
],
mtabut_clsflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \mtabut\clsflg Close Flag
],
newref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \newref New Reference
],
}
\ 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 Getcan {
@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
mtabut_clsflg="" // \mtabut\clsflg Close Flag
@observable
newref="" // \newref New Reference
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.mtabut_clsflg=""
this.newref=""
}
}
export default Getcan
\ No newline at end of file
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem, BottomBtn, DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
import Api from '@/service/api'
import mGetcan 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, Card } from 'antd'
import Business from '@/views/Public/Business'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GetcanScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'getcan'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGetcan()
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getcan/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return(
<Card title="出口保函注销" size="small" className="transTitle">
<div style={{position:'relative',backgroundColor:'#fff',height:'100%'}} >
{/* 第1行 */}
<Business wrappedComponentRef={ref => (this.com = ref)} extra={this.props.extra} model={this.model} />
<Row>
{/* 第1行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="getcan" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
</Col>
</Row>
</Col>
{/* 第1行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="getcan" />
</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>
{/* 第2行 */}
<Row>
{/* 第2行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="getcan" />
</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>
{/* 第2行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Applicant" trn="getcan" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
{/* 第3行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getcan" />
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
</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>
{/* 第3行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Beneficiary" trn="getcan" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第4行 */}
<Row>
{/* 第4行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="getcan" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
</Row>
</Col>
{/* 第4行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Adv\Rcv Bank" trn="getcan" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
{/* 第5行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="getcan" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
{/* 第5行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="getcan" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第6行 */}
<Row>
{/* 第6行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="expfldlab" trn="getcan" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
<Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="liafldlab" trn="getcan" /> </Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
</Col>
</Row>
</Col>
</Row>
{/* 第8行 */}
<Row>
{/* 第8行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reason of Cancelation" trn="getcan" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("purcan")} code={CodeTable.purcan} desp="Reason of Cancelation" path="/gidgrp/rec/purcan"/>
</Col>
</Row>
</Col>
{/* 第8行第2列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Authentication" trn="getcan" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("autflg")} code={CodeTable.autflg} desp="Authentication" path="/autflg"/>
</Col>
</Row>
</Col>
</Row>
{/* 第9行 */}
<Row>
{/* 第9行第1列 */}
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="New Reference" trn="getcan" />
</Col>
<Col span={12}>
<InputItem InputProps={bind("newref")} maxLength={16} desp="New Reference" path="/newref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Close Flag" trn="getcan" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("mtabut_clsflg")} desp="Close Flag" path="/mtabut/clsflg" />
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
</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_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 面函路径
],
}
\ 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 Getcrq {
@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_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 面函路径
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_cortyp=""
this.trndoc_doccod=""
this.docmod_doclst=[]
this.trndoc_docpth=""
}
}
export default Getcrq
\ 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,BottomBtn,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
import Api from '@/service/api'
import mGetcrq from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { Row, Col } from 'antd'
import { action, observable,runInAction } from 'mobx'
import Business from '@/views/Public/Business'
import Ptspta2 from '@/views/Public/Ptspta2'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GetcrqScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'getcrq'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGetcrq()
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getcrq/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()//关闭校验
}
onGetref= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getcrq/getref',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<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">
<Col span={5} offset={2}>
<Label itext="Guarantee" trn="getcrq" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("ownref1")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getcrq" />
</Col>
<Col span={4} >
<InputItem InputProps={bind("opn11_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/opn1/cur" />
</Col>
<Col span={4} offset={1}>
<InputItem InputProps={bind("opn11_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/opn1/cur" />
</Col>
<Col span={4} offset={1}>
<InputItem InputProps={bind("opn11_amt")} desp="Balance" path="/gidgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
</Row>
{/* 第二行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="expfldlab" trn="getcrq" />
</Col>
{/* <Col >
<Label value={this.model.gctp_expfldlab} desp="Label for Field Validity" path="/gctp/expfldlab" />
</Col>
<Col >
<Label value={this.model.gctp_explab} desp="Label unlimited Validity" path="/gctp/explab" />
</Col> */}
<Col span={14} >
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="getcrq" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("nam")} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gcdgrp/rec/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第三行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Claim Number" trn="getcrq" />
</Col>
<Col span={11} >
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gcdgrp/rec/ownref" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" onClick={this.onGetref} desp="Get Ref." path="/mtabut/getref">
<Label itext="获取"/>
</Button>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Applicant Ref." trn="getcrq" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/gcdgrp/apl/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* 第四行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Amount Claimed" trn="getcrq" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("max_cur")} code={CodeTable.curtxt} desp="Currency" path="/gcdgrp/cbs/max/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/gcdgrp/cbs/max/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Add. Amount" trn="getcrq" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("gctp_adaflg")} desp="Add. Amount" path="/gctp/adaflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第五行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getcrq" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("opn1_cur")} code={CodeTable.curtxt} desp="Currency" path="/gcdgrp/cbs/opn1/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("opn1_amt")} desp="Balance" path="/gcdgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="getcrq" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gcdgrp/apl/pts/nam" />
</Col>
{/* <Col offset={7} span={17}>
<Label value={this.model.gctp_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gctp/aplmullab" />
</Col> */}
</Row>
</Col>
</Row>
{/* 第六行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="getcrq" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Beneficiary Ref." trn="getcrq" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts1_ref")} maxLength={16} desp="参考号" path="/gcdgrp/ben/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* 第七行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Date of Claim" trn="getcrq" />
</Col>
<Col span={14} >
<DatePickerItem InputProps={bind("clmdat")} desp="Date of Claim" path="/gcdgrp/rec/clmdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="getcrq" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gcdgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第九行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Amount Claimed" trn="getcrq" />
</Col>
<Col span={6} >
<InputItem InputProps={bind("max_cur")} maxLength={3} desp="Currency" path="/gcdgrp/cbs/max/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/gcdgrp/cbs/max/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Presented by" trn="getcrq" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("docprbrol")} desp="Presented by" path="/gcdgrp/rec/docprbrol"/>
</Col>
</Row>
</Col>
</Row>
{/* 第10行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="附加金额" trn="getcrq" />
</Col>
<Col span={6}>
<SelectItem InputProps={bind("opn2_cur")} code={CodeTable.curtxt} desp="Currency" path="/gcdgrp/cbs/opn2/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max2_amt")} desp="Balance" path="/gcdgrp/cbs/max2/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference " trn="getcrq" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gcdgrp/prb/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* 第11行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Liability until" trn="getcrq" />
</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="Further Processing" trn="getcrq" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("nxtflg")} code={CodeTable.nxtflg} desp="Further Processing" path="/nxtflg"/>
</Col>
</Row>
</Col>
</Row>
{/* 第13行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Text of Claim" trn="getcrq" />
</Col>
<Col span={14} >
<TextAreaItem InputProps={bind("clmtxt")} desp="Text of claim" path="/clmtxt"/>
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Validity Requested" trn="getcrq" />
</Col>
<Col span={14} >
<DatePickerItem InputProps={bind("newexpdat")} desp="Validity Requested" path="/gcdgrp/rec/newexpdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Payer" trn="getcrq" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("payrol")} desp="Payer" path="/gcdgrp/rec/payrol"/>
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Extend or Pay" trn="getcrq" />
</Col>
<Col span={14} >
<CheckboxItem InputProps={bind("extpay")} desp="Extend or Pay" path="/extpay" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts2', url: 'getcrq/othp_sel', flg: 'C', datakey: '\\gitp\\othp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts3', url: 'getcrq/prbp_sel', flg: 'C', datakey: '\\gitp\\prbp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
 {/* 第14行 */}
<BottomBtn _this={this} />
</div>
)
}
}
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, Table, TextArea, ConfirmButton, Steps
} from '@/components/Common-Library'
import Api from '@/service/api'
import mGetcrq from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable, runInAction } from 'mobx'
import Basic from './Basic'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import Engp from '@/views/Public/Engp'
import { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GetcrqScreen extends Page
{
@observable
formBlur = false
@observable
extra = { inifrm: 'Getcrq', sptinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mGetcrq()
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getcrq/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<Card title="出口保函索汇申请" size="small" className="transTitle">
<Steps>
<StepItem title="明细">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem>
</Steps>
</Card>
)
}
}
export default 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
],
}
\ 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 Getfee {
@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
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=""
}
}
export default Getfee
\ No newline at end of file
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem, BottomBtn,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, ConfirmButton, Steps, CheckboxItem, TextAreaItem, Table
} from '@/components/Common-Library'
import Api from '@/service/api'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import { Row, Col, Popconfirm, Modal, Spin } from 'antd';
import { Link, withRouter } from 'react-router-dom'
import Business from '@/views/Public/Business'
const { Pre, Next, StepWrapper } = Steps
const CodeTable = CodeTableFactory.getInstance()
const confirm = Modal.confirm
@withRouter
@inject('UserContext')
@inject('i18n')
@observer
export default class BasicScreen extends Page {
@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' }}>
<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">
<Col span={5} offset={2}>
<Label itext="Reference" trn="getfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ownref")} disabled={true} 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="getfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("nam")} disabled={true} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gidgrp/rec/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第二行 */}
<Row>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
{/* 信用证金额 */}
<Label itext="Guarantee Amount" trn="getfee" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("max_cur")} disabled={true} maxLength={3} desp="Currency" path="/gidgrp/cbs/max/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max_amt")} disabled={true} desp="Balance" path="/gidgrp/cbs/max/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Col span={5} offset={2}>
{/* 申请人名称 */}
<Label itext="Applicant" trn="getfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} disabled={true} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
</Col>
</Col>
</Row>
{/* 第三行 */}
<Row>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
{/* 未到单金额*/}
<Label itext="Open Amount" trn="getfee" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("opn1_cur")} disabled={true} maxLength={3} desp="Currency" path="/gidgrp/cbs/opn1/cur" />
</Col>
<Col span={7} offset={1}>
{/* <InputItem InputProps={bind("opn1_amt")} disabled={true} /> */}
<InputItem InputProps={bind("opn1_amt")} disabled={true} desp="Balance" path="/gidgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Col span={5} offset={2}>
{/* 受益人名称 */}
<Label itext="Beneficiary" trn="getfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} disabled={true} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Col>
</Row >
{/* 第四行 */}
<Row>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="getfee" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} disabled={true} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Col span={5} offset={2}>
<Label itext="Adv\Rcv Bank" trn="getfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} disabled={true} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Col>
</Row >
{/* 第五行 */}
<Row>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
{/* 保函对付方式 */}
<Label itext="Type of Undertaking" trn="getfee" />
</Col>
<Col span={7}>
<SelectItem InputProps={bind("gartyp")} disabled={true} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Col span={5} offset={2}>
{/* 开证行 */}
<Label itext="Issuing Bank" trn="getfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} disabled={true} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Col>
</Row>
{/* 第六行 */}
<Row>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
<Label value={"Valid until"} desp="Label for Field Validity" path="/gitp0/expfldlab" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} disabled={true} desp="Valid until" path="/gidgrp/rec/expdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
<Label value={"Liability until"} desp="Label for Field Lability" path="/gitp0/liafldlab" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} disabled={true} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
</Row>
</Col>
</Row>
{/* 第八行 */}
<Row>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
{/* <Label itext="Internal Transfer Y/N" trn="getfee" /> */}
<Label itext="I T Y/N" trn="getfee" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("intmbu_umbflg")} disabled={true} desp="Internal Transfer Y/N" path="/xxtfee/intmbu/umbflg" ></CheckboxItem>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row" type='flex'>
<Col span={5} offset={2}>
<Label itext="Business Sector" trn="getfee" />
</Col>
<Col span={14}>
<SelectItem InputProps={"Rebooking"} disabled={true} code={CodeTable.bustxt} desp="Business Sector" path="/xxtfee/intmbu/othbussec"/>
</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 mGetfee 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'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GetfeeScreen extends Page
{
@observable
formBlur = false
@observable
extra = { inifrm: 'Getfee', sptinr: '',oldinr:'', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mGetfee()
}
async componentWillMount() {
let gedinr = '';
if (this.props.location.query) {
if(this.props.location.query.from=="sptsel"){
this.extra.sptinr=this.props.location.query.sptinr;
}else{
gedinr=this.props.location.query.gedinr;
}
}
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { sptinr:this.extra.sptinr,gedinr } })
if (rtnmsg.retcod == SUCCESS) {
Object.assign(this.model, rtnmsg.data)
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
this.extra.oldinr=this.model.inr;
this.setState({ flag: false })
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<Card title="出口保函收费" size="small" className="transTitle">
<Steps>
<StepItem title="收费">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<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>
// <div className="transPage">
// <Label itext="Reference" trn="getfee" />
// <InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
// <Label itext="Name" trn="getfee" />
// <InputItem InputProps={bind("nam")} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gidgrp/rec/nam" />
// <Label itext="Applicant" trn="getfee" />
// <Label itext="Guarantee Amount" trn="getfee" />
// <InputItem InputProps={bind("max_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/max/cur" />
// <InputItem InputProps={bind("max_amt")} desp="Balance" path="/gidgrp/cbs/max/amt" />
// <Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
// <InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
// <Label itext="Open Amount" trn="getfee" />
// <InputItem InputProps={bind("opn1_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/opn1/cur" />
// <InputItem InputProps={bind("opn1_amt")} desp="Balance" path="/gidgrp/cbs/opn1/amt" />
// <Label itext="Beneficiary" trn="getfee" />
// <Label itext="Handling Type" trn="getfee" />
// <SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
// <InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
// <Label itext="Adv\Rcv Bank" trn="getfee" />
// <Label itext="Type of Undertaking" trn="getfee" />
// <SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
// <InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
// <Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
// <DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
// <Label itext="Issuing Bank" trn="getfee" />
// <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
// <DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
// <InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
// <CheckboxItem InputProps={bind("intmbu_umbflg")} desp="Internal Transfer Y/N" path="/xxtfee/intmbu/umbflg" />
// <Label itext="Business Sector" trn="getfee" />
// <SelectItem InputProps={bind("intmbu_othbussec")} code={CodeTable.bustxt} desp="Business Sector" path="/xxtfee/intmbu/othbussec"/>
// <Label itext="结算金额" trn="getfee" />
// <SelectItem InputProps={bind("setmod_doccur")} code={CodeTable.curtxt} desp="document currency" path="/setmod/doccur"/>
// <InputItem InputProps={bind("setmod_docamt")} desp="document amount" path="/setmod/docamt" />
// <Button type="primary" onClick={this.onSetmod_feedet} desp="重算金额" path="/setmod/feedet">
// <Label itext="重算金额"/>
// </Button>
// <Label itext="FEEMAC" trn="getfee" />
// <InputItem InputProps={bind("setmod_feemac")} maxLength={200} desp="FEEMAC" path="/setmod/feemac" />
// <Button type="primary" onClick={this.onSetmod_ast} desp="加载账务" path="/setmod/ast">
// <Label itext="加载账务"/>
// </Button>
// <Label itext="SETMAC" trn="getfee" />
// <InputItem InputProps={bind("setmod_setmac")} maxLength={200} desp="SETMAC" path="/setmod/setmac" />
// <Button type="primary" onClick={this.onSetmod_recal} desp="重算账务" path="/setmod/recal">
// <Label itext="重算账务"/>
// </Button>
// <Label itext="费用明细" trn="getfee" />
// <Table rowKey="inr" columns={this.fegmod_feslstHeader} dataSource={this.model.fegmod_feslst} path="/setmod/setfeg/fegmod/feslst"/>
// <Label itext="账务明细" trn="getfee" />
// <Table rowKey="inr" columns={this.glgmod_glslstHeader} dataSource={this.model.glgmod_glslst} path="/setmod/setglg/glgmod/glslst"/>
// <Label itext="会计分录" trn="getfee" />
// <Button type="primary" onClick={this.onGlemod_rebook} desp="分录加载" path="/setmod/glemod/rebook">
// <Label itext="分录加载"/>
// </Button>
// <Table rowKey="inr" columns={this.glemod_glelstHeader} dataSource={this.model.glemod_glelst} path="/setmod/glemod/glelst"/>
// <Label itext="面函码值" trn="getfee" />
// <InputItem InputProps={bind("trndoc_doccod")} maxLength={16} desp="面函码值" path="/trnmod/trndoc/doccod" />
// <Label itext="Per Medium" trn="getfee" />
// <InputItem InputProps={bind("trndoc_cortyp")} maxLength={3} desp="Per Medium" path="/trnmod/trndoc/cortyp" />
// <Button type="primary" onClick={this.onTrndoc_reldoc} desp="面函加载" path="/trnmod/trndoc/reldoc">
// <Label itext="面函加载"/>
// </Button>
// <Button type="primary" onClick={this.onTrndoc_butshw} desp="show doc." path="/trnmod/trndoc/butshw">
// <Label itext="展示"/>
// </Button>
// <Label itext="面函路径" trn="getfee" />
// <InputItem InputProps={bind("trndoc_docpth")} maxLength={100} desp="面函路径" path="/trnmod/trndoc/docpth" />
// <Table rowKey="inr" columns={this.docmod_doclstHeader} dataSource={this.model.docmod_doclst} path="/trnmod/trndoc/docmod/doclst"/>
// <Label itext="唯一编号" trn="getfee" />
// <InputItem InputProps={bind("spt_inr")} maxLength={8} desp="唯一编号" path="/sysmod/spt/inr" />
// <Label itext="A" trn="getfee" />
// <InputItem InputProps={bind("trndoc_doctrestm")} desp="Document tree" path="/trnmod/trndoc/doctrestm" />
// <Button type="primary" onClick={this.onTrndoc_butadd} desp="Details" path="/trnmod/trndoc/butadd">
// <Label itext="B"/>
// </Button>
// <Button type="primary" onClick={this.onTrndoc_butnew} desp="New Entry" path="/trnmod/trndoc/butnew">
// <Label itext="C"/>
// </Button>
// <Button icon="delete" onClick={this.onTrndoc_butdel} desp="Delete Entry" path="/trnmod/trndoc/butdel">
// <Label itext="D"/>
// </Button>
// <CheckboxItem InputProps={bind("trndoc_shwinc")} desp="Show Incoming Messages" path="/trnmod/trndoc/shwinc" />
// <CheckboxItem InputProps={bind("trndoc_shwout")} desp="Show Outgoing Messages" path="/trnmod/trndoc/shwout" />
// <CheckboxItem InputProps={bind("trndoc_shwoutint")} desp="Show Internal Messages" path="/trnmod/trndoc/shwoutint" />
// <Button type="primary" onClick={this.onTrndoc_butatt} desp="Attach" path="/trnmod/trndoc/butatt">
// <Label itext="E"/>
// </Button>
// <InputItem InputProps={bind("trndoc_condocstm")} desp="Connected Documents" path="/trnmod/trndoc/condocstm" />
// <Button type="primary" icon="save"
// onClick={this.onSav} desp="Save" path="/mtabut/sav">
// <Label itext="提交"/>
// </Button>
// <Button type="primary" onClick={this.onChk} desp="Check" path="/mtabut/chk">
// <Label itext="检核"/>
// </Button>
// <Button type="primary" onClick={this.onPed} desp="暂存" path="/mtabut/ped">
// <Label itext="暂存"/>
// </Button>
// <Button type="primary" onClick={this.onExi} desp="Exit" path="/mtabut/exi">
// <Label itext="退出"/>
// </Button>
// </div>
)
}
}
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 Getfre {
@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 Getfre
\ No newline at end of file
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem, BottomBtn, TextAreaItem, CheckboxItem,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, Table, TextArea, ConfirmButton, Steps, AmountLabel
} from '@/components/Common-Library'
import Api from '@/service/api'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import { Row, Col, Popconfirm, Modal } from 'antd';
import { ButtonModal, ModalTest } from '@/components/Business-Library'
import { Link, withRouter } from 'react-router-dom'
import Business from '@/views/Public/Business'
import Ptspta2 from '@/views/Public/Ptspta2'
const CodeTable = CodeTableFactory.getInstance()
const confirm = Modal.confirm
const { Pre, Next, StepWrapper } = Steps
@withRouter
@inject('UserContext')
@inject('i18n')
@observer
export default class CommonMessagesScreen extends Page {
@observable
formBlur = false
constructor(props) {
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount() {
}
componentWillUnmount() {
// this.model.closeValidate()//关闭校验
}
onTabFocus = async () => {
this.com.wrappedInstance.wrappedInstance.onRebook();
}
//交易内实现
renderPage() {
const bind = this.bind
const { i18n } = this.props
return (
<div style={{ position: 'relative' }}>
<Business wrappedComponentRef={ref => (this.com = ref)} steps={this.props.steps} extra={this.props.extra} model={this.model} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="getfre" />
</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="getfre" />
</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>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="getfre" />
</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="Applicant" trn="getfre" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getfre" />
</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="getfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Beneficiary" trn="getfre" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts4_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="getfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Adv\Rcv Bank" trn="getfre" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_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="expdat" trn="getfre" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="getfre" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts5_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="liadat" trn="getfre" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="发报类型" trn="getfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_sndmt")} code={CodeTable.sndmt} desp="message to be created" path="/fremsg/sndmt" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="报文类型" trn="getfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_fulmt")} code={CodeTable.fulmt} desp="MT to Send" path="/fremsg/fulmt" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="标题" trn="getfre" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("fremsg_prttitle")} maxLength={35} desp="Document Title" path="/fremsg/prttitle" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="收报行" trn="getfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_msgrol")} code={CodeTable.rolall} desp="Role Message" path="/fremsg/msgrol" />
</Col>
</Row>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts1', url: 'getfre/fmop_sel', flg: 'C', datakey: '\\gitp\\fmop\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="fremsg" trn="getfre" />
</Col>
<Col span={6}>
<DatePickerItem InputProps={bind("fremsg_reldat")} desp="from" path="/fremsg/reldat" />
</Col>
<Col span={7} offset={1}>
<SelectItem InputProps={bind("fremsg_reldir")} code={CodeTable.reldir} desp="relevant message sent/received" path="/fremsg/reldir" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="flg for gitfre" trn="getfre" />
</Col>
<Col span={14} >
<CheckboxItem InputProps={bind("fremsg_flg")} desp="flg for gitfre" path="/fremsg/flg" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="tag 20 Ref" trn="getfre" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("fremsg_tag20ref")} maxLength={16} desp="tag 20 Ref" path="/fremsg/tag20ref" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Narrative" trn="getfre" />
</Col>
<Col span={14} >
<TextAreaItem InputProps={bind("fremsg_strinf")} desp="Narrative" path="/fremsg/strinf" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="相关报文" trn="getfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_relmt")} code={CodeTable.relmt} desp="related MT" path="/fremsg/relmt" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="副本的收报行" trn="getfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_ccrol")} code={CodeTable.rolall} desp="Role Copy" path="/fremsg/ccrol" />
</Col>
</Row>
<Row className='row'>
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts', url: 'getfre/fmcp_sel', flg: 'C', datakey: '\\gitp\\fmcp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
<BottomBtn _this={this} />
</div >
)
}
}
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem, BottomBtn, TextAreaItem, CheckboxItem,
InputItem, Input, Bind, SelectItem, Button, Label, DatePickerItem, Section, Table, TextArea, ConfirmButton, Steps, AmountLabel
} from '@/components/Common-Library'
import Api from '@/service/api'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import { Row, Col, Popconfirm, Modal } from 'antd';
import { ButtonModal, ModalTest } from '@/components/Business-Library'
import { Link, withRouter } from 'react-router-dom'
import Business from '@/views/Public/Business'
const CodeTable = CodeTableFactory.getInstance()
const confirm = Modal.confirm
const { Pre, Next, StepWrapper } = Steps
@withRouter
@inject('UserContext')
@inject('i18n')
@observer
export default class AttachmentsScreen extends Page {
@observable
formBlur = false
constructor(props) {
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount() {
}
componentWillUnmount() {
// this.model.closeValidate()//关闭校验
}
onTabFocus = async () => {
this.com.wrappedInstance.wrappedInstance.onRebook();
}
//交易内实现
renderPage() {
const bind = this.bind
const { i18n } = this.props
return (
<div style={{ position: 'relative' }}>
<Business wrappedComponentRef={ref => (this.com = ref)} steps={this.props.steps} extra={this.props.extra} model={this.model} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Document tree" trn="getfre" />
</Col>
<Col span={14}>
<InputItem style={{ height: "60px", display: "inline-block" }} InputProps={bind("trndoc_doctrestm")} desp="Document tree" path="/trnmod/trndoc/doctrestm" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Show Incoming Messages" trn="getfre" /> */}
<Label itext="S Icm Msg" trn="getfre" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("trndoc_shwinc")} desp="Show Incoming Messages" path="/trnmod/trndoc/shwinc" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Connected Documents" trn="getfre" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("trndoc_condocstm")} desp="Connected Documents" path="/trnmod/trndoc/condocstm" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Show Internal Messages" trn="getfre" /> */}
<Label itext="S Itl Msg" trn="getfre" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("trndoc_shwoutint")} desp="Show Internal Messages" path="/trnmod/trndoc/shwoutint" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Show Outgoing Messages" trn="getfre" /> */}
<Label itext="S Otg Msg" trn="getfre" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("trndoc_shwout")} desp="Show Outgoing Messages" path="/trnmod/trndoc/shwout" />
</Col>
</Row>
</Col>
</Row>
<BottomBtn _this={this} />
</div >
)
}
}
import React, { Component, Fragment } from 'react'
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 mGetfre from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import FuJia from './FuJia'
import Basic from './Basic'
import { Card } from 'antd'
import DateFormat from '@/utils/DateUtil'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GetfreScreen extends Page {
@observable
formBlur = false
@observable
extra = { inifrm: 'getfre', sptinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mGetfre()
}
async componentWillMount() {
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getfre/init', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
const { data } = rtnmsg
Object.assign(this.model, data)
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount() {
this.model.stopMonitor && this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage() {
return (
<Card title="出口保函自由报文" size="small" className="transTitle">
<Steps>
<StepItem title="自由报文">
<Basic model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="附加">
<FuJia model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem>
</Steps>
</Card>
)
}
}
import React,{Component,Fragment} from 'react' import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem, Checkbox, import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem1, Checkbox,
InputItem, Input, Bind, SelectItem, Button, Label, Image, Table} from '@/components/Common-Library' InputItem, Input, Bind, SelectItem, Button, Label, Image, Table} from '@/components/Common-Library'
import Api from '@/service/api' import Api from '@/service/api'
import Business from '@/views/Public/Business' import Business from '@/views/Public/Business'
...@@ -27,10 +27,21 @@ export default class GetopnScreen extends Page ...@@ -27,10 +27,21 @@ export default class GetopnScreen extends Page
getChildContext () { getChildContext () {
return {trn:'getopn'} return {trn:'getopn'}
} }
@observable
formBlur=false
@observable
visible=false
@observable @observable
formBlur=false dataSource=[]
@observable
datakey=''
@observable
prefix=''
constructor(props) constructor(props)
{ {
...@@ -85,41 +96,13 @@ export default class GetopnScreen extends Page ...@@ -85,41 +96,13 @@ export default class GetopnScreen extends Page
}) })
} }
onAplp_sel = () => { Checkboxchange=(type,value)=>{
this.formBlur = true //已触发表单提交处理 console.log(value)
Validator.validate(this.model, this.model.descriptor, async (errors, values) => { if(value){
if (errors) this.model[type]='0'
return }else{
const rtnmsg = await Api.post('getopn/aplp_sel', { data: this.model }) this.model[type]='1'
if (rtnmsg.retcod == SUCCESS) {
console.log(rtnmsg)
this.model.pts1_extkey = rtnmsg.data.pts1_extkey;
} }
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
onBenp_sel = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post('getopn/benp_sel', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
console.log(rtnmsg)
this.model.pts2_extkey = rtnmsg.data.pts2_extkey;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
} }
//交易内实现 //交易内实现
renderPage(){ renderPage(){
...@@ -175,7 +158,7 @@ export default class GetopnScreen extends Page ...@@ -175,7 +158,7 @@ export default class GetopnScreen extends Page
<Label itext="Reserved Contract" trn="getopn" /> <Label itext="Reserved Contract" trn="getopn" />
</Col> </Col>
<Col span={14}> <Col span={14}>
<CheckboxItem InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" /> <CheckboxItem1 InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" onChange={(value)=>this.Checkboxchange("resflg",value)} />
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -249,7 +232,7 @@ export default class GetopnScreen extends Page ...@@ -249,7 +232,7 @@ export default class GetopnScreen extends Page
<Label itext="Add. Amount" trn="getopn" /> <Label itext="Add. Amount" trn="getopn" />
</Col> </Col>
<Col span={1}> <Col span={1}>
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" /> <CheckboxItem1 InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" onChange={(value)=>this.Checkboxchange("aammod_addamtflg",value)}/>
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -339,7 +322,7 @@ export default class GetopnScreen extends Page ...@@ -339,7 +322,7 @@ export default class GetopnScreen extends Page
<Col span={12}> <Col span={12}>
<Row className="row"> <Row className="row">
<Col span={5} offset={2}> <Col span={5} offset={2}>
<Label itext="Adv\Rcv bank Ref." trn="getopn" /> <Label itext="Adv Rcv bank Ref." trn="getopn" />
</Col> </Col>
<Col span={14} > <Col span={14} >
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/gidgrp/adv/pts/ref" /> <InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/gidgrp/adv/pts/ref" />
...@@ -440,7 +423,7 @@ export default class GetopnScreen extends Page ...@@ -440,7 +423,7 @@ export default class GetopnScreen extends Page
<Label itext="Unlimited Guarantee" trn="getopn" /> <Label itext="Unlimited Guarantee" trn="getopn" />
</Col> </Col>
<Col span={1} > <Col span={1} >
<CheckboxItem InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" /> <CheckboxItem1 InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" onChange={(value)=>this.Checkboxchange("expflg",value)}/>
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -463,7 +446,7 @@ export default class GetopnScreen extends Page ...@@ -463,7 +446,7 @@ export default class GetopnScreen extends Page
<Label itext="Unlimited Liability" trn="getopn" /> <Label itext="Unlimited Liability" trn="getopn" />
</Col> </Col>
<Col span={1} > <Col span={1} >
<CheckboxItem InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" /> <CheckboxItem1 InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" onChange={(value)=>this.Checkboxchange("liaflg",value)}/>
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -487,7 +470,7 @@ export default class GetopnScreen extends Page ...@@ -487,7 +470,7 @@ export default class GetopnScreen extends Page
<Label itext="Test Key Unconfirmity" trn="getopn" /> <Label itext="Test Key Unconfirmity" trn="getopn" />
</Col> </Col>
<Col span={1} > <Col span={1} >
<CheckboxItem InputProps={bind("teskeyunc")} desp="Test Key Unconfirmity" path="/gidgrp/rec/teskeyunc" /> <CheckboxItem1 InputProps={bind("teskeyunc")} desp="Test Key Unconfirmity" path="/gidgrp/rec/teskeyunc" onChange={(value)=>this.Checkboxchange("teskeyunc",value)}/>
</Col> </Col>
</Row> </Row>
</Col> </Col>
...@@ -515,7 +498,7 @@ export default class GetopnScreen extends Page ...@@ -515,7 +498,7 @@ export default class GetopnScreen extends Page
<InputItem InputProps={bind("cfaguatyp")} maxLength={4} desp="对外担保类型" path="/gidgrp/rec/cfaguatyp" /> <InputItem InputProps={bind("cfaguatyp")} maxLength={4} desp="对外担保类型" path="/gidgrp/rec/cfaguatyp" />
</Col> </Col>
<Col span={1} offset={1}> <Col span={1} offset={1}>
<CheckboxItem InputProps={bind("cmtflg")} desp="跨境人民币保函" path="/gidgrp/rec/cmtflg" /> <CheckboxItem1 InputProps={bind("cmtflg")} desp="跨境人民币保函" path="/gidgrp/rec/cmtflg" onChange={(value)=>this.Checkboxchange("cmtflg",value)}/>
</Col> </Col>
</Row> </Row>
</Col> </Col>
......
import React,{Component,Fragment} from 'react' import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem, Checkbox, import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem1, Checkbox,
InputItem, Input, Bind, SelectItem, Button, Label, Image, Table} from '@/components/Common-Library' InputItem, Input, Bind, SelectItem, Button, Label, Image, Table} from '@/components/Common-Library'
import Api from '@/service/api' import Api from '@/service/api'
import Business from '@/views/Public/Business' import Business from '@/views/Public/Business'
...@@ -28,10 +28,21 @@ export default class GetopnScreen extends Page ...@@ -28,10 +28,21 @@ export default class GetopnScreen extends Page
return {trn:'getopn'} return {trn:'getopn'}
} }
@observable @observable
formBlur=false formBlur=false
@observable
visible=false
@observable
dataSource=[]
@observable
datakey=''
@observable
prefix=''
constructor(props) constructor(props)
{ {
super(props) super(props)
...@@ -59,7 +70,14 @@ export default class GetopnScreen extends Page ...@@ -59,7 +70,14 @@ export default class GetopnScreen extends Page
{ {
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验 this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
} }
Checkboxchange=(type,value)=>{
console.log(value)
if(value){
this.model[type]='0'
}else{
this.model[type]='1'
}
}
//交易内实现 //交易内实现
renderPage(){ renderPage(){
...@@ -120,7 +138,7 @@ export default class GetopnScreen extends Page ...@@ -120,7 +138,7 @@ export default class GetopnScreen extends Page
<Label itext="Modify Guarantee Text" trn="getopn" /> <Label itext="Modify Guarantee Text" trn="getopn" />
</Col> </Col>
<Col span={1} > <Col span={1} >
<CheckboxItem InputProps={bind("gitp_gidtxtmodflg")} desp="Modify Guarantee Text" path="/gitp/gidtxtmodflg" /> <CheckboxItem1 InputProps={bind("gitp_gidtxtmodflg")} desp="Modify Guarantee Text" path="/gitp/gidtxtmodflg" onChange={(value)=>this.Checkboxchange("gitp_gidtxtmodflg",value)}/>
</Col> </Col>
</Row> </Row>
</Col> </Col>
......
...@@ -106,11 +106,11 @@ export default class ChuKouBaoHanScreen extends Page { ...@@ -106,11 +106,11 @@ export default class ChuKouBaoHanScreen extends Page {
this.gidinr = inr this.gidinr = inr
} }
const rtnmsg = await Api.post('getsel/cfgfil_isnext', { data: this.model, params: { objinr: this.gidinr, objtyp: "gid" } }) const rtnmsg = await Api.post('getsel/cfgfil_isnext', { data: this.model, params: { objinr: this.gidinr, objtyp: "gid" } })
if (rtnmsg.retcod == SUCCESS) { // if (rtnmsg.retcod == SUCCESS) {
this.props.history.push({ pathname, query: { gidinr: this.gidinr } }); this.props.history.push({ pathname, query: { gidinr: this.gidinr } });
} else { // } else {
Notification.error({ message: `${rtnmsg.retmsg}` }) // Notification.error({ message: `${rtnmsg.retmsg}` })
} // }
} }
onSellst = async () => { onSellst = async () => {
......
...@@ -89,5 +89,6 @@ export default class GetselScreen extends Page { ...@@ -89,5 +89,6 @@ export default class GetselScreen extends Page {
</Card> </Card>
) )
} }
} }
export default fieldSet = {
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_aplmullab:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gctp\aplmullab Label, that is set, if there are multiple applicants
],
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
],
ownref1:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
opn11_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
opn11_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\rec\ownref Reference
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gcdgrp\rec\nam Externally Displayed Name to Identify the Contract
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\max\cur Currency
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\max\amt Balance
],
gctp_adaflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gctp\adaflg Add. Amount
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\opn1\cur Currency
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\opn1\amt Balance
],
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
],
clmdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gcdgrp\rec\clmdat Date of Claim
],
pts_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\apl\pts\ref 参考号
],
pts_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gcdgrp\apl\pts\nam 客户英文名称
],
pts1_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\ben\pts\ref 参考号
],
pts1_nam:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \gcdgrp\ben\pts\nam 客户英文名称
],
opn2_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\cbs\opn2\cur Currency
],
max2_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\cbs\max2\amt Balance
],
cannowflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gcdgrp\rec\cannowflg Payment under Cancelation of Guarantee
],
mtabut_clsflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \mtabut\clsflg Close Flag
],
docprbrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\rec\docprbrol Presented by
],
pts3_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\prb\pts\ref 参考号
],
pts3_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\prb\pts\extkey 客户编号
],
pts3_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gcdgrp\prb\pts\adrblk SWIFT地址
],
payrol:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gcdgrp\rec\payrol Payer
],
pts2_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gcdgrp\oth\pts\extkey 客户编号
],
pts2_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gcdgrp\oth\pts\adrblk SWIFT地址
],
liaccv_concur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \liaall\liaccv\concur 业务结算币种
],
liaccv_newamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\newamt 业务金额
],
liaccv_cshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\cshpct 保证金应收比例
],
liaccv_chgamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\chgamt 变动金额
],
liaccv_totcovamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\totcovamt 保证金合计
],
liaccv_pctresamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \liaall\liaccv\pctresamt 应收/支保证金
],
liaccv_relcshpct:[
{type:'string',max:5,message:'长度不能超过5个字符'}, // \liaall\liaccv\relcshpct 保证金实收比例
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
],
setmod_docamt:[
{type:'string',max:18,message:'长度不能超过18个字符'}, // \setmod\docamt document amount
],
setmod_feemac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\feemac FEEMAC
],
setmod_setmac:[
{type:'string',max:200,message:'长度不能超过200个字符'}, // \setmod\setmac SETMAC
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
}
\ 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 Getset {
@observable
gctp_expfldlab="" // \gctp\expfldlab Label for Field Validity
@observable
gctp_explab="" // \gctp\explab Label unlimited Validity
@observable
gctp_aplmullab="" // \gctp\aplmullab Label, that is set, if there are multiple applicants
@observable
gctp_liafldlab="" // \gctp\liafldlab Label for Field Liability
@observable
gctp_lialab="" // \gctp\lialab Label unlimited Liability
@observable
ownref1="" // \gidgrp\rec\ownref Reference
@observable
expdat="" // \gidgrp\rec\expdat Valid until
@observable
opn11_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
opn11_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
ownref="" // \gcdgrp\rec\ownref Reference
@observable
nam="" // \gcdgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
max_cur="" // \gcdgrp\cbs\max\cur Currency
@observable
max_amt="" // \gcdgrp\cbs\max\amt Balance
@observable
gctp_adaflg="" // \gctp\adaflg Add. Amount
@observable
opn1_cur="" // \gcdgrp\cbs\opn1\cur Currency
@observable
opn1_amt="" // \gcdgrp\cbs\opn1\amt Balance
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
liadat="" // \gidgrp\rec\liadat Liability until
@observable
clmdat="" // \gcdgrp\rec\clmdat Date of Claim
@observable
pts_ref="" // \gcdgrp\apl\pts\ref 参考号
@observable
pts_nam="" // \gcdgrp\apl\pts\nam 客户英文名称
@observable
pts1_ref="" // \gcdgrp\ben\pts\ref 参考号
@observable
pts1_nam="" // \gcdgrp\ben\pts\nam 客户英文名称
@observable
opn2_cur="" // \gcdgrp\cbs\opn2\cur Currency
@observable
max2_amt="" // \gcdgrp\cbs\max2\amt Balance
@observable
cannowflg="" // \gcdgrp\rec\cannowflg Payment under Cancelation of Guarantee
@observable
mtabut_clsflg="" // \mtabut\clsflg Close Flag
@observable
docprbrol="" // \gcdgrp\rec\docprbrol Presented by
@observable
pts3_ref="" // \gcdgrp\prb\pts\ref 参考号
@observable
pts3_extkey="" // \gcdgrp\prb\pts\extkey 客户编号
@observable
pts3_adrblk="" // \gcdgrp\prb\pts\adrblk SWIFT地址
@observable
payrol="" // \gcdgrp\rec\payrol Payer
@observable
pts2_extkey="" // \gcdgrp\oth\pts\extkey 客户编号
@observable
pts2_adrblk="" // \gcdgrp\oth\pts\adrblk SWIFT地址
@observable
liaall_liaallg=[] // \liaall\liaallg
@observable
liaccv_concur="" // \liaall\liaccv\concur 业务结算币种
@observable
liaccv_newamt="" // \liaall\liaccv\newamt 业务金额
@observable
liaccv_cshpct="" // \liaall\liaccv\cshpct 保证金应收比例
@observable
liaccv_chgamt="" // \liaall\liaccv\chgamt 变动金额
@observable
liaccv_totcovamt="" // \liaall\liaccv\totcovamt 保证金合计
@observable
liaccv_pctresamt="" // \liaall\liaccv\pctresamt 应收/支保证金
@observable
liaccv_relcshpct="" // \liaall\liaccv\relcshpct 保证金实收比例
@observable
liaccv_liaccvg=[] // \liaall\liaccv\liaccvg
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
setmod_setmac="" // \setmod\setmac SETMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
get descriptor()
{
return _descriptor
}
clear()
{
this.gctp_expfldlab=""
this.gctp_explab=""
this.gctp_aplmullab=""
this.gctp_liafldlab=""
this.gctp_lialab=""
this.ownref1=""
this.expdat=""
this.opn11_cur=""
this.opn11_amt=""
this.ownref=""
this.nam=""
this.max_cur=""
this.max_amt=""
this.gctp_adaflg=""
this.opn1_cur=""
this.opn1_amt=""
this.gartyp=""
this.liadat=""
this.clmdat=""
this.pts_ref=""
this.pts_nam=""
this.pts1_ref=""
this.pts1_nam=""
this.opn2_cur=""
this.max2_amt=""
this.cannowflg=""
this.mtabut_clsflg=""
this.docprbrol=""
this.pts3_ref=""
this.pts3_extkey=""
this.pts3_adrblk=""
this.payrol=""
this.pts2_extkey=""
this.pts2_adrblk=""
this.liaall_liaallg=[]
this.liaccv_concur=""
this.liaccv_newamt=""
this.liaccv_cshpct=""
this.liaccv_chgamt=""
this.liaccv_totcovamt=""
this.liaccv_pctresamt=""
this.liaccv_relcshpct=""
this.liaccv_liaccvg=[]
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_doccur=""
this.setmod_docamt=""
this.setmod_feemac=""
this.setmod_setmac=""
this.glemod_glelst=[]
this.docmod_doclst=[]
this.trndoc_docpth=""
this.trndoc_doccod=""
this.trndoc_cortyp=""
this.spt_inr=""
}
}
export default Getset
\ No newline at end of file
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {
Page, Validator, Notification, FormItem, DatePickerItem, TextAreaItem, BottomBtn,CheckboxItem, Checkbox,
InputItem, Input, Bind, SelectItem, Button, Label, Image, Table
} from '@/components/Common-Library'
import Api from '@/service/api'
import mGetset from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { Row, Col } from 'antd'
import { action, observable,runInAction } from 'mobx'
import Ptspta2 from '@/views/Public/Ptspta2'
import Business from '@/views/Public/Business'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GetsetScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'getset'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mGetset()
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getset/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()//关闭校验
}
onGetref= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getset/getref',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<Business wrappedComponentRef={ref => (this.com = ref)} extra={this.props.extra} model={this.model} />
{/* 第1行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee" trn="getset" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("ownref1")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getset" />
</Col>
<Col span={6} >
<InputItem InputProps={bind("opn11_cur")} maxLength={3} desp="Currency" path="/gidgrp/cbs/opn1/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("opn11_amt")} desp="Balance" path="/gidgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
</Row>
{/* 第2行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="expfldlab" trn="getset" />
</Col>
<Col span={6} >
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
<Label value={this.model.gctp_expfldlab} desp="Label for Field Validity" path="/gctp/expfldlab" />
</Col>
<Col span={7} offset={1}>
<Label value={this.model.gctp_explab} desp="Label unlimited Validity" path="/gctp/explab" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="getset" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("nam")} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gcdgrp/rec/nam" />
</Col>
</Row>
</Col>
</Row>
{/* 第2行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Claim Number" trn="getset" />
</Col>
<Col span={11} >
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gcdgrp/rec/ownref" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" onClick={this.onGetref} desp="Get Ref." path="/mtabut/getref">
<Label itext="获取"/>
</Button>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Applicant Ref." trn="getset" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/gcdgrp/apl/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Amount Claime" trn="getset" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("max_cur")} code={CodeTable.curtxt} desp="Currency" path="/gcdgrp/cbs/max/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/gcdgrp/cbs/max/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Add. Amount" trn="getset" />
</Col>
<Col span={1} offset={1}>
<CheckboxItem InputProps={bind("gctp_adaflg")} desp="Add. Amount" path="/gctp/adaflg" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="getset" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gcdgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getset" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("opn1_cur")} code={CodeTable.curtxt} desp="Currency" path="/gcdgrp/cbs/opn1/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("opn1_amt")} desp="Balance" path="/gcdgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Under" trn="getset" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Beneficiary Ref." trn="getset" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts1_ref")} maxLength={16} desp="参考号" path="/gcdgrp/ben/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* 第6行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="liafldlab" trn="getset" />
</Col>
<Col span={14} >
<Label value={this.model.gctp_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gctp/aplmullab" />
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gcdgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Date of Claim" trn="getset" />
</Col>
<Col span={14} >
<DatePickerItem InputProps={bind("clmdat")} desp="Date of Claim" path="/gcdgrp/rec/clmdat" />
</Col>
</Row>
</Col>
</Row>
{/* 第7行 */}
{/* 第8行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Amount Claime" trn="getset" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("opn2_cur")} code={CodeTable.curtxt} desp="Currency" path="/gcdgrp/cbs/opn2/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max2_amt")} desp="Balance" path="/gcdgrp/cbs/max2/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Presented By" trn="getset" />
</Col>
<Col span={14} >
<SelectItem InputProps={bind("docprbrol")} desp="Presented by" path="/gcdgrp/rec/docprbrol"/>
</Col>
</Row>
</Col>
</Row>
{/* 第9行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="getset" />
</Col>
<Col span={6} >
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
<Col span={7} offset={1}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
<Label value={this.model.gctp_liafldlab} desp="Label for Field Liability" path="/gctp/liafldlab" />
<Label value={this.model.gctp_lialab} desp="Label unlimited Liability" path="/gctp/lialab" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Reference" trn="getset" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gcdgrp/prb/pts/ref" />
</Col>
</Row>
</Col>
</Row>
{/* 第10行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
{/* <Label itext="Payment under Cancelation of Guarantee" trn="getset" /> */}
<Label itext="P C O Gte" trn="getset" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("cannowflg")} desp="Payment under Cancelation of Guarantee" path="/gcdgrp/rec/cannowflg" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="闭卷" trn="getset" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("mtabut_clsflg")} desp="Close Flag" path="/mtabut/clsflg" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Player" trn="getset" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("payrol")} desp="Payer" path="/gcdgrp/rec/payrol"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts3', url: 'getset/prbp_sel', flg: 'C', datakey: '\\gitp\\prbp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts2', url: 'getset/othp_sel', flg: 'C', datakey: '\\gitp\\othp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
<BottomBtn _this={this} />
</div>
)
}
}
import React, { Component, Fragment } from 'react'
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 mGetset from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import { Card } from 'antd'
import DateFormat from '@/utils/DateUtil'
import Engp from '@/views/Public/Engp'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import Basic from './Basic'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GetsetScreen extends Page
{
@observable
formBlur = false
@observable
extra = { inifrm: 'getset', sptinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mGetset()
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getset/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(){
return (
<Card title="出口保函收汇" size="small" className="transTitle">
<Steps>
<StepItem title="Claim Payment">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem>
</Steps>
</Card>
)
}
}
...@@ -159,30 +159,16 @@ const Lckinf =MLoader(()=>import('./Lckinf')) ...@@ -159,30 +159,16 @@ const Lckinf =MLoader(()=>import('./Lckinf'))
const Loginf =MLoader(()=>import('./Loginf')) const Loginf =MLoader(()=>import('./Loginf'))
const Elschk =MLoader(()=>import('./Elschk')) const Elschk =MLoader(()=>import('./Elschk'))
const Ptybat =MLoader(()=>import('./Ptybat')) const Ptybat =MLoader(()=>import('./Ptybat'))
const Gitsel =MLoader(()=>import('./Gitsel')) const Gitadd = MLoader(() => import('./Gitadd'))
const Gitopn =MLoader(()=>import('./Gitopn')) const Getsel = MLoader(() => import('./Getsel'))
const Gitame =MLoader(()=>import('./Gitame')) const Getset = MLoader(() => import('./Getset'))
const Gitadd =MLoader(()=>import('./Gitadd')) const Getopn = MLoader(() => import('./Getopn'))
const Infgid =MLoader(()=>import('./Infgid')) const Getfre = MLoader(() => import('./Getfre'))
const Gitcrq =MLoader(()=>import('./Gitcrq')) const Getfee = MLoader(() => import('./Getfee'))
const Gitset =MLoader(()=>import('./Gitset')) const Getcrq = MLoader(() => import('./Getcrq'))
const Gitcan =MLoader(()=>import('./Gitcan')) const Getcan = MLoader(() => import('./Getcan'))
const Gitatt =MLoader(()=>import('./Gitatt')) const Getamc = MLoader(() => import('./Getamc'))
const Gitcom =MLoader(()=>import('./Gitcom')) const Getame = MLoader(() => import('./Getame'))
const Gitcrj =MLoader(()=>import('./Gitcrj'))
const Giteng =MLoader(()=>import('./Giteng'))
const Gitfee =MLoader(()=>import('./Gitfee'))
const Gitfre =MLoader(()=>import('./Gitfre'))
const Gitpca =MLoader(()=>import('./Gitpca'))
const Gitplb =MLoader(()=>import('./Gitplb'))
const Gitrop =MLoader(()=>import('./Gitrop'))
const Gitten =MLoader(()=>import('./Gitten'))
const Getsel =MLoader(()=>import('./Getsel'))
const Getame =MLoader(()=>import('./Getame'))
const Getopn =MLoader(()=>import('./Getopn'))
export default class Bus extends Component{ export default class Bus extends Component{
...@@ -366,29 +352,17 @@ export default class Bus extends Component{ ...@@ -366,29 +352,17 @@ export default class Bus extends Component{
<Route exact path={`${moduleBasePath}lckinf${!isDisplay?'':'/:trninr'}`} render={(props)=><Lckinf {...props} {...params}/>} /> <Route exact path={`${moduleBasePath}lckinf${!isDisplay?'':'/:trninr'}`} render={(props)=><Lckinf {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}elschk${!isDisplay?'':'/:trninr'}`} render={(props)=><Elschk {...props} {...params}/>} /> <Route exact path={`${moduleBasePath}elschk${!isDisplay?'':'/:trninr'}`} render={(props)=><Elschk {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}ptybat${!isDisplay?'':'/:trninr'}`} render={(props)=><Ptybat {...props} {...params}/>} /> <Route exact path={`${moduleBasePath}ptybat${!isDisplay?'':'/:trninr'}`} render={(props)=><Ptybat {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitsel${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitsel {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitopn${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitopn {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitame${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitame {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitadd${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitadd {...props} {...params}/>} /> <Route exact path={`${moduleBasePath}gitadd${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitadd {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}infgid${!isDisplay?'':'/:trninr'}`} render={(props)=><Infgid {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitcrq${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitcrq {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitset${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitset {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitcan${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitcan {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitatt${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitatt {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitcom${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitcom {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitcrj${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitcrj {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}giteng${!isDisplay?'':'/:trninr'}`} render={(props)=><Giteng {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitfee${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitfee {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitfre${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitfre {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitpca${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitpca {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitplb${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitplb {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitrop${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitrop {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}gitten${!isDisplay?'':'/:trninr'}`} render={(props)=><Gitten {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}getsel${!isDisplay?'':'/:trninr'}`} render={(props)=><Getsel {...props} {...params}/>} /> <Route exact path={`${moduleBasePath}getsel${!isDisplay?'':'/:trninr'}`} render={(props)=><Getsel {...props} {...params}/>} />
<Route exact path={`${moduleBasePath}getopn${!isDisplay?'':'/:trninr'}`} render={(props)=><Getopn {...props} {...params}/>} /> <Route exact path={`${moduleBasePath}getset${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getset {...props} {...params} />} />
<Route exact path={`${moduleBasePath}getame${!isDisplay?'':'/:trninr'}`} render={(props)=><Getame {...props} {...params}/>} /> <Route exact path={`${moduleBasePath}getopn${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getopn {...props} {...params} />} />
<Route exact path={`${moduleBasePath}getfre${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getfre {...props} {...params} />} />
<Route exact path={`${moduleBasePath}getfee${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getfee {...props} {...params} />} />
<Route exact path={`${moduleBasePath}getcrq${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getcrq {...props} {...params} />} />
<Route exact path={`${moduleBasePath}getcan${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getcan {...props} {...params} />} />
<Route exact path={`${moduleBasePath}getamc${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getamc {...props} {...params} />} />
<Route exact path={`${moduleBasePath}getame${!isDisplay ? '' : '/:trninr'}`} render={(props) => <Getame {...props} {...params} />} />
</React.Fragment> </React.Fragment>
} }
} }
......
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