Commit b517561c by xionglin

litdav

parent b30612bf
...@@ -117,10 +117,10 @@ export default { ...@@ -117,10 +117,10 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"brdgrp.rec.totamt":[ // "brdgrp.rec.totamt":[
{max: 18,required: true,message:"整数位不能超过14位"}, // {max: 18,required: true,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], // ],
"brdgrp.prb.pts.adrblk":[ "brdgrp.prb.pts.adrblk":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 140,message:"长度不能超过140"} {max: 140,message:"长度不能超过140"}
......
...@@ -91,11 +91,11 @@ export default class Litdav { ...@@ -91,11 +91,11 @@ export default class Litdav {
}, },
max: { max: {
cur: '', cur: '',
amt: '' amt: '0'
}, },
max2: { max2: {
cur:'', cur:'',
amt: '' amt: '0'
} }
}, },
rmb: { rmb: {
......
...@@ -135,6 +135,25 @@ export default { ...@@ -135,6 +135,25 @@ export default {
methods: {}, methods: {},
created: function() {}, created: function() {},
watch:{
"model.brdgrp.cbs.max.amt":{
handler(val,oldVal){
this.model.brdgrp.rec.totamt = parseFloat(val)+parseFloat(this.model.brdgrp.cbs.max2.amt)
if(isNaN(this.model.brdgrp.rec.totamt)){
this.model.brdgrp.rec.totamt=0
}
}
},
"model.brdgrp.cbs.max2.amt":{
handler(val,oldVal){
this.model.brdgrp.rec.totamt = parseFloat(val)+parseFloat(this.model.brdgrp.cbs.max.amt)
if(isNaN(this.model.brdgrp.rec.totamt)){
this.model.brdgrp.rec.totamt=0
}
}
}
}
}; };
</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