Commit 27ae0f8b by YuMengShuai

出口保函修改

parent 3c13ba52
export {default as model} from './model'
export {default as descriptor} from './descriptor'
export {default} from './views'
\ No newline at end of file
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import {
Page, Validator, Notification, FormItem, DatePickerItem, TextAreaItem, CheckboxItem, Checkbox,
InputItem, Input, Bind, SelectItem, Button, Label, Image, Table, BottomBtn
} from '@/components/Common-Library'
import Api from '@/service/api'
import mGetame from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { Row, Col } from 'antd'
import { action, observable, runInAction } from 'mobx'
import Business from '@/views/Public/Business'
import Ptspta2 from '@/views/Public/Ptspta2'
const CodeTable = CodeTableFactory.getInstance()
@inject('UserContext')
@inject('i18n')
@observer
export default class GetameScreen extends Page {
static childContextTypes = {
trn: PropTypes.string,
}
getChildContext() {
return { trn: 'getame' }
}
@observable
formBlur = false
constructor(props) {
super(props)
this.model = props.model
this.bind = Bind.bind(this)
}
//按钮事件
//第一行
//交易内实现
renderPage() {
const bind = this.bind
const { i18n } = this.props
const { bchlevelLst } = this.props.extra
//const {next,pre} = this.props.steps
if (this.props.flag == true) {
return <Spin style={{ width: "100%", justifyContent: "center" }} spinning={this.props.flag} />
}
return (
<div style={{ position: "relative" }}>
<Business wrappedComponentRef={ref => (this.com = ref)} extra={this.props.extra} model={this.model} />
<Row>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank" trn="getame" />
</Col>
<Col span={14} >
<InputItem disabled={true} InputProps={bind("pts3_ref")} maxLength={16} desp="参考号" path="/gidgrp/con/pts/ref" />
</Col>
</Row>
<Row className='row'>
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts3', url: 'getame/conp_sel', flg: 'B', datakey: '\\gitp\\conp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
<Col span={12}>
<Row className="row">
<Col span={5} offset={2}>
<Label itext="Confirming Bank's Ref. " trn="getame" />
</Col>
<Col span={14} >
<InputItem disabled={true} InputProps={bind("pts4_ref")} maxLength={16} desp="参考号" path="/gidgrp/iss/pts/ref" />
</Col>
</Row>
<Row className="row">
<Col >
<Ptspta2 model={this.model} argArr={{ desc: "客户编号",desc1:"SWIFT地址",prefix: 'pts4', url: 'getame/issp_sel', flg: 'B', datakey: '\\gitp\\issp\\ptslst' }} formBlur={this.formBlur}/>
</Col>
</Row>
</Col>
</Row>
{/* 底部按钮 */}
<BottomBtn _this={this} />
</div>
)
}
}
import React, { Component, Fragment } from 'react'
import {
Page, Validator, Notification, FormItem, DatePickerItem, TextAreaItem, CheckboxItem, Checkbox,
InputItem, Input, Bind, SelectItem, Button, Label, Image, Table, Steps
} from '@/components/Common-Library'
import Api from '@/service/api'
import mGetame from '../model'
import CodeTableFactory from '@/components/CodeTable'
import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable } from 'mobx'
import { Card } from 'antd'
import DateFormat from '@/utils/DateUtil'
import Engp from '@/views/Public/Engp'
import Fee from '@/views/Public/Fee'
import Gle from '@/views/Public/Gle'
import Papper from '@/views/Public/Papper'
import Basic from './Basic'
import Fujia from './fujia'
import Fujia2 from './fujia2'
const CodeTable = CodeTableFactory.getInstance()
const StepItem = Steps.Item
@inject('UserContext')
@inject('i18n')
@observer
export default class GetselScreen extends Page {
@observable
formBlur = false
@observable
extra = { inifrm: 'getame', sptinr: '', oldinr: '', bchlevelLst: [] }
constructor(props) {
super(props)
this.state = {
flag: true
}
this.model = new mGetame()
}
async componentWillMount() {
let gidinr = '';
if (this.props.location.query) {
// if (this.props.location.query.from == "sptsel") {
// this.extra.sptinr = this.props.location.query.sptinr;
// } else {
gidinr = this.props.location.query.gidinr;
// }
}
const rtnmsg = await Api.post(this.extra.inifrm + '/init', { params: { gidinr: gidinr } })
if (rtnmsg.retcod == SUCCESS) {
Object.assign(this.model, rtnmsg.data)
this.extra.bchlevelLst = rtnmsg.codetable.ownbch;
this.extra.oldinr = gidinr ;
this.setState({ flag: false })
this.model.max_cur="CNY"
}
else {
Notification.error({ message: '服务端请求失败!' })
}
//快照模式下,不必开启校验,否则,静默校验,和记录变动
!this.loadDisplay() && this.model.openMonitor && this.model.openMonitor() //开启校验
}
componentWillUnmount() {
this.model.stopMonitor && this.model.stopMonitor()//关闭校验
}
//交易内实现
renderPage() {
return (
<Card title="包含修改确认" size="small" className="transTitle">
<Steps>
<StepItem title="修改确认">
<Basic model={this.model} extra={this.extra}></Basic>
</StepItem>
<StepItem title="附加">
<Fujia model={this.model} extra={this.extra}></Fujia>
</StepItem>
<StepItem title="附加2">
<Fujia2 model={this.model} extra={this.extra}></Fujia2>
</StepItem>
<StepItem title="表外&保证金">
<Engp model={this.model} extra={this.extra}></Engp>
</StepItem>
<StepItem title="费用&账务">
<Fee model={this.model} extra={this.extra}></Fee>
</StepItem>
<StepItem title="会计分录">
<Gle model={this.model} extra={this.extra}></Gle>
</StepItem>
<StepItem title="面函">
<Papper model={this.model} extra={this.extra}></Papper>
</StepItem>
</Steps>
</Card>
)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment