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

export default class Bftdcr {
    constructor() {
        this.data = {
            advrefflg: "", //  Advice of Refusal MT734		.advrefflg
            bfdgrp: {
                rec: {
                    advdocflg: "", //  Return of Documents		.bfdgrp.rec.advdocflg
                    payrol: "", //  Payer		.bfdgrp.rec.payrol
                    docprbrol: "", //  Presented by		.bfdgrp.rec.docprbrol
                    ownref: "", //  单据参考号		.bfdgrp.rec.ownref
                    doctypcod: "", //  单据类型		.bfdgrp.rec.doctypcod
                    matdat: "", //  远期单据到期日		.bfdgrp.rec.matdat
                    rcvdat: "", //  到单日期		.bfdgrp.rec.rcvdat
                    predat: "", //  Presentation Date		.bfdgrp.rec.predat
                    docsta: "", //  单据状态		.bfdgrp.rec.docsta
                    nam: "", //  Externally Displayed Name to Identify the Contract		.bfdgrp.rec.nam
                },
                cbs: {
                    max: {
                        cur: "", //  单据金额		.bfdgrp.cbs.max.cur
                        amt: "", //  单据金额		.bfdgrp.cbs.max.amt
                    },
                    opn1: {
                        cur: "", //  单据余额		.bfdgrp.cbs.opn1.cur
                        amt: "", //  Balance		.bfdgrp.cbs.opn1.amt
                    },
                },
                prb: {
                    pts: new Pts().data,
                    namelc: "", //  名称		.bfdgrp.prb.namelc
                    adrelc: "", //  地址		.bfdgrp.prb.adrelc
                    dbfadrblkcn: "", //  Chinese address		.bfdgrp.prb.dbfadrblkcn
                },
                ben: {
                    pts: new Pts().data,
                    namelc: "", //  名称		.bfdgrp.ben.namelc
                    adrelc: "", //  地址		.bfdgrp.ben.adrelc
                    dbfadrblkcn: "", //  Chinese address		.bfdgrp.ben.dbfadrblkcn
                },
                iss: {
                    pts: new Pts().data,
                },
                apl: {
                    pts: new Pts().data,
                },
                oth: {
                    pts: new Pts().data,
                },
                blk: {
                    intdis: "", //  Internal Discrepancies		.bfdgrp.blk.intdis
                    docdis: "", //  Discrepancies		.bfdgrp.blk.docdis
                    docdisflg: "", //  Discrepancies modified		.bfdgrp.blk.docdisflg
                },
            },
            mtabut: {
                clsflg: "", //  Close Flag		.mtabut.clsflg
                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
                    },
                },
            },
            bftp: {
                dedget: {
                    sdamod: {
                        dadsnd: "", //  Drag  Drop Sender		.bftp.dedget.sdamod.dadsnd
                        seainf: "", //  		.bftp.dedget.sdamod.seainf
                    },
                },
                recget: {
                    sdamod: {
                        dadsnd: "", //  Drag  Drop Sender		.bftp.recget.sdamod.dadsnd
                        seainf: "", //  		.bftp.recget.sdamod.seainf
                    },
                },
                prbp: {
                    ptsget: {
                        sdamod: {
                            seainf: "", //  		.bftp.prbp.ptsget.sdamod.seainf
                            dadsnd: "", //  Drag  Drop Sender		.bftp.prbp.ptsget.sdamod.dadsnd
                        },
                    },
                },
                docgrdm: {
                    docdsclab: "", //  Label of document description		.bftp.docgrdm.docdsclab
                    docgrd: "", //.bftp.docgrdm.docgrd
                },
            },
            dedgrp: {
                rec: {
                    ownref: "", //  参考号		.dedgrp.rec.ownref
                    kzref: "", //  信用证编号		.dedgrp.rec.kzref
                },
                cbs: {
                    opn1: {
                        cur: "", //  Currency		.dedgrp.cbs.opn1.cur
                        amt: "", //  Balance		.dedgrp.cbs.opn1.amt
                    },
                },
            },
            advdisflg: "", //  Advice of Discrepancy MT750		.advdisflg
            rejpenins: "", //  Rejection pending instructions		.rejpenins
            liaall: new Pub().data.Liaall,
            pageId: "", // ctx的key
            setmod: new Pub().data.Setmod,
            trnmod: new Pub().data.Trnmod,
        }
    }
}