index.js 12.9 KB
Newer Older
孟冬雪 committed
1 2
import Api from "~/service/Api"
import Pts from "../Common/Pts"
3
import Pub from "../Public"
孟冬雪 committed
4

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
export default class Lttame {
	constructor() {
		this.data = {
			ledgrp: {
				rec: {
					ownref: "",			//  Reference		.ledgrp.rec.ownref
					nam: "",			//  Name		.ledgrp.rec.nam
					avbby: "",			//  Available by [AVBBY0]		.ledgrp.rec.avbby
					redclsflg: "",			//  Red/Green Clause		.ledgrp.rec.redclsflg
					opndat: "",			//  Date Issued		.ledgrp.rec.opndat
					shpdat: "",			//  Shipment Date		.ledgrp.rec.shpdat
					expdat: "",			//  Date/Place of Expiry		.ledgrp.rec.expdat
					expplc: "",			//  Date/Place of Expiry		.ledgrp.rec.expplc
					lcrtyp: "",			//  Form of L/C		.ledgrp.rec.lcrtyp
					revflg: "",			//  Revolving Flag		.ledgrp.rec.revflg
				},
				cbs: {
					nom1: {
						cur: "",			//  L/C Amount		.ledgrp.cbs.nom1.cur
						amt: "",			//  Balance		.ledgrp.cbs.nom1.amt
					},
					opn1: {
						cur: "",			//  Open Amount		.ledgrp.cbs.opn1.cur
						amt: "",			//  Balance		.ledgrp.cbs.opn1.amt
					},
				},
				apl: {
					pts: new Pts().data,
				},
				iss: {
					pts: new Pts().data,
				},
				ben: {
					pts: new Pts().data,
				},
				avbnam: "",			//  Available with		.ledgrp.avbnam
			},
			lttp: {
				ledget: {
					sdamod: {
						seainf: "",			//  Reference of L/C		.lttp.ledget.sdamod.seainf
						dadsnd: "",			//  Drag  Drop Sender		.lttp.ledget.sdamod.dadsnd
					},
				},
				recget: {
					sdamod: {
						dadsnd: "",			//  Drag  Drop Sender		.lttp.recget.sdamod.dadsnd
						seainf: "",			//  Reference		.lttp.recget.sdamod.seainf
					},
				},
				usr: {
					extkey: "",			//  Responsible User		.lttp.usr.extkey
				},
				usrget: {
					sdamod: {
						seainf: "",			//  		.lttp.usrget.sdamod.seainf
					},
				},
				aamp: {
					aammod: {
						addamtflg: "",			//  Add. Amount		.lttp.aamp.aammod.addamtflg
					},
				},
				be1p: {
					ptsget: {
						sdamod: {
							dadsnd: "",			//  Drag  Drop Sender		.lttp.be1p.ptsget.sdamod.dadsnd
							seainf: "",			//  		.lttp.be1p.ptsget.sdamod.seainf
孟冬雪 committed
73
						},
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
					},
				},
				adtp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.adtp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.adtp.ptsget.sdamod.dadsnd
						},
					},
				},
				be2p: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.be2p.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.be2p.ptsget.sdamod.dadsnd
						},
					},
				},
				a2tp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.a2tp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.a2tp.ptsget.sdamod.dadsnd
						},
					},
				},
				rmtp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.rmtp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.rmtp.ptsget.sdamod.dadsnd
孟冬雪 committed
105
						},
106 107 108 109 110 111 112
					},
				},
				avtp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.avtp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.avtp.ptsget.sdamod.dadsnd
孟冬雪 committed
113
						},
114 115 116 117 118 119 120 121 122 123
					},
				},
				ptsaddp: {
					ptsaddg: [],			//  		.lttp.ptsaddp.ptsaddg
				},
				conp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.conp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.conp.ptsget.sdamod.dadsnd
孟冬雪 committed
124
						},
125 126 127 128 129 130 131
					},
				},
				drwp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.drwp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.drwp.ptsget.sdamod.dadsnd
孟冬雪 committed
132
						},
133 134 135 136 137 138 139
					},
				},
				labdefdet: "",			//  DEFDAT LAbel		.lttp.labdefdet
				letp0: {
					recget: {
						sdamod: {
							dadsnd: "",			//  Drag  Drop Sender		.lttp.letp0.recget.sdamod.dadsnd
孟冬雪 committed
140
						},
141 142 143 144 145 146 147 148 149 150 151 152 153
					},
					aammod: {
						addamtflg: "",			//  Add. Amount		.lttp.letp0.aammod.addamtflg
					},
					cnftxt: "",			//  Confirmation text		.lttp.letp0.cnftxt
				},
				leltb2b: {
					litb2bstm: "",			//  Streamgrid of other L/Cs backed by B2B LE		.lttp.leltb2b.litb2bstm
				},
				totamt: "",			//  Total Amount		.lttp.totamt
				rmbnar: "",			//  MT747 :77A:		.lttp.rmbnar
				charia:{
					buttxmsel:"",
孟冬雪 committed
154
				}
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
			},
			ltdgrp: {
				rec: {
					ownref: "",			//  Reference		.ltdgrp.rec.ownref
					nam: "",			//  Name		.ltdgrp.rec.nam
					lcrtyp: "",			//  Form of Transfer		.ltdgrp.rec.lcrtyp
					nomtop: "",			//  Amount Tolerance +/-		.ltdgrp.rec.nomtop
					nomton: "",			//  Amount Tolerance - Negative		.ltdgrp.rec.nomton
					nomspc: "",			//  Amount Specification		.ltdgrp.rec.nomspc
					opndat: "",			//  Issued on		.ltdgrp.rec.opndat
					shpdat: "",			//  Shipment Date		.ltdgrp.rec.shpdat
					expdat: "",			//  Date of Expiry		.ltdgrp.rec.expdat
					expplc: "",			//  Place of Expiry		.ltdgrp.rec.expplc
					shppar: "",			//  Partial Shipment		.ltdgrp.rec.shppar
					shptrs: "",			//  Transhipment		.ltdgrp.rec.shptrs
					apprul: "",			//  Applicable Rules		.ltdgrp.rec.apprul
					apprultxt: "",			//  Other Applicable Rules		.ltdgrp.rec.apprultxt
					cnfins: "",			//  Confirmation Instruct.		.ltdgrp.rec.cnfins
					rmbflg: "",			//  Reimbursement Information		.ltdgrp.rec.rmbflg
					shppars18: "",			//  Partial Shipment		.ltdgrp.rec.shppars18
					shptrss18: "",			//  Transhipment		.ltdgrp.rec.shptrss18
					avbwth: "",			//  Available with		.ltdgrp.rec.avbwth
					avbby: "",			//  Available by		.ltdgrp.rec.avbby
					shpfro: "",			//  Dispatch from		.ltdgrp.rec.shpfro
					porloa: "",			//  Air-/Port of Departure		.ltdgrp.rec.porloa
					pordis: "",			//  Air-/Port of Destination		.ltdgrp.rec.pordis
					shpto: "",			//  Final Destination		.ltdgrp.rec.shpto
					chato: "",			//  Own Charges Borne by		.ltdgrp.rec.chato
					stacty: "",			//  Country Code Risk Country		.ltdgrp.rec.stacty
					tenmaxday: "",			//  Maximum tenor in days		.ltdgrp.rec.tenmaxday
					prepers18: "",			//  Days of presentation period		.ltdgrp.rec.prepers18
					prepertxts18: "",			//  Presentation period text		.ltdgrp.rec.prepertxts18
					redclsflg: "",			//  Red/Green Clause?		.ltdgrp.rec.redclsflg
					spcrcbflg: "",			//  Special Payment Conditions for specified Bank only		.ltdgrp.rec.spcrcbflg
					spcbenflg: "",			//  Special payment conditions for beneficiary exists		.ltdgrp.rec.spcbenflg
					rmbact: "",			//  Reimbursing Bank Account Identification		.ltdgrp.rec.rmbact
					rmbcha: "",			//  Charges Definition		.ltdgrp.rec.rmbcha
					apprulrmb: "",			//  Applicable Rules RMB		.ltdgrp.rec.apprulrmb
					autdat: "",			//  Date of Authorisation to Reimburse		.ltdgrp.rec.autdat
				},
				cbs: {
					nom1: {
						cur: "",			//  Total Amendment		.ltdgrp.cbs.nom1.cur
						amt: "",			//  Nominal Amount		.ltdgrp.cbs.nom1.amt
					},
					max: {
						cur: "",			//  Currency		.ltdgrp.cbs.max.cur
						amt: "",			//  Maximum Amount		.ltdgrp.cbs.max.amt
					},
					max2: {
						cur: "",			//  Additional Amount		.ltdgrp.cbs.max2.cur
						amt: "",			//  Additional Amount		.ltdgrp.cbs.max2.amt
					},
					opn2: {
						cur: "",			//  Open Add. Amount		.ltdgrp.cbs.opn2.cur
						amt: "",			//  Open Add. Amount		.ltdgrp.cbs.opn2.amt
					},
					opn1: {
						amt: "",			//  This L/C		.ltdgrp.cbs.opn1.amt
					},
				},
				be1: {
					pts: new Pts().data,
				},
				adt: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.adt.namelc
					adrelc: "",			//  地址		.ltdgrp.adt.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.adt.dbfadrblkcn
				},
				be2: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.be2.namelc
					adrelc: "",			//  地址		.ltdgrp.be2.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.be2.dbfadrblkcn
				},
				blk: {
					addamtcov: "",			//  Covered		.ltdgrp.blk.addamtcov
					avbwthtxt: "",			//  Available in		.ltdgrp.blk.avbwthtxt
					defdet: "",			//  Deferred Payment Details		.ltdgrp.blk.defdet
					dftat: "",			//  Drafts at		.ltdgrp.blk.dftat
					shpper: "",			//  Shipment Period		.ltdgrp.blk.shpper
					mixdet: "",			//  Mixed Payment Details		.ltdgrp.blk.mixdet
					preper: "",			//  Presentation Period		.ltdgrp.blk.preper
					preperflg: "",			//  Presentation Period modified		.ltdgrp.blk.preperflg
					feetxt: "",			//  Additional Details to Code for Charges CHATO		.ltdgrp.blk.feetxt
					lcrgod: "",			//  Description of Goods		.ltdgrp.blk.lcrgod
					lcrgodame: "",			//  Description of Goods Amendment		.ltdgrp.blk.lcrgodame
					lcrdoc: "",			//  Documents Required		.ltdgrp.blk.lcrdoc
					lcrdocame: "",			//  Documents Required Amendment		.ltdgrp.blk.lcrdocame
					adlcnd: "",			//  Additional Conditions		.ltdgrp.blk.adlcnd
					adlcndame: "",			//  Additional  Conditions Amendment		.ltdgrp.blk.adlcndame
					spcben: "",			//  Special Payment Conditions for Beneficiary		.ltdgrp.blk.spcben
					spcbename: "",			//  Special payment Conditions for beneficiary History		.ltdgrp.blk.spcbename
					spcrcb: "",			//  Special Payment Conditions for Bank Only		.ltdgrp.blk.spcrcb
					spcrcbame: "",			//  Special Payment Conditions for Bank Only History		.ltdgrp.blk.spcrcbame
					rmbcha: "",			//  Other Charges		.ltdgrp.blk.rmbcha
					insbnk: "",			//  Instructions to Paying/Accepting/Negotiating Bank		.ltdgrp.blk.insbnk
				},
				a2t: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.a2t.namelc
					adrelc: "",			//  地址		.ltdgrp.a2t.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.a2t.dbfadrblkcn
				},
				rmt: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.rmt.namelc
					adrelc: "",			//  地址		.ltdgrp.rmt.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.rmt.dbfadrblkcn
				},
				avt: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.avt.namelc
					adrelc: "",			//  地址		.ltdgrp.avt.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.avt.dbfadrblkcn
				},
				con: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.con.namelc
					adrelc: "",			//  地址		.ltdgrp.con.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.con.dbfadrblkcn
				},
				drw: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.drw.namelc
					adrelc: "",			//  地址		.ltdgrp.drw.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.drw.dbfadrblkcn
				},
			},
			lttamep: {
				recget: {
					sdamod: {
						seainf: "",			//  		.lttamep.recget.sdamod.seainf
						dadsnd: "",			//  Drag  Drop Sender		.lttamep.recget.sdamod.dadsnd
					},
				},
				amenbr: "",			//  Current Amendm. No.		.lttamep.amenbr
				engamt: "",			//  change of engagement:		.lttamep.engamt
				maxamt: "",			//  New Maximum Amount		.lttamep.maxamt
				ramrol: "",			//  Send Request to		.lttamep.ramrol
				benconflg: "",			//  Beneficiary's Confirmation Required		.lttamep.benconflg
				lcrgodamep: {
					modflg: "",			//  Modify Text to Replace		.lttamep.lcrgodamep.modflg
					modmanflg: "",			//  Modify field for manual update		.lttamep.lcrgodamep.modmanflg
					usrblk: "",			//  Block to enter additional info for Add/Delete		.lttamep.lcrgodamep.usrblk
				},
				lcrdocamep: {
					modflg: "",			//  Modify Text to Replace		.lttamep.lcrdocamep.modflg
					modmanflg: "",			//  Modify field for manual update		.lttamep.lcrdocamep.modmanflg
					usrblk: "",			//  Block to enter additional info for Add/Delete		.lttamep.lcrdocamep.usrblk
				},
				adlcndamep: {
					usrblk: "",			//  Block to enter additional info for Add/Delete		.lttamep.adlcndamep.usrblk
					modflg: "",			//  Modify Text to Replace		.lttamep.adlcndamep.modflg
					modmanflg: "",			//  Modify field for manual update		.lttamep.adlcndamep.modmanflg
				},
				spcbenamep: {
					modflg: "",			//  Modify Text to Replace		.lttamep.spcbenamep.modflg
					modmanflg: "",			//  Modify field for manual update		.lttamep.spcbenamep.modmanflg
					usrblk: "",			//  Block to enter additional info for Add/Delete		.lttamep.spcbenamep.usrblk
				},
				spcrcbamep: {
					usrblk: "",			//  Block to enter additional info for Add/Delete		.lttamep.spcrcbamep.usrblk
					modflg: "",			//  Modify Text to Replace		.lttamep.spcrcbamep.modflg
					modmanflg: "",			//  Modify field for manual update		.lttamep.spcrcbamep.modmanflg
				},
			},
			oldltdgrp: {
				cbs: {
					nom1: {
						amt: "",			//  Original Data		.oldltdgrp.cbs.nom1.amt
					},
					max: {
						cur: "",			//  Currency		.oldltdgrp.cbs.max.cur
						amt: "",			//  Balance		.oldltdgrp.cbs.max.amt
					},
				},
				rec: {
					nomtop: "",			//  Amount Tolerance - Positive		.oldltdgrp.rec.nomtop
					nomton: "",			//  Amount Tolerance - Negative		.oldltdgrp.rec.nomton
					expdat: "",			//  Date of Expiry		.oldltdgrp.rec.expdat
					shpdat: "",			//  Shipment Date		.oldltdgrp.rec.shpdat
					prepers18: "",			//  Presentation Period		.oldltdgrp.rec.prepers18
					prepertxts18: "",			//  Presentation period text		.oldltdgrp.rec.prepertxts18
				},
			},
			pageId: "",			// ctx的key
			lttadvl1blk:"",
			lttbe2l1blk:"",
			lttbe1l1blk:"",
			lttrmtl1blk:"",
			lttrmtl2blk:"",
			trnmod: new Pub().data.Trnmod,
			setmod: new Pub().data.Setmod,
			liaall: new Pub().data.Liaall,
			mtabut: new Pub().data.Mtabut,
		}
	}
孟冬雪 committed
354
}