import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Litcan {
	constructor() {
		this.data = {
			cbsMap:{
				MAX:{
					cur:''
				}
			},
			sndmsg: '',
			lidgrp: {
				ghd:{
					segtyp:'',
				},
				rec: {
					inr:'',
					branchinr: '',
					ownref: '',			//  参考号		.lidgrp.rec.ownref
					nam: '',			//  名称		.lidgrp.rec.nam
					avbby: '',			//  兑付方式		.lidgrp.rec.avbby
					redclsflg: '',			//  Red/Green Clause		.lidgrp.rec.redclsflg
					opndat: '',			//  开立日期		.lidgrp.rec.opndat
					shpdat: '',			//  Shipment Date		.lidgrp.rec.shpdat
					expdat: '',			//  到期日		.lidgrp.rec.expdat
					expplc: '',			//  到期日		.lidgrp.rec.expplc
					lcrtyp: '',			//  信用证类型		.lidgrp.rec.lcrtyp
					revflg: '',			//  Revolving Flag		.lidgrp.rec.revflg
					advnam: '',
				},
				cbs: {
					nom1: {
						cur: '',			//  开证金额		.lidgrp.cbs.nom1.cur
						amt: '',			//  开证金额		.lidgrp.cbs.nom1.amt
					},
					opn1: {
						cur: '',			//  信用证余额		.lidgrp.cbs.opn1.cur
						amt: '',			//  Balance		.lidgrp.cbs.opn1.amt
					},
					max: {
						cur: '',			//  信用证余额		.lidgrp.cbs.opn1.cur
						amt: '',			//  Balance		.lidgrp.cbs.opn1.amt
					},
				},
				apl: {
					pts: new Pts().data,
				},
				ben: {
					pts: new Pts().data,
				},
				adv: {
					pts: new Pts().data,
				},
				avbnam: '',			//  指定银行		.lidgrp.avbnam
			},
			litp0: {
				aammod: {
					addamtflg: '',			//  Add. Amount		.litp0.aammod.addamtflg
				},
			},
			litcanf: {
				strinf: '',			//  Narrative		.litcanf.strinf
			},
			gcdgrp: {

				cbs: {
					opn1: {
						cur: '',
						amt: ''
					},
					max: {
						cur: '',
						amt: ''
					}
				},
				ben: {
					pts: new Pts().data,
				},
				apl: {
					pts: new Pts().data,
				},
				adv: {
					pts: new Pts().data,
				},
			},
			byinst: '',			//  On Applicant instruction		.byinst
			pageId: '',			// ctx的key
			setmod: new Pub().data.Setmod,
			mtabut: new Pub().data.Mtabut,
			trnmod: new Pub().data.Trnmod,
			liaall: new Pub().data.Liaall,
			liaccv: new Pub().data.Liaccv,
			docpan: new Pub().data.Docpan,
		}
	}
}