address-client 4.0.1 → 4.0.2

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