Commit d946b92c by qiuxia

修改部分交易界面

parent 870b0f11
......@@ -9,6 +9,7 @@ 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()
......@@ -37,808 +38,6 @@ export default class GitcrjScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitcrj/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
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),
},
]
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),
},
]
liaccv_liaccvgHeader=[
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="结算账号" />,
dataIndex:"cusact",
key:"cusact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cusact,r2.cusact),
},
{
title:<Label itext="保证金账号" />,
dataIndex:"ccvact",
key:"ccvact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ccvact,r2.ccvact),
},
{
title:<Label itext="记账" />,
dataIndex:"gleflg",
key:"gleflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.gleflg,r2.gleflg),
render:(val, row, index)=>{
let text = val
let em = CodeTable.onsel.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
]
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
liaall_liaallgHeader=[
{
title:<Label itext="业务种类" />,
dataIndex:"bussec",
key:"bussec",
width:100,
sorter: (r1,r2)=>ColSorter(r1.bussec,r2.bussec),
render:(val, row, index)=>{
let text = val
let em = CodeTable.bussec.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="表外类型" />,
dataIndex:"liatyp",
key:"liatyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.liatyp,r2.liatyp),
},
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="表外账号" />,
dataIndex:"acc",
key:"acc",
width:100,
sorter: (r1,r2)=>ColSorter(r1.acc,r2.acc),
},
]
//按钮事件
onChk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitcrj/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('gitcrj/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('gitcrj/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('gitcrj/setmod_recal',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onOthp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitcrj/othp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaccv_recalccv= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitcrj/liaccv_recalccv',{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('gitcrj/ped',{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('gitcrj/pts2_adrblk',{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('gitcrj/getref',{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('gitcrj/pts3_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPrbp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitcrj/prbp_sel',{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('gitcrj/exi',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaall_astlia= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitcrj/liaall_astlia',{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('gitcrj/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('gitcrj/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('gitcrj/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('gitcrj/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
......@@ -871,12 +70,13 @@ export default class GitcrjScreen extends Page
</Row>
</Col>
</Row>
<Label value={this.model.gctp_expfldlab} desp="Label for Field Validity" path="/gctp/expfldlab" />
<Label value={this.model.gctp_explab} desp="Label unlimited Validity" path="/gctp/explab" />
{/* <Label value={this.model.gctp_expfldlab} desp="Label for Field Validity" path="/gctp/expfldlab" />
<Label value={this.model.gctp_explab} desp="Label unlimited Validity" path="/gctp/explab" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Valid until" trn="gitcrj" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
......@@ -888,14 +88,9 @@ export default class GitcrjScreen extends Page
<Col span={5} offset={2}>
<Label itext="Name" trn="gitcrj" />
</Col>
<Col span={11}>
<Col span={14}>
<InputItem InputProps={bind("nam")} maxLength={40} desp="Externally Displayed Name to Identify the Contract" path="/gcdgrp/rec/nam" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" onClick={this.onGetref} desp="Get Ref." path="/mtabut/getref">
<Label itext="获取"/>
</Button>
</Col>
</Row>
</Col>
</Row>
......@@ -906,9 +101,14 @@ export default class GitcrjScreen extends Page
<Col span={5} offset={2}>
<Label itext="Claim Number" trn="gitcrj" />
</Col>
<Col span={14}>
<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}>
......@@ -922,7 +122,7 @@ export default class GitcrjScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="gitcrj" />
{/* <Label itext="Applicant" trn="gitcrj" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -939,20 +139,29 @@ export default class GitcrjScreen extends Page
</Col>
<Col span={12}>
<Row className="row">
<Col span={1} offset={2}>
<CheckboxItem InputProps={bind("gctp_adaflg")} desp="Add. Amount" path="/gctp/adaflg" />
<Col span={5} offset={2}>
<Label itext="Add. Amount" trn="gitcrj" />
</Col>
<Col span={17} offset={1}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gcdgrp/apl/pts/nam" />
<Col span={14}>
<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="gitcrj" />
</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="gitcrj" />
</Col>
<Col span={6}>
......@@ -963,20 +172,19 @@ export default class GitcrjScreen extends Page
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gctp_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gctp/aplmullab" />
<Label itext="Type of Undertaking" trn="gitcrj" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
</Row>
<Label itext="Type of Undertaking" trn="gitcrj" />
<Label itext="Beneficiary" trn="gitcrj" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
......@@ -987,33 +195,66 @@ export default class GitcrjScreen extends Page
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Type of Undertaking" trn="gitcrj" />
<Label itext="Beneficiary" trn="gitcrj" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Liability until" trn="gitcrj" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
<Col span={13} offset={1}>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitcrj" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gcdgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<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" />
{/* <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" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Date of Claim" trn="gitcrj" />
</Col>
<Col span={13}>
<Col span={14}>
<DatePickerItem InputProps={bind("clmdat")} desp="Date of Claim" path="/gcdgrp/rec/clmdat" />
</Col>
<Col span={1}>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Close Flag" trn="gitcrj" />
</Col>
<Col span={14}>
<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="Presented by" trn="gitcrj" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("docprbrol")} desp="Presented by" path="/gcdgrp/rec/docprbrol"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
......@@ -1025,7 +266,6 @@ export default class GitcrjScreen extends Page
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
......@@ -1074,7 +314,7 @@ export default class GitcrjScreen extends Page
<Row>
<Col span={12}>
<Row className="row">
{/* <Row className="row">
<Col span={15} offset={2}>
<InputItem InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/gcdgrp/prb/pts/extkey" />
</Col>
......@@ -1083,10 +323,12 @@ export default class GitcrjScreen extends Page
<Label itext="查询"/>
</Button>
</Col>
</Row>
</Row> */}
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts3', url: 'gitcrj/prbp_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
</Col>
<Col span={12}>
<Row className="row">
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts2', url: 'gitcrj/othp_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
{/* <Row className="row">
<Col span={15} offset={2}>
<InputItem InputProps={bind("pts2_extkey")} maxLength={16} desp="客户编号" path="/gcdgrp/oth/pts/extkey" />
</Col>
......@@ -1095,10 +337,10 @@ export default class GitcrjScreen extends Page
<Label itext="查询"/>
</Button>
</Col>
</Row>
</Row> */}
</Col>
</Row>
<Row>
{/* <Row>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
......@@ -1113,7 +355,7 @@ export default class GitcrjScreen extends Page
</Col>
</Row>
</Col>
</Row>
</Row> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
......
......@@ -36,6 +36,9 @@ export default class GitcrjScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'gitcrj', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -51,7 +54,10 @@ export default class GitcrjScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitcrj/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitcrj/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
......@@ -37,536 +37,6 @@ export default class GitengScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('giteng/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
liaccv_liaccvgHeader=[
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="结算账号" />,
dataIndex:"cusact",
key:"cusact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cusact,r2.cusact),
},
{
title:<Label itext="保证金账号" />,
dataIndex:"ccvact",
key:"ccvact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ccvact,r2.ccvact),
},
{
title:<Label itext="记账" />,
dataIndex:"gleflg",
key:"gleflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.gleflg,r2.gleflg),
render:(val, row, index)=>{
let text = val
let em = CodeTable.onsel.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
]
//按钮事件
onSetmod_ast= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('giteng/setmod_ast',{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('giteng/chk',{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('giteng/exi',{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('giteng/sav',{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('giteng/setmod_feedet',{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('giteng/setmod_recal',{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('giteng/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('giteng/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaccv_recalccv= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('giteng/liaccv_recalccv',{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('giteng/ped',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
......@@ -598,7 +68,7 @@ export default class GitengScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="giteng" />
{/* <Label itext="Applicant" trn="giteng" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -616,7 +86,7 @@ export default class GitengScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
<Label itext="客户英文名称" trn="giteng" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
......@@ -653,18 +123,37 @@ export default class GitengScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Beneficiary" trn="giteng" />
<Label itext="Adv\Rcv Bank" trn="giteng" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="giteng" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="giteng" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="giteng" />
<Label itext="Adv\Rcv Bank" trn="giteng" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="giteng" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
......@@ -672,7 +161,7 @@ export default class GitengScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
<Label itext="Valid until" trn="giteng" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
......@@ -684,7 +173,7 @@ export default class GitengScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="giteng" />
<Label itext="Liability until" trn="giteng" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
......@@ -693,16 +182,33 @@ export default class GitengScreen extends Page
</Col>
<Col span={12}>
<Row className="row">
<Col span={9} offset={2}>
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="giteng" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
<Col span={9} offset={1}>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="业务结算币种" trn="giteng" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("liaccv_concur")} code={CodeTable.curtxt} desp="业务结算币种" path="/liaall/liaccv/concur"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
</Row>
</Col>
</Row>
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
......
......@@ -37,6 +37,9 @@ export default class GitengScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'giteng', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -52,7 +55,10 @@ export default class GitengScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('giteng/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('giteng/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
......@@ -9,6 +9,7 @@ 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()
......@@ -37,658 +38,6 @@ export default class GitfeeScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitfee/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
//按钮事件
onPts4_ref= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfee/pts4_ref',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onUmhp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfee/umhp_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('gitfee/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('gitfee/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('gitfee/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('gitfee/setmod_recal',{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('gitfee/ped',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts5_ref= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfee/pts5_ref',{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('gitfee/pts4_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onUmsp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfee/umsp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onPts5_adrblk= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfee/pts5_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('gitfee/exi',{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('gitfee/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('gitfee/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('gitfee/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('gitfee/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
......@@ -719,7 +68,7 @@ export default class GitfeeScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="gitfee" />
{/* <Label itext="Applicant" trn="gitfee" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -737,7 +86,7 @@ export default class GitfeeScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
<Label itext="客户英文名称" trn="gitfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
......@@ -765,27 +114,43 @@ export default class GitfeeScreen extends Page
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitfee" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label itext="Beneficiary" trn="gitfee" />
<Label itext="Adv\Rcv Bank" trn="gitfee" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitfee" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitfee" />
<Label itext="Adv\Rcv Bank" trn="gitfee" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitfee" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
......@@ -793,7 +158,7 @@ export default class GitfeeScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
<Label itext="Valid until" trn="gitfee"/>
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
......@@ -801,12 +166,12 @@ export default class GitfeeScreen extends Page
</Row>
</Col>
</Row>
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitfee" />
<Label itext="Liability until" trn="gitfee" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
......@@ -815,20 +180,29 @@ export default class GitfeeScreen extends Page
</Col>
<Col span={12}>
<Row className="row">
<Col span={17} offset={2}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitfee" />
</Col>
<Col span={1} offset={1}>
<CheckboxItem InputProps={bind("intmbu_umbflg")} desp="Internal Transfer Y/N" path="/xxtfee/intmbu/umbflg" />
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Internal Transfer Y/N" trn="gitfee" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("intmbu_umbflg")} desp="Internal Transfer Y/N" path="/xxtfee/intmbu/umbflg" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Business Sector" trn="gitfee" />
</Col>
<Col span={14}>
......@@ -836,15 +210,24 @@ export default class GitfeeScreen extends Page
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Debit Party" trn="gitfee" />
</Col>
<Col span={12}>
<Col span={14}>
<SelectItem InputProps={bind("intmbu_umsrol")} desp="Debit Party" path="/xxtfee/intmbu/umsrol"/>
</Col>
<Col span={1} offset={1}>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Send Message(sms)" trn="gitfee" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("intmbu_umsmsgflg")} desp="Send Message" path="/xxtfee/intmbu/umsmsgflg" />
</Col>
</Row>
......@@ -857,17 +240,19 @@ export default class GitfeeScreen extends Page
<Col span={5} offset={2}>
<Label itext="Credit Party" trn="gitfee" />
</Col>
<Col span={12}>
<Col span={14}>
<SelectItem InputProps={bind("intmbu_umhrol")} desp="Credit Party" path="/xxtfee/intmbu/umhrol"/>
</Col>
<Col span={1} offset={1}>
<CheckboxItem InputProps={bind("intmbu_umhmsgflg")} desp="Send Message" path="/xxtfee/intmbu/umhmsgflg" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Send Message(hms)" trn="gitfee" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("intmbu_umhmsgflg")} desp="Send Message" path="/xxtfee/intmbu/umhmsgflg" />
</Col>
</Row>
</Col>
</Row>
......@@ -895,7 +280,7 @@ export default class GitfeeScreen extends Page
</Row>
<Row>
<Col span={12}>
<Row className="row">
{/* <Row className="row">
<Col span={15} offset={2}>
<InputItem InputProps={bind("pts5_extkey")} maxLength={16} desp="客户编号" path="/xxtfee/intmbu/ums/pts/extkey" />
</Col>
......@@ -904,10 +289,11 @@ export default class GitfeeScreen extends Page
<Label itext="查询"/>
</Button>
</Col>
</Row>
</Row> */}
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts5', url: 'gitfee/umsp_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
</Col>
<Col span={12}>
<Row className="row">
{/* <Row className="row">
<Col span={15} offset={2}>
<InputItem InputProps={bind("pts4_extkey")} maxLength={16} desp="客户编号" path="/xxtfee/intmbu/umh/pts/extkey" />
</Col>
......@@ -916,10 +302,11 @@ export default class GitfeeScreen extends Page
<Label itext="查询"/>
</Button>
</Col>
</Row>
</Row> */}
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts4', url: 'gitopn/umhp_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
</Col>
</Row>
<Row>
{/* <Row>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
......@@ -934,7 +321,7 @@ export default class GitfeeScreen extends Page
</Col>
</Row>
</Col>
</Row>
</Row> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
......
......@@ -36,6 +36,9 @@ export default class GitfeeScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'giteng', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -51,7 +54,10 @@ export default class GitfeeScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitfee/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitfee/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
......@@ -9,6 +9,7 @@ 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()
......@@ -37,640 +38,6 @@ export default class GitfreScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitfre/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
//按钮事件
onFmop_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfre/fmop_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('gitfre/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('gitfre/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('gitfre/sav',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onFmcp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfre/fmcp_sel',{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('gitfre/setmod_recal',{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('gitfre/ped',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onTxtfre_buttxmsel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitfre/txtfre_buttxmsel',{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('gitfre/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('gitfre/pts1_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('gitfre/exi',{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('gitfre/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('gitfre/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('gitfre/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('gitfre/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
......@@ -700,7 +67,7 @@ export default class GitfreScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="gitfre" />
{/* <Label itext="Applicant" trn="gitfre" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -718,7 +85,7 @@ export default class GitfreScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
<Label itext="客户英文名称" trn="gitfre"/>
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
......@@ -746,132 +113,117 @@ export default class GitfreScreen extends Page
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitfre" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts4_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label itext="Beneficiary" trn="gitfre" />
<Label itext="Adv\Rcv Bank" trn="gitfre" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitfre" />
</Col>
<Col span={6}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
<Label itext="客户英文名称" trn="gitfre" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
<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 value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
<Label itext="Type of Undertaking" trn="gitfre" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitfre" />
<Label itext="Adv\Rcv Bank" trn="gitfre" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitfre" />
<Label itext="客户英文名称" trn="gitfre" />
</Col>
<Col span={6}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts5_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
<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="收报行" trn="gitfre" />
<Label itext="Valid until" trn="gitfre"/>
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_msgrol")} code={CodeTable.rolall} desp="Role Message" path="/fremsg/msgrol"/>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
</Col>
</Row>
</Col>
</Row>
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitfre" />
<Label itext="Liability until" trn="gitfre" />
</Col>
<Col span={6}>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
<Col span={7} offset={1}>
<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="收报行" trn="gitfre" />
<Label itext="客户英文名称" trn="gitfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_msgrol")} code={CodeTable.rolall} desp="Role Message" path="/fremsg/msgrol"/>
<InputItem InputProps={bind("pts5_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="发报类型" trn="gitfre" />
<Label itext="Role Message" trn="gitfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_sndmt")} code={CodeTable.sndmt} desp="message to be created" path="/fremsg/sndmt"/>
<SelectItem InputProps={bind("fremsg_msgrol")} code={CodeTable.rolall} desp="Role Message" path="/fremsg/msgrol"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="报文类型" trn="gitfre" />
<Label itext="发报类型" trn="gitfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_fulmt")} code={CodeTable.fulmt} desp="MT to Send" path="/fremsg/fulmt"/>
<SelectItem InputProps={bind("fremsg_sndmt")} code={CodeTable.sndmt} desp="message to be created" path="/fremsg/sndmt"/>
</Col>
</Row>
</Col>
</Row>
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={15} offset={2}>
<InputItem InputProps={bind("pts1_extkey")} maxLength={16} desp="客户编号" path="/fremsg/fmo/pts/extkey" />
<Col span={5} offset={2}>
<Label itext="报文类型" trn="gitfre" />
</Col>
<Col span={3} offset={1}>
<Button type="primary" icon="search" onClick={this.onFmop_sel} desp="查询" path="/fremsg/fmop/sel">
<Label itext="查询"/>
</Button>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_fulmt")} code={CodeTable.fulmt} desp="MT to Send" path="/fremsg/fulmt"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="标题" trn="gitfre" />
......@@ -881,23 +233,42 @@ export default class GitfreScreen extends Page
</Col>
</Row>
</Col>
<Col span={12}>
{/* <Row className="row">
<Col span={16} offset={2}>
<InputItem InputProps={bind("pts1_extkey")} maxLength={16} desp="客户编号" path="/fremsg/fmo/pts/extkey" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" icon="search" onClick={this.onFmop_sel} desp="查询" path="/fremsg/fmop/sel">
<Label itext="查询"/>
</Button>
</Col>
</Row> */}
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts1', url: 'gitfre/fmop_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
{/* <Col span={19} offset={2}>
<TextAreaItem InputProps={bind("pts1_adrblk")} desp="SWIFT地址" path="/fremsg/fmo/pts/adrblk"/>
</Col> */}
<Col span={5} offset={2}>
<Label itext="相关报文" trn="gitfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_relmt")} code={CodeTable.relmt} desp="related MT" path="/fremsg/relmt"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="相关报文" trn="gitfre" />
<Label itext="from" trn="gitfre" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_relmt")} code={CodeTable.relmt} desp="related MT" path="/fremsg/relmt"/>
<DatePickerItem InputProps={bind("fremsg_reldat")} desp="from" path="/fremsg/reldat" />
</Col>
</Row>
</Col>
......@@ -907,12 +278,9 @@ export default class GitfreScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.fremsg_reldatlab} desp="label for date" path="/fremsg/reldatlab" />
<Label itext="relevant message" trn="gitfre" />
</Col>
<Col span={6}>
<DatePickerItem InputProps={bind("fremsg_reldat")} desp="from" path="/fremsg/reldat" />
</Col>
<Col span={7} offset={1}>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_reldir")} code={CodeTable.reldir} desp="relevant message sent/received" path="/fremsg/reldir"/>
</Col>
</Row>
......@@ -922,63 +290,76 @@ export default class GitfreScreen extends Page
<Col span={5} offset={2}>
<Label itext="副本的收报行" trn="gitfre" />
</Col>
<Col span={12}>
<Col span={14}>
<SelectItem InputProps={bind("fremsg_ccrol")} code={CodeTable.rolall} desp="Role Copy" path="/fremsg/ccrol"/>
</Col>
<Col span={1} offset={1}>
<CheckboxItem InputProps={bind("fremsg_flg")} desp="flg for gitfre" path="/fremsg/flg" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={15} offset={2}>
<InputItem InputProps={bind("pts_extkey")} maxLength={16} desp="客户编号" path="/fremsg/fmc/pts/extkey" />
<Col span={5} offset={2}>
<Label itext="flg for gitfre" trn="gitfre" />
</Col>
<Col span={3} offset={1}>
<Button type="primary" icon="search" onClick={this.onFmcp_sel} desp="查询" path="/fremsg/fmcp/sel">
<Label itext="查询"/>
</Button>
<Col span={14}>
<CheckboxItem InputProps={bind("fremsg_flg")} desp="flg for gitfre" path="/fremsg/flg" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.fremsg_tag20lab} desp="MT799tag20" path="/fremsg/tag20lab" />
<Label itext="tag 20 Ref" trn="gitfre" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("fremsg_tag20ref")} maxLength={16} desp="tag 20 Ref" path="/fremsg/tag20ref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts', url: 'gitfre/fmcp_sel', flg: 'C', datakey: '' }} formBlur={this.formBlur}/>
</Col>
</Row>
<Row>
{/* <Row>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
<TextAreaItem InputProps={bind("pts_adrblk")} desp="SWIFT地址" path="/fremsg/fmc/pts/adrblk"/>
<Col span={15} offset={2}>
<InputItem InputProps={bind("pts_extkey")} maxLength={16} desp="客户编号" path="/fremsg/fmc/pts/extkey" />
</Col>
<Col span={3} offset={1}>
<Button type="primary" icon="search" onClick={this.onFmcp_sel} desp="查询" path="/fremsg/fmcp/sel">
<Label itext="查询"/>
</Button>
</Col>
</Row>
</Col>
<Col span={12}>
</Col>
</Row> */}
<Row>
<Col span={12}>
{/* <Row className="row">
<Col span={19} offset={2}>
<TextAreaItem InputProps={bind("pts_adrblk")} desp="SWIFT地址" path="/fremsg/fmc/pts/adrblk"/>
</Col>
</Row> */}
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.fremsg_strinflab} desp="label for tag 79" path="/fremsg/strinflab" />
<Label itext="Narrative" trn="gitfre" />
</Col>
<Col span={10}>
<Col span={11}>
<TextAreaItem InputProps={bind("fremsg_strinf")} desp="Narrative" path="/fremsg/strinf"/>
</Col>
<Col span={3} offset={1}>
<Col span={2} offset={1}>
<Button type="primary" icon="search" onClick={this.onTxtfre_buttxmsel} desp="..." path="/fremsg/txtfre/buttxmsel">
<Label itext="..."/>
</Button>
</Col>
</Row>
</Col>
<Col span={12}>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
......
......@@ -36,6 +36,9 @@ export default class GitfreScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'gitcrj', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -51,7 +54,10 @@ export default class GitfreScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitfre/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitfre/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
......@@ -37,468 +37,6 @@ export default class GitpcaScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitpca/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
liaccv_liaccvgHeader=[
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="结算账号" />,
dataIndex:"cusact",
key:"cusact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cusact,r2.cusact),
},
{
title:<Label itext="保证金账号" />,
dataIndex:"ccvact",
key:"ccvact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ccvact,r2.ccvact),
},
{
title:<Label itext="记账" />,
dataIndex:"gleflg",
key:"gleflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.gleflg,r2.gleflg),
render:(val, row, index)=>{
let text = val
let em = CodeTable.onsel.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
]
liaall_liaallgHeader=[
{
title:<Label itext="业务种类" />,
dataIndex:"bussec",
key:"bussec",
width:100,
sorter: (r1,r2)=>ColSorter(r1.bussec,r2.bussec),
render:(val, row, index)=>{
let text = val
let em = CodeTable.bussec.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="表外类型" />,
dataIndex:"liatyp",
key:"liatyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.liatyp,r2.liatyp),
},
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="表外账号" />,
dataIndex:"acc",
key:"acc",
width:100,
sorter: (r1,r2)=>ColSorter(r1.acc,r2.acc),
},
]
//按钮事件
onSwiadd_strinf= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitpca/swiadd_strinf',{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('gitpca/chk',{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('gitpca/exi',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaall_astlia= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitpca/liaall_astlia',{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('gitpca/sav',{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('gitpca/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('gitpca/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('gitpca/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaccv_recalccv= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitpca/liaccv_recalccv',{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('gitpca/ped',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
......@@ -528,7 +66,7 @@ export default class GitpcaScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="gitpca" />
{/* <Label itext="Applicant" trn="gitpca" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -546,7 +84,7 @@ export default class GitpcaScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
<Label itext="客户英文名称" trn="gitpca" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
......@@ -574,27 +112,43 @@ export default class GitpcaScreen extends Page
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitpca" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label itext="Beneficiary" trn="gitpca" />
<Label itext="Adv\Rcv Bank" trn="gitpca" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitpca" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitpca" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitpca" />
<Label itext="Adv\Rcv Bank" trn="gitpca" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitpca" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
......@@ -602,7 +156,7 @@ export default class GitpcaScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
<Label itext="Valid until" trn="gitpca" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
......@@ -615,16 +169,25 @@ export default class GitpcaScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitpca" />
<Label itext="Liability until" trn="gitpca" />
</Col>
<Col span={6}>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitpca" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
......@@ -635,9 +198,6 @@ export default class GitpcaScreen extends Page
</Col>
</Row>
</Col>
</Row>
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
......@@ -648,15 +208,25 @@ export default class GitpcaScreen extends Page
</Col>
</Row>
</Col>
</Row>
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="New Reference" trn="gitpca" />
</Col>
<Col span={12}>
<Col span={14}>
<InputItem InputProps={bind("newref")} maxLength={16} desp="New Reference" path="/newref" />
</Col>
<Col span={1} offset={1}>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Close Flag" trn="gitpca" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("mtabut_clsflg")} desp="Close Flag" path="/mtabut/clsflg" />
</Col>
</Row>
......@@ -667,7 +237,7 @@ export default class GitpcaScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Freetext and Special Clauses" trn="gitpca" />
<Label itext="Tag 72" trn="gitpca" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("swiadd_strinf")} desp="Sender to receiver info Tag 72" path="/trnmod/swiadd/strinf"/>
......@@ -676,7 +246,10 @@ export default class GitpcaScreen extends Page
</Col>
<Col span={12}>
<Row className="row">
<Col span={19} offset={2}>
<Col span={5} offset={2}>
<Label itext="撤销文书" trn="gitpca" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("canmsg")} desp="撤销文书" path="/canmsg"/>
</Col>
</Row>
......
......@@ -36,6 +36,10 @@ export default class GitpcaScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'gitcrj', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -51,7 +55,10 @@ export default class GitpcaScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitpca/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitpca/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
......@@ -37,712 +37,6 @@ export default class GitplbScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitplb/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()//关闭校验
}
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),
},
]
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),
},
]
liaccv_liaccvgHeader=[
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="结算账号" />,
dataIndex:"cusact",
key:"cusact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cusact,r2.cusact),
},
{
title:<Label itext="保证金账号" />,
dataIndex:"ccvact",
key:"ccvact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ccvact,r2.ccvact),
},
{
title:<Label itext="记账" />,
dataIndex:"gleflg",
key:"gleflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.gleflg,r2.gleflg),
render:(val, row, index)=>{
let text = val
let em = CodeTable.onsel.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
]
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
liaall_liaallgHeader=[
{
title:<Label itext="业务种类" />,
dataIndex:"bussec",
key:"bussec",
width:100,
sorter: (r1,r2)=>ColSorter(r1.bussec,r2.bussec),
render:(val, row, index)=>{
let text = val
let em = CodeTable.bussec.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="表外类型" />,
dataIndex:"liatyp",
key:"liatyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.liatyp,r2.liatyp),
},
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="表外账号" />,
dataIndex:"acc",
key:"acc",
width:100,
sorter: (r1,r2)=>ColSorter(r1.acc,r2.acc),
},
]
//按钮事件
onSetmod_ast= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitplb/setmod_ast',{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('gitplb/chk',{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('gitplb/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('gitplb/setmod_recal',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaccv_recalccv= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitplb/liaccv_recalccv',{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('gitplb/ped',{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('gitplb/exi',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaall_astlia= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitplb/liaall_astlia',{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('gitplb/glemod_rebook',{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('gitplb/setmod_feedet',{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('gitplb/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('gitplb/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
......@@ -773,7 +67,7 @@ export default class GitplbScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="gitplb" />
{/* <Label itext="Applicant" trn="gitplb" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -791,7 +85,7 @@ export default class GitplbScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
<Label itext="客户英文名称" trn="gitplb"/>
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
......@@ -819,27 +113,43 @@ export default class GitplbScreen extends Page
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitplb" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label itext="Beneficiary" trn="gitplb" />
<Label itext="Adv\Rcv Bank" trn="gitplb" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitplb" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitplb" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitplb" />
<Label itext="Adv\Rcv Bank" trn="gitplb" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitplb" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
......@@ -847,7 +157,7 @@ export default class GitplbScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
<Label itext="Valid until" trn="gitplb" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
......@@ -859,51 +169,50 @@ export default class GitplbScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitplb" />
<Label itext="Liability until" trn="gitplb" />
</Col>
<Col span={6}>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts3_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="Change Date Booking" trn="gitplb" />
<Label itext="客户英文名称" trn="gitplb" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("chgdat")} desp="Change Date" path="/chgdat" />
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Agreed Amount " trn="gitplb" />
<Label itext="Change Date" trn="gitplb" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("setmod_doccur")} maxLength={3} desp="document currency" path="/setmod/doccur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("chgamt")} desp="Change Amount" path="/chgamt" />
<Col span={14}>
<DatePickerItem InputProps={bind("chgdat")} desp="Change Date" path="/chgdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Agreed Amount " trn="gitplb" />
</Col>
<Col span={14}>
<Col span={6}>
<InputItem InputProps={bind("setmod_doccur")} maxLength={3} desp="document currency" path="/setmod/doccur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("chgamt")} desp="Change Amount" path="/chgamt" />
</Col>
</Row>
</Col>
</Row>
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
......
......@@ -36,6 +36,9 @@ export default class GitplbScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'gitplb', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -51,7 +54,10 @@ export default class GitplbScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitplb/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitplb/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
......@@ -37,713 +37,6 @@ export default class GitropScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitrop/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()//关闭校验
}
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),
},
]
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),
},
]
liaccv_liaccvgHeader=[
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="结算账号" />,
dataIndex:"cusact",
key:"cusact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.cusact,r2.cusact),
},
{
title:<Label itext="保证金账号" />,
dataIndex:"ccvact",
key:"ccvact",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ccvact,r2.ccvact),
},
{
title:<Label itext="记账" />,
dataIndex:"gleflg",
key:"gleflg",
width:100,
sorter: (r1,r2)=>ColSorter(r1.gleflg,r2.gleflg),
render:(val, row, index)=>{
let text = val
let em = CodeTable.onsel.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
]
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
liaall_liaallgHeader=[
{
title:<Label itext="业务种类" />,
dataIndex:"bussec",
key:"bussec",
width:100,
sorter: (r1,r2)=>ColSorter(r1.bussec,r2.bussec),
render:(val, row, index)=>{
let text = val
let em = CodeTable.bussec.find(item=>item.value==val)
if(em)
text= em.label
return text
}
},
{
title:<Label itext="表外类型" />,
dataIndex:"liatyp",
key:"liatyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.liatyp,r2.liatyp),
},
{
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:"oldamt",
key:"oldamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.oldamt,r2.oldamt),
},
{
title:<Label itext="变动金额" />,
dataIndex:"chgamt",
key:"chgamt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.chgamt,r2.chgamt),
},
{
title:<Label itext="金额" />,
dataIndex:"amt",
key:"amt",
width:100,
sorter: (r1,r2)=>ColSorter(r1.amt,r2.amt),
},
{
title:<Label itext="表外账号" />,
dataIndex:"acc",
key:"acc",
width:100,
sorter: (r1,r2)=>ColSorter(r1.acc,r2.acc),
},
]
//按钮事件
onSetmod_ast= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitrop/setmod_ast',{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('gitrop/chk',{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('gitrop/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('gitrop/setmod_recal',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaccv_recalccv= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitrop/liaccv_recalccv',{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('gitrop/ped',{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('gitrop/exi',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLiaall_astlia= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitrop/liaall_astlia',{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('gitrop/glemod_rebook',{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('gitrop/setmod_feedet',{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('gitrop/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('gitrop/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
......@@ -773,7 +66,7 @@ export default class GitropScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="gitrop" />
{/* <Label itext="Applicant" trn="gitrop" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -791,7 +84,7 @@ export default class GitropScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
<Label itext="客户英文名称" trn="gitrop" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
......@@ -819,27 +112,43 @@ export default class GitropScreen extends Page
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitrop" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label itext="Beneficiary" trn="gitrop" />
<Label itext="Adv\Rcv Bank" trn="gitrop" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitrop" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitrop" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitrop" />
<Label itext="Adv\Rcv Bank" trn="gitrop" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitrop" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
......@@ -847,7 +156,7 @@ export default class GitropScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
<Label itext="Valid until" trn="gitrop" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
......@@ -859,26 +168,25 @@ export default class GitropScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitrop" />
<Label itext="Liability until" trn="gitrop" />
</Col>
<Col span={6}>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts3_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="客户英文名称" trn="gitrop" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
......
......@@ -36,6 +36,10 @@ export default class GitropScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'gitplb', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -51,7 +55,10 @@ export default class GitropScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitrop/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitrop/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
......@@ -37,545 +37,6 @@ export default class GittenScreen extends Page
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitten/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()//关闭校验
}
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:200,
sorter: (r1,r2)=>ColSorter(r1.docnam,r2.docnam),
},
{
title:<Label itext="凭证类型" />,
dataIndex:"cortyp",
key:"cortyp",
width:150,
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),
},
]
//按钮事件
onSetmod_ast= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('gitten/setmod_ast',{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('gitten/chk',{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('gitten/exi',{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('gitten/sav',{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('gitten/glemod_rebook',{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('gitten/setmod_feedet',{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('gitten/setmod_recal',{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('gitten/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('gitten/trndoc_reldoc',{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('gitten/ped',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
......@@ -605,7 +66,7 @@ export default class GittenScreen extends Page
</Row>
</Col>
</Row>
<Label itext="Applicant" trn="gitten" />
{/* <Label itext="Applicant" trn="gitten" /> */}
<Row>
<Col span={12}>
<Row className="row">
......@@ -623,7 +84,7 @@ export default class GittenScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_aplmullab} desp="Label, that is set, if there are multiple applicants" path="/gitp0/aplmullab" />
<Label itext="客户英文名称" trn="gitten" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/apl/pts/nam" />
......@@ -650,27 +111,43 @@ export default class GittenScreen extends Page
<Col span={5} offset={2}>
<Label itext="Handling Type" trn="gitten" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("hndtyp")} code={CodeTable.hndtyp} desp="Handling Type" path="/gidgrp/rec/hndtyp"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Label itext="Beneficiary" trn="gitten" />
<Label itext="Adv\Rcv Bank" trn="gitten" />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitten" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Type of Undertaking" trn="gitten" />
</Col>
<Col span={6}>
<Col span={14}>
<SelectItem InputProps={bind("gartyp")} code={CodeTable.typgar} desp="Type of Undertaking" path="/gidgrp/rec/gartyp"/>
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
</Row>
{/* <Label itext="Beneficiary" trn="gitten" />
<Label itext="Adv\Rcv Bank" trn="gitten" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitten" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/adv/pts/nam" />
</Col>
</Row>
......@@ -678,7 +155,7 @@ export default class GittenScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label value={this.model.gitp0_expfldlab} desp="Label for Field Validity" path="/gitp0/expfldlab" />
<Label itext="Valid until" trn="gitten"/>
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Valid until" path="/gidgrp/rec/expdat" />
......@@ -690,16 +167,25 @@ export default class GittenScreen extends Page
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Issuing Bank" trn="gitten" />
<Label itext="Liability until" trn="gitten" />
</Col>
<Col span={6}>
<Col span={14}>
<DatePickerItem InputProps={bind("liadat")} desp="Liability until" path="/gidgrp/rec/liadat" />
</Col>
<Col span={7} offset={1}>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="gitten" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts3_nam")} maxLength={100} desp="客户英文名称" path="/gidgrp/iss/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
......@@ -713,8 +199,13 @@ export default class GittenScreen extends Page
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
</Row>
</Col>
</Row>
<Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" />
{/* <Label value={this.model.gitp0_liafldlab} desp="Label for Field Lability" path="/gitp0/liafldlab" /> */}
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
......
......@@ -37,6 +37,9 @@ export default class GittenScreen extends Page
@observable
formBlur=false
@observable
extra = { inifrm: 'gitten', gidinr: '',oldinr:'', bchlevelLst: [] }
constructor(props)
{
super(props)
......@@ -52,7 +55,10 @@ export default class GittenScreen extends Page
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('gitten/init',{data:this.model})
if (this.props.location.query) {
this.extra.gidinr=this.props.location.query.gidinr;
}
const rtnmsg = await Api.post('gitten/init',{params: { gidinr:this.extra.gidinr}})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
......
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