Commit dafaf4b3 by WH

brtlat中init调用setmod接口

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