address-client 4.0.2 → 4.0.3-yunChengV4

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