Commit e350539f by huangxin

brtdck事件关联

parent 473001fa
......@@ -130,7 +130,7 @@ export default {
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"brdgrp.prb.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
//{type: "string", required: true, message: "必输项"},
{max: 140,message:"长度不能超过140"}
],
"brdgrp.prb.dbfadrblkcn":[
......@@ -190,7 +190,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"brtp.oth.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
//{type: "string", required: true, message: "必输项"},
{max: 140,message:"长度不能超过140"}
],
"brtp.oth.dbfadrblkcn":[
......
......@@ -502,23 +502,26 @@
v-model="model.brdgrp.rec.docprbrol"
style="width: 100%"
placeholder="请选择 Presented by"
:code="codes.docprbrol"
@change="selectOrCheckboxRule('brdgrp.rec.docprbrol')"
:code="codes.docprbrol1"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap1
<c-ptap
:model="model"
:argadr="{
title: '',
grp: 'brdgrp',
rol: 'prb',
}"
:disabled="true"
@onSeainf="onSeainf" @onAplpDet="onPrbpDet"
:disabled="this.flag2"
:disabledExtkey="this.flag"
:isAdrblk="true"
:noRef="true"
>
</c-ptap1>
</c-ptap>
</c-col>
<!-- SF000087 : Payer -->
<c-col :span="24">
......@@ -527,24 +530,26 @@
v-model="model.brdgrp.rec.payrol"
style="width: 100%"
placeholder="请输入付款人"
@change="selectOrCheckboxRule('brdgrp.rec.payrol')"
:code="codes.payrol1"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap1
<c-ptap
:model="model"
:argadr="{
title: '',
grp: 'brtp',
rol: 'oth',
}"
:disabled="true"
disabled1
@onSeainf="onSeainf" @onAplpDet="onOthpDet"
:disabled="this.flag3"
:disabledExtkey="this.flag4"
:isAdrblk="true"
:noRef="true"
>
</c-ptap1>
</c-ptap>
<!-- <c-ptap
:model="model"
:argadr="{
......@@ -573,20 +578,71 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdck/Event";
import Ptap1 from "~/views/Public/Ptap1";
// import Ptap from "~/views/Public/Ptap";
import Ptap from "~/views/Public/Ptap";
import Ptsmsg from "~/views/Public/Ptsmsg";
export default {
components: {
"c-ptap1": Ptap1,
// "c-ptap": Ptap,
"c-ptap": Ptap,
"c-ptsmsg": Ptsmsg,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
return {
flag:true,
flag2:true,
flag3:true,
flag4:true,
};
},
watch:{
"model.brdgrp.rec.docprbrol":function(){
if(this.model.brdgrp.rec.docprbrol=='ADV'){
this.flag=true;
}
else if(this.model.brdgrp.rec.docprbrol=='BEN'){
this.flag=true;
}
else if(this.model.brdgrp.rec.docprbrol=='PRB'){
this.flag=false;
}
},
"model.brdgrp.prb.pts.extkey" :{
immediate:true,
handler(val ,oldVal){
if(this.model.brdgrp.prb.pts.extkey!=''){
this.flag2=true;
}else{
this.flag2=false;
}
}
},
"model.brdgrp.rec.payrol":function(){
if(this.model.brdgrp.rec.payrol=='APL'){
this.flag4=true;
}
else if(this.model.brdgrp.rec.payrol=='OTH'){
this.flag4=false;
}
},
"model.brtp.oth.pts.extkey" :{
immediate:true,
handler(val ,oldVal){
if(this.model.brtp.oth.pts.extkey!=''){
this.flag3=true;
}else{
this.flag3=false;
}
}
},
},
methods: { ...Event, onSeainf(){}},
created: function () {},
......
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