safecheck-client 4.0.0-10 → 4.0.0-101

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