1
2
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
42
43
44
45
46
47
48
49
50
51
52
53
function buildData(model) {
this.model = model;
}
buildData.prototype.buildCcvpan = function(){
// console.log("44444")
// console.log(this.model)
let cbsMap = {};
this.model.liaall.rec.objtyp = "GID";
this.model.liaall.rec.ownref = this.model.gidgrp.rec.ownref;
this.model.liaall.rec.branchInr = this.model.gidgrp.rec.branchInr;
this.model.liaall.rec.detchgcod = this.model.gidgrp.rec.detchgcod;
this.model.liaall.rec.paytyp = this.model.gidgrp.rec.paytyp;
this.model.liaall.rec.swftyp = this.model.gidgrp.rec.swftyp;
this.model.liaall.rec.valdat = this.model.gidgrp.rec.valdat;
this.model.liaall.rec.gartyp = this.model.gidgrp.rec.gartyp;
Object.keys(this.model.gidgrp.cbs).forEach(key=>{
cbsMap[key.toUpperCase()]= {...this.model.gidgrp.cbs[key]};
})
this.model.liaall.cbsMap = cbsMap;
let ptsptaList = [];
if (this.model.gidgrp.apl.pts.extkey !== "") {
ptsptaList.push(this.model.gidgrp.apl.pts);
}
if (this.model.gidgrp.ctr.pts.extkey !== "") {
ptsptaList.push(this.model.gidgrp.adv.pts);
}
if (this.model.gidgrp.ben.pts.extkey !== "") {
ptsptaList.push(this.model.gidgrp.ben.pts);
}
if (this.model.gidgrp.iss.pts.extkey !== "") {
ptsptaList.push(this.model.gidgrp.ben.pts);
}
this.model.liaall.ptsList = ptsptaList;
this.model.liaall.setglg.setgll = [];
this.model.liaall.setfog.setfol = [];
this.model.liaall.setfeg.setfel = [];
this.model.liaall.transName = this.model.gidgrp.transName;
// if (!!window.sessionStorage.userId) {
// this.model.liaall.userId = window.sessionStorage.userId;
// } else {
// this.model.liaall.userId = "ZL";
// }
this.model.liaall.userId = "742549";
}
export default buildData;