import Api from "~/service/Api"
import Pts from "../Common/Pts"

export default class Lttopn {
	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
					},
				},
				ptsaddp: {
					ptsaddg: [],
				},
				recget: {
					sdamod: {
						dadsnd: "",			//  Drag  Drop Sender		.lttp.recget.sdamod.dadsnd
						seainf: "",			//  		.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
						},
					},
				},
				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
						},
					},
				},
				avtp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.avtp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.avtp.ptsget.sdamod.dadsnd
						},
					},
				},
				drwp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.drwp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.drwp.ptsget.sdamod.dadsnd
						},
					},
				},
				labdefdet: "",			//  DEFDAT LAbel		.lttp.labdefdet
				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
						},
					},
				},
				conp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.lttp.conp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.lttp.conp.ptsget.sdamod.dadsnd
						},
					},
				},
				rmbnar: "",			//  MT747 :77A:		.lttp.rmbnar
				letp0: {
					recget: {
						sdamod: {
							dadsnd: "",			//  Drag  Drop Sender		.lttp.letp0.recget.sdamod.dadsnd
						},
					},
					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
			},
			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
					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
					redclsflg: "",			//  Red/Green Clause?		.ltdgrp.rec.redclsflg
					spcbenflg: "",			//  Special payment conditions for beneficiary exists		.ltdgrp.rec.spcbenflg
					spcrcbflg: "",			//  Special Payment Conditions for specified Bank only		.ltdgrp.rec.spcrcbflg
				},
				cbs: {
					nom1: {
						cur: "",			//  Nominal Amount		.ltdgrp.cbs.nom1.cur
						amt: "",			//  Nominal Amount		.ltdgrp.cbs.nom1.amt
					},
					max: {
						cur: "",			//  This L/C		.ltdgrp.cbs.max.cur
						amt: "",			//  Maximum Amount		.ltdgrp.cbs.max.amt
					},
					opn1: {
						amt: "",			//  Balance		.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
				},
				avt: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.avt.namelc
					adrelc: "",			//  地址		.ltdgrp.avt.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.avt.dbfadrblkcn
				},
				blk: {
					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
					rmbcha: "",			//  Other Charges		.ltdgrp.blk.rmbcha
					adlcnd: "",			//  Additional Conditions		.ltdgrp.blk.adlcnd
					insbnk: "",			//  Instructions to Pay.,		.ltdgrp.blk.insbnk
					lcrdoc: "",			//  Documents Required		.ltdgrp.blk.lcrdoc
				},
				drw: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.drw.namelc
					adrelc: "",			//  地址		.ltdgrp.drw.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.drw.dbfadrblkcn
				},
				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
				},
				con: {
					pts: new Pts().data,
					namelc: "",			//  名称		.ltdgrp.con.namelc
					adrelc: "",			//  地址		.ltdgrp.con.adrelc
					dbfadrblkcn: "",			//  Chinese address		.ltdgrp.con.dbfadrblkcn
				},
			},
			pageId: ""			// ctx的key
		}
	}
}