address-client 3.2.25 → 3.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,279 +1,279 @@
1
- <template>
2
- <div class="flex" @keyup.enter="search">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">组织机构</label>
9
- <res-select restype='organization'
10
- @res-select="$parent.$parent.getorg"
11
- is-mul="false"
12
- :initresid='$parent.$parent.curorgid'>
13
- </res-select>
14
- </div>
15
- <div :class="$parent.$parent.style">
16
- <label class="font_normal_body">小区编号</label>
17
- <input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
18
- condition="f_area_id = '{}'" placeholder="小区编号"/>
19
- </div>
20
- <div :class="$parent.$parent.style" v-if="false">
21
- <label class="font_normal_body">省&emsp;&emsp;份</label>
22
- <input type="text" class="input_search" style="width:60%" v-model="model.f_province"
23
- condition="f_province like '%{}%'" placeholder="省份"/>
24
- </div>
25
- <!--<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">-->
26
- <div :class="$parent.$parent.style" v-if="false">
27
- <label class="font_normal_body">城&emsp;&emsp;市</label>
28
- <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
29
- condition="f_city like '%{}%'" placeholder="城市"/>
30
- </div>
31
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
32
- <label class="font_normal_body">区&emsp;&emsp;镇</label>
33
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
34
- condition="f_district like '%{}%'" placeholder="区镇"/>
35
- </div>
36
- <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
37
- <label class="font_normal_body">社区/村委</label>
38
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
39
- condition="f_street like '%{}%'" placeholder="社区/村委"/>
40
- </div>
41
- <div class="col-sm-4 form-group button-range">
42
- <button class="button_search button_spacing" @click="search()" >查询</button>
43
- <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
44
- <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
45
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
47
- </div>
48
- </div>
49
- <div class="row" v-if="$parent.$parent.criteriaShow">
50
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
51
- <label class="font_normal_body">城&emsp;&emsp;市</label>
52
- <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
53
- condition="f_city like '%{}%'" placeholder="城市"
54
- :size="model.f_city ? model.f_city.length*2 : 6"/>
55
- </div>
56
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
57
- <label class="font_normal_body">区&emsp;&emsp;镇</label>
58
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
59
- condition="f_district like '%{}%'" placeholder="区镇"
60
- :size="model.f_district ? model.f_district.length*2 : 6"/>
61
- </div>
62
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
63
- <label class="font_normal_body">社区/村委</label>
64
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
65
- condition="f_street like '%{}%'" placeholder="社区/村委"
66
- :size="model.f_street ? model.f_street.length*2 : 6"/>
67
- </div>
68
- <div :class="$parent.$parent.style">
69
- <label class="font_normal_body">小&emsp;&emsp;区</label>
70
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
71
- condition="f_residential_area like '%{}%'" placeholder="小区"
72
- :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
73
- </div>
74
- <div :class="$parent.$parent.style">
75
- <label class="font_normal_body">房屋类型</label>
76
- <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
77
- close-on-select condition="f_house_type='{}'"
78
- placeholder='房屋类型' v-model="model.f_house_type"></v-select>
79
- </div>
80
- <div :class="$parent.$parent.style">
81
- <label class="font_normal_body">安装位置</label>
82
- <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
83
- close-on-select condition="f_position='{}'"
84
- placeholder='安装位置' v-model="model.f_position"></v-select>
85
- </div>
86
- <div :class="$parent.$parent.style">
87
- <label class="font_normal_body">&emsp;抄表员</label>
88
- <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
89
- close-on-select condition="f_inputtor='{}'"
90
- placeholder='抄表员' v-model="model.f_inputtor"></v-select>
91
- </div>
92
- </div>
93
- </div>
94
-
95
-
96
- </criteria>
97
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
98
- <template partial='head'>
99
- <tr>
100
- <th><nobr>序号</nobr></th>
101
- <th v-if="false"><nobr>省份</nobr></th>
102
- <th v-if="false"><nobr>城市</nobr></th>
103
- <th><nobr>区/镇</nobr></th>
104
- <th><nobr>社区/村委名称</nobr></th>
105
- <!--民用小区信息开始-->
106
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
107
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
108
- <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区备注</nobr></th>
109
- <!--民用小区信息结束-->
110
- <!--非民用单位信息开始-->
111
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
112
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
113
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
114
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
115
- <!--非民用单位信息结束-->
116
- <th><nobr>抄表员</nobr></th>
117
- <th><nobr>抄表月份</nobr></th>
118
- <th><nobr>房屋类型</nobr></th>
119
- <th><nobr>安装位置</nobr></th>
120
- <th><nobr>片区/管理站 </nobr></th>
121
- <th><nobr>操作人</nobr></th>
122
- <th><nobr>操作日期</nobr></th>
123
- <th><nobr>操作</nobr></th>
124
-
125
- </tr>
126
- </template>
127
- <template partial='body'>
128
- <tr>
129
- <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
130
- <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
131
- <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
132
- <td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
133
- <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
134
- <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
135
- <td style="text-align:center"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
136
- <td style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
137
- <!--非民用单位信息开始-->
138
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
139
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
140
- <!--非民用单位信息结束-->
141
- <td style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
142
- <td style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
143
- <td style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
144
- <td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
145
- <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
146
- <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
147
- <td><nobr>
148
- <!--<button type="button" name="button" class="btn btn-link"
149
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
150
- <button type="button" name="button" class="btn btn-link"
151
- @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
152
- </nobr></td>
153
- </tr>
154
- </template>
155
- <template partial='foot'></template>
156
- </data-grid>
157
- </criteria-paged>
158
- </div>
159
- </template>
160
-
161
- <script>
162
- import { PagedList } from 'vue-client'
163
-
164
- export default {
165
-
166
- data () {
167
- return {
168
- criteriaShow: false,
169
- model: new PagedList('rs/sql/address_getarealist',20),
170
- addflag: false,
171
- addtitle:'',
172
-
173
- // 公司下拉
174
- curorgid: [this.$login.f.orgid],
175
- f_orgid: '',
176
- handmonth:[{label:'全部',value:''},{label:'单月',value:'单月'},{label:'双月',value:'双月'}],
177
- housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
178
- position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
179
- }
180
- },
181
- title: '小区管理',
182
- props:{
183
- f_filialeids:{
184
- type: String
185
- },
186
- style: {
187
- type: String,
188
- default: 'col-sm-2 form-group'
189
- },
190
- f_special:{
191
- type: String
192
- }
193
- },
194
- ready(){
195
- this.search()
196
- },
197
- methods: {
198
- hidden() {
199
- this.criteriaShow = !this.criteriaShow
200
- },
201
- search() {
202
- this.$refs.paged.$refs.cri.search()
203
- },
204
-
205
- async delete(row){
206
- if(row.id){
207
- var id = row.id
208
- let useraredss = await this.$resetpost('rs/sql/address_singleTable',
209
- {data: {
210
- items: 'f_residential_area_id',
211
- tablename: 't_user_address',
212
- condition: `f_residential_area_id='${id}'`}
213
- },
214
- {resolveMsg: null, rejectMsg: null})
215
- if(useraredss.data.length>0){
216
- this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
217
- }else{
218
- this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
219
- this.$dispatch('cancel')
220
- })
221
- }
222
- }
223
- },
224
- add(val){
225
- if (this.f_filialeids) {
226
- this.$refs.paged.$refs.grid.selectStore.selected = null
227
- this.$dispatch('add')
228
- } else {
229
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
230
- }
231
- },
232
- modify(val){
233
- this.$refs.paged.$refs.grid.selectStore.selected = null
234
- this.$dispatch('modify',val)
235
- },
236
- selfSearch (args) {
237
-
238
- if (!this.f_orgid) {
239
- this.getorg([this.$login.f.orgid])
240
- }
241
- console.log('查询。。。', this.f_orgid)
242
- if(this.f_special){
243
- args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
244
- }else{
245
- args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
246
- }
247
- this.model.search(args.condition, args.model)
248
- },
249
- //清空
250
- clear(){
251
- this.$refs.paged.$refs.cri.model = {}
252
- },
253
- getorg (val) {
254
- this.f_orgid = this.$login.convertToIn(val)
255
- this.f_filialeids = val[0]
256
- }
257
- },
258
- watch:{
259
-
260
- },
261
- computed:{
262
- inputtores () {
263
- // 获取抄表员
264
- let rs = new Array()
265
- if (this.$login.f.f_gasman.length > 0) {
266
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
267
- let temp = {
268
- label: this.$login.f.f_gasman[i].name,
269
- value: this.$login.f.f_gasman[i].name
270
- }
271
- rs.push(temp)
272
- }
273
- }
274
- return rs
275
- }
276
- }
277
-
278
- }
279
- </script>
1
+ <template>
2
+ <div class="flex" @keyup.enter="search">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">组织机构</label>
9
+ <res-select restype='organization'
10
+ @res-select="$parent.$parent.getorg"
11
+ is-mul="false"
12
+ :initresid='$parent.$parent.curorgid'>
13
+ </res-select>
14
+ </div>
15
+ <div :class="$parent.$parent.style">
16
+ <label class="font_normal_body">小区编号</label>
17
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
18
+ condition="f_area_id = '{}'" placeholder="小区编号"/>
19
+ </div>
20
+ <div :class="$parent.$parent.style" v-if="false">
21
+ <label class="font_normal_body">省&emsp;&emsp;份</label>
22
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_province"
23
+ condition="f_province like '%{}%'" placeholder="省份"/>
24
+ </div>
25
+ <!--<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">-->
26
+ <div :class="$parent.$parent.style" v-if="false">
27
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
28
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
29
+ condition="f_city like '%{}%'" placeholder="城市"/>
30
+ </div>
31
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
32
+ <label class="font_normal_body">区&emsp;&emsp;镇</label>
33
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
34
+ condition="f_district like '%{}%'" placeholder="区镇"/>
35
+ </div>
36
+ <div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
37
+ <label class="font_normal_body">社区/村委</label>
38
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
39
+ condition="f_street like '%{}%'" placeholder="社区/村委"/>
40
+ </div>
41
+ <div class="col-sm-4 form-group button-range">
42
+ <button class="button_search button_spacing" @click="search()" >查询</button>
43
+ <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
44
+ <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
45
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
46
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
47
+ </div>
48
+ </div>
49
+ <div class="row" v-if="$parent.$parent.criteriaShow">
50
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
51
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
52
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
53
+ condition="f_city like '%{}%'" placeholder="城市"
54
+ :size="model.f_city ? model.f_city.length*2 : 6"/>
55
+ </div>
56
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
57
+ <label class="font_normal_body">区&emsp;&emsp;镇</label>
58
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
59
+ condition="f_district like '%{}%'" placeholder="区镇"
60
+ :size="model.f_district ? model.f_district.length*2 : 6"/>
61
+ </div>
62
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
63
+ <label class="font_normal_body">社区/村委</label>
64
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
65
+ condition="f_street like '%{}%'" placeholder="社区/村委"
66
+ :size="model.f_street ? model.f_street.length*2 : 6"/>
67
+ </div>
68
+ <div :class="$parent.$parent.style">
69
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
70
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
71
+ condition="f_residential_area like '%{}%'" placeholder="小区"
72
+ :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
73
+ </div>
74
+ <div :class="$parent.$parent.style">
75
+ <label class="font_normal_body">房屋类型</label>
76
+ <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
77
+ close-on-select condition="f_house_type='{}'"
78
+ placeholder='房屋类型' v-model="model.f_house_type"></v-select>
79
+ </div>
80
+ <div :class="$parent.$parent.style">
81
+ <label class="font_normal_body">安装位置</label>
82
+ <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
83
+ close-on-select condition="f_position='{}'"
84
+ placeholder='安装位置' v-model="model.f_position"></v-select>
85
+ </div>
86
+ <div :class="$parent.$parent.style">
87
+ <label class="font_normal_body">&emsp;抄表员</label>
88
+ <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
89
+ close-on-select condition="f_inputtor='{}'"
90
+ placeholder='抄表员' v-model="model.f_inputtor"></v-select>
91
+ </div>
92
+ </div>
93
+ </div>
94
+
95
+
96
+ </criteria>
97
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
98
+ <template partial='head'>
99
+ <tr>
100
+ <th><nobr>序号</nobr></th>
101
+ <th v-if="false"><nobr>省份</nobr></th>
102
+ <th v-if="false"><nobr>城市</nobr></th>
103
+ <th><nobr>区/镇</nobr></th>
104
+ <th><nobr>社区/村委名称</nobr></th>
105
+ <!--民用小区信息开始-->
106
+ <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
107
+ <th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
108
+ <th v-if="!$parent.$parent.$parent.f_special"><nobr>小区备注</nobr></th>
109
+ <!--民用小区信息结束-->
110
+ <!--非民用单位信息开始-->
111
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
112
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
113
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
114
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
115
+ <!--非民用单位信息结束-->
116
+ <th><nobr>抄表员</nobr></th>
117
+ <th><nobr>抄表月份</nobr></th>
118
+ <th><nobr>房屋类型</nobr></th>
119
+ <th><nobr>安装位置</nobr></th>
120
+ <th><nobr>片区/管理站 </nobr></th>
121
+ <th><nobr>操作人</nobr></th>
122
+ <th><nobr>操作日期</nobr></th>
123
+ <th><nobr>操作</nobr></th>
124
+
125
+ </tr>
126
+ </template>
127
+ <template partial='body'>
128
+ <tr>
129
+ <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
130
+ <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
131
+ <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
132
+ <td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
133
+ <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
134
+ <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
135
+ <td style="text-align:center"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
136
+ <td style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
137
+ <!--非民用单位信息开始-->
138
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
139
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
140
+ <!--非民用单位信息结束-->
141
+ <td style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
142
+ <td style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
143
+ <td style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
144
+ <td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
145
+ <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
146
+ <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
147
+ <td><nobr>
148
+ <!--<button type="button" name="button" class="btn btn-link"
149
+ @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
150
+ <button type="button" name="button" class="btn btn-link"
151
+ @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
152
+ </nobr></td>
153
+ </tr>
154
+ </template>
155
+ <template partial='foot'></template>
156
+ </data-grid>
157
+ </criteria-paged>
158
+ </div>
159
+ </template>
160
+
161
+ <script>
162
+ import { PagedList } from 'vue-client'
163
+
164
+ export default {
165
+
166
+ data () {
167
+ return {
168
+ criteriaShow: false,
169
+ model: new PagedList('rs/sql/address_getarealist',20),
170
+ addflag: false,
171
+ addtitle:'',
172
+
173
+ // 公司下拉
174
+ curorgid: [this.$login.f.orgid],
175
+ f_orgid: '',
176
+ handmonth:[{label:'全部',value:''},{label:'单月',value:'单月'},{label:'双月',value:'双月'}],
177
+ housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
178
+ position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
179
+ }
180
+ },
181
+ title: '小区管理',
182
+ props:{
183
+ f_filialeids:{
184
+ type: String
185
+ },
186
+ style: {
187
+ type: String,
188
+ default: 'col-sm-2 form-group'
189
+ },
190
+ f_special:{
191
+ type: String
192
+ }
193
+ },
194
+ ready(){
195
+ this.search()
196
+ },
197
+ methods: {
198
+ hidden() {
199
+ this.criteriaShow = !this.criteriaShow
200
+ },
201
+ search() {
202
+ this.$refs.paged.$refs.cri.search()
203
+ },
204
+
205
+ async delete(row){
206
+ if(row.id){
207
+ var id = row.id
208
+ let useraredss = await this.$resetpost('rs/sql/address_singleTable',
209
+ {data: {
210
+ items: 'f_residential_area_id',
211
+ tablename: 't_user_address',
212
+ condition: `f_residential_area_id='${id}'`}
213
+ },
214
+ {resolveMsg: null, rejectMsg: null})
215
+ if(useraredss.data.length>0){
216
+ this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
217
+ }else{
218
+ this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
219
+ this.$dispatch('cancel')
220
+ })
221
+ }
222
+ }
223
+ },
224
+ add(val){
225
+ if (this.f_filialeids) {
226
+ this.$refs.paged.$refs.grid.selectStore.selected = null
227
+ this.$dispatch('add')
228
+ } else {
229
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
230
+ }
231
+ },
232
+ modify(val){
233
+ this.$refs.paged.$refs.grid.selectStore.selected = null
234
+ this.$dispatch('modify',val)
235
+ },
236
+ selfSearch (args) {
237
+
238
+ if (!this.f_orgid) {
239
+ this.getorg([this.$login.f.orgid])
240
+ }
241
+ console.log('查询。。。', this.f_orgid)
242
+ if(this.f_special){
243
+ args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
244
+ }else{
245
+ args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
246
+ }
247
+ this.model.search(args.condition, args.model)
248
+ },
249
+ //清空
250
+ clear(){
251
+ this.$refs.paged.$refs.cri.model = {}
252
+ },
253
+ getorg (val) {
254
+ this.f_orgid = this.$login.convertToIn(val)
255
+ this.f_filialeids = val[0]
256
+ }
257
+ },
258
+ watch:{
259
+
260
+ },
261
+ computed:{
262
+ inputtores () {
263
+ // 获取抄表员
264
+ let rs = new Array()
265
+ if (this.$login.f.f_gasman.length > 0) {
266
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
267
+ let temp = {
268
+ label: this.$login.f.f_gasman[i].name,
269
+ value: this.$login.f.f_gasman[i].name
270
+ }
271
+ rs.push(temp)
272
+ }
273
+ }
274
+ return rs
275
+ }
276
+ }
277
+
278
+ }
279
+ </script>