address-client 3.0.24-78 → 3.0.24-aode

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