Commit abd98e7e by fukai

修改第二次缺陷

parent 9f3b18e0
...@@ -103,11 +103,11 @@ export function TagV(tag,status,value,tno,mty,t111,seqlist,countMap={}) ...@@ -103,11 +103,11 @@ export function TagV(tag,status,value,tno,mty,t111,seqlist,countMap={})
} }
else if(mty == "mt760"){ else if(mty == "mt760"){
if(tag == 'T77U' || tag == 'T77L') if(tag == 'T77U' || tag == 'T77L')
line_temp = 500 line_temp = 1200
} }
else if(mty == "mt767"){ else if(mty == "mt767"){
if(tag == 'T77U' || tag == 'T77L') if(tag == 'T77U' || tag == 'T77L')
line_temp = 500 line_temp = 1200
} }
errmsg[key]=TestAdr(val,reg.reg,line_temp,reg.length) errmsg[key]=TestAdr(val,reg.reg,line_temp,reg.length)
continue continue
...@@ -152,11 +152,11 @@ export function TagV(tag,status,value,tno,mty,t111,seqlist,countMap={}) ...@@ -152,11 +152,11 @@ export function TagV(tag,status,value,tno,mty,t111,seqlist,countMap={})
} }
else if(mty == "mt760"){ else if(mty == "mt760"){
if(tag == 'T77U' || tag == 'T77L') if(tag == 'T77U' || tag == 'T77L')
line_temp = 500 line_temp = 1200
} }
else if(mty == "mt767"){ else if(mty == "mt767"){
if(tag == 'T77U' || tag == 'T77L') if(tag == 'T77U' || tag == 'T77L')
line_temp = 500 line_temp = 1200
} }
errmsg[key]=TestAdr(val,reg.reg,line_temp,reg.length) errmsg[key]=TestAdr(val,reg.reg,line_temp,reg.length)
continue continue
......
...@@ -56,17 +56,25 @@ export default class T22A extends Component ...@@ -56,17 +56,25 @@ export default class T22A extends Component
{ 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:"ACNF",name:"Advice and confirmation of issued undertaking"},
{code:"ISCO",name:"Issuance of counter-undertaking"},
{code:"ADVI",name:"Advice of issued undertaking"}, {code:"ADVI",name:"Advice of issued undertaking"},
{code:"ACNF",name:"Advice and confirm of issued undert"}, {code:"ICCO",name:"Issuance of counter-counter-undertaking and request to issue counter-undertaking"},
{code:"ICCO",name:"Issuance of counter-counter-undert."}] {code:"ISCO",name:"Issuance of counter-undertaking and request to issue local 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 and/or request to issue amendment to counter-undertaking and local undertaking"},
{code:"ISCA",name:"Issuance of amendment to issued counter-undertaking and/or request to issue amendment to local undertaking"},
{code:"ISUA",name:"Issuance of amendment to issued undertaking"}]
}
return (<Row> return (<Row>
<Col span={10}> <Col span={24}>
<FormItem <FormItem
help={errmsg.s1} help={errmsg.s1}
......
...@@ -27,6 +27,24 @@ export default class T23H extends Component ...@@ -27,6 +27,24 @@ export default class T23H 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 codes = [
{code:"CLSVCLOS",name:"Closing of a service call by Trade Operations"},
{code:"CLSVOPEN",name:"Opening of a service call by Trade Operations"},
{code:"FRAUDMSG",name:"Advice of a fraud attempt"},
{code:"GENINFAD",name:"General information advice"},
{code:"ISSAMEND",name:"Amendment of a free-form undertaking such as a dependent guarantee"},
{code:"ISSUANCE",name:"Issue of a free-form undertaking such as a dependent guarantee"},
{code:"OTHERFNC",name:"Other request"},
{code:"PREDENOT",name:"Pre-debit notification"},
{code:"REIMBURS",name:"Request related to a reimbursement"},
{code:"REQAMEND",name:"Request to amend an undertaking"},
{code:"REQFINAN",name:"Financing request"},
{code:"REQISSUE",name:"Request to issue an undertaking"},
{code:"REXTMATU",name:"Request to change the letter of credit maturity date"},
{code:"TRANSFER",name:"Transfer of a undertaking"}
]
return (<Row> return (<Row>
<Col span={18}> <Col span={18}>
<FormItem <FormItem
...@@ -41,21 +59,9 @@ export default class T23H extends Component ...@@ -41,21 +59,9 @@ export default class T23H 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="CLSVCLOS">CLSVCLOS-Closing of service</Option> {
<Option value="CLSVOPEN">CLSVOPEN-Opening of service</Option> codes.map(item=><Option key={item.code} value={item.code}>{item.code+'-'+item.name}</Option>)
<Option value="FRAUDMSG">FRAUDMSG-Advice of a fraud attempt</Option> }
<Option value="GENINFAD">GENINFAD-General information advice</Option>
<Option value="ISSAMEND">ISSAMEND-Amendment of a free-form</Option>
<Option value="ISSUANCE">ISSUANCE-Issue of a free-form</Option>
<Option value="OTHERFNC">OTHERFNC-Other request</Option>
<Option value="PREDENOT">PREDENOT-Pre-debit notification</Option>
<Option value="REIMBURS">REIMBURS-Request related to a reimbursement</Option>
<Option value="REQAMEND">REQAMEND-Request to amend an undertaking</Option>
<Option value="REQFINAN">REQFINAN-Financing request</Option>
<Option value="REQISSUE">REQISSUE-Request to issue an undertaking</Option>
<Option value="TRANSFER">TRANSFER-Transfer of a undertaking</Option>
<Option value="REXTMATU">REXTMATU-Request to extend the maturity date</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
......
...@@ -27,6 +27,14 @@ export default class T77L extends Component ...@@ -27,6 +27,14 @@ export default class T77L 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 rows = 150
if(this.props.mty=='mt760'){
rows = 500
}
else if(this.props.mty=='mt767'){
rows = 1200
}
return (<Row> return (<Row>
<Col span={24}> <Col span={24}>
<FormItem <FormItem
...@@ -34,7 +42,7 @@ export default class T77L extends Component ...@@ -34,7 +42,7 @@ export default class T77L extends Component
validateStatus={errmsg.s1?'error':null} validateStatus={errmsg.s1?'error':null}
> >
<TextArea type= "textarea" maxLength={this.props.mty=='mt767' || this.props.mty=='mt760' ?65*500:65*150} cols={65} rows={10} style={{imeMode:'disabled'}} placeholder="Narrative" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/> <TextArea type= "textarea" maxLength={65*rows} cols={65} rows={rows>150?15:10} style={{imeMode:'disabled'}} placeholder="Narrative" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/>
</FormItem> </FormItem>
</Col> </Col>
......
...@@ -28,6 +28,14 @@ export default class T77U extends Component ...@@ -28,6 +28,14 @@ export default class T77U 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 rows = 150
if(this.props.mty=='mt760'){
rows = 1200
}
else if(this.props.mty=='mt767'){
rows = 1200
}
return (<Row> return (<Row>
<Col span={24}> <Col span={24}>
<FormItem <FormItem
...@@ -35,7 +43,7 @@ export default class T77U extends Component ...@@ -35,7 +43,7 @@ export default class T77U extends Component
validateStatus={errmsg.s1?'error':null} validateStatus={errmsg.s1?'error':null}
> >
<TextArea type= "textarea" maxLength={this.props.mty=='mt767' || this.props.mty=='mt760' ?65*500:65*150} cols={65} rows={10} style={{imeMode:'disabled'}} placeholder="Narrative" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/> <TextArea type= "textarea" maxLength={65*rows} cols={65} rows={rows>150?15:10} style={{imeMode:'disabled'}} placeholder="Narrative" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/>
</FormItem> </FormItem>
</Col> </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