Commit cd112514 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 a4958b0d 46acbc6d
...@@ -28,6 +28,15 @@ export default { ...@@ -28,6 +28,15 @@ export default {
if (model.lidgrp.ben.pts.extkey) { if (model.lidgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.ben)); ptsptaList.push(this.buildPtspta(model.lidgrp.ben));
} }
if (model.lidgrp.rmb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.rmb));
}
if (model.lidgrp.acb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.acb));
}
if (model.lidgrp.beb.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.beb));
}
let dataObj = { let dataObj = {
rec: { rec: {
objtyp: 'BRD', objtyp: 'BRD',
......
...@@ -5,6 +5,7 @@ export default { ...@@ -5,6 +5,7 @@ export default {
"liaall.limmod.limpts.nonrevflg1" :null, "liaall.limmod.limpts.nonrevflg1" :null,
"brdgrp.rec.docprbrol" :null, "brdgrp.rec.docprbrol" :null,
"brdgrp.rec.totamt" :null, "brdgrp.rec.totamt" :null,
"brdgrp.cbs.max2.amt":null,
"brtp.lidget.sdamod.dadsnd":[ "brtp.lidget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
...@@ -291,17 +292,23 @@ export default { ...@@ -291,17 +292,23 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
// "brdgrp.cbs.max.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
// "brdgrp.cbs.max2.amt":[ "brdgrp.cbs.max.amt":[
// {type: "number", required: false, message: "必输项"}, { type: 'string', required: true, message: '必输项' },
// {max: 18,message:"整数位不能超过14位"}, { max: 15, message: '整数位不能超过15位' },
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {
// ], pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/,
message: '小数位不能超过2位',
},
],
"brdgrp.cbs.max2.amt":[
{ type: 'string', required: false, message: '必输项' },
{ max: 15, message: '整数位不能超过15位' },
{
pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/,
message: '小数位不能超过2位',
},
],
"brdgrp.blk.chaded":[ "brdgrp.blk.chaded":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 200,message:"长度不能超过200"} {max: 200,message:"长度不能超过200"}
......
...@@ -30,6 +30,7 @@ export default class Litdav { ...@@ -30,6 +30,7 @@ export default class Litdav {
docsta: '', docsta: '',
orddat: '', orddat: '',
disdat: '', disdat: '',
advdat: '',
invref: '', invref: '',
rptref: '', rptref: '',
shpdat: '', shpdat: '',
...@@ -47,7 +48,7 @@ export default class Litdav { ...@@ -47,7 +48,7 @@ export default class Litdav {
branchinr: '', branchinr: '',
invtyp: '', invtyp: '',
bchkeyinr: '', bchkeyinr: '',
totamt: '0', totamt: '0.00',
totcur: '', totcur: '',
rtoaplflg: '', rtoaplflg: '',
inr: '', inr: '',
...@@ -62,11 +63,11 @@ export default class Litdav { ...@@ -62,11 +63,11 @@ export default class Litdav {
}, },
max: { max: {
cur: '', cur: '',
amt: '0' amt: '0.00'
}, },
max2: { max2: {
cur: '', cur: '',
amt: '0' amt: '0.00'
} }
}, },
rmb: { rmb: {
......
...@@ -119,7 +119,12 @@ ...@@ -119,7 +119,12 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="通知类型" prop="brdgrp.rec.advtyp"> <el-form-item label="通知类型" prop="brdgrp.rec.advtyp">
<c-select :code="codes.advtyp" v-model="model.brdgrp.rec.advtyp" style="width:100%" placeholder="请选择通知类型"> <c-select
:code="codes.advtyp"
v-model="model.brdgrp.rec.advtyp"
style="width:100%"
placeholder="请选择通知类型"
>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -127,16 +132,26 @@ ...@@ -127,16 +132,26 @@
<c-col :span="12"> <c-col :span="12">
<el-form-item label="建议付款日期" prop="brdgrp.rec.advdat"> <el-form-item label="建议付款日期" prop="brdgrp.rec.advdat">
<c-date-picker <c-date-picker
:disabled=" (this.model.brdgrp.rec.advtyp == '750' || this.model.brdgrp.rec.advtyp == 'OTH') " :disabled=" (this.model.brdgrp.rec.advtyp == '750' || this.model.brdgrp.rec.advtyp == 'oth') "
type="date" v-model="model.brdgrp.rec.advdat" style="width:100%" placeholder="请选择建议付款日期"></c-date-picker> type="date"
v-model="model.brdgrp.rec.advdat"
style="width:100%"
placeholder="请选择建议付款日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="不符点通知日期" prop="brdgrp.rec.disdat"> <el-form-item label="不符点通知日期" prop="brdgrp.rec.disdat">
<c-date-picker <c-date-picker
:disabled=" (this.model.brdgrp.rec.advtyp == '754' || this.model.brdgrp.rec.advtyp == 'OTH') " :disabled=" (this.model.brdgrp.rec.advtyp == '754' || this.model.brdgrp.rec.advtyp == 'oth') "
type="date" v-model="model.brdgrp.rec.disdat" style="width:100%" placeholder="请选择不符点通知日期"></c-date-picker> type="date"
v-model="model.brdgrp.rec.disdat"
style="width:100%"
placeholder="请选择不符点通知日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
</el-col> </el-col>
...@@ -176,19 +191,24 @@ ...@@ -176,19 +191,24 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="单行参考号" prop="brdgrp.prb.pts.ref"> <el-form-item label="单行参考号" prop="brdgrp.prb.pts.ref">
<c-input :disabled="true" v-model="model.brdgrp.prb.pts.ref" maxlength="16" placeholder="请输入编号"></c-input> <c-input :disabled="true" v-model="model.brdgrp.prb.pts.ref" maxlength="16" placeholder="请输入编号"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item prop="brdgrp.prb.pts.nam" label="单行名称"> <el-form-item prop="brdgrp.prb.pts.nam" label="单行名称">
<c-input :disabled="true" v-model="model.brdgrp.prb.pts.nam" maxlength="40" placeholder="请输入名称"></c-input> <c-input :disabled="true" v-model="model.brdgrp.prb.pts.nam" maxlength="40" placeholder="请输入名称"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="简略信息" prop="brdgrp.rec.nam"> <el-form-item label="简略信息" prop="brdgrp.rec.nam">
<c-input :disabled="true" v-model="model.brdgrp.rec.nam" maxlength="40" placeholder="请输入简略信息"></c-input> <c-input
:disabled="true"
v-model="model.brdgrp.rec.nam"
maxlength="40"
placeholder="请输入简略信息"
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -270,19 +290,28 @@ export default { ...@@ -270,19 +290,28 @@ export default {
immediate:true, immediate:true,
handler(){ handler(){
if(this.model.brdgrp.rec.advtyp == '750' ){ if(this.model.brdgrp.rec.advtyp == '750' ){
this.model.brdgrp.rec.advdat = ' ' this.model.brdgrp.rec.advdat = ""
this.model.brdgrp.blk.docdisflg= 'X' this.model.brdgrp.blk.docdisflg= 'X'
}else if(this.model.brdgrp.rec.advtyp == '754'){ }else if(this.model.brdgrp.rec.advtyp == '754'){
this.model.brdgrp.rec.disdat = ' ' this.model.brdgrp.rec.disdat = ""
}else if( this.model.brdgrp.rec.advtyp == 'OTH'){ }else if( this.model.brdgrp.rec.advtyp == 'oth'){
this.model.brdgrp.rec.advdat = ' ' this.model.brdgrp.rec.advdat = ""
this.model.brdgrp.rec.disdat = ' ' this.model.brdgrp.rec.disdat = ""
} }
} }
},
"model.brdgrp":{
immediate: true,
deep: true,
handler(val,oldval){
const res = this.model.brdgrp
if(res.cbs.max.cur !== "" || res.cbs.max.amt !== "" || this.model.lidgrp.apl.pts.adrblk !== ""){
this.model.brdgrp.cbs.max.cur=this.model.lidgrp.cbs.nom1.cur;
this.model.brdgrp.rec.nam = `${res.cbs.max.cur} ${res.cbs.max.amt} ${this.model.lidgrp.apl.pts.adrblk.substring(0,16)}`
}
} }
}, },
},
methods: {}, methods: {},
created: function() {} created: function() {}
}; };
......
...@@ -68,12 +68,14 @@ ...@@ -68,12 +68,14 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="12"> <c-col :span="12">
<el-form-item label="账户号地址编号" prop="brdgrp.acb.pts.extkey"> <el-form-item label="账户" prop="brdgrp.acb.pts.extkey">
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.brdgrp.acb.pts.extkey" v-model="model.brdgrp.acb.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入地址编码" placeholder="请输入地址编码"
@keyup.enter.native="
queryGridEtyPromptDialogData('ACB', 'B')"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" type="primary"> <c-button size="small" type="primary">
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-form-item label="单据金额" prop="brdgrp.cbs.max.cur"> <el-form-item label="单据金额" prop="brdgrp.cbs.max.cur">
<c-input <c-input
disabled disabled
v-model="model.brdgrp.cbs.max.cur" v-model="maxcur"
maxlength="3" maxlength="3"
placeholder="请输入单据金额" placeholder="请输入单据金额"
></c-input> ></c-input>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<el-form-item label="提取附加金额" prop="brdgrp.cbs.opn2.cur"> <el-form-item label="提取附加金额" prop="brdgrp.cbs.opn2.cur">
<c-select <c-select
disabled disabled
v-model="model.brdgrp.cbs.opn2.cur" v-model="opn2cur"
style="width: 100%" style="width: 100%"
placeholder="请选择附加金额" placeholder="请选择附加金额"
> >
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<el-form-item label="待支付金额" prop="brdgrp.rec.totcur"> <el-form-item label="待支付金额" prop="brdgrp.rec.totcur">
<c-input <c-input
disabled disabled
v-model="model.brdgrp.rec.totcur" v-model="rectotcur"
maxlength="3" maxlength="3"
placeholder="请选择币种" placeholder="请选择币种"
></c-input> ></c-input>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<c-col :span="12"> <c-col :span="12">
<el-form-item label="" label-width="10px" prop="brdgrp.rec.totamt"> <el-form-item label="" label-width="10px" prop="brdgrp.rec.totamt">
<c-input <c-input
v-model="model.brdgrp.rec.totamt" v-model="totamt"
placeholder="请输入金额" placeholder="请输入金额"
></c-input> ></c-input>
</el-form-item> </el-form-item>
...@@ -94,6 +94,8 @@ ...@@ -94,6 +94,8 @@
v-model="model.brdgrp.rmb.pts.extkey" v-model="model.brdgrp.rmb.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入地址编号" placeholder="请输入地址编号"
@keyup.enter.native="
queryGridEtyPromptDialogData('RMB', 'B')"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -124,6 +126,8 @@ ...@@ -124,6 +126,8 @@
v-model="model.brdgrp.acb.pts.extkey" v-model="model.brdgrp.acb.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入地址编号" placeholder="请输入地址编号"
@keyup.enter.native="
queryGridEtyPromptDialogData('ACB', 'B')"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -182,6 +186,8 @@ ...@@ -182,6 +186,8 @@
v-model="model.brdgrp.beb.pts.extkey" v-model="model.brdgrp.beb.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入地址编号" placeholder="请输入地址编号"
@keyup.enter.native="
queryGridEtyPromptDialogData('BEB', 'B')"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -221,6 +227,28 @@ export default { ...@@ -221,6 +227,28 @@ export default {
}, },
methods: {}, methods: {},
created: function () {}, created: function () {},
computed: {
totamt(){
const maxAmt = this.model.brdgrp.cbs.max.amt
const max2Amt = this.model.brdgrp.cbs.max2.amt
this.model.brdgrp.rec.totamt =
parseFloat(isNaN(maxAmt) || !maxAmt ? 0 : maxAmt) +
parseFloat(isNaN(max2Amt) || !max2Amt ? 0 : max2Amt)
return this.model.brdgrp.rec.totamt
} ,
maxcur(){
this.model.brdgrp.cbs.max.cur = this.model.lidgrp.cbs.nom1.cur
return this.model.brdgrp.cbs.max.cur
},
opn2cur(){
this.model.brdgrp.cbs.opn2.cur = this.model.lidgrp.cbs.nom1.cur
return this.model.brdgrp.cbs.opn2.cur
},
rectotcur(){
this.model.brdgrp.rec.totcur = this.model.lidgrp.cbs.nom1.cur
return this.model.brdgrp.rec.totcur
}
}
}; };
</script> </script>
<style></style> <style></style>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-form-item label="单据金额" prop="brdgrp.cbs.max.cur"> <el-form-item label="单据金额" prop="brdgrp.cbs.max.cur">
<c-input <c-input
disabled disabled
v-model="model.brdgrp.cbs.max.cur" v-model="maxcur"
maxlength="3" maxlength="3"
placeholder="请输入单据金额" placeholder="请输入单据金额"
></c-input> ></c-input>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-form-item label="提取附加金额" prop="brdgrp.cbs.opn2.cur"> <el-form-item label="提取附加金额" prop="brdgrp.cbs.opn2.cur">
<c-select <c-select
disabled disabled
v-model="model.brdgrp.cbs.opn2.cur" v-model="opn2cur"
style="width: 100%" style="width: 100%"
placeholder="请选择附加金额" placeholder="请选择附加金额"
> >
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<el-form-item label="待支付总额" prop="brdgrp.rec.totcur"> <el-form-item label="待支付总额" prop="brdgrp.rec.totcur">
<c-input <c-input
disabled disabled
v-model="model.brdgrp.rec.totcur" v-model="rectotcur"
maxlength="3" maxlength="3"
placeholder="请输入待支付总额" placeholder="请输入待支付总额"
></c-input> ></c-input>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<c-col :span="12"> <c-col :span="12">
<el-form-item label="" label-width="10px" prop="brdgrp.rec.totamt"> <el-form-item label="" label-width="10px" prop="brdgrp.rec.totamt">
<c-input <c-input
v-model="model.brdgrp.rec.totamt" v-model="totamt"
placeholder="请输入待支付总额" placeholder="请输入待支付总额"
></c-input> ></c-input>
</el-form-item> </el-form-item>
...@@ -87,12 +87,14 @@ ...@@ -87,12 +87,14 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="账户行" prop="brdgrp.acb.pts.extkey"> <el-form-item label="账户行" prop="brdgrp.acb.pts.extkey">
<c-fullbox> <c-fullbox>
<c-input <c-input
v-model="model.brdgrp.acb.pts.extkey" v-model="model.brdgrp.acb.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入账户银行" placeholder="请输入账户银行"
@keyup.enter.native="
queryGridEtyPromptDialogData('ACB', 'B')"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -124,6 +126,8 @@ ...@@ -124,6 +126,8 @@
v-model="model.brdgrp.beb.pts.extkey" v-model="model.brdgrp.beb.pts.extkey"
maxlength="16" maxlength="16"
placeholder="请输入受益人银行" placeholder="请输入受益人银行"
@keyup.enter.native="
queryGridEtyPromptDialogData('BEB', 'B')"
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -162,6 +166,28 @@ export default { ...@@ -162,6 +166,28 @@ export default {
}, },
methods: {}, methods: {},
created: function () {}, created: function () {},
computed: {
totamt(){
const maxAmt = this.model.brdgrp.cbs.max.amt
const max2Amt = this.model.brdgrp.cbs.max2.amt
this.model.brdgrp.rec.totamt =
parseFloat(isNaN(maxAmt) || !maxAmt ? 0 : maxAmt) +
parseFloat(isNaN(max2Amt) || !max2Amt ? 0 : max2Amt)
return this.model.brdgrp.rec.totamt
} ,
maxcur(){
this.model.brdgrp.cbs.max.cur = this.model.lidgrp.cbs.nom1.cur
return this.model.brdgrp.cbs.max.cur
},
opn2cur(){
this.model.brdgrp.cbs.opn2.cur = this.model.lidgrp.cbs.nom1.cur
return this.model.brdgrp.cbs.opn2.cur
},
rectotcur(){
this.model.brdgrp.rec.totcur = this.model.lidgrp.cbs.nom1.cur
return this.model.brdgrp.rec.totcur
}
}
}; };
</script> </script>
<style> <style>
......
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.lidgrp.apl.pts.extkey) { if (model.lidgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.lidgrp.avb)); ptsptaList.push(this.buildPtspta(model.lidgrp.avb));
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,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,
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,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,
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,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,
...@@ -114,20 +114,20 @@ export default { ...@@ -114,20 +114,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,
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,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: {
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,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: {
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,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,22 +20,22 @@ export default { ...@@ -20,22 +20,22 @@ 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/litdla/init', { const res = await Api.post('/service/litdla/init', {
...params, ...params,
transName: this.trnName, transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL', userId: window.sessionStorage.userId || 'ZL',
lidgrp:{ lidgrp: {
rec:{ rec: {
inr:this.$route.query.inr inr: this.$route.query.inr
} }
} }
}); });
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
}, },
// 兼容处理在前端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]) {
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
purposChange(key, value) { purposChange(key, value) {
this.handleChangeForm(key, value); this.handleChangeForm(key, value);
}, },
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,
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
return params return params
}, },
// 公共组件setmod处理方式改变触发联动 // 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) { changeSetmodModel(emitParams) {
let reqParams = {} let reqParams = {}
switch (emitParams.code) { switch (emitParams.code) {
case 'processMethods': case 'processMethods':
...@@ -170,24 +170,24 @@ export default { ...@@ -170,24 +170,24 @@ 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
} }
}, },
onSeainf() {}, onSeainf() { },
max2Amt(){ max2Amt() {
this.executeDefault("max2.amt").then( this.executeDefault("max2.amt").then(
(res) => { (res) => {
if (res.respCode == SUCCESS){ if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data); Utils.copyValueFromVO(this.model, res.data);
} }
} }
); );
}, },
choose(row){ choose(row) {
this.model.amenbr = row.srcStr.split('\t')[0] this.model.amenbr = row.srcStr.split('\t')[0]
this.model.amecur = row.srcStr.split('\t')[2] this.model.amecur = row.srcStr.split('\t')[2]
this.model.reduceamt = row.srcStr.split('\t')[3] this.model.reduceamt = row.srcStr.split('\t')[3]
......
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