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;">
<el-form-item label="是否SWIFT格式" prop="gitp.swiftflg"> <c-col :span="24">
<c-select <el-form-item label="是否SWIFT格式" prop="gitp.swiftflg">
v-model="model.gitp.swiftflg" <c-select
style="width: 100%" v-model="model.gitp.swiftflg"
placeholder="请选择是否SWIFT格式" style="width: 100%"
:code="codes.swiftflg" placeholder="请选择是否SWIFT格式"
@change="eventFunction('gitp.swiftflg')" :code="codes.swiftflg"
> @change="eventFunction('gitp.swiftflg')"
</c-select> >
</el-form-item> </c-select>
</c-col> </el-form-item>
</c-col>
<c-col :span="12" style="padding-left: 20px;"> <c-col :span="24">
<el-form-item label="是否对外担保" prop="gidgrp.rec.fingua"> <c-col :span="model.gidgrp.cbs.max.cur == 'CNY'? 20 : 24">
<c-select <el-form-item label="对外担保类型" prop="gidgrp.rec.cfaguatyp">
v-model="model.gidgrp.rec.fingua" <c-select
style="width: 100%" :disabled="
placeholder="请选择是否对外担保" model.gidgrp.rec.fingua == 'N' || model.gidgrp.rec.fingua == ''
:code="codes.fingua" "
@change="eventFunction('gidgrp.rec.fingua')" v-model="model.gidgrp.rec.cfaguatyp"
> :style="model.gidgrp.cbs.max.cur == 'CNY'? 'width: 90%' :'width: 100%'"
</c-select> placeholder="请选择对外担保类型"
</el-form-item> :code="codes.cfaguatyp"
@change="cfaguatypChange"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="4" class="centerLable" v-if="model.gidgrp.cbs.max.cur == 'CNY'">
<c-checkbox disabled v-model="model.gidgrp.rec.cmtflg"
>跨境人民币保函</c-checkbox
>
</c-col>
</c-col>
</c-col> </c-col>
<c-col :span="12" style="padding-right: 20px;"> <c-col :span="12" style="padding-left: 20px;">
<c-col :span="model.gidgrp.cbs.max.cur == 'CNY'? 20 : 24"> <c-col :span="24">
<el-form-item label="对外担保类型" prop="gidgrp.rec.cfaguatyp"> <el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
<c-select <c-select
:disabled=" v-model="model.gidgrp.rec.fingua"
model.gidgrp.rec.fingua == 'N' || model.gidgrp.rec.fingua == '' style="width: 100%"
" placeholder="请选择是否对外担保"
v-model="model.gidgrp.rec.cfaguatyp" :code="codes.fingua"
:style="model.gidgrp.cbs.max.cur == 'CNY'? 'width: 90%' :'width: 100%'" @change="eventFunction('gidgrp.rec.fingua')"
placeholder="请选择对外担保类型"
:code="codes.cfaguatyp"
@change="cfaguatypChange"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="4" class="centerLable" v-if="model.gidgrp.cbs.max.cur == 'CNY'">
<c-checkbox disabled v-model="model.gidgrp.rec.cmtflg"
>跨境人民币保函</c-checkbox
>
</c-col>
</c-col> </c-col>
</div> </div>
</template> </template>
......
...@@ -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