Commit dafaf4b3 by WH

brtlat中init调用setmod接口

parent a22ce94c
......@@ -51,6 +51,13 @@ export default {
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
}
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
return buildFn.buildSetglg(this.model, this.trnName);
});
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
......
......@@ -105,7 +105,7 @@ export default {
// 业务信息=》基本信息=》保函编号-----获取保函编号
async queryOwnref() {
let params = {
ptainr: this.model.gidgrp.apl.pts.ptainr,
ptainr: this.model.brdgrp.apl.pts.ptainr,
businessType: 'LG',
tbl: 'LG',
};
......@@ -113,7 +113,7 @@ export default {
let res = await Api.post('/service/brtudp/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.gidgrp.rec.ownref = res.data;
this.model.brdgrp.rec.ownref = res.data;
}
},
// 获取brtudp弹框表格数据
......
......@@ -24,19 +24,19 @@ export default class Brtudp {
relstoadr: ''
},
prb: {
pts:new Pts().data
pts: new Pts().data
},
acb: {
pts:new Pts().data
pts: new Pts().data
},
rmb: {
pts:new Pts().data
pts: new Pts().data
},
beb: {
pts:new Pts().data
pts: new Pts().data
},
shp: {
pts:new Pts().data
pts: new Pts().data
},
rec: {
tenmaxday: '',
......@@ -94,7 +94,7 @@ export default class Brtudp {
brtp: {
connum: '',
oth: {
pts:new Pts().data
pts: new Pts().data
},
},
aamset: {
......
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