safecheck-client 4.0.2-20 → 4.0.2-21

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 (274) hide show
  1. package/package.json +1 -1
  2. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  3. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  4. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  5. package/src/components/Util/RightTreeSafeDep.vue +362 -362
  6. package/src/components/android/AddPlanItem.vue +447 -447
  7. package/src/components/android/AddPlanItemYy.vue +451 -451
  8. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  9. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  10. package/src/components/android/DailyworkloadQuery.vue +473 -473
  11. package/src/components/android/Devices.vue +327 -327
  12. package/src/components/android/Devicesm.vue +327 -327
  13. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  14. package/src/components/android/PhoneRecordInfo.vue +113 -113
  15. package/src/components/android/PhoneSellInfo.vue +113 -113
  16. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  17. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  18. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  19. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  20. package/src/components/android/SafePlanItem.vue +509 -509
  21. package/src/components/android/SafeRightTree.vue +218 -218
  22. package/src/components/android/SafecheckDevices.vue +1340 -1340
  23. package/src/components/android/UploadPage.vue +232 -232
  24. package/src/components/android/examples/SafeListExamples.vue +296 -296
  25. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  26. package/src/components/android/recheck/Recheck.vue +402 -402
  27. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  28. package/src/components/android/week/CheckResultSimple.vue +222 -222
  29. package/src/components/android/week/FirstWeekCheck.vue +236 -236
  30. package/src/components/android/week/StepHeaderBar.vue +323 -323
  31. package/src/components/android/week/WeekCheck.vue +151 -151
  32. package/src/components/android/week/WeekCheckPaper.vue +151 -151
  33. package/src/components/checkplan/checkmsg.vue +459 -459
  34. package/src/components/defect/DefectList.vue +507 -507
  35. package/src/components/defect/DefectListWeixiu.vue +484 -484
  36. package/src/components/filialCircle/CircleList.vue +139 -139
  37. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  38. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  39. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  40. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  41. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  42. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  43. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  44. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  45. package/src/components/map/PersonTrack.vue +226 -226
  46. package/src/components/paper/RegionalList.vue +220 -220
  47. package/src/components/paper/safetyledger.vue +194 -194
  48. package/src/components/pc/AnnouncementPC.vue +524 -524
  49. package/src/components/pc/CheckBook.vue +303 -303
  50. package/src/components/pc/CheckBookArea.vue +146 -146
  51. package/src/components/pc/CheckBookCompany.vue +144 -144
  52. package/src/components/pc/CheckBookDetails.vue +161 -161
  53. package/src/components/pc/CheckBookEntry.vue +60 -60
  54. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  55. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  56. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  57. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  58. package/src/components/pc/DefectList.vue +742 -742
  59. package/src/components/pc/DefectMaterialLook.vue +98 -98
  60. package/src/components/pc/DeviceChange.vue +1068 -1068
  61. package/src/components/pc/PaperDefectMain.vue +905 -905
  62. package/src/components/pc/RoleSelectorDep.vue +166 -166
  63. package/src/components/pc/SafeVisitInfo.vue +261 -261
  64. package/src/components/report/HiddenSituation.vue +165 -165
  65. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  66. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  67. package/src/components/rongcheng/DefectList.vue +560 -560
  68. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  69. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  70. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  71. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  72. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  73. package/src/components/shaoguan/DefectList.vue +473 -473
  74. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  75. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  76. package/src/components/userfile/SecurityAudit.vue +243 -243
  77. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  78. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  79. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  80. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  81. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  82. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  83. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  84. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  85. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  86. package/src/filiale/bayan/android/Edit.vue +132 -132
  87. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  88. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  89. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  90. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  91. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  92. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  93. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  94. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  95. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  96. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  97. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  98. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  99. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  100. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  101. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  102. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  103. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  104. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  105. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  106. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  107. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  108. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  109. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  110. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  111. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  112. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  113. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  114. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  115. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  116. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  117. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +462 -462
  118. package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
  119. package/src/filiale/jinhong/pc/checkPlanList.vue +420 -420
  120. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  121. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  122. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  123. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  124. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  125. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  126. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  127. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  128. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  129. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  130. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  131. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  132. package/src/filiale/libo/android/CurrentCreate.vue +1091 -1091
  133. package/src/filiale/libo/android.js +15 -15
  134. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  135. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  136. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  137. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  138. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  139. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  140. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  141. package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1542
  142. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  143. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1343
  144. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  145. package/src/filiale/meihekou/android.js +22 -22
  146. package/src/filiale/meihekou/pc/CheckDetail.vue +208 -208
  147. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -52
  148. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -2050
  149. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  150. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -262
  151. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  152. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  153. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  154. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  155. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  156. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  157. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  158. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  159. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  160. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  161. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  162. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  163. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  164. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  165. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -359
  166. package/src/filiale/qingjian/pc.js +15 -15
  167. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  168. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  169. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  170. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  171. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  172. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  173. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  174. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  175. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  176. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  177. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  178. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  179. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  180. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  181. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  182. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  183. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  184. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  185. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  186. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  187. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  188. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  189. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  190. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  191. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  192. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  193. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  194. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  195. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  196. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  197. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  198. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  199. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  200. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  201. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  202. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  203. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  204. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  205. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  206. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  207. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  208. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  209. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  210. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  211. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  212. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  213. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  214. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  215. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  216. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  217. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  218. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  219. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  220. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  221. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  222. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  223. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  224. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  225. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  226. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  227. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  228. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  229. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  230. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  231. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  232. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  233. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  234. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  235. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  236. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  237. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  238. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  239. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  240. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  241. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -814
  242. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -206
  243. package/src/filiale/xinliansihui/pc.js +13 -13
  244. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  245. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  246. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  247. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  248. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  249. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  250. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  251. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  252. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  253. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  254. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  255. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  256. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  257. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  258. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  259. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  260. package/src/filiale/yunchengminsheng/android.js +15 -15
  261. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  262. package/src/filiale/yunchengminsheng/pc.js +15 -15
  263. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  264. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  265. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  266. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  267. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  268. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  269. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  270. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  271. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  272. package/src/main.js +32 -33
  273. package/src/safecheck-android.js +326 -326
  274. package/src/safecheck.js +927 -927
@@ -1,420 +1,420 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div partial>
6
- <div class="row">
7
- <label class="form-group font_normal_body"><b>计划信息</b></label>
8
- <div class="form-group col-sm-1" v-show="false">
9
- <!--隐藏条件-->
10
- <input type="text" class="input_search" v-model="model.f_plan_id"
11
- style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
12
- </div>
13
- <div class="form-group col-sm-1" >
14
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
15
- style="width: 95%" placeholder="客户编号" condition="i.f_userinfo_code='{}'">
16
- </div>
17
- <div class="form-group col-sm-1" >
18
- <input type="text" class="input_search" v-model="model.f_user_name"
19
- style="width: 95%" placeholder="客户名称" condition="i.f_user_name like '%{}%'">
20
- </div>
21
- <div class="form-group col-sm-1" >
22
- <input type="text" class="input_search" v-model="model.f_address"
23
- style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
24
- </div>
25
- <div class="form-group col-sm-1" >
26
- <datepicker
27
- placeholder='创建起始'
28
- style="width:100%"
29
- :disabled-days-of-week="[]"
30
- :format="'yyyy-MM-dd'"
31
- :show-rest-button="reset"
32
- :value.sync="model.f_starcreate_time"
33
- v-model="model.f_starcreate_time"
34
- condition="i.f_create_time >='{} 00:00:00'">
35
- </datepicker>
36
- </div>
37
- <div class="form-group col-sm-1" style="margin-left: 6px;margin-right: 6px;">
38
- <datepicker
39
- placeholder='创建结束'
40
- :disabled-days-of-week="[]"
41
- style="width:100%"
42
- :format="'yyyy-MM-dd'"
43
- :show-rest-button="reset"
44
- :value.sync="model.f_endcreate_time"
45
- v-model="model.f_endcreate_time"
46
- condition="i.f_create_time <='{} 00:00:00'">
47
- </datepicker>
48
- </div>
49
- <!--<div class="form-group col-sm-1" >
50
- <v-select :width="'95%'"
51
- class="select select_list"
52
- :value.sync="$parent.$parent.f_state"
53
- v-model="$parent.$parent.f_state"
54
- :options='$parent.$parent.checkState'
55
- placeholder='安检状态'
56
- close-on-select
57
- value-single
58
- >
59
- </v-select>
60
- </div>-->
61
- <div class="form-group col-sm-3" style="width: 20%;">
62
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
63
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
64
- <!-- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>-->
65
- <export-excel :data="$parent.$parent.exportParameter"
66
- :field="$parent.$parent.exportExcelField"
67
- style="margin-left: 0px"
68
- sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItem"
69
- :template-name="'安检计划导出'" :choose-col="true">
70
- </export-excel>
71
- </div>
72
- <div class="form-group col-sm-2 safe_p" style="width: 30%;">
73
- <label class="font_normal_body" style="margin-right: 10px" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
74
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
75
- <button class="button_search" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
76
- </div>
77
- <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
78
- <div slot="modal-header" class="modal-header">
79
- <h4 class="modal-title">
80
- 计划内用户查询条件
81
- </h4>
82
- </div>
83
- <div slot="modal-body" class="modal-body">
84
- <div class="row">
85
- <div class="form-group col-sm-4" >
86
- <label class="font_normal_body">是否已检:</label>
87
- <v-select
88
- class="select select_list"
89
- :value.sync="model.f_state"
90
- v-model="model.f_state"
91
- :options='$parent.$parent.checkState'
92
- @change="$parent.$parent.checkStateChange(model.f_state)"
93
- placeholder='请选择'
94
- condition="i.f_state='{}'"
95
- close-on-select
96
- value-single
97
- >
98
- </v-select>
99
- </div>
100
- <div class="form-group col-sm-4" >
101
- <label class="font_normal_body">安检结果:</label>
102
- <v-select
103
- class="select select_list"
104
- :value.sync="model.f_check_state"
105
- v-model="model.f_check_state"
106
- :options='$parent.$parent.checkResults'
107
- placeholder='请选择'
108
- condition="i.f_last_check_state='{}'"
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
- <datepicker
117
- placeholder='请选择'
118
- style="width:60%"
119
- :disabled-days-of-week="[]"
120
- :format="'yyyy-MM-dd'"
121
- :show-rest-button="reset"
122
- :value.sync="model.f_startfile_time"
123
- v-model="model.f_startfile_time"
124
- condition="i.f_last_check_date >='{} 00:00:00'">
125
- </datepicker>
126
- </div>
127
- <div class="form-group col-sm-4" >
128
- <label class="font_normal_body">安检截止:</label>
129
- <datepicker
130
- placeholder='请选择'
131
- :disabled-days-of-week="[]"
132
- style="width:60%"
133
- :format="'yyyy-MM-dd'"
134
- :show-rest-button="reset"
135
- :value.sync="model.f_endfile_time"
136
- v-model="model.f_endfile_time"
137
- condition="i.f_last_check_date <='{} 00:00:00'">
138
- </datepicker>
139
- </div>
140
- <!-- <div class="form-group col-sm-4" >-->
141
- <!-- <label class="font_normal_body">创建起始:</label>-->
142
- <!-- <datepicker-->
143
- <!-- placeholder='请选择'-->
144
- <!-- style="width:60%"-->
145
- <!-- :disabled-days-of-week="[]"-->
146
- <!-- :format="'yyyy-MM-dd'"-->
147
- <!-- :show-rest-button="reset"-->
148
- <!-- :value.sync="model.f_starcreate_time"-->
149
- <!-- v-model="model.f_starcreate_time"-->
150
- <!-- condition="i.f_create_time >='{} 00:00:00'">-->
151
- <!-- </datepicker>-->
152
- <!-- </div>-->
153
- <!-- <div class="form-group col-sm-4" >-->
154
- <!-- <label class="font_normal_body">创建截止:</label>-->
155
- <!-- <datepicker-->
156
- <!-- placeholder='请选择'-->
157
- <!-- :disabled-days-of-week="[]"-->
158
- <!-- style="width:60%"-->
159
- <!-- :format="'yyyy-MM-dd'"-->
160
- <!-- :show-rest-button="reset"-->
161
- <!-- :value.sync="model.f_endcreate_time"-->
162
- <!-- v-model="model.f_endcreate_time"-->
163
- <!-- condition="i.f_create_time <='{} 00:00:00'">-->
164
- <!-- </datepicker>-->
165
- <!-- </div>-->
166
- </div>
167
- </div>
168
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
169
- <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
170
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
171
- </div>
172
- </modal>
173
- </div>
174
- </div>
175
- </criteria>
176
- <data-grid :model="model" partial='list' class="table_sy">
177
-
178
- <template partial='head'>
179
- <tr>
180
- <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
181
- <th><nobr>用户编号</nobr></th>
182
- <th><nobr>用户名称</nobr></th>
183
- <th><nobr>用户电话</nobr></th>
184
- <th><nobr>用户类型</nobr></th>
185
- <th><nobr>小区名称</nobr></th>
186
- <th><nobr>安检状态</nobr></th>
187
- <th><nobr>地址</nobr></th>
188
- <th><nobr>上次安检时间</nobr></th>
189
- <th><nobr>创建时间</nobr></th>
190
- </tr>
191
- </template>
192
- <template partial='body'>
193
- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
194
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
195
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
196
- <td style="text-align: center"><nobr>{{row.f_user_phone}}</nobr></td>
197
- <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
198
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
199
- <td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
200
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
201
- <td style="text-align: center"><nobr>{{row.f_last_check_date_old}}</nobr></td>
202
- <td style="text-align: center"><nobr>{{row.f_create_time}}</nobr></td>
203
- </template>
204
- </data-grid>
205
- </criteria-paged>
206
- <modal :show.sync="showPlanModal" v-ref:modalp>
207
- <div slot="modal-header" class="modal-header">
208
- <h4 class="modal-title">
209
- 计划内用户调整
210
- </h4>
211
- </div>
212
- <div slot="modal-body" class="modal-body">
213
- <plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
214
- </div>
215
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
216
- <button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
217
- <button class="button_search" @click="cancel">取消</button>
218
- </div>
219
- </modal>
220
- </div>
221
- </template>
222
-
223
- <script>
224
- import {HttpResetClass, PagedList} from "vue-client";
225
- import Vue from "vue";
226
-
227
- export default {
228
- name: "PlanManage",
229
- title: '计划管理',
230
- data() {
231
- return {
232
- model:new PagedList('/api/af-safecheck/sql/planItem', 100, {}),
233
- isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
234
- a:'1',
235
- opt:[{label:"测试",value:"测试"}],
236
- showCondtion:false,
237
- checkAll:false,
238
- checkes:[],
239
- checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
240
- checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
241
- showPlanModal:false,
242
- exportExcelField: {
243
- 'f_userinfo_code':'用户编号',
244
- 'f_user_name':'用户名称',
245
- 'f_user_type':'用户类型',
246
- 'f_residential_area':'小区名称',
247
- 'f_state':'安检状态',
248
- 'f_address':'地址',
249
- 'f_user_phone':'用户电话',
250
- 'f_newfile_date':'建档日期'
251
- }
252
- }
253
- },
254
- props:["selectplan","userlogin"],
255
- ready(){
256
-
257
- },
258
- computed:{
259
- exportParameter(){
260
- // excel 导出条件拼接
261
- return {
262
- condition: this.$refs.paged.model.condition,
263
- groupName: this.groupNameForSql
264
- }
265
- }
266
- },
267
- methods:{
268
- clear(){
269
- this.model.f_plan_id = '';
270
- this.model.f_userinfo_code = '';
271
- this.model.f_user_name = '';
272
- this.model.f_address='';
273
- },
274
- //将某个计划下的一项拖到另一个计划
275
- async dragtoOtherPlanIteem() {
276
- //tag)
277
-
278
- if (!this.$refs.modalp.$children[0].selectedRow.id) {
279
- this.$showMessage("请选择需要调整到那个计划中!")
280
- return
281
- }
282
- this.$parent.isSend=true
283
- try{
284
- let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItem", {
285
- data:{
286
- f_operator:this.userlogin.name,
287
- f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
288
- condition:this.model.condition,
289
- switchCheckAll:true,
290
- checkAll:this.checkAll,
291
- param:this.checkes,
292
- columnName: "i.id"
293
- }
294
- }, {resolveMsg: null, rejectMsg: null})
295
- this.$parent.isSend=false
296
- if(res.data.code==200){
297
- this.$showMessage("更换安检计划成功!")
298
- this.$parent.refreshPlan()
299
- }else{
300
- this.$showMessage("更换安检计划失败!")
301
- }
302
- }catch (e) {
303
- this.$parent.isSend=false
304
- this.$showMessage("更换安检计划失败!")
305
- }
306
- },
307
- showplanModal(){
308
- if(!this.selectplan || !this.selectplan.id){
309
- this.$showMessage("请先打开一个计划再进行操作")
310
- return
311
- }
312
- if(!this.checkAll && this.checkes.length==0){
313
- this.$showMessage("请先在计划中勾选你要调整的用户!")
314
- return
315
- }
316
- this.showPlanModal=true
317
- },
318
- showUserCondition(){
319
- this.showCondtion=true
320
- },
321
- isChecked(v) {
322
- // 如果全选,不在的按选中算,否则,在的按选中算
323
- if (this.checkAll) {
324
- return this.checkes.indexOf(v) == -1
325
- } else {
326
- return this.checkes.indexOf(v) != -1
327
- }
328
- },
329
- setCheckAll() {
330
- this.checkAll=this.checkAll?false:true;
331
- // 全选改变后,清空选中数据
332
- this.checkes = []
333
- },
334
- setCheckes(id) {
335
- let index=this.checkes.indexOf(id)
336
- if(index<0){
337
- this.checkes.push(id)
338
- }else{
339
- this.checkes.splice(index,1)
340
- }
341
- },
342
- cancel(){
343
- this.showCondtion=false
344
- this.showPlanModal=false
345
- },
346
- selfSearch (args) {
347
- if(!this.selectplan.id){
348
- this.$showMessage("请先选择一个计划!")
349
- return
350
- }
351
- this.cancel()
352
- this.checkes=[]
353
- this.checkAll=false
354
- args.condition+= ` and i.f_state!= '作废'`
355
- this.model.search(args.condition, args.model, args.condValue)
356
- },
357
- checkStateChange(val){
358
- if(val=='未检'){
359
- this.checkResults=[]
360
- this.$refs.paged.$refs.criteria.model.f_check_state=''
361
- }else{
362
- this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
363
- }
364
- },
365
- //修改计划项状态为作废
366
- async delPlanItem() {
367
- if(!this.selectplan || !this.selectplan.id){
368
- this.$showMessage("请先打开一个计划再进行操作")
369
- return
370
- }
371
- if(!this.checkAll && this.checkes.length==0){
372
- this.$showMessage("请先在计划中勾选你要作废的用户!")
373
- return
374
- }
375
- this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
376
- if(button=='confirm'){
377
- let resu=new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItemState", {
378
- data: {
379
- f_operator:this.userlogin.name,
380
- condition:this.model.condition,
381
- switchCheckAll:true,
382
- checkAll:this.checkAll,
383
- param:this.checkes,
384
- columnName: "i.id"
385
- }
386
- }, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
387
-
388
- //tag)
389
- if(resu.data.code==200){
390
- this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
391
- //this.checkes=[]
392
- //this.checkAll=false
393
- this.$parent.refresh()
394
- }else{
395
- this.$showMessage("取消安检计划失败!")
396
- }
397
- })
398
- }
399
- })
400
- }
401
- },
402
- watch:{
403
- 'selectplan.id' (){
404
- //tag
405
- if(this.selectplan.id){
406
- this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
407
- this.$refs.paged.$refs.criteria.search()
408
- }
409
- }
410
- }
411
- }
412
- </script>
413
-
414
- <style scoped>
415
- .safe_p{
416
- white-space: nowrap;
417
- overflow: hidden;
418
- text-overflow: ellipsis;
419
- }
420
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <div class="row">
7
+ <label class="form-group font_normal_body"><b>计划信息</b></label>
8
+ <div class="form-group col-sm-1" v-show="false">
9
+ <!--隐藏条件-->
10
+ <input type="text" class="input_search" v-model="model.f_plan_id"
11
+ style="width: 95%" placeholder="计划id" condition=" i.f_plan_id='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
15
+ style="width: 95%" placeholder="客户编号" condition="i.f_userinfo_code='{}'">
16
+ </div>
17
+ <div class="form-group col-sm-1" >
18
+ <input type="text" class="input_search" v-model="model.f_user_name"
19
+ style="width: 95%" placeholder="客户名称" condition="i.f_user_name like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-1" >
22
+ <input type="text" class="input_search" v-model="model.f_address"
23
+ style="width: 95%" placeholder="客户地址" condition="i.f_address like '%{}%'">
24
+ </div>
25
+ <div class="form-group col-sm-1" >
26
+ <datepicker
27
+ placeholder='创建起始'
28
+ style="width:100%"
29
+ :disabled-days-of-week="[]"
30
+ :format="'yyyy-MM-dd'"
31
+ :show-rest-button="reset"
32
+ :value.sync="model.f_starcreate_time"
33
+ v-model="model.f_starcreate_time"
34
+ condition="i.f_create_time >='{} 00:00:00'">
35
+ </datepicker>
36
+ </div>
37
+ <div class="form-group col-sm-1" style="margin-left: 6px;margin-right: 6px;">
38
+ <datepicker
39
+ placeholder='创建结束'
40
+ :disabled-days-of-week="[]"
41
+ style="width:100%"
42
+ :format="'yyyy-MM-dd'"
43
+ :show-rest-button="reset"
44
+ :value.sync="model.f_endcreate_time"
45
+ v-model="model.f_endcreate_time"
46
+ condition="i.f_create_time <='{} 00:00:00'">
47
+ </datepicker>
48
+ </div>
49
+ <!--<div class="form-group col-sm-1" >
50
+ <v-select :width="'95%'"
51
+ class="select select_list"
52
+ :value.sync="$parent.$parent.f_state"
53
+ v-model="$parent.$parent.f_state"
54
+ :options='$parent.$parent.checkState'
55
+ placeholder='安检状态'
56
+ close-on-select
57
+ value-single
58
+ >
59
+ </v-select>
60
+ </div>-->
61
+ <div class="form-group col-sm-3" style="width: 20%;">
62
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
63
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
64
+ <!-- <button class="button_search" style="margin-right: 10px" @click="clear()">清除</button>-->
65
+ <export-excel :data="$parent.$parent.exportParameter"
66
+ :field="$parent.$parent.exportExcelField"
67
+ style="margin-left: 0px"
68
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItem"
69
+ :template-name="'安检计划导出'" :choose-col="true">
70
+ </export-excel>
71
+ </div>
72
+ <div class="form-group col-sm-2 safe_p" style="width: 30%;">
73
+ <label class="font_normal_body" style="margin-right: 10px" :title="$parent.$parent.selectplan.f_plan_name">{{$parent.$parent.selectplan.f_plan_name?'当前选中 : '+$parent.$parent.selectplan.f_plan_name:''}}</label>
74
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
75
+ <button class="button_search" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
76
+ </div>
77
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
78
+ <div slot="modal-header" class="modal-header">
79
+ <h4 class="modal-title">
80
+ 计划内用户查询条件
81
+ </h4>
82
+ </div>
83
+ <div slot="modal-body" class="modal-body">
84
+ <div class="row">
85
+ <div class="form-group col-sm-4" >
86
+ <label class="font_normal_body">是否已检:</label>
87
+ <v-select
88
+ class="select select_list"
89
+ :value.sync="model.f_state"
90
+ v-model="model.f_state"
91
+ :options='$parent.$parent.checkState'
92
+ @change="$parent.$parent.checkStateChange(model.f_state)"
93
+ placeholder='请选择'
94
+ condition="i.f_state='{}'"
95
+ close-on-select
96
+ value-single
97
+ >
98
+ </v-select>
99
+ </div>
100
+ <div class="form-group col-sm-4" >
101
+ <label class="font_normal_body">安检结果:</label>
102
+ <v-select
103
+ class="select select_list"
104
+ :value.sync="model.f_check_state"
105
+ v-model="model.f_check_state"
106
+ :options='$parent.$parent.checkResults'
107
+ placeholder='请选择'
108
+ condition="i.f_last_check_state='{}'"
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
+ <datepicker
117
+ placeholder='请选择'
118
+ style="width:60%"
119
+ :disabled-days-of-week="[]"
120
+ :format="'yyyy-MM-dd'"
121
+ :show-rest-button="reset"
122
+ :value.sync="model.f_startfile_time"
123
+ v-model="model.f_startfile_time"
124
+ condition="i.f_last_check_date >='{} 00:00:00'">
125
+ </datepicker>
126
+ </div>
127
+ <div class="form-group col-sm-4" >
128
+ <label class="font_normal_body">安检截止:</label>
129
+ <datepicker
130
+ placeholder='请选择'
131
+ :disabled-days-of-week="[]"
132
+ style="width:60%"
133
+ :format="'yyyy-MM-dd'"
134
+ :show-rest-button="reset"
135
+ :value.sync="model.f_endfile_time"
136
+ v-model="model.f_endfile_time"
137
+ condition="i.f_last_check_date <='{} 00:00:00'">
138
+ </datepicker>
139
+ </div>
140
+ <!-- <div class="form-group col-sm-4" >-->
141
+ <!-- <label class="font_normal_body">创建起始:</label>-->
142
+ <!-- <datepicker-->
143
+ <!-- placeholder='请选择'-->
144
+ <!-- style="width:60%"-->
145
+ <!-- :disabled-days-of-week="[]"-->
146
+ <!-- :format="'yyyy-MM-dd'"-->
147
+ <!-- :show-rest-button="reset"-->
148
+ <!-- :value.sync="model.f_starcreate_time"-->
149
+ <!-- v-model="model.f_starcreate_time"-->
150
+ <!-- condition="i.f_create_time >='{} 00:00:00'">-->
151
+ <!-- </datepicker>-->
152
+ <!-- </div>-->
153
+ <!-- <div class="form-group col-sm-4" >-->
154
+ <!-- <label class="font_normal_body">创建截止:</label>-->
155
+ <!-- <datepicker-->
156
+ <!-- placeholder='请选择'-->
157
+ <!-- :disabled-days-of-week="[]"-->
158
+ <!-- style="width:60%"-->
159
+ <!-- :format="'yyyy-MM-dd'"-->
160
+ <!-- :show-rest-button="reset"-->
161
+ <!-- :value.sync="model.f_endcreate_time"-->
162
+ <!-- v-model="model.f_endcreate_time"-->
163
+ <!-- condition="i.f_create_time <='{} 00:00:00'">-->
164
+ <!-- </datepicker>-->
165
+ <!-- </div>-->
166
+ </div>
167
+ </div>
168
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
169
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
170
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
171
+ </div>
172
+ </modal>
173
+ </div>
174
+ </div>
175
+ </criteria>
176
+ <data-grid :model="model" partial='list' class="table_sy">
177
+
178
+ <template partial='head'>
179
+ <tr>
180
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
181
+ <th><nobr>用户编号</nobr></th>
182
+ <th><nobr>用户名称</nobr></th>
183
+ <th><nobr>用户电话</nobr></th>
184
+ <th><nobr>用户类型</nobr></th>
185
+ <th><nobr>小区名称</nobr></th>
186
+ <th><nobr>安检状态</nobr></th>
187
+ <th><nobr>地址</nobr></th>
188
+ <th><nobr>上次安检时间</nobr></th>
189
+ <th><nobr>创建时间</nobr></th>
190
+ </tr>
191
+ </template>
192
+ <template partial='body'>
193
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.f_check_item_id)" @change="$parent.$parent.$parent.setCheckes(row.f_check_item_id)" /></td>
194
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
195
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
196
+ <td style="text-align: center"><nobr>{{row.f_user_phone}}</nobr></td>
197
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
198
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
199
+ <td style="text-align: center"><nobr>{{row.f_state==='已检'?row.f_last_check_state:'未检'}}</nobr></td>
200
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
201
+ <td style="text-align: center"><nobr>{{row.f_last_check_date_old}}</nobr></td>
202
+ <td style="text-align: center"><nobr>{{row.f_create_time}}</nobr></td>
203
+ </template>
204
+ </data-grid>
205
+ </criteria-paged>
206
+ <modal :show.sync="showPlanModal" v-ref:modalp>
207
+ <div slot="modal-header" class="modal-header">
208
+ <h4 class="modal-title">
209
+ 计划内用户调整
210
+ </h4>
211
+ </div>
212
+ <div slot="modal-body" class="modal-body">
213
+ <plan-chooser :f.sync="userlogin.orgid" v-ref:chooser></plan-chooser>
214
+ </div>
215
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
216
+ <button class="button_search" style="margin-right: 15px" @click="dragtoOtherPlanIteem">确认</button>
217
+ <button class="button_search" @click="cancel">取消</button>
218
+ </div>
219
+ </modal>
220
+ </div>
221
+ </template>
222
+
223
+ <script>
224
+ import {HttpResetClass, PagedList} from "vue-client";
225
+ import Vue from "vue";
226
+
227
+ export default {
228
+ name: "PlanManage",
229
+ title: '计划管理',
230
+ data() {
231
+ return {
232
+ model:new PagedList('/api/af-safecheck/sql/planItem', 100, {}),
233
+ isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
234
+ a:'1',
235
+ opt:[{label:"测试",value:"测试"}],
236
+ showCondtion:false,
237
+ checkAll:false,
238
+ checkes:[],
239
+ checkResults:[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}],
240
+ checkState:[{label:'全部',value:''},{label:'未检',value:'未检'},{label:'已检',value:'已检'}],
241
+ showPlanModal:false,
242
+ exportExcelField: {
243
+ 'f_userinfo_code':'用户编号',
244
+ 'f_user_name':'用户名称',
245
+ 'f_user_type':'用户类型',
246
+ 'f_residential_area':'小区名称',
247
+ 'f_state':'安检状态',
248
+ 'f_address':'地址',
249
+ 'f_user_phone':'用户电话',
250
+ 'f_newfile_date':'建档日期'
251
+ }
252
+ }
253
+ },
254
+ props:["selectplan","userlogin"],
255
+ ready(){
256
+
257
+ },
258
+ computed:{
259
+ exportParameter(){
260
+ // excel 导出条件拼接
261
+ return {
262
+ condition: this.$refs.paged.model.condition,
263
+ groupName: this.groupNameForSql
264
+ }
265
+ }
266
+ },
267
+ methods:{
268
+ clear(){
269
+ this.model.f_plan_id = '';
270
+ this.model.f_userinfo_code = '';
271
+ this.model.f_user_name = '';
272
+ this.model.f_address='';
273
+ },
274
+ //将某个计划下的一项拖到另一个计划
275
+ async dragtoOtherPlanIteem() {
276
+ //tag)
277
+
278
+ if (!this.$refs.modalp.$children[0].selectedRow.id) {
279
+ this.$showMessage("请选择需要调整到那个计划中!")
280
+ return
281
+ }
282
+ this.$parent.isSend=true
283
+ try{
284
+ let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItem", {
285
+ data:{
286
+ f_operator:this.userlogin.name,
287
+ f_plan_id:this.$refs.modalp.$children[0].selectedRow.id,
288
+ condition:this.model.condition,
289
+ switchCheckAll:true,
290
+ checkAll:this.checkAll,
291
+ param:this.checkes,
292
+ columnName: "i.id"
293
+ }
294
+ }, {resolveMsg: null, rejectMsg: null})
295
+ this.$parent.isSend=false
296
+ if(res.data.code==200){
297
+ this.$showMessage("更换安检计划成功!")
298
+ this.$parent.refreshPlan()
299
+ }else{
300
+ this.$showMessage("更换安检计划失败!")
301
+ }
302
+ }catch (e) {
303
+ this.$parent.isSend=false
304
+ this.$showMessage("更换安检计划失败!")
305
+ }
306
+ },
307
+ showplanModal(){
308
+ if(!this.selectplan || !this.selectplan.id){
309
+ this.$showMessage("请先打开一个计划再进行操作")
310
+ return
311
+ }
312
+ if(!this.checkAll && this.checkes.length==0){
313
+ this.$showMessage("请先在计划中勾选你要调整的用户!")
314
+ return
315
+ }
316
+ this.showPlanModal=true
317
+ },
318
+ showUserCondition(){
319
+ this.showCondtion=true
320
+ },
321
+ isChecked(v) {
322
+ // 如果全选,不在的按选中算,否则,在的按选中算
323
+ if (this.checkAll) {
324
+ return this.checkes.indexOf(v) == -1
325
+ } else {
326
+ return this.checkes.indexOf(v) != -1
327
+ }
328
+ },
329
+ setCheckAll() {
330
+ this.checkAll=this.checkAll?false:true;
331
+ // 全选改变后,清空选中数据
332
+ this.checkes = []
333
+ },
334
+ setCheckes(id) {
335
+ let index=this.checkes.indexOf(id)
336
+ if(index<0){
337
+ this.checkes.push(id)
338
+ }else{
339
+ this.checkes.splice(index,1)
340
+ }
341
+ },
342
+ cancel(){
343
+ this.showCondtion=false
344
+ this.showPlanModal=false
345
+ },
346
+ selfSearch (args) {
347
+ if(!this.selectplan.id){
348
+ this.$showMessage("请先选择一个计划!")
349
+ return
350
+ }
351
+ this.cancel()
352
+ this.checkes=[]
353
+ this.checkAll=false
354
+ args.condition+= ` and i.f_state!= '作废'`
355
+ this.model.search(args.condition, args.model, args.condValue)
356
+ },
357
+ checkStateChange(val){
358
+ if(val=='未检'){
359
+ this.checkResults=[]
360
+ this.$refs.paged.$refs.criteria.model.f_check_state=''
361
+ }else{
362
+ this.checkResults=[{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'入户',value:'入户'}]
363
+ }
364
+ },
365
+ //修改计划项状态为作废
366
+ async delPlanItem() {
367
+ if(!this.selectplan || !this.selectplan.id){
368
+ this.$showMessage("请先打开一个计划再进行操作")
369
+ return
370
+ }
371
+ if(!this.checkAll && this.checkes.length==0){
372
+ this.$showMessage("请先在计划中勾选你要作废的用户!")
373
+ return
374
+ }
375
+ this.$showMessage("此操作无法撤回,确定要执行作废安检单操作吗?",['confirm','cancel']).then((button)=>{
376
+ if(button=='confirm'){
377
+ let resu=new HttpResetClass().load("POST", "/api/af-safecheck/logic/UpCheckPlanItemState", {
378
+ data: {
379
+ f_operator:this.userlogin.name,
380
+ condition:this.model.condition,
381
+ switchCheckAll:true,
382
+ checkAll:this.checkAll,
383
+ param:this.checkes,
384
+ columnName: "i.id"
385
+ }
386
+ }, {resolveMsg: null, rejectMsg: null}).then((resu)=>{
387
+
388
+ //tag)
389
+ if(resu.data.code==200){
390
+ this.$showMessage("移除安检单成功! 成功移除:"+resu.data.res.up+"条"+(resu.data.res.noup>0?"有"+resu.data.res.noup+"条已经不是 ‘未检’ 状态!":""))
391
+ //this.checkes=[]
392
+ //this.checkAll=false
393
+ this.$parent.refresh()
394
+ }else{
395
+ this.$showMessage("取消安检计划失败!")
396
+ }
397
+ })
398
+ }
399
+ })
400
+ }
401
+ },
402
+ watch:{
403
+ 'selectplan.id' (){
404
+ //tag
405
+ if(this.selectplan.id){
406
+ this.$refs.paged.$refs.criteria.model.f_plan_id=this.selectplan.id
407
+ this.$refs.paged.$refs.criteria.search()
408
+ }
409
+ }
410
+ }
411
+ }
412
+ </script>
413
+
414
+ <style scoped>
415
+ .safe_p{
416
+ white-space: nowrap;
417
+ overflow: hidden;
418
+ text-overflow: ellipsis;
419
+ }
420
+ </style>