safecheck-client 4.0.1-91 → 4.0.1-94
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 +2 -2
- package/src/App.vue +31 -31
- package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
- package/src/components/DefectDealMain/DefectListNew.vue +642 -642
- package/src/components/NewDefectList/DefectListNew.vue +6 -0
- package/src/components/Util/RightTreeSafeDep.vue +362 -362
- package/src/components/android/AddPlanItem.vue +447 -447
- package/src/components/android/AddPlanItemYy.vue +451 -451
- package/src/components/android/AddSpecialPlanItem.vue +426 -426
- package/src/components/android/AndroidDefectDeal.vue +701 -701
- package/src/components/android/CurrentCreateYy.vue +1051 -1051
- package/src/components/android/DailyworkloadQuery.vue +473 -473
- package/src/components/android/Devices.vue +327 -327
- package/src/components/android/Devicesm.vue +327 -327
- package/src/components/android/NewCheckpaperAndroid.vue +1338 -1343
- package/src/components/android/PaperFeedbackm.vue +1026 -1026
- package/src/components/android/PhoneRecordInfo.vue +113 -113
- package/src/components/android/PhoneSellInfo.vue +113 -113
- package/src/components/android/PhoneUpDetail.vue +1040 -1040
- package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
- package/src/components/android/QRCode/QRCodePage.vue +212 -212
- package/src/components/android/SafePlanItem.vue +509 -509
- package/src/components/android/UploadPage.vue +232 -232
- package/src/components/android/examples/SafeListExamples.vue +296 -296
- package/src/components/android/old/PaperFeedback.vue +1015 -1015
- package/src/components/android/recheck/Recheck.vue +402 -402
- package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
- package/src/components/checkplan/checkmsg.vue +459 -459
- package/src/components/defect/DefectList.vue +507 -507
- package/src/components/defect/DefectListWeixiu.vue +484 -484
- package/src/components/filialCircle/CircleList.vue +139 -139
- package/src/components/inspections/AddInspectPlanItem.vue +325 -325
- package/src/components/inspections/AddInspectPlanItems.vue +325 -325
- package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
- package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
- package/src/components/inspections/inspectionOrderV.vue +1853 -1853
- package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
- package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
- package/src/components/inspections/inspectionUserInfo.vue +398 -398
- package/src/components/map/PersonTrack.vue +226 -226
- package/src/components/paper/RegionalList.vue +220 -220
- package/src/components/pc/AnnouncementPC.vue +524 -524
- package/src/components/pc/DefectList.vue +742 -742
- package/src/components/pc/DefectMaterialLook.vue +98 -98
- package/src/components/pc/DeviceChange.vue +1068 -1068
- package/src/components/pc/PaperDefectMain.vue +905 -905
- package/src/components/pc/RoleSelectorDep.vue +166 -166
- package/src/components/pc/SafeVisitInfo.vue +261 -261
- package/src/components/report/HiddenSituation.vue +165 -165
- package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
- package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
- package/src/components/rongcheng/DefectList.vue +560 -560
- package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
- package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
- package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
- package/src/components/safecheckNew/android/Recheck.vue +379 -379
- package/src/components/sendsingle/EquipmentManagement.vue +727 -727
- package/src/components/shaoguan/DefectList.vue +473 -473
- package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
- package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
- package/src/components/userfile/SecurityAudit.vue +243 -243
- package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
- package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
- package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
- package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
- package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
- package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
- package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
- package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
- package/src/filiale/bayan/android/Edit.vue +132 -132
- package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
- package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
- package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
- package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
- package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
- package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
- package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
- package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
- package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
- package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
- package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
- package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
- package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
- package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
- package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
- package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
- package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
- package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
- package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
- package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
- package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
- package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
- package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
- package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
- package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
- package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
- package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
- package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
- package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
- package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
- package/src/filiale/jinhong/android/CurrentCreate.vue +1310 -1284
- package/src/filiale/jinhong/pc/CheckBookList.vue +393 -393
- package/src/filiale/jinhong/pc/PaperList.vue +853 -853
- package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
- package/src/filiale/jinhong/pc/checkPlanList.vue +420 -420
- package/src/filiale/jinhong/pc/checkUserList.vue +770 -766
- package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
- package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
- package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
- package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
- package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
- package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
- package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
- package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
- package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
- package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
- package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
- package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
- package/src/filiale/libo/android/CurrentCreate.vue +1091 -1091
- package/src/filiale/libo/android.js +15 -15
- package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
- package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
- package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
- package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
- package/src/filiale/meihekou/android/MeterReading.vue +110 -110
- package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
- package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
- package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
- package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
- package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
- package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
- package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
- package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
- package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
- package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
- package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
- package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
- package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
- package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
- package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
- package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
- package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -359
- package/src/filiale/qingjian/pc.js +15 -15
- package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
- package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
- package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
- package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
- package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
- package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
- package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
- package/src/filiale/rizhao/pc/DefectList.vue +489 -489
- package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
- package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
- package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
- package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
- package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
- package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
- package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
- package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
- package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
- package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
- package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
- package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
- package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
- package/src/filiale/shimen/pc/DefectList.vue +473 -473
- package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
- package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
- package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
- package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
- package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
- package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
- package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
- package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
- package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
- package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
- package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
- package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
- package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
- package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
- package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
- package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
- package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
- package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
- package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
- package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
- package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
- package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
- package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
- package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
- package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
- package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
- package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
- package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
- package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
- package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
- package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
- package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
- package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
- package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
- package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
- package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
- package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
- package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
- package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
- package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
- package/src/filiale/wenxi/pc/DefectList.vue +653 -653
- package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
- package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
- package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
- package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
- package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
- package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
- package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
- package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
- package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
- package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
- package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
- package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
- package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
- package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
- package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
- package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
- package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
- package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
- package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
- package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
- package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
- package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
- package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
- package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
- package/src/filiale/yunchengminsheng/android.js +15 -15
- package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
- package/src/filiale/yunchengminsheng/pc.js +15 -15
- package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
- package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
- package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
- package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
- package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
- package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
- package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
- package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
- package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
- package/src/main.js +33 -32
- package/src/safecheck.js +924 -924
@@ -1,1284 +1,1310 @@
|
|
1
|
-
<style scoped>
|
2
|
-
.bg {
|
3
|
-
background-color: blue;
|
4
|
-
height: 1px;
|
5
|
-
border: 0;
|
6
|
-
}
|
7
|
-
|
8
|
-
.app-row {
|
9
|
-
background-color: white;
|
10
|
-
padding: 10px 10px 0 10px;
|
11
|
-
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
12
|
-
}
|
13
|
-
|
14
|
-
.search_input {
|
15
|
-
border: 0;
|
16
|
-
outline: none;
|
17
|
-
}
|
18
|
-
|
19
|
-
.font {
|
20
|
-
font: 15px PingFang-SC-Medium;
|
21
|
-
color: #666666;
|
22
|
-
}
|
23
|
-
|
24
|
-
.input-font {
|
25
|
-
font: 15px PingFang-SC-Medium;
|
26
|
-
color: #333333;
|
27
|
-
}
|
28
|
-
|
29
|
-
.btn-font {
|
30
|
-
font: 600 16px PingFang-SC-Bold;
|
31
|
-
color: #499EDF;
|
32
|
-
}
|
33
|
-
|
34
|
-
.btn-color {
|
35
|
-
background-color: #FFFFFF;
|
36
|
-
border-radius: 10px;
|
37
|
-
border: 1px solid #499EDF;
|
38
|
-
}
|
39
|
-
|
40
|
-
.app-text {
|
41
|
-
font-size: 12px;
|
42
|
-
}
|
43
|
-
|
44
|
-
.panel-self {
|
45
|
-
border-radius: 10px;
|
46
|
-
border: 1px solid #499EDF;
|
47
|
-
background-color: #F8F8F8;
|
48
|
-
}
|
49
|
-
|
50
|
-
.yybtn-color {
|
51
|
-
background-color: #499edf;
|
52
|
-
border-radius: 4px;
|
53
|
-
border: 1px solid #499EDF;
|
54
|
-
color: #FFFFFF;
|
55
|
-
font: 14px PingFang-SC-Bold;
|
56
|
-
}
|
57
|
-
|
58
|
-
.qxbtn-color {
|
59
|
-
background-color: #FFFFFF;
|
60
|
-
border-radius: 4px;
|
61
|
-
color: #499edf;
|
62
|
-
font: 14px PingFang-SC-Bold;
|
63
|
-
border: 1px solid #499EDF;
|
64
|
-
}
|
65
|
-
|
66
|
-
.button_shrink_top {
|
67
|
-
width: 35px;
|
68
|
-
height: 35px;
|
69
|
-
background-size: 100%;
|
70
|
-
background-image: url("../../../../static/newStyle/stretch_top.png")
|
71
|
-
}
|
72
|
-
|
73
|
-
.button_shrink_bottom {
|
74
|
-
width: 35px;
|
75
|
-
height: 35px;
|
76
|
-
background-size: 100%;
|
77
|
-
background-image: url("../../../../static/newStyle/stretch_bottom.png")
|
78
|
-
}
|
79
|
-
|
80
|
-
.button_shrink_left {
|
81
|
-
width: 35px;
|
82
|
-
height: 35px;
|
83
|
-
background-size: 100%;
|
84
|
-
background-image: url("../../../../static/newStyle/stretch_left.png")
|
85
|
-
}
|
86
|
-
|
87
|
-
.button_shrink_right {
|
88
|
-
width: 35px;
|
89
|
-
height: 35px;
|
90
|
-
background-size: 100%;
|
91
|
-
background-image: url("../../../../static/newStyle/stretch_right.png")
|
92
|
-
}
|
93
|
-
|
94
|
-
.stats-bar {
|
95
|
-
display: flex;
|
96
|
-
justify-content: space-between;
|
97
|
-
align-items: center;
|
98
|
-
background: #fff;
|
99
|
-
border-radius: 10px;
|
100
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
101
|
-
padding: 16px 8px;
|
102
|
-
margin: 12px 0 20px 0;
|
103
|
-
}
|
104
|
-
|
105
|
-
.stats-item {
|
106
|
-
flex: 1;
|
107
|
-
text-align: center;
|
108
|
-
}
|
109
|
-
|
110
|
-
.stats-item .stats-value {
|
111
|
-
font-size: 22px;
|
112
|
-
font-weight: bold;
|
113
|
-
margin-bottom: 2px;
|
114
|
-
display: block;
|
115
|
-
}
|
116
|
-
|
117
|
-
.stats-item .stats-label {
|
118
|
-
font-size: 13px;
|
119
|
-
color: #888;
|
120
|
-
}
|
121
|
-
|
122
|
-
.stats-value.blue {
|
123
|
-
color: #499EDF;
|
124
|
-
}
|
125
|
-
|
126
|
-
.stats-value.green {
|
127
|
-
color: #4CAF50;
|
128
|
-
}
|
129
|
-
|
130
|
-
.stats-value.red {
|
131
|
-
color: #F44336;
|
132
|
-
}
|
133
|
-
|
134
|
-
.stats-value.orange {
|
135
|
-
color: #FF9800;
|
136
|
-
}
|
137
|
-
</style>
|
138
|
-
<style>
|
139
|
-
.clear-select-with .dropdown-menu {
|
140
|
-
left: 0px !important;
|
141
|
-
width: 200% !important;
|
142
|
-
}
|
143
|
-
</style>
|
144
|
-
<template>
|
145
|
-
<div style="height: auto;width: 100%">
|
146
|
-
<criteria-paged :model="model" v-ref:paged>
|
147
|
-
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
148
|
-
<div partial>
|
149
|
-
<form>
|
150
|
-
<!-- <div class="row app-row">-->
|
151
|
-
<!-- <!–小区名称–>-->
|
152
|
-
<!-- <v-select :value.sync="model.f_residential_area" class="input-font clear-select-with"-->
|
153
|
-
<!-- :options='$parent.$parent.residentialAreaOptions' placeholder='小区名称' :width="'32.5%'"-->
|
154
|
-
<!-- v-model="model.f_residential_area" condition="ti.f_residential_area = '{}'"-->
|
155
|
-
<!-- @change="$parent.$parent.getbuilds" close-on-select clear-button>-->
|
156
|
-
<!-- </v-select>-->
|
157
|
-
<!-- <!–楼栋–>-->
|
158
|
-
<!-- <v-select :value.sync="model.f_building" class="input-font" :options='$parent.$parent.buildOptions'-->
|
159
|
-
<!-- placeholder='楼栋' :width="'32.5%'" v-model="model.f_building" condition="ti.f_building = '{}'"-->
|
160
|
-
<!-- @change="$parent.$parent.getUnits" close-on-select clear-button>-->
|
161
|
-
<!-- </v-select>-->
|
162
|
-
<!-- <!–单元–>-->
|
163
|
-
<!-- <v-select :value.sync="model.f_unit" class="input-font" :options='$parent.$parent.unitOptions'-->
|
164
|
-
<!-- placeholder='单元' :width="'32.5%'" v-model="model.f_unit" condition="ti.f_unit = '{}'" close-on-select-->
|
165
|
-
<!-- clear-button>-->
|
166
|
-
<!-- </v-select>-->
|
167
|
-
<!-- </div>-->
|
168
|
-
<div class="row app-row">
|
169
|
-
<div class="col-xs-4">
|
170
|
-
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
171
|
-
<label for="f_userinfo_code" class="font text-left">用户编号:</label>
|
172
|
-
</div>
|
173
|
-
<div class="col-xs-8">
|
174
|
-
<input id="f_userinfo_code" class="search_input input-font" v-model=model.f_userinfo_code
|
175
|
-
condition="f_userinfo_code like '%{}%'" />
|
176
|
-
</div>
|
177
|
-
</div>
|
178
|
-
<div class="row app-row">
|
179
|
-
<div class="col-xs-4">
|
180
|
-
<img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
181
|
-
<label class="font text-left">用户姓名:</label>
|
182
|
-
</div>
|
183
|
-
<div class="col-xs-8">
|
184
|
-
<input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
|
185
|
-
</div>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
<div class="row app-row">
|
189
|
-
<div class="col-xs-4">
|
190
|
-
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
191
|
-
<label class="font text-left">用户证号:</label>
|
192
|
-
</div>
|
193
|
-
<div class="col-xs-8">
|
194
|
-
<input class="search_input input-font" v-model=model.f_enter_number
|
195
|
-
condition="f_enter_number like '%{}%'" />
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
|
199
|
-
<div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
|
200
|
-
<div class="col-xs-4">
|
201
|
-
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
202
|
-
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
203
|
-
</div>
|
204
|
-
<v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
|
205
|
-
:options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'" v-model="model.f_plan_name"
|
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
|
-
<
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
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
|
-
<span class="stats-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
<span class="stats-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
<span class="stats-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
<span class="stats-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
<span class="stats-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
<!--<
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
<p class="panel-title col-xs-5 text-left
|
351
|
-
<p class="panel-title col-xs-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
<p class="panel-title col-xs-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
<p class="panel-title col-xs-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
<p class="panel-title col-xs-
|
367
|
-
|
368
|
-
|
369
|
-
<!--
|
370
|
-
<!-- <p class="panel-title col-xs-
|
371
|
-
<!--
|
372
|
-
|
373
|
-
|
374
|
-
<p class="panel-title text-left
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
<p class="panel-title text-left
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
<p class="panel-title text-left
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
<p class="panel-title text-left
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
<!--
|
401
|
-
<!-- <p class="panel-title col-xs-
|
402
|
-
<!--
|
403
|
-
<!--
|
404
|
-
<!--
|
405
|
-
<!-- <p class="panel-title col-xs-
|
406
|
-
<!--
|
407
|
-
<!--
|
408
|
-
<!--
|
409
|
-
<!-- <p class="panel-title col-xs-
|
410
|
-
<!--
|
411
|
-
|
412
|
-
<!--<
|
413
|
-
<!--<p class="panel-title col-xs-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
<p class="panel-title col-xs-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
<p class="panel-title col-xs-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
<p class="panel-title col-xs-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
<p class="panel-title col-xs-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
<p class="panel-title col-xs-
|
436
|
-
|
437
|
-
|
438
|
-
<!--<
|
439
|
-
<!--<p class="panel-title col-xs-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
<!--
|
452
|
-
<!-- <button type="button" class="btn
|
453
|
-
<!--
|
454
|
-
<!--
|
455
|
-
|
456
|
-
|
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
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
<
|
508
|
-
|
509
|
-
<th style="
|
510
|
-
|
511
|
-
</
|
512
|
-
|
513
|
-
<
|
514
|
-
|
515
|
-
<td @click="select(row, $index)"
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
</
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
<button class="btn btn-default" @click="
|
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
|
-
<th style="
|
562
|
-
|
563
|
-
</
|
564
|
-
|
565
|
-
<
|
566
|
-
|
567
|
-
<td @click="select(row, $index)"
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
</
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
<button class="btn btn-default" @click="
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
import
|
586
|
-
import
|
587
|
-
import
|
588
|
-
import
|
589
|
-
|
590
|
-
|
591
|
-
http
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
}
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
{ label: '
|
627
|
-
{ label: '
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
{ label: '
|
632
|
-
{ label: '
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
{ label: '
|
637
|
-
{ label: '
|
638
|
-
{ label: '
|
639
|
-
{ label: '
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
{ label: '
|
644
|
-
{ label: '
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
{ label: '
|
649
|
-
{ label: '
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
{ label: '
|
654
|
-
{ label: '
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
this.
|
675
|
-
this.
|
676
|
-
this.
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
condition =
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
this.
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
}
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
}
|
839
|
-
|
840
|
-
condition
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
this.
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
},
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
if (
|
886
|
-
this
|
887
|
-
}
|
888
|
-
}
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
this.
|
910
|
-
|
911
|
-
if (
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
if (this.$refs.paged.$refs.cri.model.
|
1032
|
-
condition +=
|
1033
|
-
|
1034
|
-
|
1035
|
-
if (this
|
1036
|
-
condition +=
|
1037
|
-
}
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
'
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
'
|
1104
|
-
})
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
},
|
1114
|
-
|
1115
|
-
|
1116
|
-
this.buildOptions = []
|
1117
|
-
this.unitOptions = []
|
1118
|
-
this.$refs.paged.$refs.cri.model.
|
1119
|
-
this.$refs.paged.$refs.cri.model.
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
this.
|
1145
|
-
this.$refs.paged.$refs.cri.model.f_unit = ''
|
1146
|
-
if (!
|
1147
|
-
return
|
1148
|
-
}
|
1149
|
-
let criteria = {
|
1150
|
-
items: '
|
1151
|
-
tablename: 't_check_plan_item',
|
1152
|
-
condition: `
|
1153
|
-
groupitem: '
|
1154
|
-
}
|
1155
|
-
let result = HostApp._executeTask({
|
1156
|
-
'type': 'sql',
|
1157
|
-
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1158
|
-
})
|
1159
|
-
if (result.code == 200) {
|
1160
|
-
result.data.rows.forEach(item => this.
|
1161
|
-
}
|
1162
|
-
this.
|
1163
|
-
return Number(a.label) - Number(b.label)
|
1164
|
-
})
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
this.
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
'
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
}
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
}
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1
|
+
<style scoped>
|
2
|
+
.bg {
|
3
|
+
background-color: blue;
|
4
|
+
height: 1px;
|
5
|
+
border: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
.app-row {
|
9
|
+
background-color: white;
|
10
|
+
padding: 10px 10px 0 10px;
|
11
|
+
border-bottom: 1px solid rgba(235, 235, 235, 0.5);
|
12
|
+
}
|
13
|
+
|
14
|
+
.search_input {
|
15
|
+
border: 0;
|
16
|
+
outline: none;
|
17
|
+
}
|
18
|
+
|
19
|
+
.font {
|
20
|
+
font: 15px PingFang-SC-Medium;
|
21
|
+
color: #666666;
|
22
|
+
}
|
23
|
+
|
24
|
+
.input-font {
|
25
|
+
font: 15px PingFang-SC-Medium;
|
26
|
+
color: #333333;
|
27
|
+
}
|
28
|
+
|
29
|
+
.btn-font {
|
30
|
+
font: 600 16px PingFang-SC-Bold;
|
31
|
+
color: #499EDF;
|
32
|
+
}
|
33
|
+
|
34
|
+
.btn-color {
|
35
|
+
background-color: #FFFFFF;
|
36
|
+
border-radius: 10px;
|
37
|
+
border: 1px solid #499EDF;
|
38
|
+
}
|
39
|
+
|
40
|
+
.app-text {
|
41
|
+
font-size: 12px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.panel-self {
|
45
|
+
border-radius: 10px;
|
46
|
+
border: 1px solid #499EDF;
|
47
|
+
background-color: #F8F8F8;
|
48
|
+
}
|
49
|
+
|
50
|
+
.yybtn-color {
|
51
|
+
background-color: #499edf;
|
52
|
+
border-radius: 4px;
|
53
|
+
border: 1px solid #499EDF;
|
54
|
+
color: #FFFFFF;
|
55
|
+
font: 14px PingFang-SC-Bold;
|
56
|
+
}
|
57
|
+
|
58
|
+
.qxbtn-color {
|
59
|
+
background-color: #FFFFFF;
|
60
|
+
border-radius: 4px;
|
61
|
+
color: #499edf;
|
62
|
+
font: 14px PingFang-SC-Bold;
|
63
|
+
border: 1px solid #499EDF;
|
64
|
+
}
|
65
|
+
|
66
|
+
.button_shrink_top {
|
67
|
+
width: 35px;
|
68
|
+
height: 35px;
|
69
|
+
background-size: 100%;
|
70
|
+
background-image: url("../../../../static/newStyle/stretch_top.png")
|
71
|
+
}
|
72
|
+
|
73
|
+
.button_shrink_bottom {
|
74
|
+
width: 35px;
|
75
|
+
height: 35px;
|
76
|
+
background-size: 100%;
|
77
|
+
background-image: url("../../../../static/newStyle/stretch_bottom.png")
|
78
|
+
}
|
79
|
+
|
80
|
+
.button_shrink_left {
|
81
|
+
width: 35px;
|
82
|
+
height: 35px;
|
83
|
+
background-size: 100%;
|
84
|
+
background-image: url("../../../../static/newStyle/stretch_left.png")
|
85
|
+
}
|
86
|
+
|
87
|
+
.button_shrink_right {
|
88
|
+
width: 35px;
|
89
|
+
height: 35px;
|
90
|
+
background-size: 100%;
|
91
|
+
background-image: url("../../../../static/newStyle/stretch_right.png")
|
92
|
+
}
|
93
|
+
|
94
|
+
.stats-bar {
|
95
|
+
display: flex;
|
96
|
+
justify-content: space-between;
|
97
|
+
align-items: center;
|
98
|
+
background: #fff;
|
99
|
+
border-radius: 10px;
|
100
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
101
|
+
padding: 16px 8px;
|
102
|
+
margin: 12px 0 20px 0;
|
103
|
+
}
|
104
|
+
|
105
|
+
.stats-item {
|
106
|
+
flex: 1;
|
107
|
+
text-align: center;
|
108
|
+
}
|
109
|
+
|
110
|
+
.stats-item .stats-value {
|
111
|
+
font-size: 22px;
|
112
|
+
font-weight: bold;
|
113
|
+
margin-bottom: 2px;
|
114
|
+
display: block;
|
115
|
+
}
|
116
|
+
|
117
|
+
.stats-item .stats-label {
|
118
|
+
font-size: 13px;
|
119
|
+
color: #888;
|
120
|
+
}
|
121
|
+
|
122
|
+
.stats-value.blue {
|
123
|
+
color: #499EDF;
|
124
|
+
}
|
125
|
+
|
126
|
+
.stats-value.green {
|
127
|
+
color: #4CAF50;
|
128
|
+
}
|
129
|
+
|
130
|
+
.stats-value.red {
|
131
|
+
color: #F44336;
|
132
|
+
}
|
133
|
+
|
134
|
+
.stats-value.orange {
|
135
|
+
color: #FF9800;
|
136
|
+
}
|
137
|
+
</style>
|
138
|
+
<style>
|
139
|
+
.clear-select-with .dropdown-menu {
|
140
|
+
left: 0px !important;
|
141
|
+
width: 200% !important;
|
142
|
+
}
|
143
|
+
</style>
|
144
|
+
<template>
|
145
|
+
<div style="height: auto;width: 100%">
|
146
|
+
<criteria-paged :model="model" v-ref:paged>
|
147
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
148
|
+
<div partial>
|
149
|
+
<form>
|
150
|
+
<!-- <div class="row app-row">-->
|
151
|
+
<!-- <!–小区名称–>-->
|
152
|
+
<!-- <v-select :value.sync="model.f_residential_area" class="input-font clear-select-with"-->
|
153
|
+
<!-- :options='$parent.$parent.residentialAreaOptions' placeholder='小区名称' :width="'32.5%'"-->
|
154
|
+
<!-- v-model="model.f_residential_area" condition="ti.f_residential_area = '{}'"-->
|
155
|
+
<!-- @change="$parent.$parent.getbuilds" close-on-select clear-button>-->
|
156
|
+
<!-- </v-select>-->
|
157
|
+
<!-- <!–楼栋–>-->
|
158
|
+
<!-- <v-select :value.sync="model.f_building" class="input-font" :options='$parent.$parent.buildOptions'-->
|
159
|
+
<!-- placeholder='楼栋' :width="'32.5%'" v-model="model.f_building" condition="ti.f_building = '{}'"-->
|
160
|
+
<!-- @change="$parent.$parent.getUnits" close-on-select clear-button>-->
|
161
|
+
<!-- </v-select>-->
|
162
|
+
<!-- <!–单元–>-->
|
163
|
+
<!-- <v-select :value.sync="model.f_unit" class="input-font" :options='$parent.$parent.unitOptions'-->
|
164
|
+
<!-- placeholder='单元' :width="'32.5%'" v-model="model.f_unit" condition="ti.f_unit = '{}'" close-on-select-->
|
165
|
+
<!-- clear-button>-->
|
166
|
+
<!-- </v-select>-->
|
167
|
+
<!-- </div>-->
|
168
|
+
<div class="row app-row">
|
169
|
+
<div class="col-xs-4">
|
170
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
171
|
+
<label for="f_userinfo_code" class="font text-left">用户编号:</label>
|
172
|
+
</div>
|
173
|
+
<div class="col-xs-8">
|
174
|
+
<input id="f_userinfo_code" class="search_input input-font" v-model=model.f_userinfo_code
|
175
|
+
condition="f_userinfo_code like '%{}%'" />
|
176
|
+
</div>
|
177
|
+
</div>
|
178
|
+
<div class="row app-row">
|
179
|
+
<div class="col-xs-4">
|
180
|
+
<img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
|
181
|
+
<label class="font text-left">用户姓名:</label>
|
182
|
+
</div>
|
183
|
+
<div class="col-xs-8">
|
184
|
+
<input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<div class="row app-row">
|
189
|
+
<div class="col-xs-4">
|
190
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
191
|
+
<label class="font text-left">用户证号:</label>
|
192
|
+
</div>
|
193
|
+
<div class="col-xs-8">
|
194
|
+
<input class="search_input input-font" v-model=model.f_enter_number
|
195
|
+
condition="f_enter_number like '%{}%'" />
|
196
|
+
</div>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
|
200
|
+
<div class="col-xs-4">
|
201
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
202
|
+
<label for="f_plan_name" class="font text-left">计划名称:</label>
|
203
|
+
</div>
|
204
|
+
<v-select id="f_plan_name" :value.sync="model.f_plan_name" class="input-font"
|
205
|
+
:options='$parent.$parent.planNameOptions' placeholder='计划名称' :width="'60%'" v-model="model.f_plan_name"
|
206
|
+
@change="$parent.$parent.planNameChange"
|
207
|
+
condition="f_plan_name like '%{}%'" close-on-select clear-button>
|
208
|
+
</v-select>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
212
|
+
<div class="col-xs-4">
|
213
|
+
<img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
|
214
|
+
<label for="f_plan_name" class="font text-left">安检册:</label>
|
215
|
+
</div>
|
216
|
+
<v-select id="f_plan_name" :value.sync="model.f_check_book" class="input-font"
|
217
|
+
:options='$parent.$parent.checkBooks' placeholder='安检册' :width="'60%'" v-model="model.f_check_book"
|
218
|
+
@select-search="$parent.$parent.getCheckBook"
|
219
|
+
condition="f_check_book_id like '%{}%'" align="right" close-on-select clear-button>
|
220
|
+
</v-select>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
224
|
+
<div class="col-xs-4">
|
225
|
+
<img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
|
226
|
+
<label for="f_state" class="font text-left">是否已检:</label>
|
227
|
+
</div>
|
228
|
+
<v-select id="f_state" :value.sync="model.f_state" class="input-font"
|
229
|
+
:options='$parent.$parent.check_states' placeholder='是否已检' :width="'60%'" v-model="model.f_state"
|
230
|
+
condition="f_state='{}'" close-on-select clear-button>
|
231
|
+
</v-select>
|
232
|
+
</div>
|
233
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
234
|
+
<div class="col-xs-4">
|
235
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
236
|
+
<label class="font text-left">表  号:</label>
|
237
|
+
</div>
|
238
|
+
<div class="col-xs-5">
|
239
|
+
<input class="search_input input-font" v-model=model.f_meter_no condition="f_meter_no like '%{}%'" />
|
240
|
+
</div>
|
241
|
+
<div class="col-xs-3">
|
242
|
+
<button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
|
243
|
+
</div>
|
244
|
+
</div>
|
245
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
246
|
+
<div class="col-xs-4">
|
247
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
248
|
+
<label class="font text-left">客户电话:</label>
|
249
|
+
</div>
|
250
|
+
<div class="col-xs-8">
|
251
|
+
<input class="search_input input-font" v-model=model.f_user_phone
|
252
|
+
condition="f_user_phone like '%{}%'" />
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
257
|
+
<div class="col-xs-4">
|
258
|
+
<img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
|
259
|
+
<label class="font text-left">用户地址:</label>
|
260
|
+
</div>
|
261
|
+
<div class="col-xs-8">
|
262
|
+
<input class="search_input input-font" v-model=model.f_keyword condition="f_address like '%{}%'" />
|
263
|
+
</div>
|
264
|
+
</div>
|
265
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
266
|
+
<div class="col-xs-4">
|
267
|
+
<img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
|
268
|
+
<label for="f_user_type" class="font text-left">用户类型:</label>
|
269
|
+
</div>
|
270
|
+
<v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font" :width="'60%'"
|
271
|
+
:options='$parent.$parent.user_types' placeholder='请选择用户类型' v-model="model.f_user_type"
|
272
|
+
condition="f_user_type='{}'" close-on-select clear-button></v-select>
|
273
|
+
</div>
|
274
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
275
|
+
<div class="col-xs-6">
|
276
|
+
<img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
|
277
|
+
<label class="font text-left">到访不遇:</label>
|
278
|
+
</div>
|
279
|
+
<div class="col-xs-8">
|
280
|
+
<input class="search_input input-font" type="number" v-model=model.f_check_version
|
281
|
+
condition="f_check_version <= '{}'" />
|
282
|
+
</div>
|
283
|
+
</div>
|
284
|
+
<div class="row app-row" v-if="$parent.$parent.criteriaShow">
|
285
|
+
<div class="col-xs-6" style="text-align: center">
|
286
|
+
<span class="font text-left">待办{{ $parent.$parent.upcomingCount }}条</span>
|
287
|
+
</div>
|
288
|
+
<div class="col-xs-6" style="text-align: center">
|
289
|
+
<span class="font text-left">已办{{ $parent.$parent.doneCount }}条</span>
|
290
|
+
</div>
|
291
|
+
<div class="col-xs-6" style="text-align: center">
|
292
|
+
<span class="font text-left">临时保存{{ $parent.$parent.tempSaveCount }}条</span>
|
293
|
+
</div>
|
294
|
+
<div class="col-xs-6" style="text-align: center">
|
295
|
+
<span class="font text-left">总共{{ $parent.$parent.allPlanCount }}条</span>
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
|
299
|
+
<div class="row text-center" style="margin-top: 20px;">
|
300
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
|
301
|
+
@click="$parent.$parent.selfSearch">查询</button>
|
302
|
+
<button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px"
|
303
|
+
@click="$parent.$parent.queryplanmany">转发</button>
|
304
|
+
<div style="float: right;margin-right: 3% " class="button_spacing"
|
305
|
+
:class="{ 'button_shrink_top': $parent.$parent.criteriaShow, 'button_shrink_bottom': !$parent.$parent.criteriaShow }"
|
306
|
+
@click="$parent.$parent.hidden()"></div>
|
307
|
+
<img v-if="!$parent.$parent.planName" style="float: right;margin-right: 3%;width: 40px;padding: 5px;"
|
308
|
+
@click="$parent.$parent.getNewOrder" src="../../../assets/shuaxindaiban1.png">
|
309
|
+
</div>
|
310
|
+
<div class="col-sm-12">
|
311
|
+
<!-- 统计区域开始 -->
|
312
|
+
<div class="stats-bar">
|
313
|
+
<div class="stats-item">
|
314
|
+
<span class="stats-value blue">{{ $parent.$parent.planTotal }}</span>
|
315
|
+
<span class="stats-label">计划总数</span>
|
316
|
+
</div>
|
317
|
+
<div class="stats-item">
|
318
|
+
<span class="stats-value orange">{{ $parent.$parent.notVisited }}</span>
|
319
|
+
<span class="stats-label">到访不遇</span>
|
320
|
+
</div>
|
321
|
+
<div class="stats-item">
|
322
|
+
<span class="stats-value green">{{ $parent.$parent.checked }}</span>
|
323
|
+
<span class="stats-label">已检数</span>
|
324
|
+
</div>
|
325
|
+
<div class="stats-item">
|
326
|
+
<span class="stats-value red">{{ $parent.$parent.notChecked }}</span>
|
327
|
+
<span class="stats-label">未检数</span>
|
328
|
+
</div>
|
329
|
+
<div class="stats-item">
|
330
|
+
<span class="stats-value blue">{{ $parent.$parent.enterRate }}%</span>
|
331
|
+
<span class="stats-label">入户率</span>
|
332
|
+
</div>
|
333
|
+
</div>
|
334
|
+
<!-- 统计区域结束 -->
|
335
|
+
</div>
|
336
|
+
<!--<div class="row app-btn">-->
|
337
|
+
<!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
|
338
|
+
<!--</div>-->
|
339
|
+
<div style="height:30px;"></div>
|
340
|
+
</form>
|
341
|
+
</div>
|
342
|
+
</criteria>
|
343
|
+
<list :model="model" partial='list'>
|
344
|
+
<div partial>
|
345
|
+
<div class="auto app-text" style="margin-top: 5px;">
|
346
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
347
|
+
<div class="panel-body panel-self">
|
348
|
+
|
349
|
+
<div class="col-xs-12">
|
350
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
|
351
|
+
<p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
|
352
|
+
<p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
|
353
|
+
<input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)" />
|
354
|
+
</p>
|
355
|
+
</div>
|
356
|
+
<div class="col-xs-12">
|
357
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
358
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
|
359
|
+
</div>
|
360
|
+
<div class="col-xs-6">
|
361
|
+
<p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
|
362
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
|
363
|
+
</p>
|
364
|
+
</div>
|
365
|
+
<div class="col-xs-6">
|
366
|
+
<p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>
|
367
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
|
368
|
+
</div>
|
369
|
+
<!-- <div class="col-xs-6">-->
|
370
|
+
<!-- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>-->
|
371
|
+
<!-- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>-->
|
372
|
+
<!-- </div>-->
|
373
|
+
<div class="col-xs-12">
|
374
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
|
375
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
|
376
|
+
<img src="../../../assets/phone.png" style="width: 6%"
|
377
|
+
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone)' />
|
378
|
+
</p>
|
379
|
+
</div>
|
380
|
+
<div class="col-xs-12">
|
381
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>备用电话:</b></p>
|
382
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_rent_phone }}
|
383
|
+
<img v-if="row.f_rent_phone" src="../../../assets/phone.png" style="width: 6%"
|
384
|
+
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_rent_phone)' />
|
385
|
+
</p>
|
386
|
+
</div>
|
387
|
+
<div class="col-xs-12">
|
388
|
+
<p class="panel-title text-left font" style="width: 23%;float: left"><b>租户电话:</b></p>
|
389
|
+
<p class="panel-title text-left input-font" style="width: 77%">{{ row.f_zuhu_phone }}
|
390
|
+
<img v-if="row.f_zuhu_phone" src="../../../assets/phone.png" style="width: 6%"
|
391
|
+
v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_zuhu_phone)' />
|
392
|
+
</p>
|
393
|
+
</div>
|
394
|
+
|
395
|
+
<div class="col-xs-12">
|
396
|
+
<p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
397
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
|
398
|
+
</div>
|
399
|
+
|
400
|
+
<!-- <div class="row">-->
|
401
|
+
<!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
|
402
|
+
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
|
403
|
+
<!-- </div>-->
|
404
|
+
<!-- <div class="row">-->
|
405
|
+
<!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
|
406
|
+
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
|
407
|
+
<!-- </div>-->
|
408
|
+
<!-- <div class="row">-->
|
409
|
+
<!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
|
410
|
+
<!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
|
411
|
+
<!-- </div>-->
|
412
|
+
<!--<div class="row">-->
|
413
|
+
<!--<p class="panel-title col-xs-4 text-left font">上次安检状态</p>-->
|
414
|
+
<!--<p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>-->
|
415
|
+
<!--</div>-->
|
416
|
+
<div class="col-xs-6">
|
417
|
+
<p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
|
418
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_state == '已检' ? '临时保存' : row.f_state }}
|
419
|
+
</p>
|
420
|
+
</div>
|
421
|
+
<div class="col-xs-6">
|
422
|
+
<p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
|
423
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
|
424
|
+
</div>
|
425
|
+
<div class="col-xs-12" v-if="row.f_prearranged_date != null">
|
426
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>预约时间:</b></p>
|
427
|
+
<p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_prearranged_date }}
|
428
|
+
</p>
|
429
|
+
</div>
|
430
|
+
<div class="col-xs-6">
|
431
|
+
<p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
|
432
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
|
433
|
+
</div>
|
434
|
+
<div class="col-xs-12">
|
435
|
+
<p class="panel-title col-xs-5 text-left font"><b>到访不遇次数:</b></p>
|
436
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_version }}</p>
|
437
|
+
</div>
|
438
|
+
<!--<div class="col-xs-12">-->
|
439
|
+
<!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
|
440
|
+
<!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
|
441
|
+
<!--</div>-->
|
442
|
+
<div class="col-xs-12">
|
443
|
+
<button type="button" name="button" class="btn btn-primary"
|
444
|
+
style="background-color:#499edf;float: right"
|
445
|
+
@click="$parent.$parent.$parent.inspect(row)">处理</button>
|
446
|
+
<button type="button" name="button" class="btn btn-primary"
|
447
|
+
style="background-color:#499edf;float: right;margin-right:10px;"
|
448
|
+
@click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
|
449
|
+
<!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
|
450
|
+
</div>
|
451
|
+
<!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
|
452
|
+
<!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button> -->
|
453
|
+
<!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
|
454
|
+
<!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
|
455
|
+
<!-- </div>-->
|
456
|
+
</div>
|
457
|
+
</div>
|
458
|
+
</div>
|
459
|
+
</div>
|
460
|
+
</list>
|
461
|
+
</criteria-paged>
|
462
|
+
<modal :show.sync="showModal">
|
463
|
+
<div slot="modal-header" class="modal-header">
|
464
|
+
<h4 class="modal-title">
|
465
|
+
选择预约时间
|
466
|
+
</h4>
|
467
|
+
</div>
|
468
|
+
<div slot="modal-body" class="modal-body">
|
469
|
+
<input type="datetime-local" v-model="f_preset_dt">
|
470
|
+
</div>
|
471
|
+
<div slot="modal-footer" class="modal-footer">
|
472
|
+
<button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
|
473
|
+
</div>
|
474
|
+
</modal>
|
475
|
+
<!--<back-page :need-back='true' @flag="$back()"></back-page>-->
|
476
|
+
<modal :show.sync="showModal2" v-ref:modal>
|
477
|
+
<div slot="modal-header" class="modal-header">
|
478
|
+
<h4 class="modal-title">
|
479
|
+
选择计划
|
480
|
+
</h4>
|
481
|
+
</div>
|
482
|
+
<div slot="modal-body" class="modal-body">
|
483
|
+
<div class="col-xs-12">
|
484
|
+
|
485
|
+
<div class="col-xs-4">
|
486
|
+
<v-select :value.sync="check" v-model='check' :value-single="true" class="select_list select"
|
487
|
+
:options='checkers' placeholder='安检员' close-on-select width="100%"></v-select>
|
488
|
+
</div>
|
489
|
+
|
490
|
+
<div class="col-xs-1">
|
491
|
+
<!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
|
492
|
+
</div>
|
493
|
+
<div class="col-xs-4" style="padding-left: 2px">
|
494
|
+
<input class="select-style" placeholder="计划名称" type="text" v-model="plan"
|
495
|
+
style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px" />
|
496
|
+
</div>
|
497
|
+
<div class="col-xs-1">
|
498
|
+
<!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
|
499
|
+
</div>
|
500
|
+
<!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
|
501
|
+
<div class="col-xs-2" style="float: right">
|
502
|
+
<button type="button" class="btn btn-primary" @click="plansearch"
|
503
|
+
style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
|
504
|
+
</div>
|
505
|
+
</div>
|
506
|
+
<table class="table table_sy">
|
507
|
+
<thead>
|
508
|
+
<tr>
|
509
|
+
<th style="width: 30px"></th>
|
510
|
+
<th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
|
511
|
+
</tr>
|
512
|
+
</thead>
|
513
|
+
<tbody>
|
514
|
+
<tr v-for="row in planoption">
|
515
|
+
<td @click="select(row, $index)">{{ row.selected == true ? '☆' : ' ' }}</td>
|
516
|
+
<td @click="select(row, $index)" style="text-align: center">{{ row.label }}</td>
|
517
|
+
|
518
|
+
|
519
|
+
</tr>
|
520
|
+
</tbody>
|
521
|
+
</table>
|
522
|
+
</div>
|
523
|
+
<div slot="modal-footer" class="modal-footer">
|
524
|
+
<button class="btn btn-default" @click="isok()">确认</button>
|
525
|
+
<button class="btn btn-default" @click="iscancel()">取消</button>
|
526
|
+
</div>
|
527
|
+
</modal>
|
528
|
+
<modal :show.sync="showModal3" v-ref:modal>
|
529
|
+
<div slot="modal-header" class="modal-header">
|
530
|
+
<h4 class="modal-title">
|
531
|
+
选择计划
|
532
|
+
</h4>
|
533
|
+
</div>
|
534
|
+
<div slot="modal-body" class="modal-body">
|
535
|
+
<div class="col-xs-12">
|
536
|
+
|
537
|
+
<div class="col-xs-4">
|
538
|
+
<v-select :value.sync="check" v-model='check' :value-single="true" class="select_list select"
|
539
|
+
:options='checkers' placeholder='安检员' close-on-select width="100%"></v-select>
|
540
|
+
</div>
|
541
|
+
|
542
|
+
<div class="col-xs-1">
|
543
|
+
<!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
|
544
|
+
</div>
|
545
|
+
<div class="col-xs-4" style="padding-left: 2px">
|
546
|
+
<input class="select-style" placeholder="计划名称" type="text" v-model="plan"
|
547
|
+
style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px" />
|
548
|
+
</div>
|
549
|
+
<div class="col-xs-1">
|
550
|
+
<!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
|
551
|
+
</div>
|
552
|
+
<!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
|
553
|
+
<div class="col-xs-2" style="float: right">
|
554
|
+
<button type="button" class="btn btn-primary" @click="plansearch"
|
555
|
+
style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
<table class="table table_sy">
|
559
|
+
<thead>
|
560
|
+
<tr>
|
561
|
+
<th style="width: 30px"></th>
|
562
|
+
<th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
|
563
|
+
</tr>
|
564
|
+
</thead>
|
565
|
+
<tbody>
|
566
|
+
<tr v-for="row in planoption">
|
567
|
+
<td @click="select(row, $index)">{{ row.selected == true ? '☆' : ' ' }}</td>
|
568
|
+
<td @click="select(row, $index)" style="text-align: center">{{ row.label }}</td>
|
569
|
+
|
570
|
+
|
571
|
+
</tr>
|
572
|
+
</tbody>
|
573
|
+
</table>
|
574
|
+
</div>
|
575
|
+
<div slot="modal-footer" class="modal-footer">
|
576
|
+
<button class="btn btn-default" @click="manyisok()">确认</button>
|
577
|
+
<button class="btn btn-default" @click="iscancel()">取消</button>
|
578
|
+
</div>
|
579
|
+
</modal>
|
580
|
+
</div>
|
581
|
+
|
582
|
+
</template>
|
583
|
+
|
584
|
+
<script>
|
585
|
+
import LocalPagedList from '../../../plugins/LocalPagedList'
|
586
|
+
import Vue from 'vue'
|
587
|
+
import { PagedList, HttpResetClass } from 'vue-client'
|
588
|
+
import * as Util from '../../../components/Util'
|
589
|
+
import co from 'co'
|
590
|
+
let select = function* (self) {
|
591
|
+
let http = new HttpResetClass()
|
592
|
+
http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
|
593
|
+
source: 'this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)',
|
594
|
+
userid: Vue.user.orgid
|
595
|
+
}, { resolveMsg: null, rejectMsg: null }).then((res) => {
|
596
|
+
//tag
|
597
|
+
self.checkers.push({ label: '全部', value: '' })
|
598
|
+
res.data.forEach((checker) => {
|
599
|
+
self.checkers.push({ label: checker.name, value: checker.id })
|
600
|
+
})
|
601
|
+
})
|
602
|
+
}
|
603
|
+
export default {
|
604
|
+
title: '无计划安检查询',
|
605
|
+
props: ['planName'],
|
606
|
+
data() {
|
607
|
+
return {
|
608
|
+
f_filialeids: '(' + Vue.user.orgid + ')',
|
609
|
+
//f_filialeids:'(305)',
|
610
|
+
planparam: [],
|
611
|
+
check: '',
|
612
|
+
plan: '',
|
613
|
+
planid: '',
|
614
|
+
model: Vue.android ? new LocalPagedList('androidGetuserinfo', 20, { condition: 'this.condition' }) : new PagedList('AndroidRest/api/af-safecheck/sql/androidGetuserinfo', 20, { condition: 'this.condition' }),
|
615
|
+
showModal: false,
|
616
|
+
showModal2: false,
|
617
|
+
showModal3: false,
|
618
|
+
needid: '',
|
619
|
+
criteriaShow: false,
|
620
|
+
planoption: [],
|
621
|
+
condition: '',
|
622
|
+
checkers: [],
|
623
|
+
param: null,
|
624
|
+
f_preset_dt: Util.to3339TimeString(),
|
625
|
+
flow_direction: [
|
626
|
+
{ label: '请选择挂表方式', value: '' },
|
627
|
+
{ label: '左表', value: '左表' },
|
628
|
+
{ label: '右表', value: '右表' }
|
629
|
+
],
|
630
|
+
check_states: [
|
631
|
+
{ label: '请选择安检状态', value: '' },
|
632
|
+
{ label: '未检', value: '未检' },
|
633
|
+
{ label: '临时保存', value: '已检' },
|
634
|
+
],
|
635
|
+
last_check_states: [
|
636
|
+
{ label: '请选择上次安检状态', value: '' },
|
637
|
+
{ label: '入户', value: '入户' },
|
638
|
+
{ label: '拒检', value: '拒检' },
|
639
|
+
{ label: '到访不遇', value: '到访不遇' },
|
640
|
+
{ label: '未使用天然气', value: '未使用天然气' }
|
641
|
+
],
|
642
|
+
upload_states: [
|
643
|
+
{ label: '请选择上传状态', value: '' },
|
644
|
+
{ label: '未传', value: '未传' },
|
645
|
+
{ label: '已传', value: '已传' }
|
646
|
+
],
|
647
|
+
user_types: [
|
648
|
+
{ label: '请选择用户类型', value: '' },
|
649
|
+
{ label: '民用', value: '民用' },
|
650
|
+
{ label: '非民用', value: '非民用' },
|
651
|
+
],
|
652
|
+
verify_state: [
|
653
|
+
{ label: '请选择审核状态', value: '' },
|
654
|
+
{ label: '未审核', value: '未审核' },
|
655
|
+
{ label: '打回', value: '打回' }
|
656
|
+
],
|
657
|
+
residentialAreaOptions: [],
|
658
|
+
buildOptions: [],
|
659
|
+
unitOptions: [],
|
660
|
+
planNameOptions: [],
|
661
|
+
checkBooks: [],
|
662
|
+
upcomingCount: 0,
|
663
|
+
doneCount: 0,
|
664
|
+
tempSaveCount: 0,
|
665
|
+
allPlanCount: 0,
|
666
|
+
planTotal: 0,
|
667
|
+
notVisited: 0,
|
668
|
+
checked: 0,
|
669
|
+
notChecked: 0,
|
670
|
+
enterRate: 0
|
671
|
+
}
|
672
|
+
},
|
673
|
+
ready() {
|
674
|
+
this.getCheckBook()
|
675
|
+
this.getAllArea()
|
676
|
+
this.getAllPlanName()
|
677
|
+
this.selfSearch()
|
678
|
+
let gen = select(this)
|
679
|
+
co(gen)
|
680
|
+
},
|
681
|
+
mounted() {
|
682
|
+
//tag
|
683
|
+
if (window.history && window.history.pushState) {
|
684
|
+
history.pushState(null, null, document.URL);
|
685
|
+
window.addEventListener('popstate', this.fun, false);//false阻止默认事件
|
686
|
+
}
|
687
|
+
},
|
688
|
+
destroyed() {
|
689
|
+
//tag
|
690
|
+
window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
|
691
|
+
},
|
692
|
+
methods: {
|
693
|
+
planNameChange(val){
|
694
|
+
if (val.length > 0 && val[0]){
|
695
|
+
this.checkBooks=[]
|
696
|
+
let condition = '1=1'
|
697
|
+
condition = `tcp.f_plan_name = '${val[0]}' `
|
698
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
699
|
+
data: {
|
700
|
+
items: 'tcb.id,tcb.f_check_book_name,tcb.f_check_book_type',
|
701
|
+
tablename: 't_check_book tcb left join t_check_plan tcp on tcb.id = tcp.f_book_id',
|
702
|
+
condition: ` ${condition}`,
|
703
|
+
orderitem: 'tcb.id desc'
|
704
|
+
}
|
705
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
706
|
+
this.checkBooks.push({label: '全部', value: ''})
|
707
|
+
res.data.forEach(ress => {
|
708
|
+
this.checkBooks.push({
|
709
|
+
label: ress.f_check_book_name,
|
710
|
+
value: ress.id
|
711
|
+
})
|
712
|
+
})
|
713
|
+
})
|
714
|
+
}else {
|
715
|
+
this.getCheckBook()
|
716
|
+
}
|
717
|
+
},
|
718
|
+
getCheckBook(val){
|
719
|
+
this.checkBooks=[]
|
720
|
+
let condition = '1=1'
|
721
|
+
if (val){
|
722
|
+
condition = `f_check_book_name like '%${val}%' `
|
723
|
+
}
|
724
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
725
|
+
data: {
|
726
|
+
items: 'id,f_check_book_name,f_check_book_type',
|
727
|
+
tablename: 't_check_book',
|
728
|
+
condition: ` ${condition}`,
|
729
|
+
orderitem: 'id desc'
|
730
|
+
}
|
731
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
732
|
+
this.checkBooks.push({label: '全部', value: ''})
|
733
|
+
res.data.forEach(ress => {
|
734
|
+
this.checkBooks.push({
|
735
|
+
label: ress.f_check_book_name,
|
736
|
+
value: ress.id
|
737
|
+
})
|
738
|
+
})
|
739
|
+
})
|
740
|
+
},
|
741
|
+
scan() {
|
742
|
+
HostApp.__this__ = this,
|
743
|
+
HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
|
744
|
+
},
|
745
|
+
getCode() {
|
746
|
+
const datapa = HostApp.getCode().data;
|
747
|
+
//tag
|
748
|
+
this.$refs.paged.$refs.cri.model.f_meter_no = datapa
|
749
|
+
|
750
|
+
},
|
751
|
+
fun() {
|
752
|
+
//tag
|
753
|
+
//tag
|
754
|
+
},
|
755
|
+
iscancel() {
|
756
|
+
this.showModal2 = false
|
757
|
+
this.showModal3 = false
|
758
|
+
this.planoption = []
|
759
|
+
},
|
760
|
+
timeSet(val) {
|
761
|
+
return val
|
762
|
+
},
|
763
|
+
async isok() {
|
764
|
+
if (this.planoption.length == 0) {
|
765
|
+
this.$showMessage("请选择计划")
|
766
|
+
return false
|
767
|
+
}
|
768
|
+
for (let i = 0; i < this.planoption.length; i++) {
|
769
|
+
if (this.planoption[i]["selected"] == true) {
|
770
|
+
this.planid = this.planoption[i].value
|
771
|
+
break
|
772
|
+
}
|
773
|
+
}
|
774
|
+
if (this.planid == '') {
|
775
|
+
this.$showMessage("请选择计划")
|
776
|
+
return false
|
777
|
+
}
|
778
|
+
await this.okput()
|
779
|
+
},
|
780
|
+
async manyisok() {
|
781
|
+
if (this.planoption.length == 0) {
|
782
|
+
this.$showMessage("请选择计划")
|
783
|
+
return false
|
784
|
+
}
|
785
|
+
for (let i = 0; i < this.planoption.length; i++) {
|
786
|
+
if (this.planoption[i]["selected"] == true) {
|
787
|
+
this.planid = this.planoption[i].value
|
788
|
+
break
|
789
|
+
}
|
790
|
+
}
|
791
|
+
if (this.planid == '') {
|
792
|
+
this.$showMessage("请选择计划")
|
793
|
+
return false
|
794
|
+
}
|
795
|
+
await this.manyokput()
|
796
|
+
},
|
797
|
+
changenull() {
|
798
|
+
this.showModal2 = false
|
799
|
+
this.showModal3 = false
|
800
|
+
this.planoption = []
|
801
|
+
this.plan = ''
|
802
|
+
this.check = ''
|
803
|
+
},
|
804
|
+
async okput() {
|
805
|
+
let result = this.$androidUtil.bzLogic('UpCheckPlanItemAndroid', {
|
806
|
+
condition: `id='` + this.needid + `'`,
|
807
|
+
f_plan_id: this.planid
|
808
|
+
})
|
809
|
+
if (result.code == 200) {
|
810
|
+
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {
|
811
|
+
data: {
|
812
|
+
condition: `i.id='` + this.needid + `'`,
|
813
|
+
f_plan_id: this.planid,
|
814
|
+
switchCheckAll: false,
|
815
|
+
checkAll: false,
|
816
|
+
f_operator: Vue.user.name
|
817
|
+
}
|
818
|
+
})
|
819
|
+
await this.changenull()
|
820
|
+
}
|
821
|
+
},
|
822
|
+
async manyokput() {
|
823
|
+
let condition = `1=1`
|
824
|
+
let criteria = {
|
825
|
+
items: 'id',
|
826
|
+
tablename: 't_check_plan',
|
827
|
+
condition: `f_checker_id = '${Vue.user.id}'`,
|
828
|
+
groupitem: 'id'
|
829
|
+
}
|
830
|
+
let result = HostApp._executeTask({
|
831
|
+
'type': 'sql',
|
832
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
833
|
+
})
|
834
|
+
if (result.code == 200) {
|
835
|
+
condition = `1=1 and i.f_plan_id in (${result.data.rows.map(row => {
|
836
|
+
return `'${row.id}'`
|
837
|
+
}).join()})`
|
838
|
+
}
|
839
|
+
let result2 = this.$androidUtil.bzLogic('UpCheckPlanItemAndroid', {
|
840
|
+
condition: `f_plan_id in (${result.data.rows.map(row => {
|
841
|
+
return `'${row.id}'`
|
842
|
+
}).join()})`, f_plan_id: this.planid
|
843
|
+
})
|
844
|
+
if (result2.code == 200) {
|
845
|
+
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {
|
846
|
+
data: {
|
847
|
+
columnName: "i.id",
|
848
|
+
condition: condition,
|
849
|
+
f_plan_id: this.planid,
|
850
|
+
switchCheckAll: true,
|
851
|
+
param: this.planparam,
|
852
|
+
checkAll: true,
|
853
|
+
f_operator: Vue.user.name
|
854
|
+
}
|
855
|
+
})
|
856
|
+
await this.changenull()
|
857
|
+
}
|
858
|
+
},
|
859
|
+
async plansearch() {
|
860
|
+
this.planoption = []
|
861
|
+
let condition = ` f_plan_year=${new Date().getFullYear()}`
|
862
|
+
if (this.check) {
|
863
|
+
condition += ` and f_checker_id= '${this.check}'`
|
864
|
+
}
|
865
|
+
if (this.plan) {
|
866
|
+
condition += ` and f_plan_name like '%${this.plan}%'`
|
867
|
+
}
|
868
|
+
let res = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {
|
869
|
+
data: {
|
870
|
+
condition: condition,
|
871
|
+
f_filialeids: this.f_filialeids,
|
872
|
+
groupitem: '',
|
873
|
+
orderitem: 'id'
|
874
|
+
}
|
875
|
+
})
|
876
|
+
let resoult = res.data
|
877
|
+
for (let i = 0; i < resoult.length; i++) {
|
878
|
+
this.planoption.push({ label: resoult[i].f_plan_name, selected: false, value: resoult[i].id })
|
879
|
+
}
|
880
|
+
},
|
881
|
+
|
882
|
+
select(row, idx) {
|
883
|
+
this.$set('planoption[' + idx + '].selected', true)
|
884
|
+
for (let i = 0; i < this.planoption.length; i++) {
|
885
|
+
if (i != idx) {
|
886
|
+
this.planoption[i]["selected"] = false
|
887
|
+
}
|
888
|
+
}
|
889
|
+
},
|
890
|
+
planclose() {
|
891
|
+
this.showModal2 = false
|
892
|
+
this.showModal3 = false
|
893
|
+
},
|
894
|
+
queryplan(val) {
|
895
|
+
this.needid = val
|
896
|
+
this.showModal2 = true
|
897
|
+
},
|
898
|
+
queryplanmany() {
|
899
|
+
|
900
|
+
this.showModal3 = true
|
901
|
+
},
|
902
|
+
reload() {
|
903
|
+
// this.getAllArea()
|
904
|
+
// this.getAllPlanName()
|
905
|
+
this.selfSearch()
|
906
|
+
},
|
907
|
+
cancelReserve(idx, id) {
|
908
|
+
if (Vue.android) {
|
909
|
+
let res = this.$androidUtil.bzLogic('BookingCheck', { dt: '', id: id })
|
910
|
+
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
911
|
+
if (res.code == 200) {
|
912
|
+
this.$showMessage("取消预约成功")
|
913
|
+
}
|
914
|
+
} else {
|
915
|
+
this.$androidUtil.bzLogic('PCbookingCheck', { dt: '', id: id }).then((repanse) => {
|
916
|
+
this.$set('model.rows[' + idx + '].f_prearranged_date', null)
|
917
|
+
if (repanse.data.code == 200) {
|
918
|
+
alert("取消预约成功!")
|
919
|
+
}
|
920
|
+
})
|
921
|
+
}
|
922
|
+
},
|
923
|
+
genuineReserve() {
|
924
|
+
if (Vue.android) {
|
925
|
+
if (!this.f_preset_dt) {
|
926
|
+
this.$showMessage('请选择一个日期')
|
927
|
+
return
|
928
|
+
}
|
929
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
930
|
+
let respanse = this.$androidUtil.bzLogic('BookingCheck', { id: this.model.rows[this.param].id, dt: pdt })
|
931
|
+
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
932
|
+
if (respanse.code == 200) {
|
933
|
+
this.$showMessage("预约成功!")
|
934
|
+
}
|
935
|
+
this.showModal = false
|
936
|
+
} else {
|
937
|
+
if (!this.f_preset_dt) {
|
938
|
+
alert('请选择一个日期')
|
939
|
+
return
|
940
|
+
}
|
941
|
+
let pdt = this.f_preset_dt.replace('T', ' ')
|
942
|
+
this.$androidUtil.bzLogic('PCbookingCheck', { id: this.model.rows[this.param].id, dt: pdt }).then((res) => {
|
943
|
+
this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
|
944
|
+
if (res.data.code == 200) {
|
945
|
+
alert("预约成功!")
|
946
|
+
}
|
947
|
+
this.showModal = false
|
948
|
+
})
|
949
|
+
}
|
950
|
+
},
|
951
|
+
inspect(row) {
|
952
|
+
var _this = this
|
953
|
+
try {
|
954
|
+
let http = new HttpResetClass()
|
955
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
956
|
+
data: {
|
957
|
+
items: 'id',
|
958
|
+
tablename: 't_check_plan_item',
|
959
|
+
condition: `id = '${row.id}'`,
|
960
|
+
orderitem: ' id '
|
961
|
+
}
|
962
|
+
}, { resolveMsg: null, rejectMsg: null }).then((getcheckplan) => {
|
963
|
+
this.getcheckplandata = getcheckplan.data[0]
|
964
|
+
if (this.getcheckplandata) {
|
965
|
+
if (row.f_upload_state == '未传' || (row.f_upload_state == '已传' && row.f_state == '未检' && row.f_no_checkplan != '无计划安检') || row.f_last_check_state == '到访不遇' || row.f_last_check_state == '拒检') {
|
966
|
+
_this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, { data: { f_userid: row.f_userinfoid } }, { resolveMsg: null, rejectMsg: null }).then((response) => {
|
967
|
+
row['f_plan_meters'] = response.data
|
968
|
+
var pardate = {
|
969
|
+
_this: _this,
|
970
|
+
title: '安全检查',
|
971
|
+
safe: true
|
972
|
+
}
|
973
|
+
_this.$dispatch('gotoson', pardate)
|
974
|
+
//tag
|
975
|
+
_this.$goto('safecheck-order-v', { f_plan_id: row.f_plan_id, item: row, role: 'inspect', parentPage: 'CurrentCreate' }, 'self', _this.reload)
|
976
|
+
}).catch((msg) => {
|
977
|
+
this.noLineInspect(row)
|
978
|
+
})
|
979
|
+
} else {
|
980
|
+
this.$showMessage("该安检单已被上传!")
|
981
|
+
}
|
982
|
+
} else {
|
983
|
+
this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
|
984
|
+
}
|
985
|
+
}).catch((e) => {
|
986
|
+
this.noLineInspect(row)
|
987
|
+
})
|
988
|
+
} catch (e) {
|
989
|
+
this.noLineInspect(row)
|
990
|
+
}
|
991
|
+
},
|
992
|
+
noLineInspect(row){
|
993
|
+
let _this = this
|
994
|
+
let criteria = {
|
995
|
+
items: ' * ',
|
996
|
+
tablename: ' t_plan_item_meter ',
|
997
|
+
condition: ` f_plan_item_id = '${row.id}' `,
|
998
|
+
orderitem: ' 1 '
|
999
|
+
}
|
1000
|
+
let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_OrderBy', 'criteria': criteria}})
|
1001
|
+
if(result.code == 200){
|
1002
|
+
row.f_plan_meters = [result.data.rows[0]]
|
1003
|
+
var pardate = {
|
1004
|
+
_this:_this,
|
1005
|
+
title:'安全检查',
|
1006
|
+
safe:true
|
1007
|
+
}
|
1008
|
+
_this.$dispatch('gotoson',pardate)
|
1009
|
+
_this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
|
1010
|
+
}
|
1011
|
+
},
|
1012
|
+
makeAPhoneCall(phoneNumber) {
|
1013
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
1014
|
+
},
|
1015
|
+
reserve(idx) {
|
1016
|
+
this.param = idx
|
1017
|
+
this.showModal = true
|
1018
|
+
},
|
1019
|
+
search(args) {
|
1020
|
+
this.model.rows = []
|
1021
|
+
this.model.search(args.condition, args.model)
|
1022
|
+
},
|
1023
|
+
selfSearch() {
|
1024
|
+
this.getPlanCount()
|
1025
|
+
let condition = ""
|
1026
|
+
if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length > 0) {
|
1027
|
+
condition += " and ti.f_residential_area = '" + this.$refs.paged.$refs.cri.model.f_residential_area[0] + "'"
|
1028
|
+
} else if (this.$refs.paged.$refs.cri.model.f_residential_area instanceof String && this.$refs.paged.$refs.cri.model.f_residential_area) {
|
1029
|
+
condition += " and ti.f_residential_area = '" + this.$refs.paged.$refs.cri.model.f_residential_area + "'"
|
1030
|
+
}
|
1031
|
+
if (this.$refs.paged.$refs.cri.model.f_building)
|
1032
|
+
condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
|
1033
|
+
if (this.$refs.paged.$refs.cri.model.f_unit)
|
1034
|
+
condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
|
1035
|
+
if (this.planName) {
|
1036
|
+
condition += " and f_plan_name like '%" + this.planName + "%'"
|
1037
|
+
} else {
|
1038
|
+
if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0)
|
1039
|
+
condition += " and f_plan_name like '%" + this.$refs.paged.$refs.cri.model.f_plan_name + "%'"
|
1040
|
+
}
|
1041
|
+
// if(this.$refs.paged.$refs.cri.model.f_plan_year)
|
1042
|
+
// condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
|
1043
|
+
// if(this.$refs.paged.$refs.cri.model.f_plan_month)
|
1044
|
+
// condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
|
1045
|
+
if (this.$refs.paged.$refs.cri.model.f_userinfo_code)
|
1046
|
+
condition += " and ti.f_userinfo_code like '%" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "%'"
|
1047
|
+
if (this.$refs.paged.$refs.cri.model.f_keyword)
|
1048
|
+
condition += " and ti.f_address like '%" + this.$refs.paged.$refs.cri.model.f_keyword + "%'"
|
1049
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name)
|
1050
|
+
condition += " and ti.f_user_name like '%" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
|
1051
|
+
if (this.$refs.paged.$refs.cri.model.f_state[0])
|
1052
|
+
condition += " and ti.f_state='" + this.$refs.paged.$refs.cri.model.f_state[0] + "'"
|
1053
|
+
// if(this.$refs.paged.$refs.cri.model.f_last_state[0])
|
1054
|
+
// condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
|
1055
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type[0])
|
1056
|
+
condition += " and ti.f_user_type='" + this.$refs.paged.$refs.cri.model.f_user_type[0] + "'"
|
1057
|
+
if (this.$refs.paged.$refs.cri.model.f_meter_no)
|
1058
|
+
condition += " and tm.f_meter_no like '%" + this.$refs.paged.$refs.cri.model.f_meter_no + "%'"
|
1059
|
+
// if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
|
1060
|
+
// condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
|
1061
|
+
if (this.$refs.paged.$refs.cri.model.f_user_phone) {
|
1062
|
+
condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
|
1063
|
+
}
|
1064
|
+
if (this.$refs.paged.$refs.cri.model.f_enter_number)
|
1065
|
+
condition += " and ti.f_enter_number like '%" + this.$refs.paged.$refs.cri.model.f_enter_number + "%'"
|
1066
|
+
if (this.$refs.paged.$refs.cri.model.f_check_book.length > 0){
|
1067
|
+
if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0 || this.planName){
|
1068
|
+
condition += " and ti.f_check_book_id like '%" + this.$refs.paged.$refs.cri.model.f_check_book + "%'"
|
1069
|
+
}else {
|
1070
|
+
this.$showMessage("使用安检册筛选项必须选择计划名称")
|
1071
|
+
return
|
1072
|
+
}
|
1073
|
+
}
|
1074
|
+
if (this.$refs.paged.$refs.cri.model.f_check_version)
|
1075
|
+
condition += " and ti.f_check_version = " + this.$refs.paged.$refs.cri.model.f_check_version
|
1076
|
+
this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检') or (f_last_check_state = '到访不遇' )) and ti.f_no_checkplan = '有计划安检'" + condition)
|
1077
|
+
|
1078
|
+
},
|
1079
|
+
getNewOrder() {
|
1080
|
+
HostApp.__this__ = this
|
1081
|
+
HostApp.logicWithHint({
|
1082
|
+
// logic别名,key必须为logic
|
1083
|
+
'logic': 'SafeCheckServiceTimeOut',
|
1084
|
+
// 回调执行方法名,key必须为callback
|
1085
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
1086
|
+
// logic执行需要的业务参数
|
1087
|
+
'data': { params: '' },
|
1088
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
1089
|
+
// 执行回调方法传入key为backresult
|
1090
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
1091
|
+
'backresult': 1
|
1092
|
+
})
|
1093
|
+
HostApp.logicWithHint({
|
1094
|
+
// logic别名,key必须为logic
|
1095
|
+
'logic': 'FreshPlanItem',
|
1096
|
+
// 回调执行方法名,key必须为callback
|
1097
|
+
'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
|
1098
|
+
// logic执行需要的业务参数
|
1099
|
+
'data': { params: '' },
|
1100
|
+
// 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
|
1101
|
+
// 执行回调方法传入key为backresult
|
1102
|
+
// 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
|
1103
|
+
'backresult': 1
|
1104
|
+
})
|
1105
|
+
},
|
1106
|
+
getNewOrderCallBack() {
|
1107
|
+
this.selfSearch()
|
1108
|
+
this.getAllArea()
|
1109
|
+
this.getAllPlanName()
|
1110
|
+
},
|
1111
|
+
hidden() {
|
1112
|
+
this.criteriaShow = !this.criteriaShow
|
1113
|
+
},
|
1114
|
+
getAllArea() {
|
1115
|
+
this.residentialAreaOptions = []
|
1116
|
+
this.buildOptions = []
|
1117
|
+
this.unitOptions = []
|
1118
|
+
this.$refs.paged.$refs.cri.model.f_residential_area = ''
|
1119
|
+
this.$refs.paged.$refs.cri.model.f_building = ''
|
1120
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
1121
|
+
let criteria = {
|
1122
|
+
items: 'f_residential_area',
|
1123
|
+
tablename: 't_check_plan_item',
|
1124
|
+
condition: `f_residential_area IS NOT NULL AND f_residential_area != '' AND f_state <> '已检'`,
|
1125
|
+
groupitem: 'f_residential_area'
|
1126
|
+
}
|
1127
|
+
let result = HostApp._executeTask({
|
1128
|
+
'type': 'sql',
|
1129
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1130
|
+
})
|
1131
|
+
//tag)
|
1132
|
+
if (result.code == 200) {
|
1133
|
+
result.data.rows.forEach(item => this.residentialAreaOptions.push({
|
1134
|
+
label: item.f_residential_area,
|
1135
|
+
value: item.f_residential_area
|
1136
|
+
}))
|
1137
|
+
}
|
1138
|
+
//tag)
|
1139
|
+
},
|
1140
|
+
getbuilds(f_residential_area) {
|
1141
|
+
//tag)
|
1142
|
+
this.buildOptions = []
|
1143
|
+
this.unitOptions = []
|
1144
|
+
this.$refs.paged.$refs.cri.model.f_building = ''
|
1145
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
1146
|
+
if (!f_residential_area) {
|
1147
|
+
return
|
1148
|
+
}
|
1149
|
+
let criteria = {
|
1150
|
+
items: 'f_building',
|
1151
|
+
tablename: 't_check_plan_item',
|
1152
|
+
condition: `f_building IS NOT NULL AND f_building != '' AND f_state <> '已检' AND f_residential_area = '${f_residential_area}'`,
|
1153
|
+
groupitem: 'f_building order by f_building+0'
|
1154
|
+
}
|
1155
|
+
let result = HostApp._executeTask({
|
1156
|
+
'type': 'sql',
|
1157
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1158
|
+
})
|
1159
|
+
if (result.code == 200) {
|
1160
|
+
result.data.rows.forEach(item => this.buildOptions.push({ label: item.f_building, value: item.f_building }))
|
1161
|
+
}
|
1162
|
+
this.buildOptions.sort((a, b) => {
|
1163
|
+
return Number(a.label) - Number(b.label)
|
1164
|
+
})
|
1165
|
+
//tag)
|
1166
|
+
},
|
1167
|
+
getUnits(f_building) {
|
1168
|
+
f_building = f_building[0]
|
1169
|
+
//tag)
|
1170
|
+
this.unitOptions = []
|
1171
|
+
this.$refs.paged.$refs.cri.model.f_unit = ''
|
1172
|
+
if (!f_building) {
|
1173
|
+
return
|
1174
|
+
}
|
1175
|
+
let criteria = {
|
1176
|
+
items: 'f_unit',
|
1177
|
+
tablename: 't_check_plan_item',
|
1178
|
+
condition: `f_unit IS NOT NULL AND f_unit != '' AND f_state <> '已检' AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
|
1179
|
+
groupitem: 'f_unit'
|
1180
|
+
}
|
1181
|
+
let result = HostApp._executeTask({
|
1182
|
+
'type': 'sql',
|
1183
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1184
|
+
})
|
1185
|
+
if (result.code == 200) {
|
1186
|
+
result.data.rows.forEach(item => this.unitOptions.push({ label: item.f_unit, value: item.f_unit }))
|
1187
|
+
}
|
1188
|
+
this.unitOptions.sort((a, b) => {
|
1189
|
+
return Number(a.label) - Number(b.label)
|
1190
|
+
})
|
1191
|
+
},
|
1192
|
+
getPlanCount() {
|
1193
|
+
this.upcomingCount = 0
|
1194
|
+
this.tempSaveCount = 0
|
1195
|
+
this.doneCount = 0
|
1196
|
+
this.allPlanCount = 0
|
1197
|
+
|
1198
|
+
//获取统计区域数据
|
1199
|
+
let condition = ' 1=1 '
|
1200
|
+
if (this.planName) {
|
1201
|
+
condition += " and f_plan_name = '" + this.planName + "'"
|
1202
|
+
} else {
|
1203
|
+
if (this.$refs.paged.$refs.cri.model.f_plan_name) {
|
1204
|
+
condition += " and f_plan_name = '" + this.$refs.paged.$refs.cri.model.f_plan_name + "'"
|
1205
|
+
} else {
|
1206
|
+
condition = ' 1 != 1 '
|
1207
|
+
}
|
1208
|
+
}
|
1209
|
+
let tjData = {
|
1210
|
+
items: " COUNT(*) AS total_items, SUM(CASE WHEN tcpi.f_last_check_state= '到访不遇' THEN 1 ELSE 0 END) AS no_answer_count, SUM(CASE WHEN tcpi.f_state='已检' THEN 1 ELSE 0 END) AS yj_count, SUM(CASE WHEN tcpi.f_state='未检' THEN 1 ELSE 0 END) AS wj_count, ROUND(SUM(CASE WHEN tcp.f_entry_status='入户' THEN 1 ELSE 0 END)*100.0/COUNT(*),2) AS entry_rate_percent ",
|
1211
|
+
tablename: " t_check_plan tcpl LEFT JOIN t_check_plan_item tcpi ON tcpl.id=tcpi.f_plan_id LEFT JOIN t_check_paper tcp ON tcp.f_check_item_id= tcpi.id ",
|
1212
|
+
condition: condition,
|
1213
|
+
orderitem: '1'
|
1214
|
+
}
|
1215
|
+
let resultTj = HostApp._executeTask({
|
1216
|
+
'type': 'sql',
|
1217
|
+
'data': { 'alias': 'safe_singleTable_OrderBy', 'criteria': tjData }
|
1218
|
+
})
|
1219
|
+
if (resultTj.code == 200) {
|
1220
|
+
const stat = resultTj.data.rows[0];
|
1221
|
+
this.planTotal = stat.total_items || 0;
|
1222
|
+
this.notVisited = stat.no_answer_count || 0;
|
1223
|
+
this.checked = stat.yj_count || 0;
|
1224
|
+
this.notChecked = stat.wj_count || 0;
|
1225
|
+
this.enterRate = stat.entry_rate_percent || 0;
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
let criteria = {
|
1229
|
+
items: 'count(id) count',
|
1230
|
+
tablename: 't_check_plan_item',
|
1231
|
+
condition: `f_state = '未检'`,
|
1232
|
+
groupitem: 'f_state'
|
1233
|
+
}
|
1234
|
+
let result = HostApp._executeTask({
|
1235
|
+
'type': 'sql',
|
1236
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1237
|
+
})
|
1238
|
+
if (result.code && result.code == 200) {
|
1239
|
+
if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
|
1240
|
+
}
|
1241
|
+
}
|
1242
|
+
criteria = {
|
1243
|
+
items: 'count(id) count',
|
1244
|
+
tablename: 't_check_plan_item',
|
1245
|
+
condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
|
1246
|
+
groupitem: 'f_state'
|
1247
|
+
}
|
1248
|
+
result = HostApp._executeTask({
|
1249
|
+
'type': 'sql',
|
1250
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1251
|
+
})
|
1252
|
+
if (result.code && result.code == 200) {
|
1253
|
+
if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
|
1254
|
+
}
|
1255
|
+
}
|
1256
|
+
criteria = {
|
1257
|
+
items: 'count(id) count',
|
1258
|
+
tablename: 't_check_plan_item',
|
1259
|
+
condition: `f_complete = '已完成' AND f_state = '已检'`,
|
1260
|
+
groupitem: 'f_state'
|
1261
|
+
}
|
1262
|
+
result = HostApp._executeTask({
|
1263
|
+
'type': 'sql',
|
1264
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1265
|
+
})
|
1266
|
+
if (result.code && result.code == 200) {
|
1267
|
+
if (result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
|
1268
|
+
this.doneCount = result.data.rows[0].count
|
1269
|
+
}
|
1270
|
+
}
|
1271
|
+
this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
|
1272
|
+
},
|
1273
|
+
getAllPlanName() {
|
1274
|
+
this.planNameOptions = []
|
1275
|
+
this.$refs.paged.$refs.cri.model.f_plan_name = ''
|
1276
|
+
let criteria = {
|
1277
|
+
items: 'f_plan_name',
|
1278
|
+
tablename: 't_check_plan',
|
1279
|
+
condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
|
1280
|
+
groupitem: 'f_plan_name'
|
1281
|
+
}
|
1282
|
+
let result = HostApp._executeTask({
|
1283
|
+
'type': 'sql',
|
1284
|
+
'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
|
1285
|
+
})
|
1286
|
+
//tag)
|
1287
|
+
if (result.code == 200) {
|
1288
|
+
result.data.rows.forEach(item => this.planNameOptions.push({ label: item.f_plan_name, value: item.f_plan_name }))
|
1289
|
+
}
|
1290
|
+
//tag)
|
1291
|
+
},
|
1292
|
+
setPlanParam(detailsType, event) {
|
1293
|
+
if (event.srcElement.checked) {
|
1294
|
+
this.planparam.push(detailsType)
|
1295
|
+
//tag
|
1296
|
+
} else {
|
1297
|
+
if (this.planparam.length > 0) {
|
1298
|
+
let planid = this.planparam.findIndex((value) => {
|
1299
|
+
return value === detailsType
|
1300
|
+
})
|
1301
|
+
this.planparam.splice(planid, 1)
|
1302
|
+
//tag
|
1303
|
+
|
1304
|
+
}
|
1305
|
+
|
1306
|
+
}
|
1307
|
+
}
|
1308
|
+
}
|
1309
|
+
}
|
1310
|
+
</script>
|