apply-clients 3.5.6-2 → 3.5.6-21
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 +4 -4
- package/package.json +1 -1
- package/src/filiale/dingcheng/android/AppInstallationDetails.vue +477 -478
- package/src/filiale/dingcheng/pc/InstallationDetails.vue +607 -608
- package/src/filiale/fugou/android/AppDevicesManagement.vue +516 -521
- package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -542
- package/src/filiale/fugou/pc/ServiceControl.vue +9 -0
- package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
- package/src/filiale/jinhuang/pc/Applybatchdispatch.vue +770 -0
- package/src/filiale/jinhuang/pc/ContractList.vue +222 -220
- package/src/filiale/jinhuang/pc/ServiceControl.vue +2016 -2016
- package/src/filiale/jinhuang/pc/SupervisoryList.vue +478 -459
- package/src/filiale/jinhuang/pc.js +2 -1
- package/src/filiale/shexian/android/AppServiceControl.vue +18 -1
- package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +1 -1
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1 -1
- package/src/filiale/yangchunboneng/android/AppOtherChargeList.vue +281 -0
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +4 -0
- package/src/filiale/yangchunboneng/android.js +2 -1
- package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +622 -612
- package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +400 -365
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +4 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +30 -3
- package/src/filiale/yangchunboneng/pc/chargeManagement.vue +9 -6
- package/src/main.js +1 -1
|
@@ -1,608 +1,607 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<work-busy :is-busy="showWork" v-show="showWork"></work-busy>
|
|
3
|
-
|
|
4
|
-
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
5
|
-
<criteria-paged :model="model" v-ref:cp :pager="pager">
|
|
6
|
-
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
7
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
-
</div>
|
|
9
|
-
</criteria>
|
|
10
|
-
<data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
|
|
11
|
-
<template partial='head'>
|
|
12
|
-
<tr>
|
|
13
|
-
<th>序号</th>
|
|
14
|
-
<th>客户编号</th>
|
|
15
|
-
<th>客户名称</th>
|
|
16
|
-
<th>客户电话</th>
|
|
17
|
-
<th>地址信息</th>
|
|
18
|
-
<th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">备注</th>
|
|
19
|
-
<th>表具数量</th>
|
|
20
|
-
<th>
|
|
21
|
-
<template v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
|
|
22
|
-
<button type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
|
|
23
|
-
@click="$parent.$parent.$parent.showFile = !$parent.$parent.$parent.showFile">导入</button>
|
|
24
|
-
<a type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
|
|
25
|
-
href="/apply/download/excel/安装明细.xlsx" download>模板下载</a>
|
|
26
|
-
<export-excel :data="$parent.$parent.$parent.getCondition"
|
|
27
|
-
:field="$parent.$parent.$parent.getfield"
|
|
28
|
-
sqlurl="rs/logic/applyExportfile"
|
|
29
|
-
sql-name="getInstallableAddress"
|
|
30
|
-
template-name='可安装地址'
|
|
31
|
-
btn-name="导出可安装"
|
|
32
|
-
:choose-col="true"></export-excel>
|
|
33
|
-
</template>
|
|
34
|
-
</th>
|
|
35
|
-
</tr>
|
|
36
|
-
</template>
|
|
37
|
-
<template partial='body'>
|
|
38
|
-
<tr>
|
|
39
|
-
<td style="text-align: center;">
|
|
40
|
-
<nobr>{{$index+1}}</nobr>
|
|
41
|
-
</td>
|
|
42
|
-
<td style="text-align: center;">
|
|
43
|
-
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
44
|
-
</td>
|
|
45
|
-
<td style="text-align: center;">
|
|
46
|
-
<nobr>{{row.f_user_name}}</nobr>
|
|
47
|
-
</td>
|
|
48
|
-
<td style="text-align: center;">
|
|
49
|
-
<nobr>{{row.f_user_phone}}</nobr>
|
|
50
|
-
</td>
|
|
51
|
-
<td style="text-align: center;">
|
|
52
|
-
<nobr>{{row.f_address}}</nobr>
|
|
53
|
-
</td>
|
|
54
|
-
<th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
|
|
55
|
-
<nobr>{{row.f_userinfo_comments}}</nobr>
|
|
56
|
-
</th>
|
|
57
|
-
<td style="text-align: center;">
|
|
58
|
-
<nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
|
|
59
|
-
</td>
|
|
60
|
-
<td style="text-align: center;">
|
|
61
|
-
<nobr>
|
|
62
|
-
<button
|
|
63
|
-
type="button" name="button" class="btn btn-link"
|
|
64
|
-
:disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
|
|
65
|
-
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
66
|
-
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
67
|
-
</button>
|
|
68
|
-
</nobr>
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</template>
|
|
72
|
-
</data-grid>
|
|
73
|
-
</criteria-paged>
|
|
74
|
-
</div>
|
|
75
|
-
<modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
|
|
76
|
-
<header slot="modal-header" class="modal-header">
|
|
77
|
-
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
78
|
-
<h4 class="modal-title">选择文件</h4>
|
|
79
|
-
</header>
|
|
80
|
-
<article slot="modal-body" class="modal-body">
|
|
81
|
-
<div class="form-group">
|
|
82
|
-
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
|
|
83
|
-
</div>
|
|
84
|
-
</article>
|
|
85
|
-
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
86
|
-
</modal>
|
|
87
|
-
|
|
88
|
-
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
89
|
-
<header slot="modal-header" class="modal-header">
|
|
90
|
-
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
91
|
-
<h4 class="modal-title">安装明细</h4>
|
|
92
|
-
</header>
|
|
93
|
-
<article slot="modal-body" class="modal-body clearfix">
|
|
94
|
-
<div class="form-group col-sm-12">
|
|
95
|
-
<label class="col-sm-2 control-label">地址信息:</label>
|
|
96
|
-
<div class="col-sm-10">
|
|
97
|
-
<input class="form-control input_view" style=""
|
|
98
|
-
v-model="useradders.f_address"
|
|
99
|
-
:value="useradders.f_address"
|
|
100
|
-
:readonly="true"/>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
|
|
105
|
-
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
106
|
-
<div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
|
|
107
|
-
<div class="col-sm-6 text-right"><button
|
|
108
|
-
class="button_delete button_spacing"
|
|
109
|
-
v-if="!item.f_userfiles_id"
|
|
110
|
-
@click.prevent="deleteUserFile(i)"
|
|
111
|
-
>删除</button></div>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
|
|
114
|
-
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
115
|
-
<div class="col-sm-8">
|
|
116
|
-
<input-select
|
|
117
|
-
class="select select_list"
|
|
118
|
-
:value.sync="item.gasbrand"
|
|
119
|
-
v-model="item.gasbrand"
|
|
120
|
-
:options="meterbrands"
|
|
121
|
-
@change="gasbrandChange(i)"
|
|
122
|
-
:disable="mark === 1"
|
|
123
|
-
:valueSingle="true"></input-select>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
|
|
127
|
-
<label class="col-sm-4 control-label">气表型号:</label>
|
|
128
|
-
<div class="col-sm-8">
|
|
129
|
-
<input-select
|
|
130
|
-
class="select select_list"
|
|
131
|
-
:value.sync="item.gasmodel"
|
|
132
|
-
v-model="item.gasmodel"
|
|
133
|
-
:options.sync="item.gasbrand.gasmodel"
|
|
134
|
-
@change="gasmodelChange(i)"
|
|
135
|
-
:disable="mark === 1"
|
|
136
|
-
:valueSingle="true"></input-select>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
<div class="form-group col-sm-6" :class="[item.f_meternumber ? '' : 'has-error']">
|
|
140
|
-
<label class="col-sm-4 control-label">表  号:</label>
|
|
141
|
-
<div class="col-sm-8">
|
|
142
|
-
<input class="form-control input_view" style=""
|
|
143
|
-
placeholder="表号"
|
|
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
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
<button type="button" class="btn btn-primary" @click="
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
import
|
|
255
|
-
import {
|
|
256
|
-
import {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
-
this.
|
|
320
|
-
this.
|
|
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
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
this
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
this
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
this.userinfo.userfiles[i].
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
let
|
|
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
|
-
let
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
let
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
'
|
|
462
|
-
|
|
463
|
-
{
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
this.
|
|
499
|
-
this.
|
|
500
|
-
this.
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
this.
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
this
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
border
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<work-busy :is-busy="showWork" v-show="showWork"></work-busy>
|
|
3
|
+
|
|
4
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
5
|
+
<criteria-paged :model="model" v-ref:cp :pager="pager">
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
</div>
|
|
9
|
+
</criteria>
|
|
10
|
+
<data-grid :model="model" v-ref:grid partial='list' class="list_area table_sy" style="padding: 0px">
|
|
11
|
+
<template partial='head'>
|
|
12
|
+
<tr>
|
|
13
|
+
<th>序号</th>
|
|
14
|
+
<th>客户编号</th>
|
|
15
|
+
<th>客户名称</th>
|
|
16
|
+
<th>客户电话</th>
|
|
17
|
+
<th>地址信息</th>
|
|
18
|
+
<th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">备注</th>
|
|
19
|
+
<th>表具数量</th>
|
|
20
|
+
<th>
|
|
21
|
+
<template v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
|
|
22
|
+
<button type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
|
|
23
|
+
@click="$parent.$parent.$parent.showFile = !$parent.$parent.$parent.showFile">导入</button>
|
|
24
|
+
<a type="button" class="btn btn-info head-but" v-if="$parent.$parent.$parent.mark === 0"
|
|
25
|
+
href="/apply/download/excel/安装明细.xlsx" download>模板下载</a>
|
|
26
|
+
<export-excel :data="$parent.$parent.$parent.getCondition"
|
|
27
|
+
:field="$parent.$parent.$parent.getfield"
|
|
28
|
+
sqlurl="rs/logic/applyExportfile"
|
|
29
|
+
sql-name="getInstallableAddress"
|
|
30
|
+
template-name='可安装地址'
|
|
31
|
+
btn-name="导出可安装"
|
|
32
|
+
:choose-col="true"></export-excel>
|
|
33
|
+
</template>
|
|
34
|
+
</th>
|
|
35
|
+
</tr>
|
|
36
|
+
</template>
|
|
37
|
+
<template partial='body'>
|
|
38
|
+
<tr>
|
|
39
|
+
<td style="text-align: center;">
|
|
40
|
+
<nobr>{{$index+1}}</nobr>
|
|
41
|
+
</td>
|
|
42
|
+
<td style="text-align: center;">
|
|
43
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
44
|
+
</td>
|
|
45
|
+
<td style="text-align: center;">
|
|
46
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
47
|
+
</td>
|
|
48
|
+
<td style="text-align: center;">
|
|
49
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
50
|
+
</td>
|
|
51
|
+
<td style="text-align: center;">
|
|
52
|
+
<nobr>{{row.f_address}}</nobr>
|
|
53
|
+
</td>
|
|
54
|
+
<th v-if="$parent.$parent.$parent.selectdata.f_apply_type === '团购报建'">
|
|
55
|
+
<nobr>{{row.f_userinfo_comments}}</nobr>
|
|
56
|
+
</th>
|
|
57
|
+
<td style="text-align: center;">
|
|
58
|
+
<nobr>{{row.f_userfiles_num === null ? 0 : row.f_userfiles_num}}</nobr>
|
|
59
|
+
</td>
|
|
60
|
+
<td style="text-align: center;">
|
|
61
|
+
<nobr>
|
|
62
|
+
<button
|
|
63
|
+
type="button" name="button" class="btn btn-link"
|
|
64
|
+
:disabled="row.f_cumulative_payment_money < $parent.$parent.$parent.selectdata.f_price && $parent.$parent.$parent.selectdata.f_apply_type !== '开发商集体报建'"
|
|
65
|
+
@click="$parent.$parent.$parent.showUserFileModal(row)">
|
|
66
|
+
{{$parent.$parent.$parent.mark === 1 ? '查看' : row.f_userfiles_num > 0 ? '修正' : '添加'}}
|
|
67
|
+
</button>
|
|
68
|
+
</nobr>
|
|
69
|
+
</td>
|
|
70
|
+
</tr>
|
|
71
|
+
</template>
|
|
72
|
+
</data-grid>
|
|
73
|
+
</criteria-paged>
|
|
74
|
+
</div>
|
|
75
|
+
<modal v-if="showFile" :show.sync="showFile" v-ref:modal :backdrop="false" title="选择文件">
|
|
76
|
+
<header slot="modal-header" class="modal-header">
|
|
77
|
+
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
78
|
+
<h4 class="modal-title">选择文件</h4>
|
|
79
|
+
</header>
|
|
80
|
+
<article slot="modal-body" class="modal-body">
|
|
81
|
+
<div class="form-group">
|
|
82
|
+
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" v-ref:file></file-upload>
|
|
83
|
+
</div>
|
|
84
|
+
</article>
|
|
85
|
+
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
86
|
+
</modal>
|
|
87
|
+
|
|
88
|
+
<modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :large="true" :backdrop="false" title="安装明细">
|
|
89
|
+
<header slot="modal-header" class="modal-header">
|
|
90
|
+
<button type="button" class="close" @click="closeUserFile"><span>×</span></button>
|
|
91
|
+
<h4 class="modal-title">安装明细</h4>
|
|
92
|
+
</header>
|
|
93
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
94
|
+
<div class="form-group col-sm-12">
|
|
95
|
+
<label class="col-sm-2 control-label">地址信息:</label>
|
|
96
|
+
<div class="col-sm-10">
|
|
97
|
+
<input class="form-control input_view" style=""
|
|
98
|
+
v-model="useradders.f_address"
|
|
99
|
+
:value="useradders.f_address"
|
|
100
|
+
:readonly="true"/>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div v-for="(i, item) in userinfo.userfiles" class="form-group col-sm-12 panel panel-info">
|
|
105
|
+
<div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
|
|
106
|
+
<div class="col-sm-6 text-left">表具{{$index+1}}信息</div>
|
|
107
|
+
<div class="col-sm-6 text-right"><button
|
|
108
|
+
class="button_delete button_spacing"
|
|
109
|
+
v-if="!item.f_userfiles_id"
|
|
110
|
+
@click.prevent="deleteUserFile(i)"
|
|
111
|
+
>删除</button></div>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="form-group col-sm-6" :class="[item.gasbrand ? '' : 'has-error']">
|
|
114
|
+
<label class="col-sm-4 control-label">气表品牌:</label>
|
|
115
|
+
<div class="col-sm-8">
|
|
116
|
+
<input-select
|
|
117
|
+
class="select select_list"
|
|
118
|
+
:value.sync="item.gasbrand"
|
|
119
|
+
v-model="item.gasbrand"
|
|
120
|
+
:options="meterbrands"
|
|
121
|
+
@change="gasbrandChange(i)"
|
|
122
|
+
:disable="mark === 1"
|
|
123
|
+
:valueSingle="true"></input-select>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="form-group col-sm-6" :class="[item.gasmodel ? '' : 'has-error']">
|
|
127
|
+
<label class="col-sm-4 control-label">气表型号:</label>
|
|
128
|
+
<div class="col-sm-8">
|
|
129
|
+
<input-select
|
|
130
|
+
class="select select_list"
|
|
131
|
+
:value.sync="item.gasmodel"
|
|
132
|
+
v-model="item.gasmodel"
|
|
133
|
+
:options.sync="item.gasbrand.gasmodel"
|
|
134
|
+
@change="gasmodelChange(i)"
|
|
135
|
+
:disable="mark === 1"
|
|
136
|
+
:valueSingle="true"></input-select>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="form-group col-sm-6" :class="[item.f_meternumber ? '' : 'has-error']">
|
|
140
|
+
<label class="col-sm-4 control-label">表  号:</label>
|
|
141
|
+
<div class="col-sm-8">
|
|
142
|
+
<input class="form-control input_view" style=""
|
|
143
|
+
placeholder="表号"
|
|
144
|
+
οnkeyup="this.value=this.value.replace(/\s+/g,'')"
|
|
145
|
+
v-model="item.f_meternumber"
|
|
146
|
+
:value="item.f_meternumber"
|
|
147
|
+
@change="meternumberValidate(i)"
|
|
148
|
+
:readonly="mark === 1"/>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="form-group col-sm-6">
|
|
152
|
+
<label class="col-sm-4 control-label">表 封 号:</label>
|
|
153
|
+
<div class="col-sm-8">
|
|
154
|
+
<input class="form-control input_view" style=""
|
|
155
|
+
placeholder="表封号"
|
|
156
|
+
v-model="item.f_metertitles"
|
|
157
|
+
:value="item.f_metertitles"
|
|
158
|
+
:readonly="mark === 1"/>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="form-group col-sm-6">
|
|
162
|
+
<label class="col-sm-4 control-label">表 读 数:</label>
|
|
163
|
+
<div class="col-sm-8">
|
|
164
|
+
<input class="form-control input_view" style=""
|
|
165
|
+
placeholder="表读数"
|
|
166
|
+
v-model="item.f_meter_base"
|
|
167
|
+
:value="item.f_meter_base"
|
|
168
|
+
:readonly="mark === 1"/>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="form-group col-sm-6">
|
|
172
|
+
<label class="col-sm-4 control-label">初始底数:</label>
|
|
173
|
+
<div class="col-sm-8">
|
|
174
|
+
<input class="form-control input_view" style=""
|
|
175
|
+
v-model="item.f_initial_base"
|
|
176
|
+
:value="item.f_initial_base"
|
|
177
|
+
placeholder="初始底数"
|
|
178
|
+
:readonly="mark === 1"/>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="form-group col-sm-6">
|
|
182
|
+
<label class="col-sm-4 control-label">表  向:</label>
|
|
183
|
+
<div class="col-sm-8">
|
|
184
|
+
<input-select
|
|
185
|
+
class="select select_list"
|
|
186
|
+
:value.sync="item.f_aroundmeter"
|
|
187
|
+
v-model="item.f_aroundmeter"
|
|
188
|
+
:options="aroundmeters"
|
|
189
|
+
:disable="mark === 1"
|
|
190
|
+
:valueSingle="true"></input-select>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
<div class="form-group col-sm-6">
|
|
194
|
+
<label class="col-sm-4 control-label">安装位置:</label>
|
|
195
|
+
<div class="col-sm-8">
|
|
196
|
+
<input-select
|
|
197
|
+
class="select select_list"
|
|
198
|
+
:value.sync="item.f_position"
|
|
199
|
+
v-model="item.f_position"
|
|
200
|
+
:options="positions"
|
|
201
|
+
:disable="mark === 1"
|
|
202
|
+
:valueSingle="true"></input-select>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
<div class="form-group col-sm-6">
|
|
206
|
+
<label class="col-sm-4 control-label">安 装 人:</label>
|
|
207
|
+
<div class="col-sm-8">
|
|
208
|
+
<input class="form-control input_view" style=""
|
|
209
|
+
v-model="item.f_install_person"
|
|
210
|
+
:value.sync="installperson(item.f_install_person)"
|
|
211
|
+
placeholder="安装人"
|
|
212
|
+
readonly/>
|
|
213
|
+
<!-- <input-select-->
|
|
214
|
+
<!-- class="select select_list"-->
|
|
215
|
+
<!-- :value.sync="item.f_install_person"-->
|
|
216
|
+
<!-- v-model="item.f_install_person"-->
|
|
217
|
+
<!-- :options="installperson"-->
|
|
218
|
+
<!-- :disable="mark === 1"-->
|
|
219
|
+
<!-- :valueSingle="true"></input-select>-->
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="form-group col-sm-6">
|
|
223
|
+
<label class="col-sm-4 control-label">安装日期:</label>
|
|
224
|
+
<div class="col-sm-8">
|
|
225
|
+
<input class="form-control input_view" style=""
|
|
226
|
+
v-model="item.f_install_date"
|
|
227
|
+
:value.sync="installdate(item.f_install_date)"
|
|
228
|
+
placeholder="安装日期"
|
|
229
|
+
readonly/>
|
|
230
|
+
<!-- <datepicker-->
|
|
231
|
+
<!-- placeholder="安装日期"-->
|
|
232
|
+
<!-- :value.sync="item.f_install_date"-->
|
|
233
|
+
<!-- v-model="item.f_install_date"-->
|
|
234
|
+
<!-- format="yyyy-MM-dd HH:mm:ss"-->
|
|
235
|
+
<!-- :disabled="mark === 1"-->
|
|
236
|
+
<!-- :show-reset-button="reset">-->
|
|
237
|
+
<!-- </datepicker>-->
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
</article>
|
|
243
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
244
|
+
<template v-if="mark !== 1">
|
|
245
|
+
<!-- 去除一户多表 -->
|
|
246
|
+
<button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
|
|
247
|
+
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
248
|
+
</template>
|
|
249
|
+
</footer>
|
|
250
|
+
</modal>
|
|
251
|
+
</template>
|
|
252
|
+
<script>
|
|
253
|
+
import Vue from 'vue'
|
|
254
|
+
import {PagedList} from 'vue-client'
|
|
255
|
+
import {HttpResetClass} from 'vue-client'
|
|
256
|
+
import {isEmpty} from '../../../components/Util'
|
|
257
|
+
// Date格式化
|
|
258
|
+
Date.prototype.Format = function (fmt) {
|
|
259
|
+
var o = {
|
|
260
|
+
'M+': this.getMonth() + 1, // 月份
|
|
261
|
+
'd+': this.getDate(), // 日
|
|
262
|
+
'H+': this.getHours(), // 小时
|
|
263
|
+
'm+': this.getMinutes(), // 分
|
|
264
|
+
's+': this.getSeconds(), // 秒
|
|
265
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
266
|
+
'S': this.getMilliseconds() // 毫秒
|
|
267
|
+
}
|
|
268
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
269
|
+
for (var k in o) {
|
|
270
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
271
|
+
}
|
|
272
|
+
return fmt
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export default {
|
|
276
|
+
title: '安装明细',
|
|
277
|
+
props: {
|
|
278
|
+
selectdata: {
|
|
279
|
+
type: Object
|
|
280
|
+
},
|
|
281
|
+
mark: {
|
|
282
|
+
type: Number,
|
|
283
|
+
default: 0
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
data () {
|
|
287
|
+
return {
|
|
288
|
+
showFile: false,
|
|
289
|
+
showUserFile: false,
|
|
290
|
+
model: new PagedList('rs/sql/getAddresAndUserinfoAndUserfilesAmount', 20, null),
|
|
291
|
+
meterbrands: [], // 气表品牌
|
|
292
|
+
useradders: null,
|
|
293
|
+
userinfo: {},
|
|
294
|
+
getfield: {
|
|
295
|
+
'f_address': '地址',
|
|
296
|
+
'f_user_name': '用户姓名/单位名称',
|
|
297
|
+
'f_meternumber': '表号',
|
|
298
|
+
'f_gasbrand': '气表品牌',
|
|
299
|
+
'f_gasmodel': '气表型号',
|
|
300
|
+
'f_metertitles': '表封号',
|
|
301
|
+
'f_meter_base': '表读数',
|
|
302
|
+
'f_initial_base': '初始底数',
|
|
303
|
+
'f_aroundmeter': '表向',
|
|
304
|
+
'f_user_phone': '电话',
|
|
305
|
+
'f_userinfo_comments': '备注',
|
|
306
|
+
'f_position': '安装位置',
|
|
307
|
+
'f_userinfo_code': '用户编号',
|
|
308
|
+
'f_material_name': '材料名称',
|
|
309
|
+
'f_material_style': '材料型号',
|
|
310
|
+
'f_material_price': '材料价格',
|
|
311
|
+
'f_material_unit': '材料单位',
|
|
312
|
+
'f_material_number': '材料数量'
|
|
313
|
+
},
|
|
314
|
+
showWork: false
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
ready () {
|
|
318
|
+
this.search()
|
|
319
|
+
this.getMeterbrands()
|
|
320
|
+
if (this.selectdata.f_apply_type === '团购报建') {
|
|
321
|
+
this.notInstalled()
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
methods: {
|
|
325
|
+
// 删除未保存的表具
|
|
326
|
+
async deleteUserFile (index) {
|
|
327
|
+
this.userinfo.userfiles.splice(index, 1)
|
|
328
|
+
},
|
|
329
|
+
// 追加表具
|
|
330
|
+
addUserFile() {
|
|
331
|
+
this.userinfo.userfiles.push({})
|
|
332
|
+
},
|
|
333
|
+
// 保存档案
|
|
334
|
+
async saveUserFile() {
|
|
335
|
+
// 检查必填项
|
|
336
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
337
|
+
let userfile = this.userinfo.userfiles[i]
|
|
338
|
+
if (userfile.f_gasbrand_id === null || userfile.f_gasbrand_id === '') {
|
|
339
|
+
this.$showMessage(`表具${i+1}气表品牌没有选择!!!`)
|
|
340
|
+
return
|
|
341
|
+
}
|
|
342
|
+
if (userfile.f_gasmodel_id === null || userfile.f_gasmodel_id === '') {
|
|
343
|
+
this.$showMessage(`表具${i+1}气表型号没有选择!!!`)
|
|
344
|
+
return
|
|
345
|
+
}
|
|
346
|
+
if (userfile.f_meternumber === null || userfile.f_meternumber === '') {
|
|
347
|
+
this.$showMessage(`表具${i+1}表号没有填写!!!`)
|
|
348
|
+
return
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
let data = {
|
|
352
|
+
user: this.$login.f,
|
|
353
|
+
useradders: this.useradders,
|
|
354
|
+
userinfo: this.userinfo,
|
|
355
|
+
selectdata: this.selectdata
|
|
356
|
+
}
|
|
357
|
+
let res = await this.$resetpost('rs/logic/addInstallationDetails', {data:data}, {
|
|
358
|
+
resolveMsg: null,
|
|
359
|
+
rejectMsg: '表具添加失败!!!'
|
|
360
|
+
})
|
|
361
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
362
|
+
},
|
|
363
|
+
// 检查表号是否存在
|
|
364
|
+
async meternumberValidate(i) {
|
|
365
|
+
if (!this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
366
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
367
|
+
this.$showAlert('请先选择气表品牌!!!', 'warning', 3000)
|
|
368
|
+
return
|
|
369
|
+
}
|
|
370
|
+
if (this.userinfo.userfiles[i].f_gasbrand_id && this.userinfo.userfiles[i].f_meternumber) {
|
|
371
|
+
let data = {
|
|
372
|
+
f_meternumber: this.userinfo.userfiles[i].f_meternumber,
|
|
373
|
+
f_gasbrand_id: this.userinfo.userfiles[i].f_gasbrand_id
|
|
374
|
+
}
|
|
375
|
+
if (this.userinfo.userfiles[i].f_userfiles_id) {
|
|
376
|
+
data.f_userfiles_id = this.userinfo.userfiles[i].f_userfiles_id
|
|
377
|
+
}
|
|
378
|
+
let res = await this.$resetpost('rs/logic/meterbrandsNumberValidate', {data:data}, {
|
|
379
|
+
resolveMsg: null,
|
|
380
|
+
rejectMsg: '表号验证失败!!'
|
|
381
|
+
})
|
|
382
|
+
if (res.data) {
|
|
383
|
+
this.userinfo.userfiles[i].f_meternumber = ''
|
|
384
|
+
this.$showAlert('表号已存在!!', 'warning', 3000)
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
// 选择气表型号
|
|
389
|
+
gasmodelChange(i) {
|
|
390
|
+
if (this.userinfo.userfiles[i].gasmodel) {
|
|
391
|
+
this.userinfo.userfiles[i].f_gasmodel_id = this.userinfo.userfiles[i].gasmodel.id
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
// 选择气表品牌
|
|
395
|
+
gasbrandChange(i) {
|
|
396
|
+
// 清空已保存的气表型号
|
|
397
|
+
this.userinfo.userfiles[i].f_gasmodel_id = null
|
|
398
|
+
this.userinfo.userfiles[i].gasmodel = null
|
|
399
|
+
|
|
400
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
401
|
+
// 气表品牌id
|
|
402
|
+
this.userinfo.userfiles[i].f_gasbrand_id = this.userinfo.userfiles[i].gasbrand.id
|
|
403
|
+
// 气表分类
|
|
404
|
+
this.userinfo.userfiles[i].f_meter_classify = this.userinfo.userfiles[i].gasbrand.f_meter_type
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
// 打开安装明细
|
|
408
|
+
async showUserFileModal (row) {
|
|
409
|
+
this.useradders = row
|
|
410
|
+
|
|
411
|
+
let http = new HttpResetClass()
|
|
412
|
+
let data = {
|
|
413
|
+
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
414
|
+
}
|
|
415
|
+
let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfiles', {data:data}, {
|
|
416
|
+
resolveMsg: null,
|
|
417
|
+
rejectMsg: null
|
|
418
|
+
})
|
|
419
|
+
|
|
420
|
+
this.userinfo = res.data
|
|
421
|
+
|
|
422
|
+
// 已有表具的 气表信息补充
|
|
423
|
+
for (let i = 0; i < this.userinfo.userfiles.length; i++) {
|
|
424
|
+
for (const item of this.meterbrands) {
|
|
425
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasbrand_id) {
|
|
426
|
+
// this.userinfo.userfiles[i].gasbrand = item.value // 防止双向绑定失败
|
|
427
|
+
Vue.set(this.userinfo.userfiles[i], 'gasbrand', item.value)
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
if (this.userinfo.userfiles[i].gasbrand) {
|
|
431
|
+
for (const item of this.userinfo.userfiles[i].gasbrand.gasmodel) {
|
|
432
|
+
if (item.value.id === this.userinfo.userfiles[i].f_gasmodel_id) {
|
|
433
|
+
// this.userinfo.userfiles[i].gasmodel = item.value
|
|
434
|
+
Vue.set(this.userinfo.userfiles[i], 'gasmodel', item.value)
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
this.showUserFile = true
|
|
441
|
+
},
|
|
442
|
+
// 获取气表品牌
|
|
443
|
+
async getMeterbrands() {
|
|
444
|
+
let http = new HttpResetClass()
|
|
445
|
+
let data = {
|
|
446
|
+
f_orgid: this.$login.f.orgid
|
|
447
|
+
}
|
|
448
|
+
let res = await http.load('POST', 'rs/logic/getMeterbrands', {data:data}, {
|
|
449
|
+
resolveMsg: null,
|
|
450
|
+
rejectMsg: null
|
|
451
|
+
})
|
|
452
|
+
this.meterbrands = res.data
|
|
453
|
+
},
|
|
454
|
+
async notInstalled () {
|
|
455
|
+
let http = new HttpResetClass()
|
|
456
|
+
let data = {
|
|
457
|
+
condition: `ui.f_process_id = '${this.selectdata.f_process_id}' and uf.f_table_state != '待开通'`
|
|
458
|
+
}
|
|
459
|
+
let res = await http.load(
|
|
460
|
+
'POST',
|
|
461
|
+
'rs/sql/countApplyUserinfo',
|
|
462
|
+
{data: data},
|
|
463
|
+
{
|
|
464
|
+
resolveMsg: null,
|
|
465
|
+
rejectMsg: '安装数量查询失败!!!'
|
|
466
|
+
})
|
|
467
|
+
|
|
468
|
+
for (const item of this.selectdata.fields) {
|
|
469
|
+
if (item.label === '已安装户数') {
|
|
470
|
+
item.value = this.selectdata.f_apply_count - res.data[0].num
|
|
471
|
+
}
|
|
472
|
+
if (item.label === '未安装户数') {
|
|
473
|
+
item.value = res.data[0].num
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
searchCondition (args) {
|
|
478
|
+
var tablestate=''
|
|
479
|
+
if(this.selectdata.f_sub_state==='完工'){
|
|
480
|
+
tablestate='正常'
|
|
481
|
+
}else{
|
|
482
|
+
tablestate='待开通'
|
|
483
|
+
}
|
|
484
|
+
if (this.selectdata.f_apply_type === '团购转散户' || this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
|
|
485
|
+
args.condition = args.condition + `and ui.f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
|
|
486
|
+
} else {
|
|
487
|
+
args.condition = args.condition + `and ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
488
|
+
}
|
|
489
|
+
this.model.search(args.condition, args.model,tablestate)
|
|
490
|
+
},
|
|
491
|
+
// 查询
|
|
492
|
+
async search () {
|
|
493
|
+
this.$refs.cp.$refs.cri.search()
|
|
494
|
+
},
|
|
495
|
+
// 关闭安装明细
|
|
496
|
+
closeUserFile() {
|
|
497
|
+
this.showUserFile = false
|
|
498
|
+
this.useradders = null
|
|
499
|
+
this.userinfo = {}
|
|
500
|
+
this.search()
|
|
501
|
+
},
|
|
502
|
+
// 关闭文件上传对话框
|
|
503
|
+
closeFile() {
|
|
504
|
+
this.showWork = false
|
|
505
|
+
this.showFile = false
|
|
506
|
+
// 将选的文件清空
|
|
507
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
508
|
+
this.search()
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
events: {
|
|
512
|
+
'beforeFileUpload' (file) {
|
|
513
|
+
this.showWork = true
|
|
514
|
+
},
|
|
515
|
+
async 'onFileUpload'(file, result) {
|
|
516
|
+
let data = {
|
|
517
|
+
selectdata: this.selectdata,
|
|
518
|
+
filepath: result.f_downloadpath,
|
|
519
|
+
user: this.$login.f
|
|
520
|
+
}
|
|
521
|
+
try {
|
|
522
|
+
let res = await this.$resetpost(`rs/logic/importAddInstallationDetails`, {data: data}, {
|
|
523
|
+
resolveMsg: null,
|
|
524
|
+
rejectMsg: '导入失败!!!',
|
|
525
|
+
silent: true
|
|
526
|
+
}, 0)
|
|
527
|
+
} catch (e) {
|
|
528
|
+
this.closeFile()
|
|
529
|
+
}
|
|
530
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
computed: {
|
|
534
|
+
pager () {
|
|
535
|
+
return this.selectdata.f_apply_type === '团购报建'
|
|
536
|
+
},
|
|
537
|
+
getCondition () {
|
|
538
|
+
let condition = `ua.f_process_id = '${this.selectdata.f_process_id}'`
|
|
539
|
+
|
|
540
|
+
return {
|
|
541
|
+
condition: condition
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
// 安装人
|
|
545
|
+
installperson() {
|
|
546
|
+
return function (f_install_person) {
|
|
547
|
+
if (isEmpty(f_install_person)) {
|
|
548
|
+
return this.$login.f.name
|
|
549
|
+
}
|
|
550
|
+
return f_install_person
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
installdate() {
|
|
554
|
+
return function (f_install_date) {
|
|
555
|
+
if (isEmpty(f_install_date)) {
|
|
556
|
+
return new Date().Format('yyyy-MM-dd HH:mm:ss')
|
|
557
|
+
}
|
|
558
|
+
return f_install_date
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
// 表向
|
|
562
|
+
aroundmeters() {
|
|
563
|
+
return this.$appdata.getParam('左右表')
|
|
564
|
+
},
|
|
565
|
+
// 安装位置
|
|
566
|
+
positions() {
|
|
567
|
+
return this.$appdata.getParam('安装位置')
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
watch: {
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
</script>
|
|
574
|
+
<style scoped>
|
|
575
|
+
.head-but{
|
|
576
|
+
margin-left: 5px;
|
|
577
|
+
height: 34px;
|
|
578
|
+
/*background-color: #6aa6e2;*/
|
|
579
|
+
border-radius: 4px;
|
|
580
|
+
font-family: PingFang;
|
|
581
|
+
color: #ffffff;
|
|
582
|
+
}
|
|
583
|
+
/*清除model中的浮动*/
|
|
584
|
+
.clearfix:after,.clearfix:before{
|
|
585
|
+
display: table;
|
|
586
|
+
}
|
|
587
|
+
.clearfix:after{
|
|
588
|
+
clear: both;
|
|
589
|
+
}
|
|
590
|
+
.input_view{
|
|
591
|
+
padding: 8px;
|
|
592
|
+
background-color: #ffffff;
|
|
593
|
+
border-radius: 2px;
|
|
594
|
+
border: solid 1px #c7c7c7!important;
|
|
595
|
+
color: #333333!important;
|
|
596
|
+
font-size: 15px!important;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.input_view[readonly]{
|
|
600
|
+
border: 1px solid #DDD!important;
|
|
601
|
+
color:#ACA899!important;
|
|
602
|
+
}
|
|
603
|
+
.input_view:disabled{
|
|
604
|
+
border: 1px solid #DDD!important;
|
|
605
|
+
color:#ACA899!important;
|
|
606
|
+
}
|
|
607
|
+
</style>
|