Commit fc811a7a by lianyang

gitopn获取按钮disabled条件

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