safecheck-client 4.0.0-113 → 4.0.0-114

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