<template> <div class="eibs-tab"> <c-col :span="12" class="col-left"> <c-col :span="24"> <c-col :span="12"> <el-form-item label="授权日期" prop="eblmod.ebl.reldat"> <c-date-picker :disabled="this.disflg == 'X'" type="date" v-model="model.eblmod.ebl.reldat" style="width:100%" placeholder="请选择授权日期"></c-date-picker> </el-form-item> </c-col> <c-col :span="12"> <c-checkbox v-model="model.cfabut.basflg" true-label="X" false-label="" :disabled="this.calflg == 'X'">签约信息</c-checkbox> </c-col> </c-col> <c-col :span="24"> <el-form-item label="业务所属机构" prop="cfabut.ownextkey"> <c-select :disabled="this.disflg == 'X'" v-model="model.cfabut.ownextkey" style="width:100%" placeholder="请输入业务所属机构" @change="getDecnum(model.cfabut.ownextkey)" > <el-option :key="item.inr" :label="item.branch + ' ' + item.bchname" :value="item.branch" v-for="item in ownExtkeyList"> </el-option> </c-select> </el-form-item> </c-col> <c-col :span="24"> <el-form-item v-if="transName == 'eadall'"> <c-checkbox v-model="model.cfabut.addnew" true-label="X" false-label="" disabled>新增接口数据</c-checkbox> </el-form-item> </c-col> <c-col :span="24" > <el-form-item label="变动信息数目" prop="cfabut.newdcl" v-if="transName == 'eadall'"> <c-input v-model="model.cfabut.newdcl" placeholder="请输入"></c-input> </el-form-item> </c-col> <c-col :span="24"> <el-form-item v-if="transName == 'eadadd'" label="代付还代利息" prop="eblmod.ebl.resamt"> <c-input-currency :disabled="this.disflg == 'X'" v-model="model.eblmod.ebl.resamt" placeholder="请输入代付还代利息"></c-input-currency> </el-form-item> </c-col> </c-col> <c-col :span="12" class="col-right"> <c-col :span="12"> <c-checkbox v-model="model.cfabut.dclflg" true-label="X" false-label="" :disabled="this.calflg == 'X'">变动信息</c-checkbox> </c-col> </c-col> </div> </template> <script> import CommonEvent from '../../common/event/CommonEvent' import event from "~/page/Business/Cfa/Eadadd/event"; export default { inject: ['root'], props:["model","codes","transName"], mixins: [event], data(){ return { ownExtkeyList: [], disflg: '', calflg: '', } }, computed: { }, methods:{ calDisabled() { if(this.transName == 'eaddel' || this.transName == 'eadinf' || this.transName == 'eadame' || this.transName == 'eadall') { this.disflg = 'X'; } else if(this.transName == 'eadadd') { this.disflg = ''; } else { this.disflg = 'X'; } }, calFlgDisabled() { if(this.transName == 'eaddel' || this.transName == 'eadinf' || this.transName == 'eadadd' || this.transName == 'eadall') { this.calflg = 'X'; } else if(this.transName == 'eadame') { this.calflg = ''; } else { this.calflg = 'X'; } } }, created:function(){ //初始化机构列表 this.getOwnExtkeyCondition(); //界面可编辑初始化 this.calDisabled(); this.calFlgDisabled(); }, mounted() { }, } </script> <style> </style>