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

export default class Ditdla {
	constructor() {
		this.data = {
			didgrp: {
				rec: {
					ownref: "",			//  Reference		.didgrp.rec.ownref
					nam: "",			//  Externally Displayed Name to Identify the Contract		.didgrp.rec.nam
					avbby: "",			//  Available by		.didgrp.rec.avbby
					opndat: "",			//  Date L/C Opened/Issued		.didgrp.rec.opndat
					shpdat: "",			//  Shipment Date		.didgrp.rec.shpdat
					expdat: "",			//  Date of Expiry		.didgrp.rec.expdat
					expplc: "",			//  Place of Expiry		.didgrp.rec.expplc
					lcrtyp: "",			//  Form of Documentary Credit		.didgrp.rec.lcrtyp
					tzref: "",			//  通知行编号		.didgrp.rec.tzref
					resflg: "",			//  Reserved Contract		.didgrp.rec.resflg
					nomtop: "",			//  Amount Tolerance - Positive		.didgrp.rec.nomtop
					nomton: "",			//  Amount Tolerance - Negative		.didgrp.rec.nomton
					elcflg: "",			//  是否通过电证系统		.didgrp.rec.elcflg
					guaflg: "",			//  货押标识		.didgrp.rec.guaflg
					jyqflg: "",			//  假远期信用证		.didgrp.rec.jyqflg
					mytype: "",			//  槸易类型		.didgrp.rec.mytype
					dkflg: "",			//  开证类型		.didgrp.rec.dkflg
					idcode: "",			//  申请人统一社会信用代码		.didgrp.rec.idcode
					shppar: "",			//  Partial Shipment		.didgrp.rec.shppar
					shptrs: "",			//  Transshipment		.didgrp.rec.shptrs
					conno: "",			//  合同编号		.didgrp.rec.conno
					concur: "",			//  合同币种		.didgrp.rec.concur
					shpfro: "",			//  Shipment from		.didgrp.rec.shpfro
					shpto: "",			//  For Transportation to		.didgrp.rec.shpto
					shppro: "",			//  服务提供地点		.didgrp.rec.shppro
					tenmaxday: "",			//  Maximum tenor in days		.didgrp.rec.tenmaxday
					tratyp: "",			//  运输方式		.didgrp.rec.tratyp
					fqtime: "",			//  分期时镧表		.didgrp.rec.fqtime
					sdsrfs: "",			//  输入运输方式		.didgrp.rec.sdsrfs
					fqzytgfw: "",			//  分期装运/提供服务		.didgrp.rec.fqzytgfw
					conamt: "",			//  合同金额		.didgrp.rec.conamt
					redclsflg: "",			//  Red/Green Clause		.didgrp.rec.redclsflg
					avbwth: "",			//  指定的有关银行  		.didgrp.rec.avbwth
					fenctg: "",			//  是否可议付		.didgrp.rec.fenctg
					bdflg: "",			//  是否可保兑		.didgrp.rec.bdflg
				},
				cbs: {
					nom1: {
						cur: "",			//  Currency		.didgrp.cbs.nom1.cur
						amt: "",			//  信用证金额		.didgrp.cbs.nom1.amt
					},
					opn1: {
						cur: "",			//  信用证余额		.didgrp.cbs.opn1.cur
						amt: "",			//  信用证余额		.didgrp.cbs.opn1.amt
					},
					max: {
						cur: "",			//  Currency		.didgrp.cbs.max.cur
						amt: "",			//  信用证最大金额		.didgrp.cbs.max.amt
					},
				},
				avbnam: "",			//  指定银行		.didgrp.avbnam
				apl: {
					pts: new Pts().data,
					namelc: "",			//  名称		.didgrp.apl.namelc
					adrelc: "",			//  地址		.didgrp.apl.adrelc
					dbfadrblkcn: "",			//  Chinese address		.didgrp.apl.dbfadrblkcn
				},
				ben: {
					pts: new Pts().data,
					namelc: "",			//  名称		.didgrp.ben.namelc
					adrelc: "",			//  地址		.didgrp.ben.adrelc
					dbfadrblkcn: "",			//  Chinese address		.didgrp.ben.dbfadrblkcn
				},
				adv: {
					pts: new Pts().data,
				},
				beb: {
					pts: new Pts().data,
				},
				apb: {
					pts: new Pts().data,
				},
				blk: {
					defdet: "",			//  Deferred Payment Details		.didgrp.blk.defdet
					preper: "",			//  Presentation Period		.didgrp.blk.preper
					preperflg: "",			//  Presentation Period modified		.didgrp.blk.preperflg
					lcrgod: "",			//  Description of Goods		.didgrp.blk.lcrgod
					lcrdoc: "",			//  Documents Required		.didgrp.blk.lcrdoc
					adlcnd: "",			//  Additional Conditions		.didgrp.blk.adlcnd
					insbnk: "",			//  Instructions to Paying/Accepting/Negotiating Bank		.didgrp.blk.insbnk
					lcrgodame: "",			//  Description of Goods Amendment History		.didgrp.blk.lcrgodame
					lcrdocame: "",			//  Documents Required Amendment History		.didgrp.blk.lcrdocame
					adlcndame: "",			//  Additional  Conditions Amendment History		.didgrp.blk.adlcndame
					insbnkame: "",			//  Instructions to P/A/N Amendment History		.didgrp.blk.insbnkame
					stamet: "",			//  声明		.didgrp.blk.stamet
				},
				iss: {
					pts: new Pts().data,
				},
				apc: {
					pts: new Pts().data,
				},
				avb: {
					pts: new Pts().data,
				},
				cmb: {
					pts: new Pts().data,
				},
				rmb: {
					pts: new Pts().data,
				},
			},
			decstm: "",			//  Decrease limits stream		.decstm
			amenbr: "",			//  Amendment No.		.amenbr
			amedat: "",			//  Amount Amend Date		.amedat
			amecur: "",			//  Amount Amend Cur		.amecur
			ameamt: "",			//  修改金额		.ameamt
			ameflg: "",			//  是否接受此笔减额修改		.ameflg
			ditamep: {
				ramrollab: "",			//  Label for RAMROL		.ditamep.ramrollab
				recget: {
					sdamod: {
						seainf: "",			//  参考号		.ditamep.recget.sdamod.seainf
						dadsnd: "",			//  Drag  Drop Sender		.ditamep.recget.sdamod.dadsnd
					},
				},
				engcur: "",			//  修改总金额		.ditamep.engcur
				engamt: "",			//  修改总金额		.ditamep.engamt
				maxcur: "",			//  Currency of Maximum Amount		.ditamep.maxcur
				maxamt: "",			//  New Maximum Amount		.ditamep.maxamt
				cre707flg: "",			//  Create Amendment Message		.ditamep.cre707flg
				ramrol: "",			//  Request of Amendment send to		.ditamep.ramrol
				amenbr: "",			//  实际修改次数		.ditamep.amenbr
				hwzydi: "",			//  槧运装运地/服务提供低		.ditamep.hwzydi
				zchday: "",			//  最迟装运/服务提供日		.ditamep.zchday
				newday: "",			//  新最迟日期		.ditamep.newday
				msgtyp: "",			//  报文类型		.ditamep.msgtyp
				hfmdes: "",			//  槧物/服务槸易描述		.ditamep.hfmdes
			},
			// trnmod: {
			// 	swiadd: {
			// 		amedat: "",			//  修改日期		.trnmod.swiadd.amedat
			// 		amenbr: "",			//  修改次数		.trnmod.swiadd.amenbr
			// 		amecur: "",			//  增减金额		.trnmod.swiadd.amecur
			// 		ameamt: "",			//  增减金额		.trnmod.swiadd.ameamt
			// 		newcur: "",			//  修改后金额		.trnmod.swiadd.newcur
			// 		newamt: "",			//  修改后金额		.trnmod.swiadd.newamt
			// 		newexpdat: "",			//  新到期日		.trnmod.swiadd.newexpdat
			// 		newshpdat: "",			//  New Shipmentdate		.trnmod.swiadd.newshpdat
			// 		shptoelc: "",			//  货物目的地/交货地(港)		.trnmod.swiadd.shptoelc
			// 		shpfroelc: "",			//  Shipment from		.trnmod.swiadd.shpfroelc
			// 		newnomtopame: "",			//  New positive tolerance for GNZ		.trnmod.swiadd.newnomtopame
			// 		newnomtoname: "",			//  New negative tolerance for GNZ		.trnmod.swiadd.newnomtoname
			// 		nartxt: "",			//  Narrative		.trnmod.swiadd.nartxt
			// 		nartxtflg: "",			//  Narrative modified		.trnmod.swiadd.nartxtflg
			// 		lcrgod: "",			//  Description of Goods amendment		.trnmod.swiadd.lcrgod
			// 		lcrdoc: "",			//  Documents Required amendment		.trnmod.swiadd.lcrdoc
			// 		adlcnd: "",			//  Additional Conditions amendment		.trnmod.swiadd.adlcnd
			// 		insbnk: "",			//  Instruction to P/A/N Bank amendment		.trnmod.swiadd.insbnk
			// 	},
			// 	trndoc: {
			// 		advlabel: "",			//  ADVLABEL		.trnmod.trndoc.advlabel
			// 		amdnam: "",			//  AMDNAM		.trnmod.trndoc.amdnam
			// 		advdoc: "",			//  国内证通知书		.trnmod.trndoc.advdoc
			// 		advnam: "",			//  国内证落款		.trnmod.trndoc.advnam
			// 		amdapl: "",			//  修改申请人名称		.trnmod.trndoc.amdapl
			// 		doclbl: "",			//  Lable for CONDOCSTM		.trnmod.trndoc.doclbl
			// 		doctrestm: "",			//  Document tree		.trnmod.trndoc.doctrestm
			// 		shwinc: "",			//  Show Incoming Messages		.trnmod.trndoc.shwinc
			// 		shwout: "",			//  Show Outgoing Messages		.trnmod.trndoc.shwout
			// 		condocstm: "",			//  Connected Documents		.trnmod.trndoc.condocstm
			// 		rcvatt: {
			// 			seainf: "",			//  		.trnmod.trndoc.rcvatt.seainf
			// 		},
			// 		filrecv: "",			//  File Receiver		.trnmod.trndoc.filrecv
			// 	},
			// },
			olddidgrp: {
				cbs: {
					nom1: {
						amt: "",			//  信用证金额		.olddidgrp.cbs.nom1.amt
					},
					max: {
						cur: "",			//  Currency		.olddidgrp.cbs.max.cur
						amt: "",			//  Balance		.olddidgrp.cbs.max.amt
					},
				},
				rec: {
					nomtop: "",			//  Amount Tolerance - Positive		.olddidgrp.rec.nomtop
					nomton: "",			//  Amount Tolerance - Negative		.olddidgrp.rec.nomton
					expdat: "",			//  到期日		.olddidgrp.rec.expdat
					shpdat: "",			//  Shipment Date		.olddidgrp.rec.shpdat
				},
				blk: {
					narhis: "",			//  Historic Overview of Narratives		.olddidgrp.blk.narhis
				},
			},
			ditp: {
				recget: {
					sdamod: {
						seainf: "",			//  		.ditp.recget.sdamod.seainf
						dadsnd: "",			//  Drag  Drop Sender		.ditp.recget.sdamod.dadsnd
					},
				},
				usr: {
					extkey: "",			//  User ID		.ditp.usr.extkey
				},
				usrget: {
					sdamod: {
						seainf: "",			//  		.ditp.usrget.sdamod.seainf
					},
				},
				aplp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.ditp.aplp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.ditp.aplp.ptsget.sdamod.dadsnd
						},
					},
				},
				benp: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.ditp.benp.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.ditp.benp.ptsget.sdamod.dadsnd
						},
					},
				},
				zchday: "",			//  最迟装运/服务提供日		.ditp.zchday
				amt: "",			//  大写金额		.ditp.amt
				msgtyp: "",			//  报文类型		.ditp.msgtyp
				fenzhu: "",			//  分期装运		.ditp.fenzhu
				hwzydi: "",			//  槧运装运地/服务提供低		.ditp.hwzydi
				sdysfs: "",			//  手输运输方式/服务提供方式		.ditp.sdysfs
				hwfwms: "",			//  槧物/服务描述		.ditp.hwfwms
			},
			// liaall: {
			// 	liaccv: {
			// 		newamt: "",			//  合同金额		.liaall.liaccv.newamt
			// 		concur: "",			//  应付保证金金额		.liaall.liaccv.concur
			// 		totcovamt: "",			//  金额总和		.liaall.liaccv.totcovamt
			// 		newresamt: "",			//  Reserved Amount		.liaall.liaccv.newresamt
			// 		addinf: "",			//  Additional Information 		.liaall.liaccv.addinf
			// 		cshpct: "",			//  保证金应收比例		.liaall.liaccv.cshpct
			// 		relcshpct: "",			//  保证金实收比例		.liaall.liaccv.relcshpct
			// 		gleflg: "",			//  Create gle flag		.liaall.liaccv.gleflg
			// 		chgcurflg: "",			//  Change currency flag		.liaall.liaccv.chgcurflg
			// 		pctresamt: "",			//  reserve amount based percent		.liaall.liaccv.pctresamt
			// 	},
			// 	limmod: {
			// 		limpts: {
			// 			wrklab: "",			//  Label		.liaall.limmod.limpts.wrklab
			// 			othlab: "",			//  Label		.liaall.limmod.limpts.othlab
			// 			othlabss: "",			//  Label		.liaall.limmod.limpts.othlabss
			// 			wrk: {
			// 				pts: new Pts().data,
			// 			},
			// 			oth: {
			// 				pts: new Pts().data,
			// 			},
			// 			lsh: "",			//  合同流�'号		.liaall.limmod.limpts.lsh
			// 			nonrevflg1: "",			//  Flag to Mark Non-revolving Limits		.liaall.limmod.limpts.nonrevflg1
			// 			pfcod1: "",			//  合同流�'号		.liaall.limmod.limpts.pfcod1
			// 			nonrevflg2: "",			//  Flag to Mark Non-revolving Limits		.liaall.limmod.limpts.nonrevflg2
			// 			pfcod2: "",			//  合同流�'号		.liaall.limmod.limpts.pfcod2
			// 		},
			// 		wrkp: {
			// 			ptsget: {
			// 				sdamod: {
			// 					dadsnd: "",			//  Drag  Drop Sender		.liaall.limmod.wrkp.ptsget.sdamod.dadsnd
			// 					seainf: "",			//  		.liaall.limmod.wrkp.ptsget.sdamod.seainf
			// 				},
			// 			},
			// 		},
			// 		othp: {
			// 			ptsget: {
			// 				sdamod: {
			// 					dadsnd: "",			//  Drag  Drop Sender		.liaall.limmod.othp.ptsget.sdamod.dadsnd
			// 					seainf: "",			//  		.liaall.limmod.othp.ptsget.sdamod.seainf
			// 				},
			// 			},
			// 		},
			// 		ownref: "",			//  国结业务编号		.liaall.limmod.ownref
			// 		comamt: "",			//  业务余额		.liaall.limmod.comamt
			// 		ccvamt: "",			//  保证金余额		.liaall.limmod.ccvamt
			// 		ecifno: "",			//  ECIFNO		.liaall.limmod.ecifno
			// 	},
			// },
			// setmod: {
			// 	docamttyplab: "",			//  settled amount description as label		.setmod.docamttyplab
			// 	retmsg: "",			//  Label showing Retry overflow condition		.setmod.retmsg
			// 	ref: "",			//  our reference		.setmod.ref
			// 	doccur: "",			//  document currency		.setmod.doccur
			// 	docamt: "",			//  document amount		.setmod.docamt
			// 	dspflg: "",			//  Type of settlement		.setmod.dspflg
			// 	xreflg: "",			//  Recalculate Rates		.setmod.xreflg
			// 	setglg: {
			// 		labdspflg: "",			//  Label for Type of Settlement		.setmod.setglg.labdspflg
			// 	},
			// 	zmqacclab: "",			//  主�'�号LABEL		.setmod.zmqacclab
			// 	zmqacc: "",			//  自�'�区主�'�号		.setmod.zmqacc
			// },
			// mtabut: {
			// 	coninf: {
			// 		oitinf: {
			// 			labinftxt: "",			//  Label for INFTXT		.mtabut.coninf.oitinf.labinftxt
			// 			oit: {
			// 				inftxt: "",			//  Infotext		.mtabut.coninf.oitinf.oit.inftxt
			// 				inflev: "",			//  Infotext Level		.mtabut.coninf.oitinf.oit.inflev
			// 			},
			// 		},
			// 		oitset: {
			// 			labinftxt: "",			//  Label for INFTXT		.mtabut.coninf.oitset.labinftxt
			// 			oit: {
			// 				inftxt: "",			//  Infotext		.mtabut.coninf.oitset.oit.inftxt
			// 				inflev: "",			//  Infotext Level		.mtabut.coninf.oitset.oit.inflev
			// 			},
			// 		},
			// 		conexedat: "",			//  执行日期		.mtabut.coninf.conexedat
			// 		usr: {
			// 			extkey: "",			//  User ID		.mtabut.coninf.usr.extkey
			// 		},
			// 	},
			// },
			liaall: new Pub().data.Liaall,
			setmod: new Pub().data.Setmod,
			mtabut: new Pub().data.Mtabut,
			trnmod: new Pub().data.Trnmod,
			pageId: ""			// ctx的key
		}
	}
}