safecheck-client 4.0.1-44 → 4.0.1-46
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "safecheck-client",
|
3
3
|
"//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
|
4
|
-
"version": "4.0.1-
|
4
|
+
"version": "4.0.1-46",
|
5
5
|
"description": "安检模块 前端组件",
|
6
6
|
"author": "丁新 <417755458@qq.com>",
|
7
7
|
"license": "ISC",
|
@@ -305,6 +305,9 @@
|
|
305
305
|
<data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
|
306
306
|
<template partial='head'>
|
307
307
|
<tr>
|
308
|
+
<th>
|
309
|
+
<nobr>回访</nobr>
|
310
|
+
</th>
|
308
311
|
<th>
|
309
312
|
<nobr>客户编号</nobr>
|
310
313
|
</th>
|
@@ -374,7 +377,10 @@
|
|
374
377
|
</tr>
|
375
378
|
</template>
|
376
379
|
<template partial='body'>
|
377
|
-
|
380
|
+
<td style="text-align: center">
|
381
|
+
<button class="button_spacing button_search-1" v-if="!row.f_is_visit" @click='$parent.$parent.$parent.visit(row)'>回访</button>
|
382
|
+
<button class="button_spacing button_search-1" v-else @click='$parent.$parent.$parent.showVisit(row)'>查看</button>
|
383
|
+
</td>
|
378
384
|
<td style="text-align: center">{{row.f_userinfo_code}}</td>
|
379
385
|
<td style="text-align: center">{{row.f_user_name}}</td>
|
380
386
|
<td style="text-align: center">{{row.f_meternumber}}</td>
|
@@ -424,6 +430,227 @@
|
|
424
430
|
<new-check-paper v-if="showinfo2" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback1"></new-check-paper>
|
425
431
|
<new-check-paper-temp v-if="showinfo3" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback2"></new-check-paper-temp>
|
426
432
|
<new-check-paper-new v-if="showinfo4" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback3"></new-check-paper-new>
|
433
|
+
<modal :show.sync="show" width="80%">
|
434
|
+
<div slot="modal-header" class="modal-header">
|
435
|
+
<h4 class="modal-title">安检电话抽检单录入</h4>
|
436
|
+
<button type="button" class="close" @click="close()"><span>×</span></button>
|
437
|
+
</div>
|
438
|
+
<div slot="modal-body" class="modal-body">
|
439
|
+
<form class="form-horizontal">
|
440
|
+
<div class="row">
|
441
|
+
<div class="form-group col-sm-3">
|
442
|
+
<label class="col-sm-4 control-label">客户编号:</label>
|
443
|
+
<div class="col-sm-8">
|
444
|
+
<input type="text" class="form-control" v-model="formData.f_userinfo_code" readonly>
|
445
|
+
</div>
|
446
|
+
</div>
|
447
|
+
<div class="form-group col-sm-3">
|
448
|
+
<label class="col-sm-4 control-label">姓名:</label>
|
449
|
+
<div class="col-sm-8">
|
450
|
+
<input type="text" class="form-control" v-model="formData.f_user_name" readonly>
|
451
|
+
</div>
|
452
|
+
</div>
|
453
|
+
<div class="form-group col-sm-6">
|
454
|
+
<label class="col-sm-2 control-label">地址:</label>
|
455
|
+
<div class="col-sm-10">
|
456
|
+
<input type="text" class="form-control" v-model="formData.f_address" readonly>
|
457
|
+
</div>
|
458
|
+
</div>
|
459
|
+
</div>
|
460
|
+
<div class="row">
|
461
|
+
<div class="form-group col-sm-3">
|
462
|
+
<label class="col-sm-4 control-label">客户电话:</label>
|
463
|
+
<div class="col-sm-8">
|
464
|
+
<input type="text" class="form-control" v-model="formData.f_user_phone" readonly>
|
465
|
+
</div>
|
466
|
+
</div>
|
467
|
+
<div class="form-group col-sm-3">
|
468
|
+
<label class="col-sm-4 control-label">被访人:</label>
|
469
|
+
<div class="col-sm-8">
|
470
|
+
<input type="text" class="form-control" v-model="formData.f_interviewee" :readonly="isReadOnly">
|
471
|
+
</div>
|
472
|
+
</div>
|
473
|
+
<div class="form-group col-sm-3">
|
474
|
+
<label class="col-sm-4 control-label">抽检人:</label>
|
475
|
+
<div class="col-sm-8">
|
476
|
+
<input type="text" class="form-control" v-model="formData.f_inspector" readonly>
|
477
|
+
</div>
|
478
|
+
</div>
|
479
|
+
<div class="form-group col-sm-3">
|
480
|
+
<label class="col-sm-4 control-label">日期:</label>
|
481
|
+
<div class="col-sm-8">
|
482
|
+
<input type="text" class="form-control" v-model="formData.f_check_date" readonly>
|
483
|
+
</div>
|
484
|
+
</div>
|
485
|
+
</div>
|
486
|
+
</form>
|
487
|
+
|
488
|
+
<table class="table table-bordered">
|
489
|
+
<thead>
|
490
|
+
<tr>
|
491
|
+
<th>序号</th>
|
492
|
+
<th>抽检项目</th>
|
493
|
+
<th>情况登记</th>
|
494
|
+
</tr>
|
495
|
+
</thead>
|
496
|
+
<tbody>
|
497
|
+
<tr>
|
498
|
+
<td>1</td>
|
499
|
+
<td>安检前有没有看到即将入户安检的通知</td>
|
500
|
+
<td>
|
501
|
+
<label class="radio-inline">
|
502
|
+
<input type="radio" name="q1" value="是" v-model="formData.q1"> 是
|
503
|
+
</label>
|
504
|
+
<label class="radio-inline">
|
505
|
+
<input type="radio" name="q1" value="否" v-model="formData.q1"> 否
|
506
|
+
</label>
|
507
|
+
</td>
|
508
|
+
</tr>
|
509
|
+
<tr>
|
510
|
+
<td>2</td>
|
511
|
+
<td>安检(维修、抄表)员是否按预约时间入户</td>
|
512
|
+
<td>
|
513
|
+
<label class="radio-inline">
|
514
|
+
<input type="radio" name="q2" value="是" v-model="formData.q2"> 是
|
515
|
+
</label>
|
516
|
+
<label class="radio-inline">
|
517
|
+
<input type="radio" name="q2" value="否" v-model="formData.q2"> 否
|
518
|
+
</label>
|
519
|
+
</td>
|
520
|
+
</tr>
|
521
|
+
<tr>
|
522
|
+
<td>3</td>
|
523
|
+
<td>对安检(维修、抄表)员的服务态度</td>
|
524
|
+
<td>
|
525
|
+
<label class="radio-inline">
|
526
|
+
<input type="radio" name="q3" value="满意" v-model="formData.q3"> 满意
|
527
|
+
</label>
|
528
|
+
<label class="radio-inline">
|
529
|
+
<input type="radio" name="q3" value="一般" v-model="formData.q3"> 一般
|
530
|
+
</label>
|
531
|
+
<label class="radio-inline">
|
532
|
+
<input type="radio" name="q3" value="不满意" v-model="formData.q3"> 不满意
|
533
|
+
</label>
|
534
|
+
</td>
|
535
|
+
</tr>
|
536
|
+
<tr>
|
537
|
+
<td>4</td>
|
538
|
+
<td>安检(维修、抄表)员上门是否穿工作服,出示工作牌</td>
|
539
|
+
<td>
|
540
|
+
<label class="radio-inline">
|
541
|
+
<input type="radio" name="q4" value="是" v-model="formData.q4"> 是
|
542
|
+
</label>
|
543
|
+
<label class="radio-inline">
|
544
|
+
<input type="radio" name="q4" value="否" v-model="formData.q4"> 否
|
545
|
+
</label>
|
546
|
+
</td>
|
547
|
+
</tr>
|
548
|
+
<tr>
|
549
|
+
<td>5</td>
|
550
|
+
<td>安检过程中是否使用U型压力计检测</td>
|
551
|
+
<td>
|
552
|
+
<label class="radio-inline">
|
553
|
+
<input type="radio" name="q5" value="是" v-model="formData.q5"> 是
|
554
|
+
</label>
|
555
|
+
<label class="radio-inline">
|
556
|
+
<input type="radio" name="q5" value="否" v-model="formData.q5"> 否
|
557
|
+
</label>
|
558
|
+
</td>
|
559
|
+
</tr>
|
560
|
+
<tr>
|
561
|
+
<td>6</td>
|
562
|
+
<td>安检(维修、抄表)员有无违反职业道德的行为(吃、拿、卡、要)</td>
|
563
|
+
<td>
|
564
|
+
<label class="radio-inline">
|
565
|
+
<input type="radio" name="q6" value="是" v-model="formData.q6"> 是
|
566
|
+
</label>
|
567
|
+
<label class="radio-inline">
|
568
|
+
<input type="radio" name="q6" value="否" v-model="formData.q6"> 否
|
569
|
+
</label>
|
570
|
+
</td>
|
571
|
+
</tr>
|
572
|
+
<tr>
|
573
|
+
<td>7</td>
|
574
|
+
<td>安检(维修、抄表)员是否向您进行了安全方面的宣传并派发了宣传单</td>
|
575
|
+
<td>
|
576
|
+
<label class="radio-inline">
|
577
|
+
<input type="radio" name="q7" value="是" v-model="formData.q7"> 是
|
578
|
+
</label>
|
579
|
+
<label class="radio-inline">
|
580
|
+
<input type="radio" name="q7" value="否" v-model="formData.q7"> 否
|
581
|
+
</label>
|
582
|
+
</td>
|
583
|
+
</tr>
|
584
|
+
<tr>
|
585
|
+
<td>8</td>
|
586
|
+
<td>安检(维修、抄表)员安检(维修、抄表)后是否向您解释了安检(维修、抄表)结果</td>
|
587
|
+
<td>
|
588
|
+
<label class="radio-inline">
|
589
|
+
<input type="radio" name="q8" value="是" v-model="formData.q8"> 是
|
590
|
+
</label>
|
591
|
+
<label class="radio-inline">
|
592
|
+
<input type="radio" name="q8" value="否" v-model="formData.q8"> 否
|
593
|
+
</label>
|
594
|
+
</td>
|
595
|
+
</tr>
|
596
|
+
<tr>
|
597
|
+
<td>9</td>
|
598
|
+
<td>隐患是否已整改</td>
|
599
|
+
<td>
|
600
|
+
<label class="radio-inline">
|
601
|
+
<input type="radio" name="q9" value="是" v-model="formData.q9"> 是
|
602
|
+
</label>
|
603
|
+
<label class="radio-inline">
|
604
|
+
<input type="radio" name="q9" value="否" v-model="formData.q9"> 否
|
605
|
+
</label>
|
606
|
+
</td>
|
607
|
+
</tr>
|
608
|
+
<tr>
|
609
|
+
<td>10</td>
|
610
|
+
<td>您对我们入户人员的工作效率和工作质量是否满意</td>
|
611
|
+
<td>
|
612
|
+
<label class="radio-inline">
|
613
|
+
<input type="radio" name="q10" value="满意" v-model="formData.q10"> 满意
|
614
|
+
</label>
|
615
|
+
<label class="radio-inline">
|
616
|
+
<input type="radio" name="q10" value="一般" v-model="formData.q10"> 一般
|
617
|
+
</label>
|
618
|
+
<label class="radio-inline">
|
619
|
+
<input type="radio" name="q10" value="不满意" v-model="formData.q10"> 不满意
|
620
|
+
</label>
|
621
|
+
</td>
|
622
|
+
</tr>
|
623
|
+
<tr>
|
624
|
+
<td>11</td>
|
625
|
+
<td>谢谢您对我们这次回访大力配合,请问您对我公司的安检(维修、抄表)工作还有那些好的建议?</td>
|
626
|
+
<td>
|
627
|
+
<textarea class="form-control" rows="3" v-model="formData.q11"></textarea>
|
628
|
+
</td>
|
629
|
+
</tr>
|
630
|
+
<tr>
|
631
|
+
<td>12</td>
|
632
|
+
<td>综合评价:</td>
|
633
|
+
<td>
|
634
|
+
<label class="radio-inline">
|
635
|
+
<input type="radio" name="q12" value="满意" v-model="formData.q12"> 满意
|
636
|
+
</label>
|
637
|
+
<label class="radio-inline">
|
638
|
+
<input type="radio" name="q12" value="一般" v-model="formData.q12"> 一般
|
639
|
+
</label>
|
640
|
+
<label class="radio-inline">
|
641
|
+
<input type="radio" name="q12" value="不满意" v-model="formData.q12"> 不满意
|
642
|
+
</label>
|
643
|
+
</td>
|
644
|
+
</tr>
|
645
|
+
</tbody>
|
646
|
+
</table>
|
647
|
+
|
648
|
+
</div>
|
649
|
+
<div slot="modal-footer" class="modal-footer">
|
650
|
+
<button class="btn btn-primary" @click="save" v-if="!isReadOnly">保存</button>
|
651
|
+
<button class="btn btn-default" @click="close">关闭</button>
|
652
|
+
</div>
|
653
|
+
</modal>
|
427
654
|
</template>
|
428
655
|
|
429
656
|
<script>
|
@@ -480,6 +707,30 @@ export default {
|
|
480
707
|
// }
|
481
708
|
// model.f_subcompany = this.$login.f.f_fengongsi
|
482
709
|
return {
|
710
|
+
formData: {
|
711
|
+
id:'',
|
712
|
+
f_interviewee: '',
|
713
|
+
f_userinfo_code:'',
|
714
|
+
f_address:'',
|
715
|
+
f_user_phone:'',
|
716
|
+
f_user_name:'',
|
717
|
+
f_inspector: this.$login.f.name,
|
718
|
+
f_check_date: Util.toStandardTimeString(),
|
719
|
+
q1: '是',
|
720
|
+
q2: '是',
|
721
|
+
q3: '满意',
|
722
|
+
q4: '是',
|
723
|
+
q5: '是',
|
724
|
+
q6: '否',
|
725
|
+
q7: '是',
|
726
|
+
q8: '是',
|
727
|
+
q9: '是',
|
728
|
+
q10: '满意',
|
729
|
+
q11: '',
|
730
|
+
q12: '满意'
|
731
|
+
},
|
732
|
+
show:false,
|
733
|
+
isReadOnly: false,
|
483
734
|
showinfo1:true,
|
484
735
|
showinfo2:false,
|
485
736
|
showinfo3:false,
|
@@ -555,6 +806,60 @@ export default {
|
|
555
806
|
this.$root.$off('audit-status-changed')
|
556
807
|
},
|
557
808
|
methods: {
|
809
|
+
visit(row){
|
810
|
+
this.show = true
|
811
|
+
this.formData.f_address = row.f_address
|
812
|
+
this.formData.f_userinfo_code = row.f_userinfo_code
|
813
|
+
this.formData.f_user_phone = row.f_user_phone
|
814
|
+
this.formData.f_user_name = row.f_user_name
|
815
|
+
this.formData.id = row.id
|
816
|
+
},
|
817
|
+
showVisit(row){
|
818
|
+
this.formData = JSON.parse(row.f_visit_data)
|
819
|
+
this.show = true
|
820
|
+
this.isReadOnly = true
|
821
|
+
},
|
822
|
+
save(){
|
823
|
+
let data = {
|
824
|
+
f_is_visit : '已回访',
|
825
|
+
f_visit_date : Util.toStandardTimeString(),
|
826
|
+
f_visit_people : this.$login.f.name,
|
827
|
+
f_visit_data : JSON.stringify(this.formData)
|
828
|
+
}
|
829
|
+
const sql = `update t_check_paper set f_is_visit = '${data.f_is_visit}',f_visit_date = '${data.f_visit_date}',f_visit_people = '${data.f_visit_people}',f_visit_data='${data.f_visit_data}' where id = '${this.formData.id}'`
|
830
|
+
new HttpResetClass()
|
831
|
+
.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: sql}},
|
832
|
+
{resolveMsg: null, rejectMsg: null}).catch(resp=>{
|
833
|
+
this.search()
|
834
|
+
this.close()
|
835
|
+
})
|
836
|
+
},
|
837
|
+
close(){
|
838
|
+
this.formData = {
|
839
|
+
id:'',
|
840
|
+
f_interviewee: '',
|
841
|
+
f_userinfo_code:'',
|
842
|
+
f_address:'',
|
843
|
+
f_user_phone:'',
|
844
|
+
f_user_name:'',
|
845
|
+
f_inspector: this.$login.f.name,
|
846
|
+
f_check_date: Util.toStandardTimeString(),
|
847
|
+
q1: '是',
|
848
|
+
q2: '是',
|
849
|
+
q3: '满意',
|
850
|
+
q4: '是',
|
851
|
+
q5: '是',
|
852
|
+
q6: '否',
|
853
|
+
q7: '是',
|
854
|
+
q8: '是',
|
855
|
+
q9: '是',
|
856
|
+
q10: '满意',
|
857
|
+
q11: '',
|
858
|
+
q12: '满意'
|
859
|
+
}
|
860
|
+
this.show = false
|
861
|
+
this.isReadOnly = false
|
862
|
+
},
|
558
863
|
showback1(){
|
559
864
|
this.showinfo1 = true
|
560
865
|
this.showinfo2 = false
|
@@ -304,10 +304,10 @@
|
|
304
304
|
})
|
305
305
|
//tag
|
306
306
|
},
|
307
|
-
inspect
|
307
|
+
inspect(info) {
|
308
308
|
// 当前系统时间
|
309
309
|
let newdate = Util.toStandardTimeString()
|
310
|
-
if(info.f_last_check_state == '入户' && info.f_last_check_date && info.f_user_type=='民用'){
|
310
|
+
if (info.f_last_check_state == '入户' && info.f_last_check_date && info.f_user_type == '民用') {
|
311
311
|
// 解析上次安检时间
|
312
312
|
let lastCheckDate = new Date(info.f_last_check_date)
|
313
313
|
let currentDate = new Date(newdate)
|
@@ -317,30 +317,28 @@
|
|
317
317
|
// 6个月 = 6 * 30 * 24 * 60 * 60 * 1000 毫秒(约15552000000毫秒)
|
318
318
|
// 更精确的计算:6个月 = 6 * 平均每月30.44天 * 24 * 60 * 60 * 1000
|
319
319
|
let sixMonthsInMs = 6 * 30 * 24 * 60 * 60 * 1000
|
320
|
-
if(timeDiff < sixMonthsInMs){
|
320
|
+
if (timeDiff < sixMonthsInMs) {
|
321
321
|
this.$showMessage('该用户半年内已进行入户安检,是否继续安检?', ['confirm', 'cancel']).then((res) => {
|
322
|
-
if (res
|
323
|
-
|
322
|
+
if (res == 'confirm') {
|
323
|
+
info.id = ''
|
324
|
+
info.f_state = '未检'
|
325
|
+
info.f_no_checkplan = '无计划安检'
|
326
|
+
//tag
|
327
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: info.f_userinfo_id}}).then((response) => {
|
328
|
+
//tag)
|
329
|
+
info['f_plan_meters'] = response.data
|
330
|
+
var pardate = {
|
331
|
+
_this: this,
|
332
|
+
tittle: '安检详情',
|
333
|
+
safe: true
|
334
|
+
}
|
335
|
+
this.$dispatch('gotoson', pardate)
|
336
|
+
this.$goto('safecheck-order-v', {item: info, role: 'inspect', parentPage: 'AddPlanItem'}, 'self', this.reload)
|
337
|
+
})
|
324
338
|
}
|
325
339
|
})
|
326
340
|
}
|
327
341
|
}
|
328
|
-
info.id = ''
|
329
|
-
info.f_state = '未检'
|
330
|
-
info.f_no_checkplan = '无计划安检'
|
331
|
-
//tag
|
332
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
|
333
|
-
//tag)
|
334
|
-
info['f_plan_meters'] = response.data
|
335
|
-
var pardate = {
|
336
|
-
_this:this,
|
337
|
-
tittle:'安检详情',
|
338
|
-
safe:true
|
339
|
-
}
|
340
|
-
this.$dispatch('gotoson',pardate)
|
341
|
-
this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
|
342
|
-
|
343
|
-
})
|
344
342
|
},
|
345
343
|
Mreadibook(){
|
346
344
|
this.cbc=[]
|