sale-client 3.5.262 → 3.5.263
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/build/dev-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [localUrl, serverRul] = ['http://
|
|
2
|
+
const [localUrl, serverRul] = ['http://121.36.106.17:8400', 'http://121.36.106.17:8400']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ export default function () {
|
|
|
29
29
|
// 机表收费
|
|
30
30
|
Vue.component('machine-meter-center', (resolve) => { require(['./machine/MachineMeterCenter'], resolve) })
|
|
31
31
|
// 欠费查询
|
|
32
|
-
Vue.component('sale-
|
|
32
|
+
Vue.component('sale-arrears-query', (resolve) => { require(['./machine/ArrearsQuery'], resolve) })
|
|
33
33
|
// 批量管理
|
|
34
34
|
Vue.component('batch-manage', (resolve) => { require(['./revenue/comprehen/closeaccount/Batchmanage'], resolve) })
|
|
35
35
|
// 气损收费查询
|
|
@@ -0,0 +1,741 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" style="height:80%">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<p class="bg-info text-center" style="padding: 8px;">{{usertype ? '特殊地址管理' : '民用地址管理'}}</p>
|
|
5
|
+
<div class="auto select-overspread form-horizontal">
|
|
6
|
+
<div class="form-group" v-if="!usertype&&!model.id">
|
|
7
|
+
<input type="radio" id="true" value="one" v-model="onedata">
|
|
8
|
+
<label for="one">单户</label>
|
|
9
|
+
<input type="radio" id="false" value="more" v-model="onedata">
|
|
10
|
+
<label for="more">多户</label>
|
|
11
|
+
</div>
|
|
12
|
+
<!--单个录入-->
|
|
13
|
+
<div v-if="onedata=='one'" class="row">
|
|
14
|
+
<div class="col-sm-6 form-group "
|
|
15
|
+
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
16
|
+
<label class="font_normal_body">省 市 区</label>
|
|
17
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"
|
|
18
|
+
>
|
|
19
|
+
<v-select :value.sync="model.f_pcd_id" :value-single="true"
|
|
20
|
+
:options='pcdslist' placeholder='请选择'
|
|
21
|
+
close-on-select search="true" @change="pcdChange" :disabled="!usertype">
|
|
22
|
+
</v-select>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="col-sm-6 form-group " v-if="!usertype"
|
|
26
|
+
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
27
|
+
<label class="font_normal_body">街道名称</label>
|
|
28
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
|
|
29
|
+
>
|
|
30
|
+
<v-select :value.sync="model.f_street_id" :value-single="true"
|
|
31
|
+
:options='streetslist' placeholder='请选择'
|
|
32
|
+
close-on-select search="true" :disabled="!usertype">
|
|
33
|
+
</v-select>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-6 form-group " v-if="usertype"
|
|
36
|
+
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
37
|
+
<label class="font_normal_body">街道名称</label>
|
|
38
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
|
|
39
|
+
>
|
|
40
|
+
<v-select :value.sync="model.f_street_id" :value-single="true"
|
|
41
|
+
:options='streetslist' placeholder='请选择'
|
|
42
|
+
@change="streetChange"
|
|
43
|
+
close-on-select search="true" :disabled="!usertype">
|
|
44
|
+
</v-select>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="col-sm-6 form-group " v-if="!usertype"
|
|
47
|
+
:class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
|
|
48
|
+
<label class="font_normal_body">小区名称</label>
|
|
49
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"
|
|
50
|
+
v-validate:f_residential_area_id1='{required: true }'>
|
|
51
|
+
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
52
|
+
:options='areaslist' placeholder='请选择'
|
|
53
|
+
@change="areaChange"
|
|
54
|
+
close-on-select search="true">
|
|
55
|
+
</v-select>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<div class="col-sm-6 form-group " v-if="usertype">
|
|
59
|
+
<label class="font_normal_body">小区名称</label>
|
|
60
|
+
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
61
|
+
:options='areaslist' placeholder='请选择'
|
|
62
|
+
@change="areaChange"
|
|
63
|
+
close-on-select search="true">
|
|
64
|
+
</v-select>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div class="col-sm-6 form-group " :class="[$v.slice1.required ? 'has-error' : 'has-success']">
|
|
68
|
+
<label class="font_normal_body">片  区</label>
|
|
69
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
70
|
+
v-validate:slice1='{required: true }'>
|
|
71
|
+
<v-select :value.sync="model.slice_area" v-model="model.slice_area"
|
|
72
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
73
|
+
close-on-select v-ref:slice>
|
|
74
|
+
</v-select>
|
|
75
|
+
</div>
|
|
76
|
+
<div v-if="!usertype" class="col-sm-6 form-group ">
|
|
77
|
+
<label for="f_address" class="font_normal_body">楼  号</label>
|
|
78
|
+
<input type="text" style="width:40%" v-model="model.f_building" class="input_search"
|
|
79
|
+
placeholder="楼号"/>
|
|
80
|
+
<input type="text" style="width:20%" v-model="model.f_building_suffix" class="input_search"
|
|
81
|
+
/>
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
<div v-if="!usertype" class="col-sm-6 form-group ">
|
|
85
|
+
<label for="f_address" class="font_normal_body">单  元</label>
|
|
86
|
+
<input type="text" style="width:40%" v-model="model.f_unit" class="input_search" placeholder="单元"/>
|
|
87
|
+
<input type="text" style="width:20%" v-model="model.f_unit_suffix" class="input_search"
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
<div v-if="!usertype" class="col-sm-6 form-group ">
|
|
91
|
+
<label for="f_address" class="font_normal_body">楼  层</label>
|
|
92
|
+
<input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
|
|
93
|
+
placeholder="楼层" />
|
|
94
|
+
<input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
|
|
95
|
+
/>
|
|
96
|
+
</div>
|
|
97
|
+
<div v-if="!usertype" class="col-sm-6 form-group "
|
|
98
|
+
:class="[$v.f_room.required ? 'has-error' : 'has-success']">
|
|
99
|
+
<label for="f_address" class="font_normal_body">门 牌 号</label>
|
|
100
|
+
<input type="text" style="width:40%" v-model="model.f_room" class="input_search" placeholder="门牌号"
|
|
101
|
+
v-validate:f_room='{required: true }'/>
|
|
102
|
+
<input type="text" style="width:20%" v-model="model.f_room_suffix" class="input_search"
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-sm-6 form-group">
|
|
106
|
+
<label class="font_normal_body">地址状态</label>
|
|
107
|
+
<v-select :value.sync="model.f_address_state" :value-single="true"
|
|
108
|
+
class="select_list select"
|
|
109
|
+
condition="f_address_state = '{}'"
|
|
110
|
+
:options='addresstate' placeholder='地址状态'
|
|
111
|
+
close-on-select>
|
|
112
|
+
</v-select>
|
|
113
|
+
</div>
|
|
114
|
+
<div v-if="usertype" class="col-sm-12 form-group "
|
|
115
|
+
:class="[$v.f_address.required ? 'has-error' : 'has-success']">
|
|
116
|
+
<label for="f_address" class="font_normal_body">详细地址</label>
|
|
117
|
+
<input type="text" style="width:80%" v-model="model.f_address" class="input_search" placeholder="详细地址"
|
|
118
|
+
v-validate:f_address='{required: true }'/>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-12 form-group">
|
|
121
|
+
<label class="font_normal_body " >备  注</label>
|
|
122
|
+
<textarea class="input_textarea" rows="3" style="margin-top: 25px; width:80%;height: auto;" v-model="model.f_comments"></textarea>
|
|
123
|
+
</div>
|
|
124
|
+
<div style="text-align:right;margin-top:40px;margin-right:50px;" class="col-sm-12">
|
|
125
|
+
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
126
|
+
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
</div>
|
|
130
|
+
<!--批量录入-->
|
|
131
|
+
<div v-if="onedata=='more'" class="row">
|
|
132
|
+
<div class="col-sm-6 form-group "
|
|
133
|
+
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
134
|
+
<label class="font_normal_body">省 市 区</label>
|
|
135
|
+
<input type="text" style="width:60%" v-show="false" v-model="model.f_pcd_id"
|
|
136
|
+
>
|
|
137
|
+
<v-select :value.sync="model.f_pcd_id" :value-single="true"
|
|
138
|
+
:options='pcdslist' placeholder='请选择'
|
|
139
|
+
close-on-select search="true" @change="pcdChange" :disabled="!usertype">
|
|
140
|
+
</v-select>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="col-sm-6 form-group "
|
|
143
|
+
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
144
|
+
<label class="font_normal_body">街  道</label>
|
|
145
|
+
<input type="text" style="width:60%" v-show="false" v-model="model.f_street_id"
|
|
146
|
+
>
|
|
147
|
+
<v-select :value.sync="model.f_street_id" :value-single="true"
|
|
148
|
+
:options='streetslist' placeholder='请选择'
|
|
149
|
+
close-on-select search="true" :disabled="!usertype">
|
|
150
|
+
</v-select>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="col-sm-6 form-group "
|
|
153
|
+
:class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">
|
|
154
|
+
<label class="font_normal_body">小区名称</label>
|
|
155
|
+
<input type="text" style="width:60%" v-show="false" v-model="model.f_residential_area_id"
|
|
156
|
+
v-validate:f_residential_area_id='{required: true }'>
|
|
157
|
+
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
158
|
+
@change="areaChange"
|
|
159
|
+
:options='areaslist' placeholder='请选择'
|
|
160
|
+
close-on-select search="true">
|
|
161
|
+
</v-select>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">
|
|
164
|
+
<label class="font_normal_body">片  区</label>
|
|
165
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
166
|
+
v-validate:slice='{required: true }'>
|
|
167
|
+
<v-select :value.sync="model.slice_area" v-model="model.slice_area"
|
|
168
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
169
|
+
close-on-select v-ref:slice>
|
|
170
|
+
</v-select>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
<div class="col-sm-6 form-group "
|
|
174
|
+
:class="[$v.f_building_start.integernum || $v.f_building_start.dctest ?'has-error' : 'has-success']">
|
|
175
|
+
<label for="f_address" class="font_normal_body">起始楼号</label>
|
|
176
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_building_prefix" class="input_search"/>
|
|
177
|
+
<input type="text" style="width:25%"
|
|
178
|
+
v-validate:f_building_start='{integernum: true ,dctest: [model.f_building_end, "<=" ]}'
|
|
179
|
+
v-model="model.f_building_start" class="input_search" placeholder="楼号"/>
|
|
180
|
+
<input type="text" style="width:17%" v-model="model.f_building_suffix" class="input_search"/>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="col-sm-6 form-group "
|
|
183
|
+
:class="[$v.f_building_end.integernum ||$v.f_building_end.dctest ? 'has-error' : 'has-success']">
|
|
184
|
+
<label for="f_address" class="font_normal_body">截止楼号</label>
|
|
185
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_building_prefix" class="input_search"/>
|
|
186
|
+
<input type="text" style="width:25%"
|
|
187
|
+
v-validate:f_building_end='{integernum: true ,dctest: [model.f_building_start, ">=" ]}'
|
|
188
|
+
v-model="model.f_building_end" class="input_search" placeholder="楼号"/>
|
|
189
|
+
<input type="text" style="width:17%" v-model="model.f_building_suffix" class="input_search"
|
|
190
|
+
/>
|
|
191
|
+
</div>
|
|
192
|
+
<div class="col-sm-6 form-group "
|
|
193
|
+
:class="[$v.f_unit_start.integernum || $v.f_unit_start.dctest ? 'has-error' : 'has-success']">
|
|
194
|
+
<label for="f_address" class="font_normal_body">起始单元</label>
|
|
195
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_unit_prefix" class="input_search" />
|
|
196
|
+
<input type="text" style="width:25%"
|
|
197
|
+
v-validate:f_unit_start='{integernum: true ,dctest: [model.f_unit_end, "<=" ]}'
|
|
198
|
+
v-model="model.f_unit_start" class="input_search" placeholder="单元"/>
|
|
199
|
+
<input type="text" style="width:17%" v-model="model.f_unit_suffix" class="input_search" />
|
|
200
|
+
</div>
|
|
201
|
+
<div class="col-sm-6 form-group "
|
|
202
|
+
:class="[$v.f_unit_end.integernum ||$v.f_unit_end.dctest ? 'has-error' : 'has-success']">
|
|
203
|
+
<label for="f_address" class="font_normal_body">截止单元</label>
|
|
204
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_unit_prefix" class="input_search" />
|
|
205
|
+
<input type="text" style="width:25%"
|
|
206
|
+
v-validate:f_unit_end='{integernum: true ,dctest: [model.f_unit_start, ">="]}'
|
|
207
|
+
v-model="model.f_unit_end" class="input_search" placeholder="单元"/>
|
|
208
|
+
<input type="text" style="width:17%" v-model="model.f_unit_suffix" class="input_search"/>
|
|
209
|
+
</div>
|
|
210
|
+
<div class="col-sm-6 form-group "
|
|
211
|
+
:class="[$v.f_floor_start.integernum || $v.f_floor_start.dctest ? 'has-error' : 'has-success']">
|
|
212
|
+
<label for="f_address" class="font_normal_body">起始楼层</label>
|
|
213
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_floor_prefix" class="input_search"/>
|
|
214
|
+
<input type="text" style="width:25%"
|
|
215
|
+
v-validate:f_floor_start='{integernum: true,dctest: [model.f_floor_end, "<=" ] }'
|
|
216
|
+
v-model="model.f_floor_start" class="input_search" placeholder="楼层"/>
|
|
217
|
+
<input type="text" style="width:17%" v-model="model.f_floor_suffix" class="input_search"/>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="col-sm-6 form-group "
|
|
220
|
+
:class="[$v.f_floor_end.integernum ||$v.f_floor_end.dctest ? 'has-error' : 'has-success']">
|
|
221
|
+
<label for="f_address" class="font_normal_body">截止楼层</label>
|
|
222
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_floor_prefix" class="input_search"/>
|
|
223
|
+
<input type="text" style="width:25%" v-model="model.f_floor_end"
|
|
224
|
+
v-validate:f_floor_end='{integernum: true,dctest: [model.f_floor_start, ">=" ] }'
|
|
225
|
+
class="input_search" placeholder="楼层"/>
|
|
226
|
+
<input type="text" style="width:17%" v-model="model.f_floor_suffix" class="input_search"/>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="col-sm-6 form-group "
|
|
229
|
+
:class="[$v.f_room_start.integernum || $v.f_room_start.dctest ? 'has-error' : 'has-success']">
|
|
230
|
+
<label for="f_address" class="font_normal_body">起始门牌</label>
|
|
231
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_room_prefix" class="input_search"/>
|
|
232
|
+
<input type="text" style="width:25%" v-model="model.f_room_start"
|
|
233
|
+
class="input_search" placeholder="门牌号"
|
|
234
|
+
v-validate:f_room_start='{integernum: true ,dctest: [model.f_room_end, "<=" ]}'
|
|
235
|
+
/>
|
|
236
|
+
<input type="text" style="width:17%" v-model="model.f_room_suffix" class="input_search"/>
|
|
237
|
+
</div>
|
|
238
|
+
<div class="col-sm-6 form-group "
|
|
239
|
+
:class="[$v.f_room_end.integernum ||$v.f_room_end.dctest ? 'has-error' : 'has-success']">
|
|
240
|
+
<label for="f_address" class="font_normal_body">截止门牌</label>
|
|
241
|
+
<input type="text" style="width:15%" placeholder="前缀" v-model="model.f_room_prefix" class="input_search"/>
|
|
242
|
+
<input type="text" style="width:25%" v-model="model.f_room_end" class="input_search" placeholder="门牌号"
|
|
243
|
+
v-validate:f_room_end='{integernum: true ,dctest: [model.f_room_start, ">=" ]}'/>
|
|
244
|
+
<input type="text" style="width:17%" v-model="model.f_room_suffix" class="input_search"/>
|
|
245
|
+
</div>
|
|
246
|
+
<div class="col-sm-6 form-group">
|
|
247
|
+
<label class="font_normal_body">地址状态</label>
|
|
248
|
+
<v-select :value.sync="model.f_address_state" :value-single="true"
|
|
249
|
+
class="select_list select"
|
|
250
|
+
condition="f_address_state = '{}'"
|
|
251
|
+
:options='addresstate' placeholder='地址状态'
|
|
252
|
+
close-on-select>
|
|
253
|
+
</v-select>
|
|
254
|
+
</div>
|
|
255
|
+
<div class="col-sm-10 form-group ">
|
|
256
|
+
<p class="navbar-text" style="margin-left: 10%">说明: 层数输入1,门牌号输入001。产生的最终门牌号显示1001</p>
|
|
257
|
+
</div>
|
|
258
|
+
<div class="col-sm-12 form-group">
|
|
259
|
+
<label class="font_normal_body " style="margin-top:-20px">备  注</label>
|
|
260
|
+
<textarea class="input_textarea" rows="3" style="width:80%;height: auto;" v-model="model.f_comments"></textarea>
|
|
261
|
+
</div>
|
|
262
|
+
<div class="row">
|
|
263
|
+
<div style="text-align:right;margin-top:20px;margin-right:50px;" class="col-sm-12">
|
|
264
|
+
<button class="button_search button_spacing" @click="confirmall()" :disabled='!$v.valid'>保存</button>
|
|
265
|
+
<button class="button_clear button_spacing" @click="cancel()">取消</button>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
</validator>
|
|
271
|
+
</div>
|
|
272
|
+
</template>
|
|
273
|
+
|
|
274
|
+
<script>
|
|
275
|
+
import {HttpResetClass} from 'vue-client'
|
|
276
|
+
|
|
277
|
+
let getAreaConfig = async function (self) {
|
|
278
|
+
// 获取气价里面的配置
|
|
279
|
+
await self.$getConfig(self, 'UserAddress')
|
|
280
|
+
console.log('原地址配置', self.config)
|
|
281
|
+
console.log('获取地址配置', self.config)
|
|
282
|
+
Object.assign(self.model, self.config)
|
|
283
|
+
self.initdata()
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export default {
|
|
287
|
+
title: '用户地址添加',
|
|
288
|
+
data () {
|
|
289
|
+
return {
|
|
290
|
+
// 初始化省市区数据
|
|
291
|
+
pcdslist: [],
|
|
292
|
+
// 初始化街道数据
|
|
293
|
+
streetslist: [],
|
|
294
|
+
// 初始化街道数据
|
|
295
|
+
areaslist: [],
|
|
296
|
+
config: {
|
|
297
|
+
f_building_suffix: '号楼',
|
|
298
|
+
f_unit_suffix: '单元',
|
|
299
|
+
f_floor_suffix: '层',
|
|
300
|
+
f_room_suffix: '室'
|
|
301
|
+
},
|
|
302
|
+
model: {
|
|
303
|
+
f_pcd_id: '',
|
|
304
|
+
f_street_id: '',
|
|
305
|
+
f_comments: '',
|
|
306
|
+
f_residential_area_id: '',
|
|
307
|
+
f_pcd: '',
|
|
308
|
+
f_street: '',
|
|
309
|
+
f_residential_area: '',
|
|
310
|
+
f_slice_area: '',
|
|
311
|
+
f_building: '',
|
|
312
|
+
f_building_start: '',
|
|
313
|
+
f_building_end: '',
|
|
314
|
+
f_building_suffix: '',
|
|
315
|
+
f_unit: '',
|
|
316
|
+
f_unit_start: '',
|
|
317
|
+
f_unit_end: '',
|
|
318
|
+
f_unit_suffix: '',
|
|
319
|
+
f_floor: '',
|
|
320
|
+
f_floor_start: '',
|
|
321
|
+
f_floor_end: '',
|
|
322
|
+
f_floor_suffix: '',
|
|
323
|
+
f_room: '',
|
|
324
|
+
f_room_start: '',
|
|
325
|
+
f_room_end: '',
|
|
326
|
+
f_room_suffix: '',
|
|
327
|
+
// 详细地址
|
|
328
|
+
f_address: '',
|
|
329
|
+
// 单位名称
|
|
330
|
+
f_company: '',
|
|
331
|
+
// 单位地址
|
|
332
|
+
f_company_address: ''
|
|
333
|
+
},
|
|
334
|
+
// 判读是否为单个数据录入
|
|
335
|
+
onedata: 'one',
|
|
336
|
+
// 选中所有地址
|
|
337
|
+
addresslist: [],
|
|
338
|
+
usertype: false,
|
|
339
|
+
|
|
340
|
+
// 公司信息
|
|
341
|
+
curorgid: [this.$login.f.orgid],
|
|
342
|
+
|
|
343
|
+
f_orgid: '',
|
|
344
|
+
|
|
345
|
+
sliceArea: []
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
props: ['f_filialeids', 'row', 'operation', 'usertype'],
|
|
349
|
+
ready () {
|
|
350
|
+
getAreaConfig(this)
|
|
351
|
+
},
|
|
352
|
+
methods: {
|
|
353
|
+
async initdata () {
|
|
354
|
+
this.model.f_address_state = '已通气'
|
|
355
|
+
this.initAreas(this.f_filialeids)
|
|
356
|
+
// 添加特殊地址选省市区
|
|
357
|
+
|
|
358
|
+
this.initpcds(` f_orgid = '${this.f_filialeids}'`)
|
|
359
|
+
this.initstreets(` f_orgid = '${this.f_filialeids}' `)
|
|
360
|
+
this.initareas(` f_orgid = '${this.f_filialeids}'`)
|
|
361
|
+
},
|
|
362
|
+
|
|
363
|
+
// 初始化片区
|
|
364
|
+
async initAreas (val) {
|
|
365
|
+
if (val) {
|
|
366
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
|
367
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
368
|
+
userid: this.$login.f.id
|
|
369
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
370
|
+
|
|
371
|
+
let arr = getAllArea.data.filter((res) => {
|
|
372
|
+
return res.parentid == val
|
|
373
|
+
})
|
|
374
|
+
console.log('过滤之后的片区', arr)
|
|
375
|
+
this.sliceArea = []
|
|
376
|
+
arr.forEach((res) => {
|
|
377
|
+
this.sliceArea.push({label: res.name, value: {name: res.name, code: res.number}})
|
|
378
|
+
})
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
// 初始化省市区,添加街道
|
|
382
|
+
async initpcds (pconditon) {
|
|
383
|
+
this.pcdslist = []
|
|
384
|
+
let HttpReset = new HttpResetClass()
|
|
385
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
386
|
+
data: {
|
|
387
|
+
items: '*',
|
|
388
|
+
tablename: 't_pcd',
|
|
389
|
+
orderitem: 'id',
|
|
390
|
+
condition: pconditon
|
|
391
|
+
}
|
|
392
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
393
|
+
let redata = []
|
|
394
|
+
req.data.forEach((row, n) => {
|
|
395
|
+
redata[n] = {
|
|
396
|
+
label: row.f_pcd,
|
|
397
|
+
value: row.id,
|
|
398
|
+
data: row,
|
|
399
|
+
id: row.id
|
|
400
|
+
}
|
|
401
|
+
})
|
|
402
|
+
this.pcdslist = redata
|
|
403
|
+
},
|
|
404
|
+
// 初始化街道 添加小区
|
|
405
|
+
async initstreets (pconditon) {
|
|
406
|
+
this.streetslist = []
|
|
407
|
+
let HttpReset = new HttpResetClass()
|
|
408
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
409
|
+
data: {
|
|
410
|
+
items: '*',
|
|
411
|
+
tablename: 't_street',
|
|
412
|
+
orderitem: 'id',
|
|
413
|
+
condition: pconditon
|
|
414
|
+
}
|
|
415
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
416
|
+
let redata = []
|
|
417
|
+
req.data.forEach((row, n) => {
|
|
418
|
+
redata[n] = {
|
|
419
|
+
label: row.f_street,
|
|
420
|
+
value: row.id,
|
|
421
|
+
data: row,
|
|
422
|
+
id: row.id
|
|
423
|
+
}
|
|
424
|
+
})
|
|
425
|
+
this.streetslist = redata
|
|
426
|
+
},
|
|
427
|
+
// 初始化小区添加小区
|
|
428
|
+
async initareas (pconditon) {
|
|
429
|
+
// if(this.usertype){
|
|
430
|
+
// pconditon=pconditon+` and f_special='1' `
|
|
431
|
+
// }
|
|
432
|
+
this.areaslist = []
|
|
433
|
+
let HttpReset = new HttpResetClass()
|
|
434
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
435
|
+
data: {
|
|
436
|
+
items: '*',
|
|
437
|
+
tablename: 't_area',
|
|
438
|
+
orderitem: 'id',
|
|
439
|
+
condition: pconditon
|
|
440
|
+
}
|
|
441
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
442
|
+
let redata = []
|
|
443
|
+
req.data.forEach((row) => {
|
|
444
|
+
redata.push({
|
|
445
|
+
label: row.f_residential_area,
|
|
446
|
+
value: row.id,
|
|
447
|
+
data: row,
|
|
448
|
+
id: row.id
|
|
449
|
+
})
|
|
450
|
+
})
|
|
451
|
+
this.areaslist = redata
|
|
452
|
+
},
|
|
453
|
+
// 省/市/区变化
|
|
454
|
+
async pcdChange (val) {
|
|
455
|
+
// 只有添加特殊地址时才级联
|
|
456
|
+
if (!this.usertype) {
|
|
457
|
+
return
|
|
458
|
+
}
|
|
459
|
+
console.log('省/市/区变化', val)
|
|
460
|
+
if (val) {
|
|
461
|
+
// 那就把[小区,街道]重新组织一下
|
|
462
|
+
await this.initstreets(` f_pcd_id ='${val}' `)
|
|
463
|
+
if (this.model.f_street_id) {
|
|
464
|
+
if (this.findbyid(this.streetslist, this.model.f_street_id)) {
|
|
465
|
+
let pcd_id = this.findbyid(this.streetslist, this.model.f_street_id).f_pcd_id
|
|
466
|
+
if (pcd_id != val) {
|
|
467
|
+
this.model.f_street_id = ''
|
|
468
|
+
}
|
|
469
|
+
} else {
|
|
470
|
+
this.model.f_street_id = ''
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// 那就把[小区,街道]重新组织一下
|
|
474
|
+
if (this.model.f_street_id) {
|
|
475
|
+
await this.initareas(` f_street_id ='${this.model.f_street_id}' `)
|
|
476
|
+
if (this.model.f_residential_area_id) {
|
|
477
|
+
if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
|
|
478
|
+
let pcd_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_pcd_id
|
|
479
|
+
if (pcd_id != val) {
|
|
480
|
+
this.model.f_residential_area_id = ''
|
|
481
|
+
}
|
|
482
|
+
} else {
|
|
483
|
+
this.model.f_residential_area_id = ''
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
this.$resetValidation()
|
|
490
|
+
},
|
|
491
|
+
// 小区变化
|
|
492
|
+
areaChange (val) {
|
|
493
|
+
console.log('小区变化', val)
|
|
494
|
+
// 选择小区后级联出省市区和街道
|
|
495
|
+
let selectArea // 选中的小区数据
|
|
496
|
+
for (let row of this.areaslist) {
|
|
497
|
+
if (val == row.value) {
|
|
498
|
+
selectArea = row.data
|
|
499
|
+
break
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
if (selectArea) {
|
|
503
|
+
this.model.f_street_id = selectArea.f_street_id
|
|
504
|
+
this.model.f_pcd_id = selectArea.f_pcd_id
|
|
505
|
+
this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
|
|
506
|
+
this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
|
|
507
|
+
this.model.slice_area = [{name: selectArea.f_slice_area, code: selectArea.f_area_code}]
|
|
508
|
+
// 拼接地址
|
|
509
|
+
this.model.f_address = `${selectArea.f_residential_area}`
|
|
510
|
+
}
|
|
511
|
+
this.$nextTick(() => {
|
|
512
|
+
this.$resetValidation()
|
|
513
|
+
})
|
|
514
|
+
},
|
|
515
|
+
// 街道变化
|
|
516
|
+
async streetChange (val) {
|
|
517
|
+
console.log('街道变化', val)
|
|
518
|
+
if (this.streetslist[0]) {
|
|
519
|
+
var street = ''
|
|
520
|
+
this.streetslist.forEach((item) => {
|
|
521
|
+
if (item.id === val) {
|
|
522
|
+
street = item.label
|
|
523
|
+
}
|
|
524
|
+
})
|
|
525
|
+
this.model.f_address = street
|
|
526
|
+
}
|
|
527
|
+
if (val) {
|
|
528
|
+
// 那就把[小区]重新组织一下
|
|
529
|
+
await this.initareas(` f_street_id ='${val}' `)
|
|
530
|
+
if (this.model.f_residential_area_id) {
|
|
531
|
+
if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
|
|
532
|
+
let street_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_street_id
|
|
533
|
+
if (street_id != val) {
|
|
534
|
+
this.model.f_residential_area_id = ''
|
|
535
|
+
}
|
|
536
|
+
} else {
|
|
537
|
+
this.model.f_residential_area_id = ''
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
this.$resetValidation()
|
|
542
|
+
},
|
|
543
|
+
|
|
544
|
+
getorg (val) {
|
|
545
|
+
this.f_orgid = val[0]
|
|
546
|
+
},
|
|
547
|
+
|
|
548
|
+
// 处理批量地址信息
|
|
549
|
+
dealaddlist () {
|
|
550
|
+
try {
|
|
551
|
+
var resultlist = []
|
|
552
|
+
for (var i = parseInt(this.model.f_building_start); i <= parseInt(this.model.f_building_end); i++) {
|
|
553
|
+
for (var j = parseInt(this.model.f_unit_start); j <= parseInt(this.model.f_unit_end); j++) {
|
|
554
|
+
for (var m = parseInt(this.model.f_floor_start); m <= parseInt(this.model.f_floor_end); m++) {
|
|
555
|
+
for (var n = parseInt(this.model.f_room_start); n <= parseInt(this.model.f_room_end); n++) {
|
|
556
|
+
// 预备一个空的json
|
|
557
|
+
console.log('批量', this.model)
|
|
558
|
+
let data = Object.assign({}, this.model)
|
|
559
|
+
data.f_create_person = this.$login.f.name
|
|
560
|
+
data.f_building = data.f_building_prefix + i
|
|
561
|
+
data.f_unit = data.f_unit_prefix + j
|
|
562
|
+
data.f_floor = data.f_floor_prefix + m
|
|
563
|
+
// 目前房号都按两位处理 如: 101室 201室 110室
|
|
564
|
+
if ((n + '').length == 1) {
|
|
565
|
+
data.f_room = data.f_room_prefix + m + '0' + n
|
|
566
|
+
} else {
|
|
567
|
+
data.f_room = data.f_room_prefix + m + '' + n
|
|
568
|
+
}
|
|
569
|
+
data.f_filialeid = this.f_filialeids
|
|
570
|
+
data.f_operator = this.$login.f.name
|
|
571
|
+
data.f_operatorid = this.$login.f.id
|
|
572
|
+
data.f_orgid = this.$login.f.orgid
|
|
573
|
+
data.f_orgname = this.$login.f.orgs
|
|
574
|
+
data.f_depid = this.$login.f.depids
|
|
575
|
+
data.f_depname = this.$login.f.deps
|
|
576
|
+
data.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
|
|
577
|
+
data.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
|
|
578
|
+
data.f_residential_area = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area
|
|
579
|
+
data.f_address = data.f_residential_area +
|
|
580
|
+
data.f_building + data.f_building_suffix +
|
|
581
|
+
data.f_unit + data.f_unit_suffix +
|
|
582
|
+
data.f_floor + data.f_floor_suffix +
|
|
583
|
+
data.f_room + data.f_room_suffix
|
|
584
|
+
if (this.model.slice_area) {
|
|
585
|
+
if (this.model.slice_area.length > 0) {
|
|
586
|
+
data.f_slice_area = this.model.slice_area[0].name
|
|
587
|
+
data.f_area_code = this.model.slice_area[0].code
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
resultlist.push(data)
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
this.addresslist = resultlist
|
|
596
|
+
} catch (e) {
|
|
597
|
+
console.log(e)
|
|
598
|
+
this.$showAlert('输出数据有误,请检查', 'warning', 2000)
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
// 保存多个
|
|
602
|
+
async confirmall () {
|
|
603
|
+
this.dealaddlist()
|
|
604
|
+
if (this.addresslist.length > 0) {
|
|
605
|
+
let msg = {
|
|
606
|
+
resolveMsg: '地址保存成功',
|
|
607
|
+
rejectMsg: '地址保存失败'
|
|
608
|
+
}
|
|
609
|
+
this.$showMessage('确定要批量添加' + this.addresslist.length + '户地址吗?,如有已经存在的,将会重复添加!!!', ['confirm', 'cancel']).then((res) => {
|
|
610
|
+
if (res === 'confirm') {
|
|
611
|
+
this.$resetpost('rs/logic/address_adduserlist', {data: {addlist: this.addresslist}}, msg).then((req) => {
|
|
612
|
+
this.cleardara()
|
|
613
|
+
this.$dispatch('confirm')
|
|
614
|
+
})
|
|
615
|
+
}
|
|
616
|
+
})
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
// 保存
|
|
620
|
+
async confirm () {
|
|
621
|
+
if (this.onedata == 'one') {
|
|
622
|
+
await this.saveonedata()
|
|
623
|
+
}
|
|
624
|
+
this.cleardara()
|
|
625
|
+
this.$dispatch('confirm')
|
|
626
|
+
},
|
|
627
|
+
// 保存一户信息
|
|
628
|
+
async saveonedata () {
|
|
629
|
+
this.model.f_create_person = this.$login.f.name
|
|
630
|
+
this.model.f_filialeid = this.f_filialeids
|
|
631
|
+
this.model.f_operator = this.$login.f.name
|
|
632
|
+
this.model.f_operatorid = this.$login.f.id
|
|
633
|
+
this.model.f_orgid = this.$login.f.orgid
|
|
634
|
+
this.model.f_orgname = this.$login.f.orgs
|
|
635
|
+
this.model.f_depid = this.$login.f.depids
|
|
636
|
+
this.model.f_depname = this.$login.f.deps
|
|
637
|
+
if (this.model.slice_area) {
|
|
638
|
+
if (this.model.slice_area.length > 0) {
|
|
639
|
+
this.model.f_slice_area = this.model.slice_area[0].name
|
|
640
|
+
this.model.f_area_code = this.model.slice_area[0].code
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
if (this.usertype) {
|
|
644
|
+
// 非民用
|
|
645
|
+
this.model.f_special = '1'
|
|
646
|
+
this.model.f_building_suffix = ''
|
|
647
|
+
this.model.f_unit_suffix = ''
|
|
648
|
+
this.model.f_floor_suffix = ''
|
|
649
|
+
this.model.f_room_suffix = ''
|
|
650
|
+
this.model.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
|
|
651
|
+
this.model.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
|
|
652
|
+
this.model.f_residential_area = this.findbyid(this.areaslist, this.model.f_residential_area_id) ? this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area : ''
|
|
653
|
+
} else {
|
|
654
|
+
// 民用
|
|
655
|
+
this.model.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
|
|
656
|
+
this.model.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
|
|
657
|
+
this.model.f_residential_area = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area
|
|
658
|
+
this.model.f_address = this.model.f_residential_area + (this.model.f_building ? this.model.f_building + this.model.f_building_suffix : '') + (this.model.f_unit ? this.model.f_unit + this.model.f_unit_suffix : '') + (this.model.f_floor ? this.model.f_floor + this.model.f_floor_suffix : '') + this.model.f_room + this.model.f_room_suffix
|
|
659
|
+
}
|
|
660
|
+
await this.$resetpost('rs/logic/address_updateuseraddress', this.model)
|
|
661
|
+
},
|
|
662
|
+
cancel () {
|
|
663
|
+
this.cleardara()
|
|
664
|
+
this.$dispatch('cancel')
|
|
665
|
+
},
|
|
666
|
+
cleardara () {
|
|
667
|
+
this.model = {
|
|
668
|
+
f_pcd_id: '',
|
|
669
|
+
f_street_id: '',
|
|
670
|
+
f_residential_area_id: '',
|
|
671
|
+
f_pcd: '',
|
|
672
|
+
f_comments: '',
|
|
673
|
+
f_street: '',
|
|
674
|
+
f_residential_area: '',
|
|
675
|
+
f_slice_area: '',
|
|
676
|
+
f_building: '',
|
|
677
|
+
f_building_start: '',
|
|
678
|
+
f_building_end: '',
|
|
679
|
+
f_building_prefix: '',
|
|
680
|
+
f_building_suffix: this.config.f_building_suffix,
|
|
681
|
+
f_unit: '',
|
|
682
|
+
f_unit_start: '',
|
|
683
|
+
f_unit_end: '',
|
|
684
|
+
f_unit_prefix: '',
|
|
685
|
+
f_unit_suffix: this.config.f_unit_suffix,
|
|
686
|
+
f_floor: '',
|
|
687
|
+
f_floor_start: '',
|
|
688
|
+
f_floor_end: '',
|
|
689
|
+
f_floor_prefix: '',
|
|
690
|
+
f_floor_suffix: this.config.f_floor_suffix,
|
|
691
|
+
f_room: '',
|
|
692
|
+
f_room_start: '',
|
|
693
|
+
f_room_end: '',
|
|
694
|
+
f_room_prefix: '',
|
|
695
|
+
f_room_suffix: this.config.f_room_suffix,
|
|
696
|
+
// 详细地址
|
|
697
|
+
f_address: '',
|
|
698
|
+
// 单位名称
|
|
699
|
+
f_company: '',
|
|
700
|
+
// 单位地址
|
|
701
|
+
f_company_address: ''
|
|
702
|
+
}
|
|
703
|
+
// this.pcdslist = []
|
|
704
|
+
// this.streetslist = []
|
|
705
|
+
// this.areaslist = []
|
|
706
|
+
},
|
|
707
|
+
|
|
708
|
+
// 根据名字找数据
|
|
709
|
+
findbyid (list, name) {
|
|
710
|
+
var result
|
|
711
|
+
list.forEach((row, n) => {
|
|
712
|
+
if (name == row.value) {
|
|
713
|
+
result = row.data
|
|
714
|
+
}
|
|
715
|
+
})
|
|
716
|
+
return result
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
watch: {
|
|
720
|
+
// 分公司变化
|
|
721
|
+
'f_filialeids' () {
|
|
722
|
+
if (this.model.f_filialeid) {
|
|
723
|
+
if (this.model.f_filialeid != this.f_filialeids) {
|
|
724
|
+
this.$dispatch('cancel')
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
this.cleardara()
|
|
728
|
+
this.initdata()
|
|
729
|
+
},
|
|
730
|
+
'row' () {
|
|
731
|
+
this.onedata = 'one'
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
computed: {
|
|
735
|
+
// 地址状态下拉框
|
|
736
|
+
addresstate () {
|
|
737
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
</script>
|
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" style="height:80%">
|
|
3
|
+
<validator name='d' @valid="$emit('address-valid')" @invalid="$emit('address-valid')">
|
|
4
|
+
<p class="bg-info text-center" style="padding: 8px;">{{is_pecial ? '特殊地址管理' : '民用地址管理'}}</p>
|
|
5
|
+
<form class="auto select-overspread form-horizontal">
|
|
6
|
+
<div class="row">
|
|
7
|
+
|
|
8
|
+
<div class="col-sm-6 form-group "
|
|
9
|
+
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
10
|
+
<label class="font_normal_body">省 市 区</label>
|
|
11
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"
|
|
12
|
+
v-validate:f_pcd_id='{required: true }'>
|
|
13
|
+
<v-select :value.sync="model.f_pcd_id" :value-single="true"
|
|
14
|
+
:options='pcdslist' placeholder='请选择'
|
|
15
|
+
close-on-select search="true" @change="pcdChange">
|
|
16
|
+
</v-select>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="col-sm-6 form-group "
|
|
20
|
+
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
21
|
+
<label class="font_normal_body">街道名称</label>
|
|
22
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
|
|
23
|
+
v-validate:f_street_id='{required: true }'>
|
|
24
|
+
<v-select :value.sync="model.f_street_id" :value-single="true"
|
|
25
|
+
:options='streetslist' placeholder='请选择'
|
|
26
|
+
close-on-select search="true" @change="streetChange">
|
|
27
|
+
</v-select>
|
|
28
|
+
</div>
|
|
29
|
+
<div v-if="!is_pecial" class="col-sm-6 form-group "
|
|
30
|
+
:class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">
|
|
31
|
+
<label class="font_normal_body">小区名称</label>
|
|
32
|
+
<input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"
|
|
33
|
+
v-validate:f_residential_area_id='{required: true }'>
|
|
34
|
+
<v-select :value.sync="model.f_residential_area_id" :value-single="true"
|
|
35
|
+
:options='areaslist' placeholder='请选择'
|
|
36
|
+
@change="areaChange"
|
|
37
|
+
close-on-select search="true">
|
|
38
|
+
</v-select>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">
|
|
41
|
+
<label class="font_normal_body">片  区</label>
|
|
42
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
43
|
+
v-validate:slice='{required: true }'>
|
|
44
|
+
<v-select :value.sync="model.slice_area" v-model="model.slice_area"
|
|
45
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
46
|
+
close-on-select v-ref:slice>
|
|
47
|
+
</v-select>
|
|
48
|
+
</div>
|
|
49
|
+
<div v-if="!is_pecial" class="col-sm-6 form-group ">
|
|
50
|
+
<label for="f_address" class="font_normal_body">楼  号</label>
|
|
51
|
+
<input type="text" style="width:40%" v-model="model.f_building" class="input_search"
|
|
52
|
+
placeholder="楼号"/>
|
|
53
|
+
<input type="text" style="width:20%" v-model="model.f_building_suffix" class="input_search"
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
</div>
|
|
57
|
+
<div v-if="!is_pecial" class="col-sm-6 form-group ">
|
|
58
|
+
<label for="f_address" class="font_normal_body">单  元</label>
|
|
59
|
+
<input type="text" style="width:40%" v-model="model.f_unit" class="input_search" placeholder="单元"/>
|
|
60
|
+
<input type="text" style="width:20%" v-model="model.f_unit_suffix" class="input_search"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
<div v-if="!is_pecial" class="col-sm-6 form-group ">
|
|
64
|
+
<label for="f_address" class="font_normal_body">楼  层</label>
|
|
65
|
+
<input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
|
|
66
|
+
placeholder="楼层" />
|
|
67
|
+
<input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
|
|
68
|
+
/>
|
|
69
|
+
</div>
|
|
70
|
+
<div v-if="!is_pecial" class="col-sm-6 form-group "
|
|
71
|
+
:class="[$v.f_room.required ? 'has-error' : 'has-success']">
|
|
72
|
+
<label for="f_address" class="font_normal_body">门 牌 号</label>
|
|
73
|
+
<input type="text" style="width:40%" v-model="model.f_room" class="input_search" placeholder="门牌号"
|
|
74
|
+
v-validate:f_room='{required: true }'/>
|
|
75
|
+
<input type="text" style="width:20%" v-model="model.f_room_suffix" class="input_search"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
<div v-if="is_pecial" class="col-sm-6 form-group "
|
|
79
|
+
:class="[$v.f_address.required ? 'has-error' : 'has-success']">
|
|
80
|
+
<label for="f_address" class="font_normal_body">详细地址</label>
|
|
81
|
+
<input type="text" style="width:60%" v-model="model.f_address" class="input_search" placeholder="详细地址"
|
|
82
|
+
v-validate:f_address='{required: true }'/>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-12 form-group" style="margin: 8px 0">
|
|
85
|
+
<label class="font_normal_body " >备  注</label>
|
|
86
|
+
<textarea class="input_textarea" rows="3" style="width:80%;height: auto !important;" v-model="model.f_comments"></textarea>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="col-sm-12 form-group button-range">
|
|
89
|
+
<button class="button_search button_spacing" type="button" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
90
|
+
<button class="button_clear button_spacing" type="button" @click="cancel()">取消</button>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
</div>
|
|
94
|
+
</form>
|
|
95
|
+
</validator>
|
|
96
|
+
</div>
|
|
97
|
+
</template>
|
|
98
|
+
|
|
99
|
+
<script>
|
|
100
|
+
import {HttpResetClass} from 'vue-client'
|
|
101
|
+
|
|
102
|
+
let getAreaConfig = async function (self) {
|
|
103
|
+
// 获取气价里面的配置
|
|
104
|
+
await self.$getConfig(self, 'UserAddress')
|
|
105
|
+
console.log('查看地址的配置获取', self.config)
|
|
106
|
+
Object.assign(self.model, self.model, self.config)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default {
|
|
110
|
+
title: '用户地址添加',
|
|
111
|
+
data () {
|
|
112
|
+
return {
|
|
113
|
+
// 初始化省市区数据
|
|
114
|
+
pcdslist: [],
|
|
115
|
+
// 初始化街道数据
|
|
116
|
+
streetslist: [],
|
|
117
|
+
// 初始化街道数据
|
|
118
|
+
areaslist: [],
|
|
119
|
+
config: {
|
|
120
|
+
f_building_suffix: '号楼',
|
|
121
|
+
f_unit_suffix: '单元',
|
|
122
|
+
f_floor_suffix: '层',
|
|
123
|
+
f_room_suffix: '室'
|
|
124
|
+
},
|
|
125
|
+
model: {
|
|
126
|
+
f_pcd_id: '',
|
|
127
|
+
f_street_id: '',
|
|
128
|
+
f_comments: '',
|
|
129
|
+
f_residential_area_id: '',
|
|
130
|
+
f_pcd: '',
|
|
131
|
+
f_street: '',
|
|
132
|
+
f_residential_area: '',
|
|
133
|
+
f_slice_area: '',
|
|
134
|
+
f_building: '',
|
|
135
|
+
f_building_start: '',
|
|
136
|
+
f_building_end: '',
|
|
137
|
+
f_building_suffix: '',
|
|
138
|
+
f_unit: '',
|
|
139
|
+
f_unit_start: '',
|
|
140
|
+
f_unit_end: '',
|
|
141
|
+
f_unit_suffix: '',
|
|
142
|
+
f_floor: '',
|
|
143
|
+
f_floor_start: '',
|
|
144
|
+
f_floor_end: '',
|
|
145
|
+
f_floor_suffix: '',
|
|
146
|
+
f_room: '',
|
|
147
|
+
f_room_start: '',
|
|
148
|
+
f_room_end: '',
|
|
149
|
+
f_room_suffix: '',
|
|
150
|
+
// 详细地址
|
|
151
|
+
f_address: '',
|
|
152
|
+
// 单位名称
|
|
153
|
+
f_company: '',
|
|
154
|
+
// 单位地址
|
|
155
|
+
f_company_address: ''
|
|
156
|
+
},
|
|
157
|
+
// 选中所有地址
|
|
158
|
+
addresslist: [],
|
|
159
|
+
is_pecial: false,
|
|
160
|
+
|
|
161
|
+
// 公司信息
|
|
162
|
+
curorgid: [this.$login.f.orgid],
|
|
163
|
+
|
|
164
|
+
f_orgid: '',
|
|
165
|
+
|
|
166
|
+
sliceArea: []
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
props: ['f_filialeids', 'is_pecial', 'isSelect', 'row'],
|
|
170
|
+
ready () {
|
|
171
|
+
this.initdata()
|
|
172
|
+
getAreaConfig(this)
|
|
173
|
+
},
|
|
174
|
+
methods: {
|
|
175
|
+
async initdata () {
|
|
176
|
+
this.initAreas(this.f_filialeids)
|
|
177
|
+
await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
178
|
+
this.initModel()
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
// 初始化片区
|
|
182
|
+
async initAreas (val) {
|
|
183
|
+
if (val) {
|
|
184
|
+
let http = new HttpResetClass()
|
|
185
|
+
|
|
186
|
+
let getAllArea = await http.load('POST', '/rs/search', {
|
|
187
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
188
|
+
userid: this.$login.f.id
|
|
189
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
190
|
+
|
|
191
|
+
let arr = getAllArea.data.filter((res) => {
|
|
192
|
+
return res.parentid == val
|
|
193
|
+
})
|
|
194
|
+
console.log('过滤之后的片区', arr)
|
|
195
|
+
this.sliceArea = []
|
|
196
|
+
arr.forEach((res) => {
|
|
197
|
+
this.sliceArea.push({label: res.name, value: {name: res.name, code: res.number}})
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
// 初始化省市区,添加街道
|
|
203
|
+
async initpcds (pconditon) {
|
|
204
|
+
this.pcdslist = []
|
|
205
|
+
let HttpReset = new HttpResetClass()
|
|
206
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
207
|
+
data: {
|
|
208
|
+
items: '*',
|
|
209
|
+
tablename: 't_pcd',
|
|
210
|
+
orderitem: 'id',
|
|
211
|
+
condition: pconditon
|
|
212
|
+
}
|
|
213
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
214
|
+
let redata = []
|
|
215
|
+
req.data.forEach((row, n) => {
|
|
216
|
+
redata[n] = {
|
|
217
|
+
label: row.f_pcd,
|
|
218
|
+
value: row.id,
|
|
219
|
+
data: row,
|
|
220
|
+
id: row.id
|
|
221
|
+
}
|
|
222
|
+
})
|
|
223
|
+
this.pcdslist = redata
|
|
224
|
+
},
|
|
225
|
+
// 初始化街道 添加小区
|
|
226
|
+
async initstreets (pconditon) {
|
|
227
|
+
this.streetslist = []
|
|
228
|
+
let HttpReset = new HttpResetClass()
|
|
229
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
230
|
+
data: {
|
|
231
|
+
items: '*',
|
|
232
|
+
tablename: 't_street',
|
|
233
|
+
orderitem: 'id',
|
|
234
|
+
condition: pconditon
|
|
235
|
+
}
|
|
236
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
237
|
+
let redata = []
|
|
238
|
+
req.data.forEach((row, n) => {
|
|
239
|
+
redata[n] = {
|
|
240
|
+
label: row.f_street,
|
|
241
|
+
value: row.id,
|
|
242
|
+
data: row,
|
|
243
|
+
id: row.id
|
|
244
|
+
}
|
|
245
|
+
})
|
|
246
|
+
this.streetslist = redata
|
|
247
|
+
},
|
|
248
|
+
// 初始化小区添加小区
|
|
249
|
+
async initareas (pconditon) {
|
|
250
|
+
if (this.is_pecial) {
|
|
251
|
+
pconditon = pconditon + ` and f_special='1' `
|
|
252
|
+
}
|
|
253
|
+
this.areaslist = []
|
|
254
|
+
let HttpReset = new HttpResetClass()
|
|
255
|
+
let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
256
|
+
data: {
|
|
257
|
+
items: '*',
|
|
258
|
+
tablename: 't_area',
|
|
259
|
+
orderitem: 'id',
|
|
260
|
+
condition: pconditon
|
|
261
|
+
}
|
|
262
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
263
|
+
let redata = []
|
|
264
|
+
req.data.forEach((row) => {
|
|
265
|
+
redata.push({
|
|
266
|
+
label: row.f_residential_area,
|
|
267
|
+
value: row.id,
|
|
268
|
+
data: row,
|
|
269
|
+
id: row.id
|
|
270
|
+
})
|
|
271
|
+
})
|
|
272
|
+
this.areaslist = redata
|
|
273
|
+
},
|
|
274
|
+
// 省/市/区变化
|
|
275
|
+
async pcdChange (val) {
|
|
276
|
+
console.log('省/市/区变化', val)
|
|
277
|
+
if (val) {
|
|
278
|
+
// 那就把[小区,街道]重新组织一下
|
|
279
|
+
await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
|
|
280
|
+
if (this.model.f_street_id) {
|
|
281
|
+
if (this.findbyid(this.streetslist, this.model.f_street_id)) {
|
|
282
|
+
let pcd_id = this.findbyid(this.streetslist, this.model.f_street_id).f_pcd_id
|
|
283
|
+
if (pcd_id != val) {
|
|
284
|
+
this.model.f_street_id = ''
|
|
285
|
+
}
|
|
286
|
+
} else {
|
|
287
|
+
this.model.f_street_id = ''
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// 那就把[小区,街道]重新组织一下
|
|
291
|
+
if (this.model.f_street_id) {
|
|
292
|
+
await this.initareas(` f_street_id ='${this.model.f_street_id}' `)
|
|
293
|
+
if (this.model.f_residential_area_id) {
|
|
294
|
+
if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
|
|
295
|
+
let pcd_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_pcd_id
|
|
296
|
+
if (pcd_id != val) {
|
|
297
|
+
this.model.f_residential_area_id = ''
|
|
298
|
+
}
|
|
299
|
+
} else {
|
|
300
|
+
this.model.f_residential_area_id = ''
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
this.$resetValidation()
|
|
307
|
+
},
|
|
308
|
+
// 小区变化
|
|
309
|
+
areaChange (val) {
|
|
310
|
+
console.log('小区变化', val, this.model)
|
|
311
|
+
if (val) {
|
|
312
|
+
let getArea = this.areaslist.filter((res) => {
|
|
313
|
+
return res.id = this.model.f_residential_area_id
|
|
314
|
+
})
|
|
315
|
+
if (getArea.length > 0) {
|
|
316
|
+
console.log('获取小区数据', getArea[0].data)
|
|
317
|
+
this.model.slice_area = [{name: getArea[0].data.f_slice_area, code: getArea[0].data.f_area_code}]
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
this.$resetValidation()
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
// 街道变化
|
|
324
|
+
async streetChange (val) {
|
|
325
|
+
console.log('街道变化', val)
|
|
326
|
+
if (this.streetslist[0]) {
|
|
327
|
+
var street = ''
|
|
328
|
+
this.streetslist.forEach((item) => {
|
|
329
|
+
if (item.id === val) {
|
|
330
|
+
street = item.label
|
|
331
|
+
}
|
|
332
|
+
})
|
|
333
|
+
this.model.f_address = street
|
|
334
|
+
}
|
|
335
|
+
if (val) {
|
|
336
|
+
// 那就把[小区]重新组织一下
|
|
337
|
+
await this.initareas(` f_street_id ='${val}' `)
|
|
338
|
+
if (this.model.f_residential_area_id) {
|
|
339
|
+
if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
|
|
340
|
+
let street_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_street_id
|
|
341
|
+
if (street_id != val) {
|
|
342
|
+
this.model.f_residential_area_id = ''
|
|
343
|
+
}
|
|
344
|
+
} else {
|
|
345
|
+
this.model.f_residential_area_id = ''
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
this.$resetValidation()
|
|
350
|
+
},
|
|
351
|
+
|
|
352
|
+
getorg (val) {
|
|
353
|
+
this.f_orgid = val[0]
|
|
354
|
+
},
|
|
355
|
+
|
|
356
|
+
initModel () {
|
|
357
|
+
if (this.row) {
|
|
358
|
+
this.cleardata()
|
|
359
|
+
this.model = Object.assign({}, this.model, this.row)
|
|
360
|
+
// 处理片区代码
|
|
361
|
+
this.model.slice_area = [{
|
|
362
|
+
name: this.model.f_slice_area,
|
|
363
|
+
code: this.model.f_area_code
|
|
364
|
+
}]
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
// 保存
|
|
368
|
+
async confirm () {
|
|
369
|
+
let res = await this.saveonedata()
|
|
370
|
+
console.log('地址保存数据', res)
|
|
371
|
+
if (!this.isSelect) {
|
|
372
|
+
this.model.id = res.data.id
|
|
373
|
+
// let condition = `id = '${res.data.id}'`
|
|
374
|
+
// let getAddress = await this.$resetpost('rs/sql/address_files', {data: {condition: condition,orderitem: 'f_create_date desc'}}, {resolveMsg:null, rejectMsg: '获取地址详情出错'})
|
|
375
|
+
// console.log('获取详细地址信息', getAddress)
|
|
376
|
+
this.$dispatch('confirmaddress', this.model)
|
|
377
|
+
}
|
|
378
|
+
this.cleardata()
|
|
379
|
+
this.$dispatch('confirm')
|
|
380
|
+
},
|
|
381
|
+
// 保存一户信息
|
|
382
|
+
async saveonedata () {
|
|
383
|
+
this.model.f_create_person = this.$login.f.name
|
|
384
|
+
this.model.f_filialeid = this.f_filialeids
|
|
385
|
+
this.model.f_operator = this.$login.f.name
|
|
386
|
+
this.model.f_operatorid = this.$login.f.id
|
|
387
|
+
this.model.f_orgid = this.$login.f.orgid
|
|
388
|
+
this.model.f_orgname = this.$login.f.orgs
|
|
389
|
+
this.model.f_depid = this.$login.f.depids
|
|
390
|
+
this.model.f_depname = this.$login.f.deps
|
|
391
|
+
if (this.model.slice_area) {
|
|
392
|
+
if (this.model.slice_area.length > 0) {
|
|
393
|
+
this.model.f_slice_area = this.model.slice_area[0].name
|
|
394
|
+
this.model.f_area_code = this.model.slice_area[0].code
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
if (this.is_pecial) {
|
|
398
|
+
// 非民用
|
|
399
|
+
this.model.f_special = '1'
|
|
400
|
+
this.model.f_building_suffix = ''
|
|
401
|
+
this.model.f_unit_suffix = ''
|
|
402
|
+
this.model.f_floor_suffix = ''
|
|
403
|
+
this.model.f_room_suffix = ''
|
|
404
|
+
this.model.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
|
|
405
|
+
this.model.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
|
|
406
|
+
} else {
|
|
407
|
+
// 民用
|
|
408
|
+
this.model.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
|
|
409
|
+
this.model.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
|
|
410
|
+
this.model.f_residential_area = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area
|
|
411
|
+
this.model.f_address = this.model.f_residential_area + (this.model.f_building ? this.model.f_building + this.model.f_building_suffix : '') + (this.model.f_unit ? this.model.f_unit + this.model.f_unit_suffix : '') + (this.model.f_floor ? this.model.f_floor + this.model.f_floor_suffix : '') + this.model.f_room + this.model.f_room_suffix
|
|
412
|
+
}
|
|
413
|
+
return await this.$resetpost('rs/logic/address_updateuseraddress', this.model)
|
|
414
|
+
},
|
|
415
|
+
cancel () {
|
|
416
|
+
if (!this.isSelect) {
|
|
417
|
+
this.$dispatch('confirmaddress', this.model)
|
|
418
|
+
}
|
|
419
|
+
this.cleardata()
|
|
420
|
+
this.$dispatch('cancel')
|
|
421
|
+
},
|
|
422
|
+
cleardata () {
|
|
423
|
+
this.model = {
|
|
424
|
+
f_pcd_id: '',
|
|
425
|
+
f_street_id: '',
|
|
426
|
+
f_residential_area_id: '',
|
|
427
|
+
f_pcd: '',
|
|
428
|
+
f_comments: '',
|
|
429
|
+
f_street: '',
|
|
430
|
+
f_residential_area: '',
|
|
431
|
+
f_slice_area: '',
|
|
432
|
+
f_building: '',
|
|
433
|
+
f_building_start: '',
|
|
434
|
+
f_building_end: '',
|
|
435
|
+
f_building_suffix: this.config.f_building_suffix,
|
|
436
|
+
f_unit: '',
|
|
437
|
+
f_unit_start: '',
|
|
438
|
+
f_unit_end: '',
|
|
439
|
+
f_unit_suffix: this.config.f_unit_suffix,
|
|
440
|
+
f_floor: '',
|
|
441
|
+
f_floor_start: '',
|
|
442
|
+
f_floor_end: '',
|
|
443
|
+
f_floor_suffix: this.config.f_floor_suffix,
|
|
444
|
+
f_room: '',
|
|
445
|
+
f_room_start: '',
|
|
446
|
+
f_room_end: '',
|
|
447
|
+
f_room_suffix: this.config.f_room_suffix,
|
|
448
|
+
// 详细地址
|
|
449
|
+
f_address: '',
|
|
450
|
+
// 单位名称
|
|
451
|
+
f_company: '',
|
|
452
|
+
// 单位地址
|
|
453
|
+
f_company_address: ''
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
// 根据名字找数据
|
|
458
|
+
findbyid (list, name) {
|
|
459
|
+
var result
|
|
460
|
+
list.forEach((row, n) => {
|
|
461
|
+
if (name == row.value) {
|
|
462
|
+
result = row.data
|
|
463
|
+
}
|
|
464
|
+
})
|
|
465
|
+
return result
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
watch: {
|
|
469
|
+
// 分公司变化
|
|
470
|
+
'f_filialeids' () {
|
|
471
|
+
if (this.model.f_filialeid) {
|
|
472
|
+
if (this.model.f_filialeid != this.f_filialeids) {
|
|
473
|
+
this.$dispatch('cancel')
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
this.cleardata()
|
|
477
|
+
this.initdata()
|
|
478
|
+
},
|
|
479
|
+
'row' () {
|
|
480
|
+
this.initdata()
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
</script>
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
import Vue from 'vue'
|
|
4
4
|
|
|
5
5
|
export default function () {
|
|
6
|
+
Vue.component('file-user-address', (resolve) => { require(['./FileUserAddress'], resolve) })
|
|
7
|
+
Vue.component('file-user-address-new', (resolve) => { require(['./components/FilesManageNew/FileUserAddress'], resolve) })
|
|
8
|
+
|
|
6
9
|
// 当前选择用户的表具基本信息
|
|
7
10
|
Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
|
|
8
11
|
// 表具设备信息
|