Commit 46acbc6d by lixinyi

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'settle-test-20230110' of http://114.115.138.98:8900/fukai/vue-gjjs into settle-test-20230110
parents e4df158a 476668f6
export default {
buildPtspta (ptsptaObj) {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
......@@ -17,7 +17,7 @@ export default {
};
return ptspta;
},
buildCommonData (model, trnName) {
buildCommonData(model, trnName) {
let ptsptaList = [];
if (model.lidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.avb));
......@@ -86,7 +86,7 @@ export default {
};
return dataObj
},
buildSetfeg (model, trnName) {
buildSetfeg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
......@@ -95,7 +95,7 @@ export default {
};
return params
},
buildSetglg (model, trnName) {
buildSetglg(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
......@@ -104,7 +104,7 @@ export default {
};
return params
},
buildGlentry (model, trnName) {
buildGlentry(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
......@@ -114,20 +114,20 @@ export default {
};
return params
},
buildEngp (model, trnName) {
buildEngp(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
buildDocpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
buildCcvpan(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
......@@ -137,7 +137,7 @@ export default {
};
return params
},
buildLimitbody (model, trnName) {
buildLimitbody(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -148,7 +148,7 @@ export default {
};
return params
},
buildDoctre (model, trnName) {
buildDoctre(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
......@@ -161,7 +161,7 @@ export default {
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
buildSetgllAccts(model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
......
......@@ -20,22 +20,22 @@ export default {
...ccvpan,
...limitbody,
...doctre,
async init () {
async init() {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr,
}
if ( typeof(this.$route.query.inr) == 'string' ){
if (typeof (this.$route.query.inr) == 'string') {
params.spt = null
}
const res = await Api.post('/service/litdla/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
lidgrp:{
rec:{
inr:this.$route.query.inr
lidgrp: {
rec: {
inr: this.$route.query.inr
}
}
});
......@@ -49,7 +49,7 @@ export default {
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
copyValueFromVoData(model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
......@@ -148,7 +148,7 @@ export default {
purposChange(key, value) {
this.handleChangeForm(key, value);
},
buildLiaccv () {
buildLiaccv() {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
......@@ -156,11 +156,11 @@ export default {
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
changeSetmodModel(emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
......@@ -170,29 +170,29 @@ export default {
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
setglgRequest.setglg = { setgll: emitParams.list };
this.setgllAccts(setglgRequest, index);
break
default:
return
}
},
onSeainf() {},
max2Amt(){
onSeainf() { },
max2Amt() {
this.executeDefault("max2.amt").then(
(res) => {
if (res.respCode == SUCCESS){
Utils.copyValueFromVO(this.model, res.data);
}
}
);
(res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
}
);
},
choose(row){
this.model.amenbr = row.srcStr.split('\t')[0]
this.model.amecur = row.srcStr.split('\t')[2]
this.model.reduceamt = row.srcStr.split('\t')[3]
this.model.amedat = row.srcStr.split('\t')[4]
this.model.ameflg = 'Y'
choose(row) {
this.model.amenbr = row.srcStr.split('\t')[0]
this.model.amecur = row.srcStr.split('\t')[2]
this.model.reduceamt = row.srcStr.split('\t')[3]
this.model.amedat = row.srcStr.split('\t')[4]
this.model.ameflg = 'Y'
},
open(val) {
......
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