import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';

export default class Gitcan {
    constructor() {
        this.data = {
            //gitapll2blk: "",
            //	gitapll1blk: "",
            //	gitbenl1blk: "",
            //	gitbenl2blk: "",
            //	gitcanl1blk: "",
            //	gitp0:{
            //explab:"",			//  Label unlimited Validity		.gitp0.explab
            //	lialab:"",			//  Label unlimited lLability		.gitp0.lialab
            //aplmullab:"",			//  Label, that is set, if there are multiple applicants		.gitp0.aplmullab
            //	expfldlab:"",			//  Label for Field Validity		.gitp0.expfldlab
            //	liafldlab:"",			//  Label for Field Lability		.gitp0.liafldlab
            //	},
            gitp0: {
                gitp0s20: ''
            },
            gidgrp: {
                rec: {
                    inr: "",
                    branchinr: "",
                    ver: "",
                    ownref: "",			//  Reference		.gidgrp.rec.ownref
                    nam: "",			//  Externally Displayed Name to Identify the Contract		.gidgrp.rec.nam
                    hndtyp: "",			//  Handling Type		.gidgrp.rec.hndtyp
                    gartyp: "",			//  Type of Undertaking		.gidgrp.rec.gartyp
                    expdat: "",			//  Valid until		.gidgrp.rec.expdat
                    liadat: "",			//  Liability until		.gidgrp.rec.liadat
                    liatypc: "",			//  Liability until		.gidgrp.rec.liatypc
                    purcan: "",			//  Reason of Cancelation		.gidgrp.rec.purcan
                    reddat: "",			//  Date of Reduction		.gidgrp.rec.reddat
                    redcur: "",			//  Amount Reduced		.gidgrp.rec.redcur
                    redamt: "",			//  Reduced Amount to be Paid		.gidgrp.rec.redamt
                    outcur: "",			//  Amount Outstanding		.gidgrp.rec.outcur
                    outamt: "",			//  Outstanding Amount		.gidgrp.rec.outamt
                    exptyp: "",			//						.gidgrp.rec.exptyp
                    purposin: "",		//.gidgrp.rec.purposin
                    purpos: "",			//.gidgrp.rec.purpos
                    clsdat: "",
                    opndat: "",
                    credat: "",
										fenlishi: "",
										fingua:"",
										cfaguatyp:"",
										cmtflg:"",
                },
                cbs: {
                    max: {
                        cur: "",			//  Currency		.gidgrp.cbs.max.cur
                        amt: "",			//  Balance		.gidgrp.cbs.max.amt
                    },
                    max2: {
                        cur: "",
                        amt: "",
                    },
                    opn1: {
                        cur: "",			//  Currency		.gidgrp.cbs.opn1.cur
                        amt: "",			//  Balance		.gidgrp.cbs.opn1.amt
                    },
                    opn2: {
                        cur: "",
                        amt: "",
                    },
                    cnf: {
                        cur: "",			//  Currency		.gidgrp.cbs.cnf.cur
                        amt: "",			//  Balance		.gidgrp.cbs.cnf.amt
                    },
                },
                apl: {
                    pts: new Pts().data,
                },
                ben: {
                    pts: new Pts().data,
                },
                bec: {
                  pts: new Pts().data,
                },
                adv: {
                    pts: new Pts().data,
                },
                ctr: {
                    pts: new Pts().data,
                },
                iss: {
                    pts: new Pts().data,
                },
                atb: {
                    pts: new Pts().data,
                },
                blk: {
                    accspc: "",			//  Account Specification		.gidgrp.blk.accspc
                    amtspc: "",			//  Amount Specification		.gidgrp.blk.amtspc
                    chaded: "",			//  Details of Charges 		.gidgrp.blk.chaded
                },
                acb: {
                    pts: new Pts().data,
                },
            },
            newref: "",			//  New Reference		.newref
            spt: {
                sta: "",//按照td上的default规则,根据此字段给Purcan赋值
            },
            swiadd: new Pub().data.Trnmod.swiadd,
            setmod: new Pub().data.Setmod,
            mtabut: new Pub().data.Mtabut,
            trnmod: new Pub().data.Trnmod,
            liaall: new Pub().data.Liaall,
            limmod: new Pub().data.Limmod,
            docpan: new Pub().data.Docpan,
            doctre: new Pub().data.Doctre,
            liaccv: new Pub().data.Liaccv,
						trndia: new Pub().data.Trndia,
						cfagit: new Pub().data.Cfagit,
        }
    }
}