Commit 11f59d91 by lixinyi

litopn详情修改

parent 36100273
...@@ -463,7 +463,7 @@ export default { ...@@ -463,7 +463,7 @@ export default {
'lidgrp.rec.stagod': [{ required: true, message: '必输项' }], 'lidgrp.rec.stagod': [{ required: true, message: '必输项' }],
'lidgrp.rec.tenmaxday': [ 'lidgrp.rec.tenmaxday': [
{ type: 'number', required: true, message: '请输入数字' }, { type: 'number', message: '请输入数字' },
{ type: 'number', max: 999, message: '不能超过999' }, { type: 'number', max: 999, message: '不能超过999' },
{ pattern: /(^-?[1-9][0-9]{0,2}$)|0/, message: '-999至999之间' }, { pattern: /(^-?[1-9][0-9]{0,2}$)|0/, message: '-999至999之间' },
// ^-?[1-9]\d*$   //匹配整数 // ^-?[1-9]\d*$   //匹配整数
...@@ -526,10 +526,10 @@ export default { ...@@ -526,10 +526,10 @@ export default {
{ type: 'string', required: true, message: '必输项' }, { type: 'string', required: true, message: '必输项' },
{ max: 35, message: '长度不能超过35' }, { max: 35, message: '长度不能超过35' },
], ],
'lidgrp.ini.pts.adrblk': [ // 'lidgrp.ini.pts.adrblk': [
{ type: 'string', required: false, message: '必输项' }, // { type: 'string', required: false, message: '必输项' },
{ max: 35, message: '长度不能超过35' }, // { max: 35, message: '长度不能超过35' },
], // ],
'lidgrp.ini.dbfadrblkcn': [ 'lidgrp.ini.dbfadrblkcn': [
{ type: 'string', required: true, message: '必输项' }, { type: 'string', required: true, message: '必输项' },
{ max: 35, message: '长度不能超过35' }, { max: 35, message: '长度不能超过35' },
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="名称地址" prop="lidgrp.drw.pts.adrblk"> <el-form-item label="名称地址" prop="lidgrp.drw.pts.adrblk" :required="flag7">
<c-input <c-input
type="textarea" type="textarea"
:disabled="this.flag2" :disabled="this.flag2"
...@@ -309,6 +309,7 @@ ...@@ -309,6 +309,7 @@
<el-form-item <el-form-item
label="远期汇票最大期限(天)" label="远期汇票最大期限(天)"
prop="lidgrp.rec.tenmaxday" prop="lidgrp.rec.tenmaxday"
:required="flag8"
> >
<c-input <c-input
:disabled="!!(this.model.lidgrp.rec.avbby == 'P')" :disabled="!!(this.model.lidgrp.rec.avbby == 'P')"
...@@ -338,7 +339,8 @@ export default { ...@@ -338,7 +339,8 @@ export default {
flag4: true, flag4: true,
flag5: false, flag5: false,
flag6: false, flag6: false,
flag7: false,
flag8: true,
}; };
}, },
methods: { methods: {
...@@ -385,18 +387,22 @@ export default { ...@@ -385,18 +387,22 @@ export default {
this.flag1 = false; this.flag1 = false;
this.flag2 = true; this.flag2 = true;
this.flag3 = true; this.flag3 = true;
this.flag7 = false;
this.model.lidgrp.blk.defdet="days after B/L date" this.model.lidgrp.blk.defdet="days after B/L date"
} }
if (val == "N") { if (val == "N") {
this.flag1 = false; this.flag1 = false;
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
this.flag7 = true;
this.model.lidgrp.blk.defdet="days after B/L date" this.model.lidgrp.blk.defdet="days after B/L date"
} }
if (val == "P") { if (val == "P") {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
this.flag7 = false;
this.flag8 = false;
this.model.lidgrp.rec.tenmaxday == 0 this.model.lidgrp.rec.tenmaxday == 0
this.model.lidgrp.blk.defdet="" this.model.lidgrp.blk.defdet=""
} }
...@@ -404,12 +410,14 @@ export default { ...@@ -404,12 +410,14 @@ export default {
this.flag1 = true; this.flag1 = true;
this.flag2 = true; this.flag2 = true;
this.flag3 = false; this.flag3 = false;
this.flag7 = false;
this.model.lidgrp.blk.defdet="" this.model.lidgrp.blk.defdet=""
} }
if (val == "A") { if (val == "A") {
this.flag1 = true; this.flag1 = true;
this.flag2 = false; this.flag2 = false;
this.flag3 = true; this.flag3 = true;
this.flag7 = true;
this.model.lidgrp.blk.defdet="" this.model.lidgrp.blk.defdet=""
} }
}, },
......
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