address-client 3.2.111 → 4.0.1

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 (143) hide show
  1. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  2. package/CHANGELOG.md +15 -15
  3. package/build/dev-server.js +185 -185
  4. package/build/versionCheck.js +31 -31
  5. package/build/webpack.base.conf.js +82 -82
  6. package/examples/showAdd/App.vue +40 -40
  7. package/index.html +44 -44
  8. package/package.json +101 -101
  9. package/src/address.js +74 -74
  10. package/src/components/AddAreaMsg.vue +757 -757
  11. package/src/components/AddCommunityManageMsg.vue +220 -220
  12. package/src/components/AddStreetManageMsg.vue +204 -204
  13. package/src/components/AddStreetOrPcd.vue +316 -316
  14. package/src/components/AddressAddAddress.vue +479 -479
  15. package/src/components/AddressFiles.vue +156 -156
  16. package/src/components/AddressList.vue +637 -637
  17. package/src/components/AddressListLiuLi.vue +17 -17
  18. package/src/components/AddressManage.vue +117 -117
  19. package/src/components/AddressTree.vue +501 -501
  20. package/src/components/AreaFiles.vue +73 -73
  21. package/src/components/AreaList.vue +410 -410
  22. package/src/components/AreaManage.vue +104 -104
  23. package/src/components/AreaTree.vue +508 -508
  24. package/src/components/Basch.vue +72 -72
  25. package/src/components/BatchOrders.vue +328 -328
  26. package/src/components/BuildingList.vue +129 -129
  27. package/src/components/CityList.vue +134 -134
  28. package/src/components/CityManage.vue +76 -76
  29. package/src/components/CommunityAreaList.vue +87 -87
  30. package/src/components/CommunityManage.vue +78 -78
  31. package/src/components/CommunityManageList.vue +244 -244
  32. package/src/components/NewAddressInfo.vue +432 -432
  33. package/src/components/StreetList.vue +241 -241
  34. package/src/components/StreetManage.vue +68 -68
  35. package/src/components/StreetManageList.vue +225 -225
  36. package/src/components/UserAddress.vue +907 -908
  37. package/src/components/UserAddressChange.vue +58 -58
  38. package/src/components/selectAddress/BatchList.vue +326 -326
  39. package/src/filiale/WEINAN/AddAreaMsg.vue +745 -745
  40. package/src/filiale/WEINAN/AddressList.vue +588 -588
  41. package/src/filiale/WEINAN/AddressManage.vue +122 -122
  42. package/src/filiale/WEINAN/AreaList.vue +435 -435
  43. package/src/filiale/WEINAN/AreaManage.vue +109 -109
  44. package/src/filiale/WEINAN/AreaUserList.vue +226 -226
  45. package/src/filiale/WEINAN/UserAddress.vue +783 -783
  46. package/src/filiale/WEINAN/sale.js +18 -18
  47. package/src/filiale/chengtou/UserAddress.vue +894 -894
  48. package/src/filiale/chengtou/sale.js +7 -7
  49. package/src/filiale/dongguan/AddStreetOrPcd.vue +422 -422
  50. package/src/filiale/dongguan/sale.js +7 -7
  51. package/src/filiale/gaomi/AddressList.vue +430 -430
  52. package/src/filiale/gaomi/UserAddress.vue +832 -832
  53. package/src/filiale/gaomi/sale.js +14 -14
  54. package/src/filiale/gongyi/AddAreaMsg.vue +651 -651
  55. package/src/filiale/gongyi/AreaManage.vue +100 -100
  56. package/src/filiale/gongyi/UserAddress.vue +751 -751
  57. package/src/filiale/gongyi/sale.js +14 -14
  58. package/src/filiale/haile/AddressList.vue +615 -615
  59. package/src/filiale/haile/sale.js +8 -8
  60. package/src/filiale/jingwei/UserAddress.vue +764 -764
  61. package/src/filiale/jingwei/sale.js +12 -12
  62. package/src/filiale/lixianV3/AreaList.vue +416 -416
  63. package/src/filiale/lixianV3/sale.js +12 -12
  64. package/src/filiale/macheng/AddAreaMsg.vue +635 -635
  65. package/src/filiale/macheng/AddStreetOrPcd.vue +231 -231
  66. package/src/filiale/macheng/AddressList.vue +613 -613
  67. package/src/filiale/macheng/AreaList.vue +318 -318
  68. package/src/filiale/macheng/CityManage.vue +76 -76
  69. package/src/filiale/macheng/StreetList.vue +186 -186
  70. package/src/filiale/macheng/UserAddress.vue +743 -743
  71. package/src/filiale/macheng/sale.js +17 -17
  72. package/src/filiale/meihekou/UserAddress.vue +898 -898
  73. package/src/filiale/meihekou/sale.js +8 -8
  74. package/src/filiale/qianneng/AddAreaMsg.vue +755 -755
  75. package/src/filiale/qianneng/AddStreetOrPcd.vue +328 -328
  76. package/src/filiale/qianneng/AddressList.vue +638 -638
  77. package/src/filiale/qianneng/AreaList.vue +431 -431
  78. package/src/filiale/qianneng/CityManage.vue +81 -81
  79. package/src/filiale/qianneng/UserAddress.vue +1125 -1125
  80. package/src/filiale/qianneng/sale.js +20 -20
  81. package/src/filiale/qinhua/AddAreaMsg.vue +743 -743
  82. package/src/filiale/qinhua/AddressList.vue +627 -627
  83. package/src/filiale/qinhua/AddressManage.vue +117 -117
  84. package/src/filiale/qinhua/AreaList.vue +425 -425
  85. package/src/filiale/qinhua/AreaManage.vue +100 -100
  86. package/src/filiale/qinhua/CityManage.vue +76 -76
  87. package/src/filiale/qinhua/StreetList.vue +241 -241
  88. package/src/filiale/qinhua/UserAddress.vue +894 -894
  89. package/src/filiale/qinhua/sale.js +20 -20
  90. package/src/filiale/rizhao/UserAddress.vue +897 -897
  91. package/src/filiale/rizhao/sale.js +8 -8
  92. package/src/filiale/rongcheng/AddressList.vue +363 -363
  93. package/src/filiale/rongcheng/UserAddress.vue +799 -799
  94. package/src/filiale/rongcheng/sale.js +11 -11
  95. package/src/filiale/shanggao/AddAreaMsg.vue +752 -752
  96. package/src/filiale/shanggao/AddStreetOrPcd.vue +312 -312
  97. package/src/filiale/shanggao/AddressList.vue +613 -613
  98. package/src/filiale/shanggao/AreaList.vue +436 -436
  99. package/src/filiale/shanggao/BuildingList.vue +129 -129
  100. package/src/filiale/shanggao/StreetList.vue +240 -240
  101. package/src/filiale/shanggao/UserAddress.vue +953 -953
  102. package/src/filiale/shanggao/sale.js +16 -16
  103. package/src/filiale/shanxian/AddAreaMsg.vue +766 -766
  104. package/src/filiale/shanxian/AddressList.vue +658 -658
  105. package/src/filiale/shanxian/AreaList.vue +458 -458
  106. package/src/filiale/shanxian/AreaManage.vue +107 -107
  107. package/src/filiale/shanxian/UserAddress.vue +900 -900
  108. package/src/filiale/shanxian/sale.js +15 -15
  109. package/src/filiale/shaoguan/AddAreaMsg.vue +629 -629
  110. package/src/filiale/shaoguan/UserAddress.vue +762 -762
  111. package/src/filiale/shaoguan/sale.js +11 -11
  112. package/src/filiale/tongchuan/AddAreaMsg.vue +635 -635
  113. package/src/filiale/tongchuan/AddStreetOrPcd.vue +351 -351
  114. package/src/filiale/tongchuan/AddressList.vue +379 -379
  115. package/src/filiale/tongchuan/AreaList.vue +315 -315
  116. package/src/filiale/tongchuan/AreaManage.vue +100 -100
  117. package/src/filiale/tongchuan/CityList.vue +133 -133
  118. package/src/filiale/tongchuan/StreetList.vue +215 -215
  119. package/src/filiale/tongchuan/UserAddress.vue +822 -822
  120. package/src/filiale/tongchuan/sale.js +19 -19
  121. package/src/filiale/wuhai/UserAddress.vue +795 -795
  122. package/src/filiale/wuhai/sale.js +12 -12
  123. package/src/filiale/xihu/AreaList.vue +409 -409
  124. package/src/filiale/xihu/StreetList.vue +238 -238
  125. package/src/filiale/xihu/sale.js +14 -14
  126. package/src/filiale/xinkang/AddAreaMsg.vue +780 -780
  127. package/src/filiale/xinkang/AreaList.vue +413 -413
  128. package/src/filiale/xinkang/sale.js +9 -9
  129. package/src/filiale/yangchun/AddAreaMsg.vue +764 -764
  130. package/src/filiale/yangchun/sale.js +7 -7
  131. package/src/filiale/zhongsheng/AddressList.vue +671 -671
  132. package/src/filiale/zhongsheng/AreaList.vue +500 -500
  133. package/src/filiale/zhongsheng/sale.js +12 -12
  134. package/src/filiale/zhongyi/AddAreaMsg.vue +757 -757
  135. package/src/filiale/zhongyi/sale.js +12 -12
  136. package/src/filiale/zhoukou/AddAreaMsg.vue +673 -673
  137. package/src/filiale/zhoukou/AddressList.vue +391 -391
  138. package/src/filiale/zhoukou/AddressManage.vue +115 -115
  139. package/src/filiale/zhoukou/AreaList.vue +319 -319
  140. package/src/filiale/zhoukou/AreaManage.vue +100 -100
  141. package/src/filiale/zhoukou/UserAddress.vue +925 -925
  142. package/src/filiale/zhoukou/sale.js +23 -23
  143. package/src/main.js +23 -23
@@ -1,755 +1,755 @@
1
- <template>
2
- <div class="span">
3
- <validator name='v'>
4
- <div class="form-horizontal select-overspread container-fluid" style="overflow-y: auto">
5
- <div class="row auto">
6
- <div class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
7
- <span v-if="operation=='add'&&!f_specia">添加{{areatype}}</span>
8
- <span v-if="operation=='modify'&&!f_special">修改【{{areamodel.f_residential_area}}】小区</span>
9
- <span v-if="operation=='add'&&f_specia">添加{{areatype}}</span>
10
- <span v-if="operation=='modify'&&f_special">修改【{{areamodel.f_residential_area}}】单位</span>
11
- </div>
12
- <div v-if="areatype != '楼栋'">
13
- <!--基本小区(单位)信息-->
14
- <div class="col-sm-6 form-group" v-if="!config.hasnumber">
15
- <label class="font_normal_body">小区编号</label>
16
- <input type="text" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
17
- @blur="areaidChange" placeholder="小区编号">
18
- </div>
19
-
20
- <div class="col-sm-6 form-group" v-if="config.hasnumber"
21
- :class="[$v.f_area_id.required ? 'has-error' : 'has-success']">
22
- <label class="font_normal_body">小区编号</label>
23
- <input type="number" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
24
- v-validate:f_area_id='{required: true }'
25
- @change="areaidChangeHasnumber" placeholder="小区编号">
26
- </div>
27
-
28
- <div class="col-sm-6 form-group"
29
- :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
30
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
31
- <input type="text" class="input_search" class="input_search" style="width:60%" v-show="false" v-model="areamodel.f_pcd_id"
32
- v-validate:f_pcd_id='{required: true }'>
33
- <v-select
34
- :value.sync="areamodel.f_pcd_id" :value-single="true"
35
- :options='pcdslist' placeholder='请选择'
36
- close-on-select search="true" @change="pcdChange">
37
- </v-select>
38
- </div>
39
- <div class="col-sm-6 form-group"
40
- :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
41
- <label class="font_normal_body">街道/乡镇</label>
42
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_street_id"
43
- v-validate:f_street_id='{required: true }'>
44
- <v-select
45
- :value.sync="areamodel.f_street_id" :value-single="true"
46
- :options='streetslist' placeholder='请选择'
47
- close-on-select search="true" @change="streetChange">
48
- </v-select>
49
- </div>
50
- <div class="col-sm-6 form-group" :class="[$v.slice.required ? 'has-error' : 'has-success']">
51
- <label class="font_normal_body">片&emsp;&emsp;区</label>
52
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
53
- v-validate:slice='{required: true }'>
54
- <v-select :value.sync="areamodel.slice_area" v-model="areamodel.slice_area"
55
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
56
- close-on-select v-ref:slice>
57
- </v-select>
58
- </div>
59
- <!--小区(特殊)信息-->
60
- <div v-if="!f_special"
61
- class="col-sm-6 form-group"
62
- :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
63
- <label class="font_normal_body">小区名称</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
65
- class="form-control" placeholder="小区名称"
66
- v-validate:f_residential_area='{required: true }'>
67
- </div>
68
- <div v-if="!f_special"
69
- class="col-sm-12 form-group">
70
- <label class="font_normal_body">小区地址</label>
71
- <input type="text" style="width:80%" class="input_search" v-model="areamodel.f_area_address"
72
- class="form-control" placeholder="小区地址">
73
- </div>
74
- <!--单位(特殊)信息-->
75
- <div v-if="f_special"
76
- class="col-sm-6 form-group"
77
- :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
78
- <label class="font_normal_body">单位名称</label>
79
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
80
- class="form-control" placeholder="单位名称"
81
- v-validate:f_residential_area='{required: true }'>
82
- </div>
83
- <div v-if="f_special"
84
- class="col-sm-12 form-group">
85
- <label class="font_normal_body">单位地址</label>
86
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_area_address"
87
- class="form-control" placeholder="单位地址">
88
- </div>
89
- <div v-if="f_special"
90
- class="col-sm-6 form-group"
91
- :class="[$v.f_linkname.required ? 'has-error' : 'has-success']">
92
- <label class="font_normal_body">联&ensp;系&ensp;人</label>
93
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkname"
94
- class="form-control" placeholder="联系人"
95
- v-validate:f_linkname='{required: true }'>
96
- </div>
97
- <div v-if="f_special"
98
- class="col-sm-6 form-group"
99
- :class="[$v.f_linkphone.required ? 'has-error' : 'has-success']">
100
- <label class="font_normal_body">联系电话</label>
101
- <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkphone"
102
- class="form-control" placeholder="联系电话"
103
- v-validate:f_linkphone='{required: true }'>
104
- </div>
105
- <div class="col-sm-12 form-group">
106
- <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
107
- <textarea class="input_textarea" rows="3" style="margin-top:20px;width:80%;height: auto;" v-model="areamodel.f_comments"></textarea>
108
- </div>
109
- <div class="col-sm-12 form-group">
110
- <br/>
111
- </div>
112
- <!--表具信息-->
113
- <div v-if="!f_special" class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
114
- <span >默认表具信息</span>
115
- </div>
116
- <div v-if="!f_special" class="row">
117
- <div class="col-sm-6 form-group">
118
- <label class="font_normal_body">用户类型</label>
119
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_user_type">
120
- <v-select
121
- :value.sync="areamodel.f_user_type" :value-single="true"
122
- :options='usertypes' placeholder='用户类型' @change="userTypeChange"
123
- close-on-select >
124
- </v-select>
125
- </div>
126
- <div class="col-sm-6 form-group">
127
- <label class="font_normal_body">用气性质</label>
128
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gasproperties">
129
- <v-select
130
- :value.sync="areamodel.f_gasproperties" :value-single="true"
131
- :options='gasproperties' placeholder='用气性质'
132
- close-on-select >
133
- </v-select>
134
- </div>
135
- <div class="col-sm-6 form-group">
136
- <label class="font_normal_body">气价类型</label>
137
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_type">
138
- <v-select
139
- :value.sync="areamodel.f_price_type" :value-single="true"
140
- :options='f_price_types' placeholder='气价类型'
141
- close-on-select >
142
- </v-select>
143
- </div>
144
- <div class="col-sm-6 form-group">
145
- <label class="font_normal_body">气价名称</label>
146
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_name">
147
- <v-select
148
- :value.sync="areamodel.f_price_name" :value-single="true"
149
- :options='pricenames' placeholder='气价名称'
150
- close-on-select >
151
- </v-select>
152
- </div>
153
- <div class="col-sm-6 form-group">
154
- <label class="font_normal_body">气表品牌</label>
155
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_brand">
156
- <v-select
157
- :value.sync="areamodel.f_meter_brand" :value-single="true"
158
- :options='meterbrands' placeholder='气表品牌'
159
- close-on-select >
160
- </v-select>
161
- </div>
162
- <div class="col-sm-6 form-group">
163
- <label class="font_normal_body">气表型号</label>
164
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_style">
165
- <v-select
166
- :value.sync="areamodel.f_meter_style" :value-single="true"
167
- :options='meterstyle' placeholder='气表型号'
168
- close-on-select >
169
- </v-select>
170
- </div>
171
- <div class="col-sm-6 form-group" :class="[$v.f_meter_type.required ? 'has-error' : 'has-success']">
172
- <label class="font_normal_body">气表类型</label>
173
- <input type="text" style="width:60%" class="input_search" v-show="false"
174
- v-model="areamodel.f_meter_type">
175
- <v-select :value.sync="areamodel.f_meter_type" :value-single="true"
176
- :options='metertypes' placeholder='请选择'
177
- close-on-select></v-select>
178
- </div>
179
- <div class="col-sm-6 form-group" v-if="isMachine">
180
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
181
- <input type="text" style="width:60%" class="input_search" v-show="false"
182
- v-model="areamodel.f_meter_book">
183
- <v-select
184
- :value.sync="areamodel.f_meter_book" :value-single="true"
185
- :options='meterbooks' placeholder='抄表册'
186
- close-on-select >
187
- </v-select>
188
- </div>
189
- <div class="col-sm-6 form-group" v-if="!isMachine" :class="[$v.f_meter_book.required ? 'has-error' : 'has-success']">
190
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
191
- <input type="text" style="width:60%" class="input_search" v-show="false"
192
- v-model="areamodel.f_meter_book">
193
- <v-select
194
- :value.sync="areamodel.f_meter_book" :value-single="true"
195
- :options='meterbooks' placeholder='抄表册'
196
- close-on-select >
197
- </v-select>
198
- </div>
199
- <div class="col-sm-6 form-group" :class="[$v.f_inputtor.required ? 'has-error' : 'has-success']">
200
- <label class="font_normal_body">抄&ensp;表&ensp;员</label>
201
- <input type="text" style="width:60%" class="input_search"
202
- v-show="false" v-model="areamodel.f_inputtor">
203
- <v-select
204
- :value.sync="areamodel.f_inputtor" :value-single="true"
205
- :options='inputtores' placeholder='抄表员'
206
- close-on-select >
207
- </v-select>
208
- </div>
209
- <div class="col-sm-6 form-group" :class="[$v.f_adjustable_id.required ? 'has-error' : 'has-success']">
210
- <label class="font_normal_body">调&ensp;压&ensp;箱</label>
211
- <input type="text" style="width:60%" class="input_search" v-show="false"
212
- v-model="areamodel.f_adjustable_id">
213
- <v-select
214
- :value.sync="areamodel.f_adjustable_id" :value-single="true"
215
- :options='adjustables' placeholder='调压箱'
216
- close-on-select >
217
- </v-select>
218
- </div>
219
- <div class="col-sm-6 form-group" :class="[$v.f_house_type.required ? 'has-error' : 'has-success']">
220
- <label class="font_normal_body">房屋类型</label>
221
- <input type="text" style="width:60%" class="input_search" v-show="false"
222
- v-model="areamodel.f_house_type" >
223
- <v-select
224
- :value.sync="areamodel.f_house_type" :value-single="true"
225
- :options='housetypeoptions' placeholder='房屋类型'
226
- close-on-select >
227
- </v-select>
228
- </div>
229
- <div class="col-sm-6 form-group" :class="[$v.f_position.required ? 'has-error' : 'has-success']">
230
- <label class="font_normal_body">安装位置</label>
231
- <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_position" >
232
- <v-select
233
- :value.sync="areamodel.f_position" :value-single="true"
234
- :options='positions' placeholder='安装位置'
235
- close-on-select >
236
- </v-select>
237
- </div>
238
- </div>
239
- <div v-if="f_special" class="col-sm-6 form-group">
240
- <br/>
241
- </div>
242
- </div>
243
- <div v-if="areatype == '楼栋'">
244
- <div class="col-sm-6 form-group " :class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
245
- <label class="font_normal_body">小区名称</label>
246
- <input type="text" style="width:41%" v-show="false" v-model="buildingmodel.f_residential_area_id"
247
- v-validate:f_residential_area_id1='{required: true }'>
248
- <v-select :value.sync="buildingmodel.f_residential_area_id" :value-single="true" v-ref:areaselect
249
- :options='areaslist' placeholder='请选择'
250
- close-on-select search="true">
251
- </v-select>
252
- </div>
253
- <div class="col-sm-6 form-group" :class="[$v.f_building.required ? 'has-error' : 'has-success']">
254
- <label class="font_normal_body">楼栋名称</label>
255
- <input type="text" class="input_search" style="width:60%" v-validate:f_building='{required: true }'
256
- v-model="buildingmodel.f_building" placeholder="楼栋名称">
257
- </div>
258
- </div>
259
- </div>
260
- <div class="row auto" style="text-align:right;">
261
- <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
262
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
263
- </div>
264
- <div v-if="areatype == '楼栋'" class="row" style="margin-top:40px;height: 580px;">
265
- <building-list v-ref:buildinglist @select-changed="selected" :areaslist="areaslist" :f_filialeids.sync="f_filialeids"></building-list>
266
- </div>
267
- </div>
268
- </validator>
269
- </div>
270
- </template>
271
-
272
- <script>
273
- import {HttpResetClass} from 'vue-client'
274
-
275
- let initGen = async function (self) {
276
- await self.$getConfig(self, 'UserArea')
277
- console.log('原地址配置',self.config)
278
- console.log('获取地址配置',self.config)
279
- // Object.assign(self.model, self.config)
280
- await self.initdata()
281
- await self.$LoadParams.loadMeterBook(self.f_filialeids)
282
- await self.loadMeterBooks();
283
- }
284
- export default {
285
- title: '小区添加',
286
- data () {
287
- return {
288
- config:{
289
- hasnumber:false,
290
- },
291
- //初始化省市区数据
292
- pcdslist:[],
293
- //初始化街道数据
294
- streetslist:[],
295
- //小区
296
- areamodel: {
297
- f_area_id: '',
298
- f_pcd_id:'',
299
- f_linkname:'',
300
- f_linkphone:'',
301
- f_street_id:'',
302
- f_slice_area:'',
303
- f_adjustable_id:'',
304
- f_residential_area:'',
305
- f_user_type:'',
306
- f_gasproperties:'',
307
- f_meter_brand:'',
308
- f_price_name:'',
309
- f_area_address:'',
310
- f_price_type:'',
311
- f_meter_style:'',
312
- f_position:'',
313
- f_comments:'',
314
- f_meter_type: ''
315
- },
316
- // 初始化小区数据
317
- areaslist:[],
318
- // 楼栋
319
- buildingmodel: {
320
- f_residential_area: '',
321
- f_residential_area_id: '',
322
- f_building: ''
323
- },
324
- meterbrands: [],
325
- adjustables: [],
326
- sliceArea: [],
327
- gasproperties: [],
328
- meterbooks:[{label: '全部',value: ''}],
329
- housetypeoptions:[{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
330
- isMachine: true
331
- }
332
- },
333
- props: ['f_filialeids','f_special', 'areatype','row','operation'],
334
- ready(){
335
- initGen(this)
336
- },
337
- methods: {
338
- selected(val){
339
- this.buildingmodel = {...val.val}
340
- },
341
- loadMeterBooks(){
342
- this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
343
- },
344
- //初始化数据
345
- async initdata(){
346
- // 初始化参数
347
- await this.initParams()
348
- if (this.areatype == '楼栋') {
349
- this.initareas(` f_orgid = '${this.f_filialeids}'`)
350
- }
351
- // 初始化片区
352
- await this.initSlice(this.f_filialeids)
353
- await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
354
- },
355
- initrow(val){
356
- this.areamodel.f_meter_book = val.f_meter_book;
357
- this.areamodel.f_adjustable_id = val.f_adjustable_id;
358
- },
359
- async initParams() {
360
- await this.$LoadParams.loadParam(this.f_filialeids)
361
- this.initBrands()
362
- this.initAdjustables()
363
- },
364
-
365
- initBrands () {
366
- let ret = this.$GetSaleParam.getGasbrand()
367
- let rs = new Array()
368
- ret.forEach((item, index) =>{
369
- rs.push({label: item.label, value: item.value.f_meter_brand})
370
- })
371
- this.meterbrands = rs
372
- },
373
-
374
- initAdjustables () {
375
- let filter = this.$login.f.orgid
376
- let ret = this.$GetSaleParam.getAdjustable(filter)
377
- let arr = new Array()
378
- ret.forEach((item, index) => {
379
- arr.push({label: `[${item.value.f_adjustable_id}]-${item.label}`, value: item.value.id})
380
- })
381
- this.adjustables = arr
382
- },
383
-
384
- async initSlice (val) {
385
- if (val) {
386
- let getAllArea = await this.$resetpost('/rs/search', {
387
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
388
- userid: this.$login.f.id
389
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
390
-
391
- let arr = getAllArea.data.filter((res) => {
392
- return res.parentid == val
393
- })
394
- this.sliceArea = []
395
- arr.forEach((res) => {
396
- this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
397
- })
398
- }
399
- },
400
- //初始化小区添加小区
401
- async initareas(pconditon){
402
- // if(this.usertype){
403
- // pconditon=pconditon+` and f_special='1' `
404
- // }
405
- this.areaslist = []
406
- let HttpReset = new HttpResetClass()
407
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
408
- data: {
409
- items: '*',
410
- tablename: 't_area',
411
- orderitem: 'id',
412
- condition: pconditon
413
- }
414
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
415
- let redata = []
416
- req.data.forEach((row) => {
417
- redata.push({
418
- label: '['+row.f_street+']'+row.f_residential_area,
419
- value: row.id,
420
- data: row,
421
- id: row.id
422
- })
423
- })
424
- this.areaslist=redata
425
- },
426
-
427
- //初始化省市区,添加街道
428
- async initpcds(pconditon){
429
- this.pcdslist = []
430
- let HttpReset = new HttpResetClass()
431
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
432
- data: {
433
- items: '*',
434
- tablename: 't_pcd',
435
- orderitem: 'id',
436
- condition: pconditon
437
- }
438
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
439
- let redata = []
440
- req.data.forEach((row, n) => {
441
- redata[n] = {
442
- label: row.f_pcd,
443
- value: row.id,
444
- data:row,
445
- id:row.id
446
- }
447
- })
448
- this.pcdslist=redata
449
-
450
- },
451
- //初始化街道 添加小区
452
- async initstreets(pconditon){
453
- this.streetslist = []
454
- let HttpReset = new HttpResetClass()
455
- let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
456
- data: {
457
- items: '*',
458
- tablename: 't_street',
459
- orderitem: 'id',
460
- condition: pconditon
461
- }
462
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
463
- let redata = []
464
- req.data.forEach((row, n) => {
465
- redata[n] = {
466
- label: row.f_street,
467
- value: row.id,
468
- data:row,
469
- id:row.id
470
- }
471
- })
472
- this.streetslist=redata
473
- },
474
- async areaidChangeHasnumber(){
475
- console.log(this.areamodel.f_area_id.length)
476
- if (this.areamodel.f_area_id.length != 2){
477
- this.$showAlert('请输入正确的位数', 'warning', 2000)
478
- this.areamodel.f_area_id = ''
479
- }else{
480
- let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
481
- data: {
482
- items: '*',
483
- tablename: 't_area',
484
- orderitem: 'id',
485
- condition: `f_area_id = '${this.areamodel.f_area_id}' and f_orgid = '${this.$login.f.orgid}'`
486
- }
487
- }, {resolveMsg: null, rejectMsg: null})
488
- if (res.data.length>0){
489
- if (res.data[0].id != this.areamodel.id) {
490
- this.$showAlert('当前编号已存在', 'warning', 2000)
491
- this.areamodel.f_area_id = ''
492
- }
493
- }
494
- }
495
- },
496
- async areaidChange () {
497
- // 验证小区编号是否已存在
498
-
499
- let param = {
500
- id: this.areamodel.id,
501
- f_area_id: this.areamodel.f_area_id,
502
- f_filialeid: this.f_filialeids
503
- }
504
-
505
- let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
506
- console.log('验证小区是否存在', res)
507
- if (res.data) {
508
- this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
509
- this.areamodel.f_area_id = ''
510
- }
511
-
512
- },
513
-
514
-
515
- //根据名字找数据
516
- findbyid(list,name){
517
- var result
518
- list.forEach((row, n) => {
519
- if(name==row.id){
520
- result= row.data
521
- }
522
- })
523
- return result
524
- },
525
- userTypeChange () {
526
- this.gasproperties = []
527
- if (this.areamodel.f_user_type) {
528
- this.gasproperties = this.$appdata.getParam(this.areamodel.f_user_type)
529
- }
530
- },
531
-
532
- //省/市/区变化
533
- async pcdChange(val){
534
- if (val && val.target) {
535
- val = '';
536
- }
537
- console.log(val)
538
- if(val){
539
- //那就把街道数据重新组织一下
540
- await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
541
- if(this.areamodel.f_street_id){
542
- if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
543
- let pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
544
- if(pcd_id!=val){
545
- this.areamodel.f_street_id=''
546
- }
547
- } else {
548
- this.areamodel.f_street_id=''
549
- }
550
-
551
- }
552
- }
553
- this.$resetValidation()
554
- },
555
- //街道变化
556
- streetChange(val){
557
- if(val&&this.operation=='add'){
558
- // if(this.areamodel.f_pcd_id.length==0){
559
- if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
560
- this.areamodel.f_pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
561
- }
562
- // }
563
- }
564
- this.$resetValidation()
565
- },
566
- //保存
567
- async confirm(){
568
- if(this.areatype=='楼栋'){
569
- await this.savebuilding()
570
- } else {
571
- await this.savearea()
572
- this.cleardara()
573
- this.$dispatch('confirm')
574
- }
575
- },
576
- // 保存楼栋
577
- async savebuilding () {
578
- this.buildingmodel.f_residential_area = this.$refs.areaselect.selectedItems
579
- this.buildingmodel.f_filialeid = this.buildingmodel.f_filialeid?this.buildingmodel.f_filialeid:this.f_filialeids
580
- this.buildingmodel.f_operator = this.buildingmodel.f_operator?this.buildingmodel.f_operator:this.$login.f.name
581
- this.buildingmodel.f_operatorid = this.buildingmodel.f_operatorid?this.buildingmodel.f_operatorid:this.$login.f.id
582
- this.buildingmodel.f_orgid = this.buildingmodel.f_orgid?this.buildingmodel.f_orgid:this.$login.f.orgid
583
- this.buildingmodel.f_orgname = this.buildingmodel.f_orgname?this.buildingmodel.f_orgname:this.$login.f.orgs
584
- this.buildingmodel.f_depid = this.buildingmodel.f_depid?this.buildingmodel.f_depid:this.$login.f.depids
585
- this.buildingmodel.f_depname = this.buildingmodel.f_depname?this.buildingmodel.f_depname:this.$login.f.deps
586
- await this.$resetpost('api/af-revenue/logic/address_savebuilding', this.buildingmodel)
587
- this.$refs.buildinglist.search()
588
- this.buildingmodel= {
589
- f_residential_area: '',
590
- f_residential_area_id: '',
591
- f_building: ''
592
- }
593
- },
594
- //保存小区
595
- async savearea(){
596
- if(this.f_special){
597
- this.areamodel.f_special='1'
598
- }
599
- this.areamodel.f_filialeid = this.f_filialeids
600
- this.areamodel.f_operator = this.$login.f.name
601
- this.areamodel.f_operatorid = this.$login.f.id
602
- this.areamodel.f_orgid = this.$login.f.orgid
603
- this.areamodel.f_orgname = this.$login.f.orgs
604
- this.areamodel.f_depid = this.$login.f.depids
605
- this.areamodel.f_depname = this.$login.f.deps
606
- if (this.areamodel.slice_area) {
607
- if (this.areamodel.slice_area.length > 0) {
608
- this.areamodel.f_slice_area = this.areamodel.slice_area[0].name
609
- this.areamodel.f_area_code = this.areamodel.slice_area[0].code
610
- }
611
- }
612
- this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
613
- this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
614
-
615
- await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
616
- },
617
- cleardara(){
618
- this.areamodel= {
619
- f_area_id: '',
620
- f_pcd_id:'',
621
- f_street_id:'',
622
- f_slice_area:'',
623
- f_linkname:'',
624
- f_linkphone:'',
625
- f_adjustable_id:'',
626
- f_residential_area:'',
627
- f_user_type:'',
628
- f_gasproperties:'',
629
- f_area_address:'',
630
- f_meter_brand:'',
631
- f_price_name:'',
632
- f_price_type:'',
633
- f_meter_style:'',
634
- f_position:'',
635
- f_comments:'',
636
- f_meter_type: ''
637
- }
638
- },
639
- cancel(){
640
- this.cleardara()
641
- this.$dispatch('cancel')
642
- },
643
- },
644
- watch: {
645
- 'areamodel.f_meter_type' (val) {
646
- if (val === '机表')
647
- this.isMachine = false
648
- },
649
- 'areatype'(){
650
- this.initdata()
651
- },
652
- 'areamodel.f_pcd_id'(){
653
- if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id){
654
- if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
655
- this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
656
- }
657
- }
658
- },
659
- 'areamodel.f_street_id'(){
660
- if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
661
- if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
662
- this.areamodel.f_area_address = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
663
- }
664
- }
665
- },
666
- 'f_filialeids'(){
667
- if (this.areamodel.f_filialeid) {
668
- if (this.areamodel.f_filialeid != this.f_filialeids) {
669
- this.$dispatch('cancel')
670
- }
671
- }
672
- this.cleardara()
673
- this.initdata()
674
- }
675
- },
676
- computed: {
677
- metertypes() {
678
- return this.$appdata.getParam('气表类型')
679
- },
680
- usertypes () {
681
- return this.$appdata.getParam('用户类型')
682
- },
683
- f_price_types () {
684
- return this.$appdata.getParam('气价类型')
685
- },
686
- meterstyle () {
687
- let ret = this.$GetSaleParam.getGasbrand()
688
- let rs = new Array()
689
- if(this.areamodel.f_meter_brand) {
690
- ret.forEach((item, index) => {
691
- if(this.areamodel.f_meter_brand == item.value.f_meter_brand) {
692
- item.value.gasmodel.forEach((item1, index) =>{
693
- rs.push({label: item1.label, value:item1.label})
694
- })
695
- }
696
- })
697
- }
698
- return rs
699
- },
700
- pricenames () {
701
- let rs = new Array()
702
- if (this.areamodel.f_user_type && this.areamodel.f_gasproperties && this.areamodel.f_price_type) {
703
- let params = {
704
- f_user_type: this.areamodel.f_user_type,
705
- f_gasproperties: this.areamodel.f_gasproperties,
706
- f_price_type: this.areamodel.f_price_type,
707
- filter: this.f_filialeids
708
- }
709
- let ret = this.$GetSaleParam.getPrice(params)
710
- ret.forEach((item, index) => {
711
- rs.push({label: item.label, value: item.value.f_price_name})
712
- })
713
- }
714
- if (rs.length == 0) {
715
- this.areamodel.f_price_name = ''
716
- }
717
- return rs
718
- },
719
- positions () {
720
- return this.$appdata.getParam('安装位置')
721
- },
722
- inputtores () {
723
- // 获取抄表员
724
- let rs = new Array()
725
- if (this.$login.f.f_gasman.length > 0) {
726
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
727
- let temp = {
728
- label: this.$login.f.f_gasman[i].name,
729
- value: this.$login.f.f_gasman[i].name
730
- }
731
- rs.push(temp)
732
- }
733
- }
734
- return rs
735
- }
736
- }
737
- }
738
- </script>
739
- <style>
740
- .box {
741
- width: 727px;
742
- height: 175px;
743
- border-radius: 2px;
744
- background-color: #fafafa;
745
- border: 1px solid #999999;
746
- margin-top: 13px;
747
- }
748
- .datapanel {
749
- color: #333;
750
- background-color: white;
751
- box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
752
- padding: 10px 30px 10px 30px;
753
- border-radius:15px;
754
- }
755
- </style>
1
+ <template>
2
+ <div class="span">
3
+ <validator name='v'>
4
+ <div class="form-horizontal select-overspread container-fluid" style="overflow-y: auto">
5
+ <div class="row auto">
6
+ <div class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
7
+ <span v-if="operation=='add'&&!f_specia">添加{{areatype}}</span>
8
+ <span v-if="operation=='modify'&&!f_special">修改【{{areamodel.f_residential_area}}】小区</span>
9
+ <span v-if="operation=='add'&&f_specia">添加{{areatype}}</span>
10
+ <span v-if="operation=='modify'&&f_special">修改【{{areamodel.f_residential_area}}】单位</span>
11
+ </div>
12
+ <div v-if="areatype != '楼栋'">
13
+ <!--基本小区(单位)信息-->
14
+ <div class="col-sm-6 form-group" v-if="!config.hasnumber">
15
+ <label class="font_normal_body">小区编号</label>
16
+ <input type="text" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
17
+ @blur="areaidChange" placeholder="小区编号">
18
+ </div>
19
+
20
+ <div class="col-sm-6 form-group" v-if="config.hasnumber"
21
+ :class="[$v.f_area_id.required ? 'has-error' : 'has-success']">
22
+ <label class="font_normal_body">小区编号</label>
23
+ <input type="number" class="input_search" style="width:60%" v-model="areamodel.f_area_id"
24
+ v-validate:f_area_id='{required: true }'
25
+ @change="areaidChangeHasnumber" placeholder="小区编号">
26
+ </div>
27
+
28
+ <div class="col-sm-6 form-group"
29
+ :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
30
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
31
+ <input type="text" class="input_search" class="input_search" style="width:60%" v-show="false" v-model="areamodel.f_pcd_id"
32
+ v-validate:f_pcd_id='{required: true }'>
33
+ <v-select
34
+ :value.sync="areamodel.f_pcd_id" :value-single="true"
35
+ :options='pcdslist' placeholder='请选择'
36
+ close-on-select search="true" @change="pcdChange">
37
+ </v-select>
38
+ </div>
39
+ <div class="col-sm-6 form-group"
40
+ :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
41
+ <label class="font_normal_body">街道/乡镇</label>
42
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_street_id"
43
+ v-validate:f_street_id='{required: true }'>
44
+ <v-select
45
+ :value.sync="areamodel.f_street_id" :value-single="true"
46
+ :options='streetslist' placeholder='请选择'
47
+ close-on-select search="true" @change="streetChange">
48
+ </v-select>
49
+ </div>
50
+ <div class="col-sm-6 form-group" :class="[$v.slice.required ? 'has-error' : 'has-success']">
51
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
52
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
53
+ v-validate:slice='{required: true }'>
54
+ <v-select :value.sync="areamodel.slice_area" v-model="areamodel.slice_area"
55
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
56
+ close-on-select v-ref:slice>
57
+ </v-select>
58
+ </div>
59
+ <!--小区(特殊)信息-->
60
+ <div v-if="!f_special"
61
+ class="col-sm-6 form-group"
62
+ :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
63
+ <label class="font_normal_body">小区名称</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
65
+ class="form-control" placeholder="小区名称"
66
+ v-validate:f_residential_area='{required: true }'>
67
+ </div>
68
+ <div v-if="!f_special"
69
+ class="col-sm-12 form-group">
70
+ <label class="font_normal_body">小区地址</label>
71
+ <input type="text" style="width:80%" class="input_search" v-model="areamodel.f_area_address"
72
+ class="form-control" placeholder="小区地址">
73
+ </div>
74
+ <!--单位(特殊)信息-->
75
+ <div v-if="f_special"
76
+ class="col-sm-6 form-group"
77
+ :class="[$v.f_residential_area.required ? 'has-error' : 'has-success']">
78
+ <label class="font_normal_body">单位名称</label>
79
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_residential_area"
80
+ class="form-control" placeholder="单位名称"
81
+ v-validate:f_residential_area='{required: true }'>
82
+ </div>
83
+ <div v-if="f_special"
84
+ class="col-sm-12 form-group">
85
+ <label class="font_normal_body">单位地址</label>
86
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_area_address"
87
+ class="form-control" placeholder="单位地址">
88
+ </div>
89
+ <div v-if="f_special"
90
+ class="col-sm-6 form-group"
91
+ :class="[$v.f_linkname.required ? 'has-error' : 'has-success']">
92
+ <label class="font_normal_body">联&ensp;系&ensp;人</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkname"
94
+ class="form-control" placeholder="联系人"
95
+ v-validate:f_linkname='{required: true }'>
96
+ </div>
97
+ <div v-if="f_special"
98
+ class="col-sm-6 form-group"
99
+ :class="[$v.f_linkphone.required ? 'has-error' : 'has-success']">
100
+ <label class="font_normal_body">联系电话</label>
101
+ <input type="text" style="width:60%" class="input_search" v-model="areamodel.f_linkphone"
102
+ class="form-control" placeholder="联系电话"
103
+ v-validate:f_linkphone='{required: true }'>
104
+ </div>
105
+ <div class="col-sm-12 form-group">
106
+ <label class="font_normal_body " style="">备&emsp;&emsp;注</label>
107
+ <textarea class="input_textarea" rows="3" style="margin-top:20px;width:80%;height: auto;" v-model="areamodel.f_comments"></textarea>
108
+ </div>
109
+ <div class="col-sm-12 form-group">
110
+ <br/>
111
+ </div>
112
+ <!--表具信息-->
113
+ <div v-if="!f_special" class="col-sm-12 bg-info text-center" style="padding: 8px;font-size: 18px;font-weight: bold">
114
+ <span >默认表具信息</span>
115
+ </div>
116
+ <div v-if="!f_special" class="row">
117
+ <div class="col-sm-6 form-group">
118
+ <label class="font_normal_body">用户类型</label>
119
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_user_type">
120
+ <v-select
121
+ :value.sync="areamodel.f_user_type" :value-single="true"
122
+ :options='usertypes' placeholder='用户类型' @change="userTypeChange"
123
+ close-on-select >
124
+ </v-select>
125
+ </div>
126
+ <div class="col-sm-6 form-group">
127
+ <label class="font_normal_body">用气性质</label>
128
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_gasproperties">
129
+ <v-select
130
+ :value.sync="areamodel.f_gasproperties" :value-single="true"
131
+ :options='gasproperties' placeholder='用气性质'
132
+ close-on-select >
133
+ </v-select>
134
+ </div>
135
+ <div class="col-sm-6 form-group">
136
+ <label class="font_normal_body">气价类型</label>
137
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_type">
138
+ <v-select
139
+ :value.sync="areamodel.f_price_type" :value-single="true"
140
+ :options='f_price_types' placeholder='气价类型'
141
+ close-on-select >
142
+ </v-select>
143
+ </div>
144
+ <div class="col-sm-6 form-group">
145
+ <label class="font_normal_body">气价名称</label>
146
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_price_name">
147
+ <v-select
148
+ :value.sync="areamodel.f_price_name" :value-single="true"
149
+ :options='pricenames' placeholder='气价名称'
150
+ close-on-select >
151
+ </v-select>
152
+ </div>
153
+ <div class="col-sm-6 form-group">
154
+ <label class="font_normal_body">气表品牌</label>
155
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_brand">
156
+ <v-select
157
+ :value.sync="areamodel.f_meter_brand" :value-single="true"
158
+ :options='meterbrands' placeholder='气表品牌'
159
+ close-on-select >
160
+ </v-select>
161
+ </div>
162
+ <div class="col-sm-6 form-group">
163
+ <label class="font_normal_body">气表型号</label>
164
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_meter_style">
165
+ <v-select
166
+ :value.sync="areamodel.f_meter_style" :value-single="true"
167
+ :options='meterstyle' placeholder='气表型号'
168
+ close-on-select >
169
+ </v-select>
170
+ </div>
171
+ <div class="col-sm-6 form-group" :class="[$v.f_meter_type.required ? 'has-error' : 'has-success']">
172
+ <label class="font_normal_body">气表类型</label>
173
+ <input type="text" style="width:60%" class="input_search" v-show="false"
174
+ v-model="areamodel.f_meter_type">
175
+ <v-select :value.sync="areamodel.f_meter_type" :value-single="true"
176
+ :options='metertypes' placeholder='请选择'
177
+ close-on-select></v-select>
178
+ </div>
179
+ <div class="col-sm-6 form-group" v-if="isMachine">
180
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
181
+ <input type="text" style="width:60%" class="input_search" v-show="false"
182
+ v-model="areamodel.f_meter_book">
183
+ <v-select
184
+ :value.sync="areamodel.f_meter_book" :value-single="true"
185
+ :options='meterbooks' placeholder='抄表册'
186
+ close-on-select >
187
+ </v-select>
188
+ </div>
189
+ <div class="col-sm-6 form-group" v-if="!isMachine" :class="[$v.f_meter_book.required ? 'has-error' : 'has-success']">
190
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
191
+ <input type="text" style="width:60%" class="input_search" v-show="false"
192
+ v-model="areamodel.f_meter_book">
193
+ <v-select
194
+ :value.sync="areamodel.f_meter_book" :value-single="true"
195
+ :options='meterbooks' placeholder='抄表册'
196
+ close-on-select >
197
+ </v-select>
198
+ </div>
199
+ <div class="col-sm-6 form-group" :class="[$v.f_inputtor.required ? 'has-error' : 'has-success']">
200
+ <label class="font_normal_body">抄&ensp;表&ensp;员</label>
201
+ <input type="text" style="width:60%" class="input_search"
202
+ v-show="false" v-model="areamodel.f_inputtor">
203
+ <v-select
204
+ :value.sync="areamodel.f_inputtor" :value-single="true"
205
+ :options='inputtores' placeholder='抄表员'
206
+ close-on-select >
207
+ </v-select>
208
+ </div>
209
+ <div class="col-sm-6 form-group" :class="[$v.f_adjustable_id.required ? 'has-error' : 'has-success']">
210
+ <label class="font_normal_body">调&ensp;压&ensp;箱</label>
211
+ <input type="text" style="width:60%" class="input_search" v-show="false"
212
+ v-model="areamodel.f_adjustable_id">
213
+ <v-select
214
+ :value.sync="areamodel.f_adjustable_id" :value-single="true"
215
+ :options='adjustables' placeholder='调压箱'
216
+ close-on-select >
217
+ </v-select>
218
+ </div>
219
+ <div class="col-sm-6 form-group" :class="[$v.f_house_type.required ? 'has-error' : 'has-success']">
220
+ <label class="font_normal_body">房屋类型</label>
221
+ <input type="text" style="width:60%" class="input_search" v-show="false"
222
+ v-model="areamodel.f_house_type" >
223
+ <v-select
224
+ :value.sync="areamodel.f_house_type" :value-single="true"
225
+ :options='housetypeoptions' placeholder='房屋类型'
226
+ close-on-select >
227
+ </v-select>
228
+ </div>
229
+ <div class="col-sm-6 form-group" :class="[$v.f_position.required ? 'has-error' : 'has-success']">
230
+ <label class="font_normal_body">安装位置</label>
231
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_position" >
232
+ <v-select
233
+ :value.sync="areamodel.f_position" :value-single="true"
234
+ :options='positions' placeholder='安装位置'
235
+ close-on-select >
236
+ </v-select>
237
+ </div>
238
+ </div>
239
+ <div v-if="f_special" class="col-sm-6 form-group">
240
+ <br/>
241
+ </div>
242
+ </div>
243
+ <div v-if="areatype == '楼栋'">
244
+ <div class="col-sm-6 form-group " :class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
245
+ <label class="font_normal_body">小区名称</label>
246
+ <input type="text" style="width:41%" v-show="false" v-model="buildingmodel.f_residential_area_id"
247
+ v-validate:f_residential_area_id1='{required: true }'>
248
+ <v-select :value.sync="buildingmodel.f_residential_area_id" :value-single="true" v-ref:areaselect
249
+ :options='areaslist' placeholder='请选择'
250
+ close-on-select search="true">
251
+ </v-select>
252
+ </div>
253
+ <div class="col-sm-6 form-group" :class="[$v.f_building.required ? 'has-error' : 'has-success']">
254
+ <label class="font_normal_body">楼栋名称</label>
255
+ <input type="text" class="input_search" style="width:60%" v-validate:f_building='{required: true }'
256
+ v-model="buildingmodel.f_building" placeholder="楼栋名称">
257
+ </div>
258
+ </div>
259
+ </div>
260
+ <div class="row auto" style="text-align:right;">
261
+ <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
262
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
263
+ </div>
264
+ <div v-if="areatype == '楼栋'" class="row" style="margin-top:40px;height: 580px;">
265
+ <building-list v-ref:buildinglist @select-changed="selected" :areaslist="areaslist" :f_filialeids.sync="f_filialeids"></building-list>
266
+ </div>
267
+ </div>
268
+ </validator>
269
+ </div>
270
+ </template>
271
+
272
+ <script>
273
+ import {HttpResetClass} from 'vue-client'
274
+
275
+ let initGen = async function (self) {
276
+ await self.$getConfig(self, 'UserArea')
277
+ console.log('原地址配置',self.config)
278
+ console.log('获取地址配置',self.config)
279
+ // Object.assign(self.model, self.config)
280
+ await self.initdata()
281
+ await self.$LoadParams.loadMeterBook(self.f_filialeids)
282
+ await self.loadMeterBooks();
283
+ }
284
+ export default {
285
+ title: '小区添加',
286
+ data () {
287
+ return {
288
+ config:{
289
+ hasnumber:false,
290
+ },
291
+ //初始化省市区数据
292
+ pcdslist:[],
293
+ //初始化街道数据
294
+ streetslist:[],
295
+ //小区
296
+ areamodel: {
297
+ f_area_id: '',
298
+ f_pcd_id:'',
299
+ f_linkname:'',
300
+ f_linkphone:'',
301
+ f_street_id:'',
302
+ f_slice_area:'',
303
+ f_adjustable_id:'',
304
+ f_residential_area:'',
305
+ f_user_type:'',
306
+ f_gasproperties:'',
307
+ f_meter_brand:'',
308
+ f_price_name:'',
309
+ f_area_address:'',
310
+ f_price_type:'',
311
+ f_meter_style:'',
312
+ f_position:'',
313
+ f_comments:'',
314
+ f_meter_type: ''
315
+ },
316
+ // 初始化小区数据
317
+ areaslist:[],
318
+ // 楼栋
319
+ buildingmodel: {
320
+ f_residential_area: '',
321
+ f_residential_area_id: '',
322
+ f_building: ''
323
+ },
324
+ meterbrands: [],
325
+ adjustables: [],
326
+ sliceArea: [],
327
+ gasproperties: [],
328
+ meterbooks:[{label: '全部',value: ''}],
329
+ housetypeoptions:[{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
330
+ isMachine: true
331
+ }
332
+ },
333
+ props: ['f_filialeids','f_special', 'areatype','row','operation'],
334
+ ready(){
335
+ initGen(this)
336
+ },
337
+ methods: {
338
+ selected(val){
339
+ this.buildingmodel = {...val.val}
340
+ },
341
+ loadMeterBooks(){
342
+ this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
343
+ },
344
+ //初始化数据
345
+ async initdata(){
346
+ // 初始化参数
347
+ await this.initParams()
348
+ if (this.areatype == '楼栋') {
349
+ this.initareas(` f_orgid = '${this.f_filialeids}'`)
350
+ }
351
+ // 初始化片区
352
+ await this.initSlice(this.f_filialeids)
353
+ await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
354
+ },
355
+ initrow(val){
356
+ this.areamodel.f_meter_book = val.f_meter_book;
357
+ this.areamodel.f_adjustable_id = val.f_adjustable_id;
358
+ },
359
+ async initParams() {
360
+ await this.$LoadParams.loadParam(this.f_filialeids)
361
+ this.initBrands()
362
+ this.initAdjustables()
363
+ },
364
+
365
+ initBrands () {
366
+ let ret = this.$GetSaleParam.getGasbrand()
367
+ let rs = new Array()
368
+ ret.forEach((item, index) =>{
369
+ rs.push({label: item.label, value: item.value.f_meter_brand})
370
+ })
371
+ this.meterbrands = rs
372
+ },
373
+
374
+ initAdjustables () {
375
+ let filter = this.$login.f.orgid
376
+ let ret = this.$GetSaleParam.getAdjustable(filter)
377
+ let arr = new Array()
378
+ ret.forEach((item, index) => {
379
+ arr.push({label: `[${item.value.f_adjustable_id}]-${item.label}`, value: item.value.id})
380
+ })
381
+ this.adjustables = arr
382
+ },
383
+
384
+ async initSlice (val) {
385
+ if (val) {
386
+ let getAllArea = await this.$resetpost('/rs/search', {
387
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
388
+ userid: this.$login.f.id
389
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
390
+
391
+ let arr = getAllArea.data.filter((res) => {
392
+ return res.parentid == val
393
+ })
394
+ this.sliceArea = []
395
+ arr.forEach((res) => {
396
+ this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
397
+ })
398
+ }
399
+ },
400
+ //初始化小区添加小区
401
+ async initareas(pconditon){
402
+ // if(this.usertype){
403
+ // pconditon=pconditon+` and f_special='1' `
404
+ // }
405
+ this.areaslist = []
406
+ let HttpReset = new HttpResetClass()
407
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
408
+ data: {
409
+ items: '*',
410
+ tablename: 't_area',
411
+ orderitem: 'id',
412
+ condition: pconditon
413
+ }
414
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
415
+ let redata = []
416
+ req.data.forEach((row) => {
417
+ redata.push({
418
+ label: '['+row.f_street+']'+row.f_residential_area,
419
+ value: row.id,
420
+ data: row,
421
+ id: row.id
422
+ })
423
+ })
424
+ this.areaslist=redata
425
+ },
426
+
427
+ //初始化省市区,添加街道
428
+ async initpcds(pconditon){
429
+ this.pcdslist = []
430
+ let HttpReset = new HttpResetClass()
431
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
432
+ data: {
433
+ items: '*',
434
+ tablename: 't_pcd',
435
+ orderitem: 'id',
436
+ condition: pconditon
437
+ }
438
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
439
+ let redata = []
440
+ req.data.forEach((row, n) => {
441
+ redata[n] = {
442
+ label: row.f_pcd,
443
+ value: row.id,
444
+ data:row,
445
+ id:row.id
446
+ }
447
+ })
448
+ this.pcdslist=redata
449
+
450
+ },
451
+ //初始化街道 添加小区
452
+ async initstreets(pconditon){
453
+ this.streetslist = []
454
+ let HttpReset = new HttpResetClass()
455
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
456
+ data: {
457
+ items: '*',
458
+ tablename: 't_street',
459
+ orderitem: 'id',
460
+ condition: pconditon
461
+ }
462
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
463
+ let redata = []
464
+ req.data.forEach((row, n) => {
465
+ redata[n] = {
466
+ label: row.f_street,
467
+ value: row.id,
468
+ data:row,
469
+ id:row.id
470
+ }
471
+ })
472
+ this.streetslist=redata
473
+ },
474
+ async areaidChangeHasnumber(){
475
+ console.log(this.areamodel.f_area_id.length)
476
+ if (this.areamodel.f_area_id.length != 2){
477
+ this.$showAlert('请输入正确的位数', 'warning', 2000)
478
+ this.areamodel.f_area_id = ''
479
+ }else{
480
+ let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
481
+ data: {
482
+ items: '*',
483
+ tablename: 't_area',
484
+ orderitem: 'id',
485
+ condition: `f_area_id = '${this.areamodel.f_area_id}' and f_orgid = '${this.$login.f.orgid}'`
486
+ }
487
+ }, {resolveMsg: null, rejectMsg: null})
488
+ if (res.data.length>0){
489
+ if (res.data[0].id != this.areamodel.id) {
490
+ this.$showAlert('当前编号已存在', 'warning', 2000)
491
+ this.areamodel.f_area_id = ''
492
+ }
493
+ }
494
+ }
495
+ },
496
+ async areaidChange () {
497
+ // 验证小区编号是否已存在
498
+
499
+ let param = {
500
+ id: this.areamodel.id,
501
+ f_area_id: this.areamodel.f_area_id,
502
+ f_filialeid: this.f_filialeids
503
+ }
504
+
505
+ let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
506
+ console.log('验证小区是否存在', res)
507
+ if (res.data) {
508
+ this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
509
+ this.areamodel.f_area_id = ''
510
+ }
511
+
512
+ },
513
+
514
+
515
+ //根据名字找数据
516
+ findbyid(list,name){
517
+ var result
518
+ list.forEach((row, n) => {
519
+ if(name==row.id){
520
+ result= row.data
521
+ }
522
+ })
523
+ return result
524
+ },
525
+ userTypeChange () {
526
+ this.gasproperties = []
527
+ if (this.areamodel.f_user_type) {
528
+ this.gasproperties = this.$appdata.getParam(this.areamodel.f_user_type)
529
+ }
530
+ },
531
+
532
+ //省/市/区变化
533
+ async pcdChange(val){
534
+ if (val && val.target) {
535
+ val = '';
536
+ }
537
+ console.log(val)
538
+ if(val){
539
+ //那就把街道数据重新组织一下
540
+ await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
541
+ if(this.areamodel.f_street_id){
542
+ if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
543
+ let pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
544
+ if(pcd_id!=val){
545
+ this.areamodel.f_street_id=''
546
+ }
547
+ } else {
548
+ this.areamodel.f_street_id=''
549
+ }
550
+
551
+ }
552
+ }
553
+ this.$resetValidation()
554
+ },
555
+ //街道变化
556
+ streetChange(val){
557
+ if(val&&this.operation=='add'){
558
+ // if(this.areamodel.f_pcd_id.length==0){
559
+ if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
560
+ this.areamodel.f_pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
561
+ }
562
+ // }
563
+ }
564
+ this.$resetValidation()
565
+ },
566
+ //保存
567
+ async confirm(){
568
+ if(this.areatype=='楼栋'){
569
+ await this.savebuilding()
570
+ } else {
571
+ await this.savearea()
572
+ this.cleardara()
573
+ this.$dispatch('confirm')
574
+ }
575
+ },
576
+ // 保存楼栋
577
+ async savebuilding () {
578
+ this.buildingmodel.f_residential_area = this.$refs.areaselect.selectedItems
579
+ this.buildingmodel.f_filialeid = this.buildingmodel.f_filialeid?this.buildingmodel.f_filialeid:this.f_filialeids
580
+ this.buildingmodel.f_operator = this.buildingmodel.f_operator?this.buildingmodel.f_operator:this.$login.f.name
581
+ this.buildingmodel.f_operatorid = this.buildingmodel.f_operatorid?this.buildingmodel.f_operatorid:this.$login.f.id
582
+ this.buildingmodel.f_orgid = this.buildingmodel.f_orgid?this.buildingmodel.f_orgid:this.$login.f.orgid
583
+ this.buildingmodel.f_orgname = this.buildingmodel.f_orgname?this.buildingmodel.f_orgname:this.$login.f.orgs
584
+ this.buildingmodel.f_depid = this.buildingmodel.f_depid?this.buildingmodel.f_depid:this.$login.f.depids
585
+ this.buildingmodel.f_depname = this.buildingmodel.f_depname?this.buildingmodel.f_depname:this.$login.f.deps
586
+ await this.$resetpost('api/af-revenue/logic/address_savebuilding', this.buildingmodel)
587
+ this.$refs.buildinglist.search()
588
+ this.buildingmodel= {
589
+ f_residential_area: '',
590
+ f_residential_area_id: '',
591
+ f_building: ''
592
+ }
593
+ },
594
+ //保存小区
595
+ async savearea(){
596
+ if(this.f_special){
597
+ this.areamodel.f_special='1'
598
+ }
599
+ this.areamodel.f_filialeid = this.f_filialeids
600
+ this.areamodel.f_operator = this.$login.f.name
601
+ this.areamodel.f_operatorid = this.$login.f.id
602
+ this.areamodel.f_orgid = this.$login.f.orgid
603
+ this.areamodel.f_orgname = this.$login.f.orgs
604
+ this.areamodel.f_depid = this.$login.f.depids
605
+ this.areamodel.f_depname = this.$login.f.deps
606
+ if (this.areamodel.slice_area) {
607
+ if (this.areamodel.slice_area.length > 0) {
608
+ this.areamodel.f_slice_area = this.areamodel.slice_area[0].name
609
+ this.areamodel.f_area_code = this.areamodel.slice_area[0].code
610
+ }
611
+ }
612
+ this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
613
+ this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
614
+
615
+ await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
616
+ },
617
+ cleardara(){
618
+ this.areamodel= {
619
+ f_area_id: '',
620
+ f_pcd_id:'',
621
+ f_street_id:'',
622
+ f_slice_area:'',
623
+ f_linkname:'',
624
+ f_linkphone:'',
625
+ f_adjustable_id:'',
626
+ f_residential_area:'',
627
+ f_user_type:'',
628
+ f_gasproperties:'',
629
+ f_area_address:'',
630
+ f_meter_brand:'',
631
+ f_price_name:'',
632
+ f_price_type:'',
633
+ f_meter_style:'',
634
+ f_position:'',
635
+ f_comments:'',
636
+ f_meter_type: ''
637
+ }
638
+ },
639
+ cancel(){
640
+ this.cleardara()
641
+ this.$dispatch('cancel')
642
+ },
643
+ },
644
+ watch: {
645
+ 'areamodel.f_meter_type' (val) {
646
+ if (val === '机表')
647
+ this.isMachine = false
648
+ },
649
+ 'areatype'(){
650
+ this.initdata()
651
+ },
652
+ 'areamodel.f_pcd_id'(){
653
+ if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id){
654
+ if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
655
+ this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
656
+ }
657
+ }
658
+ },
659
+ 'areamodel.f_street_id'(){
660
+ if (this.areamodel.f_pcd_id && this.areamodel.f_street_id) {
661
+ if (this.findbyid(this.pcdslist, this.areamodel.f_pcd_id) && this.findbyid(this.streetslist, this.areamodel.f_street_id)) {
662
+ this.areamodel.f_area_address = this.findbyid(this.pcdslist, this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist, this.areamodel.f_street_id).f_street
663
+ }
664
+ }
665
+ },
666
+ 'f_filialeids'(){
667
+ if (this.areamodel.f_filialeid) {
668
+ if (this.areamodel.f_filialeid != this.f_filialeids) {
669
+ this.$dispatch('cancel')
670
+ }
671
+ }
672
+ this.cleardara()
673
+ this.initdata()
674
+ }
675
+ },
676
+ computed: {
677
+ metertypes() {
678
+ return this.$appdata.getParam('气表类型')
679
+ },
680
+ usertypes () {
681
+ return this.$appdata.getParam('用户类型')
682
+ },
683
+ f_price_types () {
684
+ return this.$appdata.getParam('气价类型')
685
+ },
686
+ meterstyle () {
687
+ let ret = this.$GetSaleParam.getGasbrand()
688
+ let rs = new Array()
689
+ if(this.areamodel.f_meter_brand) {
690
+ ret.forEach((item, index) => {
691
+ if(this.areamodel.f_meter_brand == item.value.f_meter_brand) {
692
+ item.value.gasmodel.forEach((item1, index) =>{
693
+ rs.push({label: item1.label, value:item1.label})
694
+ })
695
+ }
696
+ })
697
+ }
698
+ return rs
699
+ },
700
+ pricenames () {
701
+ let rs = new Array()
702
+ if (this.areamodel.f_user_type && this.areamodel.f_gasproperties && this.areamodel.f_price_type) {
703
+ let params = {
704
+ f_user_type: this.areamodel.f_user_type,
705
+ f_gasproperties: this.areamodel.f_gasproperties,
706
+ f_price_type: this.areamodel.f_price_type,
707
+ filter: this.f_filialeids
708
+ }
709
+ let ret = this.$GetSaleParam.getPrice(params)
710
+ ret.forEach((item, index) => {
711
+ rs.push({label: item.label, value: item.value.f_price_name})
712
+ })
713
+ }
714
+ if (rs.length == 0) {
715
+ this.areamodel.f_price_name = ''
716
+ }
717
+ return rs
718
+ },
719
+ positions () {
720
+ return this.$appdata.getParam('安装位置')
721
+ },
722
+ inputtores () {
723
+ // 获取抄表员
724
+ let rs = new Array()
725
+ if (this.$login.f.f_gasman.length > 0) {
726
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
727
+ let temp = {
728
+ label: this.$login.f.f_gasman[i].name,
729
+ value: this.$login.f.f_gasman[i].name
730
+ }
731
+ rs.push(temp)
732
+ }
733
+ }
734
+ return rs
735
+ }
736
+ }
737
+ }
738
+ </script>
739
+ <style>
740
+ .box {
741
+ width: 727px;
742
+ height: 175px;
743
+ border-radius: 2px;
744
+ background-color: #fafafa;
745
+ border: 1px solid #999999;
746
+ margin-top: 13px;
747
+ }
748
+ .datapanel {
749
+ color: #333;
750
+ background-color: white;
751
+ box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px ;
752
+ padding: 10px 30px 10px 30px;
753
+ border-radius:15px;
754
+ }
755
+ </style>