import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Ncdinf {
	constructor() {
		this.data = {
      dbCodes:{
        smhdir:[],
        cortyp:[],
        relflg:[],
      },
      cbbtyp : [],
      objtyp : "",
      objinr : "",
      trnShow:false,
      infcon:{
        ccvtotamt:"",
        ccvamt:{
          cur:"",
          amt:"",
        },
        ccvresamt:{
          cur:"",
          amt:"",
        },
        trs:{
          usr:"",
          dattim:"",
        },
        trn:{
          inr:"",
          ownref:"",
          objnam:"",
          reloricur:"",
          reloriamt:"",
          relflg:"",
          usr:"",
          usg:"",
          relreq:"",
          relres:"",
          cortrninr:"",
          exedat:"",
          inftxt:"",
          infdsp:"",
          inifrm:"",
        },
        trnstm:"",
        cbctxt:"",
        fepfeecod:"",
        fepdsp:"",
        fcpdsp:"",
        chksubcon:"",
        chktrnsta:"",
        smhcortyp:"",
        chktrn:"",
        smhdatfrom:"",
        smhdatto:"",
        smhdir:"",

      },
			swftyp: "",
			cre732flg: "",
			reconebch: "",
			reconebchnam: "",
			commen: "",
			bustyp: "",
      cmtflg:"",
      gidget:{
        sdamod:{
          seainf:"",			//  		.gctp.gidget.sdamod.seainf
          dadsnd:"",			//  Drag  Drop Sender		.gctp.gidget.sdamod.dadsnd
        },
      },
      recget:{
        sdamod:{
          seainf:"",			//  		.gctp.recget.sdamod.seainf
          dadsnd:"",			//  Drag  Drop Sender		.gctp.recget.sdamod.dadsnd
        },
      },
			adaflg: "", //  Add. Amount		.gctp.adaflg
			prechkdat: "", //  预计核验日期		.gctp.prechkdat
			ischktyp: "", //  是否需要核验		.gctp.ischktyp
			nidgrp: {
				rec: {
					purpos: "",
					ver: "",
					branchinr: "",
					inr: "",
					hndtyp: "",
					ownref: "", //  Guarantee		.nidgrp.rec.ownref
					expdat: "", //  Valid until		.nidgrp.rec.expdat
					gartyp: "", //  Type of Undertaking		.nidgrp.rec.gartyp
					liadat: "", //  Liability until		.nidgrp.rec.liadat
					rptref: "", //  合同号		.nidgrp.rec.rptref
					invref: "", //  发票号		.nidgrp.rec.invref
					cmtflg: "", //  跨境人民币保函		.nidgrp.rec.cmtflg
					fromflg: "",
					legfrm: "",
					liaflg: "",
					opndat:"",
					fingua:"",
					othersno:"",
					sndto:"",
					clsdat:"",
					credat:"",
					giduil: "",
          fenlishi:"",
          tag77atxt754:"",
				},
				cbs: {
					opn1: {
						cur: "", //  Currency		.nidgrp.cbs.opn1.cur
						amt: "", //  Balance		.nidgrp.cbs.opn1.amt
					},
					opn2: {
						cur: "", //  Currency		.nidgrp.cbs.opn1.cur
						amt: "", //  Balance		.nidgrp.cbs.opn1.amt
					},
					max: {
						cur: "", //  Currency		.nidgrp.cbs.max.cur
						amt: "", //  Balance		.nidgrp.cbs.max.amt
					},
					max2: {
						cur: "", //  Currency		.nidgrp.cbs.max2.cur
						amt: "", //  Balance		.nidgrp.cbs.max2.amt
					}
				},
				apl: {
          pts: new Pts().data,
          namelc: "",			//  名称
					adrelc: "",			//  地址
					dbfadrblkcn: "",
				},
				ben: {
          pts: new Pts().data,
          namelc: "",			//  名称
					adrelc: "",			//  地址
					dbfadrblkcn: "",
				},
				prb: {
          pts: new Pts().data,
          namelc: "",			//  名称
					adrelc: "",			//  地址
					dbfadrblkcn: "",
				},
				oth: {
          pts: new Pts().data,
          namelc: "",			//  名称
					adrelc: "",			//  地址
					dbfadrblkcn: "",
        },
			},
			ncdgrp: {
				rec: {
					ver: "",
					inr: "",
					ownref: "", //  Claim Number		.ncdgrp.rec.ownref
					nam: "", //  Externally Displayed Name to Identify the Contract		.ncdgrp.rec.nam
					clmdat: "", //  Date of Claim		.ncdgrp.rec.clmdat
					cannowflg: "", //  Payment under Cancelation of Guarantee		.ncdgrp.rec.cannowflg
					docprbrol: "", //  Presented by		.ncdgrp.rec.docprbrol
					payrol: "APL", //  Payer		.ncdgrp.rec.payrol
					frepayflg: "", //  free of payment flag		.ncdgrp.rec.frepayflg
				},
				blk: {
					addamtinf: "",			//  Add. Amt. Information		.ncdgrp.blk.addamtinf
					presentdet: "",			//  Present. Compl. Det.		.ncdgrp.blk.presentdet
				},
				cbs: {
					max: {
						cur: "", //  Amount Claimed		.ncdgrp.cbs.max.cur
						amt: "", //  Balance		.ncdgrp.cbs.max.amt
					},
					opn1: {
						cur: "", //  Open Amount		.ncdgrp.cbs.opn1.cur
						amt: "", //  Balance		.ncdgrp.cbs.opn1.amt
					},
					opn2: {
						cur: "", //  附加金额		.ncdgrp.cbs.opn2.cur
						amt: "",
					},
					max2: {
						cur: "",
						amt: "", //  附加金额		.ncdgrp.cbs.max2.amt
					},
				},
				apl: {
					pts: new Pts().data,
				},
				ben: {
					pts: new Pts().data,
				},
				rmr: {
					pts: new Pts().data,
					namelc: "",			//  名称
					adrelc: "",			//  地址
					dbfadrblkcn: "",
					rol: "",
				},
				prb: {
					pts: new Pts().data,
					namelc: "", //  名称		.ncdgrp.prb.namelc
					adrelc: "", //  地址		.ncdgrp.prb.adrelc
					dbfadrblkcn: "", //  Chinese address		.ncdgrp.prb.dbfadrblkcn
				},
				oth: {
					pts: new Pts().data,
					namelc: "", //  名称		.ncdgrp.oth.namelc
					adrelc: "", //  地址		.ncdgrp.oth.adrelc
					dbfadrblkcn: "", //  Chinese address		.ncdgrp.oth.dbfadrblkcn
				},
				cli: {
					pts: new Pts().data,
				},
			},
			paypsb: "", //  Unpaid by Applicant		.paypsb
			clsflg: "",
			mt769SndFlg: "",
      clmrmbflg: "",

			setmod: new Pub().data.Setmod,
			mtabut: new Pub().data.Mtabut,
			liaall: new Pub().data.Liaall,
			liaccv: new Pub().data.Liaccv,
			docpan: new Pub().data.Docpan,
			doctre: new Pub().data.Doctre,
      umdmod: new Pub().data.Umdmod,
		}
	}
}