safecheck-client 4.0.1-5 → 4.0.1-52

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