Commit fd5b4733 by fukai

修复23、24E错误

parent 50bc45a1
......@@ -16,7 +16,7 @@ export default function(props)
let {mty} = props
if(mty=='mt752')
return <T23_1 {...props} SELCode={code1} />
if(mty== 'mt760' || mty == 'mt767')
if(mty == 'mt767')
return <T23_1 {...props} SELCode={code2} />
if(mty== 'mt305')
return <T23_305 {...props} />
......
......@@ -34,6 +34,10 @@ export default class T24E extends Component
obj['s'+i] = objtemp['s'+i]
});
if(obj.s1!= 'COUR' && obj.s1!= 'OTHR'){
obj.s2 = ""
}
let mval = `${obj.s1}`
if(obj.s2)
......@@ -74,11 +78,16 @@ export default class T24E extends Component
<Col style={{"minWidth":'350px'}} span={3}>
<FormItem
label="Additional Information"
required={this.props.status=='M' || mval?'required':null}
required={false}
help={errmsg.s2}
validateStatus={errmsg.s2?'error':null}
>
<Input addonBefore="/" value={value.s2} onChange={e=>this.onChange(2,e.target.value)} maxLength={35} style={{imeMode:'disabled'}} placeholder="Additional Information"/>
{
value.s1=='COUR' || value.s1=='OTHR'
?
<Input addonBefore="/" value={value.s2} onChange={e=>this.onChange(2,e.target.value)} maxLength={35} style={{imeMode:'disabled'}} placeholder="Additional Information" />
:<p>Empty Value</p>
}
</FormItem>
</Col>
......
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