safecheck-client 3.0.30-62-t4 → 3.0.30-62-t6

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 (469) hide show
  1. package/docs/GridTree.md +47 -47
  2. package/docs/PrintFile.md +38 -38
  3. package/docs/tree.md +40 -40
  4. package/examples/ChangeConfig/comp.js +548 -548
  5. package/examples/PhoneSafePlan/comp.js +33 -33
  6. package/examples/SafePlan/App.vue +89 -89
  7. package/examples/SafePlan/comp.js +1527 -1527
  8. package/examples/SafePlan-aode/comp.js +1132 -1132
  9. package/examples/SafePlan-liaoyuan/App.vue +82 -82
  10. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  11. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  12. package/examples/SafePlan-tongchuan/App.vue +81 -81
  13. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  14. package/examples/SafePlan-wenxi/App.vue +80 -80
  15. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  16. package/examples/SafePlan-zhoukou/App.vue +81 -81
  17. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  18. package/examples/SafePlanItem/comp.js +69 -69
  19. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  20. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  21. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  22. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  23. package/examples/UserFiles/comp.js +227 -227
  24. package/package.json +1 -1
  25. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  26. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  27. package/src/components/NewDefectList/DefectListNew.vue +617 -617
  28. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  29. package/src/components/android/AddPlanItem.vue +447 -447
  30. package/src/components/android/AddPlanItemYy.vue +1 -1
  31. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  32. package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -502
  33. package/src/components/android/BlackUserOnLine.vue +318 -318
  34. package/src/components/android/CurrentCreate.vue +1050 -1050
  35. package/src/components/android/CurrentCreateYy.vue +1 -1
  36. package/src/components/android/Devices.vue +327 -327
  37. package/src/components/android/Devicesm.vue +327 -327
  38. package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +288 -288
  39. package/src/components/android/PaperFeedback.vue +1514 -1514
  40. package/src/components/android/PaperFeedbackTemp.vue +1470 -1470
  41. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  42. package/src/components/android/PhoneRecordInfo.vue +113 -113
  43. package/src/components/android/PhoneSellInfo.vue +113 -113
  44. package/src/components/android/QRCode/QRCodeBinding.vue +2 -2
  45. package/src/components/android/QRCode/QRCodePage.vue +2 -2
  46. package/src/components/android/SafePlanItem.vue +509 -509
  47. package/src/components/android/SafecheckOrderV.vue +2805 -2805
  48. package/src/components/android/UserinfoSelect.vue +1 -1
  49. package/src/components/android/examples/SafeListExamples.vue +2 -2
  50. package/src/components/android/examples/UserExamples.vue +1 -1
  51. package/src/components/android/examples/ViewDetailsExamples.vue +1235 -1235
  52. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  53. package/src/components/android/recheck/Recheck.vue +402 -402
  54. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  55. package/src/components/checkplan/checkmsg.vue +459 -459
  56. package/src/components/defect/DefectList.vue +507 -507
  57. package/src/components/defect/DefectListWeixiu.vue +484 -484
  58. package/src/components/defect/DefectPaper.vue +764 -764
  59. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  60. package/src/components/filialCircle/CircleList.vue +139 -139
  61. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  62. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  63. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  64. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  65. package/src/components/inspections/InspectionList.vue +476 -476
  66. package/src/components/inspections/InspectionLists.vue +478 -478
  67. package/src/components/inspections/InspectionListss.vue +477 -477
  68. package/src/components/inspections/inspectionFeedback.vue +720 -720
  69. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  70. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  71. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  72. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  73. package/src/components/paper/PaperList.vue +790 -790
  74. package/src/components/pc/AnnouncementPC.vue +524 -524
  75. package/src/components/pc/DefectList.vue +742 -742
  76. package/src/components/pc/DeviceChange.vue +1068 -1068
  77. package/src/components/pc/PaperDefectMain.vue +866 -866
  78. package/src/components/pc/SafeVisitInfo.vue +1 -1
  79. package/src/components/planmanage/checkPlanList.vue +369 -369
  80. package/src/components/planmanage/checkUserList.vue +773 -773
  81. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  82. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  83. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  84. package/src/components/rongcheng/AspPaperFeedback.vue +1179 -1179
  85. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  86. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +1 -1
  87. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  88. package/src/components/rongcheng/PaperFeedback.vue +1318 -1318
  89. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  90. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  91. package/src/components/rongcheng/SafecheckOrderVCli.vue +1 -1
  92. package/src/components/rongcheng/report/CheckPlanAreaList.vue +435 -435
  93. package/src/components/safecheckNew/PaperList.vue +2 -2
  94. package/src/components/safecheckNew/android/AddPlanItem.vue +1 -1
  95. package/src/components/safecheckNew/android/AreaPlan.vue +561 -561
  96. package/src/components/safecheckNew/android/CurrentCreate.vue +1 -1
  97. package/src/components/safecheckNew/android/Recheck.vue +1 -1
  98. package/src/components/safecheckNew/android/SafecheckOrderV.vue +1 -1
  99. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  100. package/src/components/shaoguan/DefectList.vue +473 -473
  101. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  102. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  103. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  104. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  105. package/src/filiale/ancheng/android/PaperFeedback.vue +1489 -1489
  106. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  107. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  108. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  109. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  110. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  111. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  112. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  113. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  114. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  115. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  116. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
  117. package/src/filiale/baiyin/android/SafecheckOrderV.vue +1 -1
  118. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  119. package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
  120. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  121. package/src/filiale/baiyin/pc/DefectPaperNew.vue +3 -3
  122. package/src/filiale/baiyin/pc/PaperList.vue +2 -2
  123. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
  124. package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
  125. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  126. package/src/filiale/bayan/android/AddPlanItem.vue +430 -430
  127. package/src/filiale/bayan/android/CheckPlanDown.vue +2 -2
  128. package/src/filiale/bayan/android/Edit.vue +1 -1
  129. package/src/filiale/bayan/android/PaperFeedback.vue +1 -1
  130. package/src/filiale/bayan/android/SafecheckOrderV.vue +2866 -2866
  131. package/src/filiale/bayan/android/SafecheckUserInfo.vue +3 -3
  132. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  133. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +1 -1
  134. package/src/filiale/bayan/pc/CheckSearchUser.vue +3 -3
  135. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  136. package/src/filiale/bayan/pc/DefectPaperNew.vue +4 -4
  137. package/src/filiale/bayan/pc/DeviceChange.vue +1 -1
  138. package/src/filiale/bayan/pc/HiddenSituation.vue +1 -1
  139. package/src/filiale/bayan/pc/PaperList.vue +3 -3
  140. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -333
  141. package/src/filiale/dexin/android/CasualSave.vue +1 -1
  142. package/src/filiale/dexin/android/SafecheckOrderV.vue +1 -1
  143. package/src/filiale/dexin/android/WebMeterOpen.vue +377 -377
  144. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +213 -213
  145. package/src/filiale/dexin/pc/PaperList.vue +2 -2
  146. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  147. package/src/filiale/fugou/android/SafecheckOrderV.vue +1 -1
  148. package/src/filiale/fugou/pc/CheckBook.vue +303 -303
  149. package/src/filiale/fugou/pc/CheckBookArea.vue +146 -146
  150. package/src/filiale/fugou/pc/CheckBookCompany.vue +144 -144
  151. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
  152. package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -94
  153. package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
  154. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
  155. package/src/filiale/fugou/pc/CheckBookSearchUnit.vue +229 -229
  156. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +1 -1
  157. package/src/filiale/fugou/pc/CheckBookSearchUserList.vue +674 -674
  158. package/src/filiale/fugou/pc/CheckBookUser.vue +158 -158
  159. package/src/filiale/fugou/pc/DefectPaperNew.vue +3 -3
  160. package/src/filiale/fugou/pc/PaperDefectMain.vue +1 -1
  161. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  162. package/src/filiale/fugou/pc/PlanManage.vue +1061 -1061
  163. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  164. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  165. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  166. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  167. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  168. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  169. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  170. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  171. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  172. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  173. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  174. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  175. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  176. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
  177. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  178. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  179. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +713 -713
  180. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +573 -573
  181. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +508 -508
  182. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  183. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +595 -595
  184. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  185. package/src/filiale/huaran/android/SafecheckOrderV.vue +1 -1
  186. package/src/filiale/huaran/pc/CheckBook.vue +313 -313
  187. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -170
  188. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -166
  189. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -196
  190. package/src/filiale/huaran/pc/CheckBookList.vue +386 -386
  191. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -564
  192. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -229
  193. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -604
  194. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -112
  195. package/src/filiale/huaran/pc/PaperList.vue +2 -2
  196. package/src/filiale/huaran/pc/PlanManage.vue +4 -4
  197. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  198. package/src/filiale/huaran/pc/checkUserList.vue +867 -867
  199. package/src/filiale/huatong/android/PaperFeedback.vue +1433 -1433
  200. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  201. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  202. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  203. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  204. package/src/filiale/huayin/android/PaperFeedback.vue +1422 -1422
  205. package/src/filiale/huayin/android/SafecheckOrderV.vue +2712 -2712
  206. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  207. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  208. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  209. package/src/filiale/jiaocheng/android/PaperFeedback.vue +1308 -1308
  210. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  211. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  212. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  213. package/src/filiale/jiaxian/android/AddPlanItem.vue +1 -1
  214. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -1229
  215. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +1 -1
  216. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +1 -1
  217. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  218. package/src/filiale/jingyang/android/AddPlanItem.vue +1 -1
  219. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -1080
  220. package/src/filiale/jingyang/android/PaperFeedback.vue +1493 -1493
  221. package/src/filiale/jingyang/android/SafecheckOrderV.vue +1 -1
  222. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
  223. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  224. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  225. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  226. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  227. package/src/filiale/kelai/android/AndroidDefectDeal.vue +747 -747
  228. package/src/filiale/kelai/android/PaperFeedback.vue +1539 -1539
  229. package/src/filiale/kelai/android/SafecheckOrderV.vue +2448 -2448
  230. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  231. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  232. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  233. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  234. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  235. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  236. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  237. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  238. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  239. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  240. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  241. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1 -1
  242. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  243. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  244. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  245. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  246. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  247. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  248. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  249. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  250. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  251. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  252. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  253. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  254. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  255. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  256. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  257. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  258. package/src/filiale/pingxiang/android/PaperFeedback.vue +1399 -1399
  259. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  260. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  261. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  262. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  263. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  264. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  265. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  266. package/src/filiale/qianneng/android/PaperFeedback.vue +1434 -1434
  267. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  268. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  269. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  270. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  271. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  272. package/src/filiale/qianneng/pc/PaperList.vue +2 -2
  273. package/src/filiale/qingjian/android/SafecheckOrderV.vue +1 -1
  274. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  275. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  276. package/src/filiale/qingtongxia/android/AddPlanItem.vue +1 -1
  277. package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -1053
  278. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -1230
  279. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  280. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +1 -1
  281. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  282. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  283. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  284. package/src/filiale/rizhao/android/PaperFeedback.vue +1510 -1510
  285. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  286. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  287. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  288. package/src/filiale/rizhao/pc/NewCheckpaper.vue +1346 -1346
  289. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  290. package/src/filiale/rongchuang/android/PaperFeedback.vue +1455 -1455
  291. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +1 -1
  292. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  293. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +1342 -1342
  294. package/src/filiale/rongchuang/pc/PaperList.vue +2 -2
  295. package/src/filiale/ruihua/android/SafecheckOrderV.vue +1 -1
  296. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +1 -1
  297. package/src/filiale/shanggao/android/PaperFeedback.vue +1422 -1422
  298. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  299. package/src/filiale/shanxian/android/AddPlanItem.vue +1 -1
  300. package/src/filiale/shanxian/android/PaperFeedback.vue +1445 -1445
  301. package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
  302. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  303. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  304. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  305. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  306. package/src/filiale/shanxian/pc/PaperList.vue +2 -2
  307. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  308. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  309. package/src/filiale/shexian/android/PaperFeedback.vue +1448 -1448
  310. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  311. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  312. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  313. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  314. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  315. package/src/filiale/shexian/pc/PaperList.vue +2 -2
  316. package/src/filiale/shimen/android/PaperFeedback.vue +1341 -1341
  317. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  318. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  319. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  320. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  321. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  322. package/src/filiale/siyang/android/AddPlanItem.vue +1 -1
  323. package/src/filiale/siyang/android/AppCheckPlan.vue +246 -246
  324. package/src/filiale/siyang/android/CurrentCreate.vue +1 -1
  325. package/src/filiale/siyang/android/PhoneRecordInfo.vue +1 -1
  326. package/src/filiale/siyang/android/SafecheckOrderV.vue +1 -1
  327. package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
  328. package/src/filiale/siyang/pc/CheckBookList.vue +396 -396
  329. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -667
  330. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  331. package/src/filiale/siyang/pc/CheckSearchUser.vue +2 -2
  332. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  333. package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
  334. package/src/filiale/siyang/pc/PaperDefectMain.vue +1 -1
  335. package/src/filiale/siyang/pc/PaperList.vue +2 -2
  336. package/src/filiale/siyang/pc/PlanManage.vue +839 -839
  337. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  338. package/src/filiale/siyang/pc/checkUserList.vue +790 -790
  339. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  340. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  341. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  342. package/src/filiale/tianke/pc/DefectListNew.vue +538 -538
  343. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  344. package/src/filiale/tianke/pc/checkScreen.vue +786 -786
  345. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  346. package/src/filiale/tongchuan/android/PaperFeedback.vue +1316 -1316
  347. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  348. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  349. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1323 -1323
  350. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3033 -3033
  351. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  352. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  353. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1040 -1040
  354. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  355. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  356. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  357. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  358. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  359. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  360. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  361. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  362. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  363. package/src/filiale/weinan/android/PaperFeedback.vue +1410 -1410
  364. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  365. package/src/filiale/weinan/android/SafecheckOrderV.vue +3339 -3339
  366. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  367. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  368. package/src/filiale/weinan/pc/CheckSearchUser.vue +2 -2
  369. package/src/filiale/weinan/pc/DefectListNew.vue +1 -1
  370. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  371. package/src/filiale/weinan/pc/DeviceChange.vue +1 -1
  372. package/src/filiale/weinan/pc/NewCheckpaper.vue +1459 -1459
  373. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  374. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  375. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  376. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  377. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  378. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  379. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  380. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  381. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  382. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  383. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  384. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  385. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -2
  386. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  387. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  388. package/src/filiale/wensu/pc/PlanManage.vue +831 -831
  389. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  390. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  391. package/src/filiale/wenxi/android/PaperFeedback.vue +1607 -1607
  392. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  393. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +2 -2
  394. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  395. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  396. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  397. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  398. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  399. package/src/filiale/wuan/android/PaperFeedback.vue +1433 -1433
  400. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  401. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  402. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  403. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  404. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  405. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  406. package/src/filiale/wuhai/android/PaperFeedback.vue +1350 -1350
  407. package/src/filiale/wuhai/android/SafecheckOrderV.vue +1 -1
  408. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  409. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  410. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  411. package/src/filiale/wuhai/pc/PaperList.vue +2 -2
  412. package/src/filiale/xilan/android/AddPlanItem.vue +1 -1
  413. package/src/filiale/xilan/android/CurrentCreate.vue +1 -1
  414. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  415. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  416. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  417. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  418. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  419. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  420. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  421. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  422. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  423. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  424. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  425. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +1 -1
  426. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  427. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  428. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +2 -2
  429. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  430. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  431. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1 -1
  432. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  433. package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -1519
  434. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2 -2
  435. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  436. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +2 -2
  437. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +3 -3
  438. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  439. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +1 -1
  440. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  441. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  442. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  443. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  444. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +652 -652
  445. package/src/filiale/yuansheng/android/PaperFeedback.vue +1488 -1488
  446. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  447. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  448. package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
  449. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  450. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  451. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  452. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  453. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1508 -1508
  454. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2849 -2849
  455. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +784 -784
  456. package/src/filiale/yunchengminsheng/pc/NewCheckpaper.vue +1538 -1538
  457. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  458. package/src/filiale/zhongsheng/android/PaperFeedback.vue +1341 -1341
  459. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  460. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  461. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  462. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  463. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  464. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  465. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  466. package/src/filiale/zhoukou/android/PaperFeedback.vue +1367 -1367
  467. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  468. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  469. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
@@ -1,1039 +1,1039 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">用户编号</label>
9
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
- id="f_userinfo_code"
11
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
12
- </div>
13
- <div :class="$parent.$parent.style">
14
- <label class="font_normal_body">用户姓名</label>
15
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
16
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
17
- </div>
18
- <div :class="$parent.$parent.style">
19
- <label class="font_normal_body">小&emsp;&emsp;区</label>
20
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
21
- id="f_residential_area"
22
- placeholder="小区" condition="f_residential_area like '%{}%'">
23
- </div>
24
- <div :class="$parent.$parent.style">
25
- <label class="font_normal_body">地&emsp;&emsp;址</label>
26
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
27
- placeholder="地址" condition="f_address like '%{}%'">
28
- </div>
29
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
30
- <export-excel :data="$parent.$parent.searchData"
31
- :field="$parent.$parent.excelHeaders"
32
- :choose-col="true"
33
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
34
- template-name='用户安检情况'></export-excel>
35
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
36
- <div style="float: right" class="button_spacing"
37
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
38
- @click="$parent.$parent.hiddenr()"></div>
39
- <div style="float: right" class="button_spacing"
40
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
- @click="$parent.$parent.hidden()">
42
-
43
- </div>
44
- </div>
45
-
46
-
47
- </div>
48
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
49
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
50
- <label class="font_normal_body">用户类型</label>
51
- <v-select id="f_usertype"
52
- placeholder='用户类型'
53
- class="select select_list"
54
- :value.sync="model.f_usertype"
55
- :value-single="true"
56
- :options='$parent.$parent.usertypes'
57
- v-model="model.f_usertype"
58
- condition="f_user_type = '{}'"
59
- close-on-select clear-button></v-select>
60
- </div>
61
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
62
-
63
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
- <label class="font_normal_body" style="color: red;">安检筛选</label>
65
- <v-select
66
- placeholder='安检筛选'
67
- :value-single="true"
68
- class="select select_list"
69
- :value.sync="$parent.$parent.SafeCheckXZ"
70
- :options='$parent.$parent.SafeCheckXZs'
71
- v-model="$parent.$parent.SafeCheckXZ"
72
- close-on-select clear-button></v-select>
73
- </div>
74
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
75
- <label class="font_normal_body">安检起始</label>
76
- <datepicker
77
- :value.sync="model.f_check_start"
78
- placeholder='最后安检时间起始'
79
- style="width: 60%"
80
- :format="'yyyy-MM-dd 00:00:00'"
81
- :show-rest-button="reset"
82
- v-model="model.f_check_start">
83
- </datepicker>
84
- </div>
85
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
86
- <label class="font_normal_body">安检结束</label>
87
- <datepicker
88
- :value.sync="model.f_check_end"
89
- placeholder='最后安检时间结束'
90
- style="width: 60%"
91
- :format="'yyyy-MM-dd 23:59:59'"
92
- :show-rest-button="reset"
93
- v-model="model.f_check_end">
94
- </datepicker>
95
- </div>
96
-
97
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
98
- <label class="font_normal_body">安检状态</label>
99
- <v-select id="f_entry"
100
- placeholder='安检状态'
101
- :multiple="true"
102
- class="select select_list"
103
- :value.sync="$parent.$parent.checkStates"
104
- :options='$parent.$parent.checkstatus'
105
- ></v-select>
106
- </div>
107
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
108
- <label class="font_normal_body">隐患情况</label>
109
- <v-select
110
- placeholder='隐患情况'
111
- class="select select_list"
112
- :value-single="true"
113
- v-model='model.f_check_result'
114
- :value.sync="model.f_check_result"
115
- :options='$parent.$parent.f_check_results'
116
- condition="f_defect_content like '%{}%'"
117
- close-on-select clear-button></v-select>
118
- </div>
119
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
120
- </div>
121
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
122
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
123
- <label class="font_normal_body">安&ensp;检&ensp;员:</label>
124
- <v-select
125
- class="select select_list"
126
- :value.sync="model.checker"
127
- v-model="model.checker"
128
- :options='$parent.$parent.getConList("checkerName")'
129
- condition="f_checker_name in {}">
130
- close-on-select
131
- value-single
132
- >
133
- </v-select>
134
- </div>
135
- <!-- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">-->
136
- <!-- <role-selector-safe-->
137
- <!-- role-name="安检员"-->
138
- <!-- role-lable="安&nbsp;检&nbsp;员&nbsp;"-->
139
- <!-- @re-res="$parent.$parent.getRes"-->
140
- <!-- :value.sync="model.f_checker_id"-->
141
- <!-- v-model="model.f_checker_id"-->
142
- <!-- :value-multiple="true"-->
143
- <!-- condition=" f_checker_name in {}">-->
144
- <!-- </role-selector-safe>-->
145
- <!-- </div>-->
146
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
147
- <label class="font_normal_body">片&emsp;&emsp;区</label>
148
- <v-select class="select_list select"
149
- placeholder='片区/管理站' style="width: 60%"
150
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
151
- :options='$parent.$parent.sliceArea'
152
- filer-key="name"
153
- close-on-select clear-button
154
- condition="f_slice_area='{}'"
155
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
156
- :value-single="true">
157
- </v-select>
158
- </div>
159
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
160
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
161
- <v-select class="select_list select"
162
- placeholder='抄表册' style="width: 60%"
163
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
164
- :options='$parent.$parent.cbc'
165
- filer-key="name"
166
- close-on-select clear-button
167
- condition="f_meter_book_num={}"
168
- :value-single="true">
169
- </v-select>
170
- </div>
171
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
172
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
173
- <v-select class="select_list select"
174
- placeholder='请选择' style="width: 60%"
175
- :value.sync="model.f_pcd" v-model="model.f_pcd"
176
- :options='$parent.$parent.pcds'
177
- filer-key="name"
178
- close-on-select clear-button
179
- condition="f_pcd='{}'"
180
- :value-single="true">
181
- </v-select>
182
- </div>
183
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
184
- <label class="font_normal_body">用户状态</label>
185
- <v-select class="select_list select"
186
- placeholder='用户状态' style="width: 60%"
187
- :value.sync="model.f_user_state" v-model="model.f_user_state"
188
- :options='$parent.$parent.userstates'
189
- close-on-select clear-button
190
- condition="f_user_state = '{}'"
191
- :value-single="true">
192
- </v-select>
193
- </div>
194
- </div>
195
-
196
- <div class="row" v-show="$parent.$parent.$parent.showItem">
197
- <div :class="$parent.$parent.style">
198
- <label class="font_normal_body">用户编号</label>
199
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
200
-
201
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
202
- </div>
203
- <div :class="$parent.$parent.style">
204
- <label class="font_normal_body">用户姓名</label>
205
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
206
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
207
- </div>
208
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
209
- <export-excel :data="$parent.$parent.searchData"
210
- :field="$parent.$parent.excelHeaders"
211
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
212
- template-name='用户安检情况'></export-excel>
213
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
214
- <div style="float: right" class="button_spacing"
215
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
216
- @click="$parent.$parent.hiddenr()"></div>
217
- <div style="float: right" class="button_spacing"
218
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
219
- @click="$parent.$parent.hidden()">
220
-
221
- </div>
222
- </div>
223
-
224
- </div>
225
- <div class="row" v-show="$parent.$parent.$parent.showItem">
226
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
227
- <label class="font_normal_body">小&emsp;&emsp;区</label>
228
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
229
-
230
- placeholder="小区" condition="f_residential_area like '%{}%'">
231
- </div>
232
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
233
- <label class="font_normal_body">地&emsp;&emsp;址</label>
234
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
235
-
236
- placeholder="地址" condition="f_address like '%{}%'">
237
- </div>
238
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
239
- <label class="font_normal_body">用户类型</label>
240
- <v-select
241
- placeholder='用户类型'
242
- class="select select_list"
243
-
244
- :value.sync="model.f_usertype"
245
- :value-single="true"
246
- :options='$parent.$parent.usertypes'
247
- v-model="model.f_usertype"
248
- condition="f_user_type = '{}'"
249
- close-on-select clear-button></v-select>
250
- </div>
251
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
252
-
253
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
254
- <label class="font_normal_body" style="color: red;">安检筛选</label>
255
- <v-select
256
- placeholder='安检筛选'
257
- :value-single="true"
258
-
259
- class="select select_list"
260
- :value.sync="$parent.$parent.SafeCheckXZ"
261
- :options='$parent.$parent.SafeCheckXZs'
262
- v-model="$parent.$parent.SafeCheckXZ"
263
- close-on-select clear-button></v-select>
264
- </div>
265
-
266
- </div>
267
- <div class="row" v-show="$parent.$parent.$parent.showItem">
268
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
269
- <label class="font_normal_body">安检起始</label>
270
- <datepicker
271
- :value.sync="model.f_check_start"
272
- placeholder='最后安检时间起始'
273
- :disabled-days-of-week="[]"
274
- style="width: 60%"
275
- :format="'yyyy-MM-dd'"
276
- :show-rest-button="reset"
277
- v-model="model.f_check_start">
278
- </datepicker>
279
- </div>
280
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
281
- <label class="font_normal_body">安检结束</label>
282
- <datepicker
283
- :value.sync="model.f_check_end"
284
- placeholder='最后安检时间结束'
285
- style="width: 60%"
286
- :disabled-days-of-week="[]"
287
- :format="'yyyy-MM-dd'"
288
- :show-rest-button="reset"
289
- v-model="model.f_check_end">
290
- </datepicker>
291
- </div>
292
-
293
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
294
- <label class="font_normal_body">安检状态</label>
295
- <v-select
296
- placeholder='安检状态'
297
- class="select select_list"
298
- :value.sync="$parent.$parent.checkStates"
299
- :options='$parent.$parent.checkstatus'
300
- :multiple="true"
301
- close-on-select clear-button></v-select>
302
- </div>
303
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
304
- <label class="font_normal_body">隐患情况</label>
305
- <v-select
306
- placeholder='隐患情况'
307
- class="select select_list"
308
- :value-single="true"
309
- v-model='model.f_check_result'
310
- :value.sync="model.f_check_result"
311
- :options='$parent.$parent.f_check_results'
312
- condition="f_defect_content like '%{}%'"
313
- close-on-select clear-button></v-select>
314
- </div>
315
-
316
- </div>
317
- <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
318
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
319
- <label class="font_normal_body">公&emsp;&emsp;司</label>
320
- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
321
- </right-tree>
322
- </div>
323
-
324
- </div>-->
325
- </div>
326
- </criteria>
327
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
328
- <template partial='head'>
329
- <tr>
330
- <th>
331
- <nobr>用户编号</nobr>
332
- </th>
333
- <th>
334
- <nobr>用户名称</nobr>
335
- </th>
336
- <th>
337
- <nobr>用户电话</nobr>
338
- </th>
339
- <th>
340
- <nobr>用户表号</nobr>
341
- </th>
342
- <!-- <th>-->
343
- <!-- <nobr>气表品牌</nobr>-->
344
- <!-- </th>-->
345
- <th>
346
- <nobr>用户类型</nobr>
347
- </th>
348
- <!-- <th>-->
349
- <!-- <nobr>壁挂炉</nobr>-->
350
- <!-- </th>-->
351
- <!-- <th>-->
352
- <!-- <nobr>灶具</nobr>-->
353
- <!-- </th>-->
354
- <th>
355
- <nobr>小区名称</nobr>
356
- </th>
357
- <th style="padding: 0 40px">
358
- <nobr>地址</nobr>
359
- </th>
360
- <th>
361
- <nobr>安检员</nobr>
362
- </th>
363
- <!-- <th>-->
364
- <!-- <nobr>安检员备注</nobr>-->
365
- <!-- </th>-->
366
- <th>
367
- <nobr>安检日期</nobr>
368
- </th>
369
- <th>
370
- <nobr>安检状态</nobr>
371
- </th>
372
- <th>
373
- <nobr>安检结果</nobr>
374
- </th>
375
- <th>
376
- <nobr>建档日期</nobr>
377
- </th>
378
- <th>
379
- <nobr>通气日期</nobr>
380
- </th>
381
- <th v-show="$parent.$parent.$parent.showcode">
382
- <nobr>二维码</nobr>
383
- </th>
384
- </tr>
385
- </template>
386
- <template partial='body'>
387
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
388
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
389
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
390
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
391
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
392
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
393
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
394
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
395
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
396
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
397
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
398
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
399
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
400
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
401
- {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
402
- </td>
403
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
404
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_gas_date }}</td>
405
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center" v-show="$parent.$parent.$parent.showcode">
406
- <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code)' >点击</button>
407
- </td>
408
- </template>
409
- </data-grid>
410
- </criteria-paged>
411
- <modal :show.sync="dialogVisible" style="text-align: center" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
412
- <div slot="modal-header" class="modal-header">
413
- <h4 class="modal-title">
414
- 二维码
415
- </h4>
416
- </div>
417
- <div slot="modal-body" class="modal-body" >
418
- <div id="dd" ></div>
419
- </div>
420
- <div slot="modal-footer" class="modal-footer">
421
- <print-element class="btn btn-success width-80" id="dd" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
422
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
423
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false" >取消</button>
424
- </div>
425
- </modal>
426
- </div>
427
-
428
- </template>
429
-
430
- <script>
431
- import {PagedList} from 'vue-client'
432
- import {HttpResetClass} from 'vue-client'
433
- import co from 'co'
434
- import * as Util from '../../Util'
435
- import Vue from 'vue'
436
-
437
- // let select = function * (self,userid) {
438
- // let http = new HttpResetClass()
439
- // let getGasman = yield http.load('POST','/rs/search', {
440
- // source: 'this.getChildByName($安检员$).getUsers()',
441
- // userid: userid
442
- // }, {resolveMsg: null, rejectMsg: null})
443
- // //tag
444
- // getGasman.data.forEach((checker)=>{
445
- // self.checkersid.push({label:checker.name,value:checker.id})
446
- // })
447
- // self.checkersid.push({label:'全部',value:''})
448
- // }
449
-
450
-
451
- export default {
452
- title: '用户安检情况',
453
- data() {
454
- let options = []
455
- let year = (new Date()).getFullYear()
456
- for (let i = year; i <= year + 3; i++)
457
- options.push({label: i + '', value: i + ''})
458
- let moptions = []
459
- for (let i = 1; i <= 12; i++)
460
- moptions.push({label: i + '', value: i + ''})
461
-
462
- return {
463
- dialogVisible: false,
464
- searchData: {
465
- condition: '1=1',
466
- orderitem: "f_last_check_date",
467
- timetype: "dd",
468
- f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
469
- },
470
- excelHeaders: {
471
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
472
-
473
- 'f_userinfo_code': '用户编号',
474
- 'f_user_name': '用户名称',
475
- 'f_user_phone': '用户电话',
476
- 'f_meternumber': '用户表号',
477
- 'f_user_type': '用户类型',
478
- 'f_checker_name': '安检员',
479
- 'f_residential_area': '小区名称',
480
- 'f_address': '地址',
481
- 'f_last_check_date': '安检日期',
482
- 'f_last_check_state': '安检状态',
483
- 'f_last_check_result': '安检结果',
484
- 'f_createfile_date': '建档日期',
485
- 'f_gas_date': '通气日期'
486
- },
487
- model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
488
- orderitem: "'f_last_check_date'",
489
- timetype: "'dd'",
490
- f_defect_content: 'this.f_defect_content'
491
- }),
492
- f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
493
- orgstrs: [{label: '全部', value: ''}],
494
- checkersid: [],
495
- checkStates:[],
496
- SafeCheckXZ: '',
497
- civil: '', //民用安检周期
498
- civilian: '', //非民用安检周期
499
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
500
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
501
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
502
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
503
- IsShare: '否',
504
- checkerName:[],
505
- checker: {},
506
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
507
- criteriaShow: false,
508
- checkers: [],
509
- showcode:false,
510
- chosenOrg: {id: 0},
511
- showModal: false,
512
- checkedAll: false,
513
- checkrows: [],
514
- adjustables: [],
515
- f_plan_year: year + '',
516
- f_plan_month: moptions[new Date().getMonth()].value,
517
- f_effective_start_time: '', //计划有效起始时间
518
- f_effective_end_time: '', //计划有效结束时间
519
- checkboxModel: {},
520
- c_year_list: options,
521
- c_month_list: moptions,
522
- // areas: this.areas(),
523
- checkstatus: this.checkstatus(),
524
- usertypes: this.usertypes(),
525
- userstates: this.userstates(),
526
- sqlname: '',
527
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
528
- creatPlanWay: '',
529
- sliceArea: [],
530
- cbcs:[],
531
- cbc:[],
532
- pcds:[]
533
- }
534
- },
535
- props: {
536
- style: {
537
- type: String,
538
- default: 'col-sm-2 form-group'
539
- },
540
- style2: {
541
- type: String,
542
- default: 'col-sm-4 form-group'
543
- },
544
- checkplan: { // 传入一条安检计划信息
545
- type: Object
546
- },
547
- additemshow: {
548
- type: Boolean,
549
- default: false
550
- }
551
- },
552
- ready() {
553
- // 获取分公司信息
554
- this.model.f_defect_content=this.f_defect_content
555
- this.showcode=this.$appdata.getSingleValue('用户安检情况二维码')
556
- //this.getfengongsi()
557
- this.model.chosenOrg = {id: 0}
558
- this.model.f_filialeids = this.$login.f.f_orgids
559
- this.model.f_filiale = this.$login.f.f_fengongsi
560
- this.model.f_OrgStr = this.$login.f.orgpathstr
561
- this.Mreadibook(`('${this.$login.f.orgid}')`)
562
- this.getAllMeterBook(`('${this.$login.f.orgid}')`)
563
- this.searchChecker(this.$login.f.id)
564
- },
565
- methods: {
566
- getConList(field){
567
- return [{label:'全部',value:''}, ...this[field]]
568
- },
569
- async searchChecker(id){
570
- let res=await new HttpResetClass().load('POST', '/rs/search', {
571
- source: 'tool.getChildrenOfResName($安检员$)',
572
- userid: id
573
- }, {resolveMsg: null, rejectMsg: null})
574
- this.checkerName=[]
575
- res.data.forEach((resRow) => {
576
- this.checkerName.push({label:resRow.name,value:resRow.name})
577
- })
578
- },
579
- //查询二维码
580
- searchInfo(val){
581
- this.dialogVisible = true
582
- //tag
583
- new HttpResetClass().load('POST','api/af-safecheck/logic/QrcodeUtil', {
584
- data: {
585
- id:val
586
- }
587
- },{resolveMsg: null, rejectMsg: null}).then(res=>{
588
- //tag
589
- //tag
590
- let imageer=new Image()
591
- imageer.src="data:image/jpg;base64,"+res.data.result
592
- document.getElementById("dd").appendChild(imageer);
593
- //tag
594
- })
595
-
596
- },
597
- //获取省市区列表
598
- getPcd(val){
599
- this.pcds = [{label:'全部',value:''}]
600
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
601
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
602
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
603
- pcdlist.data.forEach((result)=>{
604
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
605
- })
606
- })
607
- },
608
- getmeterbook(val){
609
-
610
- //tag
611
- this.cbc=[]
612
- this.cbc.push({
613
- label:'全部',
614
- value:''
615
- })
616
- if (val==''){
617
-
618
- this.cbcs.forEach(res=>{
619
- this.cbc.push({
620
- label:res.f_book_name,
621
- value:res.id
622
- })
623
- })
624
- }else{
625
- this.cbcs.forEach(res=>{
626
- if (res.f_book_slice_area==val){
627
- this.cbc.push({
628
- label:res.f_book_name,
629
- value:res.id
630
- })
631
- }
632
- })
633
- }
634
- },
635
- Mreadibook(val){
636
- ////tag
637
- ////tag
638
- if (val){
639
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/tel_singleTable_OrderBy`, {data: {
640
- items: 'name',
641
- tablename: 't_zone',
642
- condition: `parentid in ${val}`,
643
- orderitem: 'id'
644
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
645
- this.sliceArea=[]
646
- this.sliceArea.push({
647
- label:'全部',
648
- value:''
649
- })
650
- res.data.forEach(ress=>{
651
- this.sliceArea.push({
652
- label:ress.name,
653
- value:ress.name
654
- })
655
- })
656
-
657
- })
658
- }
659
- },
660
- // 获取县域分公司内容
661
- getfengongsi() {
662
- let val = {
663
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
664
- userid: `${this.$login.f.id}`
665
- }
666
- let http = new HttpResetClass()
667
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
668
- res.data.forEach((item) => {
669
- this.orgstrs.push({label: item.name, value: item.id})
670
- })
671
- //tag
672
- })
673
- },
674
- // 县域分公司发生改变
675
- // orgstrchange(val){
676
- // if(val == undefined || val == ''){
677
- // return
678
- // }else {
679
- // this.checkersid = []
680
- // let gen = select(this,val)
681
- // return co(gen)
682
- // }
683
- // },
684
- getDefect(val) {
685
- if (val) {
686
- try {
687
- var defect = JSON.parse(val)
688
- return defect.result
689
- } catch (e) {
690
- //tag
691
- return '正常'
692
- }
693
- }
694
- return '正常'
695
- },
696
- checkerchange(val) {
697
- this.checkboxModel.f_checker = val.name
698
- this.checkboxModel.f_checker_id = val.id
699
- },
700
- search(args) {
701
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
702
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
703
- return
704
- }
705
- if ((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ) {
706
- this.$showMessage('如果录入 安检起始时间,需要选择 安检筛选条件!')
707
- return
708
- }
709
- /*if (this.SafeCheckXZ == '未安检') {
710
- args.condition += " and ( f_last_check_date >= '" + args.model.f_check_start + "' or f_last_check_date <= '" + args.model.f_check_end + "' or f_last_check_date is null)"
711
- } else {
712
- if (args.model.f_check_start) {
713
- args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
714
- }
715
- if (args.model.f_check_end) {
716
- args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
717
- }
718
- }*/
719
- // args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
720
- // let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
721
- let con = ' 1=1 '
722
- con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
723
- /*con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
724
- con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
725
- con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
726
- con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''*/
727
- if (this.SafeCheckXZ) {
728
- con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
729
- if (this.SafeCheckXZ == '未安检'){
730
- args.condition += ' and ruhuid is null'
731
- }else{
732
- args.condition += ' and ruhuid is not null'
733
- }
734
- }
735
- let states = ` (`
736
- if (this.checkStates.length > 0 ){
737
- for (let i = 0; i < this.checkStates.length; i++) {
738
- if (this.checkStates[i]){
739
- states += `'${this.checkStates[i]}',`
740
- }else {
741
- states = ''
742
- break
743
- }
744
- }
745
- if (states){
746
- states=states.substring(0,states.length-1)
747
- states += `) `
748
- args.condition += ` and f_last_check_state in ${states}`
749
- }
750
- }else {
751
- states = ''
752
- }
753
- con += states ? ` and f_entry_status in ${states}` : ''
754
- con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
755
- let condition = {
756
- condition1: args.condition,
757
- condition2: con
758
- }
759
- this.searchData.condition = condition
760
- return this.model.search(condition, args.model)
761
- },
762
- checkstatus() {
763
- return this.$appdata.getParam('安检状态') ? [{
764
- label: '全部',
765
- value: ''
766
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
767
- },
768
- usertypes() {
769
- return this.$appdata.getParam('用户类型') ? [{
770
- label: '全部',
771
- value: ''
772
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
773
- },
774
- userstates() {
775
- return this.$appdata.getParam('用户状态') ? [{
776
- label: '全部',
777
- value: ''
778
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
779
- },
780
- hiddenr() {
781
- this.$parent.showItem = !this.$parent.showItem
782
- },
783
- hidden() {
784
- this.criteriaShow = !this.criteriaShow
785
- },
786
- confirm() {
787
- if (!this.checkboxModel.f_plan_name) {
788
- this.$showMessage('请填写安检计划名称!')
789
- return
790
- }
791
- // if(this.f_effective_start_time == ''){
792
- // this.$showMessage('请选择有效起始日期!')
793
- // return
794
- // }
795
- // if(this.f_effective_end_time == ''){
796
- // this.$showMessage('请选择有效结束日期!')
797
- // return
798
- // }
799
- if (this.IsShare == '否') {
800
- if (!this.checkboxModel.f_checker_id) {
801
- this.$showMessage('请选择安检员!')
802
- return
803
- }
804
- }
805
- let gen = saveGen(this)
806
- return co(gen)
807
- },
808
- changeStates() {
809
- if (this.checkedAll) {//实现反选/
810
- this.checkrows = [];
811
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
812
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
813
- }
814
- } else {//实现全选
815
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
816
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
817
- }
818
- let _this = this
819
- let condition = this.$refs.paged.$refs.criteria.condition
820
- let url = this.model.url
821
- this.$resetpost(`${url}?pageSize=9999999`, {
822
- data: {
823
- condition: condition,
824
- groupitem: '',
825
- orderitem: 'f_residential_area',
826
- f_usertype: this.model.f_usertype,
827
- f_filialeids: this.model.f_filialeids,
828
- month: this.model.month,
829
- safeCycle: this.model.safeCycle,
830
- f_checktime_start: this.model.f_checktime_start,
831
- f_checktime_end: this.model.f_checktime_end,
832
- SafeCheckSX: this.model.SafeCheckSX,
833
- f_last_check_state: this.model.f_last_check_state
834
- },
835
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
836
- (respanse) => {
837
- if (respanse.data.length >= 5000) {
838
- this.$showMessage("数据量太大,请重新选择")
839
- } else {
840
- _this.checkrows = []
841
- for (let j = 0; j < respanse.data.length; j++) {
842
- _this.checkrows.push(respanse.data[j])
843
- }
844
- //tag;
845
- }
846
- })
847
- }
848
- },
849
- addChecked(item) {
850
- //tag;
851
- if (!item.checked) {
852
- this.checkrows.push(item);
853
- //tag;
854
- } else {
855
- for (let i = 0; i < this.checkrows.length; i++) {
856
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
857
- this.checkrows.splice(i, 1)
858
- }
859
- }
860
- }
861
- },
862
- ToshowModal() {
863
- this.creatPlanWay = 'single'
864
- if (this.checkrows.length > 0) {
865
- this.showModal = true
866
- } else {
867
- this.$showMessage("请选择需要安检的用户!")
868
- }
869
- },
870
- FiltrationPlan() {
871
- if (this.model.rows.length == 0) {
872
- this.$showMessage("暂无可生成的计划!")
873
- return
874
- }
875
- this.creatPlanWay = 'filtration'
876
- this.showModal = true
877
- },
878
- AllPlan() {
879
- if (this.model.rows.length == 0) {
880
- this.$showMessage("暂无可生成的计划!")
881
- return
882
- }
883
- this.creatPlanWay = 'all'
884
- this.showModal = true
885
- },
886
- cancel() {
887
- this.showModal = false
888
- },
889
- /*areas() {
890
- let rs = []
891
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
892
- let temp = {
893
- label: this.$login.f.f_allArea[i].label,
894
- value: this.$login.f.f_allArea[i].label
895
- }
896
- rs.push(temp)
897
- }
898
- return [{label: '全部', value: ''}, ...rs]
899
- },*/
900
- initAdjustables() {
901
- //tag
902
- let arr = []
903
- let filter = this.$login.f.f_orgids
904
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
905
- let temp = {}
906
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
907
- temp.value = `${item.value.id}`
908
- arr.push(temp)
909
- })
910
- this.adjustables = [{label: '全部', value: ''}, ...arr]
911
- },
912
- getAllMeterBook(val){
913
- ////tag
914
- ////tag
915
- this.cbcs=[]
916
- if (val){
917
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/tel_singleTable_OrderBy`, {data: {
918
- items: 'f_book_name,f_book_slice_area,id',
919
- tablename: 't_meter_book',
920
- condition: `f_filiale_id in ${val}`,
921
- orderitem: 'id'
922
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
923
- res.data.forEach(ress=>{
924
- this.cbcs.push({
925
- id:ress.id,
926
- f_book_name:ress.f_book_name,
927
- f_book_slice_area:ress.f_book_slice_area
928
- })
929
- })
930
- this.cbc=[]
931
- this.cbc.push({
932
- label:'全部',
933
- value:''
934
- })
935
- this.cbcs.forEach(res=>{
936
- this.cbc.push({
937
- label:res.f_book_name,
938
- value:res.id
939
- })
940
- })
941
- })
942
- }
943
- },
944
- getRes(obj) {
945
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
946
- this.Mreadibook(this.model.f_filialeids)
947
- this.getAllMeterBook(this.model.f_filialeids)
948
- this.getPcd(this.model.f_filialeids)
949
- }
950
- },
951
-
952
- watch: {
953
- 'model.f_usertype'(val) {
954
- if (val == '民用') {
955
- this.model.safeCycle = this.civil
956
- } else if (val == '非民用') {
957
- this.model.safeCycle = this.civilian
958
- }
959
- },
960
- 'model.SafeCheckXZ'(val) {
961
- this.model.SafeCheckSC = ''
962
- if (val == '已安检') {
963
- this.model.SafeCheckCQ = ''
964
- this.model.SafeCheckSX = {
965
- f_check_end: '', // 安检时间 查询起始条件
966
- f_check_start: ''// 安检时间 查询终止条件
967
- }
968
- } else {
969
- // 当使用筛选条件时,清空不需要的条件选项
970
- this.model.f_issue_start = ''
971
- this.model.f_issue_end = ''
972
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
973
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
974
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
975
- this.model.month = ''
976
- if (val == '应安检') {
977
- this.model.SafeCheckSC = '否'
978
-
979
- this.model.f_issue_start = Util.toStartDateString()
980
- this.model.f_issue_end = Util.toStandardDateString()
981
- }
982
- // this.model.f_checktime_start = ''
983
- // this.model.f_checktime_end = ''
984
- }
985
- },
986
- 'model.SafeCheckSC'(val) {
987
- if (val == '') {
988
- this.model.f_issue_start = ''
989
- this.model.f_issue_end = ''
990
- }
991
- },
992
- // 'checker'(val){
993
- // //tag
994
- // if(val){
995
- // this.checkboxModel.f_checker = this.checker[0].name
996
- // this.checkboxModel.f_checker_id = this.checker[0].id
997
- // }
998
- // },
999
- 'model.rows'() {
1000
- // if (!this.checkedAll) {//实现反选/
1001
- // this.checkrows = [];
1002
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1003
- var k = false
1004
- for (let j = 0; j < this.checkrows.length; j++) {
1005
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1006
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1007
- k = true
1008
- continue
1009
- }
1010
- }
1011
- if (!k) {
1012
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1013
- }
1014
- }
1015
- // } else {//实现全选
1016
- // // this.checkboxModel = {};
1017
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1018
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1019
- // }
1020
- // }
1021
- }
1022
- },
1023
- computed: {
1024
- selected() {
1025
- return this.$refs.paged.$refs.grid.selected
1026
- }
1027
- }
1028
- }
1029
- </script>
1030
- <style scoped>
1031
- .newcolor {
1032
- color: red;
1033
- }
1034
-
1035
- .table th {
1036
- background-color: #f2f6fa;
1037
- color: black;
1038
- }
1039
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">用户编号</label>
9
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
+ id="f_userinfo_code"
11
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
12
+ </div>
13
+ <div :class="$parent.$parent.style">
14
+ <label class="font_normal_body">用户姓名</label>
15
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
16
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
17
+ </div>
18
+ <div :class="$parent.$parent.style">
19
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
20
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
21
+ id="f_residential_area"
22
+ placeholder="小区" condition="f_residential_area like '%{}%'">
23
+ </div>
24
+ <div :class="$parent.$parent.style">
25
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
26
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
27
+ placeholder="地址" condition="f_address like '%{}%'">
28
+ </div>
29
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
30
+ <export-excel :data="$parent.$parent.searchData"
31
+ :field="$parent.$parent.excelHeaders"
32
+ :choose-col="true"
33
+ sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
34
+ template-name='用户安检情况'></export-excel>
35
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
36
+ <div style="float: right" class="button_spacing"
37
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
38
+ @click="$parent.$parent.hiddenr()"></div>
39
+ <div style="float: right" class="button_spacing"
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.hidden()">
42
+
43
+ </div>
44
+ </div>
45
+
46
+
47
+ </div>
48
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
49
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
50
+ <label class="font_normal_body">用户类型</label>
51
+ <v-select id="f_usertype"
52
+ placeholder='用户类型'
53
+ class="select select_list"
54
+ :value.sync="model.f_usertype"
55
+ :value-single="true"
56
+ :options='$parent.$parent.usertypes'
57
+ v-model="model.f_usertype"
58
+ condition="f_user_type = '{}'"
59
+ close-on-select clear-button></v-select>
60
+ </div>
61
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
62
+
63
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
65
+ <v-select
66
+ placeholder='安检筛选'
67
+ :value-single="true"
68
+ class="select select_list"
69
+ :value.sync="$parent.$parent.SafeCheckXZ"
70
+ :options='$parent.$parent.SafeCheckXZs'
71
+ v-model="$parent.$parent.SafeCheckXZ"
72
+ close-on-select clear-button></v-select>
73
+ </div>
74
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
75
+ <label class="font_normal_body">安检起始</label>
76
+ <datepicker
77
+ :value.sync="model.f_check_start"
78
+ placeholder='最后安检时间起始'
79
+ style="width: 60%"
80
+ :format="'yyyy-MM-dd 00:00:00'"
81
+ :show-rest-button="reset"
82
+ v-model="model.f_check_start">
83
+ </datepicker>
84
+ </div>
85
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
86
+ <label class="font_normal_body">安检结束</label>
87
+ <datepicker
88
+ :value.sync="model.f_check_end"
89
+ placeholder='最后安检时间结束'
90
+ style="width: 60%"
91
+ :format="'yyyy-MM-dd 23:59:59'"
92
+ :show-rest-button="reset"
93
+ v-model="model.f_check_end">
94
+ </datepicker>
95
+ </div>
96
+
97
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
98
+ <label class="font_normal_body">安检状态</label>
99
+ <v-select id="f_entry"
100
+ placeholder='安检状态'
101
+ :multiple="true"
102
+ class="select select_list"
103
+ :value.sync="$parent.$parent.checkStates"
104
+ :options='$parent.$parent.checkstatus'
105
+ ></v-select>
106
+ </div>
107
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
108
+ <label class="font_normal_body">隐患情况</label>
109
+ <v-select
110
+ placeholder='隐患情况'
111
+ class="select select_list"
112
+ :value-single="true"
113
+ v-model='model.f_check_result'
114
+ :value.sync="model.f_check_result"
115
+ :options='$parent.$parent.f_check_results'
116
+ condition="f_defect_content like '%{}%'"
117
+ close-on-select clear-button></v-select>
118
+ </div>
119
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
120
+ </div>
121
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
122
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
123
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
124
+ <v-select
125
+ class="select select_list"
126
+ :value.sync="model.checker"
127
+ v-model="model.checker"
128
+ :options='$parent.$parent.getConList("checkerName")'
129
+ condition="f_checker_name in {}">
130
+ close-on-select
131
+ value-single
132
+ >
133
+ </v-select>
134
+ </div>
135
+ <!-- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">-->
136
+ <!-- <role-selector-safe-->
137
+ <!-- role-name="安检员"-->
138
+ <!-- role-lable="安&nbsp;检&nbsp;员&nbsp;"-->
139
+ <!-- @re-res="$parent.$parent.getRes"-->
140
+ <!-- :value.sync="model.f_checker_id"-->
141
+ <!-- v-model="model.f_checker_id"-->
142
+ <!-- :value-multiple="true"-->
143
+ <!-- condition=" f_checker_name in {}">-->
144
+ <!-- </role-selector-safe>-->
145
+ <!-- </div>-->
146
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
147
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
148
+ <v-select class="select_list select"
149
+ placeholder='片区/管理站' style="width: 60%"
150
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
151
+ :options='$parent.$parent.sliceArea'
152
+ filer-key="name"
153
+ close-on-select clear-button
154
+ condition="f_slice_area='{}'"
155
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
156
+ :value-single="true">
157
+ </v-select>
158
+ </div>
159
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
160
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
161
+ <v-select class="select_list select"
162
+ placeholder='抄表册' style="width: 60%"
163
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
164
+ :options='$parent.$parent.cbc'
165
+ filer-key="name"
166
+ close-on-select clear-button
167
+ condition="f_meter_book_num={}"
168
+ :value-single="true">
169
+ </v-select>
170
+ </div>
171
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
172
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
173
+ <v-select class="select_list select"
174
+ placeholder='请选择' style="width: 60%"
175
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
176
+ :options='$parent.$parent.pcds'
177
+ filer-key="name"
178
+ close-on-select clear-button
179
+ condition="f_pcd='{}'"
180
+ :value-single="true">
181
+ </v-select>
182
+ </div>
183
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
184
+ <label class="font_normal_body">用户状态</label>
185
+ <v-select class="select_list select"
186
+ placeholder='用户状态' style="width: 60%"
187
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
188
+ :options='$parent.$parent.userstates'
189
+ close-on-select clear-button
190
+ condition="f_user_state = '{}'"
191
+ :value-single="true">
192
+ </v-select>
193
+ </div>
194
+ </div>
195
+
196
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
197
+ <div :class="$parent.$parent.style">
198
+ <label class="font_normal_body">用户编号</label>
199
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
200
+
201
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
202
+ </div>
203
+ <div :class="$parent.$parent.style">
204
+ <label class="font_normal_body">用户姓名</label>
205
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
206
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
207
+ </div>
208
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
209
+ <export-excel :data="$parent.$parent.searchData"
210
+ :field="$parent.$parent.excelHeaders"
211
+ sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
212
+ template-name='用户安检情况'></export-excel>
213
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
214
+ <div style="float: right" class="button_spacing"
215
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
216
+ @click="$parent.$parent.hiddenr()"></div>
217
+ <div style="float: right" class="button_spacing"
218
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
219
+ @click="$parent.$parent.hidden()">
220
+
221
+ </div>
222
+ </div>
223
+
224
+ </div>
225
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
226
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
227
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
228
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
229
+
230
+ placeholder="小区" condition="f_residential_area like '%{}%'">
231
+ </div>
232
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
233
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
234
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
235
+
236
+ placeholder="地址" condition="f_address like '%{}%'">
237
+ </div>
238
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
239
+ <label class="font_normal_body">用户类型</label>
240
+ <v-select
241
+ placeholder='用户类型'
242
+ class="select select_list"
243
+
244
+ :value.sync="model.f_usertype"
245
+ :value-single="true"
246
+ :options='$parent.$parent.usertypes'
247
+ v-model="model.f_usertype"
248
+ condition="f_user_type = '{}'"
249
+ close-on-select clear-button></v-select>
250
+ </div>
251
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
252
+
253
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
254
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
255
+ <v-select
256
+ placeholder='安检筛选'
257
+ :value-single="true"
258
+
259
+ class="select select_list"
260
+ :value.sync="$parent.$parent.SafeCheckXZ"
261
+ :options='$parent.$parent.SafeCheckXZs'
262
+ v-model="$parent.$parent.SafeCheckXZ"
263
+ close-on-select clear-button></v-select>
264
+ </div>
265
+
266
+ </div>
267
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
268
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
269
+ <label class="font_normal_body">安检起始</label>
270
+ <datepicker
271
+ :value.sync="model.f_check_start"
272
+ placeholder='最后安检时间起始'
273
+ :disabled-days-of-week="[]"
274
+ style="width: 60%"
275
+ :format="'yyyy-MM-dd'"
276
+ :show-rest-button="reset"
277
+ v-model="model.f_check_start">
278
+ </datepicker>
279
+ </div>
280
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
281
+ <label class="font_normal_body">安检结束</label>
282
+ <datepicker
283
+ :value.sync="model.f_check_end"
284
+ placeholder='最后安检时间结束'
285
+ style="width: 60%"
286
+ :disabled-days-of-week="[]"
287
+ :format="'yyyy-MM-dd'"
288
+ :show-rest-button="reset"
289
+ v-model="model.f_check_end">
290
+ </datepicker>
291
+ </div>
292
+
293
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
294
+ <label class="font_normal_body">安检状态</label>
295
+ <v-select
296
+ placeholder='安检状态'
297
+ class="select select_list"
298
+ :value.sync="$parent.$parent.checkStates"
299
+ :options='$parent.$parent.checkstatus'
300
+ :multiple="true"
301
+ close-on-select clear-button></v-select>
302
+ </div>
303
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
304
+ <label class="font_normal_body">隐患情况</label>
305
+ <v-select
306
+ placeholder='隐患情况'
307
+ class="select select_list"
308
+ :value-single="true"
309
+ v-model='model.f_check_result'
310
+ :value.sync="model.f_check_result"
311
+ :options='$parent.$parent.f_check_results'
312
+ condition="f_defect_content like '%{}%'"
313
+ close-on-select clear-button></v-select>
314
+ </div>
315
+
316
+ </div>
317
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
318
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
319
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
320
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
321
+ </right-tree>
322
+ </div>
323
+
324
+ </div>-->
325
+ </div>
326
+ </criteria>
327
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
328
+ <template partial='head'>
329
+ <tr>
330
+ <th>
331
+ <nobr>用户编号</nobr>
332
+ </th>
333
+ <th>
334
+ <nobr>用户名称</nobr>
335
+ </th>
336
+ <th>
337
+ <nobr>用户电话</nobr>
338
+ </th>
339
+ <th>
340
+ <nobr>用户表号</nobr>
341
+ </th>
342
+ <!-- <th>-->
343
+ <!-- <nobr>气表品牌</nobr>-->
344
+ <!-- </th>-->
345
+ <th>
346
+ <nobr>用户类型</nobr>
347
+ </th>
348
+ <!-- <th>-->
349
+ <!-- <nobr>壁挂炉</nobr>-->
350
+ <!-- </th>-->
351
+ <!-- <th>-->
352
+ <!-- <nobr>灶具</nobr>-->
353
+ <!-- </th>-->
354
+ <th>
355
+ <nobr>小区名称</nobr>
356
+ </th>
357
+ <th style="padding: 0 40px">
358
+ <nobr>地址</nobr>
359
+ </th>
360
+ <th>
361
+ <nobr>安检员</nobr>
362
+ </th>
363
+ <!-- <th>-->
364
+ <!-- <nobr>安检员备注</nobr>-->
365
+ <!-- </th>-->
366
+ <th>
367
+ <nobr>安检日期</nobr>
368
+ </th>
369
+ <th>
370
+ <nobr>安检状态</nobr>
371
+ </th>
372
+ <th>
373
+ <nobr>安检结果</nobr>
374
+ </th>
375
+ <th>
376
+ <nobr>建档日期</nobr>
377
+ </th>
378
+ <th>
379
+ <nobr>通气日期</nobr>
380
+ </th>
381
+ <th v-show="$parent.$parent.$parent.showcode">
382
+ <nobr>二维码</nobr>
383
+ </th>
384
+ </tr>
385
+ </template>
386
+ <template partial='body'>
387
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
388
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
389
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
390
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
391
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
392
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
393
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
394
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
395
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
396
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
397
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
398
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
399
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
400
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
401
+ {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
402
+ </td>
403
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
404
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_gas_date }}</td>
405
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center" v-show="$parent.$parent.$parent.showcode">
406
+ <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code)' >点击</button>
407
+ </td>
408
+ </template>
409
+ </data-grid>
410
+ </criteria-paged>
411
+ <modal :show.sync="dialogVisible" style="text-align: center" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
412
+ <div slot="modal-header" class="modal-header">
413
+ <h4 class="modal-title">
414
+ 二维码
415
+ </h4>
416
+ </div>
417
+ <div slot="modal-body" class="modal-body" >
418
+ <div id="dd" ></div>
419
+ </div>
420
+ <div slot="modal-footer" class="modal-footer">
421
+ <print-element class="btn btn-success width-80" id="dd" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
422
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
423
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false" >取消</button>
424
+ </div>
425
+ </modal>
426
+ </div>
427
+
428
+ </template>
429
+
430
+ <script>
431
+ import {PagedList} from 'vue-client'
432
+ import {HttpResetClass} from 'vue-client'
433
+ import co from 'co'
434
+ import * as Util from '../../Util'
435
+ import Vue from 'vue'
436
+
437
+ // let select = function * (self,userid) {
438
+ // let http = new HttpResetClass()
439
+ // let getGasman = yield http.load('POST','/rs/search', {
440
+ // source: 'this.getChildByName($安检员$).getUsers()',
441
+ // userid: userid
442
+ // }, {resolveMsg: null, rejectMsg: null})
443
+ // //tag
444
+ // getGasman.data.forEach((checker)=>{
445
+ // self.checkersid.push({label:checker.name,value:checker.id})
446
+ // })
447
+ // self.checkersid.push({label:'全部',value:''})
448
+ // }
449
+
450
+
451
+ export default {
452
+ title: '用户安检情况',
453
+ data() {
454
+ let options = []
455
+ let year = (new Date()).getFullYear()
456
+ for (let i = year; i <= year + 3; i++)
457
+ options.push({label: i + '', value: i + ''})
458
+ let moptions = []
459
+ for (let i = 1; i <= 12; i++)
460
+ moptions.push({label: i + '', value: i + ''})
461
+
462
+ return {
463
+ dialogVisible: false,
464
+ searchData: {
465
+ condition: '1=1',
466
+ orderitem: "f_last_check_date",
467
+ timetype: "dd",
468
+ f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
469
+ },
470
+ excelHeaders: {
471
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
472
+
473
+ 'f_userinfo_code': '用户编号',
474
+ 'f_user_name': '用户名称',
475
+ 'f_user_phone': '用户电话',
476
+ 'f_meternumber': '用户表号',
477
+ 'f_user_type': '用户类型',
478
+ 'f_checker_name': '安检员',
479
+ 'f_residential_area': '小区名称',
480
+ 'f_address': '地址',
481
+ 'f_last_check_date': '安检日期',
482
+ 'f_last_check_state': '安检状态',
483
+ 'f_last_check_result': '安检结果',
484
+ 'f_createfile_date': '建档日期',
485
+ 'f_gas_date': '通气日期'
486
+ },
487
+ model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
488
+ orderitem: "'f_last_check_date'",
489
+ timetype: "'dd'",
490
+ f_defect_content: 'this.f_defect_content'
491
+ }),
492
+ f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
493
+ orgstrs: [{label: '全部', value: ''}],
494
+ checkersid: [],
495
+ checkStates:[],
496
+ SafeCheckXZ: '',
497
+ civil: '', //民用安检周期
498
+ civilian: '', //非民用安检周期
499
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
500
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
501
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
502
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
503
+ IsShare: '否',
504
+ checkerName:[],
505
+ checker: {},
506
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
507
+ criteriaShow: false,
508
+ checkers: [],
509
+ showcode:false,
510
+ chosenOrg: {id: 0},
511
+ showModal: false,
512
+ checkedAll: false,
513
+ checkrows: [],
514
+ adjustables: [],
515
+ f_plan_year: year + '',
516
+ f_plan_month: moptions[new Date().getMonth()].value,
517
+ f_effective_start_time: '', //计划有效起始时间
518
+ f_effective_end_time: '', //计划有效结束时间
519
+ checkboxModel: {},
520
+ c_year_list: options,
521
+ c_month_list: moptions,
522
+ // areas: this.areas(),
523
+ checkstatus: this.checkstatus(),
524
+ usertypes: this.usertypes(),
525
+ userstates: this.userstates(),
526
+ sqlname: '',
527
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
528
+ creatPlanWay: '',
529
+ sliceArea: [],
530
+ cbcs:[],
531
+ cbc:[],
532
+ pcds:[]
533
+ }
534
+ },
535
+ props: {
536
+ style: {
537
+ type: String,
538
+ default: 'col-sm-2 form-group'
539
+ },
540
+ style2: {
541
+ type: String,
542
+ default: 'col-sm-4 form-group'
543
+ },
544
+ checkplan: { // 传入一条安检计划信息
545
+ type: Object
546
+ },
547
+ additemshow: {
548
+ type: Boolean,
549
+ default: false
550
+ }
551
+ },
552
+ ready() {
553
+ // 获取分公司信息
554
+ this.model.f_defect_content=this.f_defect_content
555
+ this.showcode=this.$appdata.getSingleValue('用户安检情况二维码')
556
+ //this.getfengongsi()
557
+ this.model.chosenOrg = {id: 0}
558
+ this.model.f_filialeids = this.$login.f.f_orgids
559
+ this.model.f_filiale = this.$login.f.f_fengongsi
560
+ this.model.f_OrgStr = this.$login.f.orgpathstr
561
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
562
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
563
+ this.searchChecker(this.$login.f.id)
564
+ },
565
+ methods: {
566
+ getConList(field){
567
+ return [{label:'全部',value:''}, ...this[field]]
568
+ },
569
+ async searchChecker(id){
570
+ let res=await new HttpResetClass().load('POST', '/rs/search', {
571
+ source: 'tool.getChildrenOfResName($安检员$)',
572
+ userid: id
573
+ }, {resolveMsg: null, rejectMsg: null})
574
+ this.checkerName=[]
575
+ res.data.forEach((resRow) => {
576
+ this.checkerName.push({label:resRow.name,value:resRow.name})
577
+ })
578
+ },
579
+ //查询二维码
580
+ searchInfo(val){
581
+ this.dialogVisible = true
582
+ //tag
583
+ new HttpResetClass().load('POST','api/af-safecheck/logic/QrcodeUtil', {
584
+ data: {
585
+ id:val
586
+ }
587
+ },{resolveMsg: null, rejectMsg: null}).then(res=>{
588
+ //tag
589
+ //tag
590
+ let imageer=new Image()
591
+ imageer.src="data:image/jpg;base64,"+res.data.result
592
+ document.getElementById("dd").appendChild(imageer);
593
+ //tag
594
+ })
595
+
596
+ },
597
+ //获取省市区列表
598
+ getPcd(val){
599
+ this.pcds = [{label:'全部',value:''}]
600
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
601
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
602
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
603
+ pcdlist.data.forEach((result)=>{
604
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
605
+ })
606
+ })
607
+ },
608
+ getmeterbook(val){
609
+
610
+ //tag
611
+ this.cbc=[]
612
+ this.cbc.push({
613
+ label:'全部',
614
+ value:''
615
+ })
616
+ if (val==''){
617
+
618
+ this.cbcs.forEach(res=>{
619
+ this.cbc.push({
620
+ label:res.f_book_name,
621
+ value:res.id
622
+ })
623
+ })
624
+ }else{
625
+ this.cbcs.forEach(res=>{
626
+ if (res.f_book_slice_area==val){
627
+ this.cbc.push({
628
+ label:res.f_book_name,
629
+ value:res.id
630
+ })
631
+ }
632
+ })
633
+ }
634
+ },
635
+ Mreadibook(val){
636
+ ////tag
637
+ ////tag
638
+ if (val){
639
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
640
+ items: 'name',
641
+ tablename: 't_zone',
642
+ condition: `parentid in ${val}`,
643
+ orderitem: 'id'
644
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
645
+ this.sliceArea=[]
646
+ this.sliceArea.push({
647
+ label:'全部',
648
+ value:''
649
+ })
650
+ res.data.forEach(ress=>{
651
+ this.sliceArea.push({
652
+ label:ress.name,
653
+ value:ress.name
654
+ })
655
+ })
656
+
657
+ })
658
+ }
659
+ },
660
+ // 获取县域分公司内容
661
+ getfengongsi() {
662
+ let val = {
663
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
664
+ userid: `${this.$login.f.id}`
665
+ }
666
+ let http = new HttpResetClass()
667
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
668
+ res.data.forEach((item) => {
669
+ this.orgstrs.push({label: item.name, value: item.id})
670
+ })
671
+ //tag
672
+ })
673
+ },
674
+ // 县域分公司发生改变
675
+ // orgstrchange(val){
676
+ // if(val == undefined || val == ''){
677
+ // return
678
+ // }else {
679
+ // this.checkersid = []
680
+ // let gen = select(this,val)
681
+ // return co(gen)
682
+ // }
683
+ // },
684
+ getDefect(val) {
685
+ if (val) {
686
+ try {
687
+ var defect = JSON.parse(val)
688
+ return defect.result
689
+ } catch (e) {
690
+ //tag
691
+ return '正常'
692
+ }
693
+ }
694
+ return '正常'
695
+ },
696
+ checkerchange(val) {
697
+ this.checkboxModel.f_checker = val.name
698
+ this.checkboxModel.f_checker_id = val.id
699
+ },
700
+ search(args) {
701
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
702
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
703
+ return
704
+ }
705
+ if ((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ) {
706
+ this.$showMessage('如果录入 安检起始时间,需要选择 安检筛选条件!')
707
+ return
708
+ }
709
+ /*if (this.SafeCheckXZ == '未安检') {
710
+ args.condition += " and ( f_last_check_date >= '" + args.model.f_check_start + "' or f_last_check_date <= '" + args.model.f_check_end + "' or f_last_check_date is null)"
711
+ } else {
712
+ if (args.model.f_check_start) {
713
+ args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
714
+ }
715
+ if (args.model.f_check_end) {
716
+ args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
717
+ }
718
+ }*/
719
+ // args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
720
+ // let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
721
+ let con = ' 1=1 '
722
+ con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
723
+ /*con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
724
+ con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
725
+ con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
726
+ con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''*/
727
+ if (this.SafeCheckXZ) {
728
+ con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
729
+ if (this.SafeCheckXZ == '未安检'){
730
+ args.condition += ' and ruhuid is null'
731
+ }else{
732
+ args.condition += ' and ruhuid is not null'
733
+ }
734
+ }
735
+ let states = ` (`
736
+ if (this.checkStates.length > 0 ){
737
+ for (let i = 0; i < this.checkStates.length; i++) {
738
+ if (this.checkStates[i]){
739
+ states += `'${this.checkStates[i]}',`
740
+ }else {
741
+ states = ''
742
+ break
743
+ }
744
+ }
745
+ if (states){
746
+ states=states.substring(0,states.length-1)
747
+ states += `) `
748
+ args.condition += ` and f_last_check_state in ${states}`
749
+ }
750
+ }else {
751
+ states = ''
752
+ }
753
+ con += states ? ` and f_entry_status in ${states}` : ''
754
+ con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
755
+ let condition = {
756
+ condition1: args.condition,
757
+ condition2: con
758
+ }
759
+ this.searchData.condition = condition
760
+ return this.model.search(condition, args.model)
761
+ },
762
+ checkstatus() {
763
+ return this.$appdata.getParam('安检状态') ? [{
764
+ label: '全部',
765
+ value: ''
766
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
767
+ },
768
+ usertypes() {
769
+ return this.$appdata.getParam('用户类型') ? [{
770
+ label: '全部',
771
+ value: ''
772
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
773
+ },
774
+ userstates() {
775
+ return this.$appdata.getParam('用户状态') ? [{
776
+ label: '全部',
777
+ value: ''
778
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
779
+ },
780
+ hiddenr() {
781
+ this.$parent.showItem = !this.$parent.showItem
782
+ },
783
+ hidden() {
784
+ this.criteriaShow = !this.criteriaShow
785
+ },
786
+ confirm() {
787
+ if (!this.checkboxModel.f_plan_name) {
788
+ this.$showMessage('请填写安检计划名称!')
789
+ return
790
+ }
791
+ // if(this.f_effective_start_time == ''){
792
+ // this.$showMessage('请选择有效起始日期!')
793
+ // return
794
+ // }
795
+ // if(this.f_effective_end_time == ''){
796
+ // this.$showMessage('请选择有效结束日期!')
797
+ // return
798
+ // }
799
+ if (this.IsShare == '否') {
800
+ if (!this.checkboxModel.f_checker_id) {
801
+ this.$showMessage('请选择安检员!')
802
+ return
803
+ }
804
+ }
805
+ let gen = saveGen(this)
806
+ return co(gen)
807
+ },
808
+ changeStates() {
809
+ if (this.checkedAll) {//实现反选/
810
+ this.checkrows = [];
811
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
812
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
813
+ }
814
+ } else {//实现全选
815
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
816
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
817
+ }
818
+ let _this = this
819
+ let condition = this.$refs.paged.$refs.criteria.condition
820
+ let url = this.model.url
821
+ this.$resetpost(`${url}?pageSize=9999999`, {
822
+ data: {
823
+ condition: condition,
824
+ groupitem: '',
825
+ orderitem: 'f_residential_area',
826
+ f_usertype: this.model.f_usertype,
827
+ f_filialeids: this.model.f_filialeids,
828
+ month: this.model.month,
829
+ safeCycle: this.model.safeCycle,
830
+ f_checktime_start: this.model.f_checktime_start,
831
+ f_checktime_end: this.model.f_checktime_end,
832
+ SafeCheckSX: this.model.SafeCheckSX,
833
+ f_last_check_state: this.model.f_last_check_state
834
+ },
835
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
836
+ (respanse) => {
837
+ if (respanse.data.length >= 5000) {
838
+ this.$showMessage("数据量太大,请重新选择")
839
+ } else {
840
+ _this.checkrows = []
841
+ for (let j = 0; j < respanse.data.length; j++) {
842
+ _this.checkrows.push(respanse.data[j])
843
+ }
844
+ //tag;
845
+ }
846
+ })
847
+ }
848
+ },
849
+ addChecked(item) {
850
+ //tag;
851
+ if (!item.checked) {
852
+ this.checkrows.push(item);
853
+ //tag;
854
+ } else {
855
+ for (let i = 0; i < this.checkrows.length; i++) {
856
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
857
+ this.checkrows.splice(i, 1)
858
+ }
859
+ }
860
+ }
861
+ },
862
+ ToshowModal() {
863
+ this.creatPlanWay = 'single'
864
+ if (this.checkrows.length > 0) {
865
+ this.showModal = true
866
+ } else {
867
+ this.$showMessage("请选择需要安检的用户!")
868
+ }
869
+ },
870
+ FiltrationPlan() {
871
+ if (this.model.rows.length == 0) {
872
+ this.$showMessage("暂无可生成的计划!")
873
+ return
874
+ }
875
+ this.creatPlanWay = 'filtration'
876
+ this.showModal = true
877
+ },
878
+ AllPlan() {
879
+ if (this.model.rows.length == 0) {
880
+ this.$showMessage("暂无可生成的计划!")
881
+ return
882
+ }
883
+ this.creatPlanWay = 'all'
884
+ this.showModal = true
885
+ },
886
+ cancel() {
887
+ this.showModal = false
888
+ },
889
+ /*areas() {
890
+ let rs = []
891
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
892
+ let temp = {
893
+ label: this.$login.f.f_allArea[i].label,
894
+ value: this.$login.f.f_allArea[i].label
895
+ }
896
+ rs.push(temp)
897
+ }
898
+ return [{label: '全部', value: ''}, ...rs]
899
+ },*/
900
+ initAdjustables() {
901
+ //tag
902
+ let arr = []
903
+ let filter = this.$login.f.f_orgids
904
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
905
+ let temp = {}
906
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
907
+ temp.value = `${item.value.id}`
908
+ arr.push(temp)
909
+ })
910
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
911
+ },
912
+ getAllMeterBook(val){
913
+ ////tag
914
+ ////tag
915
+ this.cbcs=[]
916
+ if (val){
917
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
918
+ items: 'f_book_name,f_book_slice_area,id',
919
+ tablename: 't_meter_book',
920
+ condition: `f_filiale_id in ${val}`,
921
+ orderitem: 'id'
922
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
923
+ res.data.forEach(ress=>{
924
+ this.cbcs.push({
925
+ id:ress.id,
926
+ f_book_name:ress.f_book_name,
927
+ f_book_slice_area:ress.f_book_slice_area
928
+ })
929
+ })
930
+ this.cbc=[]
931
+ this.cbc.push({
932
+ label:'全部',
933
+ value:''
934
+ })
935
+ this.cbcs.forEach(res=>{
936
+ this.cbc.push({
937
+ label:res.f_book_name,
938
+ value:res.id
939
+ })
940
+ })
941
+ })
942
+ }
943
+ },
944
+ getRes(obj) {
945
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
946
+ this.Mreadibook(this.model.f_filialeids)
947
+ this.getAllMeterBook(this.model.f_filialeids)
948
+ this.getPcd(this.model.f_filialeids)
949
+ }
950
+ },
951
+
952
+ watch: {
953
+ 'model.f_usertype'(val) {
954
+ if (val == '民用') {
955
+ this.model.safeCycle = this.civil
956
+ } else if (val == '非民用') {
957
+ this.model.safeCycle = this.civilian
958
+ }
959
+ },
960
+ 'model.SafeCheckXZ'(val) {
961
+ this.model.SafeCheckSC = ''
962
+ if (val == '已安检') {
963
+ this.model.SafeCheckCQ = ''
964
+ this.model.SafeCheckSX = {
965
+ f_check_end: '', // 安检时间 查询起始条件
966
+ f_check_start: ''// 安检时间 查询终止条件
967
+ }
968
+ } else {
969
+ // 当使用筛选条件时,清空不需要的条件选项
970
+ this.model.f_issue_start = ''
971
+ this.model.f_issue_end = ''
972
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
973
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
974
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
975
+ this.model.month = ''
976
+ if (val == '应安检') {
977
+ this.model.SafeCheckSC = '否'
978
+
979
+ this.model.f_issue_start = Util.toStartDateString()
980
+ this.model.f_issue_end = Util.toStandardDateString()
981
+ }
982
+ // this.model.f_checktime_start = ''
983
+ // this.model.f_checktime_end = ''
984
+ }
985
+ },
986
+ 'model.SafeCheckSC'(val) {
987
+ if (val == '') {
988
+ this.model.f_issue_start = ''
989
+ this.model.f_issue_end = ''
990
+ }
991
+ },
992
+ // 'checker'(val){
993
+ // //tag
994
+ // if(val){
995
+ // this.checkboxModel.f_checker = this.checker[0].name
996
+ // this.checkboxModel.f_checker_id = this.checker[0].id
997
+ // }
998
+ // },
999
+ 'model.rows'() {
1000
+ // if (!this.checkedAll) {//实现反选/
1001
+ // this.checkrows = [];
1002
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1003
+ var k = false
1004
+ for (let j = 0; j < this.checkrows.length; j++) {
1005
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1006
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1007
+ k = true
1008
+ continue
1009
+ }
1010
+ }
1011
+ if (!k) {
1012
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1013
+ }
1014
+ }
1015
+ // } else {//实现全选
1016
+ // // this.checkboxModel = {};
1017
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1018
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1019
+ // }
1020
+ // }
1021
+ }
1022
+ },
1023
+ computed: {
1024
+ selected() {
1025
+ return this.$refs.paged.$refs.grid.selected
1026
+ }
1027
+ }
1028
+ }
1029
+ </script>
1030
+ <style scoped>
1031
+ .newcolor {
1032
+ color: red;
1033
+ }
1034
+
1035
+ .table th {
1036
+ background-color: #f2f6fa;
1037
+ color: black;
1038
+ }
1039
+ </style>