Commit 075ac582 by lixinyi

Litopn附加金额联动修改

parent cb470a5d
......@@ -1018,7 +1018,7 @@ export default {
{ max: 8, message: '长度不能超过8' },
],
'lidgrp.cbs.nom1.cur': [
{ type: 'string', required: true },
{ type: 'string', required: true , message: '必输项' },
{ max: 8, message: '长度不能超过8' },
],
};
......
......@@ -316,7 +316,7 @@
label="远期汇票最大期限(天)"
prop="lidgrp.rec.tenmaxday"
:rules="[
{ required:flag8,pattern:[0], message:'必输项'},
{ required:flag8,pattern:/^((?!^-[1-9]\d*|0$).)*$/, message:'必输项'},
{ type: 'number', message: '请输入数字' },
{ type: 'number', max: 999, message: '不能超过999' },
{ pattern: /(^-?[1-9][0-9]{0,2}$)|0/, message: '-999至999之间' },
......
......@@ -286,7 +286,14 @@
</c-col>
<c-col :span="24">
<el-form-item label="其他适用规则" prop="lidgrp.rec.apprultxt">
<el-form-item
label="其他适用规则"
prop="lidgrp.rec.apprultxt"
:rules="[
{ required:!flag, message:'必输项'},
{ max: 35, message: '长度不能超过35' },
]"
>
<c-input
v-model="model.lidgrp.rec.apprultxt"
maxlength="35"
......@@ -660,7 +667,27 @@ export default {
}
}
},
"model.litp.aamp.aammod.addamtflg":{
immediate: true,
deep: true,
handler(val, oldVal) {
if (val == "X") {
this.model.lidgrp.cbs.max2.cur = this.model.lidgrp.cbs.nom1.cur;
this.model.lidgrp.cbs.opn2.cur = this.model.lidgrp.cbs.nom1.cur;
} else {
this.model.lidgrp.cbs.max2.cur = "";
this.model.lidgrp.cbs.opn2.cur = "";
}
},
},
"model.lidgrp.cbs.max2.amt":{
immediate: true,
deep: true,
handler(val, oldVal) {
this.model.lidgrp.cbs.opn2.amt = val;
this.model.lidgrp.blk.addamtcov = `${this.model.lidgrp.cbs.opn2.cur} ${val} `
},
},
},
computed: {
......
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