Sel.vue
3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<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'||(model.recgrp.bas.actiontype =='D' && model.recgrp.bas.sta =='S')" >签约信息</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 == 'ecaall'">
<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 == 'ecaall'">
<c-input v-model="model.cfabut.newdcl" placeholder="请输入"></c-input>
</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/Ecaadd/event";
export default {
inject: ['root'],
props:["model","codes","transName"],
mixins: [event],
data(){
return {
ownExtkeyList: [],
disflg: '',
calflg: '',
}
},
computed: {
},
methods:{
calDisabled() {
if(this.transName == 'ecadel' || this.transName == 'ecainf' || this.transName == 'ecaame' || this.transName == 'ecaall') {
this.disflg = 'X';
} else if(this.transName == 'ecaadd') {
this.disflg = '';
} else {
this.disflg = 'X';
}
},
calFlgDisabled() {
if(this.transName == 'ecainf' || this.transName == 'ecaadd' || this.transName == 'ecaall') {
this.calflg = 'X';
} else if(this.transName == 'ecaame'||this.transName == 'ecadel') {
this.calflg = '';
} else {
this.calflg = 'X';
}
},
},
created:function(){
//初始化机构列表
this.getOwnExtkeyCondition();
//界面可编辑初始化
this.calDisabled();
this.calFlgDisabled();
},
mounted() {
},
}
</script>
<style>
</style>