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,831 +1,831 @@
1
- <template>
2
- <work-busy :is-busy="isSend"></work-busy>
3
- <div class="binary" style="background-color: #e8f4ff">
4
- <!--左侧安检计划列表******************************************************-->
5
- <div class="binary-left flex flex-column" style="width: 16%">
6
- <div style="height: 9%">
7
- <div class="row auto">
8
- <img style="width: 20px;margin: 0 5px" src="../../../../static/images/searchhover.png" @click="showUserCondition()"/>
9
- <v-select :width="'80%'"
10
- class="select select_list"
11
- :search="false"
12
- :value.sync="currentorder"
13
- v-model="currentorder"
14
- @change="loadCheckPlan"
15
- :options='opt'
16
- close-on-select value-single >
17
- </v-select>
18
- </div>
19
- <div class="row auto safe-div-p"><!--<span style="margin-right: 5px" @click="refresh()" style="cursor:default">测试</span>--><span style="margin-right: 5px" @click="delCheckPlan()" style="cursor:default">删除</span> <span @click="sendCheckPlan()" style="cursor:default">下发</span></div>
20
- </div>
21
- <div class="leftplan-center safe_plan_list">
22
- <div class="row safe-leftplan safe_list_li" :class="{'safe-selectplan':selectPlan.id==row.id}" v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
23
- <table style="width:100%;table-layout:fixed" >
24
- <tr class="safe-planfont">
25
- <td rowspan="6"><input type="checkbox" style="pointer-events:auto" v-show="row.plan_count==0 || row.f_issued=='未下发'" onClick="event.cancelBubble = true" :checked="checkplan.check.isChecked(row.f_check_item_id)" @change="checkplan.check.setCheckes(row.id)"/></td>
26
- <td colspan="6" class="safe_p">{{row.f_plan_name}}</td>
27
- <td colspan="2" style="text-align: center"><img width="20px" style="pointer-events:auto" onClick="event.cancelBubble = true" @click="showUpPlans(row)" src="../../../../static/images/edit.png"/></td>
28
- </tr>
29
- <tr class="safe-bodyfont" style="color:#4792de">
30
- <td colspan="6">{{row.f_issued}}</td>
31
- <td colspan="2" class="safe_p">{{row.f_checker?row.f_checker:'共享'}}</td>
32
- </tr>
33
- <tr class="safe-bodyfont">
34
- <td colspan="4">{{row.f_plan_year}}-{{row.f_plan_month}}</td>
35
- <td colspan="2">总 :</td>
36
- <td colspan="2">{{row.plan_count}}</td>
37
- </tr>
38
- <tr class="safe-bodyfont">
39
- <td colspan="2">未检 :</td>
40
- <td colspan="2">{{row.unchecked}}</td>
41
- <td colspan="2">已检 :</td>
42
- <td colspan="2">{{row.checked}}</td>
43
- </tr>
44
- <tr class="safe-bodyfont" v-if="row.f_create_time">
45
- <td colspan="3">创建时间 :</td>
46
- <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" :title="row.f_create_time">{{row.f_create_time}}</td>
47
- </tr>
48
- <tr class="safe-bodyfont" v-if="row.f_safecheck_type">
49
- <td colspan="3">安检类型 :</td>
50
- <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" :title="row.f_safecheck_type">{{row.f_safecheck_type}}</td>
51
- </tr>
52
- </table>
53
- </div>
54
- </div>
55
- <div style="height: 11%">
56
- <div class="row auto leftplan-center" style="padding: 8px">
57
- <div class="col-sm-6" style="">
58
- <span>共{{checkplan.list.count}}条</span>
59
- </div>
60
- <div class="col-sm-6" style="text-align: end">
61
- <span @click="loadMore('checkplan')"><img src="../../../../static/images/doubledown.png"/>&ensp;更多</span>
62
- </div>
63
- </div>
64
- <div class="row auto" style="padding: 10px;text-align: center">
65
- <img src="../../../../static/images/addnew.png" @click="showcCreatePlan()"/>
66
- </div>
67
- </div>
68
- </div>
69
- <!--右侧列表**************************************************************************-->
70
- <div class="binary-right" style="width: 84%;overflow: auto">
71
- <div style="height: 5%">
72
- <div class="col-sm-4">
73
- <label class="font_normal_body">公&emsp;&emsp;司</label>
74
- <right-tree-safe :islist="false" :width="'60%'" @re-res="getRes"></right-tree-safe>
75
- </div>
76
- </div>
77
- <div style="height: 95%">
78
- <div style="height: 50%" class="leftplan-center">
79
- <check-plan-list :selectplan="selectPlan" :userlogin="userlogin" v-ref:item></check-plan-list>
80
- </div>
81
- <div style="height: 50%">
82
- <check-user-list :selectplan="selectPlan" :userlogin="userlogin" v-ref:user></check-user-list>
83
- </div>
84
- </div>
85
- </div>
86
- <modal :show.sync="showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
87
- <div slot="modal-header" class="modal-header">
88
- <h4 class="modal-title">
89
- 计划查询条件
90
- </h4>
91
- </div>
92
- <div slot="modal-body" class="modal-body">
93
- <div class="row">
94
- <div class="form-group col-sm-4" >
95
- <label class="font_normal_body">计划名称:</label>
96
- <input type="text" class="input_search" v-model="planCondition.f_plan_name" @change="setProperty('checkplan','f_plan_name',planCondition.f_plan_name)"
97
- style="width: 60%" placeholder="请选择" />
98
- </div>
99
- <div class="form-group col-sm-4" >
100
- <label class="font_normal_body">计划年份:</label>
101
- <v-select
102
- class="select select_list"
103
- :value.sync="planCondition.f_plan_year"
104
- v-model="planCondition.f_plan_year"
105
- @change="setProperty('checkplan','f_plan_year',planCondition.f_plan_year)"
106
- :search="false"
107
- :options='getConList("yearList")'
108
- placeholder='请选择'
109
- close-on-select
110
- value-single
111
- >
112
- </v-select>
113
- </div>
114
- <div class="form-group col-sm-4" >
115
- <label class="font_normal_body">计划月份:</label>
116
- <v-select
117
- class="select select_list"
118
- :value.sync="planCondition.f_plan_month"
119
- v-model="planCondition.f_plan_month"
120
- @change="setProperty('checkplan','f_plan_month',planCondition.f_plan_month)"
121
- :search="false"
122
- :options='getConList("monthList")'
123
- placeholder='请选择'
124
- close-on-select
125
- value-single>
126
- </v-select>
127
- </div>
128
- <div class="form-group col-sm-4" >
129
- <label class="font_normal_body">是否共享:</label>
130
- <v-select
131
- class="select select_list"
132
- :value.sync="planCondition.isShare"
133
- v-model="planCondition.isShare"
134
- @change="setProperty('checkplan','isAndNot',planCondition.isShare)"
135
- :options='getConList("conIsAndNot")'
136
- :search="false"
137
- placeholder='请选择'
138
- close-on-select
139
- value-single
140
- >
141
- </v-select>
142
- </div>
143
- <div class="form-group col-sm-4" >
144
- <label class="font_normal_body">是否下发:</label>
145
- <v-select
146
- class="select select_list"
147
- :value.sync="planCondition.issued"
148
- v-model="planCondition.issued"
149
- :options='getConList("isAndNot")'
150
- @change="setProperty('checkplan','issude',planCondition.issued)"
151
- placeholder='请选择'
152
- :search="false"
153
- close-on-select
154
- value-single
155
- >
156
- </v-select>
157
- </div>
158
- <div class="form-group col-sm-4" >
159
- <label class="font_normal_body">安&ensp;检&ensp;员:</label>
160
- <v-select
161
- class="select select_list"
162
- :value.sync="planCondition.f_checker"
163
- v-model="planCondition.f_checker"
164
- @change="setProperty('checkplan','checkerid',planCondition.f_checker.id)"
165
- :options='getConList("checker")'
166
- placeholder='请选择'
167
- close-on-select
168
- value-single
169
- >
170
- </v-select>
171
- </div>
172
-
173
- <div class="form-group col-sm-4" >
174
- <label class="font_normal_body">安检类型:</label>
175
- <v-select
176
- class="select select_list"
177
- :value.sync="planCondition.f_safecheck_type"
178
- v-model="planCondition.f_safecheck_type"
179
- @change="setProperty('checkplan','safechecktype',planCondition.f_safecheck_type)"
180
- :options='getConList("safechecktype")'
181
- placeholder='请选择'
182
- :search="false"
183
- close-on-select
184
- value-single
185
- >
186
- </v-select>
187
- </div>
188
- <div class="form-group col-sm-4" >
189
- <label class="font_normal_body">创&ensp;建&ensp;人:</label>
190
- <input type="text" class="input_search" v-model="planCondition.f_create_operator" @change="setProperty('checkplan','f_create_operator',planCondition.f_create_operator)"
191
- style="width: 60%" placeholder="创建人" />
192
- </div>
193
- </div>
194
- </div>
195
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
196
- <button class="button_search" @click="loadCheckPlan" style="margin-right: 15px">查询</button>
197
- <button class="button_search" @click="cancel">取消</button>
198
- </div>
199
- </modal>
200
- <modal :show.sync="showCreatePlan" v-ref:modal1 :width="'50%'" :backdrop="false">
201
- <div slot="modal-header" class="modal-header">
202
- <h4 class="modal-title">
203
- 新建计划
204
- </h4>
205
- </div>
206
- <div slot="modal-body" class="modal-body">
207
- <div class="row">
208
- <div class="form-group col-sm-4" >
209
- <label class="font_normal_body">计划名称:</label>
210
- <input type="text" class="input_search" v-model="createPlan.f_plan_name"
211
- style="width: 60%" placeholder="请选择" />
212
- </div>
213
- <div class="form-group col-sm-4" >
214
- <label class="font_normal_body">计划年份:</label>
215
- <v-select
216
- class="select select_list"
217
- :value.sync="createPlan.f_plan_year"
218
- v-model="createPlan.f_plan_year"
219
- :search="false"
220
- :options='yearList'
221
- placeholder='请选择'
222
- close-on-select
223
- value-single
224
- >
225
- </v-select>
226
- </div>
227
- <div class="form-group col-sm-4" >
228
- <label class="font_normal_body">计划月份:</label>
229
- <v-select
230
- class="select select_list"
231
- :value.sync="createPlan.f_plan_month"
232
- v-model="createPlan.f_plan_month"
233
- :search="false"
234
- :options='monthList'
235
- placeholder='请选择'
236
- close-on-select
237
- value-single>
238
- </v-select>
239
- </div>
240
- <div class="form-group col-sm-4" >
241
- <label class="font_normal_body">是否共享:</label>
242
- <v-select
243
- class="select select_list"
244
- :search="false"
245
- :value.sync="createPlan.isShare"
246
- v-model="createPlan.isShare"
247
- :options='isAndNot'
248
- placeholder='请选择'
249
- close-on-select
250
- value-single
251
- >
252
- </v-select>
253
- </div>
254
- <div class="form-group col-sm-4" v-show="createPlan.isShare=='否'">
255
- <label class="font_normal_body">安&ensp;检&ensp;员:</label>
256
- <v-select
257
- class="select select_list"
258
- :value.sync="createPlan.checker"
259
- v-model="createPlan.checker"
260
- :options='checker'
261
- placeholder='请选择'
262
- close-on-select
263
- value-single
264
- >
265
- </v-select>
266
- </div>
267
-
268
- <div class="form-group col-sm-4" >
269
- <label class="font_normal_body">安检类型:</label>
270
- <v-select
271
- class="select select_list"
272
- :value.sync="createPlan.f_safecheck_type"
273
- v-model="createPlan.f_safecheck_type"
274
- :search="false"
275
- :options='ntoway'
276
- placeholder='请选择'
277
- close-on-select
278
- value-single
279
- >
280
- </v-select>
281
- </div>
282
- </div>
283
- </div>
284
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
285
- <button class="button_search" style="margin-right: 15px" @click="addNewPlan()">创建计划</button>
286
- <button class="button_search" @click="cancel">取消</button>
287
- </div>
288
- </modal>
289
- <modal :show.sync="showUpPlan" v-ref:modal2 :backdrop="false">
290
- <div slot="modal-header" class="modal-header">
291
- <h4 class="modal-title">
292
- 修改计划
293
- </h4>
294
- </div>
295
- <div slot="modal-body" class="modal-body">
296
- <div class="row">
297
- <div class="form-group col-sm-4" >
298
- <label class="font_normal_body">计划名称:</label>
299
- <input type="text" class="input_search" v-model="upCheckPlan.f_plan_name"
300
- style="width: 60%" />
301
- </div>
302
- <div class="form-group col-sm-4" >
303
- <label class="font_normal_body">计划年份:</label>
304
- <v-select
305
- class="select select_list"
306
- :value.sync="upCheckPlan.f_plan_year"
307
- v-model="upCheckPlan.f_plan_year"
308
- :search="false"
309
- :value="upCheckPlan.f_plan_year"
310
- :options='yearList'
311
-
312
- close-on-select
313
- value-single>
314
-
315
-
316
- </v-select>
317
- <!-- <datepicker
318
- placeholder='请选择'
319
- style="width:60%"
320
- :disabled-days-of-week="[]"
321
- :format="'yyyy'"
322
- :show-rest-button="reset"
323
- :value.sync="upCheckPlan.f_plan_year"
324
- v-model="upCheckPlan.f_plan_year">
325
- </datepicker>-->
326
- </div>
327
- <div class="form-group col-sm-4" >
328
- <label class="font_normal_body">计划月份:</label>
329
- <v-select
330
- class="select select_list"
331
- :value.sync="upCheckPlan.f_plan_month"
332
- v-model="upCheckPlan.f_plan_month"
333
-
334
- :options='monthList'
335
- close-on-select
336
- value-single>
337
- </v-select>
338
- </div>
339
- <div class="form-group col-sm-4" >
340
- <label class="font_normal_body">是否共享:</label>
341
- <v-select
342
- class="select select_list"
343
- :search="false"
344
- :value.sync="upCheckPlan.isShare"
345
- v-model="upCheckPlan.isShare"
346
- :options='isAndNot'
347
- placeholder='请选择'
348
- close-on-select
349
- value-single
350
- >
351
- </v-select>
352
- </div>
353
- <div class="form-group col-sm-4" v-show="upCheckPlan.isShare=='否'">
354
- <label class="font_normal_body">安&ensp;检&ensp;员:</label>
355
- <v-select
356
- class="select select_list"
357
- :value.sync="upCheckPlan.checker"
358
- v-model="upCheckPlan.checker"
359
- :options='checker'
360
- close-on-select
361
- value-single
362
- >
363
- </v-select>
364
- </div>
365
-
366
- <div class="form-group col-sm-4">
367
- <label class="font_normal_body">安检类型:</label>
368
- <v-select
369
- class="select select_list"
370
- :value.sync="upCheckPlan.f_safecheck_type"
371
- v-model="upCheckPlan.f_safecheck_type"
372
- :options='ntoway'
373
- close-on-select
374
- value-single
375
- >
376
- </v-select>
377
- </div>
378
- </div>
379
- </div>
380
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
381
- <button class="button_search" style="margin-right: 15px" @click="upPlan()">保存修改</button>
382
- <button class="button_search" @click="cancel">取消</button>
383
- </div>
384
- </modal>
385
- </div>
386
- </template>
387
-
388
- <script>
389
- import {SearchList,HttpResetClass, PagedList} from "vue-client";
390
- import * as Util from "../../Util";
391
- import Vue from "vue";
392
-
393
- export default {
394
- name: "PlanManage",
395
- title: '计划管理',
396
- data() {
397
- return {
398
- a:'1',
399
- opt:[{label:"按时间降序",value:"按时间降序"},{label:"按时间升序",value:"按时间升序"}],
400
- currentorder:'按时间降序',
401
- checkplan : new SearchList(true),
402
- selectPlan:{id:''},
403
- upCheckPlan:{
404
- f_plan_name:'',
405
- f_safecheck_type:'',
406
- f_plan_year:'',
407
- f_plan_month:'',
408
- f_checker_id:'',
409
- isShare:'',
410
- f_checker:'',
411
- checker:{}
412
- },
413
- isSend:false,
414
- createPlan:{
415
- f_plan_name:'',
416
- f_plan_year:'',
417
- f_plan_month:'',
418
- isShare:'否',
419
- f_issued:'否',
420
- f_checker_id:null,
421
- checker:{},
422
- f_checker:null,
423
- f_safecheck_type:'',
424
- },
425
- planCondition:{},
426
- showCondtion:false,
427
- showCreatePlan:false,
428
- showUpPlan:false,
429
- isAndNot:[{label:'是',value:'是'},{label:'否',value:'否'}],
430
- conIsAndNot:[{label:'是',value:'is null'},{label:'否',value:'is not null'}],
431
- yearList:[{label:2020,value:2020},{label:2021,value:2021},{label:2022,value:2022},{label:2023,value:2023},{label:2024,value:2024},{label:2025,value:2025},{label:2026,value:2026},{label:2027,value:2027},{label:2028,value:2028},{label:2029,value:2029},{label:2030,value:2030}],
432
- monthList:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8},{label:"9",value:9},{label:"10",value:10},{label:"11",value:11},{label:"12",value:12}],
433
- safechecktype:[{label:'年度普检',value:'年度普检'}],
434
- checker:[],
435
- checkertCon:[],
436
- userlogin:{
437
- id:this.$login.f.id,
438
- name:this.$login.f.name,
439
- orgid:this.$login.f.orgid,
440
- orgstr:this.$login.f.orgs,
441
- }
442
- //需要测试直接把下面放开即可
443
- /*userlogin:{
444
- id:'141701',
445
- name:'hwq',
446
- orgid:'35526',
447
- orgstr:'西华县天然气有限公司'
448
- }*/
449
- }
450
- },
451
- async ready(){
452
- await this.loadpage()
453
- },
454
- computed: {
455
- ntoway() {
456
- /*/!* return AppData.getParam('安检类型')*!/*/
457
- return this.$appdata.getParam('安检类型')
458
- }
459
- },
460
- methods:{
461
- /* ntoway() {
462
- /!* return AppData.getParam('安检类型')*!/
463
- return Vue.$appdata.getParam('安检类型')
464
- },*/
465
- async loadpage(){
466
- //await this.checkplan.searchList("/api/af-safecheck/sql/预约计划下发", {},{groupitem:"",f_filialeids:"('"+this.userlogin.orgid+"')",orderitem:"f_create_time desc"})
467
- await this.loadCheckPlan()
468
- await this.searchChecker(this.userlogin.id)
469
- },
470
- getRes(obj) {
471
- console.log("----obj"+JSON.stringify(obj.resids))
472
- console.log(obj)
473
- if(obj.resids.length>0 && obj.resids[0]!=this.userlogin.orgid && obj.resids[0]){
474
- this.userlogin.orgid=obj.resids[0]
475
- this.userlogin.orgstr=obj.res[0]
476
- if(this.$refs.item && this.$refs.user){
477
- this.loadpage()
478
- this.selectPlan={id:""}
479
- this.$refs.item.model.rows=[]
480
- this.$refs.user.model.rows=[]
481
- this.$refs.user.loadpage()
482
- }
483
- }
484
- },
485
- getConList(field){
486
- return [{label:'全部',value:''}, ...this[field]]
487
- },
488
- selectPlanChange(plan){
489
- this.selectPlan=plan
490
- //this.upCheckPlan=plan
491
- },
492
- showUserCondition(){
493
- this.showCondtion=true
494
- },
495
- showcCreatePlan(){
496
- this.showCreatePlan=true
497
- },
498
- cancel(){
499
- this.showCondtion=false
500
- this.showCreatePlan=false
501
- this.showUpPlan=false
502
- },
503
- //新建计划
504
- async addNewPlan() {
505
- if(!this.validationCreatePlan()){
506
- return
507
- }
508
- this.isSend=true
509
- let res=await new HttpResetClass().load("POST","/api/af-safecheck/sql/getCheckplan", {data: {condition:"f_plan_name='"+this.createPlan.f_plan_name+"'",sortfield:'f_create_time desc'}})
510
- console.log("结果-"+res.data.length)
511
- if(res.data.length>0){
512
- Vue.showMessage("计划名称不能重复!")
513
- this.isSend=false
514
- return
515
- }
516
- if(this.createPlan.isShare=="是"){
517
- this.createPlan.f_checker_id=null
518
- this.createPlan.f_checker=null
519
- }else{
520
- this.createPlan.f_checker_id=this.createPlan.checker.id
521
- this.createPlan.f_checker=this.createPlan.checker.name
522
- }
523
- console.log("this.createPlan.f_checker:"+this.createPlan.f_checker)
524
- this.createPlan.f_plan_type='预约计划'
525
- this.createPlan.f_subcompany=this.userlogin.orgstr
526
- this.createPlan.f_filialeid=this.userlogin.orgid
527
- this.createPlan.f_create_operator=this.userlogin.name
528
- this.createPlan.f_create_time=Util.toStandardTimeString()
529
- await new HttpResetClass().load('POST',"/api/af-safecheck/logic/createCheckPlan", {"data": this.createPlan},{resolveMsg : '新建计划成功!', rejectMsg : '新建计划失败!'})
530
- //await this.loadCheckPlan('',()=>{})
531
- this.createPlan={
532
- f_plan_name:'',
533
- f_plan_year:'',
534
- f_plan_month:'',
535
- isShare:'否',
536
- f_issued:'否',
537
- f_checker_id:null,
538
- checker:{},
539
- f_checker:null,
540
- f_safecheck_type:'',
541
- f_create_operator:''
542
- }
543
- await this.loadCheckPlan()
544
- this.isSend=false
545
-
546
- },
547
- validationCreatePlan(){
548
- if(!this.createPlan.f_plan_name){
549
- Vue.showMessage("请输入安检计划名称!")
550
- return false
551
- }
552
- if(!this.createPlan.f_plan_year){
553
- Vue.showMessage("请选择安检年份!")
554
- return false
555
- }
556
- if(!this.createPlan.f_plan_month){
557
- Vue.showMessage("请选择安检月份!")
558
- return false
559
- }
560
- if(this.createPlan.isShare=="否"){
561
- if(JSON.stringify(this.createPlan.checker)=='{}'){
562
- Vue.showMessage("请选择安检人员!")
563
- return false
564
- }
565
- }else{
566
- this.createPlan.f_checker=''
567
- }
568
- if(!this.createPlan.f_safecheck_type){
569
- Vue.showMessage("请选择安检类型!")
570
- return false
571
- }
572
- return true
573
- },
574
- //查询安检员selectChanged
575
- async searchChecker(id){
576
- let res=await new HttpResetClass().load('POST', '/rs/search', {
577
- source: 'tool.getChildrenOfResName($安检员$)',
578
- userid: id
579
- }, {resolveMsg: null, rejectMsg: null})
580
- this.checker=[]
581
- res.data.forEach((resRow) => {
582
- if(resRow.orgid==this.userlogin.orgid){
583
- this.checker.push({label:resRow.name,value:resRow})
584
- }
585
- })
586
- },
587
- //设置属性值
588
- setProperty(modulename, property, value) {
589
- console.log(modulename+"新添--"+property+"--"+value)
590
- if(value=='全部'){
591
- this[modulename].search.setField(property, '')
592
- }else{
593
- this[modulename].search.setField(property, value)
594
- }
595
- },
596
- //按条件查询所有安检计划
597
- async loadCheckPlan() {
598
- this.isSend=true
599
- this.checkplan.check.checkes=[]
600
- let fieldValue=''
601
- switch(this.currentorder){
602
- case "按时间降序":
603
- fieldValue='f_create_time desc'
604
- break
605
- case "按时间升序":
606
- fieldValue='f_create_time'
607
- break
608
- }
609
- console.log("--------fieldValue"+fieldValue)
610
- this.cancel()
611
- await this.checkplan.searchList("/api/af-safecheck/sql/预约计划下发",
612
- {"f_plan_name": "f_plan_name like '%{}%'",
613
- "f_plan_year":"f_plan_year={}",
614
- "f_plan_month":"f_plan_month={}",
615
- "checkerid":"f_checker_id='{}'",
616
- "isAndNot":"f_checker {}",
617
- "safechecktype":"f_safecheck_type='{}'",
618
- "issude":"f_issued = '{}'",
619
- "f_create_operator": "f_create_operator like '%{}%'"
620
- },
621
- {orderitem:fieldValue,
622
- f_filialeids:"('"+this.userlogin.orgid+"')",
623
- groupitem:""
624
- }
625
- )
626
-
627
- this.isSend=false
628
- },
629
- //加载更多数据
630
- async loadMore(modelname) {
631
- this.isSend=true
632
- await this[modelname].list.loadMore()
633
- this.isSend=false
634
- },
635
- showUpPlans(row){
636
- this.upCheckPlan.id=row.id
637
- this.upCheckPlan.f_safecheck_type=row.f_safecheck_type
638
- this.upCheckPlan.f_plan_name=row.f_plan_name
639
- this.upCheckPlan.f_plan_year=row.f_plan_year
640
- this.upCheckPlan.f_plan_month=row.f_plan_month
641
- this.upCheckPlan.f_checker_id=row.f_checker_id?row.f_checker_id:null
642
- this.upCheckPlan.f_checker=row.f_checker?row.f_checker:null
643
- this.upCheckPlan.isShare=row.f_checker_id?'否':'是'
644
- this.upCheckPlan.f_issued=row.f_issued
645
- this.upCheckPlan.checker={id:row.f_checker_id,name:row.f_checker}
646
- this.showUpPlan=true
647
- },
648
- async upPlan(){
649
- if(this.upCheckPlan.f_issued=='已下发'){
650
- this.$showMessage("该计划已下发,无法进行修改!")
651
- return
652
- }
653
- if(!this.upCheckPlan.f_plan_name){
654
- Vue.showMessage("请输入安检计划名称!")
655
- return false
656
- }
657
- if(!this.upCheckPlan.f_plan_year){
658
- Vue.showMessage("请选择安检年份!")
659
- return false
660
- }
661
- if(!this.upCheckPlan.f_plan_month){
662
- Vue.showMessage("请选择安检月份!")
663
- return false
664
- }
665
- console.log(this.upCheckPlan)
666
-
667
- if(this.upCheckPlan.isShare=="是"){
668
- this.upCheckPlan.f_checker_id=null
669
- this.upCheckPlan.f_checker=null
670
- }else{
671
- this.upCheckPlan.f_checker_id=this.upCheckPlan.checker.id
672
- this.upCheckPlan.f_checker=this.upCheckPlan.checker.name
673
- }
674
- this.isSend=true
675
- let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/updateCheckPlan", {
676
- data:{
677
- f_checker:this.upCheckPlan.f_checker,
678
- f_safecheck_type:this.upCheckPlan.f_safecheck_type,
679
- f_checker_id:this.upCheckPlan.f_checker_id,
680
- f_plan_name:this.upCheckPlan.f_plan_name,
681
- f_plan_year:this.upCheckPlan.f_plan_year,
682
- f_plan_month:this.upCheckPlan.f_plan_month,
683
- f_plan_id:this.upCheckPlan.id
684
- }
685
- }, {resolveMsg: null, rejectMsg: null})
686
- if(res.data.code==200){
687
- this.$showMessage("修改成功!")
688
- this.cancel()
689
- await this.loadCheckPlan()
690
- }else{
691
- this.$showMessage("修改失败!")
692
- }
693
- this.isSend=false
694
- },
695
- //下发安检计划
696
- async sendCheckPlan(f){
697
- if(this.checkplan.check.checkes.length<1){
698
- this.$showMessage("请选择要下发的安检计划")
699
- return
700
- }
701
- this.isSend=true
702
- let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/NewBespeakCheckPlan", {
703
- data:{
704
- f_issued:'是',
705
- f_issue_time:Util.toStandardTimeString(),
706
- f_send_operator:this.userlogin.name,
707
- param:this.checkplan.check.checkes,
708
- }
709
- }, {resolveMsg: null, rejectMsg: null})
710
- if(res.data.code==200){
711
- //Vue.showMessage("下发成功!其中有"+res.data.repet+"个计划己经是下发状态")
712
- this.$showMessage("下发成功!")
713
- }else{
714
- this.$showMessage("下发失败!")
715
- }
716
- await this.loadCheckPlan()
717
- this.isSend=false
718
- },
719
- //删除安检计划
720
- async delCheckPlan(f){
721
- if(this.checkplan.check.checkes.length<1){
722
- this.$showMessage("请选择要删除的安检计划")
723
- return
724
- }
725
- this.isSend=true
726
- let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/deleteCheckPlan", {
727
- data:{
728
- f_operator:this.userlogin.orgstr,//global.login.name,
729
- condition:"",
730
- switchCheckAll:true,
731
- checkAll:false,
732
- param:this.checkplan.check.checkes,
733
- columnName: "f_plan_id"
734
- }
735
- }, {resolveMsg: null, rejectMsg: null})
736
- console.log(JSON.stringify(res))
737
- if(res.data.code==200){
738
- this.$showMessage("删除成功!")
739
- }else{
740
- this.$showMessage("删除失败!")
741
- }
742
- if(this.checkplan.check.checkes.indexOf(this.selectPlan.id)!= -1){
743
- this.selectPlan={id:''}
744
- console.log("包含了清空selectplan")
745
- }
746
- await this.loadCheckPlan()
747
- this.isSend=false
748
- },
749
- async refresh(){
750
- this.$refs.item.$refs.paged.$refs.criteria.search()
751
- this.$refs.user.$refs.paged.$refs.criteria.search()
752
- await this.loadCheckPlan()
753
- },
754
- async refreshPlan(){
755
- this.$refs.item.$refs.paged.$refs.criteria.search()
756
- await this.loadCheckPlan()
757
- }
758
- }
759
- }
760
- </script>
761
-
762
- <style scoped>
763
- .safe-planfont{
764
- font-family: MicrosoftYaHei;
765
- font-size: 15px;
766
- font-weight: normal;
767
- font-stretch: normal;
768
- letter-spacing: 2px;
769
- color: #333333;
770
- line-height: 25px;
771
- }
772
- .safe-bodyfont{
773
- font-family: MicrosoftYaHei;
774
- font-size: 14px;
775
- font-weight: normal;
776
- font-stretch: normal;
777
- letter-spacing: 0px;
778
- color: #999999;
779
- line-height: 30px;
780
- }
781
- .safe-leftplan{
782
- height:auto;
783
- border-bottom:1px solid #ececec;
784
- padding: 10px 5px
785
- }
786
- .leftplan-center{
787
- border-top:1px solid #ececec;
788
- border-bottom:1px solid #ececec;
789
- }
790
- .safe_p{
791
- white-space: nowrap;
792
- overflow: hidden;
793
- text-overflow: ellipsis;
794
- }
795
- .safe-div-p{
796
- color: #4792de;
797
- text-align: end;
798
- padding: 8px 15px;
799
- }
800
- .safe_list_li:hover{
801
- background-color: rgb(245,246,247);
802
- }
803
- .safe-selectplan{
804
- pointer-events: none;
805
- background-color: rgb(216,234,251);
806
- }
807
- .safe_plan_list{
808
- height: 80%;
809
- overflow: scroll;
810
- }
811
-
812
- </style>
813
- <style>
814
- .safe_plan_list::-webkit-scrollbar{
815
- background-color: #F5F5F5;
816
- }
817
-
818
- /*定义滚动条轨道 内阴影+圆角*/
819
- .safe_plan_list::-webkit-scrollbar-track{
820
- -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
821
- border-radius: 10px;
822
- background-color: #F5F5F5;
823
- }
824
-
825
- /*定义滑块 内阴影+圆角*/
826
- .safe_plan_list::-webkit-scrollbar-thumb{
827
- border-radius: 10px;
828
- -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
829
- background-color: #F5F5F5;
830
- }
831
- </style>
1
+ <template>
2
+ <work-busy :is-busy="isSend"></work-busy>
3
+ <div class="binary" style="background-color: #e8f4ff">
4
+ <!--左侧安检计划列表******************************************************-->
5
+ <div class="binary-left flex flex-column" style="width: 16%">
6
+ <div style="height: 9%">
7
+ <div class="row auto">
8
+ <img style="width: 20px;margin: 0 5px" src="../../../../static/images/searchhover.png" @click="showUserCondition()"/>
9
+ <v-select :width="'80%'"
10
+ class="select select_list"
11
+ :search="false"
12
+ :value.sync="currentorder"
13
+ v-model="currentorder"
14
+ @change="loadCheckPlan"
15
+ :options='opt'
16
+ close-on-select value-single >
17
+ </v-select>
18
+ </div>
19
+ <div class="row auto safe-div-p"><!--<span style="margin-right: 5px" @click="refresh()" style="cursor:default">测试</span>--><span style="margin-right: 5px" @click="delCheckPlan()" style="cursor:default">删除</span> <span @click="sendCheckPlan()" style="cursor:default">下发</span></div>
20
+ </div>
21
+ <div class="leftplan-center safe_plan_list">
22
+ <div class="row safe-leftplan safe_list_li" :class="{'safe-selectplan':selectPlan.id==row.id}" v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
23
+ <table style="width:100%;table-layout:fixed" >
24
+ <tr class="safe-planfont">
25
+ <td rowspan="6"><input type="checkbox" style="pointer-events:auto" v-show="row.plan_count==0 || row.f_issued=='未下发'" onClick="event.cancelBubble = true" :checked="checkplan.check.isChecked(row.f_check_item_id)" @change="checkplan.check.setCheckes(row.id)"/></td>
26
+ <td colspan="6" class="safe_p">{{row.f_plan_name}}</td>
27
+ <td colspan="2" style="text-align: center"><img width="20px" style="pointer-events:auto" onClick="event.cancelBubble = true" @click="showUpPlans(row)" src="../../../../static/images/edit.png"/></td>
28
+ </tr>
29
+ <tr class="safe-bodyfont" style="color:#4792de">
30
+ <td colspan="6">{{row.f_issued}}</td>
31
+ <td colspan="2" class="safe_p">{{row.f_checker?row.f_checker:'共享'}}</td>
32
+ </tr>
33
+ <tr class="safe-bodyfont">
34
+ <td colspan="4">{{row.f_plan_year}}-{{row.f_plan_month}}</td>
35
+ <td colspan="2">总 :</td>
36
+ <td colspan="2">{{row.plan_count}}</td>
37
+ </tr>
38
+ <tr class="safe-bodyfont">
39
+ <td colspan="2">未检 :</td>
40
+ <td colspan="2">{{row.unchecked}}</td>
41
+ <td colspan="2">已检 :</td>
42
+ <td colspan="2">{{row.checked}}</td>
43
+ </tr>
44
+ <tr class="safe-bodyfont" v-if="row.f_create_time">
45
+ <td colspan="3">创建时间 :</td>
46
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" :title="row.f_create_time">{{row.f_create_time}}</td>
47
+ </tr>
48
+ <tr class="safe-bodyfont" v-if="row.f_safecheck_type">
49
+ <td colspan="3">安检类型 :</td>
50
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" :title="row.f_safecheck_type">{{row.f_safecheck_type}}</td>
51
+ </tr>
52
+ </table>
53
+ </div>
54
+ </div>
55
+ <div style="height: 11%">
56
+ <div class="row auto leftplan-center" style="padding: 8px">
57
+ <div class="col-sm-6" style="">
58
+ <span>共{{checkplan.list.count}}条</span>
59
+ </div>
60
+ <div class="col-sm-6" style="text-align: end">
61
+ <span @click="loadMore('checkplan')"><img src="../../../../static/images/doubledown.png"/>&ensp;更多</span>
62
+ </div>
63
+ </div>
64
+ <div class="row auto" style="padding: 10px;text-align: center">
65
+ <img src="../../../../static/images/addnew.png" @click="showcCreatePlan()"/>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ <!--右侧列表**************************************************************************-->
70
+ <div class="binary-right" style="width: 84%;overflow: auto">
71
+ <div style="height: 5%">
72
+ <div class="col-sm-4">
73
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
74
+ <right-tree-safe :islist="false" :width="'60%'" @re-res="getRes"></right-tree-safe>
75
+ </div>
76
+ </div>
77
+ <div style="height: 95%">
78
+ <div style="height: 50%" class="leftplan-center">
79
+ <check-plan-list :selectplan="selectPlan" :userlogin="userlogin" v-ref:item></check-plan-list>
80
+ </div>
81
+ <div style="height: 50%">
82
+ <check-user-list :selectplan="selectPlan" :userlogin="userlogin" v-ref:user></check-user-list>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ <modal :show.sync="showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
87
+ <div slot="modal-header" class="modal-header">
88
+ <h4 class="modal-title">
89
+ 计划查询条件
90
+ </h4>
91
+ </div>
92
+ <div slot="modal-body" class="modal-body">
93
+ <div class="row">
94
+ <div class="form-group col-sm-4" >
95
+ <label class="font_normal_body">计划名称:</label>
96
+ <input type="text" class="input_search" v-model="planCondition.f_plan_name" @change="setProperty('checkplan','f_plan_name',planCondition.f_plan_name)"
97
+ style="width: 60%" placeholder="请选择" />
98
+ </div>
99
+ <div class="form-group col-sm-4" >
100
+ <label class="font_normal_body">计划年份:</label>
101
+ <v-select
102
+ class="select select_list"
103
+ :value.sync="planCondition.f_plan_year"
104
+ v-model="planCondition.f_plan_year"
105
+ @change="setProperty('checkplan','f_plan_year',planCondition.f_plan_year)"
106
+ :search="false"
107
+ :options='getConList("yearList")'
108
+ placeholder='请选择'
109
+ close-on-select
110
+ value-single
111
+ >
112
+ </v-select>
113
+ </div>
114
+ <div class="form-group col-sm-4" >
115
+ <label class="font_normal_body">计划月份:</label>
116
+ <v-select
117
+ class="select select_list"
118
+ :value.sync="planCondition.f_plan_month"
119
+ v-model="planCondition.f_plan_month"
120
+ @change="setProperty('checkplan','f_plan_month',planCondition.f_plan_month)"
121
+ :search="false"
122
+ :options='getConList("monthList")'
123
+ placeholder='请选择'
124
+ close-on-select
125
+ value-single>
126
+ </v-select>
127
+ </div>
128
+ <div class="form-group col-sm-4" >
129
+ <label class="font_normal_body">是否共享:</label>
130
+ <v-select
131
+ class="select select_list"
132
+ :value.sync="planCondition.isShare"
133
+ v-model="planCondition.isShare"
134
+ @change="setProperty('checkplan','isAndNot',planCondition.isShare)"
135
+ :options='getConList("conIsAndNot")'
136
+ :search="false"
137
+ placeholder='请选择'
138
+ close-on-select
139
+ value-single
140
+ >
141
+ </v-select>
142
+ </div>
143
+ <div class="form-group col-sm-4" >
144
+ <label class="font_normal_body">是否下发:</label>
145
+ <v-select
146
+ class="select select_list"
147
+ :value.sync="planCondition.issued"
148
+ v-model="planCondition.issued"
149
+ :options='getConList("isAndNot")'
150
+ @change="setProperty('checkplan','issude',planCondition.issued)"
151
+ placeholder='请选择'
152
+ :search="false"
153
+ close-on-select
154
+ value-single
155
+ >
156
+ </v-select>
157
+ </div>
158
+ <div class="form-group col-sm-4" >
159
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
160
+ <v-select
161
+ class="select select_list"
162
+ :value.sync="planCondition.f_checker"
163
+ v-model="planCondition.f_checker"
164
+ @change="setProperty('checkplan','checkerid',planCondition.f_checker.id)"
165
+ :options='getConList("checker")'
166
+ placeholder='请选择'
167
+ close-on-select
168
+ value-single
169
+ >
170
+ </v-select>
171
+ </div>
172
+
173
+ <div class="form-group col-sm-4" >
174
+ <label class="font_normal_body">安检类型:</label>
175
+ <v-select
176
+ class="select select_list"
177
+ :value.sync="planCondition.f_safecheck_type"
178
+ v-model="planCondition.f_safecheck_type"
179
+ @change="setProperty('checkplan','safechecktype',planCondition.f_safecheck_type)"
180
+ :options='getConList("safechecktype")'
181
+ placeholder='请选择'
182
+ :search="false"
183
+ close-on-select
184
+ value-single
185
+ >
186
+ </v-select>
187
+ </div>
188
+ <div class="form-group col-sm-4" >
189
+ <label class="font_normal_body">创&ensp;建&ensp;人:</label>
190
+ <input type="text" class="input_search" v-model="planCondition.f_create_operator" @change="setProperty('checkplan','f_create_operator',planCondition.f_create_operator)"
191
+ style="width: 60%" placeholder="创建人" />
192
+ </div>
193
+ </div>
194
+ </div>
195
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
196
+ <button class="button_search" @click="loadCheckPlan" style="margin-right: 15px">查询</button>
197
+ <button class="button_search" @click="cancel">取消</button>
198
+ </div>
199
+ </modal>
200
+ <modal :show.sync="showCreatePlan" v-ref:modal1 :width="'50%'" :backdrop="false">
201
+ <div slot="modal-header" class="modal-header">
202
+ <h4 class="modal-title">
203
+ 新建计划
204
+ </h4>
205
+ </div>
206
+ <div slot="modal-body" class="modal-body">
207
+ <div class="row">
208
+ <div class="form-group col-sm-4" >
209
+ <label class="font_normal_body">计划名称:</label>
210
+ <input type="text" class="input_search" v-model="createPlan.f_plan_name"
211
+ style="width: 60%" placeholder="请选择" />
212
+ </div>
213
+ <div class="form-group col-sm-4" >
214
+ <label class="font_normal_body">计划年份:</label>
215
+ <v-select
216
+ class="select select_list"
217
+ :value.sync="createPlan.f_plan_year"
218
+ v-model="createPlan.f_plan_year"
219
+ :search="false"
220
+ :options='yearList'
221
+ placeholder='请选择'
222
+ close-on-select
223
+ value-single
224
+ >
225
+ </v-select>
226
+ </div>
227
+ <div class="form-group col-sm-4" >
228
+ <label class="font_normal_body">计划月份:</label>
229
+ <v-select
230
+ class="select select_list"
231
+ :value.sync="createPlan.f_plan_month"
232
+ v-model="createPlan.f_plan_month"
233
+ :search="false"
234
+ :options='monthList'
235
+ placeholder='请选择'
236
+ close-on-select
237
+ value-single>
238
+ </v-select>
239
+ </div>
240
+ <div class="form-group col-sm-4" >
241
+ <label class="font_normal_body">是否共享:</label>
242
+ <v-select
243
+ class="select select_list"
244
+ :search="false"
245
+ :value.sync="createPlan.isShare"
246
+ v-model="createPlan.isShare"
247
+ :options='isAndNot'
248
+ placeholder='请选择'
249
+ close-on-select
250
+ value-single
251
+ >
252
+ </v-select>
253
+ </div>
254
+ <div class="form-group col-sm-4" v-show="createPlan.isShare=='否'">
255
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
256
+ <v-select
257
+ class="select select_list"
258
+ :value.sync="createPlan.checker"
259
+ v-model="createPlan.checker"
260
+ :options='checker'
261
+ placeholder='请选择'
262
+ close-on-select
263
+ value-single
264
+ >
265
+ </v-select>
266
+ </div>
267
+
268
+ <div class="form-group col-sm-4" >
269
+ <label class="font_normal_body">安检类型:</label>
270
+ <v-select
271
+ class="select select_list"
272
+ :value.sync="createPlan.f_safecheck_type"
273
+ v-model="createPlan.f_safecheck_type"
274
+ :search="false"
275
+ :options='ntoway'
276
+ placeholder='请选择'
277
+ close-on-select
278
+ value-single
279
+ >
280
+ </v-select>
281
+ </div>
282
+ </div>
283
+ </div>
284
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
285
+ <button class="button_search" style="margin-right: 15px" @click="addNewPlan()">创建计划</button>
286
+ <button class="button_search" @click="cancel">取消</button>
287
+ </div>
288
+ </modal>
289
+ <modal :show.sync="showUpPlan" v-ref:modal2 :backdrop="false">
290
+ <div slot="modal-header" class="modal-header">
291
+ <h4 class="modal-title">
292
+ 修改计划
293
+ </h4>
294
+ </div>
295
+ <div slot="modal-body" class="modal-body">
296
+ <div class="row">
297
+ <div class="form-group col-sm-4" >
298
+ <label class="font_normal_body">计划名称:</label>
299
+ <input type="text" class="input_search" v-model="upCheckPlan.f_plan_name"
300
+ style="width: 60%" />
301
+ </div>
302
+ <div class="form-group col-sm-4" >
303
+ <label class="font_normal_body">计划年份:</label>
304
+ <v-select
305
+ class="select select_list"
306
+ :value.sync="upCheckPlan.f_plan_year"
307
+ v-model="upCheckPlan.f_plan_year"
308
+ :search="false"
309
+ :value="upCheckPlan.f_plan_year"
310
+ :options='yearList'
311
+
312
+ close-on-select
313
+ value-single>
314
+
315
+
316
+ </v-select>
317
+ <!-- <datepicker
318
+ placeholder='请选择'
319
+ style="width:60%"
320
+ :disabled-days-of-week="[]"
321
+ :format="'yyyy'"
322
+ :show-rest-button="reset"
323
+ :value.sync="upCheckPlan.f_plan_year"
324
+ v-model="upCheckPlan.f_plan_year">
325
+ </datepicker>-->
326
+ </div>
327
+ <div class="form-group col-sm-4" >
328
+ <label class="font_normal_body">计划月份:</label>
329
+ <v-select
330
+ class="select select_list"
331
+ :value.sync="upCheckPlan.f_plan_month"
332
+ v-model="upCheckPlan.f_plan_month"
333
+
334
+ :options='monthList'
335
+ close-on-select
336
+ value-single>
337
+ </v-select>
338
+ </div>
339
+ <div class="form-group col-sm-4" >
340
+ <label class="font_normal_body">是否共享:</label>
341
+ <v-select
342
+ class="select select_list"
343
+ :search="false"
344
+ :value.sync="upCheckPlan.isShare"
345
+ v-model="upCheckPlan.isShare"
346
+ :options='isAndNot'
347
+ placeholder='请选择'
348
+ close-on-select
349
+ value-single
350
+ >
351
+ </v-select>
352
+ </div>
353
+ <div class="form-group col-sm-4" v-show="upCheckPlan.isShare=='否'">
354
+ <label class="font_normal_body">安&ensp;检&ensp;员:</label>
355
+ <v-select
356
+ class="select select_list"
357
+ :value.sync="upCheckPlan.checker"
358
+ v-model="upCheckPlan.checker"
359
+ :options='checker'
360
+ close-on-select
361
+ value-single
362
+ >
363
+ </v-select>
364
+ </div>
365
+
366
+ <div class="form-group col-sm-4">
367
+ <label class="font_normal_body">安检类型:</label>
368
+ <v-select
369
+ class="select select_list"
370
+ :value.sync="upCheckPlan.f_safecheck_type"
371
+ v-model="upCheckPlan.f_safecheck_type"
372
+ :options='ntoway'
373
+ close-on-select
374
+ value-single
375
+ >
376
+ </v-select>
377
+ </div>
378
+ </div>
379
+ </div>
380
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
381
+ <button class="button_search" style="margin-right: 15px" @click="upPlan()">保存修改</button>
382
+ <button class="button_search" @click="cancel">取消</button>
383
+ </div>
384
+ </modal>
385
+ </div>
386
+ </template>
387
+
388
+ <script>
389
+ import {SearchList,HttpResetClass, PagedList} from "vue-client";
390
+ import * as Util from "../../Util";
391
+ import Vue from "vue";
392
+
393
+ export default {
394
+ name: "PlanManage",
395
+ title: '计划管理',
396
+ data() {
397
+ return {
398
+ a:'1',
399
+ opt:[{label:"按时间降序",value:"按时间降序"},{label:"按时间升序",value:"按时间升序"}],
400
+ currentorder:'按时间降序',
401
+ checkplan : new SearchList(true),
402
+ selectPlan:{id:''},
403
+ upCheckPlan:{
404
+ f_plan_name:'',
405
+ f_safecheck_type:'',
406
+ f_plan_year:'',
407
+ f_plan_month:'',
408
+ f_checker_id:'',
409
+ isShare:'',
410
+ f_checker:'',
411
+ checker:{}
412
+ },
413
+ isSend:false,
414
+ createPlan:{
415
+ f_plan_name:'',
416
+ f_plan_year:'',
417
+ f_plan_month:'',
418
+ isShare:'否',
419
+ f_issued:'否',
420
+ f_checker_id:null,
421
+ checker:{},
422
+ f_checker:null,
423
+ f_safecheck_type:'',
424
+ },
425
+ planCondition:{},
426
+ showCondtion:false,
427
+ showCreatePlan:false,
428
+ showUpPlan:false,
429
+ isAndNot:[{label:'是',value:'是'},{label:'否',value:'否'}],
430
+ conIsAndNot:[{label:'是',value:'is null'},{label:'否',value:'is not null'}],
431
+ yearList:[{label:2020,value:2020},{label:2021,value:2021},{label:2022,value:2022},{label:2023,value:2023},{label:2024,value:2024},{label:2025,value:2025},{label:2026,value:2026},{label:2027,value:2027},{label:2028,value:2028},{label:2029,value:2029},{label:2030,value:2030}],
432
+ monthList:[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8},{label:"9",value:9},{label:"10",value:10},{label:"11",value:11},{label:"12",value:12}],
433
+ safechecktype:[{label:'年度普检',value:'年度普检'}],
434
+ checker:[],
435
+ checkertCon:[],
436
+ userlogin:{
437
+ id:this.$login.f.id,
438
+ name:this.$login.f.name,
439
+ orgid:this.$login.f.orgid,
440
+ orgstr:this.$login.f.orgs,
441
+ }
442
+ //需要测试直接把下面放开即可
443
+ /*userlogin:{
444
+ id:'141701',
445
+ name:'hwq',
446
+ orgid:'35526',
447
+ orgstr:'西华县天然气有限公司'
448
+ }*/
449
+ }
450
+ },
451
+ async ready(){
452
+ await this.loadpage()
453
+ },
454
+ computed: {
455
+ ntoway() {
456
+ /*/!* return AppData.getParam('安检类型')*!/*/
457
+ return this.$appdata.getParam('安检类型')
458
+ }
459
+ },
460
+ methods:{
461
+ /* ntoway() {
462
+ /!* return AppData.getParam('安检类型')*!/
463
+ return Vue.$appdata.getParam('安检类型')
464
+ },*/
465
+ async loadpage(){
466
+ //await this.checkplan.searchList("/api/af-safecheck/sql/预约计划下发", {},{groupitem:"",f_filialeids:"('"+this.userlogin.orgid+"')",orderitem:"f_create_time desc"})
467
+ await this.loadCheckPlan()
468
+ await this.searchChecker(this.userlogin.id)
469
+ },
470
+ getRes(obj) {
471
+ console.log("----obj"+JSON.stringify(obj.resids))
472
+ console.log(obj)
473
+ if(obj.resids.length>0 && obj.resids[0]!=this.userlogin.orgid && obj.resids[0]){
474
+ this.userlogin.orgid=obj.resids[0]
475
+ this.userlogin.orgstr=obj.res[0]
476
+ if(this.$refs.item && this.$refs.user){
477
+ this.loadpage()
478
+ this.selectPlan={id:""}
479
+ this.$refs.item.model.rows=[]
480
+ this.$refs.user.model.rows=[]
481
+ this.$refs.user.loadpage()
482
+ }
483
+ }
484
+ },
485
+ getConList(field){
486
+ return [{label:'全部',value:''}, ...this[field]]
487
+ },
488
+ selectPlanChange(plan){
489
+ this.selectPlan=plan
490
+ //this.upCheckPlan=plan
491
+ },
492
+ showUserCondition(){
493
+ this.showCondtion=true
494
+ },
495
+ showcCreatePlan(){
496
+ this.showCreatePlan=true
497
+ },
498
+ cancel(){
499
+ this.showCondtion=false
500
+ this.showCreatePlan=false
501
+ this.showUpPlan=false
502
+ },
503
+ //新建计划
504
+ async addNewPlan() {
505
+ if(!this.validationCreatePlan()){
506
+ return
507
+ }
508
+ this.isSend=true
509
+ let res=await new HttpResetClass().load("POST","/api/af-safecheck/sql/getCheckplan", {data: {condition:"f_plan_name='"+this.createPlan.f_plan_name+"'",sortfield:'f_create_time desc'}})
510
+ console.log("结果-"+res.data.length)
511
+ if(res.data.length>0){
512
+ Vue.showMessage("计划名称不能重复!")
513
+ this.isSend=false
514
+ return
515
+ }
516
+ if(this.createPlan.isShare=="是"){
517
+ this.createPlan.f_checker_id=null
518
+ this.createPlan.f_checker=null
519
+ }else{
520
+ this.createPlan.f_checker_id=this.createPlan.checker.id
521
+ this.createPlan.f_checker=this.createPlan.checker.name
522
+ }
523
+ console.log("this.createPlan.f_checker:"+this.createPlan.f_checker)
524
+ this.createPlan.f_plan_type='预约计划'
525
+ this.createPlan.f_subcompany=this.userlogin.orgstr
526
+ this.createPlan.f_filialeid=this.userlogin.orgid
527
+ this.createPlan.f_create_operator=this.userlogin.name
528
+ this.createPlan.f_create_time=Util.toStandardTimeString()
529
+ await new HttpResetClass().load('POST',"/api/af-safecheck/logic/createCheckPlan", {"data": this.createPlan},{resolveMsg : '新建计划成功!', rejectMsg : '新建计划失败!'})
530
+ //await this.loadCheckPlan('',()=>{})
531
+ this.createPlan={
532
+ f_plan_name:'',
533
+ f_plan_year:'',
534
+ f_plan_month:'',
535
+ isShare:'否',
536
+ f_issued:'否',
537
+ f_checker_id:null,
538
+ checker:{},
539
+ f_checker:null,
540
+ f_safecheck_type:'',
541
+ f_create_operator:''
542
+ }
543
+ await this.loadCheckPlan()
544
+ this.isSend=false
545
+
546
+ },
547
+ validationCreatePlan(){
548
+ if(!this.createPlan.f_plan_name){
549
+ Vue.showMessage("请输入安检计划名称!")
550
+ return false
551
+ }
552
+ if(!this.createPlan.f_plan_year){
553
+ Vue.showMessage("请选择安检年份!")
554
+ return false
555
+ }
556
+ if(!this.createPlan.f_plan_month){
557
+ Vue.showMessage("请选择安检月份!")
558
+ return false
559
+ }
560
+ if(this.createPlan.isShare=="否"){
561
+ if(JSON.stringify(this.createPlan.checker)=='{}'){
562
+ Vue.showMessage("请选择安检人员!")
563
+ return false
564
+ }
565
+ }else{
566
+ this.createPlan.f_checker=''
567
+ }
568
+ if(!this.createPlan.f_safecheck_type){
569
+ Vue.showMessage("请选择安检类型!")
570
+ return false
571
+ }
572
+ return true
573
+ },
574
+ //查询安检员selectChanged
575
+ async searchChecker(id){
576
+ let res=await new HttpResetClass().load('POST', '/rs/search', {
577
+ source: 'tool.getChildrenOfResName($安检员$)',
578
+ userid: id
579
+ }, {resolveMsg: null, rejectMsg: null})
580
+ this.checker=[]
581
+ res.data.forEach((resRow) => {
582
+ if(resRow.orgid==this.userlogin.orgid){
583
+ this.checker.push({label:resRow.name,value:resRow})
584
+ }
585
+ })
586
+ },
587
+ //设置属性值
588
+ setProperty(modulename, property, value) {
589
+ console.log(modulename+"新添--"+property+"--"+value)
590
+ if(value=='全部'){
591
+ this[modulename].search.setField(property, '')
592
+ }else{
593
+ this[modulename].search.setField(property, value)
594
+ }
595
+ },
596
+ //按条件查询所有安检计划
597
+ async loadCheckPlan() {
598
+ this.isSend=true
599
+ this.checkplan.check.checkes=[]
600
+ let fieldValue=''
601
+ switch(this.currentorder){
602
+ case "按时间降序":
603
+ fieldValue='f_create_time desc'
604
+ break
605
+ case "按时间升序":
606
+ fieldValue='f_create_time'
607
+ break
608
+ }
609
+ console.log("--------fieldValue"+fieldValue)
610
+ this.cancel()
611
+ await this.checkplan.searchList("/api/af-safecheck/sql/预约计划下发",
612
+ {"f_plan_name": "f_plan_name like '%{}%'",
613
+ "f_plan_year":"f_plan_year={}",
614
+ "f_plan_month":"f_plan_month={}",
615
+ "checkerid":"f_checker_id='{}'",
616
+ "isAndNot":"f_checker {}",
617
+ "safechecktype":"f_safecheck_type='{}'",
618
+ "issude":"f_issued = '{}'",
619
+ "f_create_operator": "f_create_operator like '%{}%'"
620
+ },
621
+ {orderitem:fieldValue,
622
+ f_filialeids:"('"+this.userlogin.orgid+"')",
623
+ groupitem:""
624
+ }
625
+ )
626
+
627
+ this.isSend=false
628
+ },
629
+ //加载更多数据
630
+ async loadMore(modelname) {
631
+ this.isSend=true
632
+ await this[modelname].list.loadMore()
633
+ this.isSend=false
634
+ },
635
+ showUpPlans(row){
636
+ this.upCheckPlan.id=row.id
637
+ this.upCheckPlan.f_safecheck_type=row.f_safecheck_type
638
+ this.upCheckPlan.f_plan_name=row.f_plan_name
639
+ this.upCheckPlan.f_plan_year=row.f_plan_year
640
+ this.upCheckPlan.f_plan_month=row.f_plan_month
641
+ this.upCheckPlan.f_checker_id=row.f_checker_id?row.f_checker_id:null
642
+ this.upCheckPlan.f_checker=row.f_checker?row.f_checker:null
643
+ this.upCheckPlan.isShare=row.f_checker_id?'否':'是'
644
+ this.upCheckPlan.f_issued=row.f_issued
645
+ this.upCheckPlan.checker={id:row.f_checker_id,name:row.f_checker}
646
+ this.showUpPlan=true
647
+ },
648
+ async upPlan(){
649
+ if(this.upCheckPlan.f_issued=='已下发'){
650
+ this.$showMessage("该计划已下发,无法进行修改!")
651
+ return
652
+ }
653
+ if(!this.upCheckPlan.f_plan_name){
654
+ Vue.showMessage("请输入安检计划名称!")
655
+ return false
656
+ }
657
+ if(!this.upCheckPlan.f_plan_year){
658
+ Vue.showMessage("请选择安检年份!")
659
+ return false
660
+ }
661
+ if(!this.upCheckPlan.f_plan_month){
662
+ Vue.showMessage("请选择安检月份!")
663
+ return false
664
+ }
665
+ console.log(this.upCheckPlan)
666
+
667
+ if(this.upCheckPlan.isShare=="是"){
668
+ this.upCheckPlan.f_checker_id=null
669
+ this.upCheckPlan.f_checker=null
670
+ }else{
671
+ this.upCheckPlan.f_checker_id=this.upCheckPlan.checker.id
672
+ this.upCheckPlan.f_checker=this.upCheckPlan.checker.name
673
+ }
674
+ this.isSend=true
675
+ let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/updateCheckPlan", {
676
+ data:{
677
+ f_checker:this.upCheckPlan.f_checker,
678
+ f_safecheck_type:this.upCheckPlan.f_safecheck_type,
679
+ f_checker_id:this.upCheckPlan.f_checker_id,
680
+ f_plan_name:this.upCheckPlan.f_plan_name,
681
+ f_plan_year:this.upCheckPlan.f_plan_year,
682
+ f_plan_month:this.upCheckPlan.f_plan_month,
683
+ f_plan_id:this.upCheckPlan.id
684
+ }
685
+ }, {resolveMsg: null, rejectMsg: null})
686
+ if(res.data.code==200){
687
+ this.$showMessage("修改成功!")
688
+ this.cancel()
689
+ await this.loadCheckPlan()
690
+ }else{
691
+ this.$showMessage("修改失败!")
692
+ }
693
+ this.isSend=false
694
+ },
695
+ //下发安检计划
696
+ async sendCheckPlan(f){
697
+ if(this.checkplan.check.checkes.length<1){
698
+ this.$showMessage("请选择要下发的安检计划")
699
+ return
700
+ }
701
+ this.isSend=true
702
+ let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/NewBespeakCheckPlan", {
703
+ data:{
704
+ f_issued:'是',
705
+ f_issue_time:Util.toStandardTimeString(),
706
+ f_send_operator:this.userlogin.name,
707
+ param:this.checkplan.check.checkes,
708
+ }
709
+ }, {resolveMsg: null, rejectMsg: null})
710
+ if(res.data.code==200){
711
+ //Vue.showMessage("下发成功!其中有"+res.data.repet+"个计划己经是下发状态")
712
+ this.$showMessage("下发成功!")
713
+ }else{
714
+ this.$showMessage("下发失败!")
715
+ }
716
+ await this.loadCheckPlan()
717
+ this.isSend=false
718
+ },
719
+ //删除安检计划
720
+ async delCheckPlan(f){
721
+ if(this.checkplan.check.checkes.length<1){
722
+ this.$showMessage("请选择要删除的安检计划")
723
+ return
724
+ }
725
+ this.isSend=true
726
+ let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/deleteCheckPlan", {
727
+ data:{
728
+ f_operator:this.userlogin.orgstr,//global.login.name,
729
+ condition:"",
730
+ switchCheckAll:true,
731
+ checkAll:false,
732
+ param:this.checkplan.check.checkes,
733
+ columnName: "f_plan_id"
734
+ }
735
+ }, {resolveMsg: null, rejectMsg: null})
736
+ console.log(JSON.stringify(res))
737
+ if(res.data.code==200){
738
+ this.$showMessage("删除成功!")
739
+ }else{
740
+ this.$showMessage("删除失败!")
741
+ }
742
+ if(this.checkplan.check.checkes.indexOf(this.selectPlan.id)!= -1){
743
+ this.selectPlan={id:''}
744
+ console.log("包含了清空selectplan")
745
+ }
746
+ await this.loadCheckPlan()
747
+ this.isSend=false
748
+ },
749
+ async refresh(){
750
+ this.$refs.item.$refs.paged.$refs.criteria.search()
751
+ this.$refs.user.$refs.paged.$refs.criteria.search()
752
+ await this.loadCheckPlan()
753
+ },
754
+ async refreshPlan(){
755
+ this.$refs.item.$refs.paged.$refs.criteria.search()
756
+ await this.loadCheckPlan()
757
+ }
758
+ }
759
+ }
760
+ </script>
761
+
762
+ <style scoped>
763
+ .safe-planfont{
764
+ font-family: MicrosoftYaHei;
765
+ font-size: 15px;
766
+ font-weight: normal;
767
+ font-stretch: normal;
768
+ letter-spacing: 2px;
769
+ color: #333333;
770
+ line-height: 25px;
771
+ }
772
+ .safe-bodyfont{
773
+ font-family: MicrosoftYaHei;
774
+ font-size: 14px;
775
+ font-weight: normal;
776
+ font-stretch: normal;
777
+ letter-spacing: 0px;
778
+ color: #999999;
779
+ line-height: 30px;
780
+ }
781
+ .safe-leftplan{
782
+ height:auto;
783
+ border-bottom:1px solid #ececec;
784
+ padding: 10px 5px
785
+ }
786
+ .leftplan-center{
787
+ border-top:1px solid #ececec;
788
+ border-bottom:1px solid #ececec;
789
+ }
790
+ .safe_p{
791
+ white-space: nowrap;
792
+ overflow: hidden;
793
+ text-overflow: ellipsis;
794
+ }
795
+ .safe-div-p{
796
+ color: #4792de;
797
+ text-align: end;
798
+ padding: 8px 15px;
799
+ }
800
+ .safe_list_li:hover{
801
+ background-color: rgb(245,246,247);
802
+ }
803
+ .safe-selectplan{
804
+ pointer-events: none;
805
+ background-color: rgb(216,234,251);
806
+ }
807
+ .safe_plan_list{
808
+ height: 80%;
809
+ overflow: scroll;
810
+ }
811
+
812
+ </style>
813
+ <style>
814
+ .safe_plan_list::-webkit-scrollbar{
815
+ background-color: #F5F5F5;
816
+ }
817
+
818
+ /*定义滚动条轨道 内阴影+圆角*/
819
+ .safe_plan_list::-webkit-scrollbar-track{
820
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
821
+ border-radius: 10px;
822
+ background-color: #F5F5F5;
823
+ }
824
+
825
+ /*定义滑块 内阴影+圆角*/
826
+ .safe_plan_list::-webkit-scrollbar-thumb{
827
+ border-radius: 10px;
828
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
829
+ background-color: #F5F5F5;
830
+ }
831
+ </style>