apply-clients 4.1.68 → 4.1.69
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/index.html +30 -30
- package/package.json +1 -1
- package/src/apply.js +4 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -251
- package/src/components/product/Process/Processes/InstallationDetails.vue +489 -489
- package/src/components/product/Process/Processes/UserFireInfo.vue +409 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +118 -6
- package/src/components/product/Process/Processes/addressAndUserinfoManagementPro.vue +1221 -0
- package/src/components/product/Process/Processes/chargeManagement.vue +539 -539
- package/src/components/product/Process/Processes/devicesDetails.vue +324 -4
- package/src/components/product/Process/Processes/printCharge.vue +130 -130
- package/src/components/product/Process/Service/ServiceControl.vue +4 -2
- package/src/components/product/ServiceView.vue +797 -797
- package/src/components/product/VueUtils/ApplyUpload.vue +261 -261
- package/static/images/lefticon//347/237/251/345/275/2421183.png +0 -0
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
+
<div class="auto" style="overflow:auto;margin: 15px 0 0 15px;">
|
|
4
|
+
<div class="col-sm-12" style="height: 180px">
|
|
5
|
+
<div class="row col-sm-12">
|
|
6
|
+
<div class="from-group col-sm-3">
|
|
7
|
+
<label class=" control-label" >点火状态</label>
|
|
8
|
+
<v-select :value.sync="query.f_state" v-model="query.f_state"
|
|
9
|
+
:options='firestate' placeholder='请选择'
|
|
10
|
+
close-on-select >
|
|
11
|
+
</v-select>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-group col-sm-5" >
|
|
14
|
+
<!-- <button class="button_search button_spacing" @click="search()">查询</button>-->
|
|
15
|
+
<button type="button" class="btn btn-default" @click="search(0)">查询</button>
|
|
16
|
+
<button type="button" class="btn btn-default" @click="clear()">清空</button>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
3
21
|
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
22
|
<template partial='head'>
|
|
5
23
|
<tr>
|
|
@@ -9,6 +27,7 @@
|
|
|
9
27
|
<th>客户电话</th>
|
|
10
28
|
<th>地址信息</th>
|
|
11
29
|
<th>设备数量</th>
|
|
30
|
+
<th>点火状态</th>
|
|
12
31
|
<th>
|
|
13
32
|
操作
|
|
14
33
|
<!-- <button type="button" class="btn btn-info head-but" v-if="$parent.$parent.mark === 0"-->
|
|
@@ -45,6 +64,9 @@
|
|
|
45
64
|
<td style="text-align: center;">
|
|
46
65
|
<nobr>{{row.f_devices_num === null ? 0 : row.f_devices_num}}</nobr>
|
|
47
66
|
</td>
|
|
67
|
+
<td style="text-align: center;">
|
|
68
|
+
<nobr>{{row.f_fire_num === null ? "未点火" : "已点火"}}</nobr>
|
|
69
|
+
</td>
|
|
48
70
|
<td style="text-align: center;">
|
|
49
71
|
<nobr>
|
|
50
72
|
<button
|
|
@@ -53,6 +75,11 @@
|
|
|
53
75
|
@click="$parent.$parent.showUserFileModal(row)">
|
|
54
76
|
{{$parent.$parent.mark === 1 ? '查看' : row.f_devices_num > 0 ? '修正' : '添加'}}
|
|
55
77
|
</button>
|
|
78
|
+
<button
|
|
79
|
+
type="button" name="button" class="btn btn-link"
|
|
80
|
+
@click="$parent.$parent.showFire(row)">
|
|
81
|
+
点火信息
|
|
82
|
+
</button>
|
|
56
83
|
</nobr>
|
|
57
84
|
</td>
|
|
58
85
|
</tr>
|
|
@@ -305,6 +332,226 @@
|
|
|
305
332
|
<button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
|
|
306
333
|
</footer>
|
|
307
334
|
</modal>
|
|
335
|
+
<modal :show.sync="showFilePage" width="80%" title="点火基本信息" v-ref:modal large backdrop="false">
|
|
336
|
+
<article slot="modal-body" class="modal-body" style="height: auto">
|
|
337
|
+
<div class="flex-row flex-deviceinfo">
|
|
338
|
+
|
|
339
|
+
<div class="panel panel-primary col-sm-12 datapanel" v-if="selectdata.f_apply_type[0]!='工商户报建'">
|
|
340
|
+
<!-- <avatar-upload :img-src.sync="row.img.content" :filename.sync="row.img.filename"></avatar-upload>-->
|
|
341
|
+
<form class="form-horizontal select-overspread " style="flex: 1;">
|
|
342
|
+
<div style="margin-top: 2%">
|
|
343
|
+
<img style="margin-top: -2px;margin-left: 2px" src="../../../../../static/images/lefticon/矩形1183.png">
|
|
344
|
+
<a style="font-size: 16px;font-weight: 500;">民用点火信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
345
|
+
</div>
|
|
346
|
+
<div class="row auto" style="margin-top: 10px;margin-left: 10px;">
|
|
347
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
348
|
+
<label class="font_normal_body">   镀锌管 </label>
|
|
349
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_galvanize_pipe"
|
|
350
|
+
placeholder='镀锌管' >
|
|
351
|
+
</div>
|
|
352
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
353
|
+
<label class="font_normal_body">   三 通 </label>
|
|
354
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_tee"
|
|
355
|
+
placeholder='三通' >
|
|
356
|
+
</div>
|
|
357
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
358
|
+
<label class="font_normal_body">   对 丝 </label>
|
|
359
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_nipple"
|
|
360
|
+
placeholder='对丝' >
|
|
361
|
+
</div>
|
|
362
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
363
|
+
<label class="font_normal_body">   弯 头 </label>
|
|
364
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_elbow"
|
|
365
|
+
placeholder='弯头' >
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
|
+
<div class="row auto" style="margin-left: 10px;">
|
|
369
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
370
|
+
<label class="font_normal_body">   管 卡 </label>
|
|
371
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_pipe_strap"
|
|
372
|
+
placeholder='管卡' >
|
|
373
|
+
</div>
|
|
374
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
375
|
+
<label class="font_normal_body">   灶前阀 </label>
|
|
376
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_zqf"
|
|
377
|
+
placeholder='灶前阀' >
|
|
378
|
+
</div>
|
|
379
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
380
|
+
<label class="font_normal_body">   胶 管 </label>
|
|
381
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_sebific_duct"
|
|
382
|
+
placeholder='胶管' >
|
|
383
|
+
</div>
|
|
384
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
385
|
+
<label class="font_normal_body">   自闭阀 </label>
|
|
386
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_zbf"
|
|
387
|
+
placeholder='自闭阀' >
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
<div class="row auto" style="margin-left: 10px;">
|
|
391
|
+
|
|
392
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
393
|
+
<label class="font_normal_body">   燃气具 </label>
|
|
394
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_gas_appliance"
|
|
395
|
+
placeholder='燃气具' >
|
|
396
|
+
</div>
|
|
397
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
398
|
+
<label class="font_normal_body">   热水器 </label>
|
|
399
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_geyser"
|
|
400
|
+
placeholder='热水器' >
|
|
401
|
+
</div>
|
|
402
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
403
|
+
<label class="font_normal_body">   壁挂锅炉</label>
|
|
404
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_bgl"
|
|
405
|
+
placeholder='壁挂锅炉' >
|
|
406
|
+
</div>
|
|
407
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
408
|
+
<label class="font_normal_body">   型 号 </label>
|
|
409
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_bgl_style"
|
|
410
|
+
placeholder='壁挂锅炉型号' >
|
|
411
|
+
</div>
|
|
412
|
+
</div>
|
|
413
|
+
<div class="row auto" style="margin-left: 10px;">
|
|
414
|
+
<div class="col-sm-3 form-group" >
|
|
415
|
+
<label class="font_normal_body">   交付日期</label>
|
|
416
|
+
<datepicker placeholder="交付日期" style="width: 57%"
|
|
417
|
+
v-model="fireinfo.f_deliver_date"
|
|
418
|
+
:value.sync="fireinfo.f_deliver_date"
|
|
419
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
420
|
+
</datepicker>
|
|
421
|
+
</div>
|
|
422
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
423
|
+
<label class="font_normal_body">   点火人员</label>
|
|
424
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_lgniter"
|
|
425
|
+
placeholder='点火人员' >
|
|
426
|
+
</div>
|
|
427
|
+
<div class="col-sm-12 form-group" >
|
|
428
|
+
<label class="font_normal_body">   检验结论</label>
|
|
429
|
+
<input type="text" class="input_search" style="width:80%" v-model="fireinfo.f_fic"
|
|
430
|
+
placeholder='设施检验结论' >
|
|
431
|
+
</div>
|
|
432
|
+
<div class="col-sm-12 form-group" >
|
|
433
|
+
<label class="font_normal_body">   备  注</label>
|
|
434
|
+
<input type="text" class="input_search" style="width:80%" v-model="fireinfo.f_comments"
|
|
435
|
+
placeholder='备注' >
|
|
436
|
+
</div>
|
|
437
|
+
</div>
|
|
438
|
+
</form>
|
|
439
|
+
</div>
|
|
440
|
+
<div class="panel panel-primary col-sm-12 datapanel" v-if="selectdata.f_apply_type[0]=='工商户报建'">
|
|
441
|
+
<!-- <avatar-upload :img-src.sync="row.img.content" :filename.sync="row.img.filename"></avatar-upload>-->
|
|
442
|
+
<form class="form-horizontal select-overspread " style="flex: 1;">
|
|
443
|
+
<div style="margin-top: 2%">
|
|
444
|
+
<img style="margin-top: -2px;margin-left: 2px" src="../../../../../static/images/lefticon/矩形1183.png">
|
|
445
|
+
<a style="font-size: 16px;font-weight: 500;">非民用点火基本信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
446
|
+
</div>
|
|
447
|
+
<div class="row auto" style="margin-top: 10px;margin-left: 10px;">
|
|
448
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
449
|
+
<label class="font_normal_body">  探测器数量</label>
|
|
450
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_detector_number"
|
|
451
|
+
placeholder='探测器数量' >
|
|
452
|
+
</div>
|
|
453
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
454
|
+
<label class="font_normal_body">  气表品牌</label>
|
|
455
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_fire_gasbrand"
|
|
456
|
+
placeholder='气表品牌' >
|
|
457
|
+
</div>
|
|
458
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
459
|
+
<label class="font_normal_body"> 控制器品牌</label>
|
|
460
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_control_brand"
|
|
461
|
+
placeholder='控制器品牌' >
|
|
462
|
+
</div>
|
|
463
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
464
|
+
<label class="font_normal_body"> 控制器型号</label>
|
|
465
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_control_model"
|
|
466
|
+
placeholder='控制器型号' >
|
|
467
|
+
</div>
|
|
468
|
+
</div>
|
|
469
|
+
<div class="row auto" style="margin-top: 10px;margin-left: 10px;">
|
|
470
|
+
|
|
471
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
472
|
+
<label class="font_normal_body">控制器出厂日期</label>
|
|
473
|
+
<datepicker placeholder="控制器出厂日期" style="width: 60%"
|
|
474
|
+
v-model="fireinfo.f_control_date"
|
|
475
|
+
:value.sync="fireinfo.f_control_date"
|
|
476
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
477
|
+
</datepicker>
|
|
478
|
+
</div>
|
|
479
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
480
|
+
<label class="font_normal_body">控制器表编码</label>
|
|
481
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_control_code"
|
|
482
|
+
placeholder='控制器表编码' >
|
|
483
|
+
</div>
|
|
484
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
485
|
+
<label class="font_normal_body">控制器表封号</label>
|
|
486
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_control_number"
|
|
487
|
+
placeholder='控制器表封号' >
|
|
488
|
+
</div>
|
|
489
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
490
|
+
<label class="font_normal_body"> 燃气具类型</label>
|
|
491
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_appliance_type"
|
|
492
|
+
placeholder='燃气具类型' >
|
|
493
|
+
</div>
|
|
494
|
+
</div>
|
|
495
|
+
<div class="row auto" style="margin-top: 10px;margin-left: 10px;">
|
|
496
|
+
|
|
497
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
498
|
+
<label class="font_normal_body">  燃气具品牌</label>
|
|
499
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_appliance_brand"
|
|
500
|
+
placeholder='燃气具品牌' >
|
|
501
|
+
</div>
|
|
502
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
503
|
+
<label class="font_normal_body"> 燃气具型号</label>
|
|
504
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_appliance_model"
|
|
505
|
+
placeholder='燃气具型号' >
|
|
506
|
+
</div>
|
|
507
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
508
|
+
<label class="font_normal_body"> 报警箱信息</label>
|
|
509
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_alarm_info"
|
|
510
|
+
placeholder='报警控制箱信息' >
|
|
511
|
+
</div>
|
|
512
|
+
<div class="col-sm-3 form-group" >
|
|
513
|
+
<label class="font_normal_body">  交付日期</label>
|
|
514
|
+
<datepicker placeholder="交付日期" style="width: 60%"
|
|
515
|
+
v-model="fireinfo.f_deliver_date"
|
|
516
|
+
:value.sync="fireinfo.f_deliver_date"
|
|
517
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
518
|
+
</datepicker>
|
|
519
|
+
</div>
|
|
520
|
+
</div>
|
|
521
|
+
<div class="row auto" style="margin-top: 10px;margin-left: 10px;">
|
|
522
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
523
|
+
<label class="font_normal_body">   通讯方式</label>
|
|
524
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_contact_method"
|
|
525
|
+
placeholder='通讯方式' >
|
|
526
|
+
</div>
|
|
527
|
+
<div class="col-sm-3 form-group" style="padding-right: 5px;">
|
|
528
|
+
<label class="font_normal_body">  点火人员</label>
|
|
529
|
+
<input type="text" class="input_search" style="width:60%" v-model="fireinfo.f_lgniter"
|
|
530
|
+
placeholder='点火人员' >
|
|
531
|
+
</div>
|
|
532
|
+
<div class="col-sm-12 form-group" >
|
|
533
|
+
<label class="font_normal_body">   检验结论</label>
|
|
534
|
+
<input type="text" class="input_search" style="width:90%" v-model="fireinfo.f_fic"
|
|
535
|
+
placeholder='设施检验结论' >
|
|
536
|
+
</div>
|
|
537
|
+
<div class="col-sm-12 form-group" >
|
|
538
|
+
<label class="font_normal_body">   备  注</label>
|
|
539
|
+
<input type="text" class="input_search" style="width:80%" v-model="fireinfo.f_comments"
|
|
540
|
+
placeholder='备注' >
|
|
541
|
+
</div>
|
|
542
|
+
</div>
|
|
543
|
+
</form>
|
|
544
|
+
</div>
|
|
545
|
+
</div>
|
|
546
|
+
|
|
547
|
+
</article>
|
|
548
|
+
|
|
549
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
550
|
+
<button type="button" class="btn btn-default" @click='cancel()'>取消</button>
|
|
551
|
+
<button type="button" class="btn btn-success" @click='confirm()'>确定</button>
|
|
552
|
+
</footer>
|
|
553
|
+
</modal>
|
|
554
|
+
<!-- <apply-file-user-fire-info v-if="showFilePage" :fireinfo="fireinfo" :showFilePage="showFilePage"></apply-file-user-fire-info>-->
|
|
308
555
|
</validator>
|
|
309
556
|
</template>
|
|
310
557
|
<script>
|
|
@@ -346,7 +593,12 @@ export default {
|
|
|
346
593
|
'f_position': '安装位置',
|
|
347
594
|
'f_install_person': '安装人',
|
|
348
595
|
'f_install_date': '安装日期'
|
|
349
|
-
}
|
|
596
|
+
},
|
|
597
|
+
showFilePage: false,
|
|
598
|
+
fireinfo: {},
|
|
599
|
+
firestate: [{label:"全部",value:'0'},{label:"未点火",value:'is null'},{label:"已点火",value:'is not null'}],
|
|
600
|
+
query: {},//查询数据
|
|
601
|
+
condition: "1 = 1"
|
|
350
602
|
}
|
|
351
603
|
},
|
|
352
604
|
ready () {
|
|
@@ -397,11 +649,52 @@ export default {
|
|
|
397
649
|
|
|
398
650
|
this.showUserFile = true
|
|
399
651
|
},
|
|
652
|
+
// 打开点火信息
|
|
653
|
+
async showFire(row) {
|
|
654
|
+
if (this.$login.f.f_role_name.includes("报装点火权限")) {
|
|
655
|
+
let http = new HttpResetClass()
|
|
656
|
+
let data = {
|
|
657
|
+
condition: `f_userinfo_id = '${row.f_userinfo_id}'`
|
|
658
|
+
}
|
|
659
|
+
let res = await http.load('POST', 'rs/logic/getUserinfoAndUserfilesDevices', {data:data}, {
|
|
660
|
+
resolveMsg: null,
|
|
661
|
+
rejectMsg: null
|
|
662
|
+
})
|
|
663
|
+
|
|
664
|
+
this.userinfo = res.data
|
|
665
|
+
console.log("获取到的表具信息:" + JSON.stringify(res.data))
|
|
666
|
+
if (res.data.fireinfo.length <= 0) {
|
|
667
|
+
this.userinfo.fireinfo = [
|
|
668
|
+
{
|
|
669
|
+
|
|
670
|
+
}
|
|
671
|
+
]
|
|
672
|
+
this.fireinfo = {}
|
|
673
|
+
}else {
|
|
674
|
+
this.fireinfo = this.userinfo.fireinfo[0]
|
|
675
|
+
}
|
|
676
|
+
this.showFilePage = true
|
|
677
|
+
}else {
|
|
678
|
+
this.$showMessage("您没有操作权限!")
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
conditionData() {
|
|
682
|
+
if (this.query.f_state == '0') {
|
|
683
|
+
this.condition = "1 = 1"
|
|
684
|
+
}else if (this.query.f_state == 'is null' || this.query.f_state == 'is not null') {
|
|
685
|
+
this.condition = "fi.f_fire_num " + this.query.f_state
|
|
686
|
+
}else {
|
|
687
|
+
this.condition = "1 = 1"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
400
690
|
// 查询
|
|
401
|
-
async search () {
|
|
691
|
+
async search (num) {
|
|
692
|
+
if (num == 0) {
|
|
693
|
+
this.conditionData()
|
|
694
|
+
}
|
|
402
695
|
let http = new HttpResetClass()
|
|
403
696
|
let data = {
|
|
404
|
-
condition:
|
|
697
|
+
condition: this.condition,
|
|
405
698
|
f_process_id: this.selectdata.f_process_id
|
|
406
699
|
}
|
|
407
700
|
let res = await http.load('POST', 'rs/sql/getAddresAndUserinfoAndUserfilesAmountDevices', {data:data}, {
|
|
@@ -440,7 +733,34 @@ export default {
|
|
|
440
733
|
// 将选的文件清空
|
|
441
734
|
this.$refs.file.$el.querySelector('input').value = ''
|
|
442
735
|
this.search()
|
|
443
|
-
}
|
|
736
|
+
},
|
|
737
|
+
async confirm () {
|
|
738
|
+
console.log('传入数据:')
|
|
739
|
+
// 添加组织信息
|
|
740
|
+
this.fireinfo.f_user_id = this.userinfo.userfiles[0].f_user_id
|
|
741
|
+
this.fireinfo.f_userfiles_id = this.userinfo.userfiles[0].f_userfiles_id
|
|
742
|
+
this.fireinfo.f_operatorid = this.$login.f.id
|
|
743
|
+
this.fireinfo.f_operator = this.$login.f.name
|
|
744
|
+
this.fireinfo.f_state = "有效"
|
|
745
|
+
|
|
746
|
+
let http = new HttpResetClass()
|
|
747
|
+
let data = {
|
|
748
|
+
fireinfo: this.fireinfo
|
|
749
|
+
}
|
|
750
|
+
let res = await http.load('POST', 'rs/logic/addInstallationDetailsFire', {data:data}, {
|
|
751
|
+
resolveMsg: "添加成功",
|
|
752
|
+
rejectMsg: "添加失败"
|
|
753
|
+
}).then((res) => {
|
|
754
|
+
this.cancel()
|
|
755
|
+
})
|
|
756
|
+
},
|
|
757
|
+
cancel () {
|
|
758
|
+
this.showFilePage = false
|
|
759
|
+
},
|
|
760
|
+
async clear() {
|
|
761
|
+
this.query = {}
|
|
762
|
+
this.condition = "1 = 1"
|
|
763
|
+
},
|
|
444
764
|
},
|
|
445
765
|
events: {
|
|
446
766
|
async 'onFileUpload'(file, result) {
|
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<style id="style">
|
|
3
|
-
td{
|
|
4
|
-
height: 50px;
|
|
5
|
-
width: 40px;
|
|
6
|
-
text-align: center;
|
|
7
|
-
}
|
|
8
|
-
table{
|
|
9
|
-
margin: auto;
|
|
10
|
-
width: 100%;
|
|
11
|
-
border-collapse:collapse;
|
|
12
|
-
border: 1px solid black;
|
|
13
|
-
}
|
|
14
|
-
h1,h2,h3,h4,h5,h6 {
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
.date{
|
|
18
|
-
float: left;
|
|
19
|
-
padding-left: 30px;
|
|
20
|
-
}
|
|
21
|
-
.number{
|
|
22
|
-
float: right;
|
|
23
|
-
padding-right: 30px;
|
|
24
|
-
}
|
|
25
|
-
.rescue{
|
|
26
|
-
float: left;
|
|
27
|
-
padding: 0 30px 0 40px;
|
|
28
|
-
}
|
|
29
|
-
.service{
|
|
30
|
-
float: left;
|
|
31
|
-
}
|
|
32
|
-
.payee{
|
|
33
|
-
float: right;
|
|
34
|
-
padding-right: 30px;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
<div id="print">
|
|
38
|
-
<h4>陕西中盛天然气有限公司收费单</h4>
|
|
39
|
-
<span>
|
|
40
|
-
<p class="date">{{new Date().Format('yyyy-MM-dd HH:mm:ss')}}</p>
|
|
41
|
-
<p class="number">缴费编号:{{ charge.f_charge_number }}</p>
|
|
42
|
-
</span>
|
|
43
|
-
<table border="1">
|
|
44
|
-
<tr>
|
|
45
|
-
<td>用户姓名</td>
|
|
46
|
-
<td colspan="2">{{ f_user_name }}</td>
|
|
47
|
-
<td>联系电话</td>
|
|
48
|
-
<td>{{ f_user_phone }}</td>
|
|
49
|
-
</tr>
|
|
50
|
-
<!-- <tr>-->
|
|
51
|
-
<!-- <td>地  址</td>-->
|
|
52
|
-
<!-- <td colspan="4">{{ f_useraddress }}</td>-->
|
|
53
|
-
<!-- </tr>-->
|
|
54
|
-
<tr>
|
|
55
|
-
<td>收费项目</td>
|
|
56
|
-
<td colspan="2">安装费</td>
|
|
57
|
-
<td>收费方式</td>
|
|
58
|
-
<td>{{ charge.f_payment_method }}</td>
|
|
59
|
-
</tr>
|
|
60
|
-
<tr>
|
|
61
|
-
<td>收费金额</td>
|
|
62
|
-
<td>{{ charge.f_charge_money }}</td>
|
|
63
|
-
<td>大  写</td>
|
|
64
|
-
<td colspan="2">{{ charge.f_amount_words }}</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td>备  注</td>
|
|
68
|
-
<td colspan="4">{{ selectdata.f_entry_name }}</td>
|
|
69
|
-
</tr>
|
|
70
|
-
</table>
|
|
71
|
-
<span>
|
|
72
|
-
<p class="rescue">
|
|
73
|
-
<!-- 抢险电话:5835588-->
|
|
74
|
-
</p>
|
|
75
|
-
<p class="service">
|
|
76
|
-
<!-- 服务电话:3718002-->
|
|
77
|
-
</p>
|
|
78
|
-
<p class="payee">收款人:{{ charge.f_charge_collectors }}</p>
|
|
79
|
-
</span>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<print-element v-show="false" v-ref:print id='print' styleid='style'
|
|
83
|
-
top='40' left='60' width='100%' height='100%'>
|
|
84
|
-
</print-element>
|
|
85
|
-
</template>
|
|
86
|
-
|
|
87
|
-
<script>
|
|
88
|
-
import { isEmpty } from '../../../Util'
|
|
89
|
-
Date.prototype.Format = function (fmt) {
|
|
90
|
-
var o = {
|
|
91
|
-
"M+": this.getMonth() + 1, //月份
|
|
92
|
-
"d+": this.getDate(), //日
|
|
93
|
-
"H+": this.getHours(), //小时
|
|
94
|
-
"m+": this.getMinutes(), //分
|
|
95
|
-
"s+": this.getSeconds(), //秒
|
|
96
|
-
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
97
|
-
"S": this.getMilliseconds() //毫秒
|
|
98
|
-
};
|
|
99
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
100
|
-
for (var k in o)
|
|
101
|
-
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
102
|
-
return fmt;
|
|
103
|
-
}
|
|
104
|
-
export default {
|
|
105
|
-
title: '打印收费票据',
|
|
106
|
-
props: ['selectdata', 'charge'],
|
|
107
|
-
data () {
|
|
108
|
-
return {}
|
|
109
|
-
},
|
|
110
|
-
ready () {
|
|
111
|
-
console.log('------------------打印-------------------')
|
|
112
|
-
console.log()
|
|
113
|
-
},
|
|
114
|
-
computed: {
|
|
115
|
-
f_user_name () {
|
|
116
|
-
return isEmpty(this.charge.f_user_name) ? this.selectdata.f_contact : this.charge.f_user_name
|
|
117
|
-
},
|
|
118
|
-
f_user_phone () {
|
|
119
|
-
return isEmpty(this.charge.f_user_phone) ? this.selectdata.f_phone : this.charge.f_user_phone
|
|
120
|
-
},
|
|
121
|
-
f_useraddress () {
|
|
122
|
-
return isEmpty(this.charge.f_useraddress) ? `武安市${this.selectdata.f_street}${this.selectdata.f_residential_area}` : `武安市${this.charge.f_useraddress}`
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
</script>
|
|
127
|
-
|
|
128
|
-
<style scoped>
|
|
129
|
-
|
|
130
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<style id="style">
|
|
3
|
+
td{
|
|
4
|
+
height: 50px;
|
|
5
|
+
width: 40px;
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
table{
|
|
9
|
+
margin: auto;
|
|
10
|
+
width: 100%;
|
|
11
|
+
border-collapse:collapse;
|
|
12
|
+
border: 1px solid black;
|
|
13
|
+
}
|
|
14
|
+
h1,h2,h3,h4,h5,h6 {
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
.date{
|
|
18
|
+
float: left;
|
|
19
|
+
padding-left: 30px;
|
|
20
|
+
}
|
|
21
|
+
.number{
|
|
22
|
+
float: right;
|
|
23
|
+
padding-right: 30px;
|
|
24
|
+
}
|
|
25
|
+
.rescue{
|
|
26
|
+
float: left;
|
|
27
|
+
padding: 0 30px 0 40px;
|
|
28
|
+
}
|
|
29
|
+
.service{
|
|
30
|
+
float: left;
|
|
31
|
+
}
|
|
32
|
+
.payee{
|
|
33
|
+
float: right;
|
|
34
|
+
padding-right: 30px;
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
<div id="print">
|
|
38
|
+
<h4>陕西中盛天然气有限公司收费单</h4>
|
|
39
|
+
<span>
|
|
40
|
+
<p class="date">{{new Date().Format('yyyy-MM-dd HH:mm:ss')}}</p>
|
|
41
|
+
<p class="number">缴费编号:{{ charge.f_charge_number }}</p>
|
|
42
|
+
</span>
|
|
43
|
+
<table border="1">
|
|
44
|
+
<tr>
|
|
45
|
+
<td>用户姓名</td>
|
|
46
|
+
<td colspan="2">{{ f_user_name }}</td>
|
|
47
|
+
<td>联系电话</td>
|
|
48
|
+
<td>{{ f_user_phone }}</td>
|
|
49
|
+
</tr>
|
|
50
|
+
<!-- <tr>-->
|
|
51
|
+
<!-- <td>地  址</td>-->
|
|
52
|
+
<!-- <td colspan="4">{{ f_useraddress }}</td>-->
|
|
53
|
+
<!-- </tr>-->
|
|
54
|
+
<tr>
|
|
55
|
+
<td>收费项目</td>
|
|
56
|
+
<td colspan="2">安装费</td>
|
|
57
|
+
<td>收费方式</td>
|
|
58
|
+
<td>{{ charge.f_payment_method }}</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td>收费金额</td>
|
|
62
|
+
<td>{{ charge.f_charge_money }}</td>
|
|
63
|
+
<td>大  写</td>
|
|
64
|
+
<td colspan="2">{{ charge.f_amount_words }}</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>备  注</td>
|
|
68
|
+
<td colspan="4">{{ selectdata.f_entry_name }}</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</table>
|
|
71
|
+
<span>
|
|
72
|
+
<p class="rescue">
|
|
73
|
+
<!-- 抢险电话:5835588-->
|
|
74
|
+
</p>
|
|
75
|
+
<p class="service">
|
|
76
|
+
<!-- 服务电话:3718002-->
|
|
77
|
+
</p>
|
|
78
|
+
<p class="payee">收款人:{{ charge.f_charge_collectors }}</p>
|
|
79
|
+
</span>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<print-element v-show="false" v-ref:print id='print' styleid='style'
|
|
83
|
+
top='40' left='60' width='100%' height='100%'>
|
|
84
|
+
</print-element>
|
|
85
|
+
</template>
|
|
86
|
+
|
|
87
|
+
<script>
|
|
88
|
+
import { isEmpty } from '../../../Util'
|
|
89
|
+
Date.prototype.Format = function (fmt) {
|
|
90
|
+
var o = {
|
|
91
|
+
"M+": this.getMonth() + 1, //月份
|
|
92
|
+
"d+": this.getDate(), //日
|
|
93
|
+
"H+": this.getHours(), //小时
|
|
94
|
+
"m+": this.getMinutes(), //分
|
|
95
|
+
"s+": this.getSeconds(), //秒
|
|
96
|
+
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
|
|
97
|
+
"S": this.getMilliseconds() //毫秒
|
|
98
|
+
};
|
|
99
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
|
|
100
|
+
for (var k in o)
|
|
101
|
+
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
102
|
+
return fmt;
|
|
103
|
+
}
|
|
104
|
+
export default {
|
|
105
|
+
title: '打印收费票据',
|
|
106
|
+
props: ['selectdata', 'charge'],
|
|
107
|
+
data () {
|
|
108
|
+
return {}
|
|
109
|
+
},
|
|
110
|
+
ready () {
|
|
111
|
+
console.log('------------------打印-------------------')
|
|
112
|
+
console.log()
|
|
113
|
+
},
|
|
114
|
+
computed: {
|
|
115
|
+
f_user_name () {
|
|
116
|
+
return isEmpty(this.charge.f_user_name) ? this.selectdata.f_contact : this.charge.f_user_name
|
|
117
|
+
},
|
|
118
|
+
f_user_phone () {
|
|
119
|
+
return isEmpty(this.charge.f_user_phone) ? this.selectdata.f_phone : this.charge.f_user_phone
|
|
120
|
+
},
|
|
121
|
+
f_useraddress () {
|
|
122
|
+
return isEmpty(this.charge.f_useraddress) ? `武安市${this.selectdata.f_street}${this.selectdata.f_residential_area}` : `武安市${this.charge.f_useraddress}`
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
</script>
|
|
127
|
+
|
|
128
|
+
<style scoped>
|
|
129
|
+
|
|
130
|
+
</style>
|
|
@@ -727,9 +727,11 @@ export default {
|
|
|
727
727
|
}
|
|
728
728
|
//拼写合同编号
|
|
729
729
|
if (this.selectdata.f_apply_type == '工商户报建') {
|
|
730
|
-
this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value
|
|
730
|
+
this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value
|
|
731
|
+
// this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
|
|
731
732
|
}else {
|
|
732
|
-
this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value
|
|
733
|
+
this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value
|
|
734
|
+
// this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
|
|
733
735
|
}
|
|
734
736
|
}
|
|
735
737
|
}
|