bc37d685
wuxw
开发完成合同功能
|
1
|
<template>
|
24d3590f
wuxw
房屋收费页面开发完成
|
2
3
|
<el-dialog :title="$t('contract.selectOwner')" :visible.sync="visible" width="80%" :before-close="handleClose">
|
bc37d685
wuxw
开发完成合同功能
|
4
5
6
|
<div class="search-wrapper">
<el-row :gutter="20">
<el-col :span="8">
|
24d3590f
wuxw
房屋收费页面开发完成
|
7
|
<el-input v-model="searchOwnerInfo.roomName" :placeholder="$t('contract.inputRoomFullNum')">
|
bc37d685
wuxw
开发完成合同功能
|
8
9
10
|
</el-input>
</el-col>
<el-col :span="8">
|
24d3590f
wuxw
房屋收费页面开发完成
|
11
|
<el-input v-model="searchOwnerInfo._currentOwnerName" :placeholder="$t('contract.inputOwnerName')">
|
bc37d685
wuxw
开发完成合同功能
|
12
13
14
15
16
17
18
19
20
21
|
</el-input>
</el-col>
<el-col :span="8">
<el-button type="primary" @click="searchOwners">
<i class="el-icon-search"></i>{{ $t('common.search') }}
</el-button>
<el-button @click="resetOwners">{{ $t('common.reset') }}</el-button>
</el-col>
</el-row>
</div>
|
24d3590f
wuxw
房屋收费页面开发完成
|
22
23
24
|
<el-table :data="searchOwnerInfo.owners" border style="width: 100%" height="400">
<el-table-column prop="memberId" :label="$t('contract.ownerId')" align="center">
|
bc37d685
wuxw
开发完成合同功能
|
25
|
</el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
26
|
<el-table-column prop="name" :label="$t('contract.name')" align="center">
|
bc37d685
wuxw
开发完成合同功能
|
27
|
</el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
28
|
<el-table-column prop="personTypeName" :label="$t('contract.personType')" align="center">
|
bc37d685
wuxw
开发完成合同功能
|
29
|
</el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
30
|
<el-table-column prop="personRoleName" :label="$t('contract.personRole')" align="center">
|
bc37d685
wuxw
开发完成合同功能
|
31
|
</el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
32
|
<el-table-column prop="idCard" :label="$t('contract.idCard')" align="center">
|
bc37d685
wuxw
开发完成合同功能
|
33
|
</el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
34
|
<el-table-column prop="link" :label="$t('contract.contact')" align="center">
|
bc37d685
wuxw
开发完成合同功能
|
35
|
</el-table-column>
|
24d3590f
wuxw
房屋收费页面开发完成
|
36
|
<el-table-column :label="$t('common.operation')" align="center" width="120">
|
bc37d685
wuxw
开发完成合同功能
|
37
|
<template slot-scope="scope">
|
24d3590f
wuxw
房屋收费页面开发完成
|
38
|
<el-button type="primary" size="mini" @click="chooseOwner(scope.row)">
|
bc37d685
wuxw
开发完成合同功能
|
39
40
41
42
43
|
{{ $t('contract.select') }}
</el-button>
</template>
</el-table-column>
</el-table>
|
24d3590f
wuxw
房屋收费页面开发完成
|
44
|
|
bc37d685
wuxw
开发完成合同功能
|
45
|
<div class="pagination-wrapper">
|
24d3590f
wuxw
房屋收费页面开发完成
|
46
47
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.current"
:page-sizes="[10, 20, 30, 50]" :page-size="page.size" layout="total, sizes, prev, pager, next, jumper"
|
bc37d685
wuxw
开发完成合同功能
|
48
49
50
51
52
53
54
55
|
:total="page.total">
</el-pagination>
</div>
</el-dialog>
</template>
<script>
import { queryOwners } from '@/api/contract/addContractApi'
|
24d3590f
wuxw
房屋收费页面开发完成
|
56
|
import { getCommunityId } from '@/api/community/communityApi'
|
bc37d685
wuxw
开发完成合同功能
|
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
94
95
|
export default {
name: 'SearchOwner',
props: {
emitChooseOwner: String,
emitLoadData: String
},
data() {
return {
visible: false,
searchOwnerInfo: {
owners: [],
_currentOwnerName: '',
roomName: '',
ownerTypeCd: '1001'
},
page: {
current: 1,
size: 10,
total: 0
}
}
},
methods: {
open(params = {}) {
this.visible = true
this._refreshSearchOwnerData()
if (params.hasOwnProperty('ownerTypeCd')) {
this.searchOwnerInfo.ownerTypeCd = params.ownerTypeCd
}
this._loadAllOwnerInfo(1, 10)
},
handleClose() {
this.visible = false
},
_loadAllOwnerInfo(_page, _row) {
const params = {
page: _page,
row: _row,
|
24d3590f
wuxw
房屋收费页面开发完成
|
96
|
communityId: getCommunityId(),
|
bc37d685
wuxw
开发完成合同功能
|
97
98
99
100
|
name: this.searchOwnerInfo._currentOwnerName.trim(),
roomName: this.searchOwnerInfo.roomName.trim(),
ownerTypeCd: this.searchOwnerInfo.ownerTypeCd
}
|
24d3590f
wuxw
房屋收费页面开发完成
|
101
|
|
bc37d685
wuxw
开发完成合同功能
|
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
queryOwners(params).then(response => {
this.searchOwnerInfo.owners = response.data
this.page.total = response.records
this.page.current = _page
this.page.size = _row
})
},
chooseOwner(owner) {
this.$emit('chooseOwner', owner)
this.$emit(this.emitLoadData, 'listOwnerData', {
ownerId: owner.ownerId
})
this.visible = false
},
searchOwners() {
this._loadAllOwnerInfo(1, 10)
},
resetOwners() {
this.searchOwnerInfo.roomName = ""
this.searchOwnerInfo._currentOwnerName = ""
this._loadAllOwnerInfo(1, 10)
},
_refreshSearchOwnerData() {
this.searchOwnerInfo = {
owners: [],
_currentOwnerName: '',
roomName: '',
ownerTypeCd: '1001'
}
},
handleSizeChange(val) {
this.page.size = val
this._loadAllOwnerInfo(this.page.current, val)
},
handleCurrentChange(val) {
this._loadAllOwnerInfo(val, this.page.size)
}
}
}
</script>
<style scoped>
.search-wrapper {
margin-bottom: 20px;
}
.pagination-wrapper {
margin-top: 20px;
text-align: right;
}
|
24d3590f
wuxw
房屋收费页面开发完成
|
153
|
.el-button+.el-button {
|
bc37d685
wuxw
开发完成合同功能
|
154
155
156
|
margin-left: 10px;
}
</style>
|