Commit fc811a7a by lianyang

gitopn获取按钮disabled条件

parent 20956a03
...@@ -595,7 +595,12 @@ export default class Gitopn{ ...@@ -595,7 +595,12 @@ export default class Gitopn{
mtabut:new Pub().data.Mtabut, mtabut:new Pub().data.Mtabut,
trnmod:new Pub().data.Trnmod, trnmod:new Pub().data.Trnmod,
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
pageId: "" // ctx的key pageId: "", // ctx的key,
sysmod:{
wrkbch:{
bchref:""
}
}
} }
} }
} }
\ No newline at end of file
<template> <template>
<div class="eibs"> <div class="eibs">
<c-col :span="12" style="padding-right: 20px;"> <c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="是否SWIFT格式" prop="gitp.swiftflg"> <el-form-item label="是否SWIFT格式" prop="gitp.swiftflg">
<c-select <c-select
v-model="model.gitp.swiftflg" v-model="model.gitp.swiftflg"
...@@ -13,20 +14,7 @@ ...@@ -13,20 +14,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12" style="padding-left: 20px;"> <c-col :span="24">
<el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
<c-select
v-model="model.gidgrp.rec.fingua"
style="width: 100%"
placeholder="请选择是否对外担保"
:code="codes.fingua"
@change="eventFunction('gidgrp.rec.fingua')"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="model.gidgrp.cbs.max.cur == 'CNY'? 20 : 24"> <c-col :span="model.gidgrp.cbs.max.cur == 'CNY'? 20 : 24">
<el-form-item label="对外担保类型" prop="gidgrp.rec.cfaguatyp"> <el-form-item label="对外担保类型" prop="gidgrp.rec.cfaguatyp">
<c-select <c-select
...@@ -48,6 +36,22 @@ ...@@ -48,6 +36,22 @@
> >
</c-col> </c-col>
</c-col> </c-col>
</c-col>
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
<c-select
v-model="model.gidgrp.rec.fingua"
style="width: 100%"
placeholder="请选择是否对外担保"
:code="codes.fingua"
@change="eventFunction('gidgrp.rec.fingua')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<c-button <c-button
style="margin: 0 0" style="margin: 0 0"
:disabled="this.flag && model.gidgrp.rec.ownref == ''? false:true" :disabled="flag"
size="small" size="small"
type="primary" type="primary"
@click="onGitpButgetref" @click="onGitpButgetref"
...@@ -170,14 +170,15 @@ ...@@ -170,14 +170,15 @@
v-model="model.gidgrp.rec.gartyp" v-model="model.gidgrp.rec.gartyp"
style="width: 100%" style="width: 100%"
placeholder="请选择保函种类" placeholder="请选择保函种类"
:code="getValues('gidgrp.rec.gartyp','typgar')"
> >
<el-option <!-- <el-option
v-for="item in codes.seagtyp" v-for="item in codes.seagtyp"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
> >
</el-option> </el-option> -->
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -1392,8 +1393,31 @@ export default { ...@@ -1392,8 +1393,31 @@ export default {
return {}; return {};
}, },
computed: { computed: {
flag() { flag(){
return this.model.gidgrp.apl.pts.extkey != "" && this.model.gidgrp.rec.hndtyp !="" && (this.model.gidgrp.rec.hndtyp=="OL" || this.model.gidgrp.rec.hndtyp=="OC"); // return this.model.gidgrp.apl.pts.extkey != "" && this.model.gidgrp.rec.hndtyp !="" && (this.model.gidgrp.rec.hndtyp=="OL" || this.model.gidgrp.rec.hndtyp=="OC");
if(this.model.gidgrp.rec.ownref==''){
if(this.model.sysmod.wrkbch.bchref==''){
return true;
}else {
if(this.model.gidgrp.rec.hndtyp=='OT'){
if(this.model.gidgrp.ben.pts.extkey!=''){
return false;
}else{
return true;
}
}else if(this.model.gidgrp.rec.hndtyp!=''){
if(this.model.gidgrp.apl.pts.extkey!=''){
return false;
}else{
return true;
}
}else{
return true;
}
}
}else{
return true;
}
}, },
amtwidth(){ amtwidth(){
return this.model.gitp.swiftflg != 'Y'? 'width:80%' : 'width:100%'; return this.model.gitp.swiftflg != 'Y'? 'width:80%' : 'width:100%';
......
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