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 {
if (model.lidgrp.ben.pts.extkey) {
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 = {
rec: {
objtyp: 'BRD',
......
......@@ -5,6 +5,7 @@ export default {
"liaall.limmod.limpts.nonrevflg1" :null,
"brdgrp.rec.docprbrol" :null,
"brdgrp.rec.totamt" :null,
"brdgrp.cbs.max2.amt":null,
"brtp.lidget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
......@@ -291,17 +292,23 @@ export default {
{type: "string", required: false, message: "必输项"},
{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":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"brdgrp.cbs.max.amt":[
{ type: 'string', required: true, message: '必输项' },
{ max: 15, message: '整数位不能超过15位' },
{
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":[
{type: "string", required: false, message: "必输项"},
{max: 200,message:"长度不能超过200"}
......
......@@ -30,6 +30,7 @@ export default class Litdav {
docsta: '',
orddat: '',
disdat: '',
advdat: '',
invref: '',
rptref: '',
shpdat: '',
......@@ -47,7 +48,7 @@ export default class Litdav {
branchinr: '',
invtyp: '',
bchkeyinr: '',
totamt: '0',
totamt: '0.00',
totcur: '',
rtoaplflg: '',
inr: '',
......@@ -62,11 +63,11 @@ export default class Litdav {
},
max: {
cur: '',
amt: '0'
amt: '0.00'
},
max2: {
cur: '',
amt: '0'
amt: '0.00'
}
},
rmb: {
......
......@@ -119,7 +119,12 @@
<c-col :span="24">
<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>
</el-form-item>
</c-col>
......@@ -127,16 +132,26 @@
<c-col :span="12">
<el-form-item label="建议付款日期" prop="brdgrp.rec.advdat">
<c-date-picker
: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>
: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="请选择建议付款日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="不符点通知日期" prop="brdgrp.rec.disdat">
<c-date-picker
: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>
: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="请选择不符点通知日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</el-form-item>
</c-col>
</el-col>
......@@ -176,19 +191,24 @@
</el-form-item>
</c-col>
<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>
</el-form-item>
</c-col>
<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>
</el-form-item>
</c-col>
<c-col :span="24">
<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>
</c-col>
<c-col :span="24">
......@@ -270,19 +290,28 @@ export default {
immediate:true,
handler(){
if(this.model.brdgrp.rec.advtyp == '750' ){
this.model.brdgrp.rec.advdat = ' '
this.model.brdgrp.rec.advdat = ""
this.model.brdgrp.blk.docdisflg= 'X'
}else if(this.model.brdgrp.rec.advtyp == '754'){
this.model.brdgrp.rec.disdat = ' '
}else if( this.model.brdgrp.rec.advtyp == 'OTH'){
this.model.brdgrp.rec.advdat = ' '
this.model.brdgrp.rec.disdat = ' '
this.model.brdgrp.rec.disdat = ""
}else if( this.model.brdgrp.rec.advtyp == 'oth'){
this.model.brdgrp.rec.advdat = ""
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: {},
created: function() {}
};
......
......@@ -68,12 +68,14 @@
<c-col :span="24">
<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-input
v-model="model.brdgrp.acb.pts.extkey"
maxlength="16"
placeholder="请输入地址编码"
@keyup.enter.native="
queryGridEtyPromptDialogData('ACB', 'B')"
></c-input>
<template slot="footer">
<c-button size="small" type="primary">
......
......@@ -5,7 +5,7 @@
<el-form-item label="单据金额" prop="brdgrp.cbs.max.cur">
<c-input
disabled
v-model="model.brdgrp.cbs.max.cur"
v-model="maxcur"
maxlength="3"
placeholder="请输入单据金额"
></c-input>
......@@ -25,7 +25,7 @@
<el-form-item label="提取附加金额" prop="brdgrp.cbs.opn2.cur">
<c-select
disabled
v-model="model.brdgrp.cbs.opn2.cur"
v-model="opn2cur"
style="width: 100%"
placeholder="请选择附加金额"
>
......@@ -72,7 +72,7 @@
<el-form-item label="待支付金额" prop="brdgrp.rec.totcur">
<c-input
disabled
v-model="model.brdgrp.rec.totcur"
v-model="rectotcur"
maxlength="3"
placeholder="请选择币种"
></c-input>
......@@ -82,7 +82,7 @@
<c-col :span="12">
<el-form-item label="" label-width="10px" prop="brdgrp.rec.totamt">
<c-input
v-model="model.brdgrp.rec.totamt"
v-model="totamt"
placeholder="请输入金额"
></c-input>
</el-form-item>
......@@ -94,6 +94,8 @@
v-model="model.brdgrp.rmb.pts.extkey"
maxlength="16"
placeholder="请输入地址编号"
@keyup.enter.native="
queryGridEtyPromptDialogData('RMB', 'B')"
></c-input>
<template slot="footer">
......@@ -124,6 +126,8 @@
v-model="model.brdgrp.acb.pts.extkey"
maxlength="16"
placeholder="请输入地址编号"
@keyup.enter.native="
queryGridEtyPromptDialogData('ACB', 'B')"
></c-input>
<template slot="footer">
......@@ -182,6 +186,8 @@
v-model="model.brdgrp.beb.pts.extkey"
maxlength="16"
placeholder="请输入地址编号"
@keyup.enter.native="
queryGridEtyPromptDialogData('BEB', 'B')"
></c-input>
<template slot="footer">
......@@ -221,6 +227,28 @@ export default {
},
methods: {},
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>
<style></style>
......@@ -5,7 +5,7 @@
<el-form-item label="单据金额" prop="brdgrp.cbs.max.cur">
<c-input
disabled
v-model="model.brdgrp.cbs.max.cur"
v-model="maxcur"
maxlength="3"
placeholder="请输入单据金额"
></c-input>
......@@ -26,7 +26,7 @@
<el-form-item label="提取附加金额" prop="brdgrp.cbs.opn2.cur">
<c-select
disabled
v-model="model.brdgrp.cbs.opn2.cur"
v-model="opn2cur"
style="width: 100%"
placeholder="请选择附加金额"
>
......@@ -69,7 +69,7 @@
<el-form-item label="待支付总额" prop="brdgrp.rec.totcur">
<c-input
disabled
v-model="model.brdgrp.rec.totcur"
v-model="rectotcur"
maxlength="3"
placeholder="请输入待支付总额"
></c-input>
......@@ -79,7 +79,7 @@
<c-col :span="12">
<el-form-item label="" label-width="10px" prop="brdgrp.rec.totamt">
<c-input
v-model="model.brdgrp.rec.totamt"
v-model="totamt"
placeholder="请输入待支付总额"
></c-input>
</el-form-item>
......@@ -87,12 +87,14 @@
</c-col>
<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-input
v-model="model.brdgrp.acb.pts.extkey"
maxlength="16"
placeholder="请输入账户银行"
@keyup.enter.native="
queryGridEtyPromptDialogData('ACB', 'B')"
></c-input>
<template slot="footer">
......@@ -124,6 +126,8 @@
v-model="model.brdgrp.beb.pts.extkey"
maxlength="16"
placeholder="请输入受益人银行"
@keyup.enter.native="
queryGridEtyPromptDialogData('BEB', 'B')"
></c-input>
<template slot="footer">
......@@ -162,6 +166,28 @@ export default {
},
methods: {},
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>
<style>
......
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,
......@@ -160,7 +160,7 @@ export default {
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
changeSetmodModel(emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
......@@ -170,24 +170,24 @@ 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){
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
}
);
},
choose(row){
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]
......
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