index.js 9.67 KB
Newer Older
1
import { now } from "lodash"
jxl committed
2 3
import Api from "~/service/Api"
import Pts from "../Common/Pts"
zhoutian committed
4
import Pub from "../Public"
jxl committed
5

6 7 8 9 10 11 12 13
export default class Botdav {
	constructor() {
		this.data = {
			botcoll3blk: "",
			botcoll1blk: "",
			botdrrl1blk: "",
			botcoll4blk: "",

zhoutian committed
14
			liaall: new Pub().data.Liaall,
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 42 43 44 45 46 47 48 49 50 51 52 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 95 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
			bodgrp: {
				rec: {
					matpertyp: "",			//  Days/Months or Years for Maturity Period		.bodgrp.rec.matpertyp
					ownref: "",			//  Reference		.bodgrp.rec.ownref
					nam: "",			//  Name		.bodgrp.rec.nam
					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
				},
				cbs: {
					max: {
						cur: "",			//  Document Amount		.bodgrp.cbs.max.cur
						amt: "",			//  Document Amount		.bodgrp.cbs.max.amt
					},
					opn1: {
						cur: "",			//  Warehouse/Insurance		.bodgrp.cbs.opn1.cur
						amt: "",			//  Open Amount		.bodgrp.cbs.opn1.amt
					},
				},
				blk: {
					docpre: "",			// bodgrp.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,
					namelc: "",			//  名称		.bodgrp.drr.namelc
					adrelc: "",			//  地址		.bodgrp.drr.adrelc
					dbfadrblkcn: "",			//  Chinese address		.bodgrp.drr.dbfadrblkcn
				},
				col: {
					pts: new Pts().data,
					namelc: "",			//  名称		.bodgrp.col.namelc
					adrelc: "",			//  地址		.bodgrp.col.adrelc
					dbfadrblkcn: "",			//  Chinese address		.bodgrp.col.dbfadrblkcn
				},
				dre: {
					pts: new Pts().data,
					namelc: "",			//  名称		.bodgrp.dre.namelc
					adrelc: "",			//  地址		.bodgrp.dre.adrelc
					dbfadrblkcn: "",			//  Chinese address		.bodgrp.dre.dbfadrblkcn
				},
				srm: {
					djuusr: "",			//  单据出具人		.bodgrp.srm.djuusr
					djudat: "",			//  单据出具日期		.bodgrp.srm.djudat
					djuref: "",			//  货权单据编号		.bodgrp.srm.djuref
					djutyp: "",			//  单据类型		.bodgrp.srm.djutyp
				},
			},
			botp: {
				ptsaddp: {
					ptsaddg: [],
				},
				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
jxl committed
134
						},
135 136 137 138 139 140 141
					},
				},
				drep: {
					ptsget: {
						sdamod: {
							seainf: "",			//  		.botp.drep.ptsget.sdamod.seainf
							dadsnd: "",			//  Drag  Drop Sender		.botp.drep.ptsget.sdamod.dadsnd
jxl committed
142
						},
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
					},
				},
			},
			// setmod:{
			// 	docamttyplab:"",			//  settled amount description as label		.setmod.docamttyplab
			// 	retmsg:"",			//  Label showing Retry overflow condition		.setmod.retmsg
			// 	ref:"",			//  our reference		.setmod.ref
			// 	doccur:"",			//  document currency		.setmod.doccur
			// 	docamt:"",			//  document amount		.setmod.docamt
			// 	dspflg:"",			//  Type of settlement		.setmod.dspflg
			// 	xreflg:"",			//  Recalculate Rates		.setmod.xreflg
			// 	setglg:{
			// 		labdspflg:"",			//  Label for Type of Settlement		.setmod.setglg.labdspflg
			// 		setgll:[]
			// 	},
			// 	zmqacclab:"",			//  主�'�号LABEL		.setmod.zmqacclab
			// 	zmqacc:"",			//  自�'�区主�'�号		.setmod.zmqacc
			// 	setfog:{
			// 		setfol:[]
			// 	},
			// 	setfeg:{
			// 		setfel:[]
			// 	},
			// 	glemod:{
			// 		gleshwstm: {}
			// 	}
			// },
			setmod: new Pub().data.Setmod,
			mtabut: {
				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
jxl committed
178
						},
179 180 181 182 183 184
					},
					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
jxl committed
185
						},
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
					},
					conexedat: "",			//  执行日期		.mtabut.coninf.conexedat
					usr: {
						extkey: "",			//  User ID		.mtabut.coninf.usr.extkey
					},
				},
			},
			// trnmod:{
			// 	trndoc:{
			// 		advlabel:"",			//  ADVLABEL		.trnmod.trndoc.advlabel
			// 		amdnam:"",			//  AMDNAM		.trnmod.trndoc.amdnam
			// 		advdoc:"",			//  国内证通知书		.trnmod.trndoc.advdoc
			// 		advnam:"",			//  国内证落款		.trnmod.trndoc.advnam
			// 		amdapl:"",			//  修改申请人名称		.trnmod.trndoc.amdapl
			// 		doclbl:"",			//  Lable for CONDOCSTM		.trnmod.trndoc.doclbl
			// 		doctrestm:"",			//  Document tree		.trnmod.trndoc.doctrestm
			// 		shwinc:"",			//  Show Incoming Messages		.trnmod.trndoc.shwinc
			// 		shwout:"",			//  Show Outgoing Messages		.trnmod.trndoc.shwout
			// 		condocstm:"",			//  Connected Documents		.trnmod.trndoc.condocstm
			// 		rcvatt:{
			// 			seainf:"",			//  		.trnmod.trndoc.rcvatt.seainf
			// 		},
			// 		filrecv:"",			//  File Receiver		.trnmod.trndoc.filrecv
			// 	},
			// },
			trnmod: new Pub().data.Trnmod,
			cnybop: {
				cnyflg: "",			//  是否报送跨境人民币2101表		.cnybop.cnyflg
				traflg: "",			//  是否报送跨境人民币2107表		.cnybop.traflg
				outflg: "",			//  是否报送跨境人民币2111表		.cnybop.outflg
				libflg: "",			//  是否报送跨境人民币2106表		.cnybop.libflg
				vouflg: "",			//  是否报送跨境人民币2122表		.cnybop.vouflg
				cnylib: {
					spk: "",			//  业务主键		.cnybop.cnylib.spk
					sbankorgcode: "",			//  银行机构代码		.cnybop.cnylib.sbankorgcode
					stransattr: "",			//  业务属性		.cnybop.cnylib.stransattr
					stranstype: "",			//  业务类型		.cnybop.cnylib.stranstype
					sforbankswiftbic: "",			//  境外对手行代码		.cnybop.cnylib.sforbankswiftbic
					sorgcode: "",			//  境内企业机构代码		.cnybop.cnylib.sorgcode
					sforeigncountrycode: "",			//  境外企业国别地区代码		.cnybop.cnylib.sforeigncountrycode
					doccurdate: "",			//  业务发生日期		.cnybop.cnylib.doccurdate
					denddate: "",			//  业务到期日		.cnybop.cnylib.denddate
					dcreditenddate: "",			//  信用证到期日		.cnybop.cnylib.dcreditenddate
					famt: "",			//  金额		.cnybop.cnylib.famt
					dexchangedate: "",			//  承兑日期		.cnybop.cnylib.dexchangedate
					dexchangeenddate: "",			//  承兑到期日		.cnybop.cnylib.dexchangeenddate
					sbanktrano: "",			//  银行业务编号		.cnybop.cnylib.sbanktrano
					stermtype: "",			//  期限条件		.cnybop.cnylib.stermtype
					currencycode: "",			//  币种		.cnybop.cnylib.currencycode
				},
				sorgname: "",			//  境内企业名称		.cnybop.sorgname
				sforeignorgname: "",			//  境外企业名称		.cnybop.sforeignorgname
				saddwordlib: "",			//  交易附言		.cnybop.saddwordlib
				sbankname: "",			//  银行机构名称		.cnybop.sbankname
				fexchangeamt: "",			//  承兑金额		.cnybop.fexchangeamt
			},
			pageId: ""			// ctx的key
		}
	}
jxl committed
245
}