Commit 113fe230 by WH

brtudp

parent 73e69bfc
......@@ -106,7 +106,6 @@
"m-ccvpan": Ccvpan,
"m-setmod": Setmod,
"m-glentry": Glentry,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-limitbody": Limitbody,
"m-glepan": Glepan,
......
......@@ -19,15 +19,25 @@ export default {
},
buildCommonData(model, trnName) {
let ptsptaList = [];
if (model.brdgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.apl));
}
if (model.brdgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.ben));
}
if (model.brdgrp.prb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.prb));
}
if (model.brdgrp.acb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.acb));
}
if (model.brdgrp.rmb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.rmb));
}
if (model.brdgrp.beb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.beb));
}
if (model.brdgrp.shp.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brdgrp.shp));
}
if (model.brtp.oth.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.brtp.oth));
}
let dataObj = {
rec: {
objtyp: 'BRD',
......@@ -119,8 +129,8 @@ export default {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'BRD',
objinr: model.gidgrp.rec.objinr,
ownref: model.gidgrp.rec.ownref,
objinr: model.brdgrp.rec.inr,
ownref: model.brdgrp.rec.ownref,
},
};
return params
......@@ -130,9 +140,9 @@ export default {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'BRD',
objinr: model.brdgrp.rec.objinr,
objinr: model.brdgrp.rec.inr,
ownref: model.brdgrp.rec.ownref,
swiftflg: model.brtp.swiftflg,
// swiftflg: model.brtp.swiftflg,
},
};
return params
......
......@@ -121,7 +121,7 @@ export default {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.gidgrp[type.toLowerCase()].pts.extkey,
extkey: this.model.brdgrp[type.toLowerCase()].pts.extkey,
};
let res = await Api.post('/service/ptspta/list', params);
if (res.respCode == SUCCESS) {
......@@ -137,7 +137,7 @@ export default {
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.gidgrp, row.role.toLowerCase(), res.data);
this.$set(this.model.brdgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
......@@ -145,31 +145,31 @@ export default {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
gitp: {
swiftflg: this.model.gitp.swiftflg,
},
gidgrp: {
rec: {
purpos: this.model.gidgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/brtudp/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
},
// async queryHndtypCodeTableList(trnName) {
// let params = {
// gitp: {
// swiftflg: this.model.gitp.swiftflg,
// },
// gidgrp: {
// rec: {
// purpos: this.model.gidgrp.rec.purpos,
// },
// },
// transName: trnName.toUpperCase(),
// };
// let res = await Api.post('/service/brtudp/initHndtyp', params);
// if (res.respCode == SUCCESS) {
// this.$set(this.codes, 'voHndtyp', res.data);
// }
// },
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// handleChangeSwiftflg() {
// this.queryHndtypCodeTableList(this.root.trnName);
// },
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// handleChangePurpos() {
// this.queryHndtypCodeTableList(this.root.trnName);
// },
buildLiaccv() {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
......
......@@ -5,36 +5,6 @@ export default class Brtudp {
constructor() {
this.data = {
brdgrp: {
acb: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
shp: {
pts: new Pts().data,
},
adv: {
pts: new Pts().data,
},
ctr: {
pts: new Pts().data,
},
con: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
atb: {
pts: new Pts().data,
},
avc: {
pts: new Pts().data,
},
blk: {
docdisflg: '',
notpty: '',
......@@ -54,13 +24,21 @@ export default class Brtudp {
relstoadr: ''
},
prb: {
pts: {
extkey: ''
}
pts:new Pts().data
},
acb: {
pts:new Pts().data
},
rmb: {
pts:new Pts().data
},
beb: {
pts:new Pts().data
},
shp: {
pts:new Pts().data
},
rec: {
inr:'',
branchinr:'',
tenmaxday: '',
predat: '',
relgodflg: '',
......@@ -99,87 +77,25 @@ export default class Brtudp {
amt: ''
},
opn2: {
cur: ''
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
},
max2: {
amt: ''
}
},
tag72add: ''
},
gidgrp: {
rec: {
expdat: '',
liadat: '',
ownref: '',
gartyp: ''
},
ghd: {
wahnum: '',
remark: '',
bustyp: '',
segtyp: ''
},
cbs: {
opn1: {
cur: '',
amt: ''
}
},
ctr: {
pts: new Pts().data,
},
con: {
pts: new Pts().data,
},
iss: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
atb: {
pts: new Pts().data,
},
avc: {
pts: new Pts().data,
},
adv: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
},
cbsMap: {
MAX: {
cur: ''
}
},
rol: {
pts: new Pts().data,
},
gitp: {
swiftflg: '',
tag72add: ''
},
brtp: {
docgrdm: {
docgrd: {
splice: '',
push: ''
}
},
connum: '',
oth: {
pts: new Pts().data,
pts:new Pts().data
},
cre732flg: '',
furide: '',
connum: '',
cre752flg: ''
},
aamset: {
utlamt: '',
......@@ -241,8 +157,6 @@ export default class Brtudp {
},
lidgrp: {
rec: {
inr: '',
branchinr: '',
expdat: '',
ownref: ''
},
......@@ -254,46 +168,6 @@ export default class Brtudp {
}
},
sftmt: '',
gcdgrp: {
prb: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
rec: {
clmdat: '',
ownref: '',
payrol: '',
nam: '',
docprbrol: '',
},
oth: {
adrelc: '',
dbfadrblkcn: '',
namelc: '',
pts: new Pts().data,
},
cbs: {
opn1: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
}
},
ben: {
pts: new Pts().data,
},
adv: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment