Commit 518e6749 by YuMengShuai

修改部分交易

parent 31d6d072
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,BottomBtn} from '@/components/Common-Library'
InputItem,Input,Bind,SelectItem,Button,Label,Image} from '@/components/Common-Library'
import Api from '@/service/api'
import mFcyadd from '../model'
import CodeTableFactory from '@/components/CodeTable'
......@@ -9,6 +9,7 @@ import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col, Table} from 'antd';
import BottomBtn from '@/views/Public/BottomBtn'
const CodeTable = CodeTableFactory.getInstance()
......
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,BottomBtn} from '@/components/Common-Library'
InputItem,Input,Bind,SelectItem,Button,Label,Image} from '@/components/Common-Library'
import Api from '@/service/api'
import mFcyame from '../model'
import CodeTableFactory from '@/components/CodeTable'
......@@ -9,6 +9,7 @@ import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col, Table} from 'antd';
import BottomBtn from '@/views/Public/BottomBtn'
const CodeTable = CodeTableFactory.getInstance()
......@@ -32,8 +33,9 @@ export default class FcyameScreen extends Page
constructor(props)
{
super(props)
this.model = new mFcyame()
this.bind = Bind.bind(this)
this.model = this.props.model
this.bind = Bind.bind(this)
}
// async componentWillMount()
......@@ -59,14 +61,16 @@ export default class FcyameScreen extends Page
//
//交易内实现
renderPage(){
const bind = this.bind
const {i18n} = this.props
return (
<div className="transPage">
{/* brtp/brthdr */}
{/* 第1行 */}
<Row>
......@@ -390,9 +394,8 @@ export default class FcyameScreen extends Page
</Row>
<BottomBtn _this={this} />
<BottomBtn _this={this}/>
</div>
......
......@@ -41,7 +41,7 @@ export default class FcyameScreen extends Page {
this.state = {
flag: true
}
this.model = new mFcyame()
this.model = new mFcyame
}
//交易初始化
// async componentWillMount() {
......@@ -80,6 +80,12 @@ export default class FcyameScreen extends Page {
//交易内实现
renderPage() {
if(this.props.history.location.query){
console.log(this.props.history.location.query.lidinr)
this.model=this.props.history.location.query.lidinr
}
console.log(this.model)
return (
<Card title="个人购汇修改" size="small" className="transTitle">
......
......@@ -9,7 +9,6 @@ import "./index.less"
import { inject, observer } from 'mobx-react'
import { action, observable,runInAction } from 'mobx'
import { Row, Col} from 'antd';
import Business from '@/views/Public/Business'
import BottomBtn from '@/views/Public/BottomBtn'
......@@ -35,7 +34,7 @@ export default class BasicScreen extends Page
constructor(props)
{
super(props)
this.model = new mLcyame()
this.model = this.props.model
this.bind = Bind.bind(this)
}
......@@ -46,7 +45,6 @@ export default class BasicScreen extends Page
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}>
......
......@@ -66,7 +66,11 @@ export default class LcyameScreen extends Page
renderPage(){
const bind = this.bind
const {i18n} = this.props
if(this.props.history.location.query){
console.log(this.props.history.location.query.lidinr)
this.model=this.props.history.location.query.lidinr
}
console.log(this.model)
return (
<Card title="个人结汇修改" size="small" className="transTitle">
<Basic model={this.model} extra={this.extra} flag={this.state.flag} />
......
......@@ -21,7 +21,7 @@ export default class BottomBtn extends Component{
// 退出按钮
onRtn = () => {
this.props.history.push({ pathname:'pcysel'})
}
//保存按钮
......
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