Commit 132cc69e by s_guodong

MT767中22A码表值调整

parent c3ccc792
...@@ -12,13 +12,13 @@ export default class T22A extends Component ...@@ -12,13 +12,13 @@ export default class T22A extends Component
name='22A' name='22A'
desp = "Purpose of Message" desp = "Purpose of Message"
pattern = "" pattern = ""
tno = -1 tno = -1
onChange=(val)=>{ onChange=(val)=>{
this.props.onValue([{s1:val},val]) this.props.onValue([{s1:val},val])
} }
render() render()
{ {
let value =this.props.value let value =this.props.value
...@@ -27,13 +27,11 @@ export default class T22A extends Component ...@@ -27,13 +27,11 @@ export default class T22A extends Component
let errmsg = value && value.length==3?value[2]:{} let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {} value = value && value.length? value[0] : {}
let Purpose = ['ACNF','ADVI','ISSU']
let Purpose1 = [ let Purpose1 = [
{code:"ACNF",name:"ACNF"}, {code:"ACNF",name:"ACNF"},
{code:"ADVI",name:"ADVI"}, {code:"ADVI",name:"ADVI"},
{code:"ISSU",name:"ISSU"}] {code:"ISSU",name:"ISSU"}]
if (this.props.mty == 'mt300') { if (this.props.mty == 'mt300') {
Purpose = ['AMND', 'CANC', 'DUPL', 'EXOP', 'NEWT']
Purpose1 = [ Purpose1 = [
{ code: "AMND", name: "Amendment" }, { code: "AMND", name: "Amendment" },
{ code: "CANC", name: "Cancellation" }, { code: "CANC", name: "Cancellation" },
...@@ -42,37 +40,44 @@ export default class T22A extends Component ...@@ -42,37 +40,44 @@ export default class T22A extends Component
{ code: "NEWT", name: "New Confirmation" }] { code: "NEWT", name: "New Confirmation" }]
} }
if (this.props.mty == 'mt306') { if (this.props.mty == 'mt306') {
Purpose = ['AMND', 'CANC', 'NEWT']
Purpose1 = [ Purpose1 = [
{ code: "AMND", name: "Amendment" }, { code: "AMND", name: "Amendment" },
{ code: "CANC", name: "Cancellation" }, { code: "CANC", name: "Cancellation" },
{ code: "NEWT", name: "New Confirmation" }] { code: "NEWT", name: "New Confirmation" }]
} }
if (this.props.mty == 'mt320' || this.props.mty == 'mt360' || this.props.mty == 'mt620') { if (this.props.mty == 'mt320' || this.props.mty == 'mt360' || this.props.mty == 'mt620') {
Purpose = ['AMND', 'CANC', 'DUPL', 'NEWT']
Purpose1 = [ Purpose1 = [
{ code: "AMND", name: "Amendment" }, { code: "AMND", name: "Amendment" },
{ code: "CANC", name: "Cancellation" }, { code: "CANC", name: "Cancellation" },
{ code: "DUPL", name: "Duplicate" }, { code: "DUPL", name: "Duplicate" },
{ code: "NEWT", name: "New Confirmation" }] { code: "NEWT", name: "New Confirmation" }]
} }
if (this.props.mty == 'mt760' || this.props.mty == 'mt767'){ if (this.props.mty == 'mt760'){
Purpose1=[ Purpose1=[
{code:"ISSU",name:"Issuance of undertaking"},
{code:"ISCO",name:"Issuance of counter-undertaking"},
{code:"ADVI",name:"Advice of issued undertaking"},
{code:"ACNF",name:"Advice and confirm of issued undert"}, {code:"ACNF",name:"Advice and confirm of issued undert"},
{code:"ICCO",name:"Issuance of counter-counter-undert."}] {code:"ADVI",name:"Advice of issued undertaking"},
{code:"ICCO",name:"Issuance of counter-counter-undert."},
{code:"ISCO",name:"Issuance of counter-undertaking"},
{code:"ISSU",name:"Issuance of undertaking"}
]
}
if (this.props.mty == 'mt767'){
Purpose1=[
{code:"ACNA",name:"Advice and confirmation of amendment to issued undertaking"},
{code:"ADVA",name:"Advice of amendment to issued undertaking"},
{code:"ICCA",name:"Issuance of amendment to issued counter counter-undertaking."},
{code:"ISCA",name:"Issuance of amendment to issued counter-undertaking."},
{code:"ISUA",name:"Issuance of amendment to issued undertaking"}]
} }
return (<Row> return (<Row>
<Col span={10}> <Col span={15}>
<FormItem <FormItem
help={errmsg.s1} help={errmsg.s1}
validateStatus={errmsg.s1?'error':null} validateStatus={errmsg.s1?'error':null}
> >
<Select size={InputSize} <Select size={InputSize}
placeholder={this.props.desp} placeholder={this.props.desp}
showSearch showSearch
allowClear={true} allowClear={true}
...@@ -81,11 +86,11 @@ export default class T22A extends Component ...@@ -81,11 +86,11 @@ export default class T22A extends Component
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(val)} > style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(val)} >
{ {
Purpose1.map(item=><Option key={item.code} value={item.code}>{item.code+'-'+item.name}</Option>) Purpose1.map(item=><Option key={item.code} value={item.code}>{item.code+'-'+item.name}</Option>)
} }
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
</Row>) </Row>)
} }
} }
\ No newline at end of file
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