Commit 97bf6b6c by s_guodong

MT710、MT720增加78D域

parent 815b9289
......@@ -42,9 +42,10 @@ const Tags = [
{tag:"58A",status:O,tno:38,letter:["58A","58D"],label:"Requested Confirmation Party"},
{tag:"53A",status:O,tno:39,letter:["53A","53D"],label:"Reimbursing Bank"},
{tag:"78",status:O,tno:40,letter:[],label:"Instructions to the Paying/Accepting/Negotiating Bank"},
{tag:"57A",status:O,tno:41,letter:["57A","57B","57D"],label:"'Advise Through' Bank"},
{tag:"72Z",status:O,tno:42,letter:[],label:"Sender to Receiver Information"}
{tag:"78D",status:O,tno:41,letter:[],label:"Instructions from Intermediary Bank"},
{tag:"57A",status:O,tno:42,letter:["57A","57B","57D"],label:"'Advise Through' Bank"},
{tag:"72Z",status:O,tno:43,letter:[],label:"Sender to Receiver Information"}
]
const Title="MT 710 Advice of a Third Bank's or a Non-Bank's Documentary Credit"
export default { Tags,Title}
\ No newline at end of file
export default { Tags,Title}
......@@ -39,9 +39,10 @@ const Tags = [
{tag:"49",status:M,tno:35,letter:[],label:"Confirmation Instructions"},
{tag:"58A",status:O,tno:36,letter:["58A","58D"],label:"Requested Confirmation Party"},
{tag:"78",status:O,tno:37,letter:[],label:"Instructions to the Paying/Accepting/Negotiating Bank"},
{tag:"57A",status:O,tno:38,letter:["57A","57B","57D"],label:"'Advise Through' Bank"},
{tag:"72Z",status:O,tno:39,letter:[],label:"Sender to Receiver Information"}
{tag:"78D",status:O,tno:38,letter:[],label:"Instructions from Intermediary Bank"},
{tag:"57A",status:O,tno:39,letter:["57A","57B","57D"],label:"'Advise Through' Bank"},
{tag:"72Z",status:O,tno:40,letter:[],label:"Sender to Receiver Information"}
]
const Title="MT 720 Transfer of a Documentary Credit"
export default { Tags,Title}
\ No newline at end of file
export default { Tags,Title}
......@@ -472,6 +472,7 @@ T17F:{"s1":{"reg":"[A-Z]{1}","line":1,"length":1,"fixed":false,"type":"a","optio
T77:{"s1":{"reg":"[\\w\\.,\\-\\(\\)/\u003d\u0027\\+:\\?!\"%\u0026\\*\\\u003c\\\u003e;\\{\\s@#]{0,35}","line":20,"length":35,"fixed":false,"type":"z","option":"M"}},
T17G:{"s1":{"reg":"[A-Z]{1}","line":1,"length":1,"fixed":false,"type":"a","option":"M"}},
T78:{"s1":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{0,65}","line":12,"length":65,"fixed":false,"type":"x","option":"M"}},
T78D:{"s1":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{0,65}","line":12,"length":65,"fixed":false,"type":"x","option":"M"}},
T29H:{"s1":{"reg":"[A-Z0-9]{4}","line":1,"length":4,"fixed":true,"type":"c","option":"M"}},
T17H:{"s1":{"reg":"[A-Z]{1}","line":1,"length":1,"fixed":false,"type":"a","option":"M"}},
T79:{"s1":{"reg":"[\\w/\\-\\?:\\(\\)\\.,\u0027+\\{\\} ]{0,50}","line":35,"length":50,"fixed":false,"type":"x","option":"M"}},
......
import React,{Component} from 'react'
import { Form, Input, DatePicker,Row, Col,Button,Icon ,Select} from 'antd';
import TextArea from './ZTextArea'
const FormItem = Form.Item;
export default class T78D extends Component
{
name='78D'
desp = "Instructions from Intermediary Bank"
pattern = ""
tno = -1
onChange=(val)=>{
this.props.onValue([{s1:val},val])
}
render()
{
let value =this.props.value
let mval = value && value.length? value[1] : ''
let errmsg = value && value.length==3?value[2]:{}
value = value && value.length? value[0] : {}
return (<Row>
<Col span={24}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<TextArea type= "textarea" maxLength={65*12} cols={65} rows={12} style={{imeMode:'disabled'}} placeholder="Narrative" value={value.s1} onChange={(e)=>this.onChange(e.target.value)}/>
</FormItem>
</Col>
</Row>)
}
}
......@@ -257,6 +257,7 @@ import T77T from "./T77T"
import T77L from "./T77L"
import T77U from "./T77U"
import T78 from "./T78"
import T78D from "./T78D"
import T79 from "./T79"
import T79Z from "./T79Z"
import T81A from './T81A'
......@@ -608,6 +609,7 @@ export default function(tag,props,onValue){
        case "T77L" :return <T77L   {...props}  onValue={onValue}   />;
        case "T77U" :return <T77U   {...props}  onValue={onValue}   />;
        case "T78"  :return <T78    {...props}  onValue={onValue}   />;
case "T78D" :return <T78D   {...props}  onValue={onValue}   />;
        case "T79"  :return <T79    {...props}  onValue={onValue}   />;
        case "T79Z" :return <T79Z   {...props}  onValue={onValue}   />;
        case "T81A" :return <T81A   {...props}  onValue={onValue}   />;
......
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