Commit 8213da25 by liaoxing

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 bc35d1b4 a7392db8
export default { export default {
buildPtspta (ptsptaObj) { buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts; let pts = ptsptaObj.pts;
let ptspta = { let ptspta = {
rol: pts.rol, rol: pts.rol,
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
}; };
return ptspta; return ptspta;
}, },
buildCommonData (model, trnName) { buildCommonData(model, trnName) {
let ptsptaList = []; let ptsptaList = [];
if (model.ledgrp.iss.pts.extkey) { if (model.ledgrp.iss.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.iss)); ptsptaList.push(this.buildPtspta(model.ledgrp.iss));
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
}; };
return dataObj return dataObj
}, },
buildSetfeg (model, trnName) { buildSetfeg(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaall: model.liaall, liaall: model.liaall,
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
}; };
return params return params
}, },
buildSetglg (model, trnName) { buildSetglg(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg, setfeg: model.setmod.setfeg,
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
}; };
return params return params
}, },
buildGlentry (model, trnName) { buildGlentry(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg, liaallg: model.liaall.liaallg,
...@@ -99,20 +99,20 @@ export default { ...@@ -99,20 +99,20 @@ export default {
}; };
return params return params
}, },
buildEngp (model, trnName) { buildEngp(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg, liaallg: model.liaall.liaallg,
}; };
return params return params
}, },
buildDocpan (model, trnName) { buildDocpan(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
}; };
return params return params
}, },
buildCcvpan (model, trnName) { buildCcvpan(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg, liaccvg: model.liaccv.liaccvg,
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
}; };
return params return params
}, },
buildLimitbody (model, trnName) { buildLimitbody(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
}; };
return params return params
}, },
buildDoctre (model, trnName) { buildDoctre(model, trnName) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
rec: { rec: {
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
return params return params
}, },
// 公共组件setmod中dsp字段改变,触发联动时候的入参 // 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) { buildSetgllAccts(model, trnName, setglg) {
let params = { let params = {
...this.buildCommonData(model, trnName), ...this.buildCommonData(model, trnName),
setglg setglg
......
...@@ -20,21 +20,21 @@ export default { ...@@ -20,21 +20,21 @@ export default {
...ccvpan, ...ccvpan,
...limitbody, ...limitbody,
...doctre, ...doctre,
async init () { async init() {
const params = { const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)), spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trninr: this.$route.query.trninr, trninr: this.$route.query.trninr,
} }
if ( typeof(this.$route.query.inr) == 'string'){ if (typeof (this.$route.query.inr) == 'string') {
params.spt = null params.spt = null
} }
const res = await Api.post('/service/letamc/init', { const res = await Api.post('/service/letamc/init', {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
ledgrp:{ ledgrp: {
rec:{ rec: {
inr: this.$route.query.inr inr: this.$route.query.inr
} }
}, },
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg) this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
}, },
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题 // 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) { copyValueFromVoData(model, data) {
let keysList = Object.keys(model) let keysList = Object.keys(model)
keysList.map((key) => { keysList.map((key) => {
if (data[key]) { if (data[key]) {
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
handleChangePurpos() { handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName); this.queryHndtypCodeTableList(this.root.trnName);
}, },
buildLiaccv () { buildLiaccv() {
let params = { let params = {
...buildFn.buildCommonData(this.model, this.trnName), ...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg, liaccvg: this.model.liaccv.liaccvg,
...@@ -141,11 +141,11 @@ export default { ...@@ -141,11 +141,11 @@ export default {
chgamt: this.model.liaccv.chgamt, chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur, concur: this.model.liaccv.concur,
}; };
return params return params
}, },
// 公共组件setmod处理方式改变触发联动 // 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) { changeSetmodModel(emitParams) {
let reqParams = {} let reqParams = {}
switch (emitParams.code) { switch (emitParams.code) {
case 'processMethods': case 'processMethods':
...@@ -155,12 +155,25 @@ export default { ...@@ -155,12 +155,25 @@ export default {
case 'changeDsp': case 'changeDsp':
let index = emitParams.index; let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName); let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list}; setglgRequest.setglg = { setgll: emitParams.list };
this.setgllAccts(setglgRequest, index); this.setgllAccts(setglgRequest, index);
break break
default: default:
return return
} }
} },
//最大金额
async cbsmax() {
let params = {
nom1cur: this.model.ledgrp.cbs.nom1.cur,
nom1amt: this.model.ledgrp.cbs.nom1.amt,
nomtop: this.model.ledgrp.rec.nomtop
};
let res = await Api.post('/service/letopn/cbsmax', params);
if (res.respCode == SUCCESS) {
this.model.ledgrp.cbs.max.cur = res.data.maxcur;
this.model.ledgrp.cbs.max.amt = res.data.maxamt;
}
},
}, },
}; };
...@@ -50,10 +50,10 @@ export default { ...@@ -50,10 +50,10 @@ export default {
{max: 18,message:"整数位不能超过14位",trigger:"blur"}, {max: 18,message:"整数位不能超过14位",trigger:"blur"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
// "ledgrp.rec.partcon":[ "ledgrp.rec.partcon":[
// {type: "string", required: false, message: "必输项",trigger:"blur"}, {type: "string", required: false, message: "必输项",trigger:"blur"},
// {max: 6,message:"长度不能超过6",trigger:"blur"} {max: 6,message:"长度不能超过6",trigger:"blur"}
// ], ],
"reqdat":[ "reqdat":[
{ required: false, message: "输入正确的日期"} { required: false, message: "输入正确的日期"}
], ],
......
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