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