address-client 4.0.1 → 4.0.3

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 (167) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  12. package/.gradle/file-system.probe +0 -0
  13. package/.gradle/vcs-1/gc.properties +0 -0
  14. package/CHANGELOG.md +15 -15
  15. package/build/dev-server.js +185 -185
  16. package/build/versionCheck.js +31 -31
  17. package/build/webpack.base.conf.js +82 -82
  18. package/examples/showAdd/App.vue +40 -40
  19. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  20. package/gradle/wrapper/gradle-wrapper.properties +7 -0
  21. package/gradlew +249 -0
  22. package/gradlew.bat +92 -0
  23. package/index.html +44 -44
  24. package/package.json +101 -101
  25. package/src/address.js +74 -74
  26. package/src/components/AddAreaMsg.vue +757 -757
  27. package/src/components/AddCommunityManageMsg.vue +220 -220
  28. package/src/components/AddStreetManageMsg.vue +204 -204
  29. package/src/components/AddStreetOrPcd.vue +316 -316
  30. package/src/components/AddressAddAddress.vue +479 -479
  31. package/src/components/AddressFiles.vue +156 -156
  32. package/src/components/AddressList.vue +637 -637
  33. package/src/components/AddressListLiuLi.vue +17 -17
  34. package/src/components/AddressManage.vue +117 -117
  35. package/src/components/AddressTree.vue +501 -501
  36. package/src/components/AreaFiles.vue +73 -73
  37. package/src/components/AreaList.vue +410 -410
  38. package/src/components/AreaManage.vue +104 -104
  39. package/src/components/AreaTree.vue +508 -508
  40. package/src/components/Basch.vue +72 -72
  41. package/src/components/BatchOrders.vue +328 -328
  42. package/src/components/BuildingList.vue +129 -129
  43. package/src/components/CityList.vue +134 -134
  44. package/src/components/CityManage.vue +76 -76
  45. package/src/components/CommunityAreaList.vue +87 -87
  46. package/src/components/CommunityManage.vue +78 -78
  47. package/src/components/CommunityManageList.vue +244 -244
  48. package/src/components/NewAddressInfo.vue +432 -432
  49. package/src/components/StreetList.vue +241 -241
  50. package/src/components/StreetManage.vue +68 -68
  51. package/src/components/StreetManageList.vue +225 -225
  52. package/src/components/UserAddress.vue +911 -907
  53. package/src/components/UserAddressChange.vue +58 -58
  54. package/src/components/selectAddress/BatchList.vue +326 -326
  55. package/src/components/selectAddress/BatchOrders.vue +37 -36
  56. package/src/filiale/WEINAN/AddAreaMsg.vue +745 -745
  57. package/src/filiale/WEINAN/AddressList.vue +588 -588
  58. package/src/filiale/WEINAN/AddressManage.vue +122 -122
  59. package/src/filiale/WEINAN/AreaList.vue +435 -435
  60. package/src/filiale/WEINAN/AreaManage.vue +109 -109
  61. package/src/filiale/WEINAN/AreaUserList.vue +226 -226
  62. package/src/filiale/WEINAN/UserAddress.vue +783 -783
  63. package/src/filiale/WEINAN/sale.js +18 -18
  64. package/src/filiale/chengtou/UserAddress.vue +894 -894
  65. package/src/filiale/chengtou/sale.js +7 -7
  66. package/src/filiale/dongguan/AddStreetOrPcd.vue +422 -422
  67. package/src/filiale/dongguan/sale.js +7 -7
  68. package/src/filiale/gaomi/AddressList.vue +430 -430
  69. package/src/filiale/gaomi/UserAddress.vue +832 -832
  70. package/src/filiale/gaomi/sale.js +14 -14
  71. package/src/filiale/gongyi/AddAreaMsg.vue +651 -651
  72. package/src/filiale/gongyi/AreaManage.vue +100 -100
  73. package/src/filiale/gongyi/UserAddress.vue +751 -751
  74. package/src/filiale/gongyi/sale.js +14 -14
  75. package/src/filiale/haile/AddressList.vue +615 -615
  76. package/src/filiale/haile/sale.js +8 -8
  77. package/src/filiale/huaran/components/AddAreaMsg.vue +765 -0
  78. package/src/filiale/huaran/components/AddStreetOrPcd.vue +324 -0
  79. package/src/filiale/huaran/components/AddressList.vue +637 -0
  80. package/src/filiale/huaran/components/AreaList.vue +410 -0
  81. package/src/filiale/huaran/components/StreetList.vue +241 -0
  82. package/src/filiale/huaran/components/UserAddress.vue +919 -0
  83. package/src/filiale/huaran/sale.js +22 -0
  84. package/src/filiale/jingwei/UserAddress.vue +764 -764
  85. package/src/filiale/jingwei/sale.js +12 -12
  86. package/src/filiale/lixianV3/AreaList.vue +416 -416
  87. package/src/filiale/lixianV3/sale.js +12 -12
  88. package/src/filiale/macheng/AddAreaMsg.vue +635 -635
  89. package/src/filiale/macheng/AddStreetOrPcd.vue +231 -231
  90. package/src/filiale/macheng/AddressList.vue +613 -613
  91. package/src/filiale/macheng/AreaList.vue +318 -318
  92. package/src/filiale/macheng/CityManage.vue +76 -76
  93. package/src/filiale/macheng/StreetList.vue +186 -186
  94. package/src/filiale/macheng/UserAddress.vue +743 -743
  95. package/src/filiale/macheng/sale.js +17 -17
  96. package/src/filiale/meihekou/UserAddress.vue +898 -898
  97. package/src/filiale/meihekou/sale.js +8 -8
  98. package/src/filiale/qianneng/AddAreaMsg.vue +755 -755
  99. package/src/filiale/qianneng/AddStreetOrPcd.vue +328 -328
  100. package/src/filiale/qianneng/AddressList.vue +638 -638
  101. package/src/filiale/qianneng/AreaList.vue +431 -431
  102. package/src/filiale/qianneng/CityManage.vue +81 -81
  103. package/src/filiale/qianneng/UserAddress.vue +1125 -1125
  104. package/src/filiale/qianneng/sale.js +20 -20
  105. package/src/filiale/qinhua/AddAreaMsg.vue +743 -743
  106. package/src/filiale/qinhua/AddressList.vue +627 -627
  107. package/src/filiale/qinhua/AddressManage.vue +117 -117
  108. package/src/filiale/qinhua/AreaList.vue +425 -425
  109. package/src/filiale/qinhua/AreaManage.vue +100 -100
  110. package/src/filiale/qinhua/CityManage.vue +76 -76
  111. package/src/filiale/qinhua/StreetList.vue +241 -241
  112. package/src/filiale/qinhua/UserAddress.vue +894 -894
  113. package/src/filiale/qinhua/sale.js +20 -20
  114. package/src/filiale/rizhao/UserAddress.vue +897 -897
  115. package/src/filiale/rizhao/sale.js +8 -8
  116. package/src/filiale/rongcheng/AddressList.vue +363 -363
  117. package/src/filiale/rongcheng/UserAddress.vue +799 -799
  118. package/src/filiale/rongcheng/sale.js +11 -11
  119. package/src/filiale/shanggao/AddAreaMsg.vue +752 -752
  120. package/src/filiale/shanggao/AddStreetOrPcd.vue +312 -312
  121. package/src/filiale/shanggao/AddressList.vue +613 -613
  122. package/src/filiale/shanggao/AreaList.vue +436 -436
  123. package/src/filiale/shanggao/BuildingList.vue +129 -129
  124. package/src/filiale/shanggao/StreetList.vue +240 -240
  125. package/src/filiale/shanggao/UserAddress.vue +953 -953
  126. package/src/filiale/shanggao/sale.js +16 -16
  127. package/src/filiale/shanxian/AddAreaMsg.vue +766 -766
  128. package/src/filiale/shanxian/AddressList.vue +658 -658
  129. package/src/filiale/shanxian/AreaList.vue +458 -458
  130. package/src/filiale/shanxian/AreaManage.vue +107 -107
  131. package/src/filiale/shanxian/UserAddress.vue +900 -900
  132. package/src/filiale/shanxian/sale.js +15 -15
  133. package/src/filiale/shaoguan/AddAreaMsg.vue +629 -629
  134. package/src/filiale/shaoguan/UserAddress.vue +762 -762
  135. package/src/filiale/shaoguan/sale.js +11 -11
  136. package/src/filiale/tongchuan/AddAreaMsg.vue +635 -635
  137. package/src/filiale/tongchuan/AddStreetOrPcd.vue +351 -351
  138. package/src/filiale/tongchuan/AddressList.vue +379 -379
  139. package/src/filiale/tongchuan/AreaList.vue +315 -315
  140. package/src/filiale/tongchuan/AreaManage.vue +100 -100
  141. package/src/filiale/tongchuan/CityList.vue +133 -133
  142. package/src/filiale/tongchuan/StreetList.vue +215 -215
  143. package/src/filiale/tongchuan/UserAddress.vue +822 -822
  144. package/src/filiale/tongchuan/sale.js +19 -19
  145. package/src/filiale/wuhai/UserAddress.vue +795 -795
  146. package/src/filiale/wuhai/sale.js +12 -12
  147. package/src/filiale/xihu/AreaList.vue +409 -409
  148. package/src/filiale/xihu/StreetList.vue +238 -238
  149. package/src/filiale/xihu/sale.js +14 -14
  150. package/src/filiale/xinkang/AddAreaMsg.vue +780 -780
  151. package/src/filiale/xinkang/AreaList.vue +413 -413
  152. package/src/filiale/xinkang/sale.js +9 -9
  153. package/src/filiale/yangchun/AddAreaMsg.vue +764 -764
  154. package/src/filiale/yangchun/sale.js +7 -7
  155. package/src/filiale/zhongsheng/AddressList.vue +671 -671
  156. package/src/filiale/zhongsheng/AreaList.vue +500 -500
  157. package/src/filiale/zhongsheng/sale.js +12 -12
  158. package/src/filiale/zhongyi/AddAreaMsg.vue +757 -757
  159. package/src/filiale/zhongyi/sale.js +12 -12
  160. package/src/filiale/zhoukou/AddAreaMsg.vue +673 -673
  161. package/src/filiale/zhoukou/AddressList.vue +391 -391
  162. package/src/filiale/zhoukou/AddressManage.vue +115 -115
  163. package/src/filiale/zhoukou/AreaList.vue +319 -319
  164. package/src/filiale/zhoukou/AreaManage.vue +100 -100
  165. package/src/filiale/zhoukou/UserAddress.vue +925 -925
  166. package/src/filiale/zhoukou/sale.js +23 -23
  167. package/src/main.js +23 -23
@@ -1,431 +1,431 @@
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="col-sm-4 form-group button-range">
37
- <button class="button_search button_spacing" @click="search()" >查询</button>
38
- <button class="button_search button_spacing" @click="$parent.$parent.batchDelete()">批量删除</button>
39
- <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
40
- <button class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('楼栋')">楼栋管理</button>
41
- <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <export-excel :data="$parent.$parent.getCondition"
44
- :field="$parent.$parent.getfield"
45
- sqlurl="api/af-revenue/logic/exportfile"
46
- sql-name="manage_getarealist"
47
- template-name='小区信息查询导出'
48
- :choose-col="true"></export-excel>
49
- <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>
50
- </div>
51
- </div>
52
- <div class="row" v-if="$parent.$parent.criteriaShow">
53
- <div :class="$parent.$parent.style">
54
- <label class="font_normal_body">街道/乡镇</label>
55
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
56
- condition="f_street like '%{}%'" placeholder="街道/乡镇"/>
57
- </div>
58
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
59
- <label class="font_normal_body">城&emsp;&emsp;市</label>
60
- <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
61
- condition="f_city like '%{}%'" placeholder="城市"
62
- :size="model.f_city ? model.f_city.length*2 : 6"/>
63
- </div>
64
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
65
- <label class="font_normal_body">区&emsp;&emsp;县</label>
66
- <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
67
- condition="f_district like '%{}%'" placeholder="区县"
68
- :size="model.f_district ? model.f_district.length*2 : 6"/>
69
- </div>
70
- <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
71
- <label class="font_normal_body">街道/乡镇</label>
72
- <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
73
- condition="f_street like '%{}%'" placeholder="街道/乡镇"
74
- :size="model.f_street ? model.f_street.length*2 : 6"/>
75
- </div>
76
- <div :class="$parent.$parent.style">
77
- <label class="font_normal_body">小区名称</label>
78
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
79
- condition="f_residential_area like '%{}%'" placeholder="小区"
80
- :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
81
- </div>
82
- <div :class="$parent.$parent.style">
83
- <label class="font_normal_body">房屋类型</label>
84
- <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
85
- close-on-select condition="f_house_type='{}'"
86
- placeholder='房屋类型' v-model="model.f_house_type"></v-select>
87
- </div>
88
- <div :class="$parent.$parent.style">
89
- <label class="font_normal_body">安装位置</label>
90
- <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
91
- close-on-select condition="f_position='{}'"
92
- placeholder='安装位置' v-model="model.f_position"></v-select>
93
- </div>
94
- <div :class="$parent.$parent.style">
95
- <label class="font_normal_body">&emsp;抄表员</label>
96
- <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
97
- close-on-select condition="f_inputtor='{}'"
98
- placeholder='抄表员' v-model="model.f_inputtor"></v-select>
99
- </div>
100
- </div>
101
- </div>
102
- </criteria>
103
-
104
- <data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
105
- <template partial='head'>
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
- </template>
131
- <template partial='body'>
132
- <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
133
- <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
134
- <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
135
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
136
- <td style="text-align:left"><nobr>{{row.f_street}}</nobr></td>
137
- <td style="text-align:left"><nobr>{{row.f_residential_area}}</nobr></td>
138
- <td style="text-align:left"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
139
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
140
- <!--非民用单位信息开始-->
141
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
142
- <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
143
- <!--非民用单位信息结束-->
144
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
145
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
146
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
147
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
148
- <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
149
- <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
150
- <td style="text-align:center"><nobr>{{row.addressnum}}</nobr></td>
151
- <td><nobr>
152
- <!--<button type="button" name="button" class="btn btn-link"
153
- @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
154
- <button v-if="!row.f_residential_area_id" type="button" name="button" class="btn btn-danger"
155
- style="padding: 5px 12px"
156
- @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
157
- </nobr>
158
- </td>
159
- </template>
160
- <template partial='foot'></template>
161
- </data-grid>
162
- </criteria-paged>
163
- <modal :show="showDelete" large backdrop="false" :width="900">
164
- <header slot="modal-header" class="modal-header">
165
- <p class="bg-info text-center" style="padding: 8px;">请选择目标小区</p>
166
- </header>
167
- <article slot="modal-body" class="modal-body">
168
- <validator name='v'>
169
- <div class="col-sm-6 form-group ">
170
- <label class="font_normal_body">小区名称</label>
171
- <input type="text" style="width:41%" v-show="false" v-validate:f_residential_area_id='{required: true }' v-model="areamodel.f_residential_area_id">
172
- <v-select :value.sync="areamodel.f_residential_area_id" :value-single="true"
173
- @change="areaChange"
174
- :options='areaslist' placeholder='请选择'
175
- close-on-select search="true">
176
- </v-select>
177
- </div>
178
- </validator>
179
- </article>
180
- <footer slot="modal-footer" class="modal-footer">
181
- <button v-show="showDelete" type="button" class="button_search button_spacing" @click='confirmDelete()' :disabled='!$v.valid'>确认</button>
182
- <button v-show="showDelete" type="button" class="button_clear button_spacing" @click='cancelDelete()'>取消</button>
183
- </footer>
184
- </modal>
185
- </div>
186
- </template>
187
-
188
- <script>
189
- import { PagedList } from 'vue-client'
190
- let readyGen = async function (self) {
191
- self.getfield = self.config.excelHeaders
192
- self.search()
193
- }
194
- export default {
195
-
196
- data () {
197
- return {
198
- showDelete: false,
199
- criteriaShow: false,
200
- // 目标小区数据
201
- areamodel: {
202
- f_residential_area_id: '',
203
- f_pcd: '',
204
- f_pcd_id: '',
205
- f_street: '',
206
- f_street_id: '',
207
- f_slice_area: '',
208
- f_residential_area: ''
209
- },
210
- model: new PagedList('api/af-revenue/sql/address_getarealist',20),
211
- addflag: false,
212
- addtitle:'',
213
- getfield: {},
214
- // 公司下拉
215
- curorgid: [this.$login.f.orgid],
216
- f_orgid: '',
217
- //初始化小区数据
218
- areaslist:[],
219
- config: {
220
- // 导出列要和查询列相同
221
- excelHeaders: {
222
- 'f_district':'区/县',
223
- 'f_street':'街道名称',
224
- 'f_residential_area':'小区名称',
225
- 'f_area_address':'小区地址',
226
- 'f_comments':'小区备注',
227
- 'f_inputtor':'抄表员',
228
- 'f_house_type':'房屋类型',
229
- 'f_position':'安装位置',
230
- 'f_slice_area':'片区/管理站',
231
- 'f_operator':'操作人',
232
- 'f_operate_date':'操作日期',
233
- 'addressnum':'地址数'
234
- }
235
- },
236
- housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
237
- position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
238
- }
239
- },
240
- title: '小区管理',
241
- props:{
242
- f_filialeids:{
243
- type: String
244
- },
245
- style: {
246
- type: String,
247
- default: 'col-sm-2 form-group'
248
- },
249
- f_special:{
250
- type: String
251
- }
252
- },
253
- ready(){
254
- readyGen(this)
255
-
256
- },
257
- methods: {
258
- hidden() {
259
- this.criteriaShow = !this.criteriaShow
260
- },
261
- search() {
262
- this.$refs.paged.$refs.cri.search()
263
- },
264
-
265
- async delete(row){
266
- if(row.id >= 0){
267
- var id = row.id
268
- let useraredss = await this.$resetpost('api/af-revenue/sql/address_singleTable',
269
- {data: {
270
- items: 'f_residential_area_id',
271
- tablename: 't_user_address',
272
- condition: `f_residential_area_id='${id}'`}
273
- },
274
- {resolveMsg: null, rejectMsg: null})
275
- if(useraredss.data.length>0){
276
- this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
277
- }else{
278
- this.$resetdelete('api/af-revenue/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
279
- this.$dispatch('cancel')
280
- })
281
- }
282
- }
283
- },
284
- add(val){
285
- if (this.f_filialeids) {
286
- this.$refs.paged.$refs.grid.selectStore.selected = null
287
- this.$dispatch('add', val)
288
- } else {
289
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
290
- }
291
- },
292
- modify(val){
293
- this.$refs.paged.$refs.grid.selectStore.selected = null
294
- this.$dispatch('modify',val)
295
- },
296
- selfSearch (args) {
297
-
298
- if (!this.f_orgid) {
299
- this.getorg([this.$login.f.orgid])
300
- }
301
- if(this.f_special){
302
- args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
303
- }else{
304
- args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
305
- }
306
- this.model.search(args.condition, args.model)
307
- },
308
- //清空
309
- clear(){
310
- this.$refs.paged.$refs.cri.model = {}
311
- },
312
- getorg (val) {
313
- this.f_orgid = this.$login.convertToIn(val)
314
- this.f_filialeids = val[0]
315
- },
316
- async batchDelete () {
317
- if (this.f_filialeids) {
318
- if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
319
- this.showDelete = true
320
- let condition = `a.f_orgid = '${this.f_filialeids}'`
321
- let req = await this.$resetpost('api/af-revenue/sql/address_getresidential', {
322
- data: {
323
- condition: condition
324
- }
325
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
326
- let redata = []
327
- req.data.forEach((row) => {
328
- redata.push({
329
- label: row.f_residential_area,
330
- value: row.id,
331
- data: row,
332
- id: row.id
333
- })
334
- })
335
- this.areaslist = redata
336
- } else {
337
- this.$showAlert('请至少选择一项!', 'warning', 2000)
338
- }
339
- }else {
340
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
341
- }
342
- },
343
- confirmDelete () {
344
- let msg = {
345
- resolveMsg: '批量删除成功',
346
- rejectMsg: '批量删除失败!'
347
- }
348
- let oldAreaIds = []
349
- // 获取要批量删除的小区数据
350
- this.$refs.paged.$refs.grid.getRowData().forEach((row,n) => {
351
- oldAreaIds[n] = row.id
352
- })
353
- this.$resetpost('api/af-revenue/logic/batchDelete',{
354
- data:{
355
- areamodel:this.areamodel,
356
- oldAreaIds:oldAreaIds,
357
- f_operator: this.$login.f.name,
358
- f_operatorid: this.$login.f.id,
359
- f_orgid: this.$login.f.orgid,
360
- f_orgname: this.$login.f.orgs,
361
- f_depid: this.$login.f.depids,
362
- f_depname: this.$login.f.deps
363
- }
364
- },msg)
365
- this.$refs.paged.$refs.grid.selectInit()
366
- this.$refs.paged.$refs.cri.search()
367
- this.areamodel.f_residential_area_id = ''
368
- this.showDelete = false
369
- },
370
- cancelDelete () {
371
- this.$refs.paged.$refs.grid.selectInit()
372
- this.$refs.paged.$refs.cri.search()
373
- this.areamodel.f_residential_area_id = ''
374
- this.showDelete = false
375
- },
376
- areaChange(val){
377
- console.log("小区变化",val)
378
- let selectArea // 选中的小区数据
379
- for (let row of this.areaslist) {
380
- if (val == row.value) {
381
- selectArea = row.data
382
- break
383
- }
384
- }
385
- if (selectArea) {
386
- this.areamodel.f_residential_area_id = selectArea.id
387
- this.areamodel.f_pcd = selectArea.f_pcd
388
- this.areamodel.f_pcd_id = selectArea.f_pcd_id
389
- this.areamodel.f_street = selectArea.f_street
390
- this.areamodel.f_street_id = selectArea.f_street_id
391
- this.areamodel.f_slice_area = selectArea.f_slice_area
392
- this.areamodel.f_residential_area = selectArea.f_residential_area
393
- }
394
- this.$nextTick(() => {
395
- this.$resetValidation()
396
- })
397
- },
398
- },
399
- watch:{
400
-
401
- },
402
- computed:{
403
- getCondition() {
404
- var condition=''
405
- if(this.f_special){
406
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
407
- }else{
408
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
409
- }
410
- return {
411
- condition: condition
412
- }
413
- },
414
- inputtores () {
415
- // 获取抄表员
416
- let rs = new Array()
417
- if (this.$login.f.f_gasman.length > 0) {
418
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
419
- let temp = {
420
- label: this.$login.f.f_gasman[i].name,
421
- value: this.$login.f.f_gasman[i].name
422
- }
423
- rs.push(temp)
424
- }
425
- }
426
- return rs
427
- }
428
- }
429
-
430
- }
431
- </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="col-sm-4 form-group button-range">
37
+ <button class="button_search button_spacing" @click="search()" >查询</button>
38
+ <button class="button_search button_spacing" @click="$parent.$parent.batchDelete()">批量删除</button>
39
+ <button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
40
+ <button class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('楼栋')">楼栋管理</button>
41
+ <button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <export-excel :data="$parent.$parent.getCondition"
44
+ :field="$parent.$parent.getfield"
45
+ sqlurl="api/af-revenue/logic/exportfile"
46
+ sql-name="manage_getarealist"
47
+ template-name='小区信息查询导出'
48
+ :choose-col="true"></export-excel>
49
+ <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>
50
+ </div>
51
+ </div>
52
+ <div class="row" v-if="$parent.$parent.criteriaShow">
53
+ <div :class="$parent.$parent.style">
54
+ <label class="font_normal_body">街道/乡镇</label>
55
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
56
+ condition="f_street like '%{}%'" placeholder="街道/乡镇"/>
57
+ </div>
58
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
59
+ <label class="font_normal_body">城&emsp;&emsp;市</label>
60
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_city"
61
+ condition="f_city like '%{}%'" placeholder="城市"
62
+ :size="model.f_city ? model.f_city.length*2 : 6"/>
63
+ </div>
64
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
65
+ <label class="font_normal_body">区&emsp;&emsp;县</label>
66
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_district"
67
+ condition="f_district like '%{}%'" placeholder="区县"
68
+ :size="model.f_district ? model.f_district.length*2 : 6"/>
69
+ </div>
70
+ <div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.areaShow">
71
+ <label class="font_normal_body">街道/乡镇</label>
72
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_street"
73
+ condition="f_street like '%{}%'" placeholder="街道/乡镇"
74
+ :size="model.f_street ? model.f_street.length*2 : 6"/>
75
+ </div>
76
+ <div :class="$parent.$parent.style">
77
+ <label class="font_normal_body">小区名称</label>
78
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
79
+ condition="f_residential_area like '%{}%'" placeholder="小区"
80
+ :size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
81
+ </div>
82
+ <div :class="$parent.$parent.style">
83
+ <label class="font_normal_body">房屋类型</label>
84
+ <v-select :options='$parent.$parent.housetype' :value.sync="model.f_house_type"
85
+ close-on-select condition="f_house_type='{}'"
86
+ placeholder='房屋类型' v-model="model.f_house_type"></v-select>
87
+ </div>
88
+ <div :class="$parent.$parent.style">
89
+ <label class="font_normal_body">安装位置</label>
90
+ <v-select :options='$parent.$parent.position' :value.sync="model.f_position"
91
+ close-on-select condition="f_position='{}'"
92
+ placeholder='安装位置' v-model="model.f_position"></v-select>
93
+ </div>
94
+ <div :class="$parent.$parent.style">
95
+ <label class="font_normal_body">&emsp;抄表员</label>
96
+ <v-select :options='$parent.$parent.inputtores' :value.sync="model.f_inputtor"
97
+ close-on-select condition="f_inputtor='{}'"
98
+ placeholder='抄表员' v-model="model.f_inputtor"></v-select>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ </criteria>
103
+
104
+ <data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
105
+ <template partial='head'>
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
+ </template>
131
+ <template partial='body'>
132
+ <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
133
+ <td style="text-align:center" v-if="false"><nobr>{{row.f_province}}</nobr></td>
134
+ <td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
135
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
136
+ <td style="text-align:left"><nobr>{{row.f_street}}</nobr></td>
137
+ <td style="text-align:left"><nobr>{{row.f_residential_area}}</nobr></td>
138
+ <td style="text-align:left"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
139
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
140
+ <!--非民用单位信息开始-->
141
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
142
+ <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
143
+ <!--非民用单位信息结束-->
144
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_inputtor}}</nobr></td>
145
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_house_type}}</nobr></td>
146
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
147
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
148
+ <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
149
+ <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
150
+ <td style="text-align:center"><nobr>{{row.addressnum}}</nobr></td>
151
+ <td><nobr>
152
+ <!--<button type="button" name="button" class="btn btn-link"
153
+ @click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
154
+ <button v-if="!row.f_residential_area_id" type="button" name="button" class="btn btn-danger"
155
+ style="padding: 5px 12px"
156
+ @click.stop="$parent.$parent.$parent.delete(row)">删除</button>
157
+ </nobr>
158
+ </td>
159
+ </template>
160
+ <template partial='foot'></template>
161
+ </data-grid>
162
+ </criteria-paged>
163
+ <modal :show="showDelete" large backdrop="false" :width="900">
164
+ <header slot="modal-header" class="modal-header">
165
+ <p class="bg-info text-center" style="padding: 8px;">请选择目标小区</p>
166
+ </header>
167
+ <article slot="modal-body" class="modal-body">
168
+ <validator name='v'>
169
+ <div class="col-sm-6 form-group ">
170
+ <label class="font_normal_body">小区名称</label>
171
+ <input type="text" style="width:41%" v-show="false" v-validate:f_residential_area_id='{required: true }' v-model="areamodel.f_residential_area_id">
172
+ <v-select :value.sync="areamodel.f_residential_area_id" :value-single="true"
173
+ @change="areaChange"
174
+ :options='areaslist' placeholder='请选择'
175
+ close-on-select search="true">
176
+ </v-select>
177
+ </div>
178
+ </validator>
179
+ </article>
180
+ <footer slot="modal-footer" class="modal-footer">
181
+ <button v-show="showDelete" type="button" class="button_search button_spacing" @click='confirmDelete()' :disabled='!$v.valid'>确认</button>
182
+ <button v-show="showDelete" type="button" class="button_clear button_spacing" @click='cancelDelete()'>取消</button>
183
+ </footer>
184
+ </modal>
185
+ </div>
186
+ </template>
187
+
188
+ <script>
189
+ import { PagedList } from 'vue-client'
190
+ let readyGen = async function (self) {
191
+ self.getfield = self.config.excelHeaders
192
+ self.search()
193
+ }
194
+ export default {
195
+
196
+ data () {
197
+ return {
198
+ showDelete: false,
199
+ criteriaShow: false,
200
+ // 目标小区数据
201
+ areamodel: {
202
+ f_residential_area_id: '',
203
+ f_pcd: '',
204
+ f_pcd_id: '',
205
+ f_street: '',
206
+ f_street_id: '',
207
+ f_slice_area: '',
208
+ f_residential_area: ''
209
+ },
210
+ model: new PagedList('api/af-revenue/sql/address_getarealist',20),
211
+ addflag: false,
212
+ addtitle:'',
213
+ getfield: {},
214
+ // 公司下拉
215
+ curorgid: [this.$login.f.orgid],
216
+ f_orgid: '',
217
+ //初始化小区数据
218
+ areaslist:[],
219
+ config: {
220
+ // 导出列要和查询列相同
221
+ excelHeaders: {
222
+ 'f_district':'区/县',
223
+ 'f_street':'街道名称',
224
+ 'f_residential_area':'小区名称',
225
+ 'f_area_address':'小区地址',
226
+ 'f_comments':'小区备注',
227
+ 'f_inputtor':'抄表员',
228
+ 'f_house_type':'房屋类型',
229
+ 'f_position':'安装位置',
230
+ 'f_slice_area':'片区/管理站',
231
+ 'f_operator':'操作人',
232
+ 'f_operate_date':'操作日期',
233
+ 'addressnum':'地址数'
234
+ }
235
+ },
236
+ housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
237
+ position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
238
+ }
239
+ },
240
+ title: '小区管理',
241
+ props:{
242
+ f_filialeids:{
243
+ type: String
244
+ },
245
+ style: {
246
+ type: String,
247
+ default: 'col-sm-2 form-group'
248
+ },
249
+ f_special:{
250
+ type: String
251
+ }
252
+ },
253
+ ready(){
254
+ readyGen(this)
255
+
256
+ },
257
+ methods: {
258
+ hidden() {
259
+ this.criteriaShow = !this.criteriaShow
260
+ },
261
+ search() {
262
+ this.$refs.paged.$refs.cri.search()
263
+ },
264
+
265
+ async delete(row){
266
+ if(row.id >= 0){
267
+ var id = row.id
268
+ let useraredss = await this.$resetpost('api/af-revenue/sql/address_singleTable',
269
+ {data: {
270
+ items: 'f_residential_area_id',
271
+ tablename: 't_user_address',
272
+ condition: `f_residential_area_id='${id}'`}
273
+ },
274
+ {resolveMsg: null, rejectMsg: null})
275
+ if(useraredss.data.length>0){
276
+ this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
277
+ }else{
278
+ this.$resetdelete('api/af-revenue/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
279
+ this.$dispatch('cancel')
280
+ })
281
+ }
282
+ }
283
+ },
284
+ add(val){
285
+ if (this.f_filialeids) {
286
+ this.$refs.paged.$refs.grid.selectStore.selected = null
287
+ this.$dispatch('add', val)
288
+ } else {
289
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
290
+ }
291
+ },
292
+ modify(val){
293
+ this.$refs.paged.$refs.grid.selectStore.selected = null
294
+ this.$dispatch('modify',val)
295
+ },
296
+ selfSearch (args) {
297
+
298
+ if (!this.f_orgid) {
299
+ this.getorg([this.$login.f.orgid])
300
+ }
301
+ if(this.f_special){
302
+ args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
303
+ }else{
304
+ args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
305
+ }
306
+ this.model.search(args.condition, args.model)
307
+ },
308
+ //清空
309
+ clear(){
310
+ this.$refs.paged.$refs.cri.model = {}
311
+ },
312
+ getorg (val) {
313
+ this.f_orgid = this.$login.convertToIn(val)
314
+ this.f_filialeids = val[0]
315
+ },
316
+ async batchDelete () {
317
+ if (this.f_filialeids) {
318
+ if (this.$refs.paged.$refs.grid.getRowData().length != 0) {
319
+ this.showDelete = true
320
+ let condition = `a.f_orgid = '${this.f_filialeids}'`
321
+ let req = await this.$resetpost('api/af-revenue/sql/address_getresidential', {
322
+ data: {
323
+ condition: condition
324
+ }
325
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
326
+ let redata = []
327
+ req.data.forEach((row) => {
328
+ redata.push({
329
+ label: row.f_residential_area,
330
+ value: row.id,
331
+ data: row,
332
+ id: row.id
333
+ })
334
+ })
335
+ this.areaslist = redata
336
+ } else {
337
+ this.$showAlert('请至少选择一项!', 'warning', 2000)
338
+ }
339
+ }else {
340
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
341
+ }
342
+ },
343
+ confirmDelete () {
344
+ let msg = {
345
+ resolveMsg: '批量删除成功',
346
+ rejectMsg: '批量删除失败!'
347
+ }
348
+ let oldAreaIds = []
349
+ // 获取要批量删除的小区数据
350
+ this.$refs.paged.$refs.grid.getRowData().forEach((row,n) => {
351
+ oldAreaIds[n] = row.id
352
+ })
353
+ this.$resetpost('api/af-revenue/logic/batchDelete',{
354
+ data:{
355
+ areamodel:this.areamodel,
356
+ oldAreaIds:oldAreaIds,
357
+ f_operator: this.$login.f.name,
358
+ f_operatorid: this.$login.f.id,
359
+ f_orgid: this.$login.f.orgid,
360
+ f_orgname: this.$login.f.orgs,
361
+ f_depid: this.$login.f.depids,
362
+ f_depname: this.$login.f.deps
363
+ }
364
+ },msg)
365
+ this.$refs.paged.$refs.grid.selectInit()
366
+ this.$refs.paged.$refs.cri.search()
367
+ this.areamodel.f_residential_area_id = ''
368
+ this.showDelete = false
369
+ },
370
+ cancelDelete () {
371
+ this.$refs.paged.$refs.grid.selectInit()
372
+ this.$refs.paged.$refs.cri.search()
373
+ this.areamodel.f_residential_area_id = ''
374
+ this.showDelete = false
375
+ },
376
+ areaChange(val){
377
+ console.log("小区变化",val)
378
+ let selectArea // 选中的小区数据
379
+ for (let row of this.areaslist) {
380
+ if (val == row.value) {
381
+ selectArea = row.data
382
+ break
383
+ }
384
+ }
385
+ if (selectArea) {
386
+ this.areamodel.f_residential_area_id = selectArea.id
387
+ this.areamodel.f_pcd = selectArea.f_pcd
388
+ this.areamodel.f_pcd_id = selectArea.f_pcd_id
389
+ this.areamodel.f_street = selectArea.f_street
390
+ this.areamodel.f_street_id = selectArea.f_street_id
391
+ this.areamodel.f_slice_area = selectArea.f_slice_area
392
+ this.areamodel.f_residential_area = selectArea.f_residential_area
393
+ }
394
+ this.$nextTick(() => {
395
+ this.$resetValidation()
396
+ })
397
+ },
398
+ },
399
+ watch:{
400
+
401
+ },
402
+ computed:{
403
+ getCondition() {
404
+ var condition=''
405
+ if(this.f_special){
406
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
407
+ }else{
408
+ condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
409
+ }
410
+ return {
411
+ condition: condition
412
+ }
413
+ },
414
+ inputtores () {
415
+ // 获取抄表员
416
+ let rs = new Array()
417
+ if (this.$login.f.f_gasman.length > 0) {
418
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
419
+ let temp = {
420
+ label: this.$login.f.f_gasman[i].name,
421
+ value: this.$login.f.f_gasman[i].name
422
+ }
423
+ rs.push(temp)
424
+ }
425
+ }
426
+ return rs
427
+ }
428
+ }
429
+
430
+ }
431
+ </script>