Commit 047dfa94 by snail

更新T17R,T22A,T32F,调整index。js域顺序 以大小排序

parent ea84be7f
......@@ -38,7 +38,7 @@ export default class T17R extends Component {
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)}>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="B/L" onChange={(val) => this.onChange(1, val)}>
<Option value="B">B</Option>
<Option value="L">L</Option>
</Select>
......
......@@ -27,6 +27,13 @@ export default class T22A extends Component
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
let Purpose = ['ACNF','ADVI','ISSU']
if(this.props.mty == 'mt300')
Purpose = ['AMND','CANC','DUPL','EXOP','NEWT']
if(this.props.mty == 'mt306')
Purpose = ['AMND','CANC','NEWT']
if(this.props.mty == 'mt320' || this.props.mty == 'mt360' || this.props.mty == 'mt620')
Purpose = ['AMND','CANC','DUPL','NEWT']
return (<Row>
<Col span={5}>
<FormItem
......@@ -41,10 +48,11 @@ export default class T22A extends Component
optionFilterProp="children"
notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(val)} >
<Option value="ACNF">ACNF</Option>
<Option value="ADVI">ADVI</Option>
<Option value="ISSU">ISSU</Option>
{
Purpose.map(function (item) {
return <Option value={item} key={item}>{item}</Option>
})
}
</Select>
</FormItem>
</Col>
......
......@@ -30,7 +30,8 @@ export default class T32F extends Component {
this.keys.forEach(i => {
obj['s' + i] = objtemp['s' + i]
});
let mval = `${obj.s1 || ''}${obj.s2 || ''}`
let temp = FormatAmount(obj.s2);
let mval = `${obj.s1 || ''}${temp || ''}`
this.props.onValue([obj, mval])
}
......@@ -43,6 +44,7 @@ export default class T32F extends Component {
value = value && value.length ? value[0] : {}
return (<Row>
<Col style={{ "minWidth": '100px' }} span={3}>
<FormItem
......
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