Commit 9d71867a by fukai

调整15系列栏位,增加17A

parent 66e770ac
......@@ -13,7 +13,12 @@ export default class T15A extends Component
tno = -1
render(){
return (<Row></Row>)
return (<Row>
<FormItem
>
<h3 className="ant-form-text" >New Sequence</h3>
</FormItem>
</Row>)
}
}
\ No newline at end of file
......@@ -17,7 +17,10 @@ export default class T15B extends Component
render()
{
return (<Row>
<FormItem
>
<h3 className="ant-form-text" >New Sequence</h3>
</FormItem>
</Row>)
}
......
......@@ -18,7 +18,10 @@ export default class T15C extends Component
{
return (<Row>
<FormItem
>
<h3 className="ant-form-text" >New Sequence</h3>
</FormItem>
</Row>)
}
......
......@@ -18,7 +18,10 @@ export default class T15D extends Component
{
return (<Row>
<FormItem
>
<h3 className="ant-form-text" >New Sequence</h3>
</FormItem>
</Row>)
}
......
......@@ -17,7 +17,10 @@ export default class T15E extends Component
render()
{
return (<Row>
<FormItem
>
<h3 className="ant-form-text" >New Sequence</h3>
</FormItem>
</Row>)
}
......
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17A extends Component {
name = '17A'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
......@@ -155,6 +155,7 @@ import T14S from './T14S'
import T15A from './T15A'
import T94A from './T94A'
import T22C from './T22C'
import T17A from './T17A'
import T17E from './T17E'
import T17F from './T17F'
import T17H from './T17H'
......@@ -189,6 +190,8 @@ import T39M from './T39M'
import T21A from './T21A'
import T14E from './T14E'
import T15B from './T15B'
import T15C from './T15C'
import T15D from './T15D'
import T30T from './T30T'
import T30V from './T30V'
import T29A from './T29A'
......@@ -387,6 +390,9 @@ export default function(tag,props,onValue){
case "T21A" :return <T21A {...props} onValue={onValue} />;
case "T14E" :return <T14E {...props} onValue={onValue} />;
case "T15B" :return <T15B {...props} onValue={onValue} />;
case "T15C" :return <T15C {...props} onValue={onValue} />;
case "T15D" :return <T15D {...props} onValue={onValue} />;
case "T30T" :return <T30T {...props} onValue={onValue} />;
case "T30V" :return <T30V {...props} onValue={onValue} />;
case "T29A" :return <T29A {...props} onValue={onValue} />;
......@@ -403,6 +409,7 @@ export default function(tag,props,onValue){
case "T15A" :return <T15A {...props} onValue={onValue} />;
case "T94A" :return <T94A {...props} onValue={onValue} />;
case "T22C" :return <T22C {...props} onValue={onValue} />;
case "T17A" :return <T17A {...props} onValue={onValue} />;
case "T17E" :return <T17E {...props} onValue={onValue} />;
case "T17F" :return <T17F {...props} onValue={onValue} />;
case "T17H" :return <T17H {...props} onValue={onValue} />;
......
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