Commit 0d5f807c by lixinyi

brtudp联动修改

parent 2efb8141
......@@ -163,7 +163,7 @@ export default {
],
'aamset.utlamt': [
{ type: 'string', required: false, message: '必输项' },
{ max: 18, message: '整数位不能超过14位' },
{ max: 18, message: '整数位不能超过18位' },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: '小数位不能超过3位' }
],
'brdgrp.prb.adrelc': [
......
......@@ -111,8 +111,8 @@ export default class Brtudp {
},
},
aamset: {
utlamt: '',
utlamt2: ''
utlamt: '0.00',
utlamt2: '0.00'
},
cfabrt: {
recgrp: {
......@@ -173,12 +173,13 @@ export default class Brtudp {
expdat: '',
ownref: '',
branchinr:'',
inr:''
inr:'',
avbby:'',
},
cbs: {
opn1: {
cur: '',
amt: ''
amt: '0.00'
}
}
},
......
......@@ -13,12 +13,12 @@
<el-collapse-item title="付款通知" name="mt754p" v-if="model.brdgrp.rec.advtyp == '754'">
<m-mt754p :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="其他通知" name="othadvtypp" v-if="model.brdgrp.rec.advtyp == 'oth'">
<m-othadvtypp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="装运详情" name="shpdet" v-if="model.brdgrp.rec.dscinsflg">
<m-shpdet :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="通知详情" name="othadvtypp" v-if="model.brdgrp.rec.advtyp == 'oth'">
<m-othadvtypp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="外债远期信用证数据采集" name="cfap">
<m-cfap :model="model" :codes="codes" />
</el-collapse-item>
......
......@@ -79,7 +79,6 @@
v-model="model.brdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请输入金额"
:code="codes.curtxt1"
disabled
>
</c-select>
......@@ -105,7 +104,6 @@
v-model="model.brdgrp.cbs.opn1.cur"
maxlength="3"
placeholder="请输入金额"
:code="codes.curtxt"
disabled
>
</c-select>
......@@ -256,7 +254,7 @@
<c-col :span="13">
<el-form-item label="承兑金额" prop="setmod.doccur">
<c-input
v-model="model.setmod.doccur"
v-model="doccur"
style="width: 100%"
placeholder="请输入承兑金额"
disabled
......@@ -274,10 +272,9 @@
<c-col :span="13">
<el-form-item label="单据金额" prop="brdgrp.cbs.opn2.cur">
<c-select
v-model="model.brdgrp.cbs.opn2.cur"
v-model="opn2cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
disabled
>
</c-select>
......@@ -296,10 +293,9 @@
<c-col :span="13">
<el-form-item label="附加金额" prop="brdgrp.cbs.opn2.cur">
<c-select
v-model="model.brdgrp.cbs.opn2.cur"
v-model="opn2cur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
disabled
>
</c-select>
......@@ -322,6 +318,7 @@
style="width: 100%"
placeholder="请选择类型"
:code="paysmt"
@change="sftmtChange()"
>
</c-select>
</el-form-item>
......@@ -479,8 +476,8 @@
:model="model"
:argadr="{
title: '',
grp: 'brtp',
rol: 'oth',
grp: 'brdgrp',
rol: 'apl',
}"
:disabled="true"
:isAdrblk="false"
......@@ -516,9 +513,120 @@ export default {
],
};
},
methods: {},
methods: {
sftmtChange:function () {
if(this,this.model.sftmt != ''){
this.model.brdgrp.tag72add='We acknowledge receipt of documents and will settle as follows:'
}
}
},
created: function () {},
computed: {},
computed: {
opn2cur(){
this.model.brdgrp.cbs.opn2.cur = this.model.brdgrp.cbs.max.cur
return this.model.brdgrp.cbs.opn2.cur
},
doccur(){
this.model.setmod.doccur = this.model.brdgrp.cbs.max.cur
return this.model.setmod.doccur
} ,
},
watch :{
"model.sftmt":{
immediate: true,
handler(val, oldVal) {
if(val != ''){
this.model.brdgrp.tag72add='We acknowledge receipt of documents and will settle as follows:'
}
},
},
"model.setmod.docamt":{
immediate: true,
handler(val, oldVal) {
var utlamt=this.model.setmod.docamt-this.model.aamset.utlamt2;
this.model.aamset.utlamt = utlamt.toString();
},
},
"lidgrp.rec.avbby":{
handler(val, oldVal) {
this.model.brdgrp.rec.docflg = this.model.lidgrp.rec.avbby;
},
},
"brdgrp.rec": {
immediate: true,
handler(val, oldVal) {
var rec = this.model.brdgrp.rec;
if(rec.advdat != '' && rec.advtyp == '754'){
if(rec.relgodflg != ''){
if(rec.rcvdat == ''){
rec.docsta = 'A';
} else {
rec.docsta = 'B';
}
} else{
if(rec.rcvdat == ''){
rec.docsta = 'C';
} else {
rec.docsta = 'D';
}
}
}
if(rec.disdat != ''&& rec.advtyp == '750') {
if(rec.rcvdat == ''){
rec.docsta = 'E';
} else {
rec.docsta = 'F';
}
}
if(rec.advtyp == 'oth'){
if(rec.rcvdat == ''){
rec.docsta = 'O';
}
}
if(rec.disdat != '' && rec.Advdat != ''){
if( rec.rcvdat!='' && rec.dscinsflg == '' )
{
rec.docsta = 'G';
}
if( rec.rcvdat !='' && this.model.brdgrp.blk.docdis =='' && rec.dscinsflg !='' )
{
rec.docsta = 'H';
}
if( rec.rcvdat != '' && this.model.brdgrp.blk.docdis !='' && rec.dscinsflg !='' )
{
rec.docsta = 'I';
}
}
if( rec.relgodflg != '' )
{
if( rec.rcvdat == '')
{
rec.docsta = 'J';
}
else
{
rec.docsta = 'K';
}
}
if( rec.approvcod != '' )
{
rec.docsta = 'L';
}
if( rec.acpnowflg != '' )
{
rec.docsta = 'M';
}
if( rec.frepayflg != '' )
{
rec.docsta = 'N';
}
if( rec.advdocflg != '' )
{
rec.docsta = 'R';
}
},
},
},
};
</script>
......
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