address-client 3.2.108 → 3.2.109

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