safecheck-client 4.0.1-83 → 4.0.1-85

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 (251) hide show
  1. package/.trae/.ignore +0 -0
  2. package/.vscode/settings.json +3 -0
  3. package/package.json +132 -132
  4. package/src/App.vue +31 -31
  5. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  6. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  7. package/src/components/NewDefectList/DefectListNew.vue +682 -682
  8. package/src/components/Util/RightTreeSafeDep.vue +362 -362
  9. package/src/components/android/AddPlanItem.vue +447 -447
  10. package/src/components/android/AddPlanItemYy.vue +451 -451
  11. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  12. package/src/components/android/AndroidDefectDeal.vue +1 -0
  13. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  14. package/src/components/android/DailyworkloadQuery.vue +473 -473
  15. package/src/components/android/Devices.vue +327 -327
  16. package/src/components/android/Devicesm.vue +327 -327
  17. package/src/components/android/NewCheckpaperAndroid.vue +1343 -1343
  18. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  19. package/src/components/android/PhoneRecordInfo.vue +113 -113
  20. package/src/components/android/PhoneSellInfo.vue +113 -113
  21. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  22. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  23. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  24. package/src/components/android/SafePlanItem.vue +509 -509
  25. package/src/components/android/examples/SafeListExamples.vue +296 -296
  26. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  27. package/src/components/android/recheck/Recheck.vue +402 -402
  28. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  29. package/src/components/checkplan/checkmsg.vue +459 -459
  30. package/src/components/defect/DefectList.vue +507 -507
  31. package/src/components/defect/DefectListWeixiu.vue +484 -484
  32. package/src/components/filialCircle/CircleList.vue +139 -139
  33. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  34. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  35. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  36. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  37. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  38. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  39. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  40. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  41. package/src/components/map/PersonTrack.vue +226 -226
  42. package/src/components/paper/RegionalList.vue +220 -220
  43. package/src/components/pc/AnnouncementPC.vue +524 -524
  44. package/src/components/pc/DefectList.vue +742 -742
  45. package/src/components/pc/DefectMaterialLook.vue +98 -98
  46. package/src/components/pc/DeviceChange.vue +1068 -1068
  47. package/src/components/pc/PaperDefectMain.vue +905 -905
  48. package/src/components/pc/RoleSelectorDep.vue +166 -166
  49. package/src/components/pc/SafeVisitInfo.vue +261 -261
  50. package/src/components/report/HiddenSituation.vue +165 -165
  51. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  52. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  53. package/src/components/rongcheng/DefectList.vue +560 -560
  54. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  55. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  56. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  57. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  58. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  59. package/src/components/shaoguan/DefectList.vue +473 -473
  60. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  61. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  62. package/src/components/userfile/SecurityAudit.vue +243 -243
  63. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  64. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  65. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  66. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  67. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  68. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  69. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  70. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  71. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  72. package/src/filiale/bayan/android/Edit.vue +132 -132
  73. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  74. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  75. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  76. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  77. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  78. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  79. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  80. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  81. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  82. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  83. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  84. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  85. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  86. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  87. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  88. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  89. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  90. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  91. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  92. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  93. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  94. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  95. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  96. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  97. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  98. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  99. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  100. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  101. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  102. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  103. package/src/filiale/jinhong/pc/CheckBookList.vue +393 -393
  104. package/src/filiale/jinhong/pc/PaperList.vue +853 -853
  105. package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
  106. package/src/filiale/jinhong/pc/checkPlanList.vue +420 -420
  107. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  108. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  109. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  110. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  111. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  112. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  113. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  114. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  115. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  116. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  117. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  118. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  119. package/src/filiale/libo/android/CurrentCreate.vue +1067 -1067
  120. package/src/filiale/libo/android.js +15 -15
  121. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  122. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  123. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  124. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  125. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  126. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  127. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  128. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  129. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  130. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  131. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  132. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  133. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  134. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  135. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  136. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  137. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  138. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  139. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  140. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  141. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  142. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  143. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -359
  144. package/src/filiale/qingjian/pc.js +15 -15
  145. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  146. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  147. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  148. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  149. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  150. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  151. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  152. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  153. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  154. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  155. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  156. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  157. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  158. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  159. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  160. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  161. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  162. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  163. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  164. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  165. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  166. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  167. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  168. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  169. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  170. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  171. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  172. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  173. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  174. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  175. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  176. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  177. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  178. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  179. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  180. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  181. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  182. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  183. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  184. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  185. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  186. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  187. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  188. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  189. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  190. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  191. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  192. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  193. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  194. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  195. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  196. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  197. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  198. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  199. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  200. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  201. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  202. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  203. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  204. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  205. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  206. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  207. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  208. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  209. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  210. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  211. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  212. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  213. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  214. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  215. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  216. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  217. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  218. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  219. package/src/filiale/xinliansihui/android/AndroidDefectDeal.vue +701 -0
  220. package/src/filiale/xinliansihui/android/AppInstallationMaterial.vue +866 -0
  221. package/src/filiale/xinliansihui/android.js +9 -0
  222. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  223. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  224. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  225. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  226. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  227. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  228. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  229. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  230. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  231. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  232. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  233. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  234. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  235. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  236. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  237. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  238. package/src/filiale/yunchengminsheng/android.js +15 -15
  239. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  240. package/src/filiale/yunchengminsheng/pc.js +15 -15
  241. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  242. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  243. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  244. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  245. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  246. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  247. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  248. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  249. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  250. package/src/main.js +33 -32
  251. package/src/safecheck.js +924 -924
@@ -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>