Commit 0d1be79f by 孙杰

添加规则

parent 75059cef
...@@ -101,6 +101,7 @@ export default { ...@@ -101,6 +101,7 @@ export default {
"didgrp.blk.adlcnd": [checkDidgrpBlkAdlcndN100, checkDidgrpBlkAdlcndN100,], "didgrp.blk.adlcnd": [checkDidgrpBlkAdlcndN100, checkDidgrpBlkAdlcndN100,],
"litameadv": [checkLitameadvN100,ruleLitameadvN100,], "litameadv": [checkLitameadvN100,ruleLitameadvN100,],
"liaall.liaccv.relcshpct": [checkLiaallLiaccvRelcshpctN100,], "liaall.liaccv.relcshpct": [checkLiaallLiaccvRelcshpctN100,],
"didgrp.rec.bdflg":[resetDidgrpRecBdflg,],
} }
/** /**
* source:liaall.@0019.script * source:liaall.@0019.script
...@@ -512,6 +513,10 @@ function checkDidgrpAplPtsAdrblkN950(rule, value, callback) { ...@@ -512,6 +513,10 @@ function checkDidgrpAplPtsAdrblkN950(rule, value, callback) {
*/ */
function checkDidgrpRecLcrtypN900(rule, value, callback) { function checkDidgrpRecLcrtypN900(rule, value, callback) {
callback() callback()
//清空转让行相关字段
this.model.didgrp.cmb.pts.bankno = "";
this.model.didgrp.cmb.pts.jigomc = "";
this.model.didgrp.cmb.pts.dizhii = "";
} }
/** /**
* source:ditp.@0089.script * source:ditp.@0089.script
...@@ -575,6 +580,11 @@ function checkDidgrpRecFenctgN100(rule, value, callback) { ...@@ -575,6 +580,11 @@ function checkDidgrpRecFenctgN100(rule, value, callback) {
//TODO //TODO
callback() callback()
}) })
//清空议付行相关字段
this.model.didgrp.rec.avbwth = "";
this.model.didgrp.avb.pts.bankno = "";
this.model.didgrp.avb.pts.jigomc = "";
this.model.didgrp.avb.pts.dizhii = "";
} }
/** /**
* source:limmod.@0099.script * source:limmod.@0099.script
...@@ -991,6 +1001,8 @@ function checkLitameadvN100(rule, value, callback) { ...@@ -991,6 +1001,8 @@ function checkLitameadvN100(rule, value, callback) {
that.exeuteCheck("litameadv").then(res => { that.exeuteCheck("litameadv").then(res => {
callback() callback()
}) })
this.model.ameadvrmk = ""
} }
/** /**
...@@ -1008,3 +1020,11 @@ function ruleLitameadvN100(rule, value, callback) { ...@@ -1008,3 +1020,11 @@ function ruleLitameadvN100(rule, value, callback) {
callback() callback()
}) })
} }
function resetDidgrpRecBdflg(rule, value, callback){
callback()
this.model.didgrp.rmb.pts.bankno = "";
this.model.didgrp.rmb.pts.jigomc = "";
this.model.didgrp.rmb.pts.dizhii = "";
}
export default { export default {
//转让行 // 银行明细
//议付行
"didgrp.rec.fenctg": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"ditp.recget.sdamod.dadsnd": [ "ditp.recget.sdamod.dadsnd": [
{ type: "string", required: false, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" } { max: 16, message: "长度不能超过16" }
...@@ -589,11 +593,11 @@ export default { ...@@ -589,11 +593,11 @@ export default {
{ max: 14, message: "长度不能超过14" } { max: 14, message: "长度不能超过14" }
], ],
"mtabut.coninf.oitinf.oit.inftxt": [ "mtabut.coninf.oitinf.oit.inftxt": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 60, message: "长度不能超过60" } { max: 60, message: "长度不能超过60" }
], ],
"mtabut.coninf.oitset.oit.inftxt": [ "mtabut.coninf.oitset.oit.inftxt": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: false, message: "必输项" },
{ max: 60, message: "长度不能超过60" } { max: 60, message: "长度不能超过60" }
], ],
......
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
<el-form-item label="议付行地址" prop="didgrp.avb.pts.dizhii"> <el-form-item label="议付行地址" prop="didgrp.avb.pts.dizhii">
<c-input <c-input
disabled :disabled="model.didgrp.rec.fenctg != 'Y'"
type="textarea" type="textarea"
v-model="model.didgrp.avb.pts.dizhii" v-model="model.didgrp.avb.pts.dizhii"
maxlength="35" maxlength="35"
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
</el-form-item> </el-form-item>
<el-form-item label="保兑行地址" prop="didgrp.rmb.pts.dizhii"> <el-form-item label="保兑行地址" prop="didgrp.rmb.pts.dizhii">
<c-input <c-input
disabled :disabled="model.didgrp.rec.bdflg != 'Y'"
type="textarea" type="textarea"
v-model="model.didgrp.rmb.pts.dizhii" v-model="model.didgrp.rmb.pts.dizhii"
maxlength="35" maxlength="35"
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
</el-form-item> </el-form-item>
<el-form-item label="转让行地址" prop="didgrp.cmb.pts.dizhii"> <el-form-item label="转让行地址" prop="didgrp.cmb.pts.dizhii">
<c-input <c-input
disabled :disabled="model.didgrp.rec.lcrtyp != 'IT'"
type="textarea" type="textarea"
v-model="model.didgrp.cmb.pts.dizhii" v-model="model.didgrp.cmb.pts.dizhii"
maxlength="35" maxlength="35"
...@@ -345,7 +345,7 @@ export default { ...@@ -345,7 +345,7 @@ export default {
return {}; return {};
}, },
methods: { ...Event }, methods: { ...Event },
created: function () {}, created: function () {}
}; };
</script> </script>
<style> <style>
......
...@@ -240,9 +240,8 @@ export default { ...@@ -240,9 +240,8 @@ export default {
}, },
watch:{ watch:{
flg(){ flg(){
this.pattern["didgrp.avb.pts.bankno"][0].required = this.model.didgrp.rec.elcflg == "Y"; this.pattern["didgrp.rec.fenctg"][0].required = this.model.didgrp.rec.elcflg == "Y";
console.log(this.pattern["didgrp.avb.pts.bankno"][0].required); },
},
} }
......
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