Commit 54ce30aa by chengzhuoshen

前端费用账务代码

parent 1d1176b4
......@@ -75,6 +75,8 @@ export default {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
liaall: model.liaall,
liaccv: model.liaccv,
};
return params
},
......
......@@ -3,7 +3,7 @@ export default {
async processSetpan(setfegRequest, fn) {
let loading = this.loading('正在请求试算费用');
let objtyp = setfegRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/setmod/calcSettleDetail`, setfegRequest);
let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/calcFeeDetail`, setfegRequest);
if (rtnmsg.respCode === SUCCESS) {
this.model.setmod.setfeg = rtnmsg.data.setfeg;
this.model.setmod.ref = rtnmsg.data.ref;
......@@ -15,7 +15,7 @@ export default {
loading = this.loading('正在请求试算账务');
let setglgRequestParams = fn()
let res = await Api.post(`/service/${ objtyp.toLowerCase() }/setmod/calcPayDetail`, setglgRequestParams);
let res = await Api.post(`/service/${ objtyp.toLowerCase() }/calcSettleDetail`, setglgRequestParams);
if (res.respCode == SUCCESS) {
this.model.setmod.setglg = res.data.setglg;
}
......@@ -25,7 +25,8 @@ export default {
},
async calcPayDetail(setglgRequest) {
let loading = this.loading('正在请求试算账务');
let rtnmsg = await Api.post('/service/gid/setmod/calcPayDetail', setglgRequest);
let objtyp = setglgRequest.rec.objtyp;
let rtnmsg = await Api.post(`/service/${ objtyp.toLowerCase() }/calcSettleDetail`, setglgRequest);
if (rtnmsg.respCode == SUCCESS) {
this.model.setmod.setglg = rtnmsg.data.setglg;
}
......@@ -33,7 +34,7 @@ export default {
},
async setgllAccts(reqParams, index) {
let loading = this.loading();
let rulePath = '/service/gid/setmod/setgll/' + index + '/accts';
let rulePath = '/service/gid/setmod/setgll/' + index + '/accts';//TODO 这里的gid应该是变量
let rtnmsg = await Api.post(rulePath, reqParams);
if (rtnmsg.respCode == SUCCESS) {
this.model.setmod.setglg = rtnmsg.data.setglg;
......
......@@ -35,6 +35,7 @@ export default class SetglgRequest {
setfel: [],
},
liaall: {},
liaccv: {}
};
}
}
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