Commit 2f88e1c7 by jianglong

修复MT760 767 下拉选择项bug

parent 6fd3d783
...@@ -28,32 +28,43 @@ export default class T22A extends Component ...@@ -28,32 +28,43 @@ export default class T22A extends Component
value = value && value.length? value[0] : {} value = value && value.length? value[0] : {}
let Purpose = ['ACNF','ADVI','ISSU'] let Purpose = ['ACNF','ADVI','ISSU']
let Purpose1 = ['ACNF','ADVI','ISSU'] let Purpose1 = [
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'] Purpose = ['AMND', 'CANC', 'DUPL', 'EXOP', '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:"EXOP",name:"Option Exercise"}, { code: "EXOP", name: "Option Exercise" },
{code:"NEWT",name:"New Confirmation"}] { code: "NEWT", name: "New Confirmation" }]
if(this.props.mty == 'mt306') }
Purpose = ['AMND','CANC','NEWT'] if (this.props.mty == 'mt306') {
Purpose1 = [ Purpose = ['AMND', 'CANC', 'NEWT']
{code:"AMND",name:"Amendment"}, Purpose1 = [
{code:"CANC",name:"Cancellation"}, { code: "AMND", name: "Amendment" },
{code:"NEWT",name:"New Confirmation"}] { code: "CANC", name: "Cancellation" },
if(this.props.mty == 'mt320' || this.props.mty == 'mt360' || this.props.mty == 'mt620') { code: "NEWT", name: "New Confirmation" }]
Purpose = ['AMND','CANC','DUPL','NEWT'] }
Purpose1 = [ if (this.props.mty == 'mt320' || this.props.mty == 'mt360' || this.props.mty == 'mt620') {
{code:"AMND",name:"Amendment"}, Purpose = ['AMND', 'CANC', 'DUPL', 'NEWT']
{code:"CANC",name:"Cancellation"}, Purpose1 = [
{code:"DUPL",name:"Duplicate"}, { code: "AMND", name: "Amendment" },
{code:"NEWT",name:"New Confirmation"}] { code: "CANC", name: "Cancellation" },
{ code: "DUPL", name: "Duplicate" },
{ code: "NEWT", name: "New Confirmation" }]
}
if (this.props.mty == 'mt760' || this.props.mty == 'mt767'){
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:"ICCO",name:"Issuance of counter-counter-undert."}]
}
return (<Row> return (<Row>
<Col span={10}> <Col span={10}>
<FormItem <FormItem
......
...@@ -27,6 +27,38 @@ export default class T22D extends Component ...@@ -27,6 +27,38 @@ export default class T22D 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 = [
{code:"DGAR",name:"Demand guarantee"},
{code:"DOCR",name:"Documentary credit"},
{code:"STBY",name:"Standby letter of credit"},
{code:"UNDK",name:"Undertaking"}]
if (this.props.mty == 'mt760' || this.props.mty == 'mt767') {
Purpose = [
{code:"DEPU",name:"Dependent undertaking"},
{code:"DGAR",name:"Demand guarantee"},
{code:"STBY",name:"Standby letter of credit"}]
if (this.props.seqlist[0].seqlist){
if (this.props.seqlist[0].seqlist == "B"){
Purpose = [
{code:"DGAR",name:"Demand guarantee"},
{code:"STBY",name:"Standby letter of credit"}]
}
if (this.props.seqlist[0].seqlist == "C"){
Purpose = [
{code:"DEPU",name:"Dependent undertaking"},
{code:"DGAR",name:"Demand guarantee"},
{code:"STBY",name:"Standby letter of credit"}]
}
}
}
return (<Row> return (<Row>
<Col span={10}> <Col span={10}>
<FormItem <FormItem
...@@ -41,10 +73,10 @@ export default class T22D extends Component ...@@ -41,10 +73,10 @@ export default class T22D extends Component
optionFilterProp="children" optionFilterProp="children"
notFoundContent="Wrong Code" notFoundContent="Wrong Code"
style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(val)} > style={{ width: "100%" }} value={value.s1} onChange={val=>this.onChange(val)} >
<Option value="DGAR">DGAR-Demand guarantee</Option> {
<Option value="DOCR">DOCR-Documentary credit</Option> Purpose.map(item=><Option key={item.code} value={item.code}>{item.code+'-'+item.name}</Option>)
<Option value="STBY">STBY-Standby letter of credit</Option>
<Option value="UNDK">UNDK-Undertaking</Option> }
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
......
...@@ -26,6 +26,21 @@ export default class T23B extends Component ...@@ -26,6 +26,21 @@ export default class T23B 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 = [
{code:"CRED",name:"Normal credit transfer"},
{code:"CRTS",name:"Test message"},
{code:"SPAY",name:"SWIFTPay"},
{code:"SPRI",name:"Priority"},
{code:"SSTD",name:"Standard"}]
if (this.props.mty == 'mt760' || this.props.mty == 'mt767') {
Purpose = [
{code:"COND",name:"Expiry condition"},
{code:"FIXD",name:"Specified date of expiry"},
{code:"OPEN",name:"No specified date of expiry."}]
}
return (<Row> return (<Row>
<Col span={12}> <Col span={12}>
<FormItem <FormItem
...@@ -35,11 +50,10 @@ export default class T23B extends Component ...@@ -35,11 +50,10 @@ export default class T23B extends Component
<Select allowClear={true} <Select allowClear={true}
size={InputSize} placeholder="Bank Operation Code" value={value.s1} style={{ width: "100%" }} onChange={(val)=>this.onChange(val)}> size={InputSize} placeholder="Bank Operation Code" value={value.s1} style={{ width: "100%" }} onChange={(val)=>this.onChange(val)}>
<Option value="CRED"> CRED-Normal credit transfer</Option> {
<Option value="CRTS"> CRTS-Test message</Option> Purpose.map(item=><Option key={item.code} value={item.code}>{item.code+'-'+item.name}</Option>)
<Option value="SPAY"> SPAY-SWIFTPay</Option>
<Option value="SPRI"> SPRI-Priority</Option> }
<Option value="SSTD"> SSTD-Standard</Option>
</Select> </Select>
</FormItem> </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