Commit c8b0d3ea by YuMengShuai

出口保函开例

parent 41901fc4
export default fieldSet = {
gitp_drpreflglab:[
{type:'string',max:20,message:'长度不能超过20个字符'}, // \gitp\drpreflglab Label for Type of Request
],
ownref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\rec\ownref Reference
],
nam:[
{type:'string',max:40,message:'长度不能超过40个字符'}, // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
],
usr_nam:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \gitp\\sysmod\usr\nam 用户ID
cfaguatyp:[
{type:'string',max:4,message:'长度不能超过4个字符'}, // \gidgrp\rec\cfaguatyp 对外担保类型
],
resflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\resflg Reserved Contract
],
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
cmtflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\cmtflg 跨境人民币保函
],
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
],
aammod_addamtflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gitp\aamp\aammod\addamtflg Add. Amount
expflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\expflg Unlimited Guarantee
],
gitp_drpreflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gitp\drpreflg Type of Request
fenlishi:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\fenlishi 是否分离式保函
],
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
fingua:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\fingua 是否对外担保
],
gartyp:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\gartyp Type of Undertaking
],
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
],
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
],
orddat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\orddat Date of Customer's Order
],
opndat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\opndat Valid from
guaflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\guaflg Mortgage Flag
],
expdat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\expdat Valid until
hndtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\rec\hndtyp Handling Type
],
expflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gidgrp\rec\expflg Unlimited Guarantee
inudat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\inudat Inure Date
],
liadat:[
{type:'string',max:12,message:'长度不能超过12个字符'}, // \gidgrp\rec\liadat Liability until
......@@ -68,82 +41,139 @@ export default fieldSet = {
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
],
pts1_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\apl\pts\ref 参考号
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
],
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:135,message:'长度不能超过135个字符'}, // \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:235,message:'长度不能超过135个字符'}, // \gidgrp\apl\pts\adrblk SWIFT地址
],
pts1_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\apl\pts\extkey 客户编号
],
pts1_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\apl\pts\adrblk SWIFT地址
pts1_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\apl\pts\ref 参考号
],
pts2_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\ben\pts\ref 参考号
pts2_adrblk:[
{type:'string',max:135,message:'长度不能超过135个字符'}, // \gidgrp\ben\pts\adrblk SWIFT地址
],
pts2_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\ben\pts\extkey 客户编号
],
pts2_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\ben\pts\adrblk SWIFT地址
pts2_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\ben\pts\ref 参考号
],
pts4_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\iss\pts\extkey 客户编号
blk_apprul:[
{type:'string',max:4,message:'长度不能超过4个字符'}, // \gidgrp\blk\apprul Applicable Rules
],
pts4_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\iss\pts\adrblk SWIFT地址
blk_apprultxt:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\blk\apprultxt Specification of Applicable Rule
],
pts_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\adv\pts\extkey 客户编号
blk_gidtxt:[
{type:'string',max:65,message:'长度不能超过65个字符'}, // \gidgrp\blk\gidtxt Guarantee Text
],
pts_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\adv\pts\adrblk SWIFT地址
max_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\max\amt Balance
],
pts_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\adv\pts\ref 参考号
max_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\max\cur Currency
],
pts4_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\iss\pts\ref 参考号
opn1_amt:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\cbs\opn1\amt Balance
],
pts3_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\con\pts\extkey 客户编号
opn1_cur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \gidgrp\cbs\opn1\cur Currency
],
pts3_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\con\pts\adrblk SWIFT地址
],
pts3_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\con\pts\extkey 客户编号
],
pts3_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\con\pts\ref 参考号
],
ghd_segtyp:[
{type:'string',max:2,message:'长度不能超过2个字符'}, // \gidgrp\ghd\segtyp 特殊保函类型
],
pts4_adrblk:[
{type:'string',max:35,message:'长度不能超过35个字符'}, // \gidgrp\iss\pts\adrblk SWIFT地址
],
pts4_extkey:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\iss\pts\extkey 客户编号
],
pts4_ref:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \gidgrp\iss\pts\ref 参考号
],
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_gidtxtmodflg:[
{type:'string',max:1,message:'长度不能超过1个字符'}, // \gitp\gidtxtmodflg Modify Guarantee Text
],
blk_gidtxt:[
{type:'string',max:65,message:'长度不能超过65个字符'}, // \gidgrp\blk\gidtxt Guarantee Text
],
setmod_doccur:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \setmod\doccur document currency
gitp_lettername:[
{type:'string',max:60,message:'长度不能超过60个字符'}, // \gitp\lettername 面函标题
],
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
],
trndoc_docpth:[
{type:'string',max:100,message:'长度不能超过100个字符'}, // \trnmod\trndoc\docpth 面函路径
],
trndoc_doccod:[
{type:'string',max:16,message:'长度不能超过16个字符'}, // \trnmod\trndoc\doccod 面函码值
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
],
trndoc_cortyp:[
{type:'string',max:3,message:'长度不能超过3个字符'}, // \trnmod\trndoc\cortyp Per Medium
],
spt_inr:[
{type:'string',max:8,message:'长度不能超过8个字符'}, // \sysmod\spt\inr 唯一编号
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
......@@ -6,163 +6,193 @@ import {modelWrapper} from '@/components/RunTime'
class Getopn {
@observable
gitp_drpreflglab="" // \gitp\drpreflglab Label for Type of Request
cfaguatyp="" // \gidgrp\rec\cfaguatyp 对外担保类型
@observable
ownref="" // \gidgrp\rec\ownref Reference
cmtflg="" // \gidgrp\rec\cmtflg 跨境人民币保函
@observable
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
expdat="" // \gidgrp\rec\expdat Valid until
@observable
usr_nam="" // \gitp\\sysmod\usr\nam 用户ID
expflg="" // \gidgrp\rec\expflg Unlimited Guarantee
@observable
resflg="" // \gidgrp\rec\resflg Reserved Contract
fenlishi="" // \gidgrp\rec\fenlishi 是否分离式保函
@observable
max_cur="" // \gidgrp\cbs\max\cur Currency
fingua="" // \gidgrp\rec\fingua 是否对外担保
@observable
max_amt="" // \gidgrp\cbs\max\amt Balance
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
@observable
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
giduil="" // \gidgrp\rec\giduil Guarantee Language
@observable
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
gtxinr="" // \gidgrp\rec\gtxinr INR of Generating Text
@observable
aammod_addamtflg="" // \gitp\aamp\aammod\addamtflg Add. Amount
guaflg="" // \gidgrp\rec\guaflg Mortgage Flag
@observable
gitp_drpreflg="" // \gitp\drpreflg Type of Request
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
@observable
hndtyp="" // \gidgrp\rec\hndtyp Handling Type
inudat="" // \gidgrp\rec\inudat Inure Date
@observable
gartyp="" // \gidgrp\rec\gartyp Type of Undertaking
liadat="" // \gidgrp\rec\liadat Liability until
@observable
blk_apprul="" // \gidgrp\blk\apprul Applicable Rules
liaflg="" // \gidgrp\rec\liaflg Unlimited Liability
@observable
blk_apprultxt="" // \gidgrp\blk\apprultxt Specification of Applicable Rule
nam="" // \gidgrp\rec\nam Externally Displayed Name to Identify the Contract
@observable
giduil="" // \gidgrp\rec\giduil Guarantee Language
oldref="" // \gidgrp\rec\oldref Old Reference
@observable
gtxinr="" // \gidgrp\rec\gtxinr INR of Generating Text
opndat="" // \gidgrp\rec\opndat Valid from
@observable
oppbnk="" // \gidgrp\rec\oppbnk 境内外对手行代码
@observable
orddat="" // \gidgrp\rec\orddat Date of Customer's Order
@observable
opndat="" // \gidgrp\rec\opndat Valid from
ownref="" // \gidgrp\rec\ownref Reference
@observable
expdat="" // \gidgrp\rec\expdat Valid until
resflg="" // \gidgrp\rec\resflg Reserved Contract
@observable
expflg="" // \gidgrp\rec\expflg Unlimited Guarantee
teskeyunc="" // \gidgrp\rec\teskeyunc Test Key Unconfirmity
@observable
liadat="" // \gidgrp\rec\liadat Liability until
pts_adrblk="" // \gidgrp\adv\pts\adrblk SWIFT地址
@observable
liaflg="" // \gidgrp\rec\liaflg Unlimited Liability
pts_extkey="" // \gidgrp\adv\pts\extkey 客户编号
@observable
oldref="" // \gidgrp\rec\oldref Old Reference
pts_ref="" // \gidgrp\adv\pts\ref 参考号
@observable
pts1_ref="" // \gidgrp\apl\pts\ref 参考号
pts1_adrblk="" // \gidgrp\apl\pts\adrblk SWIFT地址
@observable
pts1_extkey="" // \gidgrp\apl\pts\extkey 客户编号
@observable
pts1_adrblk="" // \gidgrp\apl\pts\adrblk SWIFT地址
pts1_ref="" // \gidgrp\apl\pts\ref 参考号
@observable
pts2_ref="" // \gidgrp\ben\pts\ref 参考号
pts2_adrblk="" // \gidgrp\ben\pts\adrblk SWIFT地址
@observable
pts2_extkey="" // \gidgrp\ben\pts\extkey 客户编号
@observable
pts2_adrblk="" // \gidgrp\ben\pts\adrblk SWIFT地址
pts2_ref="" // \gidgrp\ben\pts\ref 参考号
@observable
pts4_extkey="" // \gidgrp\iss\pts\extkey 客户编号
blk_apprul="" // \gidgrp\blk\apprul Applicable Rules
@observable
pts4_adrblk="" // \gidgrp\iss\pts\adrblk SWIFT地址
blk_apprultxt="" // \gidgrp\blk\apprultxt Specification of Applicable Rule
@observable
pts_extkey="" // \gidgrp\adv\pts\extkey 客户编号
blk_gidtxt="" // \gidgrp\blk\gidtxt Guarantee Text
@observable
pts_adrblk="" // \gidgrp\adv\pts\adrblk SWIFT地址
max_amt="" // \gidgrp\cbs\max\amt Balance
@observable
pts_ref="" // \gidgrp\adv\pts\ref 参考号
max_cur="" // \gidgrp\cbs\max\cur Currency
@observable
pts4_ref="" // \gidgrp\iss\pts\ref 参考号
opn1_amt="" // \gidgrp\cbs\opn1\amt Balance
@observable
pts3_extkey="" // \gidgrp\con\pts\extkey 客户编号
opn1_cur="" // \gidgrp\cbs\opn1\cur Currency
@observable
pts3_adrblk="" // \gidgrp\con\pts\adrblk SWIFT地址
@observable
pts3_extkey="" // \gidgrp\con\pts\extkey 客户编号
@observable
pts3_ref="" // \gidgrp\con\pts\ref 参考号
@observable
gitp_gidtxtmodflg="" // \gitp\gidtxtmodflg Modify Guarantee Text
ghd_segtyp="" // \gidgrp\ghd\segtyp 特殊保函类型
@observable
blk_gidtxt="" // \gidgrp\blk\gidtxt Guarantee Text
pts4_adrblk="" // \gidgrp\iss\pts\adrblk SWIFT地址
@observable
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
pts4_extkey="" // \gidgrp\iss\pts\extkey 客户编号
@observable
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
pts4_ref="" // \gidgrp\iss\pts\ref 参考号
@observable
setmod_doccur="" // \setmod\doccur document currency
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_gidtxtmodflg="" // \gitp\gidtxtmodflg Modify Guarantee Text
@observable
gitp_lettername="" // \gitp\lettername 面函标题
@observable
setmod_docamt="" // \setmod\docamt document amount
@observable
setmod_feemac="" // \setmod\feemac FEEMAC
setmod_doccur="" // \setmod\doccur document currency
@observable
setmod_setmac="" // \setmod\setmac SETMAC
setmod_feemac="" // \setmod\feemac FEEMAC
@observable
glemod_glelst=[] // \setmod\glemod\glelst
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
fegmod_feslst=[] // \setmod\setfeg\fegmod\feslst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
glgmod_glslst=[] // \setmod\setglg\glgmod\glslst
@observable
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
setmod_setmac="" // \setmod\setmac SETMAC
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
@observable
trndoc_cortyp="" // \trnmod\trndoc\cortyp Per Medium
@observable
spt_inr="" // \sysmod\spt\inr 唯一编号
trndoc_doccod="" // \trnmod\trndoc\doccod 面函码值
@observable
docmod_doclst=[] // \trnmod\trndoc\docmod\doclst
@observable
trndoc_docpth="" // \trnmod\trndoc\docpth 面函路径
......@@ -173,59 +203,69 @@ class Getopn {
clear()
{
this.gitp_drpreflglab=""
this.ownref=""
this.nam=""
this.usr_nam=""
this.resflg=""
this.max_cur=""
this.max_amt=""
this.opn1_cur=""
this.opn1_amt=""
this.aammod_addamtflg=""
this.gitp_drpreflg=""
this.hndtyp=""
this.cfaguatyp=""
this.cmtflg=""
this.expdat=""
this.expflg=""
this.fenlishi=""
this.fingua=""
this.gartyp=""
this.blk_apprul=""
this.blk_apprultxt=""
this.giduil=""
this.gtxinr=""
this.orddat=""
this.opndat=""
this.expdat=""
this.expflg=""
this.guaflg=""
this.hndtyp=""
this.inudat=""
this.liadat=""
this.liaflg=""
this.nam=""
this.oldref=""
this.pts1_ref=""
this.pts1_extkey=""
this.pts1_adrblk=""
this.pts2_ref=""
this.pts2_extkey=""
this.pts2_adrblk=""
this.pts4_extkey=""
this.pts4_adrblk=""
this.pts_extkey=""
this.opndat=""
this.oppbnk=""
this.orddat=""
this.ownref=""
this.resflg=""
this.teskeyunc=""
this.pts_adrblk=""
this.pts_extkey=""
this.pts_ref=""
this.pts4_ref=""
this.pts3_extkey=""
this.pts1_adrblk=""
this.pts1_extkey=""
this.pts1_ref=""
this.pts2_adrblk=""
this.pts2_extkey=""
this.pts2_ref=""
this.blk_apprul=""
this.blk_apprultxt=""
this.blk_gidtxt=""
this.max_amt=""
this.max_cur=""
this.opn1_amt=""
this.opn1_cur=""
this.pts3_adrblk=""
this.pts3_extkey=""
this.pts3_ref=""
this.ghd_segtyp=""
this.pts4_adrblk=""
this.pts4_extkey=""
this.pts4_ref=""
this.usr_nam=""
this.aammod_addamtflg=""
this.gitp_drpreflg=""
this.gitp_drpreflglab=""
this.gitp_gidtxtmodflg=""
this.blk_gidtxt=""
this.fegmod_feslst=[]
this.glgmod_glslst=[]
this.setmod_doccur=""
this.gitp_lettername=""
this.setmod_docamt=""
this.setmod_doccur=""
this.setmod_feemac=""
this.setmod_setmac=""
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=""
this.trndoc_doccod=""
this.trndoc_cortyp=""
this.spt_inr=""
}
}
......
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem, 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:'getopn'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getopn/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('getopn/getref', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
this.model.ownref = rtnmsg.data.ownref;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
onAplp_sel = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post('getopn/aplp_sel', { data: this.model })
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(){
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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="getopn" />
</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="getopn" />
<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="getopn" />
</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="getopn" />
</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: 'getopn/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="getopn" />
</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="getopn" />
</Col>
<Col span={1}>
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" /> */}
<Label itext="LOU" trn="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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: 'getopn/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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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: 'getopn/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="getopn" />
</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="getopn" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第17行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Our Liability until" trn="getopn" />
</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="getopn" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第18行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Mortgage Flag" trn="getopn" />
</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="getopn" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("teskeyunc")} desp="Test Key Unconfirmity" path="/gidgrp/rec/teskeyunc" />
</Col>
</Row>
</Col>
</Row>
{/* 第19行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="是否对外担保" trn="getopn" />
</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="getopn" />
</Col>
<Col span={12} >
<InputItem InputProps={bind("cfaguatyp")} maxLength={4} desp="对外担保类型" path="/gidgrp/rec/cfaguatyp" />
</Col>
<Col span={1} offset={1}>
<CheckboxItem InputProps={bind("cmtflg")} desp="跨境人民币保函" path="/gidgrp/rec/cmtflg" />
</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, CheckboxItem, 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 { Row, Col } from 'antd'
import Ptspta2 from '@/views/Public/Ptspta2'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GetopnScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'getopn'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getopn/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<Business wrappedComponentRef={ref => (this.com = ref)} extra={this.props.extra} model={this.model} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank's Ref. " trn="getopn" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gidgrp/con/pts/ref" />
</Col>
</Row>
<Row className='row'>
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts3', url: 'getopn/conp_sel', flg: 'B', datakey: '\\gitp\\conp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank's Ref. " trn="getopn" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts4_ref")} maxLength={16} desp="参考号" path="/gidgrp/iss/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts4', url: 'getopn/issp_sel', flg: 'B', datakey: '\\gitp\\issp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Text" trn="getopn" />
</Col>
<Col span={14} >
<TextAreaItem rows={2} 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="getopn" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("gitp_gidtxtmodflg")} desp="Modify Guarantee Text" path="/gitp/gidtxtmodflg" />
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
)
}
}
\ No newline at end of file
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem, Checkbox,
InputItem, Input, Bind, SelectItem, Button, Label, Image, Table} from '@/components/Common-Library'
import Api from '@/service/api'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import Business from '@/views/Public/Business'
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GetopnScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'getopn'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getopn/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()//关闭校验
}
//按钮事件
onAplp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/aplp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onChk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/chk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onSetmod_ast= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/setmod_ast',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onSav= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/sav',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onSetmod_recal= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/setmod_recal',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onAdvp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/advp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPed= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/ped',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts4_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts4_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts2_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts2_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
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)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onGetref= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/getref',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts1_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts1_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts3_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts3_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onExi= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/exi',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onMax_amt= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/max_amt',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onGlemod_rebook= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/glemod_rebook',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onTrndoc_butshw= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/trndoc_butshw',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onSetmod_feedet= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/setmod_feedet',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onTrndoc_reldoc= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onConp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/conp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onIssp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/issp_sel',{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} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Text of Undertaking" trn="getopn" />
</Col>
</Row>
</Col>
</Row>
{/* 第16行 */}
<Row>
<Col span={20}>
<Row className="row">
<Col span={20} offset={1}>
<TextAreaItem InputProps={bind("blk_gidtxt")} desp="Guarantee Text" path="/gidgrp/blk/gidtxt" style={{height:'255px'}}/>
</Col>
</Row>
</Col>
<Col span={4}>
<Row className="row">
<Col span={16} offset={1}>
<CheckboxItem InputProps={bind("gitp_gidtxtmodflg")} desp="Modify Guarantee Text" path="/gitp/gidtxtmodflg" />
</Col>
</Row>
<Row className="row">
<Col span={16} offset={1}>
<Button type="primary" onClick={this.onGitp_butdif} desp="Diff. syst.text" path="/gitp/butdif">
<Label itext="vs. S&ystem"/>
</Button>
</Col>
</Row>
<Row className="row">
<Col span={16} offset={1}>
<Button type="primary" onClick={this.onGitp_butdifhis} desp="Diff. prev.text" path="/gitp/butdifhis">
<Label itext="vs. &History"/>
</Button>
</Col>
</Row>
<Row className="row">
<Col span={16} offset={1}>
<Button type="primary" onClick={this.onGitp_shwgidtxt} desp="Show Text" path="/gitp/shwgidtxt">
<Label itext="Sho&w Text"/>
</Button>
</Col>
</Row>
<Row className="row">
<Col span={16} offset={1}>
<Button type="primary" onClick={this.onGitp_butgetref} desp="Get Ref." path="/gitp/butgetref">
<Label itext="Get &Ref."/>
</Button>
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
)
}
}
\ No newline at end of file
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page, Validator, Notification, BottomBtn,FormItem, DatePickerItem, TextAreaItem, CheckboxItem, 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 { 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:'getopn'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getopn/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('getopn/getref', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
this.model.ownref = rtnmsg.data.ownref;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
onAplp_sel = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post('getopn/aplp_sel', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
console.log(rtnmsg)
this.model.pts1_extkey = rtnmsg.data.pts1_extkey;
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//余下逻辑处理
})
}
onAdvp_sel = () => {
this.formBlur = true //已触发表单提交处理
Validator.validate(this.model, this.model.descriptor, async (errors, values) => {
if (errors)
return
const rtnmsg = await Api.post('getopn/advp_sel', { data: this.model })
if (rtnmsg.retcod == SUCCESS) {
console.log(rtnmsg)
this.model.pts_extkey = rtnmsg.data.pts_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(){
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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第3行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Guarantee Amount" trn="getopn" />
</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="getopn" />
<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="getopn" />
</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="getopn" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_ref")} maxLength={16} desp="参考号" path="/gidgrp/apl/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户编号" trn="getopn" />
</Col>
<Col span={11} >
<InputItem InputProps={bind("pts1_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/apl/pts/extkey" />
</Col>
<Col span={2} offset={1} >
<Button type="primary" icon="search" onClick={this.onAplp_sel} desp="查询" path="/gitp/aplp/sel">
<Label itext="查询" />
</Button>
</Col>
</Row>
<Row className="row">
<Col span={11} offset={7}>
<TextAreaItem InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/gidgrp/con/pts/adrblk" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
<Label itext="Open Amount" trn="getopn" />
</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="getopn" />
</Col>
<Col span={1}>
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第5行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" /> */}
<Label itext="LOU" trn="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/gidgrp/adv/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户编号" trn="getopn" />
</Col>
<Col span={11} >
<InputItem InputProps={bind("pts_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/adv/pts/extkey" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" icon="search" onClick={this.onAdvp_sel} desp="查询" path="/gitp/advp/sel">
<Label itext="查询" />
</Button>
</Col>
</Row>
<Row className="row">
<Col span={11} offset={7}>
<TextAreaItem InputProps={bind("pts_adrblk")} desp="SWIFT地址" path="/gidgrp/adv/pts/adrblk" />
</Col>
</Row>
</Col>
</Row>
{/* 第12行 */}
<Row>
<Col span={12}>
<Row className='row'>
<Col span={5} offset={2}>
<Label itext="是否分离式保函" trn="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</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="getopn" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts2_ref")} maxLength={16} desp="参考号" path="/gidgrp/ben/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户编号" trn="getopn" />
</Col>
<Col span={11} >
<InputItem InputProps={bind("pts2_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/ben/pts/extkey" />
</Col>
<Col span={2} offset={1} >
<Button type="primary" icon="search" onClick={this.onBenp_sel} desp="查询" path="/gitp/benp/sel">
<Label itext="查询" />
</Button>
</Col>
</Row>
<Row className="row">
<Col span={11} offset={7}>
<TextAreaItem InputProps={bind("pts2_adrblk")} desp="SWIFT地址" path="/gidgrp/ben/pts/adrblk" />
</Col>
</Row>
</Col>
</Row>
{/* 第16行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Validity until" trn="getopn" />
</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="getopn" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第17行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Our Liability until" trn="getopn" />
</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="getopn" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" />
</Col>
</Row>
</Col>
</Row>
{/* 第18行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Mortgage Flag" trn="getopn" />
</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="getopn" />
</Col>
<Col span={1} >
<CheckboxItem InputProps={bind("teskeyunc")} desp="Test Key Unconfirmity" path="/gidgrp/rec/teskeyunc" />
</Col>
</Row>
</Col>
</Row>
{/* 第19行 */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="是否对外担保" trn="getopn" />
</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="getopn" />
</Col>
<Col span={12} >
<InputItem InputProps={bind("cfaguatyp")} maxLength={4} desp="对外担保类型" path="/gidgrp/rec/cfaguatyp" />
</Col>
<Col span={1} offset={1}>
<CheckboxItem InputProps={bind("cmtflg")} desp="跨境人民币保函" path="/gidgrp/rec/cmtflg" />
</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, CheckboxItem, 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 { 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:'getopn'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getopn/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()//关闭校验
}
onConp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/conp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onIssp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/issp_sel',{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} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank's Ref. " trn="getopn" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gidgrp/con/pts/ref" />
</Col>
</Row>
<Row className='row'>
<Col span={11} offset={7} >
<InputItem InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/con/pts/extkey" />
</Col>
<Col span={2} offset={1} >
<Button type="primary" icon="search" onClick={this.onConp_sel} desp="查询" path="/gitp/conp/sel">
<Label itext="查询" />
</Button>
</Col>
</Row>
<Row className='row'>
<Col span={11} offset={7}>
<TextAreaItem InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/gidgrp/con/pts/adrblk"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank's Ref. " trn="getopn" />
</Col>
<Col span={14} >
<InputItem InputProps={bind("pts4_ref")} maxLength={16} desp="参考号" path="/gidgrp/iss/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col span={11} offset={7}>
<InputItem InputProps={bind("pts4_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/iss/pts/extkey" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" icon="search" onClick={this.onIssp_sel} desp="查询" path="/gitp/issp/sel">
<Label itext="查询" />
</Button>
</Col>
</Row>
<Row className="row">
<Col span={11} offset={7}>
<TextAreaItem InputProps={bind("pts4_adrblk")} desp="SWIFT地址" path="/gidgrp/iss/pts/adrblk"/>
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
)
}
}
\ No newline at end of file
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
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 mGetopn from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { action, observable } from 'mobx'
const CodeTable = CodeTableFactory.getInstance()
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'
import Fujia from './Fujia'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GetopnScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'getopn'}
}
@observable
formBlur=false
@observable
formBlur = false
constructor(props)
{
super(props)
this.model = new mGetopn()
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('getopn/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
@observable
extra = { inifrm: 'getopn', sptinr: '', oldinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mGetopn()
}
async componentWillMount() {
let gidinr = '';
if (this.props.location.query) {
// if (this.props.location.query.from == "sptsel") {
// this.extra.sptinr = this.props.location.query.sptinr;
// } else {
gidinr = this.props.location.query.gidinr;
// }
}
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { gidinr: gidinr } })
if (rtnmsg.retcod == SUCCESS) {
Object.assign(this.model, rtnmsg.data)
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
this.extra.oldinr = gidinr;
this.setState({ flag: false })
this.model.max_cur = 'CNY'
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
glemod_glelstHeader=[
{
title:<Label itext="借/贷" />,
dataIndex:"dbtcdt",
key:"dbtcdt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.dbtcdt,r2.dbtcdt),
},
{
title:<Label itext="账号" />,
dataIndex:"act",
key:"act",
width:100,
sorter: (r1,r2)=>ColSorter(r1.act,r2.act),
},
{
title:<Label itext="币种" />,
dataIndex:"cur",
key:"cur",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cur,r2.cur),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="起息日" />,
dataIndex:"valdat",
key:"valdat",
width:100,
sorter: (r1,r2)=>ColSorter(r1.valdat,r2.valdat),
},
{
title:<Label itext="科目号" />,
dataIndex:"trmtyp",
key:"trmtyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.trmtyp,r2.trmtyp),
},
{
title:<Label itext="PN序号" />,
dataIndex:"prn",
key:"prn",
width:100,
sorter: (r1,r2)=>ColSorter(r1.prn,r2.prn),
},
{
title:<Label itext="" />,
dataIndex:"dsp",
key:"dsp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.dsp,r2.dsp),
},
{
title:<Label itext="" />,
dataIndex:"rat",
key:"rat",
width:100,
sorter: (r1,r2)=>ColSorter(r1.rat,r2.rat),
},
{
title:<Label itext="" />,
dataIndex:"fctsgn",
key:"fctsgn",
width:100,
sorter: (r1,r2)=>ColSorter(r1.fctsgn,r2.fctsgn),
},
]
docmod_doclstHeader=[
{
title:<Label itext="角色" />,
dataIndex:"role",
key:"role",
width:100,
sorter: (r1,r2)=>ColSorter(r1.role,r2.role),
},
{
title:<Label itext="码值" />,
dataIndex:"id",
key:"id",
width:100,
sorter: (r1,r2)=>ColSorter(r1.id,r2.id),
},
{
title:<Label itext="凭证名称" />,
dataIndex:"docnam",
key:"docnam",
width:100,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cortyp,r2.cortyp),
},
{
title:<Label itext="出具/发送" />,
dataIndex:"mdtflg",
key:"mdtflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.mdtflg,r2.mdtflg),
},
{
title:<Label itext="" />,
dataIndex:"ptainr",
key:"ptainr",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ptainr,r2.ptainr),
},
]
fegmod_feslstHeader=[
{
title:<Label itext="角色" />,
dataIndex:"rol",
key:"rol",
width:100,
sorter: (r1,r2)=>ColSorter(r1.rol,r2.rol),
},
{
title:<Label itext="费用代码" />,
dataIndex:"feecod",
key:"feecod",
width:100,
sorter: (r1,r2)=>ColSorter(r1.feecod,r2.feecod),
},
{
title:<Label itext="费用名称" />,
dataIndex:"feetxt",
key:"feetxt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.feetxt,r2.feetxt),
},
{
title:<Label itext="收费币种" />,
dataIndex:"cur",
key:"cur",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cur,r2.cur),
render:(val, row, index)=>{
let text = val
let em = CodeTable.curtxt.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="应收金额" />,
dataIndex:"basamt",
key:"basamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.basamt,r2.basamt),
},
{
title:<Label itext="实收金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="现收/缓收" />,
dataIndex:"dsp",
key:"dsp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.dsp,r2.dsp),
render:(val, row, index)=>{
let text = val
let em = CodeTable.dsp.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="内扣/外收" />,
dataIndex:"payflg",
key:"payflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.payflg,r2.payflg),
render:(val, row, index)=>{
let text = val
let em = CodeTable.payflg.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="" />,
dataIndex:"xrfcur",
key:"xrfcur",
width:100,
sorter: (r1,r2)=>ColSorter(r1.xrfcur,r2.xrfcur),
},
{
title:<Label itext="" />,
dataIndex:"xrfamt",
key:"xrfamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.xrfamt,r2.xrfamt),
},
{
title:<Label itext="" />,
dataIndex:"feeacc",
key:"feeacc",
width:100,
sorter: (r1,r2)=>ColSorter(r1.feeacc,r2.feeacc),
},
{
title:<Label itext="" />,
dataIndex:"fepinr",
key:"fepinr",
width:100,
sorter: (r1,r2)=>ColSorter(r1.fepinr,r2.fepinr),
},
{
title:<Label itext="" />,
dataIndex:"rolptyinr",
key:"rolptyinr",
width:100,
sorter: (r1,r2)=>ColSorter(r1.rolptyinr,r2.rolptyinr),
},
]
glgmod_glslstHeader=[
{
title:<Label itext="角色" />,
dataIndex:"rol",
key:"rol",
width:100,
sorter: (r1,r2)=>ColSorter(r1.rol,r2.rol),
},
{
title:<Label itext="借/贷" />,
dataIndex:"debcdtflg",
key:"debcdtflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.debcdtflg,r2.debcdtflg),
render:(val, row, index)=>{
let text = val
let em = CodeTable.debcdtflg.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="结算币种" />,
dataIndex:"cur",
key:"cur",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cur,r2.cur),
render:(val, row, index)=>{
let text = val
let em = CodeTable.curtxt.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="结算金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="结算方式" />,
dataIndex:"dsp",
key:"dsp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.dsp,r2.dsp),
render:(val, row, index)=>{
let text = val
let em = CodeTable.dsp2.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="账户" />,
dataIndex:"act",
key:"act",
width:100,
sorter: (r1,r2)=>ColSorter(r1.act,r2.act),
},
{
title:<Label itext="原币种" />,
dataIndex:"acccur",
key:"acccur",
width:100,
sorter: (r1,r2)=>ColSorter(r1.acccur,r2.acccur),
},
{
title:<Label itext="原金额" />,
dataIndex:"accamt",
key:"accamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.accamt,r2.accamt),
},
{
title:<Label itext="" />,
dataIndex:"actflg",
key:"actflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.actflg,r2.actflg),
},
{
title:<Label itext="" />,
dataIndex:"fmtamt",
key:"fmtamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.fmtamt,r2.fmtamt),
},
]
}
renderPage(){
return (
<Card title="出口保函通知" size="small" className="transTitle">
<Steps>
<StepItem title="明细">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
//按钮事件
onAplp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/aplp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onAplp_ptysel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/aplp_ptysel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onBenp_ptysel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/benp_ptysel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onDocmod_doclst= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/docmod_doclst',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onSetmod_ast= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/setmod_ast',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onConp_ptysel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/conp_ptysel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onSetmod_recal= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/setmod_recal',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onIssp_ptysel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/issp_ptysel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onAdvp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/advp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts4_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts4_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts2_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts2_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
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)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts1_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts1_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts3_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/pts3_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onAdvp_ptysel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/advp_ptysel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onGlemod_rebook= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/glemod_rebook',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onTrndoc_butshw= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/trndoc_butshw',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onTrndoc_reldoc= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onConp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/conp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onIssp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('getopn/issp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
<StepItem title="附加">
<Fujia model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Reference" path="/gidgrp/rec/ownref" />
<InputItem InputProps={bind("nam")} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gidgrp/rec/nam" />
<Button type="primary" onClick={this.onGitp_butgetref} desp="Get Ref." path="/gitp/butgetref">
<Label itext="获取"/>
</Button>
<InputItem InputProps={bind("usr_nam")} maxLength={8} desp="用户ID" path="/gitp//sysmod/usr/nam" />
<CheckboxItem InputProps={bind("resflg")} desp="Reserved Contract" path="/gidgrp/rec/resflg" />
<InputItem InputProps={bind("pts1_ref")} maxLength={16} desp="参考号" path="/gidgrp/apl/pts/ref" />
<SelectItem InputProps={bind("max_cur")} code={CodeTable.curtxt} desp="Currency" path="/gidgrp/cbs/max/cur"/>
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/gidgrp/cbs/max/amt" />
<InputItem InputProps={bind("pts1_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/apl/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onAplp_ptysel} desp="客户查询" path="/gitp/aplp/ptysel">
<Label itext="查询"/>
</Button>
<Button type="primary" icon="search" onClick={this.onAplp_sel} desp="查询" path="/gitp/aplp/sel">
<Label itext="查询"/>
</Button>
<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" />
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/gitp/aamp/aammod/addamtflg" />
<TextAreaItem InputProps={bind("pts1_adrblk")} desp="SWIFT地址" path="/gidgrp/apl/pts/adrblk"/>
<SelectItem InputProps={bind("gitp_drpreflg")} code={CodeTable.drpreflg} desp="Type of Request" path="/gitp/drpreflg"/>
<Label value={this.model.gitp_drpreflglab} desp="Label for Type of Request" path="/gitp/drpreflglab" />
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
<SelectItem InputProps={bind("gartyp")} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
<SelectItem InputProps={bind("blk_apprul")} code={CodeTable.apprul} desp="Applicable Rules" path="/gidgrp/blk/apprul"/>
<InputItem InputProps={bind("blk_apprultxt")} maxLength={35} desp="Specification of Applicable Rule" path="/gidgrp/blk/apprultxt" />
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/gidgrp/adv/pts/ref" />
<InputItem InputProps={bind("pts4_ref")} maxLength={16} desp="参考号" path="/gidgrp/iss/pts/ref" />
<SelectItem InputProps={bind("giduil")} desp="Guarantee Language" path="/gidgrp/rec/giduil"/>
<InputItem InputProps={bind("pts4_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/iss/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onIssp_ptysel} desp="客户查询" path="/gitp/issp/ptysel">
<Label itext="查询"/>
</Button>
<InputItem InputProps={bind("pts_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/adv/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onIssp_sel} desp="查询" path="/gitp/issp/sel">
<Label itext="查询"/>
</Button>
<Button type="primary" icon="search" onClick={this.onAdvp_ptysel} desp="客户查询" path="/gitp/advp/ptysel">
<Label itext="查询"/>
</Button>
<Button type="primary" icon="search" onClick={this.onAdvp_sel} desp="查询" path="/gitp/advp/sel">
<Label itext="查询"/>
</Button>
<SelectItem InputProps={bind("gtxinr")} desp="INR of Generating Text" path="/gidgrp/rec/gtxinr"/>
<TextAreaItem InputProps={bind("pts4_adrblk")} desp="SWIFT地址" path="/gidgrp/iss/pts/adrblk"/>
<TextAreaItem InputProps={bind("pts_adrblk")} desp="SWIFT地址" path="/gidgrp/adv/pts/adrblk"/>
<DatePickerItem InputProps={bind("opndat")} desp="Valid from" path="/gidgrp/rec/opndat" />
<DatePickerItem InputProps={bind("orddat")} desp="Date of Customer's Order" path="/gidgrp/rec/orddat" />
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
<CheckboxItem InputProps={bind("expflg")} desp="Unlimited Guarantee" path="/gidgrp/rec/expflg" />
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
<CheckboxItem InputProps={bind("liaflg")} desp="Unlimited Liability" path="/gidgrp/rec/liaflg" />
<InputItem InputProps={bind("pts2_ref")} maxLength={16} desp="参考号" path="/gidgrp/ben/pts/ref" />
<InputItem InputProps={bind("oldref")} maxLength={16} desp="Old Reference" path="/gidgrp/rec/oldref" />
<InputItem InputProps={bind("pts2_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/ben/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onBenp_ptysel} desp="客户查询" path="/gitp/benp/ptysel">
<Label itext="查询"/>
</Button>
<Button type="primary" icon="search" onClick={this.onBenp_sel} desp="查询" path="/gitp/benp/sel">
<Label itext="查询"/>
</Button>
<TextAreaItem InputProps={bind("pts2_adrblk")} desp="SWIFT地址" path="/gidgrp/ben/pts/adrblk"/>
<InputItem InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gidgrp/con/pts/ref" />
<InputItem InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/gidgrp/con/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onConp_ptysel} desp="客户查询" path="/gitp/conp/ptysel">
<Label itext="查询"/>
</Button>
<Button type="primary" icon="search" onClick={this.onConp_sel} desp="查询" path="/gitp/conp/sel">
<Label itext="查询"/>
</Button>
<TextAreaItem InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/gidgrp/con/pts/adrblk"/>
<CheckboxItem InputProps={bind("gitp_gidtxtmodflg")} desp="Modify Guarantee Text" path="/gitp/gidtxtmodflg" />
<TextAreaItem InputProps={bind("blk_gidtxt")} desp="Guarantee Text" path="/gidgrp/blk/gidtxt"/>
<Button type="primary" onClick={this.onGitp_butdif} desp="Diff. syst.text" path="/gitp/butdif">
<Label itext="vs. S&ystem"/>
</Button>
<Button type="primary" onClick={this.onGitp_butdifhis} desp="Diff. prev.text" path="/gitp/butdifhis">
<Label itext="vs. &History"/>
</Button>
<Button type="primary" onClick={this.onGitp_shwgidtxt} desp="Show Text" path="/gitp/shwgidtxt">
<Label itext="Sho&w Text"/>
</Button>
<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_ast} desp="加载账务" path="/setmod/ast">
<Label itext="加载账务"/>
</Button>
<InputItem InputProps={bind("setmod_feemac")} maxLength={200} desp="FEEMAC" path="/setmod/feemac" />
<Button type="primary" onClick={this.onSetmod_recal} desp="重算账务" path="/setmod/recal">
<Label itext="重算账务"/>
</Button>
<InputItem InputProps={bind("setmod_setmac")} maxLength={200} desp="SETMAC" path="/setmod/setmac" />
<Table rowKey="inr" columns={this.fegmod_feslstHeader} dataSource={this.model.fegmod_feslst} path="/setmod/setfeg/fegmod/feslst"/>
<Table rowKey="inr" columns={this.glgmod_glslstHeader} dataSource={this.model.glgmod_glslst} path="/setmod/setglg/glgmod/glslst"/>
<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"/>
<Button type="primary" onClick={this.onTrndoc_reldoc} desp="面函加载" path="/trnmod/trndoc/reldoc">
<Label itext="面函加载"/>
</Button>
<InputItem InputProps={bind("trndoc_doccod")} maxLength={16} desp="面函码值" path="/trnmod/trndoc/doccod" />
<InputItem InputProps={bind("trndoc_cortyp")} maxLength={3} desp="Per Medium" path="/trnmod/trndoc/cortyp" />
<Button type="primary" onClick={this.onTrndoc_butshw} desp="show doc." path="/trnmod/trndoc/butshw">
<Label itext="展示"/>
</Button>
<InputItem InputProps={bind("trndoc_docpth")} maxLength={100} desp="面函路径" path="/trnmod/trndoc/docpth" />
<InputItem InputProps={bind("spt_inr")} maxLength={8} desp="唯一编号" path="/sysmod/spt/inr" />
<Table rowKey="inr" columns={this.docmod_doclstHeader} dataSource={this.model.docmod_doclst} path="/trnmod/trndoc/docmod/doclst"/>
</div>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem>
</Steps>
</Card>
)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment