Commit fe4a9b52 by qiuxia

新增保函部分交易修改结汇界面

parent d1cedf35
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
import Api from '@/service/api'
import mInflid from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import {Row ,Col} from 'antd'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class InflidScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'inflid'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mInflid()
this.bind = Bind.bind(this)
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('inflid/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()//关闭校验
}
litmod_lidlstHeader=[
{
title:<Label itext="业务编号" />,
dataIndex:"ownref",
key:"ownref",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ownref,r2.ownref),
},
{
title:<Label itext="摘要" />,
dataIndex:"nam",
key:"nam",
width:100,
sorter: (r1,r2)=>ColSorter(r1.nam,r2.nam),
},
{
title:<Label itext="开立日期" />,
dataIndex:"opndat",
key:"opndat",
width:100,
sorter: (r1,r2)=>ColSorter(r1.opndat,r2.opndat),
},
{
title:<Label itext="闭卷日期" />,
dataIndex:"clsdat",
key:"clsdat",
width:100,
sorter: (r1,r2)=>ColSorter(r1.clsdat,r2.clsdat),
},
{
title:<Label itext="溢短装" />,
dataIndex:"nomtop",
key:"nomtop",
width:100,
sorter: (r1,r2)=>ColSorter(r1.nomtop,r2.nomtop),
},
{
title:<Label itext="信用证类型" />,
dataIndex:"lcrtyp",
key:"lcrtyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.lcrtyp,r2.lcrtyp),
},
{
title:<Label itext="机构" />,
dataIndex:"ownbch",
key:"ownbch",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ownbch,r2.ownbch),
},
]
//按钮事件
onLitmod_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('inflid/litmod_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLitmod_choose= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('inflid/litmod_choose',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div style={{ position: 'relative' }}>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Own Reference" trn="inflid" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("infcon_seaownref")} maxLength={16} desp="Own Reference for search" path="/infcon/seaownref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="inflid" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("infcon_nam")} maxLength={40} desp="Name" path="/infcon/nam" />
</Col>
</Row>
</Col>
</Row>
{/* <Button type="primary" onClick={this.onInfbut_searow} desp="Search" path="/infbut/searow">
<Label itext="&Search"/>
</Button> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Party Reference" trn="inflid" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("infcon_searef")} maxLength={16} desp="External Reference for search" path="/infcon/searef" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Role" trn="inflid" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("infcon_searol")} desp="Role" path="/infcon/searol"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Select Single Party" trn="inflid" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pty_extkey")} maxLength={16} desp="客户号" path="/infcon/pty/extkey" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Status" trn="inflid" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("infcon_seasta")} code={CodeTable.seasta} desp="Status" path="/infcon/seasta"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Party Name/BIC" trn="inflid" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("infcon_seapty")} maxLength={24} desp="Party Name/BIC" path="/infcon/seapty" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Currency" trn="inflid" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("infcon_seacur")} desp="Currency" path="/infcon/seacur"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Opening between" trn="inflid" />
</Col>
<Col span={5}>
<DatePickerItem InputProps={bind("infcon_opndatfrom")} desp="Open Date from" path="/infcon/opndatfrom" />
</Col>
<Col span={2} offset={1}>
<Label itext="and" trn="inflid" />
</Col>
<Col span={5}>
<DatePickerItem InputProps={bind("infcon_opndatto")} desp="Open Date to" path="/infcon/opndatto" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Amount between" trn="inflid" />
</Col>
<Col span={5}>
<InputItem InputProps={bind("infcon_seaamtfr")} desp="Amount from" path="/infcon/seaamtfr" />
</Col>
<Col span={2} offset={1}>
<Label itext="and" trn="inflid" />
</Col>
<Col span={5}>
<InputItem InputProps={bind("infcon_seaamtto")} desp="Amount to" path="/infcon/seaamtto" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirmation Status" trn="inflid" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("seacnfdet")} desp="confirmation status" path="/seacnfdet"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Form of L/C" trn="inflid" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("sealcrtyp")} desp="form of L/C" path="/sealcrtyp"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="display stream" trn="inflid" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("infbut_dspstm")} desp="display stream" path="/infbut/dspstm" />
</Col>
</Row>
</Col>
<Col span={12}>
</Col>
</Row>
<Row>
<Col span={12} offset={12}>
<Row className="row">
<Col span={2} offset={20}>
<Button type="primary" icon="search" onClick={this.onLitmod_sel} desp="查询" path="/litmod/sel">
<Label itext="查询"/>
</Button>
</Col>
</Row>
</Col>
</Row>
<Row style={{marginTop:30}}>
<Col span={24}>
<Table rowKey="inr" size="middle" columns={this.litmod_lidlstHeader} dataSource={this.model.litmod_lidlst} path="/litmod/lidlst"/>
</Col>
</Row>
</div>
)
}
}
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table,Steps} from '@/components/Common-Library'
import Api from '@/service/api'
import mInflid from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import Basic from './Basic'
import { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
......@@ -34,6 +37,9 @@ export default class InflidScreen extends Page
super(props)
this.model = new mInflid()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
......@@ -55,189 +61,21 @@ export default class InflidScreen extends Page
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
litmod_lidlstHeader=[
{
title:<Label itext="业务编号" />,
dataIndex:"ownref",
key:"ownref",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ownref,r2.ownref),
},
{
title:<Label itext="摘要" />,
dataIndex:"nam",
key:"nam",
width:100,
sorter: (r1,r2)=>ColSorter(r1.nam,r2.nam),
},
{
title:<Label itext="开立日期" />,
dataIndex:"opndat",
key:"opndat",
width:100,
sorter: (r1,r2)=>ColSorter(r1.opndat,r2.opndat),
},
{
title:<Label itext="闭卷日期" />,
dataIndex:"clsdat",
key:"clsdat",
width:100,
sorter: (r1,r2)=>ColSorter(r1.clsdat,r2.clsdat),
},
{
title:<Label itext="溢短装" />,
dataIndex:"nomtop",
key:"nomtop",
width:100,
sorter: (r1,r2)=>ColSorter(r1.nomtop,r2.nomtop),
},
{
title:<Label itext="信用证类型" />,
dataIndex:"lcrtyp",
key:"lcrtyp",
width:100,
sorter: (r1,r2)=>ColSorter(r1.lcrtyp,r2.lcrtyp),
},
{
title:<Label itext="机构" />,
dataIndex:"ownbch",
key:"ownbch",
width:100,
sorter: (r1,r2)=>ColSorter(r1.ownbch,r2.ownbch),
},
]
//按钮事件
onLitmod_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('inflid/litmod_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onLitmod_choose= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('inflid/litmod_choose',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<Label itext="Own Reference" trn="inflid" />
<InputItem InputProps={bind("infcon_seaownref")} maxLength={16} desp="Own Reference for search" path="/infcon/seaownref" />
<Label itext="Name" trn="inflid" />
<InputItem InputProps={bind("infcon_nam")} maxLength={40} desp="Name" path="/infcon/nam" />
<Button type="primary" onClick={this.onInfbut_searow} desp="Search" path="/infbut/searow">
<Label itext="&Search"/>
</Button>
<Label itext="Party Reference" trn="inflid" />
<InputItem InputProps={bind("infcon_searef")} maxLength={16} desp="External Reference for search" path="/infcon/searef" />
<Label itext="Role" trn="inflid" />
<SelectItem InputProps={bind("infcon_searol")} desp="Role" path="/infcon/searol"/>
<Button type="primary" onClick={this.onInfbut_dsp} desp="Display" path="/infbut/dsp">
<Label itext="D&isplay"/>
</Button>
<Label itext="Select Single Party" trn="inflid" />
<InputItem InputProps={bind("pty_extkey")} maxLength={16} desp="客户号" path="/infcon/pty/extkey" />
<Label itext="Status" trn="inflid" />
<SelectItem InputProps={bind("infcon_seasta")} code={CodeTable.seasta} desp="Status" path="/infcon/seasta"/>
<Button type="primary" onClick={this.onInfbut_userow} desp="Use" path="/infbut/userow">
<Label itext="&Use"/>
</Button>
<Label itext="Party Name/BIC" trn="inflid" />
<InputItem InputProps={bind("infcon_seapty")} maxLength={24} desp="Party Name/BIC" path="/infcon/seapty" />
<Label itext="Currency" trn="inflid" />
<SelectItem InputProps={bind("infcon_seacur")} desp="Currency" path="/infcon/seacur"/>
<Button type="primary" onClick={this.onInfbut_clr} desp="Clear" path="/infbut/clr">
<Label itext="&Clear"/>
</Button>
<Label itext="Opening between" trn="inflid" />
<DatePickerItem InputProps={bind("infcon_opndatfrom")} desp="Open Date from" path="/infcon/opndatfrom" />
<Label itext="and" trn="inflid" />
<DatePickerItem InputProps={bind("infcon_opndatto")} desp="Open Date to" path="/infcon/opndatto" />
<Label itext="Amount between" trn="inflid" />
<InputItem InputProps={bind("infcon_seaamtfr")} desp="Amount from" path="/infcon/seaamtfr" />
<Label itext="and" trn="inflid" />
<InputItem InputProps={bind("infcon_seaamtto")} desp="Amount to" path="/infcon/seaamtto" />
<Label itext="Confirmation Status" trn="inflid" />
<SelectItem InputProps={bind("seacnfdet")} desp="confirmation status" path="/seacnfdet"/>
<Label itext="Form of L/C" trn="inflid" />
<SelectItem InputProps={bind("sealcrtyp")} desp="form of L/C" path="/sealcrtyp"/>
<InputItem InputProps={bind("infbut_dspstm")} desp="display stream" path="/infbut/dspstm" />
<Button type="primary" onClick={this.onInfbut_exi} desp="Exit" path="/infbut/exi">
<Label itext="E&xit"/>
</Button>
<Table rowKey="inr" columns={this.litmod_lidlstHeader} dataSource={this.model.litmod_lidlst} path="/litmod/lidlst"/>
<Button type="primary" icon="search" onClick={this.onLitmod_sel} desp="查询" path="/litmod/sel">
<Label itext="查询"/>
</Button>
<Button type="primary" onClick={this.onLitmod_choose} desp="选中" path="/litmod/choose">
<Label itext="选中"/>
</Button>
</div>
<Card title="信用证查询" size="small" className="transTitle">
<Steps>
<StepItem title="信用证查询">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
</Steps>
</Card>
)
}
}
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table,BottomBtn} from '@/components/Common-Library'
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
import Api from '@/service/api'
import mLcyadd from '../model'
import CodeTableFactory from '@/components/CodeTable'
......@@ -11,6 +11,7 @@ import { action, observable,runInAction } from 'mobx'
import { Row, Col} from 'antd';
import Ptspta2 from '@/views/Public/Ptspta2'
import Business from '@/views/Public/Business'
import BottomBtn from '@/views/Public/BottomBtn'
const CodeTable = CodeTableFactory.getInstance()
......
......@@ -42,26 +42,26 @@ export default class LcyaddScreen extends Page
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('lcyadd/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
// async componentWillMount()
// {
// /*
// *添加初始化代码
// */
// const rtnmsg = await Api.post('lcyadd/init',{data:this.model})
// if(rtnmsg.retcod == SUCCESS)
// {
// const {data} = rtnmsg
// runInAction(()=>{
// Object.assign(this.model,data)
// })
// }
// //快照模式下,不必开启校验,否则,静默校验,和记录变动
// !this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
// }
// componentWillUnmount()
// {
// this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
// }
//交易内实现
renderPage(){
const bind = this.bind
......@@ -69,11 +69,7 @@ export default class LcyaddScreen extends Page
return (
<Card title="个人结汇新增" size="small" className="transTitle">
<Steps>
<StepItem title="新增">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
</Steps>
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</Card>
)
}
......
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table,BottomBtn} from '@/components/Common-Library'
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
import Api from '@/service/api'
import mLcyame from '../model'
import CodeTableFactory from '@/components/CodeTable'
......@@ -9,8 +9,8 @@ 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'
import Business from '@/views/Public/Business'
import BottomBtn from '@/views/Public/BottomBtn'
const CodeTable = CodeTableFactory.getInstance()
......
......@@ -42,26 +42,26 @@ export default class LcyameScreen extends Page
}
}
async componentWillMount()
{
/*
*添加初始化代码
*/
const rtnmsg = await Api.post('lcyame/init',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
const {data} = rtnmsg
runInAction(()=>{
Object.assign(this.model,data)
})
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount()
{
this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
}
// async componentWillMount()
// {
// /*
// *添加初始化代码
// */
// const rtnmsg = await Api.post('lcyame/init',{data:this.model})
// if(rtnmsg.retcod == SUCCESS)
// {
// const {data} = rtnmsg
// runInAction(()=>{
// Object.assign(this.model,data)
// })
// }
// //快照模式下,不必开启校验,否则,静默校验,和记录变动
// !this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
// }
// componentWillUnmount()
// {
// this.model.stopMonitor&&this.model.stopMonitor()//关闭校验
// }
//交易内实现
renderPage(){
const bind = this.bind
......@@ -69,11 +69,7 @@ export default class LcyameScreen extends Page
return (
<Card title="个人结汇修改" size="small" className="transTitle">
<Steps>
<StepItem title="修改">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
</Steps>
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</Card>
)
}
......
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table,BottomBtn} from '@/components/Common-Library'
import Api from '@/service/api'
import mLitrog from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col} from 'antd';
import Ptspta2 from '@/views/Public/Ptspta2'
import Business from '@/views/Public/Business'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class BasicScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'litrog'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mLitrog()
this.bind = Bind.bind(this)
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div style={{ position: 'relative' }}>
<Business wrappedComponentRef={ref => (this.com = ref)} steps={this.props.steps} extra={this.props.extra} model={this.model} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="参考号" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ownref1")} maxLength={16} desp="Reference" path="/lidgrp/rec/ownref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="简略信息" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("nam1")} maxLength={140} desp="Externally Displayed Name to Identify the Contract" path="/lidgrp/rec/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="信用证金额" trn="litrog" />
</Col>
<Col span={6}>
<SelectItem InputProps={bind("nom1_cur")} code={CodeTable.curtxt} desp="Currency" path="/lidgrp/cbs/nom1/cur"/>
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("nom1_amt")} desp="Balance" path="/lidgrp/cbs/nom1/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Add. Amount" trn="litrog" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/brtp/aammod/addamtflg" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="申请人" trn="litrog" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="申请人编号" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/brdgrp/apl/pts/ref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/brdgrp/apl/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="信用证余额" trn="litrog" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("opn1_cur")} maxLength={3} desp="Currency" path="/lidgrp/cbs/opn1/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("opn1_amt")} desp="Balance" path="/lidgrp/cbs/opn1/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Revolving Flag" trn="litrog" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("revflg")} desp="Revolving Flag" path="/lidgrp/rec/revflg" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="指定银行" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("lidgrp_avbnam")} maxLength={40} desp="Available with Bank" path="/lidgrp/avbnam" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Red/Green Clause" trn="litrog" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("redclsflg")} desp="Red/Green Clause" path="/lidgrp/rec/redclsflg" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="受益编号" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_ref")} maxLength={16} desp="参考号" path="/brdgrp/ben/pts/ref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/brdgrp/ben/pts/nam" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="受益人" trn="litrog" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="兑付方式" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("avbby")} desp="Available by" path="/lidgrp/rec/avbby"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="信用证类型" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("lcrtyp")} desp="Form of Documentary Credit" path="/lidgrp/rec/lcrtyp"/>
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="交单行" trn="litrog" /> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="交单编号" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_ref")} maxLength={16} desp="参考号" path="/brdgrp/prb/pts/ref" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="开证日期" trn="litrog" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("opndat")} desp="Date L/C Opened/Issued" path="/lidgrp/rec/opndat" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="最迟装运日期" trn="litrog" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("shpdat1")} desp="Shipment Date" path="/lidgrp/rec/shpdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="客户英文名称" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/brdgrp/prb/pts/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="到期日/到期地点" trn="litrog" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Date of Expiry" path="/lidgrp/rec/expdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Place of Expiry" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("expplc")} maxLength={29} desp="Place of Expiry" path="/lidgrp/rec/expplc" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Shipping Gua. Ref." trn="litrog" />
</Col>
<Col span={11}>
<InputItem InputProps={bind("shgref")} maxLength={16} desp="Shipping Guarantee Reference" path="/brdgrp/rec/shgref" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" onClick={this.onGetref} desp="GETREF" path="/getref">
<Label itext="获取"/>
</Button>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Name" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("nam")} maxLength={40} desp="Name of Bill Contract" path="/brdgrp/rec/nam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Document Number" trn="litrog" />
</Col>
<Col span={11}>
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Own Reference BR Number" path="/brdgrp/rec/ownref" />
</Col>
<Col span={2} offset={1}>
<Button type="primary" onClick={this.onGetref1} desp="Get Ref." path="/mtabut/getref">
<Label itext="获取"/>
</Button>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Mortgage Flag" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("guaflg")} code={CodeTable.guaflg} desp="Mortgage Flag" path="/brdgrp/rec/guaflg"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Amount of Shipment" trn="litrog" />
</Col>
<Col span={6}>
<InputItem InputProps={bind("max_cur")} maxLength={3} desp="Currency" path="/brdgrp/cbs/max/cur" />
</Col>
<Col span={7} offset={1}>
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/brdgrp/cbs/max/amt" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Presented by" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("docprbrol")} desp="Presented by" path="/brdgrp/rec/docprbrol"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Shipping Mark" trn="litrog" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("shpmar")} desp="Shipping Mark" path="/shpmar"/>
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Piecesin Total" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("pietat")} maxLength={80} desp="Piecesin Total" path="/pietat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts2', url: 'litrog/prbp_ptysel', flg: 'C', datakey: '\\litp\\prbp\\ptslst' }} />
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="担保银行" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("guabnkval")} maxLength={40} desp="担保银行" path="/guabnkval" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="(提货担保面函落款)" trn="litrog" />
</Col>
<Col span={14}>
</Col>
</Row>
</Col>
</Row>
{/* <InputItem InputProps={bind("pts2_extkey")} maxLength={16} desp="客户编号" path="/brdgrp/prb/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onPrbp_sel} desp="查询" path="/brtp/prbp/sel">
<Label itext="查询"/>
</Button>
<TextAreaItem InputProps={bind("pts2_adrblk")} desp="SWIFT地址" path="/brdgrp/prb/pts/adrblk"/> */}
<BottomBtn _this={this} />
</div>
)
}
}
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table,BottomBtn} from '@/components/Common-Library'
import Api from '@/service/api'
import mLitrog from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col} from 'antd';
import Ptspta2 from '@/views/Public/Ptspta2'
import Business from '@/views/Public/Business'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class LitrogScreen extends Page
{
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext () {
return {trn:'litrog'}
}
@observable
formBlur=false
constructor(props)
{
super(props)
this.model = new mLitrog()
this.bind = Bind.bind(this)
}
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
<Business wrappedComponentRef={ref => (this.com = ref)} steps={this.props.steps} extra={this.props.extra} model={this.model} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Release of Goods" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("relgodflg")} desp="Release of Goods" path="/brdgrp/rec/relgodflg"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Contract Number" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("brtp_connum")} maxLength={35} desp="Contract Number" path="/brtp/connum" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Release Type" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("reltyp")} code={CodeTable.reltyp} desp="Release Type" path="/brdgrp/rec/reltyp"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="issue date" trn="litrog" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("relgoddat")} desp="Request Date for Release of Goods" path="/brdgrp/rec/relgoddat" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Expiry Date" trn="litrog" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("expdat")} desp="Expiry Date of Shipping Guarantee" path="/brdgrp/rec/expdat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Carrier" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("blk_carnam")} maxLength={35} desp="Carrier" path="/brdgrp/blk/carnam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Transport Doc. Type" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("trpdoctyp")} desp="Transport Document Type" path="/brdgrp/rec/trpdoctyp"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="B/L Number" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("blnum")} maxLength={20} desp="B/L Number" path="/brdgrp/rec/blnum" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Transport Doc. No." trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("trpdocnum")} maxLength={40} desp="Transport Document Number" path="/brdgrp/rec/trpdocnum" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Release Goods to Applicant" trn="litrog" />
</Col>
<Col span={14}>
<CheckboxItem InputProps={bind("rtoaplflg")} desp="Release Goods to Applicant ?" path="/brdgrp/rec/rtoaplflg" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="shipment date" trn="litrog" />
</Col>
<Col span={14}>
<DatePickerItem InputProps={bind("tradat")} desp="Date of Transport Document" path="/brdgrp/rec/tradat" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Release to Address" trn="litrog" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("blk_relstoadr")} desp="Release to Address" path="/brdgrp/blk/relstoadr"/>
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Mode of Transport" trn="litrog" />
</Col>
<Col span={14}>
<SelectItem InputProps={bind("tramod")} desp="Mode of Transport" path="/brdgrp/rec/tramod"/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Vessel Name" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("blk_vesnam")} maxLength={40} desp="Vessel Name" path="/brdgrp/blk/vesnam" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Port of Discharge" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("blk_pordis")} maxLength={40} desp="Port of Discharge" path="/brdgrp/blk/pordis" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Place of Delivery" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("blk_delplc")} maxLength={40} desp="Place of Delivery" path="/brdgrp/blk/delplc" />
</Col>
</Row>
</Col>
</Row>
{/* <Label itext="Shipping company" trn="litrog" /> */}
<Row>
<Col span={12}>
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址", prefix: 'pts3', url: 'litrog/shpp_ptysel', flg: 'C', datakey: '\\litp\\shpp\\ptslst' }} />
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Covered Goods" trn="litrog" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("blk_roggod")} desp="Identification of Goods" path="/brdgrp/blk/roggod"/>
</Col>
</Row>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Notify Party" trn="litrog" />
</Col>
<Col span={14}>
<TextAreaItem InputProps={bind("blk_notpty")} desp="Notify Party" path="/brdgrp/blk/notpty"/>
</Col>
</Row>
</Col>
</Row>
{/* <InputItem InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/brdgrp/rog/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onShpp_sel} desp="查询" path="/brtp/shpp/sel">
<Label itext="查询"/>
</Button>
<TextAreaItem InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/brdgrp/rog/pts/adrblk"/> */}
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Port of loading" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("blk_porlod")} maxLength={40} desp="Port of loading" path="/brdgrp/blk/porlod" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Voyage numer" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("blk_voynum")} maxLength={30} desp="Voyage numer" path="/brdgrp/blk/voynum" />
</Col>
</Row>
</Col>
</Row>
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Goods code" trn="litrog" />
</Col>
<Col span={14}>
<InputItem InputProps={bind("ngrcod")} maxLength={6} desp="Goods code" path="/brdgrp/rec/ngrcod" />
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
</Row>
</Col>
</Row>
<BottomBtn _this={this} />
</div>
)
}
}
import React,{Component,Fragment} from 'react'
import PropTypes from 'prop-types'
import {Page,Validator,Notification,FormItem,DatePickerItem,TextAreaItem,CheckboxItem,Checkbox,
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table} from '@/components/Common-Library'
InputItem,Input,Bind,SelectItem,Button,Label,Image,Table,Steps} from '@/components/Common-Library'
import Api from '@/service/api'
import mLitrog from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import Basic from './Basic'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import Engp from '@/views/Public/Engp'
import Detp from './Detp'
import { Card } from 'antd'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
......@@ -34,6 +42,9 @@ export default class LitrogScreen extends Page
super(props)
this.model = new mLitrog()
this.bind = Bind.bind(this)
this.state = {
flag: true
}
}
async componentWillMount()
......@@ -57,805 +68,6 @@ export default class LitrogScreen extends Page
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),
},
]
//按钮事件
onGetref1= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('litrog/getref1',{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('litrog/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('litrog/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('litrog/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('litrog/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('litrog/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('litrog/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('litrog/pts2_adrblk',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onShpp_sel= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('litrog/shpp_sel',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
onGetref= ()=>{
this.formBlur=true //已触发表单提交处理
Validator.validate(this.model,this.model.descriptor,async(errors,values)=>{
if(errors)
return
const rtnmsg = await Api.post('litrog/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('litrog/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('litrog/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('litrog/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('litrog/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('litrog/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('litrog/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('litrog/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('litrog/trndoc_reldoc',{data:this.model})
if(rtnmsg.retcod == SUCCESS)
{
Notification.success({message:'数据提交成功!'})
}
else
{
Notification.error({message:'服务端请求失败!'})
}
//余下逻辑处理
})
}
//交易内实现
renderPage(){
......@@ -863,377 +75,29 @@ export default class LitrogScreen extends Page
const {i18n} = this.props
return (
<div className="transPage">
<Label itext="参考号" trn="litrog" />
<InputItem InputProps={bind("ownref1")} maxLength={16} desp="Reference" path="/lidgrp/rec/ownref" />
<Label itext="简略信息" trn="litrog" />
<InputItem InputProps={bind("nam1")} maxLength={140} desp="Externally Displayed Name to Identify the Contract" path="/lidgrp/rec/nam" />
<Label itext="信用证金额" trn="litrog" />
<SelectItem InputProps={bind("nom1_cur")} code={CodeTable.curtxt} desp="Currency" path="/lidgrp/cbs/nom1/cur"/>
<InputItem InputProps={bind("nom1_amt")} desp="Balance" path="/lidgrp/cbs/nom1/amt" />
<CheckboxItem InputProps={bind("aammod_addamtflg")} desp="Add. Amount" path="/brtp/aammod/addamtflg" />
<Label itext="申请人" trn="litrog" />
<Label itext="编号" trn="litrog" />
<InputItem InputProps={bind("pts_ref")} maxLength={16} desp="参考号" path="/brdgrp/apl/pts/ref" />
<InputItem InputProps={bind("pts_nam")} maxLength={100} desp="客户英文名称" path="/brdgrp/apl/pts/nam" />
<Label itext="信用证余额" trn="litrog" />
<InputItem InputProps={bind("opn1_cur")} maxLength={3} desp="Currency" path="/lidgrp/cbs/opn1/cur" />
<InputItem InputProps={bind("opn1_amt")} desp="Balance" path="/lidgrp/cbs/opn1/amt" />
<CheckboxItem InputProps={bind("revflg")} desp="Revolving Flag" path="/lidgrp/rec/revflg" />
<Label itext="指定银行" trn="litrog" />
<InputItem InputProps={bind("lidgrp_avbnam")} maxLength={40} desp="Available with Bank" path="/lidgrp/avbnam" />
<CheckboxItem InputProps={bind("redclsflg")} desp="Red/Green Clause" path="/lidgrp/rec/redclsflg" />
<Label itext="受益人" trn="litrog" />
<Label itext="编号" trn="litrog" />
<InputItem InputProps={bind("pts1_ref")} maxLength={16} desp="参考号" path="/brdgrp/ben/pts/ref" />
<InputItem InputProps={bind("pts1_nam")} maxLength={100} desp="客户英文名称" path="/brdgrp/ben/pts/nam" />
<Label itext="兑付方式" trn="litrog" />
<SelectItem InputProps={bind("avbby")} desp="Available by" path="/lidgrp/rec/avbby"/>
<Label itext="信用证类型" trn="litrog" />
<SelectItem InputProps={bind("lcrtyp")} desp="Form of Documentary Credit" path="/lidgrp/rec/lcrtyp"/>
<Label itext="交单行" trn="litrog" />
<Label itext="编号" trn="litrog" />
<InputItem InputProps={bind("pts2_ref")} maxLength={16} desp="参考号" path="/brdgrp/prb/pts/ref" />
<Label itext="开证日期" trn="litrog" />
<DatePickerItem InputProps={bind("opndat")} desp="Date L/C Opened/Issued" path="/lidgrp/rec/opndat" />
<Label itext="最迟装运日期" trn="litrog" />
<DatePickerItem InputProps={bind("shpdat")} desp="Shipment Date" path="/lidgrp/rec/shpdat" />
<InputItem InputProps={bind("pts2_nam")} maxLength={100} desp="客户英文名称" path="/brdgrp/prb/pts/nam" />
<Label itext="到期日/到期地点" trn="litrog" />
<DatePickerItem InputProps={bind("expdat1")} desp="Date of Expiry" path="/lidgrp/rec/expdat" />
<InputItem InputProps={bind("expplc")} maxLength={29} desp="Place of Expiry" path="/lidgrp/rec/expplc" />
<Label itext="Shipping Gua. Ref." trn="litrog" />
<InputItem InputProps={bind("shgref")} maxLength={16} desp="Shipping Guarantee Reference" path="/brdgrp/rec/shgref" />
<Button type="primary" onClick={this.onGetref} desp="GETREF" path="/getref">
<Label itext="获取"/>
</Button>
<InputItem InputProps={bind("nam")} maxLength={40} desp="Name of Bill Contract" path="/brdgrp/rec/nam" />
<Label itext="Name" trn="litrog" />
<Label itext="Document Number" trn="litrog" />
<InputItem InputProps={bind("ownref")} maxLength={16} desp="Own Reference BR Number" path="/brdgrp/rec/ownref" />
<Button type="primary" onClick={this.onGetref1} desp="Get Ref." path="/mtabut/getref">
<Label itext="获取"/>
</Button>
<Label itext="Mortgage Flag" trn="litrog" />
<SelectItem InputProps={bind("guaflg")} code={CodeTable.guaflg} desp="Mortgage Flag" path="/brdgrp/rec/guaflg"/>
<Label itext="Amount of Shipment" trn="litrog" />
<InputItem InputProps={bind("max_cur")} maxLength={3} desp="Currency" path="/brdgrp/cbs/max/cur" />
<InputItem InputProps={bind("max_amt")} desp="Balance" path="/brdgrp/cbs/max/amt" />
<Label itext="Presented by" trn="litrog" />
<SelectItem InputProps={bind("docprbrol")} desp="Presented by" path="/brdgrp/rec/docprbrol"/>
<TextAreaItem InputProps={bind("shpmar")} desp="Shipping Mark" path="/shpmar"/>
<InputItem InputProps={bind("pts2_extkey")} maxLength={16} desp="客户编号" path="/brdgrp/prb/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onPrbp_sel} desp="查询" path="/brtp/prbp/sel">
<Label itext="查询"/>
</Button>
<TextAreaItem InputProps={bind("pts2_adrblk")} desp="SWIFT地址" path="/brdgrp/prb/pts/adrblk"/>
<Label itext="Piecesin Total" trn="litrog" />
<InputItem InputProps={bind("pietat")} maxLength={80} desp="Piecesin Total" path="/pietat" />
<Label itext="担保银行" trn="litrog" />
<InputItem InputProps={bind("guabnkval")} maxLength={40} desp="担保银行" path="/guabnkval" />
<Label itext="(提货担保面函落款)" trn="litrog" />
<Label itext="Release of Goods" trn="litrog" />
<SelectItem InputProps={bind("relgodflg")} desp="Release of Goods" path="/brdgrp/rec/relgodflg"/>
<Label itext="Contract Number" trn="litrog" />
<InputItem InputProps={bind("brtp_connum")} maxLength={35} desp="Contract Number" path="/brtp/connum" />
<Label itext="Release Type" trn="litrog" />
<SelectItem InputProps={bind("reltyp")} code={CodeTable.reltyp} desp="Release Type" path="/brdgrp/rec/reltyp"/>
<Label itext="issue date" trn="litrog" />
<DatePickerItem InputProps={bind("relgoddat")} desp="Request Date for Release of Goods" path="/brdgrp/rec/relgoddat" />
<Label itext="Expiry Date" trn="litrog" />
<DatePickerItem InputProps={bind("expdat")} desp="Expiry Date of Shipping Guarantee" path="/brdgrp/rec/expdat" />
<Label itext="Carrier" trn="litrog" />
<InputItem InputProps={bind("blk_carnam")} maxLength={35} desp="Carrier" path="/brdgrp/blk/carnam" />
<Label itext="Transport Doc. Type" trn="litrog" />
<SelectItem InputProps={bind("trpdoctyp")} desp="Transport Document Type" path="/brdgrp/rec/trpdoctyp"/>
<Label itext="B/L Number" trn="litrog" />
<InputItem InputProps={bind("blnum")} maxLength={20} desp="B/L Number" path="/brdgrp/rec/blnum" />
<Label itext="Transport Doc. No." trn="litrog" />
<InputItem InputProps={bind("trpdocnum")} maxLength={40} desp="Transport Document Number" path="/brdgrp/rec/trpdocnum" />
<Label itext="Release to Address" trn="litrog" />
<CheckboxItem InputProps={bind("rtoaplflg")} desp="Release Goods to Applicant ?" path="/brdgrp/rec/rtoaplflg" />
<Label itext="shipment date" trn="litrog" />
<DatePickerItem InputProps={bind("tradat")} desp="Date of Transport Document" path="/brdgrp/rec/tradat" />
<TextAreaItem InputProps={bind("blk_relstoadr")} desp="Release to Address" path="/brdgrp/blk/relstoadr"/>
<Label itext="Mode of Transport" trn="litrog" />
<SelectItem InputProps={bind("tramod")} desp="Mode of Transport" path="/brdgrp/rec/tramod"/>
<Label itext="Vessel Name" trn="litrog" />
<InputItem InputProps={bind("blk_vesnam")} maxLength={40} desp="Vessel Name" path="/brdgrp/blk/vesnam" />
<Label itext="Port of Discharge" trn="litrog" />
<InputItem InputProps={bind("blk_pordis")} maxLength={40} desp="Port of Discharge" path="/brdgrp/blk/pordis" />
<Label itext="Shipping company" trn="litrog" />
<Label itext="Place of Delivery" trn="litrog" />
<InputItem InputProps={bind("blk_delplc")} maxLength={40} desp="Place of Delivery" path="/brdgrp/blk/delplc" />
<InputItem InputProps={bind("pts3_extkey")} maxLength={16} desp="客户编号" path="/brdgrp/rog/pts/extkey" />
<Button type="primary" icon="search" onClick={this.onShpp_sel} desp="查询" path="/brtp/shpp/sel">
<Label itext="查询"/>
</Button>
<Label itext="Covered Goods" trn="litrog" />
<TextAreaItem InputProps={bind("blk_roggod")} desp="Identification of Goods" path="/brdgrp/blk/roggod"/>
<TextAreaItem InputProps={bind("pts3_adrblk")} desp="SWIFT地址" path="/brdgrp/rog/pts/adrblk"/>
<Label itext="Notify Party" trn="litrog" />
<TextAreaItem InputProps={bind("blk_notpty")} desp="Notify Party" path="/brdgrp/blk/notpty"/>
<Label itext="Port of loading" trn="litrog" />
<InputItem InputProps={bind("blk_porlod")} maxLength={40} desp="Port of loading" path="/brdgrp/blk/porlod" />
<Label itext="Voyage numer" trn="litrog" />
<InputItem InputProps={bind("blk_voynum")} maxLength={30} desp="Voyage numer" path="/brdgrp/blk/voynum" />
<Label itext="Goods code" trn="litrog" />
<InputItem InputProps={bind("ngrcod")} maxLength={6} desp="Goods code" path="/brdgrp/rec/ngrcod" />
<Button type="primary" onClick={this.onLiaall_astlia} desp="表外加载" path="/liaall/astlia">
<Label itext="表外加载"/>
</Button>
<Label itext="表外明细" trn="litrog" />
<Table rowKey="inr" columns={this.liaall_liaallgHeader} dataSource={this.model.liaall_liaallg} path="/liaall/liaallg"/>
<Label itext="保证金明细" trn="litrog" />
<SelectItem InputProps={bind("liaccv_concur")} code={CodeTable.curtxt} desp="业务结算币种" path="/liaall/liaccv/concur"/>
<Label itext="业务余额" trn="litrog" />
<InputItem InputProps={bind("liaccv_newamt")} desp="业务金额" path="/liaall/liaccv/newamt" />
<Label itext="保证金应收比例" trn="litrog" />
<InputItem InputProps={bind("liaccv_cshpct")} desp="保证金应收比例" path="/liaall/liaccv/cshpct" />
<Label itext="%" trn="litrog" />
<Label itext="变动金额" trn="litrog" />
<InputItem InputProps={bind("liaccv_chgamt")} desp="变动金额" path="/liaall/liaccv/chgamt" />
<InputItem InputProps={bind("liaccv_relcshpct")} desp="保证金实收比例" path="/liaall/liaccv/relcshpct" />
<Label itext="保证金实收比例" trn="litrog" />
<Label itext="%" trn="litrog" />
<Label itext="应收/支保证金" trn="litrog" />
<InputItem InputProps={bind("liaccv_pctresamt")} desp="应收/支保证金" path="/liaall/liaccv/pctresamt" />
<Button type="primary" onClick={this.onLiaccv_recalccv} desp="汇率重算" path="/liaall/liaccv/recalccv">
<Label itext="汇率重算"/>
</Button>
<Table rowKey="inr" columns={this.liaccv_liaccvgHeader} dataSource={this.model.liaccv_liaccvg} path="/liaall/liaccv/liaccvg"/>
<Label itext="保证金合计" trn="litrog" />
<InputItem InputProps={bind("liaccv_totcovamt")} desp="保证金合计" path="/liaall/liaccv/totcovamt" />
<Label itext="业务余额" trn="litrog" />
<Label itext="保证金应收比例" trn="litrog" />
<Label itext="%" trn="litrog" />
<Label itext="变动金额" trn="litrog" />
<Label itext="保证金实收比例" trn="litrog" />
<Label itext="%" trn="litrog" />
<Label itext="应收/支保证金" trn="litrog" />
<Label itext="保证金合计" trn="litrog" />
<Label itext="结算金额" trn="litrog" />
<SelectItem InputProps={bind("setmod_doccur")} code={CodeTable.curtxt} desp="document currency" path="/setmod/doccur"/>
<InputItem InputProps={bind("setmod_docamt")} desp="document amount" path="/setmod/docamt" />
<Button type="primary" onClick={this.onSetmod_feedet} desp="重算金额" path="/setmod/feedet">
<Label itext="重算金额"/>
</Button>
<Button type="primary" onClick={this.onSetmod_ast} desp="加载账务" path="/setmod/ast">
<Label itext="加载账务"/>
</Button>
<Label itext="FEEMAC" trn="litrog" />
<InputItem InputProps={bind("setmod_feemac")} maxLength={200} desp="FEEMAC" path="/setmod/feemac" />
<Button type="primary" onClick={this.onSetmod_recal} desp="重算账务" path="/setmod/recal">
<Label itext="重算账务"/>
</Button>
<Label itext="费用明细" trn="litrog" />
<Label itext="SETMAC" trn="litrog" />
<InputItem InputProps={bind("setmod_setmac")} maxLength={200} desp="SETMAC" path="/setmod/setmac" />
<Table rowKey="inr" columns={this.fegmod_feslstHeader} dataSource={this.model.fegmod_feslst} path="/setmod/setfeg/fegmod/feslst"/>
<Label itext="账务明细" trn="litrog" />
<Table rowKey="inr" columns={this.glgmod_glslstHeader} dataSource={this.model.glgmod_glslst} path="/setmod/setglg/glgmod/glslst"/>
<Label itext="会计分录" trn="litrog" />
<Button type="primary" onClick={this.onGlemod_rebook} desp="分录加载" path="/setmod/glemod/rebook">
<Label itext="分录加载"/>
</Button>
<Table rowKey="inr" columns={this.glemod_glelstHeader} dataSource={this.model.glemod_glelst} path="/setmod/glemod/glelst"/>
<Label itext="面函码值" trn="litrog" />
<InputItem InputProps={bind("trndoc_doccod")} maxLength={16} desp="面函码值" path="/trnmod/trndoc/doccod" />
<Label itext="Per Medium" trn="litrog" />
<InputItem InputProps={bind("trndoc_cortyp")} maxLength={3} desp="Per Medium" path="/trnmod/trndoc/cortyp" />
<Button type="primary" onClick={this.onTrndoc_reldoc} desp="面函加载" path="/trnmod/trndoc/reldoc">
<Label itext="面函加载"/>
</Button>
<Button type="primary" onClick={this.onTrndoc_butshw} desp="show doc." path="/trnmod/trndoc/butshw">
<Label itext="展示"/>
</Button>
<Label itext="面函路径" trn="litrog" />
<InputItem InputProps={bind("trndoc_docpth")} maxLength={100} desp="面函路径" path="/trnmod/trndoc/docpth" />
<Table rowKey="inr" columns={this.docmod_doclstHeader} dataSource={this.model.docmod_doclst} path="/trnmod/trndoc/docmod/doclst"/>
<Label itext="唯一编号" trn="litrog" />
<InputItem InputProps={bind("spt_inr")} maxLength={8} desp="唯一编号" path="/sysmod/spt/inr" />
<Label itext="A" trn="litrog" />
<InputItem InputProps={bind("trndoc_doctrestm")} desp="Document tree" path="/trnmod/trndoc/doctrestm" />
<Button type="primary" onClick={this.onTrndoc_butadd} desp="Details" path="/trnmod/trndoc/butadd">
<Label itext="B"/>
</Button>
<Button type="primary" onClick={this.onTrndoc_butnew} desp="New Entry" path="/trnmod/trndoc/butnew">
<Label itext="C"/>
</Button>
<Button icon="delete" onClick={this.onTrndoc_butdel} desp="Delete Entry" path="/trnmod/trndoc/butdel">
<Label itext="D"/>
</Button>
<CheckboxItem InputProps={bind("trndoc_shwinc")} desp="Show Incoming Messages" path="/trnmod/trndoc/shwinc" />
<CheckboxItem InputProps={bind("trndoc_shwout")} desp="Show Outgoing Messages" path="/trnmod/trndoc/shwout" />
<CheckboxItem InputProps={bind("trndoc_shwoutint")} desp="Show Internal Messages" path="/trnmod/trndoc/shwoutint" />
<Button type="primary" onClick={this.onTrndoc_butatt} desp="Attach" path="/trnmod/trndoc/butatt">
<Label itext="E"/>
</Button>
<InputItem InputProps={bind("trndoc_condocstm")} desp="Connected Documents" path="/trnmod/trndoc/condocstm" />
<Button type="primary" icon="save"
onClick={this.onSav} desp="Save" path="/mtabut/sav">
<Label itext="提交"/>
</Button>
<Button type="primary" onClick={this.onChk} desp="Check" path="/mtabut/chk">
<Label itext="检核"/>
</Button>
<Button type="primary" onClick={this.onPed} desp="暂存" path="/mtabut/ped">
<Label itext="暂存"/>
</Button>
<Button type="primary" onClick={this.onExi} desp="Exit" path="/mtabut/exi">
<Label itext="退出"/>
</Button>
</div>
<Card title="提货担保" size="small" className="transTitle">
<Steps>
<StepItem title="提货担保">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
</StepItem>
<StepItem title="附加">
<Detp model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra} />
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra} />
</StepItem>
</Steps>
</Card>
)
}
}
import React,{ Component } from 'react';
import { Row, Col } from 'antd';
import { ConfirmButton, Button, Label } from '@/components/Common-Library'
import { observable } from 'mobx'
import { inject, observer } from 'mobx-react'
@observer
export default class BottomBtn extends Component{
constructor(){
super()
}
@observable
pedLoading = false //控制暂存按钮是否处于等待状态----等待状态时不可点击
@observable
savLoading = false //控制暂存按钮是否处于等待状态----等待状态时不可点击
// 退出按钮
onRtn = () => {
}
//保存按钮
onSav = () => {
//点击按钮第一时间让按钮处于等待状态,防止多次点击触发事件
this.savLoading = true
setTimeout(()=>{
this.savLoading = false
},3000)
}
render(){
return (
<Row type="flex" justify="center">
<Col>
<div className="button0">
<div className='button2'>
<ConfirmButton type="primary"
onOK={this.onRtn}
onOK1={this.onRtnPed}
message="确定退出?"
isped={true}
>
<Label itext="退出" />
</ConfirmButton>
</div>
<div className='button2'>
<ConfirmButton type="primary"
onOK={this.onSav}
icon="save"
message="确定提交?"
loading={this.savLoading}
>
<Label itext="提交" />
</ConfirmButton>
</div>
</div>
</Col>
</Row>
)
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment