Commit f4baa74d by WH

Merge remote-tracking branch 'origin/settle-test-20230110' into settle-test-20230110

parents e7977683 4716d6d5
...@@ -294,7 +294,7 @@ export default { ...@@ -294,7 +294,7 @@ export default {
], ],
"brdgrp.cbs.max.amt":[ "brdgrp.cbs.max.amt":[
{ type: 'string', required: true, message: '必输项' }, //{ type: 'string', required: true, message: '必输项' },
{ max: 15, message: '整数位不能超过15位' }, { max: 15, message: '整数位不能超过15位' },
{ {
pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/,
...@@ -302,7 +302,7 @@ export default { ...@@ -302,7 +302,7 @@ export default {
}, },
], ],
"brdgrp.cbs.max2.amt":[ "brdgrp.cbs.max2.amt":[
{ type: 'string', required: false, message: '必输项' }, //{ type: 'string', required: false, message: '必输项' },
{ max: 15, message: '整数位不能超过15位' }, { max: 15, message: '整数位不能超过15位' },
{ {
pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/,
......
...@@ -59,7 +59,7 @@ export default class Litdav { ...@@ -59,7 +59,7 @@ export default class Litdav {
cbs: { cbs: {
opn2: { opn2: {
cur: '', cur: '',
amt: '' amt: '0.00'
}, },
max: { max: {
cur: '', cur: '',
...@@ -113,7 +113,11 @@ export default class Litdav { ...@@ -113,7 +113,11 @@ export default class Litdav {
cbs: { cbs: {
opn1: { opn1: {
cur: '', cur: '',
amt: '' amt: '0.00'
},
opn2: {
cur: '',
amt: '0.00'
}, },
nom1: { nom1: {
cur: '', cur: '',
......
...@@ -294,6 +294,7 @@ export default { ...@@ -294,6 +294,7 @@ export default {
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 = ""
this.model.brdgrp.blk.docdisflg= ''
}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 = ""
......
...@@ -173,30 +173,30 @@ export default { ...@@ -173,30 +173,30 @@ export default {
// return this.model.brdgrp.rec.totamt // return this.model.brdgrp.rec.totamt
// } // }
}, },
// watch:{ watch:{
// "model.brdgrp.cbs.max.amt":{ "model.brdgrp":{
// handler(val,oldVal){ immediate:true,
// this.model.brdgrp.rec.totamt = parseFloat(val)+parseFloat(this.model.brdgrp.cbs.max2.amt) deep: true,
// if(isNaN(this.model.brdgrp.rec.totamt)){ handler(val,oldVal){
// this.model.brdgrp.rec.totamt=0 const max2Amt = this.model.brdgrp.cbs.max2.amt
// } const opn2Amt = this.model.lidgrp.cbs.opn2.amt
// } const maxAmt = this.model.brdgrp.cbs.max.amt
// }, const opn1Amt = this.model.lidgrp.cbs.opn1.amt
// "model.brdgrp.cbs.max2.amt":{ var docdis = this.model.brdgrp.blk.docdis
// handler(val,oldVal){ const amt2=parseFloat(isNaN(max2Amt) || !max2Amt ? 0 : max2Amt) -parseFloat(isNaN(opn2Amt) || !opn2Amt ? 0 : opn2Amt)
// this.model.brdgrp.rec.totamt = parseFloat(val)+parseFloat(this.model.brdgrp.cbs.max.amt) const amt1=parseFloat(isNaN(maxAmt) || !maxAmt ? 0 : maxAmt) -parseFloat(isNaN(opn1Amt) || !opn1Amt ? 0 : opn1Amt)
// if(isNaN(this.model.brdgrp.rec.totamt)){ if(amt1>0)
// this.model.brdgrp.rec.totamt=0 {
// } docdis = `The LC is overdrawn by ${this.model.brdgrp.cbs.opn2.cur} ${amt1} \n`
// } }
// } if(amt2>0)
// "model.brdgrp.cbs":{ {
// handler(val,oldVal){ docdis = `${docdis}The Additional Amount is overdrawn by ${this.model.brdgrp.cbs.opn2.cur} ${amt2}`
// isNaN(this.model.brdgrp.cbs.max.amt) ? 0 : this.model.brdgrp.cbs.max.amt }
// isNaN(this.model.brdgrp.cbs.max2.amt) ? 0 : this.model.brdgrp.cbs.max2.amt this.model.brdgrp.blk.docdis=docdis
// } }
// } },
// } }
}; };
</script> </script>
<style> <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