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