index.js 5.75 KB
Newer Older
WH committed
1 2
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
liaoxing committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

export default class Botame{
    constructor () {
        this.data = {
			botcoll2blk:"",
			botcoll1blk:"",
			botdrrl1blk:"",

			bodgrp:{
				rec:{
					ownref:"",			//  Reference		.bodgrp.rec.ownref
					nam:"",			//  Name		.bodgrp.rec.nam
					matpertyp:"",			//  Days/Months or Years for Maturity Period		.bodgrp.rec.matpertyp
					dircolflg:"",			//  Direct Collection		.bodgrp.rec.dircolflg
					resflg:"",			//  Reservated Contract		.bodgrp.rec.resflg
					rcvdat:"",			//  Order Date		.bodgrp.rec.rcvdat
					shpdat:"",			//  Shipment date		.bodgrp.rec.shpdat
					predat:"",			//  Presentation Date		.bodgrp.rec.predat
					advdat:"",			//  Dispatched on		.bodgrp.rec.advdat
					doctypcod:"",			//  Collection Condition		.bodgrp.rec.doctypcod
					matdat:"",			//  Maturity Date		.bodgrp.rec.matdat
					matpercnt:"",			//  Tenor Specification		.bodgrp.rec.matpercnt
					matperbeg:"",			//  Starting from		.bodgrp.rec.matperbeg
					stacty:"",			//  Country Code Risk Country!		.bodgrp.rec.stacty
					stagod:"",			//  Goods Code		.bodgrp.rec.stagod
					invtyp:"",			//  Maturity Date		.bodgrp.rec.invtyp
					paydoctyp:"",			//  Financial Document		.bodgrp.rec.paydoctyp
					paydocnum:"",			//  Document Number		.bodgrp.rec.paydocnum
					issdat:"",			//  Issued on		.bodgrp.rec.issdat
					ccdndrflg:"",			//  Truncation - Physical Document Kept w OWN		.bodgrp.rec.ccdndrflg
					ccdpurflg:"",			//  Payment Under Reserve		.bodgrp.rec.ccdpurflg
					chato:"",			//  Our Charges to		.bodgrp.rec.chato
					focflg:"",			//  Free of Payment		.bodgrp.rec.focflg
					waicolcod:"",			//  Protest Instructions		.bodgrp.rec.waicolcod
					wairmtcod:"",			//  Waive Remitting Bank Charges		.bodgrp.rec.wairmtcod
					othins:"",			//  Defer Payment until		.bodgrp.rec.othins
					lescom:"",			//  Warehouse/Insurance		.bodgrp.rec.lescom
					shpfro:"",			//  Shipment from		.bodgrp.rec.shpfro
					shpto:"",			//  For Transportation to		.bodgrp.rec.shpto
liaoxing committed
42
					inr: "",
liaoxing committed
43
					branchinr: '',
liaoxing committed
44 45 46 47
				},
				cbs:{
					max:{
						cur:"",			//  Document Amount		.bodgrp.cbs.max.cur
liaoxing committed
48
						amt:"0.00",			//  Document Amount		.bodgrp.cbs.max.amt
liaoxing committed
49 50 51
					},
					opn1:{
						cur:"",			//  Warehouse/Insurance		.bodgrp.cbs.opn1.cur
liaoxing committed
52
						amt:"0.00",			//  Open Amount		.bodgrp.cbs.opn1.amt
liaoxing committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
					},
				},
				blk:{
					docpre:"",
					bogdet:"",			//  Tenor Details Text		.bodgrp.blk.bogdet
					cctinsrcv:"",			//  Instructions Received		.bodgrp.blk.cctinsrcv
					cctinscol:"",			//  Collection Instruction		.bodgrp.blk.cctinscol
					colins:"",			//  Collection Instructions		.bodgrp.blk.colins
					colinsflg:"",			//  Collection instructions modified		.bodgrp.blk.colinsflg
					dftins:"",			//  Draft Instructions		.bodgrp.blk.dftins
					proins:"",			//  Protest Instructions		.bodgrp.blk.proins
					othins:"",			//  Other Instructions		.bodgrp.blk.othins
					chgtxt:"",			//  Charges Text		.bodgrp.blk.chgtxt
					delins:"",			//  Delivery instructions		.bodgrp.blk.delins
					intins:"",			//  Interest Instructions		.bodgrp.blk.intins
					setinsbo:"",			//  Settlement insrtrctions		.bodgrp.blk.setinsbo
					agtaut:"",			//  Authority of Agent		.bodgrp.blk.agtaut
					goddes:"",			//  Description of Goods		.bodgrp.blk.goddes
				},
				drr:{
					pts:new Pts().data,
				},
				col:{
					pts:new Pts().data,
				},
				dre:{
					pts:new Pts().data,
				},
			},
			botamep:{
				recget:{
					sdamod:{
						seainf:"",			//  Reference		.botamep.recget.sdamod.seainf
						dadsnd:"",			//  Drag  Drop Sender		.botamep.recget.sdamod.dadsnd
					},
				},
				amedat:"",			//  Amendment Date		.botamep.amedat
			},
			oldbodgrp:{
				cbs:{
					max:{
						cur:"",			//  Original Amount		.oldbodgrp.cbs.max.cur
liaoxing committed
95
						amt:"0.00",			//  Original Amount		.oldbodgrp.cbs.max.amt
liaoxing committed
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
					},
				},
				rec:{
					matpercnt:"",			//  Tenor Data		.oldbodgrp.rec.matpercnt
					matpertyp:"",			//  Days/Months or Years for Maturity Period		.oldbodgrp.rec.matpertyp
					matperbeg:"",			//  Start of Maturity Period MATBEG		.oldbodgrp.rec.matperbeg
					matdat:"",			//  Maturity Date		.oldbodgrp.rec.matdat
				},
			},
			botp:{
				recget:{
					sdamod:{
						seainf:"",			//  		.botp.recget.sdamod.seainf
						dadsnd:"",			//  Drag  Drop Sender		.botp.recget.sdamod.dadsnd
					},
				},
				usr:{
					extkey:"",			//  Responsible User		.botp.usr.extkey
				},
				usrget:{
					sdamod:{
						seainf:"",			//  		.botp.usrget.sdamod.seainf
					},
				},
				docgrdm:{
					docgrd:"",
					docdsclab:"",			//  Label of document description		.botp.docgrdm.docdsclab
				},
				drrp:{
					ptsget:{
						sdamod:{
							seainf:"",			//  		.botp.drrp.ptsget.sdamod.seainf
							dadsnd:"",			//  Drag  Drop Sender		.botp.drrp.ptsget.sdamod.dadsnd
						},
					},
				},
				colp:{
					ptsget:{
						sdamod:{
							seainf:"",			//  		.botp.colp.ptsget.sdamod.seainf
							dadsnd:"",			//  Drag  Drop Sender		.botp.colp.ptsget.sdamod.dadsnd
						},
					},
				},
				drep:{
					ptsget:{
						sdamod:{
							seainf:"",			//  		.botp.drep.ptsget.sdamod.seainf
							dadsnd:"",			//  Drag  Drop Sender		.botp.drep.ptsget.sdamod.dadsnd
						},
					},
				},
				ptsaddp:{
					ptsaddg:[],			//  		.botp.ptsaddp.ptsaddg
				},
			},
liaoxing committed
152 153 154 155 156 157 158 159 160 161 162 163
			swiadd: {
				amecur: '',
				ameamt: '0.00',
				newcur: '',
				newamt: '0.00',
				newmatpercnt: '',
				newmatpertyp: '',
				newmatperbeg: '',
				newmatdat: '',
				ametxt: '',
				// amatpertyp: '',//swiadd类中是没有这个属性的,不清楚为什么前端会有使用到这个字段
			},
liaoxing committed
164 165 166 167 168 169 170 171 172
			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,
		}
    }
}