Commit 744cb2fc by liaoxing

bctame 修改

parent 5d589afd
......@@ -267,7 +267,7 @@ let checkObj = {
"bcdgrp.blk.colins":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
// {max: 65,message:"长度不能超过65"}
],
......
......@@ -82,7 +82,7 @@ export default class Bctame{
extkey:"", // Responsible User .bctp.usr.extkey
},
docgrdm:{
docgrd:[],
docgrdVos:[],
docdsclab:"", // Label of document description .bctp.docgrdm.docdsclab
},
drep:{
......@@ -131,7 +131,7 @@ export default class Bctame{
},
},
rec:{
matpercnt:"", // Tenor Data .oldbcdgrp.rec.matpercnt
matpercnt:"0", // Tenor Data .oldbcdgrp.rec.matpercnt
matpertyp:"", // Days/Months or Years for Maturity Period .oldbcdgrp.rec.matpertyp
matperbeg:"", // Start of Maturity Period MATBEG .oldbcdgrp.rec.matperbeg
matdat:"", // Maturity Date .oldbcdgrp.rec.matdat
......@@ -153,11 +153,12 @@ export default class Bctame{
newamt: '',
newexpdat: '',
trnfeetxt: '',
ameamt: '',
ameamt: '0',
newcur: '',
prepertxts18: '',
nomspc: '',
reqcan: ''
reqcan: '',
newmatpercnt: '0',
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
......
......@@ -75,10 +75,10 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item label="修改的金额" prop="trnmod.swiadd.amecur">
<el-form-item label="修改的金额" prop="swiadd.amecur">
<c-select
disabled
v-model="model.trnmod.swiadd.amecur"
v-model="swiaddNew.amecur"
style="width: 100%"
placeholder=""
>
......@@ -98,10 +98,10 @@
label=""
style="text-align: left; margin-left: 5px"
label-width="0"
prop="trnmod.swiadd.ameamt"
prop="swiadd.ameamt"
>
<c-input-currency
v-model="model.trnmod.swiadd.ameamt"
v-model="model.swiadd.ameamt"
placeholder="修改的金额"
></c-input-currency>
</el-form-item>
......@@ -110,10 +110,10 @@
<c-col :span="24">
<c-col :span="12">
<el-form-item label="修改后的金额" prop="trnmod.swiadd.newcur">
<el-form-item label="修改后的金额" prop="swiadd.newcur">
<c-select
disabled
v-model="model.trnmod.swiadd.newcur"
v-model="swiaddNew.newcur"
style="width: 100%"
placeholder=""
>
......@@ -133,10 +133,10 @@
label=""
style="text-align: left; margin-left: 5px"
label-width="0"
prop="trnmod.swiadd.newamt"
prop="swiadd.newamt"
>
<c-input-currency
v-model="model.trnmod.swiadd.newamt"
v-model="swiaddNew.newamt"
placeholder="修改后的金额"
></c-input-currency>
</el-form-item>
......@@ -228,12 +228,12 @@
<c-col :span="8">
<el-form-item
label="修改后的付款期限"
prop="trnmod.swiadd.newmatpercnt"
prop="swiadd.newmatpercnt"
style="width: 100%"
>
<c-input
style="width: 100%"
v-model="model.trnmod.swiadd.newmatpercnt"
v-model="model.swiadd.newmatpercnt"
placeholder="修改后的付款期限"
:disabled="model.newdoctypcod === 'P'"
></c-input>
......@@ -245,10 +245,10 @@
style="margin-left: 5px"
label=""
label-width="0"
prop="trnmod.swiadd.newmatpertyp"
prop="swiadd.newmatpertyp"
>
<c-select
v-model="model.trnmod.swiadd.newmatpertyp"
v-model="model.swiadd.newmatpertyp"
style="width: 100%"
placeholder="到期期限天/月或年"
:disabled="model.newdoctypcod === 'P'"
......@@ -269,10 +269,10 @@
style="margin-left: 5px"
label=""
label-width="0"
prop="trnmod.swiadd.newmatperbeg"
prop="swiadd.newmatperbeg"
>
<c-select
v-model="model.trnmod.swiadd.newmatperbeg"
v-model="model.swiadd.newmatperbeg"
style="width: 100%"
placeholder=""
:disabled="model.newdoctypcod === 'P'"
......@@ -302,10 +302,10 @@
</c-col>
<c-col :span="24">
<el-form-item label="修改后单据到期日" prop="trnmod.swiadd.newmatdat">
<el-form-item label="修改后单据到期日" prop="swiadd.newmatdat">
<c-date-picker
type="date"
v-model="model.trnmod.swiadd.newmatdat"
v-model="model.swiadd.newmatdat"
style="width: 100%"
placeholder="修改后单据到期日"
:disabled="model.newdoctypcod === 'P'"
......@@ -314,11 +314,11 @@
</c-col>
<c-col :span="24">
<el-form-item label="更多的修改" prop="trnmod.swiadd.ametxt">
<el-form-item label="更多的修改" prop="swiadd.ametxt">
<c-input
:rows="4"
type="textarea"
v-model="model.trnmod.swiadd.ametxt"
v-model="model.swiadd.ametxt"
maxlength="35"
show-word-limit
placeholder="更多的修改"
......@@ -367,6 +367,14 @@ export default {
...Event,
},
created: function () {},
computed: {
swiaddNew(){
this.model.swiadd.newcur =this.model.oldbcdgrp.cbs.max.cur
this.model.swiadd.amecur =this.model.oldbcdgrp.cbs.max.cur
this.model.swiadd.newamt =parseInt(this.model.oldbcdgrp.cbs.max.amt) + parseInt(this.model.swiadd.ameamt)
return this.model.swiadd
}
}
};
</script>
<style>
......
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