apply-clients 3.2.37 → 3.2.38-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/App.vue +20 -20
- package/src/components/app_apply/Process/Processes/AppInstallationDetails.vue +505 -456
- package/src/components/product/Process/Processes/InstallationDetails.vue +31 -5
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +10 -0
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<app-base class="bg">
|
|
4
|
-
<div class='flex'>
|
|
5
|
-
<article>
|
|
6
|
-
<route :comp="{name: 'login'}"></route>
|
|
7
|
-
</article>
|
|
8
|
-
</div>
|
|
9
|
-
</app-base>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<route :comp="{name: 'login'}"></route>
|
|
7
|
+
</article>
|
|
8
|
+
</div>
|
|
9
|
+
</app-base>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
@@ -1,456 +1,505 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<list :model="model" partial='list'>
|
|
4
|
-
<div partial class="auto app-text panel">
|
|
5
|
-
<div class="panel-body panel-self">
|
|
6
|
-
<div class="row">
|
|
7
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户编号</b></p>
|
|
8
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_userinfo_code }}</p>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="row">
|
|
11
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户名称</b></p>
|
|
12
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_name }}</p>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="row">
|
|
15
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户电话</b></p>
|
|
16
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_phone }}</p>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
|
|
19
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">单价</b></p>
|
|
20
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ $parent.$parent.selectdata.f_price }}</p>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
|
|
23
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">累计缴费</b></p>
|
|
24
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_cumulative_payment_money }}</p>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="row">
|
|
27
|
-
<p class="col-xs-3 text-left font"><b class="control-label-justify">地址信息</b></p>
|
|
28
|
-
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_address }}</p>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="row text-right">
|
|
31
|
-
<button class="btn btn-info"
|
|
32
|
-
:disabled="(row.f_cumulative_payment_money < $parent.$parent.selectdata.f_price && ($parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建')) || $parent.$parent.mark === 1"
|
|
33
|
-
@click.prevent="$parent.$parent.showUserFileModal(row)">
|
|
34
|
-
{{row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
35
|
-
</button>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
</list>
|
|
40
|
-
|
|
41
|
-
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
42
|
-
<header slot="modal-header" class="modal-header">
|
|
43
|
-
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
44
|
-
<h4 class="modal-title">安装明细</h4>
|
|
45
|
-
</header>
|
|
46
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
47
|
-
<div class="form-group row vertical-center">
|
|
48
|
-
<label class="col-xs-4 control-label">地址信息:</label>
|
|
49
|
-
<div class="col-xs-8">
|
|
50
|
-
<input class="form-control input_view" style=""
|
|
51
|
-
v-model="useradders.f_address"
|
|
52
|
-
:value="useradders.f_address"
|
|
53
|
-
:readonly="true"/>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-xs-12 panel panel-info">
|
|
58
|
-
<div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
|
|
59
|
-
<div class="form-group row vertical-center" :class="item.f_gasbrand_id ? '':'has-error'">
|
|
60
|
-
<label class="col-xs-4 control-label">气表品牌:</label>
|
|
61
|
-
<div class="col-xs-8">
|
|
62
|
-
<input-select
|
|
63
|
-
class="select select_list"
|
|
64
|
-
:value.sync="item.gasbrand"
|
|
65
|
-
v-model="item.gasbrand"
|
|
66
|
-
:options="meterbrands"
|
|
67
|
-
@change="gasbrandChange(i)"
|
|
68
|
-
:valueSingle="true"></input-select>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="form-group row vertical-center" :class="item.f_gasmodel_id ? '':'has-error'">
|
|
72
|
-
<label class="col-xs-4 control-label">气表型号:</label>
|
|
73
|
-
<div class="col-xs-8">
|
|
74
|
-
<input-select
|
|
75
|
-
class="select select_list"
|
|
76
|
-
:value.sync="item.gasmodel"
|
|
77
|
-
v-model="item.gasmodel"
|
|
78
|
-
:options="item.gasbrand.gasmodel"
|
|
79
|
-
@change="gasmodelChange(i)"
|
|
80
|
-
:valueSingle="true"></input-select>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
<div class="form-group row vertical-center" :class="item.f_meternumber ? '':'has-error'">
|
|
84
|
-
<label class="col-xs-4 control-label">表  号:</label>
|
|
85
|
-
<div class="col-xs-8">
|
|
86
|
-
<input class="form-control input_view" style=""
|
|
87
|
-
placeholder="表号"
|
|
88
|
-
v-model="item.f_meternumber"
|
|
89
|
-
:value="item.f_meternumber"
|
|
90
|
-
@change="meternumberValidate(i)"
|
|
91
|
-
:readonly="false"/>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
<div class="form-group row vertical-center">
|
|
95
|
-
<label class="col-xs-4 control-label ">表 封 号:</label>
|
|
96
|
-
<div class="col-xs-8">
|
|
97
|
-
<input class="form-control input_view" style=""
|
|
98
|
-
placeholder="表封号"
|
|
99
|
-
v-model="item.f_metertitles"
|
|
100
|
-
:value="item.f_metertitles"
|
|
101
|
-
:readonly="false"/>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="form-group row vertical-center">
|
|
105
|
-
<label class="col-xs-4 control-label"
|
|
106
|
-
<div class="col-xs-8">
|
|
107
|
-
<input class="form-control input_view" style=""
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
let
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (this.userinfo.userfiles
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
let
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
for (const item of this.
|
|
366
|
-
if (item.
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
this.
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
.
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
.
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
.
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
456
|
-
</
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<list :model="model" partial='list'>
|
|
4
|
+
<div partial class="auto app-text panel">
|
|
5
|
+
<div class="panel-body panel-self">
|
|
6
|
+
<div class="row">
|
|
7
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户编号</b></p>
|
|
8
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_userinfo_code }}</p>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="row">
|
|
11
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户名称</b></p>
|
|
12
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_name }}</p>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="row">
|
|
15
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">客户电话</b></p>
|
|
16
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_user_phone }}</p>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
|
|
19
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">单价</b></p>
|
|
20
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ $parent.$parent.selectdata.f_price }}</p>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="row" v-if="$parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建'">
|
|
23
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">累计缴费</b></p>
|
|
24
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_cumulative_payment_money }}</p>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="row">
|
|
27
|
+
<p class="col-xs-3 text-left font"><b class="control-label-justify">地址信息</b></p>
|
|
28
|
+
<p class="col-xs-8 col-xs-offset-1 text-left input-font">{{ row.f_address }}</p>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="row text-right">
|
|
31
|
+
<button class="btn btn-info"
|
|
32
|
+
:disabled="(row.f_cumulative_payment_money < $parent.$parent.selectdata.f_price && ($parent.$parent.selectdata.f_apply_type === '散户集体报建' || $parent.$parent.selectdata.f_apply_type === '煤改气报建')) || $parent.$parent.mark === 1"
|
|
33
|
+
@click.prevent="$parent.$parent.showUserFileModal(row)">
|
|
34
|
+
{{row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
35
|
+
</button>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</list>
|
|
40
|
+
|
|
41
|
+
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
42
|
+
<header slot="modal-header" class="modal-header">
|
|
43
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
44
|
+
<h4 class="modal-title">安装明细</h4>
|
|
45
|
+
</header>
|
|
46
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
47
|
+
<div class="form-group row vertical-center">
|
|
48
|
+
<label class="col-xs-4 control-label">地址信息:</label>
|
|
49
|
+
<div class="col-xs-8">
|
|
50
|
+
<input class="form-control input_view" style=""
|
|
51
|
+
v-model="useradders.f_address"
|
|
52
|
+
:value="useradders.f_address"
|
|
53
|
+
:readonly="true"/>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-xs-12 panel panel-info">
|
|
58
|
+
<div class="panel-heading head" style="background-color: #e8f4ff;margin-bottom: 10px">表具{{$index+1}}信息</div>
|
|
59
|
+
<div class="form-group row vertical-center" :class="item.f_gasbrand_id ? '':'has-error'">
|
|
60
|
+
<label class="col-xs-4 control-label">气表品牌:</label>
|
|
61
|
+
<div class="col-xs-8">
|
|
62
|
+
<input-select
|
|
63
|
+
class="select select_list"
|
|
64
|
+
:value.sync="item.gasbrand"
|
|
65
|
+
v-model="item.gasbrand"
|
|
66
|
+
:options="meterbrands"
|
|
67
|
+
@change="gasbrandChange(i)"
|
|
68
|
+
:valueSingle="true"></input-select>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="form-group row vertical-center" :class="item.f_gasmodel_id ? '':'has-error'">
|
|
72
|
+
<label class="col-xs-4 control-label">气表型号:</label>
|
|
73
|
+
<div class="col-xs-8">
|
|
74
|
+
<input-select
|
|
75
|
+
class="select select_list"
|
|
76
|
+
:value.sync="item.gasmodel"
|
|
77
|
+
v-model="item.gasmodel"
|
|
78
|
+
:options="item.gasbrand.gasmodel"
|
|
79
|
+
@change="gasmodelChange(i)"
|
|
80
|
+
:valueSingle="true"></input-select>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="form-group row vertical-center" :class="item.f_meternumber ? '':'has-error'">
|
|
84
|
+
<label class="col-xs-4 control-label">表  号:</label>
|
|
85
|
+
<div class="col-xs-8">
|
|
86
|
+
<input class="form-control input_view" style=""
|
|
87
|
+
placeholder="表号"
|
|
88
|
+
v-model="item.f_meternumber"
|
|
89
|
+
:value="item.f_meternumber"
|
|
90
|
+
@change="meternumberValidate(i)"
|
|
91
|
+
:readonly="false"/>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="form-group row vertical-center" v-if="selectdata.f_apply_type !== '散户报建' && selectdata.f_apply_type !== '开发商集体报建' ">
|
|
95
|
+
<label class="col-xs-4 control-label ">表 封 号:</label>
|
|
96
|
+
<div class="col-xs-8">
|
|
97
|
+
<input class="form-control input_view" style=""
|
|
98
|
+
placeholder="表封号"
|
|
99
|
+
v-model="item.f_metertitles"
|
|
100
|
+
:value="item.f_metertitles"
|
|
101
|
+
:readonly="false"/>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="form-group row vertical-center" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
|
|
105
|
+
<label class="col-xs-4 control-label ">表前封号:</label>
|
|
106
|
+
<div class="col-xs-8">
|
|
107
|
+
<input class="form-control input_view" style=""
|
|
108
|
+
placeholder="表前封号"
|
|
109
|
+
v-model="item.f_before_metertitles"
|
|
110
|
+
:value="item.f_before_metertitles"
|
|
111
|
+
:readonly="false"/>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="form-group row vertical-center" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
|
|
115
|
+
<label class="col-xs-4 control-label ">表后封号:</label>
|
|
116
|
+
<div class="col-xs-8">
|
|
117
|
+
<input class="form-control input_view" style=""
|
|
118
|
+
placeholder="表后封号"
|
|
119
|
+
v-model="item.item.f_after_metertitles"
|
|
120
|
+
:value="item.item.f_after_metertitles"
|
|
121
|
+
:readonly="false"/>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="form-group row vertical-center">
|
|
125
|
+
<label class="col-xs-4 control-label">表 读 数:</label>
|
|
126
|
+
<div class="col-xs-8">
|
|
127
|
+
<input class="form-control input_view" style=""
|
|
128
|
+
type="number"
|
|
129
|
+
placeholder="表读数"
|
|
130
|
+
v-model="item.f_meter_base"
|
|
131
|
+
:value="item.f_meter_base"
|
|
132
|
+
:readonly="false"/>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
<div class="form-group row vertical-center">
|
|
136
|
+
<label class="col-xs-4 control-label">初始底数:</label>
|
|
137
|
+
<div class="col-xs-8">
|
|
138
|
+
<input class="form-control input_view" style=""
|
|
139
|
+
type="number"
|
|
140
|
+
v-model="item.f_initial_base"
|
|
141
|
+
:value="item.f_initial_base"
|
|
142
|
+
placeholder="初始底数"
|
|
143
|
+
:readonly="false"/>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
<div class="form-group row vertical-center">
|
|
147
|
+
<label class="col-xs-4 control-label">表  向:</label>
|
|
148
|
+
<div class="col-xs-8">
|
|
149
|
+
<input-select
|
|
150
|
+
class="select select_list"
|
|
151
|
+
:value.sync="item.f_aroundmeter"
|
|
152
|
+
v-model="item.f_aroundmeter"
|
|
153
|
+
:options="aroundmeters"
|
|
154
|
+
:valueSingle="true"></input-select>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="form-group row vertical-center">
|
|
158
|
+
<label class="col-xs-4 control-label">安装位置:</label>
|
|
159
|
+
<div class="col-xs-8">
|
|
160
|
+
<input-select
|
|
161
|
+
class="select select_list"
|
|
162
|
+
:value.sync="item.f_position"
|
|
163
|
+
v-model="item.f_position"
|
|
164
|
+
:options="positions"
|
|
165
|
+
:valueSingle="true"></input-select>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="form-group row vertical-center">
|
|
169
|
+
<label class="col-xs-4 control-label">安 装 人:</label>
|
|
170
|
+
<div class="col-xs-8">
|
|
171
|
+
<input-select
|
|
172
|
+
class="select select_list"
|
|
173
|
+
:value.sync="item.f_install_person"
|
|
174
|
+
v-model="item.f_install_person"
|
|
175
|
+
:options="installperson"
|
|
176
|
+
:valueSingle="true"></input-select>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="form-group row vertical-center">
|
|
180
|
+
<label class="col-xs-4 control-label">安装日期:</label>
|
|
181
|
+
<div class="col-xs-8">
|
|
182
|
+
<datepicker
|
|
183
|
+
placeholder="安装日期"
|
|
184
|
+
:value.sync="item.f_install_date"
|
|
185
|
+
v-model="item.f_install_date"
|
|
186
|
+
format="yyyy-MM-dd HH:mm:ss"
|
|
187
|
+
:show-reset-button="reset">
|
|
188
|
+
</datepicker>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
</article>
|
|
194
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
195
|
+
<!-- 去除一户多表 -->
|
|
196
|
+
<button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
|
|
197
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
|
|
198
|
+
</footer>
|
|
199
|
+
</modal>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
</template>
|
|
203
|
+
<script>
|
|
204
|
+
import Vue from 'vue'
|
|
205
|
+
import {PagedList} from 'vue-client'
|
|
206
|
+
import {HttpResetClass} from 'vue-client'
|
|
207
|
+
import {isEmpty} from '../../../Util'
|
|
208
|
+
|
|
209
|
+
export default {
|
|
210
|
+
title: '安装明细',
|
|
211
|
+
props: {
|
|
212
|
+
selectdata: {
|
|
213
|
+
type: Object
|
|
214
|
+
},
|
|
215
|
+
mark: {
|
|
216
|
+
type: Number,
|
|
217
|
+
default: 0
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
data () {
|
|
221
|
+
return {
|
|
222
|
+
showUserFile: false,
|
|
223
|
+
model: {
|
|
224
|
+
rows: null
|
|
225
|
+
},
|
|
226
|
+
meterbrands: [], // 气表品牌
|
|
227
|
+
useradders: null,
|
|
228
|
+
userinfo: {}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
ready () {
|
|
232
|
+
this.search()
|
|
233
|
+
this.getMeterbrands()
|
|
234
|
+
this.notInstalled()
|
|
235
|
+
},
|
|
236
|
+
methods: {
|
|
237
|
+
async notInstalled () {
|
|
238
|
+
let http = new HttpResetClass()
|
|
239
|
+
let data = {
|
|
240
|
+
condition: null
|
|
241
|
+
}
|
|
242
|
+
if (this.selectdata.f_apply_type === '开发商集体报建') {
|
|
243
|
+
data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state in ('正常','停用')`
|
|
244
|
+
} else {
|
|
245
|
+
data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '无效'`
|
|
246
|
+
}
|
|
247
|
+
let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
248
|
+
for (const item of this.selectdata.fields) {
|
|
249
|
+
if (item.label === '已安装户数') {
|
|
250
|
+
item.value = res.data[0].num
|
|
251
|
+
}
|
|
252
|
+
if (item.label === '未安装户数') {
|
|
253
|
+
item.value = this.selectdata.f_apply_count - res.data[0].num
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
// 保存档案
|
|
258
|
+
async saveUserFile() {
|
|
259
|
+
if (this.userinfo.userfiles.length > 1) {
|
|
260
|
+
this.$showMessage('该地址下已有表具信息,暂不支持一户多表!!!')
|
|
261
|
+
return
|
|
262
|
+
}
|
|
263
|
+
// 检查必填项
|
|
264
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
265
|
+
let userfile = this.userinfo.userfiles[i]
|
|
266
|
+
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
267
|
+
this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
|
|
268
|
+
return
|
|
269
|
+
}
|
|
270
|
+
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
271
|
+
this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
|
|
272
|
+
return
|
|
273
|
+
}
|
|
274
|
+
if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
275
|
+
this.$showMessage(`表具${i+1}表号没有填写!!!`)
|
|
276
|
+
return
|
|
277
|
+
}
|
|
278
|
+
if (userfile.f_before_metertitles=== null || userfile.f_before_metertitles=== '') {
|
|
279
|
+
this.$showAlert(`表具${i+1}表前封号没有填写!!!`, 'warning', 3000)
|
|
280
|
+
return
|
|
281
|
+
}
|
|
282
|
+
if (userfile.f_after_metertitles=== null || userfile.f_after_metertitles=== '') {
|
|
283
|
+
this.$showAlert(`表具${i+1}表后封号没有填写!!!`, 'warning', 3000)
|
|
284
|
+
return
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
let data = {
|
|
288
|
+
// user: {"parentname":"客服中心","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"1552","name":"街道管理","templatename":"functionedit","id":"1551","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.17.21.82.1551","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"149","name":"小区管理","templatename":"functionedit","id":"148","position":"4","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.17.21.82.148","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"155","name":"地址管理","templatename":"functionedit","id":"154","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.17.21.82.154","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"83661","name":"档案信息","templatename":"functionedit","id":"83660","position":"10","fullname":"资源管理.功能模块.客服系统.档案管理.档案信息","fullid":"3.17.21.82.83660","tablename":"t_function","showmodel":"[\"右边\"]"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"82","f_parentname":"档案管理","children":[],"selfid":"397738","name":"预备户建档","templatename":"functionedit","id":"397737","position":"12","fullname":"资源管理.功能模块.客服系统.档案管理.预备户建档","fullid":"3.17.21.82.397737","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"user-files","hasright":true,"resourcetype":"function","parentid":"82","children":[],"selfid":"3","name":"用户档案","templatename":"functionedit","id":"2","position":"17","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.17.21.82.2","tablename":"t_function"}],"selfid":"83","name":"档案管理","templatename":"functionedit","id":"82","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.17.21.82","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/售气收费.png","hasright":true,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"charge-manage","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"173","name":"收费(综合)","templatename":"functionedit","id":"172","position":"1","fullname":"资源管理.功能模块.客服系统.售气收费.收费(综合)","fullid":"3.17.21.88.172","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"charge-manage-new","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"533134","name":"新版收费","templatename":"functionedit","id":"533133","position":"2","fullname":"资源管理.功能模块.客服系统.售气收费.新版收费","fullid":"3.17.21.88.533133","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"售气收费","link":"insurance-manage","hasright":true,"resourcetype":"function","parentid":"88","f_parentname":"售气收费","children":[],"selfid":"586351","name":"保险收费","templatename":"functionedit","id":"586350","position":"3","fullname":"资源管理.功能模块.客服系统.售气收费.保险收费","fullid":"3.17.21.88.586350","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"售气收费","link":"meter-charge","hasright":true,"resourcetype":"function","parentid":"88","children":[],"selfid":"255341","name":"收费","templatename":"functionedit","id":"255340","position":"4","fullname":"资源管理.功能模块.客服系统.售气收费.收费","fullid":"3.17.21.88.255340","tablename":"t_function"}],"selfid":"89","name":"售气收费","templatename":"functionedit","id":"88","position":"3","fullname":"资源管理.功能模块.客服系统.售气收费","fullid":"3.17.21.88","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/综合查询.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"综合业务","link":"gas-brand-manage","hasright":true,"resourcetype":"function","parentid":"94","f_parentname":"综合业务","children":[],"selfid":"185","name":"气表管理","templatename":"functionedit","id":"184","position":"2","fullname":"资源管理.功能模块.客服系统.综合业务.气表管理","fullid":"3.17.21.94.184","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"综合业务","link":"param-manage","hasright":true,"resourcetype":"function","parentid":"94","f_parentname":"综合业务","children":[],"selfid":"191","name":"参数管理","templatename":"functionedit","id":"190","position":"3","fullname":"资源管理.功能模块.客服系统.综合业务.参数管理","fullid":"3.17.21.94.190","tablename":"t_function","showmodel":"右边"}],"selfid":"95","name":"综合业务","templatename":"functionedit","id":"94","position":"4","fullname":"资源管理.功能模块.客服系统.综合业务","fullid":"3.17.21.94","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":false,"resourcetype":"function","parentid":"21","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319029","name":"报建业务","templatename":"functionedit","id":"319028","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.报建业务","fullid":"3.17.21.195729.319028","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319035","name":"报建流程","templatename":"functionedit","id":"319034","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.报建流程","fullid":"3.17.21.195729.319034","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319041","name":"流程监控","templatename":"functionedit","id":"319040","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.17.21.195729.319040","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"319047","name":"收费明细","templatename":"functionedit","id":"319046","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.17.21.195729.319046","tablename":"t_function","showmodel":"右边"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"11","parentname":"报建业务","link":"apply-charge-report","hasright":true,"resourcetype":"function","parentid":"195729","f_parentname":"报建业务","children":[],"selfid":"198758","name":"收费报表","templatename":"functionedit","id":"198757","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.收费报表","fullid":"3.17.21.195729.198757","tablename":"t_function"}],"selfid":"195730","name":"报建业务","templatename":"functionedit","id":"195729","position":"21","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.17.21.195729","tablename":"t_function","showmodel":"右边"}],"qrcode":"/rs/user/getQRcode?QRCODE=8888","rolesnames":"营业厅报装,市场部报装,工程部报装,财务部报装,客服中心报装","roles":"99232,174614,174620,174626,174632","f_sex":"男","f_icon":"tree_user","fullnames":"武安明星.客服中心.bjcs","dir":"mingxing","accesstime":"1626420492744","userid":"8888","parentid":"174608","fullids":"559465.174608.17713.","number":"55665","selfid":"17714","templatename":"useredit","logindate":"2021-03-09 11:17:36.727","id":"17713","state":"在职","tablename":"t_user","deptype":"部门","depids":"174608","loginid":"11","imgid":null,"initpassword":"1","rolestr":"营业厅报装,市场部报装,工程部报装,财务部报装,客服中心报装","deps":"客服中心","loginnum":"0","resourcetype":"user","orgid":"559465","f_department_name":"客服中心","ename":"bjcs","deleted":"false","entitytype":"t_user","loginip":"192.168.120.141","name":"bjcs","position":"1","orgs":"武安明星","f_role_name":"营业厅报装 市场部报装 工程部报装 财务部报装 客服中心报装 ","f_allArea":[],"f_gasman":[],"lics":[]},
|
|
289
|
+
user: Vue.user,
|
|
290
|
+
useradders: this.useradders,
|
|
291
|
+
userinfo: this.userinfo,
|
|
292
|
+
selectdata: this.selectdata
|
|
293
|
+
}
|
|
294
|
+
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/addInstallationDetails`, {data:data}, {
|
|
295
|
+
resolveMsg: null,
|
|
296
|
+
rejectMsg: '表具添加失败!!!'
|
|
297
|
+
})
|
|
298
|
+
|
|
299
|
+
this.closeUserFile()
|
|
300
|
+
},
|
|
301
|
+
// 检查表号是否存在
|
|
302
|
+
async meternumberValidate(i) {
|
|
303
|
+
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
304
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
305
|
+
this.$showMessage('请先选择气表品牌!!!')
|
|
306
|
+
return
|
|
307
|
+
}
|
|
308
|
+
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
309
|
+
let data = {
|
|
310
|
+
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
311
|
+
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
312
|
+
}
|
|
313
|
+
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
314
|
+
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
315
|
+
}
|
|
316
|
+
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/meterbrandsNumberValidate`, {data:data}, {
|
|
317
|
+
resolveMsg: null,
|
|
318
|
+
rejectMsg: '表号验证失败!!'
|
|
319
|
+
})
|
|
320
|
+
if (res.data) {
|
|
321
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
322
|
+
this.$showMessage('表号已存在!!')
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
// 选择气表型号
|
|
327
|
+
gasmodelChange(i) {
|
|
328
|
+
if (this.userinfo.userfiles[i].gasmodel) {
|
|
329
|
+
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
// 选择气表品牌
|
|
333
|
+
gasbrandChange(i) {
|
|
334
|
+
// 清空已保存的气表型号
|
|
335
|
+
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
336
|
+
this.userinfo.userfiles[i].gasmodel = null
|
|
337
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
338
|
+
// 气表品牌id
|
|
339
|
+
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
340
|
+
// 气表分类
|
|
341
|
+
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
// 追加表具
|
|
345
|
+
addUserFile() {
|
|
346
|
+
this.userinfo.userfiles.push({})
|
|
347
|
+
},
|
|
348
|
+
// 打开安装明细
|
|
349
|
+
async showUserFileModal (row) {
|
|
350
|
+
this.useradders = row
|
|
351
|
+
|
|
352
|
+
let http = new HttpResetClass()
|
|
353
|
+
let data = {
|
|
354
|
+
condition: `f_userinfo_id='${row.f_userinfo_id}'`
|
|
355
|
+
}
|
|
356
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfoAndUserfiles`, {data:data}, {
|
|
357
|
+
resolveMsg: null,
|
|
358
|
+
rejectMsg: null
|
|
359
|
+
})
|
|
360
|
+
|
|
361
|
+
this.userinfo = res.data
|
|
362
|
+
|
|
363
|
+
// 已有表具的 气表信息补充
|
|
364
|
+
for (const userfile of this.userinfo.userfiles) {
|
|
365
|
+
for (const item of this.meterbrands) {
|
|
366
|
+
if (item.value.id === userfile.f_gasbrand_id) {
|
|
367
|
+
userfile.gasbrand = item.value
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
if (userfile.gasbrand) {
|
|
371
|
+
for (const item of userfile.gasbrand.gasmodel) {
|
|
372
|
+
if (item.value.id === userfile.f_gasmodel_id) {
|
|
373
|
+
userfile.gasmodel = item.value
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
this.showUserFile = true
|
|
380
|
+
},
|
|
381
|
+
// 获取气表品牌
|
|
382
|
+
async getMeterbrands() {
|
|
383
|
+
let http = new HttpResetClass()
|
|
384
|
+
let data = {
|
|
385
|
+
f_filialeid: Vue.user.orgid
|
|
386
|
+
// f_filialeid: '559465'
|
|
387
|
+
}
|
|
388
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterbrands`, {data:data}, {
|
|
389
|
+
resolveMsg: null,
|
|
390
|
+
rejectMsg: null
|
|
391
|
+
})
|
|
392
|
+
this.meterbrands = res.data
|
|
393
|
+
},
|
|
394
|
+
// 查询
|
|
395
|
+
async search () {
|
|
396
|
+
let http = new HttpResetClass()
|
|
397
|
+
let data = {
|
|
398
|
+
condition: " 1=1",
|
|
399
|
+
f_process_id: this.selectdata.f_process_id
|
|
400
|
+
}
|
|
401
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndUserinfoAndUserfilesAmount`, {data:data}, {
|
|
402
|
+
resolveMsg: null,
|
|
403
|
+
rejectMsg: null
|
|
404
|
+
})
|
|
405
|
+
this.model.rows = res.data
|
|
406
|
+
if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建' || this.selectdata.f_apply_type === '煤改气报建') {
|
|
407
|
+
let f_installed_households = 0
|
|
408
|
+
for (const item of res.data) {
|
|
409
|
+
if (item.f_userfiles_num > 0) {
|
|
410
|
+
f_installed_households++
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
let f_uninstalled_households = this.selectdata.f_apply_count - f_installed_households
|
|
414
|
+
for (const item of this.selectdata.fields) {
|
|
415
|
+
if (item.label === '已安装户数') {
|
|
416
|
+
item.value = f_installed_households
|
|
417
|
+
}
|
|
418
|
+
if (item.label === '未安装户数') {
|
|
419
|
+
item.value = f_uninstalled_households
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
// 关闭安装明细
|
|
425
|
+
closeUserFile() {
|
|
426
|
+
this.showUserFile = false
|
|
427
|
+
this.useradders = null
|
|
428
|
+
this.userinfo = null
|
|
429
|
+
this.search()
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
events: {
|
|
433
|
+
},
|
|
434
|
+
computed: {
|
|
435
|
+
// 安装人
|
|
436
|
+
installperson() {
|
|
437
|
+
return this.$login.f.f_installman.map(item => {
|
|
438
|
+
return {
|
|
439
|
+
label: item.name,
|
|
440
|
+
value: item.name
|
|
441
|
+
}
|
|
442
|
+
})
|
|
443
|
+
},
|
|
444
|
+
// 表向
|
|
445
|
+
aroundmeters() {
|
|
446
|
+
return this.$appdata.getParam('左右表')
|
|
447
|
+
},
|
|
448
|
+
// 安装位置
|
|
449
|
+
positions() {
|
|
450
|
+
return this.$appdata.getParam('安装位置')
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
watch: {
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
</script>
|
|
457
|
+
<style scoped>
|
|
458
|
+
label {
|
|
459
|
+
margin: 0px;
|
|
460
|
+
}
|
|
461
|
+
.vertical-center {
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
text-align: center;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.control-label-justify {
|
|
468
|
+
display: inline-block;
|
|
469
|
+
vertical-align: top;
|
|
470
|
+
width: 100%;
|
|
471
|
+
text-align: justify;
|
|
472
|
+
font-family: PingFang-SC-Bold;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.control-label-justify::after {
|
|
476
|
+
content: "";
|
|
477
|
+
display: inline-block;
|
|
478
|
+
width: 100%;
|
|
479
|
+
overflow: hidden;
|
|
480
|
+
height: 0;
|
|
481
|
+
}
|
|
482
|
+
.app-text {
|
|
483
|
+
font-size: 12px;
|
|
484
|
+
}
|
|
485
|
+
.panel-self{
|
|
486
|
+
border-radius: 10px;
|
|
487
|
+
border:1px solid #499EDF;
|
|
488
|
+
background-color: #F8F8F8;
|
|
489
|
+
}
|
|
490
|
+
.font{
|
|
491
|
+
font: 15px PingFang-SC-Medium;
|
|
492
|
+
color: #666666;
|
|
493
|
+
}
|
|
494
|
+
.input-font{
|
|
495
|
+
font: 15px PingFang-SC-Medium;
|
|
496
|
+
color: #333333;
|
|
497
|
+
}
|
|
498
|
+
/*清除model中的浮动*/
|
|
499
|
+
.clearfix:after,.clearfix:before{
|
|
500
|
+
display: table;
|
|
501
|
+
}
|
|
502
|
+
.clearfix:after{
|
|
503
|
+
clear: both;
|
|
504
|
+
}
|
|
505
|
+
</style>
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
:readonly="mark===1"/>
|
|
152
152
|
</div>
|
|
153
153
|
</div>
|
|
154
|
-
<div class="form-group col-sm-6">
|
|
154
|
+
<div class="form-group col-sm-6" v-if="selectdata.f_apply_type !== '散户报建' && selectdata.f_apply_type !== '开发商集体报建' ">
|
|
155
155
|
<label class="col-sm-4 control-label">表封号:</label>
|
|
156
156
|
<div class="col-sm-8">
|
|
157
157
|
<input class="form-control input_view" style=""
|
|
@@ -162,6 +162,28 @@
|
|
|
162
162
|
:readonly="mark===1"/>
|
|
163
163
|
</div>
|
|
164
164
|
</div>
|
|
165
|
+
<div class="form-group col-sm-6" :class="item.f_before_metertitles? '':'has-error'" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
|
|
166
|
+
<label class="col-sm-4 control-label">表前封号:</label>
|
|
167
|
+
<div class="col-sm-8">
|
|
168
|
+
<input class="form-control input_view" style=""
|
|
169
|
+
placeholder="表前封号"
|
|
170
|
+
v-model="item.f_before_metertitles"
|
|
171
|
+
:value="item.f_before_metertitles"
|
|
172
|
+
:disable="mark===1"
|
|
173
|
+
:readonly="mark===1"/>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="form-group col-sm-6" :class="item.f_after_metertitles? '':'has-error'" v-if="selectdata.f_apply_type === '散户报建' || selectdata.f_apply_type === '开发商集体报建' ">
|
|
177
|
+
<label class="col-sm-4 control-label">表后封号:</label>
|
|
178
|
+
<div class="col-sm-8">
|
|
179
|
+
<input class="form-control input_view" style=""
|
|
180
|
+
placeholder="表后封号"
|
|
181
|
+
v-model="item.f_after_metertitles"
|
|
182
|
+
:value="item.f_after_metertitles"
|
|
183
|
+
:disable="mark===1"
|
|
184
|
+
:readonly="mark===1"/>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
165
187
|
<div class="form-group col-sm-6">
|
|
166
188
|
<label class="col-sm-4 control-label">表读数:</label>
|
|
167
189
|
<div class="col-sm-8">
|
|
@@ -288,7 +310,7 @@
|
|
|
288
310
|
condition: null
|
|
289
311
|
}
|
|
290
312
|
if (this.selectdata.f_apply_type === '开发商集体报建') {
|
|
291
|
-
data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}'`
|
|
313
|
+
data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state in ('正常','停用')`
|
|
292
314
|
} else {
|
|
293
315
|
data.condition = `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '无效'`
|
|
294
316
|
}
|
|
@@ -322,8 +344,12 @@
|
|
|
322
344
|
this.$showAlert(`表具${i+1}气表型号没有选择!!!`, 'warning', 3000)
|
|
323
345
|
return
|
|
324
346
|
}
|
|
325
|
-
if (userfile.
|
|
326
|
-
this.$showAlert(`表具${i+1}
|
|
347
|
+
if (userfile.f_before_metertitles=== null || userfile.f_before_metertitles=== '') {
|
|
348
|
+
this.$showAlert(`表具${i+1}表前封号没有填写!!!`, 'warning', 3000)
|
|
349
|
+
return
|
|
350
|
+
}
|
|
351
|
+
if (userfile.f_after_metertitles=== null || userfile.f_after_metertitles=== '') {
|
|
352
|
+
this.$showAlert(`表具${i+1}表后封号没有填写!!!`, 'warning', 3000)
|
|
327
353
|
return
|
|
328
354
|
}
|
|
329
355
|
}
|
|
@@ -458,7 +484,7 @@
|
|
|
458
484
|
user: this.$login.f
|
|
459
485
|
}
|
|
460
486
|
let url = null
|
|
461
|
-
if (this.selectdata.f_apply_type === '开发商集体报建') {
|
|
487
|
+
if (this.selectdata.f_apply_type === '开发商集体报建' || this.selectdata.f_apply_type === '散户集体报建') {
|
|
462
488
|
url = 'rs/logic/importAddressUserFiles'
|
|
463
489
|
} else {
|
|
464
490
|
url = 'rs/logic/importAddInstallationDetails'
|
|
@@ -183,6 +183,16 @@ export default {
|
|
|
183
183
|
computed: {
|
|
184
184
|
},
|
|
185
185
|
watch: {
|
|
186
|
+
'model.count': {
|
|
187
|
+
handler: function () {
|
|
188
|
+
if (this.model.count != this.selectdata.f_apply_count) {
|
|
189
|
+
console.log(this.model.count)
|
|
190
|
+
console.log(this.selectdata.f_apply_count)
|
|
191
|
+
console.log(this.model.count !== this.selectdata.f_apply_count)
|
|
192
|
+
this.selectdata.f_apply_count = this.model.count
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
186
196
|
}
|
|
187
197
|
}
|
|
188
198
|
</script>
|