address-client 3.2.13 → 3.2.17

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.
Files changed (38) hide show
  1. package/.gradle/{6.1.1/fileChanges → 3.5/file-changes}/last-build.bin +0 -0
  2. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  3. package/.gradle/{6.1.1/gc.properties → buildOutputCleanup/built.bin} +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  6. package/build/dev-server.js +1 -1
  7. package/package.json +1 -1
  8. package/src/components/AddressList.vue +613 -613
  9. package/src/components/CityList.vue +133 -133
  10. package/src/components/StreetList.vue +4 -4
  11. package/src/filiale/WEINAN/AddAreaMsg.vue +656 -656
  12. package/src/filiale/WEINAN/AreaList.vue +390 -390
  13. package/src/filiale/qianneng/UserAddress.vue +976 -976
  14. package/src/filiale/shanggao/AddAreaMsg.vue +746 -0
  15. package/src/filiale/shanggao/AddStreetOrPcd.vue +312 -0
  16. package/src/filiale/shanggao/AreaList.vue +431 -0
  17. package/src/filiale/shanggao/BuildingList.vue +129 -0
  18. package/src/filiale/shanggao/StreetList.vue +240 -0
  19. package/src/filiale/shanggao/UserAddress.vue +944 -0
  20. package/src/filiale/shanggao/sale.js +15 -0
  21. package/src/filiale/shaoguan/AddAreaMsg.vue +1 -3
  22. package/src/filiale/shaoguan/UserAddress.vue +1 -3
  23. package/src/filiale/tongchuan/AreaList.vue +315 -315
  24. package/src/filiale/tongchuan/CityList.vue +133 -133
  25. package/src/filiale/tongchuan/StreetList.vue +208 -208
  26. package/src/filiale/tongchuan/sale.js +19 -19
  27. package/src/main.js +1 -1
  28. package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
  29. package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
  30. package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
  31. package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
  32. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  33. package/.gradle/checksums/checksums.lock +0 -0
  34. package/.gradle/vcs-1/gc.properties +0 -0
  35. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  36. package/gradle/wrapper/gradle-wrapper.properties +0 -5
  37. package/gradlew +0 -183
  38. package/gradlew.bat +0 -100
@@ -1,315 +1,315 @@
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
- <export-excel :data="$parent.$parent.getCondition"
47
- :field="$parent.$parent.getfield"
48
- sqlurl="rs/logic/exportfile"
49
- sql-name="manage_getarealist"
50
- template-name='小区信息查询导出'
51
- :choose-col="true"></export-excel>
52
- <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>
53
- </div>
54
- </div>
55
- <div class="row" v-if="$parent.$parent.criteriaShow">
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_city"
59
- condition="f_city like '%{}%'" placeholder="城市"
60
- :size="model.f_city ? model.f_city.length*2 : 6"/>
61
- </div>
62
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
63
- <label class="font_normal_body">区&emsp;&emsp;县</label>
64
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
65
- condition="f_district like '%{}%'" placeholder="区县"
66
- :size="model.f_district ? model.f_district.length*2 : 6"/>
67
- </div>
68
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
69
- <label class="font_normal_body">街道乡镇</label>
70
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
71
- condition="f_street like '%{}%'" placeholder="街道/乡镇"
72
- :size="model.f_street ? model.f_street.length*2 : 6"/>
73
- </div>
74
- <div :class="$parent.$parent.style">
75
- <label class="font_normal_body">小区名称</label>
76
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
77
- condition="f_residential_area like '%{}%'" placeholder="小区"
78
- :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
79
- </div>
80
- <div :class="$parent.$parent.style">
81
- <label class="font_normal_body">房屋类型</label>
82
- <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
83
- close-on-select condition="f_house_type='{}'"
84
- placeholder='房屋类型' v-model="model.f_house_type"></v-select>
85
- </div>
86
- <div :class="$parent.$parent.style">
87
- <label class="font_normal_body">安装位置</label>
88
- <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
89
- close-on-select condition="f_position='{}'"
90
- placeholder='安装位置' v-model="model.f_position"></v-select>
91
- </div>
92
- <div :class="$parent.$parent.style">
93
- <label class="font_normal_body">&emsp;抄表员</label>
94
- <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
95
- close-on-select condition="f_inputtor='{}'"
96
- placeholder='抄表员' v-model="model.f_inputtor"></v-select>
97
- </div>
98
- </div>
99
- </div>
100
-
101
-
102
- </criteria>
103
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
104
- <template partial='head'>
105
- <tr>
106
- <th><nobr>序号</nobr></th>
107
- <th v-if="false"><nobr>省份</nobr></th>
108
- <th v-if="false"><nobr>城市</nobr></th>
109
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>区/县</nobr></th>
110
- <th><nobr>街道/乡镇</nobr></th>
111
- <!--民用小区信息开始-->
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 && !$parent.$parent.$parent.$parent.areaShow"><nobr>小区备注</nobr></th>
115
- <!--民用小区信息结束-->
116
- <!--非民用单位信息开始-->
117
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
118
- <th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
119
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
120
- <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
121
- <!--非民用单位信息结束-->
122
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>抄表员</nobr></th>
123
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>房屋类型</nobr></th>
124
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>安装位置</nobr></th>
125
- <th><nobr>操作人</nobr></th>
126
- <th><nobr>操作日期</nobr></th>
127
- <th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
128
- <th><nobr>操作</nobr></th>
129
-
130
- </tr>
131
- </template>
132
- <template partial='body'>
133
- <tr>
134
- <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
135
- <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
136
- <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
137
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
138
- <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
139
- <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
140
- <td style="text-align:center"><nobr>{{row.f_area_address}}</nobr></td>
141
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
142
- <!--非民用单位信息开始-->
143
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
144
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
145
- <!--非民用单位信息结束-->
146
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
147
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
148
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
149
- <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
150
- <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
151
- <td style="text-align:center"><nobr>{{row.addressnum}}</nobr></td>
152
- <td><nobr>
153
- <!--<button type="button" name="button" class="btn btn-link"
154
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
155
- <button v-if="!row.f_residential_area_id" type="button" name="button" class="btn btn-danger"
156
- style="padding: 5px 12px"
157
- @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
158
- </nobr></td>
159
- </tr>
160
- </template>
161
- <template partial='foot'></template>
162
- </data-grid>
163
- </criteria-paged>
164
- </div>
165
- </template>
166
-
167
- <script>
168
- import { PagedList } from 'vue-client'
169
- let readyGen = async function (self) {
170
- self.getfield = self.config.excelHeaders
171
- self.search()
172
- }
173
- export default {
174
-
175
- data () {
176
- return {
177
- criteriaShow: false,
178
- model: new PagedList('rs/sql/address_getarealist',20),
179
- addflag: false,
180
- addtitle:'',
181
- getfield: {},
182
- // 公司下拉
183
- curorgid: [this.$login.f.orgid],
184
- f_orgid: '',
185
- config: {
186
- // 导出列要和查询列相同
187
- excelHeaders: {
188
- 'f_district':'区/县',
189
- 'f_street':'街道名称',
190
- 'f_residential_area':'小区名称',
191
- 'f_area_address':'小区地址',
192
- 'f_comments':'小区备注',
193
- 'f_inputtor':'抄表员',
194
- 'f_house_type':'房屋类型',
195
- 'f_position':'安装位置',
196
- 'f_slice_area':'片区/管理站',
197
- 'f_operator':'操作人',
198
- 'f_operate_date':'操作日期',
199
- 'addressnum':'地址数'
200
- }
201
- },
202
- housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
203
- position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
204
- }
205
- },
206
- title: '小区管理',
207
- props:{
208
- f_filialeids:{
209
- type: String
210
- },
211
- style: {
212
- type: String,
213
- default: 'col-sm-2 form-group'
214
- },
215
- f_special:{
216
- type: String
217
- }
218
- },
219
- ready(){
220
- readyGen(this)
221
-
222
- },
223
- methods: {
224
- hidden() {
225
- this.criteriaShow = !this.criteriaShow
226
- },
227
- search() {
228
- this.$refs.paged.$refs.cri.search()
229
- },
230
-
231
- async delete(row){
232
- if(row.id >= 0){
233
- var id = row.id
234
- let useraredss = await this.$resetpost('rs/sql/address_singleTable',
235
- {data: {
236
- items: 'f_residential_area_id',
237
- tablename: 't_user_address',
238
- condition: `f_residential_area_id='${id}'`}
239
- },
240
- {resolveMsg: null, rejectMsg: null})
241
- if(useraredss.data.length>0){
242
- this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
243
- }else{
244
- this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
245
- this.$dispatch('cancel')
246
- })
247
- }
248
- }
249
- },
250
- add(val){
251
- if (this.f_filialeids) {
252
- this.$refs.paged.$refs.grid.selectStore.selected = null
253
- this.$dispatch('add')
254
- } else {
255
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
256
- }
257
- },
258
- modify(val){
259
- this.$refs.paged.$refs.grid.selectStore.selected = null
260
- this.$dispatch('modify',val)
261
- },
262
- selfSearch (args) {
263
-
264
- if (!this.f_orgid) {
265
- this.getorg([this.$login.f.orgid])
266
- }
267
- if(this.f_special){
268
- args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
269
- }else{
270
- args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
271
- }
272
- this.model.search(args.condition, args.model)
273
- },
274
- //清空
275
- clear(){
276
- this.$refs.paged.$refs.cri.model = {}
277
- },
278
- getorg (val) {
279
- this.f_orgid = this.$login.convertToIn(val)
280
- this.f_filialeids = val[0]
281
- }
282
- },
283
- watch:{
284
-
285
- },
286
- computed:{
287
- getCondition() {
288
- var condition=''
289
- if(this.f_special){
290
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
291
- }else{
292
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
293
- }
294
- return {
295
- condition: condition
296
- }
297
- },
298
- inputtores () {
299
- // 获取抄表员
300
- let rs = new Array()
301
- if (this.$login.f.f_gasman.length > 0) {
302
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
303
- let temp = {
304
- label: this.$login.f.f_gasman[i].name,
305
- value: this.$login.f.f_gasman[i].name
306
- }
307
- rs.push(temp)
308
- }
309
- }
310
- return rs
311
- }
312
- }
313
-
314
- }
315
- </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
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ sqlurl="rs/logic/exportfile"
49
+ sql-name="manage_getarealist"
50
+ template-name='小区信息查询导出'
51
+ :choose-col="true"></export-excel>
52
+ <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>
53
+ </div>
54
+ </div>
55
+ <div class="row" v-if="$parent.$parent.criteriaShow">
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_city"
59
+ condition="f_city like '%{}%'" placeholder="城市"
60
+ :size="model.f_city ? model.f_city.length*2 : 6"/>
61
+ </div>
62
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
63
+ <label class="font_normal_body">区&emsp;&emsp;县</label>
64
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
65
+ condition="f_district like '%{}%'" placeholder="区县"
66
+ :size="model.f_district ? model.f_district.length*2 : 6"/>
67
+ </div>
68
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
69
+ <label class="font_normal_body">街道乡镇</label>
70
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
71
+ condition="f_street like '%{}%'" placeholder="街道/乡镇"
72
+ :size="model.f_street ? model.f_street.length*2 : 6"/>
73
+ </div>
74
+ <div :class="$parent.$parent.style">
75
+ <label class="font_normal_body">小区名称</label>
76
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
77
+ condition="f_residential_area like '%{}%'" placeholder="小区"
78
+ :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
79
+ </div>
80
+ <div :class="$parent.$parent.style">
81
+ <label class="font_normal_body">房屋类型</label>
82
+ <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
83
+ close-on-select condition="f_house_type='{}'"
84
+ placeholder='房屋类型' v-model="model.f_house_type"></v-select>
85
+ </div>
86
+ <div :class="$parent.$parent.style">
87
+ <label class="font_normal_body">安装位置</label>
88
+ <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
89
+ close-on-select condition="f_position='{}'"
90
+ placeholder='安装位置' v-model="model.f_position"></v-select>
91
+ </div>
92
+ <div :class="$parent.$parent.style">
93
+ <label class="font_normal_body">&emsp;抄表员</label>
94
+ <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
95
+ close-on-select condition="f_inputtor='{}'"
96
+ placeholder='抄表员' v-model="model.f_inputtor"></v-select>
97
+ </div>
98
+ </div>
99
+ </div>
100
+
101
+
102
+ </criteria>
103
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
104
+ <template partial='head'>
105
+ <tr>
106
+ <th><nobr>序号</nobr></th>
107
+ <th v-if="false"><nobr>省份</nobr></th>
108
+ <th v-if="false"><nobr>城市</nobr></th>
109
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>区/县</nobr></th>
110
+ <th><nobr>街道/乡镇</nobr></th>
111
+ <!--民用小区信息开始-->
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 && !$parent.$parent.$parent.$parent.areaShow"><nobr>小区备注</nobr></th>
115
+ <!--民用小区信息结束-->
116
+ <!--非民用单位信息开始-->
117
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
118
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
119
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
120
+ <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
121
+ <!--非民用单位信息结束-->
122
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>抄表员</nobr></th>
123
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>房屋类型</nobr></th>
124
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>安装位置</nobr></th>
125
+ <th><nobr>操作人</nobr></th>
126
+ <th><nobr>操作日期</nobr></th>
127
+ <th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
128
+ <th><nobr>操作</nobr></th>
129
+
130
+ </tr>
131
+ </template>
132
+ <template partial='body'>
133
+ <tr>
134
+ <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
135
+ <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
136
+ <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
137
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
138
+ <td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
139
+ <td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
140
+ <td style="text-align:center"><nobr>{{row.f_area_address}}</nobr></td>
141
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
142
+ <!--非民用单位信息开始-->
143
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
144
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
145
+ <!--非民用单位信息结束-->
146
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
147
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
148
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
149
+ <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
150
+ <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
151
+ <td style="text-align:center"><nobr>{{row.addressnum}}</nobr></td>
152
+ <td><nobr>
153
+ <!--<button type="button" name="button" class="btn btn-link"
154
+ @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
155
+ <button v-if="!row.f_residential_area_id" type="button" name="button" class="btn btn-danger"
156
+ style="padding: 5px 12px"
157
+ @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
158
+ </nobr></td>
159
+ </tr>
160
+ </template>
161
+ <template partial='foot'></template>
162
+ </data-grid>
163
+ </criteria-paged>
164
+ </div>
165
+ </template>
166
+
167
+ <script>
168
+ import { PagedList } from 'vue-client'
169
+ let readyGen = async function (self) {
170
+ self.getfield = self.config.excelHeaders
171
+ self.search()
172
+ }
173
+ export default {
174
+
175
+ data () {
176
+ return {
177
+ criteriaShow: false,
178
+ model: new PagedList('rs/sql/address_getarealist',20),
179
+ addflag: false,
180
+ addtitle:'',
181
+ getfield: {},
182
+ // 公司下拉
183
+ curorgid: [this.$login.f.orgid],
184
+ f_orgid: '',
185
+ config: {
186
+ // 导出列要和查询列相同
187
+ excelHeaders: {
188
+ 'f_district':'区/县',
189
+ 'f_street':'街道名称',
190
+ 'f_residential_area':'小区名称',
191
+ 'f_area_address':'小区地址',
192
+ 'f_comments':'小区备注',
193
+ 'f_inputtor':'抄表员',
194
+ 'f_house_type':'房屋类型',
195
+ 'f_position':'安装位置',
196
+ 'f_slice_area':'片区/管理站',
197
+ 'f_operator':'操作人',
198
+ 'f_operate_date':'操作日期',
199
+ 'addressnum':'地址数'
200
+ }
201
+ },
202
+ housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
203
+ position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
204
+ }
205
+ },
206
+ title: '小区管理',
207
+ props:{
208
+ f_filialeids:{
209
+ type: String
210
+ },
211
+ style: {
212
+ type: String,
213
+ default: 'col-sm-2 form-group'
214
+ },
215
+ f_special:{
216
+ type: String
217
+ }
218
+ },
219
+ ready(){
220
+ readyGen(this)
221
+
222
+ },
223
+ methods: {
224
+ hidden() {
225
+ this.criteriaShow = !this.criteriaShow
226
+ },
227
+ search() {
228
+ this.$refs.paged.$refs.cri.search()
229
+ },
230
+
231
+ async delete(row){
232
+ if(row.id >= 0){
233
+ var id = row.id
234
+ let useraredss = await this.$resetpost('rs/sql/address_singleTable',
235
+ {data: {
236
+ items: 'f_residential_area_id',
237
+ tablename: 't_user_address',
238
+ condition: `f_residential_area_id='${id}'`}
239
+ },
240
+ {resolveMsg: null, rejectMsg: null})
241
+ if(useraredss.data.length>0){
242
+ this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
243
+ }else{
244
+ this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
245
+ this.$dispatch('cancel')
246
+ })
247
+ }
248
+ }
249
+ },
250
+ add(val){
251
+ if (this.f_filialeids) {
252
+ this.$refs.paged.$refs.grid.selectStore.selected = null
253
+ this.$dispatch('add')
254
+ } else {
255
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
256
+ }
257
+ },
258
+ modify(val){
259
+ this.$refs.paged.$refs.grid.selectStore.selected = null
260
+ this.$dispatch('modify',val)
261
+ },
262
+ selfSearch (args) {
263
+
264
+ if (!this.f_orgid) {
265
+ this.getorg([this.$login.f.orgid])
266
+ }
267
+ if(this.f_special){
268
+ args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
269
+ }else{
270
+ args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
271
+ }
272
+ this.model.search(args.condition, args.model)
273
+ },
274
+ //清空
275
+ clear(){
276
+ this.$refs.paged.$refs.cri.model = {}
277
+ },
278
+ getorg (val) {
279
+ this.f_orgid = this.$login.convertToIn(val)
280
+ this.f_filialeids = val[0]
281
+ }
282
+ },
283
+ watch:{
284
+
285
+ },
286
+ computed:{
287
+ getCondition() {
288
+ var condition=''
289
+ if(this.f_special){
290
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
291
+ }else{
292
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
293
+ }
294
+ return {
295
+ condition: condition
296
+ }
297
+ },
298
+ inputtores () {
299
+ // 获取抄表员
300
+ let rs = new Array()
301
+ if (this.$login.f.f_gasman.length > 0) {
302
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
303
+ let temp = {
304
+ label: this.$login.f.f_gasman[i].name,
305
+ value: this.$login.f.f_gasman[i].name
306
+ }
307
+ rs.push(temp)
308
+ }
309
+ }
310
+ return rs
311
+ }
312
+ }
313
+
314
+ }
315
+ </script>