safecheck-client 3.0.30-62-t11 → 3.0.30-62-t12

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 (244) hide show
  1. package/examples/SafePlan/comp.js +1527 -1527
  2. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  3. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  4. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  5. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  6. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  7. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  8. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  9. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  10. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  11. package/package.json +1 -1
  12. package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
  13. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  14. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  15. package/src/components/checkplan/CheckDetail.vue +205 -205
  16. package/src/components/checkplan/SelectCheckPlan.vue +311 -311
  17. package/src/components/createcheckplan/PlanUersList.vue +137 -137
  18. package/src/components/defect/DefectPaper.vue +764 -764
  19. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  20. package/src/components/inspections/InspectionList.vue +476 -476
  21. package/src/components/inspections/InspectionLists.vue +478 -478
  22. package/src/components/inspections/InspectionListss.vue +477 -477
  23. package/src/components/noplan/NoPlanSearchUser.vue +300 -300
  24. package/src/components/olddata/OldPaperList.vue +340 -340
  25. package/src/components/paper/PaperList.vue +790 -790
  26. package/src/components/paper/filialeCheckInfo.vue +111 -111
  27. package/src/components/pc/CheckNoDetail.vue +209 -209
  28. package/src/components/pc/DefectDeal.vue +997 -997
  29. package/src/components/pc/NewCheckpaper.vue +1957 -1957
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +1 -1
  32. package/src/components/pc/PaperEdit.vue +151 -151
  33. package/src/components/pc/PaperVisitMain.vue +179 -179
  34. package/src/components/pc/SafeVisitHistory.vue +208 -208
  35. package/src/components/pc/SafecheckDeviceList.vue +260 -260
  36. package/src/components/pc/SecurityCheckLedger.vue +133 -133
  37. package/src/components/pc/SelectCheckNoPlan.vue +278 -278
  38. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
  39. package/src/components/planmanage/checkPlanList.vue +369 -369
  40. package/src/components/planmanage/checkUserList.vue +773 -773
  41. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  42. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  43. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  44. package/src/components/report/CheckPlanAreaList.vue +505 -505
  45. package/src/components/report/CheckPlanUserList.vue +216 -216
  46. package/src/components/report/NoCheckplanSafecheck.vue +212 -212
  47. package/src/components/rongcheng/CheckSearchArea.vue +703 -703
  48. package/src/components/rongcheng/CheckSearchUser.vue +936 -936
  49. package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
  50. package/src/components/rongcheng/CheckUserList.vue +205 -205
  51. package/src/components/rongcheng/DefectPaper.vue +676 -676
  52. package/src/components/rongcheng/PaperListAJ.vue +434 -434
  53. package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
  54. package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
  55. package/src/components/rongcheng/PaperListSQ.vue +444 -444
  56. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
  57. package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
  58. package/src/components/safecheckNew/PaperList.vue +785 -785
  59. package/src/components/shaoguan/DefectPaper.vue +217 -217
  60. package/src/components/shaoguan/PaperList.vue +466 -466
  61. package/src/components/userfile/UserInfoAudit.vue +316 -316
  62. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  63. package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
  64. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  65. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
  66. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  67. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  68. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
  69. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  70. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
  71. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  72. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  73. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  74. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  75. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  76. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  77. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  78. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  79. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  80. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  81. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  82. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  83. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  84. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  85. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  86. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  87. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  88. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  89. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  90. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  91. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  92. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  93. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  94. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  95. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  96. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  97. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  98. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  99. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  100. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  101. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  102. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  103. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  104. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  105. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  106. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  107. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  108. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  109. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  110. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  111. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  112. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  113. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  114. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  115. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  116. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  118. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  119. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  120. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  121. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  122. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  123. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  124. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  125. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  126. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  127. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  128. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  129. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  130. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  131. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  132. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  133. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  134. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  135. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  136. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  137. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  138. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  139. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  140. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  141. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  142. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  143. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  144. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  145. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  146. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  147. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  148. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  149. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  150. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  151. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  152. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  153. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  154. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  155. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  156. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  157. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  158. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  159. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  160. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  161. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  162. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  163. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  164. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  165. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  166. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  167. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  168. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  169. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  170. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  171. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  172. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  173. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  174. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  175. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  176. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  177. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  178. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  179. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  180. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  181. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  182. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  183. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  184. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  185. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  186. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  187. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  188. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  189. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  190. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  191. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  192. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  193. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  194. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  195. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  196. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  197. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  198. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  199. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  200. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  201. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  202. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  203. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  204. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  205. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  206. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  207. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  208. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  209. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  210. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  211. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  212. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  213. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  214. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  215. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  216. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  217. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  218. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  219. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  220. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  221. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  222. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  223. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  224. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  225. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  226. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  227. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  228. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  229. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  230. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  231. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  232. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  233. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  234. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  235. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  236. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  237. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  238. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  239. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  240. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  241. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  242. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  243. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  244. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,557 +1,557 @@
1
- <template>
2
- <div class="flex">
3
- <section>
4
- <div class="basic-main row" style="height: 100%">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-3 form-group form-input-group" style="width: 30%;">
10
- <role-selector-safe
11
- role-name="安检员"
12
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
13
- @re-res="$parent.$parent.getRes"
14
- :value.sync="model.f_checker_id"
15
- v-model="model.f_checker_id"
16
- condition="f_checker = '{}'">
17
- </role-selector-safe>
18
- </div>
19
- <div class="form-group col-sm-3 form-input-group" style="width: 20%;">
20
- <label class="font_normal_body">用户类型</label>
21
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
22
- :value-single="true" style="width: 60%"
23
- class="select_list select"
24
- :options='$parent.$parent.user_types' placeholder='用户类型'
25
- close-on-select
26
- condition="f_user_type = '{}'"></v-select>
27
- </div>
28
- <div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
29
- <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
30
- :field="$parent.$parent.excelHeaders"
31
- :defaultfield="$parent.$parent.defaultPrint"
32
- :titletable="'安检员考核'" :starthead="$parent.$parent.getstart"
33
- ></print-data-safe>
34
- <export-excel :data="$parent.$parent.searchData"
35
- :field="$parent.$parent.excelHeaders"
36
- sqlurl="api/af-safecheck/logic/SafeExportExcel"
37
- sql-name="SafecheckSummary"
38
- :template-name="$parent.$parent.excelTitle">
39
- </export-excel>
40
-
41
- <button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
42
- </div>
43
- </div>
44
- <div class="row">
45
- <div class="form-group col-sm-4">
46
- <label class="font_normal_body">计划开始:</label>
47
- <datepicker
48
- placeholder='计划开始'
49
- style="width:60%"
50
- :disabled-days-of-week="[]"
51
- :format="'yyyy-MM-dd'"
52
- :show-rest-button="reset"
53
- :value.sync="model.start_time"
54
- v-model="model.start_time"
55
- condition="tcp.f_create_time >= '{} 00:00:00'">
56
- </datepicker>
57
- </div>
58
- <div class="form-group col-sm-4">
59
- <label class="font_normal_body">计划结束:</label>
60
- <datepicker
61
- placeholder='计划结束'
62
- :disabled-days-of-week="[]"
63
- style="width:60%"
64
- :format="'yyyy-MM-dd'"
65
- :show-rest-button="reset"
66
- :value.sync="model.end_time"
67
- v-model="model.end_time"
68
- condition="tcp.f_create_time <= '{} 23:59:59'">
69
- </datepicker>
70
- </div>
71
- </div>
72
- <div class="row">
73
- <div class="col-sm-4 form-group">
74
- <label for="startDate" class="font_normal_body">安检开始:</label>
75
- <datepicker id="startDate" placeholder="安检开始"
76
- v-model="model.checkstart"
77
- :value.sync="model.checkstart"
78
- style="width: 60%;"
79
- :disabled-days-of-Week="[]"
80
- :format="'yyyy-MM-dd 00:00:00'"
81
- condition="tcpi.f_last_check_date >= '{}'"
82
- :show-reset-button="reset">
83
- </datepicker>
84
- </div>
85
- <div class="col-sm-4 form-group">
86
- <label for="endDate" class="font_normal_body">安检结束:</label>
87
- <datepicker id="endDate" placeholder="安检结束"
88
- v-model="model.checkend"
89
- :value.sync="model.checkend"
90
- :disabled-days-of-Week="[]"
91
- style="width: 60%;"
92
- condition="tcpi.f_last_check_date <= '{}'"
93
- :format="'yyyy-MM-dd 23:59:59'"
94
- :show-reset-button="reset">
95
- </datepicker>
96
- </div>
97
- </div>
98
- </div>
99
- </criteria>
100
- <data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
101
- <template partial='head'>
102
- <tr>
103
- <th>
104
- <nobr>序号</nobr>
105
- </th>
106
- <th>
107
- <nobr>安检员</nobr>
108
- </th>
109
- <th>
110
- <nobr>计划安检总户数</nobr>
111
- </th>
112
- <th>
113
- <nobr>未检户数</nobr>
114
- </th>
115
- <th>
116
- <nobr>已检户数</nobr>
117
- </th>
118
- <th>
119
- <nobr>入户户数</nobr>
120
- </th>
121
- <th>
122
- <nobr>三次到访不遇户数</nobr>
123
- </th>
124
- <th>
125
- <nobr>拒检户数</nobr>
126
- </th>
127
- <th>
128
- <nobr>安检率</nobr>
129
- </th>
130
- <th>
131
- <nobr>申请安检户数</nobr>
132
- </th>
133
- <th>
134
- <nobr>总入户数</nobr>
135
- </th>
136
- </tr>
137
- </template>
138
- <template partial='body'>
139
-
140
- <td style="text-align: center">{{ $index + 1 }}</td>
141
- <td style="text-align: center">{{ row.checker }}</td>
142
- <td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'1')">{{ row.data1 }}</a></td>
143
- <td style="text-align: center">{{ row.data2 }}</td>
144
- <td style="text-align: center">{{ row.data3 }}</td>
145
- <td style="text-align: center">{{ row.data4 }}</td>
146
- <td style="text-align: center">{{ row.data5 }}</td>
147
- <td style="text-align: center">{{ row.data6 }}</td>
148
- <td style="text-align: center">{{ row.data7 }}</td>
149
- <td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'0')">{{ row.data8 }}</a></td>
150
- <td style="text-align: center">{{ row.data9 }}</td>
151
- </template>
152
- <template partial="foot">
153
- <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
154
- <td style="text-align: center">{{ model.sums.data1 }}</td>
155
- <td style="text-align: center">{{ model.sums.data2 }}</td>
156
- <td style="text-align: center">{{ model.sums.data3 }}</td>
157
- <td style="text-align: center">{{ model.sums.data4 }}</td>
158
- <td style="text-align: center">{{ model.sums.data5 }}</td>
159
- <td style="text-align: center">{{ model.sums.data6 }}</td>
160
- <td style="text-align: center">{{ (model.sums.data3/model.sums.data1 * 100.0).toFixed(2)}}%</td>
161
- <td style="text-align: center">{{ model.sums.data8 }}</td>
162
- <td style="text-align: center">{{ model.sums.data9 }}</td>
163
- </template>
164
- </data-grid>
165
- </criteria-paged>
166
- </div>
167
- </section>
168
- <modal :show.sync="modal_show" backdrop="false"
169
- class="allQuotaRecordModalShow" width="80%">
170
- <header slot="modal-header" class="modal-header" style="text-align: center">
171
- </header>
172
- <article slot="modal-body" class="modal-body">
173
- <criteria-paged :model="modalModel" v-ref:paged2>
174
- <criteria partial='criteria' class="search_area" v-ref:criteria2>
175
- <div partial>
176
- <div class="row">
177
- <div class="form-group col-sm-4">
178
- <label class="font_normal_body">开始时间</label>
179
- <datepicker
180
- placeholder='请选择'
181
- style="width:60%"
182
- :disabled-days-of-week="[]"
183
- :format="'yyyy-MM-dd'"
184
- :show-rest-button="reset"
185
- :value.sync="$parent.$parent.modalSearchData.start_time"
186
- v-model="$parent.$parent.modalSearchData.start_time"
187
- >
188
- </datepicker>
189
- </div>
190
- <div class="form-group col-sm-4">
191
- <label class="font_normal_body">结束时间</label>
192
- <datepicker
193
- placeholder='请选择'
194
- :disabled-days-of-week="[]"
195
- style="width:60%"
196
- :format="'yyyy-MM-dd'"
197
- :show-rest-button="reset"
198
- :value.sync="$parent.$parent.$parent.modalSearchData.end_time"
199
- v-model="$parent.$parent.$parent.modalSearchData.end_time">
200
- </datepicker>
201
- </div>
202
- <div class="col-sm-4 form-group">
203
- <label class="font_normal_body">用户编号</label>
204
- <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_userinfo_code">
205
- </div>
206
- <div class="col-sm-4 form-group">
207
- <label class="font_normal_body">用户名称</label>
208
- <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_name">
209
- </div>
210
- <div class="col-sm-4 form-group">
211
- <label class="font_normal_body">用户地址</label>
212
- <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_address">
213
- </div>
214
- <div class="col-sm-4 form-group">
215
- <label class="font_normal_body">用户电话</label>
216
- <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_phone">
217
- </div>
218
- <div class="col-sm-4 form-group">
219
- <label class="font_normal_body">小区</label>
220
- <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_residential_area">
221
- </div>
222
- <div class="col-sm-4 form-group">
223
- <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
224
- <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_checker">
225
- </div>
226
- <div class="col-sm-4 form-group">
227
- <label class="font_normal_body">安检状态</label>
228
- <v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_last_check_state" v-model='$parent.$parent.$parent.modalSearchData.f_last_check_state'
229
- :value-single="true" style="width: 60%"
230
- class="select_list select"
231
- :options='$parent.$parent.$parent.last_check_states' placeholder='安检状态'
232
- close-on-select
233
- ></v-select>
234
- </div>
235
- <div class="form-group col-sm-4">
236
- <label class="font_normal_body">用户类型</label>
237
- <v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_user_type" v-model='$parent.$parent.$parent.modalSearchData.f_user_type'
238
- :value-single="true" style="width: 60%"
239
- class="select_list select"
240
- :options='$parent.$parent.$parent.user_types' placeholder='用户类型'
241
- close-on-select
242
- ></v-select>
243
- </div>
244
- <div class="col-sm-4 form-group">
245
- <label class="font_normal_body">到访次数</label>
246
- <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_check_version">
247
- </div>
248
- <div style="float: right">
249
- <button class="button_spacing button_search" @click="$parent.$parent.$parent.modalSearch()">查询</button>
250
- <export-excel-safe :data="$parent.$parent.$parent.modalSearchExcelData"
251
- :field="$parent.$parent.$parent.modalExcelHeaders"
252
- progress="safeGetExportProgress"
253
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="safe_singleTable_OrderBy" template-name='安检情况明细'
254
- :choose-col="true"></export-excel-safe>
255
- </div>
256
- </div>
257
- </div>
258
- </criteria>
259
- <data-grid class="list_area table_sy" :model="$parent.$parent.modalModel" v-ref:modalgrid partial='list'>
260
- <template partial='head'>
261
- <th>
262
- <nobr>用户编号</nobr>
263
- </th>
264
- <th>
265
- <nobr>用户名称</nobr>
266
- </th>
267
- <th>
268
- <nobr>小区</nobr>
269
- </th>
270
- <th>
271
- <nobr>地址</nobr>
272
- </th>
273
- <th>
274
- <nobr>客户电话</nobr>
275
- </th>
276
- <th>
277
- <nobr>到访不遇次数</nobr>
278
- </th>
279
- <th>
280
- <nobr>安检时间</nobr>
281
- </th>
282
- <th>
283
- <nobr>安检员</nobr>
284
- </th>
285
- <th>
286
- <nobr>计划名称</nobr>
287
- </th>
288
- <th>
289
- <nobr>用户类型</nobr>
290
- </th>
291
- <th>
292
- <nobr>安检状态</nobr>
293
- </th>
294
- </template>
295
- <template partial='body'>
296
- <td style="text-align:center">{{row.f_userinfo_code}}</td>
297
- <td style="text-align:center">{{row.f_user_name }}</td>
298
- <td style="text-align:center">{{row.f_residential_area}}</td>
299
- <td style="text-align:center">{{row.f_address}}</td>
300
- <td style="text-align:center">{{row.f_user_phone}}</td>
301
- <td style="text-align:center">{{row.f_check_version}}</td>
302
- <td style="text-align:center">{{row.f_last_check_date}}</td>
303
- <td style="text-align:center">{{row.f_checker}}</td>
304
- <td style="text-align:center">{{row.f_plan_name}}</td>
305
- <td style="text-align:center">{{row.f_user_type}}</td>
306
- <td style="text-align:center">{{row.f_last_check_state}}</td>
307
- </template>
308
- </data-grid>
309
- </criteria-paged>
310
- </article>
311
- <footer slot="modal-footer" class="modal-footer">
312
- <button type="button" class="btn btn-default" @click='modal_show = false'>关闭</button>
313
- </footer>
314
- </modal>
315
- </div>
316
- </template>
317
- <script>
318
- import {PagedList, HttpResetClass} from 'vue-client'
319
- import * as Util from '../../Util'
320
-
321
- export default {
322
- title: '安检员考核',
323
- data () {
324
- let model = new PagedList('api/af-safecheck/sql/SafecheckSummary', 20, {
325
- f_filiale_id: 'this.f_filiale_id'
326
- },{data1:'',data2:'',data3:'',data4:'',data5:'',data6:'',data8:'',data9:''})
327
- model.f_filiale_id = `('${this.$login.f.orgid}')`
328
- return {
329
- modal_show:false,
330
- modalModel: new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 15, {
331
- items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
332
- tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
333
- orderitem: '"1"'
334
- }),
335
- modalModel2: new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 15, {
336
- items: '"*,f_offsite_time as f_last_check_date,f_checker_name as f_checker,f_check_type as f_user_type,f_entry_status as f_last_check_state"',
337
- tablename: '"t_check_paper"',
338
- orderitem: '"1"'
339
- }),
340
- modalSearchData:{},
341
- modalSearchExcelData:{
342
- items: "tcpi.*,tcp.f_checker,tcp.f_plan_name",
343
- tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
344
- orderitem: "f_userinfo_code"
345
- },
346
- modalExcelHeaders:{
347
- 'f_userinfo_code': '用户编号',
348
- 'f_user_name': '用户名称',
349
- 'f_residential_area': '小区',
350
- 'f_address': '地址',
351
- 'f_user_phone': '客户电话',
352
- 'f_check_version': '到访不遇次数',
353
- 'f_last_check_date': '安检时间',
354
- 'f_checker': '安检员',
355
- 'f_plan_name':"计划名称",
356
- 'f_user_type': '用户类型',
357
- 'f_last_check_state': '安检状态'
358
- },
359
- type:'',
360
- modalRow:{},
361
- last_check_states:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'拒检',value:'拒检'},{label:'到访不遇',value:'到访不遇'}],
362
- user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
363
- f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
364
- model: model,
365
- source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
366
- userid: this.$login.f.id,
367
- orgname: '',
368
- // checker:{},
369
- searchData: {
370
- condition: {
371
- condition1 : '1=1',
372
- condition2 : `1=1 and f_entry_status = '入户'`
373
- },
374
- f_filiale_id: ''
375
- },
376
- print_model:{},
377
- excelHeaders: {
378
- 'checker': '安检员',
379
- 'data1': '计划安检总户数',
380
- 'data2': '未检户数',
381
- 'data3': '已检户数',
382
- 'data4': '入户户数',
383
- 'data5': '三次到访不遇户数',
384
- 'data6': '拒检户数',
385
- 'data7': '安检率',
386
- 'data8': '申请安检户数',
387
- 'data9': '总入户数'
388
- },
389
- defaultPrint: ['checker','data1','data2','data3','data4','data5','data6','data7','data8','data9'],
390
-
391
- }
392
- },
393
- methods: {
394
- async modalShow (row,type) {
395
- this.type = type
396
- this.modalRow = row
397
- this.modal_show = true
398
- this.modalSearchData = {}
399
- await this.modalSearch(row)
400
- },
401
- modalSearch () {
402
- this.modalModel = new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 15, {
403
- items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
404
- tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
405
- orderitem: '"1"'
406
- })
407
- let modalCondition = '1=1'
408
- if (this.type == '0') {
409
- modalCondition = this.$refs.paged.model.condition.condition2
410
- modalCondition += ` and f_checker_name = '${this.modalRow.checker}'`
411
- modalCondition += ` and f_no_checkplan='无计划安检'`
412
- if (this.modalSearchData.f_user_name){
413
- modalCondition += ` and f_user_name = '${this.modalSearchData.f_user_name}'`
414
- }
415
- if (this.modalSearchData.f_residential_area){
416
- modalCondition += ` and f_residential_area = '${this.modalSearchData.f_residential_area}'`
417
- }
418
- if (this.modalSearchData.f_user_type){
419
- modalCondition += ` and f_check_type = '${this.modalSearchData.f_user_type}'`
420
- }
421
- if (this.modalSearchData.start_time){
422
- modalCondition += ` and f_offsite_time >= '${this.modalSearchData.start_time}'`
423
- }
424
- if (this.modalSearchData.end_time){
425
- modalCondition += ` and f_offsite_time <= '${this.modalSearchData.end_time}'`
426
- }
427
- if (this.modalSearchData.f_userinfo_code){
428
- modalCondition += ` and f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
429
- }
430
- if (this.modalSearchData.f_address){
431
- modalCondition += ` and f_address = '${this.modalSearchData.f_address}'`
432
- }
433
- if (this.modalSearchData.f_user_phone){
434
- modalCondition += ` and f_user_phone = '${this.modalSearchData.f_user_phone}'`
435
- }
436
- if (this.modalSearchData.f_checker){
437
- modalCondition += ` and f_checker_name = '${this.modalSearchData.f_checker}'`
438
- }
439
- this.modalModel = this.modalModel2
440
- this.modalModel.search(modalCondition, this.modalModel)
441
- }else {
442
- modalCondition = this.$refs.paged.model.condition.condition1
443
- modalCondition += ` and f_checker = '${this.modalRow.checker}'`
444
- if (this.modalSearchData.f_last_check_state){
445
- modalCondition += ` and tcpi.f_last_check_state = '${this.modalSearchData.f_last_check_state}'`
446
- }
447
- if (this.modalSearchData.f_residential_area){
448
- modalCondition += ` and f_residential_area = '${this.modalSearchData.f_residential_area}'`
449
- }
450
- if (this.modalSearchData.f_user_name){
451
- modalCondition += ` and tcpi.f_user_name = '${this.modalSearchData.f_user_name}'`
452
- }
453
- if (this.modalSearchData.f_user_type){
454
- modalCondition += ` and tcpi.f_user_type = '${this.modalSearchData.f_user_type}'`
455
- }
456
- if (this.modalSearchData.start_time){
457
- modalCondition += ` and tcp.f_create_time >= '${this.modalSearchData.start_time}'`
458
- }
459
- if (this.modalSearchData.end_time){
460
- modalCondition += ` and tcp.f_create_time <= '${this.modalSearchData.end_time}'`
461
- }
462
- if (this.modalSearchData.f_userinfo_code){
463
- modalCondition += ` and tcpi.f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
464
- }
465
- if (this.modalSearchData.f_address){
466
- modalCondition += ` and tcpi.f_address = '${this.modalSearchData.f_address}'`
467
- }
468
- if (this.modalSearchData.f_user_phone){
469
- modalCondition += ` and tcpi.f_user_phone = '${this.modalSearchData.f_user_phone}'`
470
- }
471
- if (this.modalSearchData.f_checker){
472
- modalCondition += ` and tcp.f_checker = '${this.modalSearchData.f_checker}'`
473
- }
474
- if (this.modalSearchData.f_check_version){
475
- modalCondition += ` and tcpi.f_check_version = '${this.modalSearchData.f_check_version}'`
476
- }
477
- this.modalModel.search(modalCondition, this.modalModel)
478
- }
479
- this.modalSearchExcelData.condition = modalCondition
480
- },
481
- getRes (obj) {
482
- this.f_filiale_id = this.$login.convertToIn(obj.resids)
483
- this.orgname = obj.res[0]
484
- this.$set('orgname', obj.res[0])
485
- },
486
- async selfSearch (args) {
487
- if (!this.f_filiale_id) {
488
- return this.$showMessage("请选择公司进行查询!!!")
489
- }
490
- this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
491
- let condition = {
492
- condition1 : args.condition,
493
- condition2 : `1=1 and f_entry_status = '入户'`
494
- }
495
- if (args.model.f_checker_id){
496
- condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
497
- }
498
- if (args.model.f_user_type){
499
- condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
500
- }
501
- if (args.model.checkstart){
502
- condition.condition2 += ` and f_offsite_time >= '${args.model.checkstart}'`
503
- }
504
- if (args.model.checkend){
505
- condition.condition2 += ` and f_offsite_time <= '${args.model.checkend}'`
506
- }
507
- this.searchData.f_filiale_id = this.f_filiale_id //导出
508
- this.searchData.condition=args.condition //导出
509
- await this.model.search(condition, args.model)
510
- this.searchData.condition = condition
511
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
512
- this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
513
- this.print_model.rows.push({
514
- checker: '合计',
515
- data1: this.sumsmodel.data1,
516
- data2: this.sumsmodel.data2,
517
- data3: this.sumsmodel.data3,
518
- data4: this.sumsmodel.data4,
519
- data5: this.sumsmodel.data5,
520
- data6: this.sumsmodel.data6,
521
- data7: `${(this.sumsmodel.data3/this.sumsmodel.data1*100.0).toFixed(2)}%`,
522
- data8: this.sumsmodel.data8,
523
- data9: this.sumsmodel.data9
524
- })
525
- this.print_model.totalPage = 0
526
- }
527
- },
528
- computed: {
529
- excelTitle() {
530
- return `${this.orgname }安检员考核`
531
- },
532
- getstart() {
533
- return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
534
- },
535
- },
536
- watch: {
537
- },
538
- ready () {
539
- this.orgname = this.$login.f.orgs
540
- //tag)
541
- //tag
542
- this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
543
- this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
544
-
545
- }
546
-
547
- }
548
- </script>
549
-
550
- <style lang="less" >
551
- .tableinfo {
552
- text-align: center;
553
- background-color: #00A3F0;
554
- color: #0c2e4d;
555
- font-size: 26px;
556
- }
557
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <section>
4
+ <div class="basic-main row" style="height: 100%">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-3 form-group form-input-group" style="width: 30%;">
10
+ <role-selector-safe
11
+ role-name="安检员"
12
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
13
+ @re-res="$parent.$parent.getRes"
14
+ :value.sync="model.f_checker_id"
15
+ v-model="model.f_checker_id"
16
+ condition="f_checker = '{}'">
17
+ </role-selector-safe>
18
+ </div>
19
+ <div class="form-group col-sm-3 form-input-group" style="width: 20%;">
20
+ <label class="font_normal_body">用户类型</label>
21
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
22
+ :value-single="true" style="width: 60%"
23
+ class="select_list select"
24
+ :options='$parent.$parent.user_types' placeholder='用户类型'
25
+ close-on-select
26
+ condition="f_user_type = '{}'"></v-select>
27
+ </div>
28
+ <div class="col-sm-3 form-group form-input-group" style="width: 20%;float: right;">
29
+ <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
30
+ :field="$parent.$parent.excelHeaders"
31
+ :defaultfield="$parent.$parent.defaultPrint"
32
+ :titletable="'安检员考核'" :starthead="$parent.$parent.getstart"
33
+ ></print-data-safe>
34
+ <export-excel :data="$parent.$parent.searchData"
35
+ :field="$parent.$parent.excelHeaders"
36
+ sqlurl="api/af-safecheck/logic/exportfile"
37
+ sql-name="SafecheckSummary"
38
+ :template-name="$parent.$parent.excelTitle">
39
+ </export-excel>
40
+
41
+ <button type="button" name="button" class="button_search" style="margin-left: 9px" @click="search">查询</button>
42
+ </div>
43
+ </div>
44
+ <div class="row">
45
+ <div class="form-group col-sm-4">
46
+ <label class="font_normal_body">计划开始:</label>
47
+ <datepicker
48
+ placeholder='计划开始'
49
+ style="width:60%"
50
+ :disabled-days-of-week="[]"
51
+ :format="'yyyy-MM-dd'"
52
+ :show-rest-button="reset"
53
+ :value.sync="model.start_time"
54
+ v-model="model.start_time"
55
+ condition="tcp.f_create_time >= '{} 00:00:00'">
56
+ </datepicker>
57
+ </div>
58
+ <div class="form-group col-sm-4">
59
+ <label class="font_normal_body">计划结束:</label>
60
+ <datepicker
61
+ placeholder='计划结束'
62
+ :disabled-days-of-week="[]"
63
+ style="width:60%"
64
+ :format="'yyyy-MM-dd'"
65
+ :show-rest-button="reset"
66
+ :value.sync="model.end_time"
67
+ v-model="model.end_time"
68
+ condition="tcp.f_create_time <= '{} 23:59:59'">
69
+ </datepicker>
70
+ </div>
71
+ </div>
72
+ <div class="row">
73
+ <div class="col-sm-4 form-group">
74
+ <label for="startDate" class="font_normal_body">安检开始:</label>
75
+ <datepicker id="startDate" placeholder="安检开始"
76
+ v-model="model.checkstart"
77
+ :value.sync="model.checkstart"
78
+ style="width: 60%;"
79
+ :disabled-days-of-Week="[]"
80
+ :format="'yyyy-MM-dd 00:00:00'"
81
+ condition="tcpi.f_last_check_date >= '{}'"
82
+ :show-reset-button="reset">
83
+ </datepicker>
84
+ </div>
85
+ <div class="col-sm-4 form-group">
86
+ <label for="endDate" class="font_normal_body">安检结束:</label>
87
+ <datepicker id="endDate" placeholder="安检结束"
88
+ v-model="model.checkend"
89
+ :value.sync="model.checkend"
90
+ :disabled-days-of-Week="[]"
91
+ style="width: 60%;"
92
+ condition="tcpi.f_last_check_date <= '{}'"
93
+ :format="'yyyy-MM-dd 23:59:59'"
94
+ :show-reset-button="reset">
95
+ </datepicker>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </criteria>
100
+ <data-grid :model="model" partial='list' class="list_area table_sy" id="tongchuan" v-ref:grid >
101
+ <template partial='head'>
102
+ <tr>
103
+ <th>
104
+ <nobr>序号</nobr>
105
+ </th>
106
+ <th>
107
+ <nobr>安检员</nobr>
108
+ </th>
109
+ <th>
110
+ <nobr>计划安检总户数</nobr>
111
+ </th>
112
+ <th>
113
+ <nobr>未检户数</nobr>
114
+ </th>
115
+ <th>
116
+ <nobr>已检户数</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>入户户数</nobr>
120
+ </th>
121
+ <th>
122
+ <nobr>三次到访不遇户数</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>拒检户数</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>安检率</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>申请安检户数</nobr>
132
+ </th>
133
+ <th>
134
+ <nobr>总入户数</nobr>
135
+ </th>
136
+ </tr>
137
+ </template>
138
+ <template partial='body'>
139
+
140
+ <td style="text-align: center">{{ $index + 1 }}</td>
141
+ <td style="text-align: center">{{ row.checker }}</td>
142
+ <td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'1')">{{ row.data1 }}</a></td>
143
+ <td style="text-align: center">{{ row.data2 }}</td>
144
+ <td style="text-align: center">{{ row.data3 }}</td>
145
+ <td style="text-align: center">{{ row.data4 }}</td>
146
+ <td style="text-align: center">{{ row.data5 }}</td>
147
+ <td style="text-align: center">{{ row.data6 }}</td>
148
+ <td style="text-align: center">{{ row.data7 }}</td>
149
+ <td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'0')">{{ row.data8 }}</a></td>
150
+ <td style="text-align: center">{{ row.data9 }}</td>
151
+ </template>
152
+ <template partial="foot">
153
+ <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
154
+ <td style="text-align: center">{{ model.sums.data1 }}</td>
155
+ <td style="text-align: center">{{ model.sums.data2 }}</td>
156
+ <td style="text-align: center">{{ model.sums.data3 }}</td>
157
+ <td style="text-align: center">{{ model.sums.data4 }}</td>
158
+ <td style="text-align: center">{{ model.sums.data5 }}</td>
159
+ <td style="text-align: center">{{ model.sums.data6 }}</td>
160
+ <td style="text-align: center">{{ (model.sums.data3/model.sums.data1 * 100.0).toFixed(2)}}%</td>
161
+ <td style="text-align: center">{{ model.sums.data8 }}</td>
162
+ <td style="text-align: center">{{ model.sums.data9 }}</td>
163
+ </template>
164
+ </data-grid>
165
+ </criteria-paged>
166
+ </div>
167
+ </section>
168
+ <modal :show.sync="modal_show" backdrop="false"
169
+ class="allQuotaRecordModalShow" width="80%">
170
+ <header slot="modal-header" class="modal-header" style="text-align: center">
171
+ </header>
172
+ <article slot="modal-body" class="modal-body">
173
+ <criteria-paged :model="modalModel" v-ref:paged2>
174
+ <criteria partial='criteria' class="search_area" v-ref:criteria2>
175
+ <div partial>
176
+ <div class="row">
177
+ <div class="form-group col-sm-4">
178
+ <label class="font_normal_body">开始时间</label>
179
+ <datepicker
180
+ placeholder='请选择'
181
+ style="width:60%"
182
+ :disabled-days-of-week="[]"
183
+ :format="'yyyy-MM-dd'"
184
+ :show-rest-button="reset"
185
+ :value.sync="$parent.$parent.modalSearchData.start_time"
186
+ v-model="$parent.$parent.modalSearchData.start_time"
187
+ >
188
+ </datepicker>
189
+ </div>
190
+ <div class="form-group col-sm-4">
191
+ <label class="font_normal_body">结束时间</label>
192
+ <datepicker
193
+ placeholder='请选择'
194
+ :disabled-days-of-week="[]"
195
+ style="width:60%"
196
+ :format="'yyyy-MM-dd'"
197
+ :show-rest-button="reset"
198
+ :value.sync="$parent.$parent.$parent.modalSearchData.end_time"
199
+ v-model="$parent.$parent.$parent.modalSearchData.end_time">
200
+ </datepicker>
201
+ </div>
202
+ <div class="col-sm-4 form-group">
203
+ <label class="font_normal_body">用户编号</label>
204
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_userinfo_code">
205
+ </div>
206
+ <div class="col-sm-4 form-group">
207
+ <label class="font_normal_body">用户名称</label>
208
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_name">
209
+ </div>
210
+ <div class="col-sm-4 form-group">
211
+ <label class="font_normal_body">用户地址</label>
212
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_address">
213
+ </div>
214
+ <div class="col-sm-4 form-group">
215
+ <label class="font_normal_body">用户电话</label>
216
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_phone">
217
+ </div>
218
+ <div class="col-sm-4 form-group">
219
+ <label class="font_normal_body">小区</label>
220
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_residential_area">
221
+ </div>
222
+ <div class="col-sm-4 form-group">
223
+ <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
224
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_checker">
225
+ </div>
226
+ <div class="col-sm-4 form-group">
227
+ <label class="font_normal_body">安检状态</label>
228
+ <v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_last_check_state" v-model='$parent.$parent.$parent.modalSearchData.f_last_check_state'
229
+ :value-single="true" style="width: 60%"
230
+ class="select_list select"
231
+ :options='$parent.$parent.$parent.last_check_states' placeholder='安检状态'
232
+ close-on-select
233
+ ></v-select>
234
+ </div>
235
+ <div class="form-group col-sm-4">
236
+ <label class="font_normal_body">用户类型</label>
237
+ <v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_user_type" v-model='$parent.$parent.$parent.modalSearchData.f_user_type'
238
+ :value-single="true" style="width: 60%"
239
+ class="select_list select"
240
+ :options='$parent.$parent.$parent.user_types' placeholder='用户类型'
241
+ close-on-select
242
+ ></v-select>
243
+ </div>
244
+ <div class="col-sm-4 form-group">
245
+ <label class="font_normal_body">到访次数</label>
246
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_check_version">
247
+ </div>
248
+ <div style="float: right">
249
+ <button class="button_spacing button_search" @click="$parent.$parent.$parent.modalSearch()">查询</button>
250
+ <export-excel-safe :data="$parent.$parent.$parent.modalSearchExcelData"
251
+ :field="$parent.$parent.$parent.modalExcelHeaders"
252
+ progress="safeGetExportProgress"
253
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="safe_singleTable_OrderBy" template-name='安检情况明细'
254
+ :choose-col="true"></export-excel-safe>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ </criteria>
259
+ <data-grid class="list_area table_sy" :model="$parent.$parent.modalModel" v-ref:modalgrid partial='list'>
260
+ <template partial='head'>
261
+ <th>
262
+ <nobr>用户编号</nobr>
263
+ </th>
264
+ <th>
265
+ <nobr>用户名称</nobr>
266
+ </th>
267
+ <th>
268
+ <nobr>小区</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>地址</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>客户电话</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>到访不遇次数</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>安检时间</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>安检员</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>计划名称</nobr>
287
+ </th>
288
+ <th>
289
+ <nobr>用户类型</nobr>
290
+ </th>
291
+ <th>
292
+ <nobr>安检状态</nobr>
293
+ </th>
294
+ </template>
295
+ <template partial='body'>
296
+ <td style="text-align:center">{{row.f_userinfo_code}}</td>
297
+ <td style="text-align:center">{{row.f_user_name }}</td>
298
+ <td style="text-align:center">{{row.f_residential_area}}</td>
299
+ <td style="text-align:center">{{row.f_address}}</td>
300
+ <td style="text-align:center">{{row.f_user_phone}}</td>
301
+ <td style="text-align:center">{{row.f_check_version}}</td>
302
+ <td style="text-align:center">{{row.f_last_check_date}}</td>
303
+ <td style="text-align:center">{{row.f_checker}}</td>
304
+ <td style="text-align:center">{{row.f_plan_name}}</td>
305
+ <td style="text-align:center">{{row.f_user_type}}</td>
306
+ <td style="text-align:center">{{row.f_last_check_state}}</td>
307
+ </template>
308
+ </data-grid>
309
+ </criteria-paged>
310
+ </article>
311
+ <footer slot="modal-footer" class="modal-footer">
312
+ <button type="button" class="btn btn-default" @click='modal_show = false'>关闭</button>
313
+ </footer>
314
+ </modal>
315
+ </div>
316
+ </template>
317
+ <script>
318
+ import {PagedList, HttpResetClass} from 'vue-client'
319
+ import * as Util from '../../Util'
320
+
321
+ export default {
322
+ title: '安检员考核',
323
+ data () {
324
+ let model = new PagedList('api/af-safecheck/sql/SafecheckSummary', 20, {
325
+ f_filiale_id: 'this.f_filiale_id'
326
+ },{data1:'',data2:'',data3:'',data4:'',data5:'',data6:'',data8:'',data9:''})
327
+ model.f_filiale_id = `('${this.$login.f.orgid}')`
328
+ return {
329
+ modal_show:false,
330
+ modalModel: new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 15, {
331
+ items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
332
+ tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
333
+ orderitem: '"1"'
334
+ }),
335
+ modalModel2: new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 15, {
336
+ items: '"*,f_offsite_time as f_last_check_date,f_checker_name as f_checker,f_check_type as f_user_type,f_entry_status as f_last_check_state"',
337
+ tablename: '"t_check_paper"',
338
+ orderitem: '"1"'
339
+ }),
340
+ modalSearchData:{},
341
+ modalSearchExcelData:{
342
+ items: "tcpi.*,tcp.f_checker,tcp.f_plan_name",
343
+ tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
344
+ orderitem: "f_userinfo_code"
345
+ },
346
+ modalExcelHeaders:{
347
+ 'f_userinfo_code': '用户编号',
348
+ 'f_user_name': '用户名称',
349
+ 'f_residential_area': '小区',
350
+ 'f_address': '地址',
351
+ 'f_user_phone': '客户电话',
352
+ 'f_check_version': '到访不遇次数',
353
+ 'f_last_check_date': '安检时间',
354
+ 'f_checker': '安检员',
355
+ 'f_plan_name':"计划名称",
356
+ 'f_user_type': '用户类型',
357
+ 'f_last_check_state': '安检状态'
358
+ },
359
+ type:'',
360
+ modalRow:{},
361
+ last_check_states:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'拒检',value:'拒检'},{label:'到访不遇',value:'到访不遇'}],
362
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
363
+ f_filiale_id: `('${this.$login.f.orgid}')`, // 分公司id
364
+ model: model,
365
+ source: 'tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))', //获取公司参数
366
+ userid: this.$login.f.id,
367
+ orgname: '',
368
+ // checker:{},
369
+ searchData: {
370
+ condition: {
371
+ condition1 : '1=1',
372
+ condition2 : `1=1 and f_entry_status = '入户'`
373
+ },
374
+ f_filiale_id: ''
375
+ },
376
+ print_model:{},
377
+ excelHeaders: {
378
+ 'checker': '安检员',
379
+ 'data1': '计划安检总户数',
380
+ 'data2': '未检户数',
381
+ 'data3': '已检户数',
382
+ 'data4': '入户户数',
383
+ 'data5': '三次到访不遇户数',
384
+ 'data6': '拒检户数',
385
+ 'data7': '安检率',
386
+ 'data8': '申请安检户数',
387
+ 'data9': '总入户数'
388
+ },
389
+ defaultPrint: ['checker','data1','data2','data3','data4','data5','data6','data7','data8','data9'],
390
+
391
+ }
392
+ },
393
+ methods: {
394
+ async modalShow (row,type) {
395
+ this.type = type
396
+ this.modalRow = row
397
+ this.modal_show = true
398
+ this.modalSearchData = {}
399
+ await this.modalSearch(row)
400
+ },
401
+ modalSearch () {
402
+ this.modalModel = new PagedList('api/af-safecheck/sql/safe_singleTable_OrderBy', 15, {
403
+ items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
404
+ tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
405
+ orderitem: '"1"'
406
+ })
407
+ let modalCondition = '1=1'
408
+ if (this.type == '0') {
409
+ modalCondition = this.$refs.paged.model.condition.condition2
410
+ modalCondition += ` and f_checker_name = '${this.modalRow.checker}'`
411
+ modalCondition += ` and f_no_checkplan='无计划安检'`
412
+ if (this.modalSearchData.f_user_name){
413
+ modalCondition += ` and f_user_name = '${this.modalSearchData.f_user_name}'`
414
+ }
415
+ if (this.modalSearchData.f_residential_area){
416
+ modalCondition += ` and f_residential_area = '${this.modalSearchData.f_residential_area}'`
417
+ }
418
+ if (this.modalSearchData.f_user_type){
419
+ modalCondition += ` and f_check_type = '${this.modalSearchData.f_user_type}'`
420
+ }
421
+ if (this.modalSearchData.start_time){
422
+ modalCondition += ` and f_offsite_time >= '${this.modalSearchData.start_time}'`
423
+ }
424
+ if (this.modalSearchData.end_time){
425
+ modalCondition += ` and f_offsite_time <= '${this.modalSearchData.end_time}'`
426
+ }
427
+ if (this.modalSearchData.f_userinfo_code){
428
+ modalCondition += ` and f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
429
+ }
430
+ if (this.modalSearchData.f_address){
431
+ modalCondition += ` and f_address = '${this.modalSearchData.f_address}'`
432
+ }
433
+ if (this.modalSearchData.f_user_phone){
434
+ modalCondition += ` and f_user_phone = '${this.modalSearchData.f_user_phone}'`
435
+ }
436
+ if (this.modalSearchData.f_checker){
437
+ modalCondition += ` and f_checker_name = '${this.modalSearchData.f_checker}'`
438
+ }
439
+ this.modalModel = this.modalModel2
440
+ this.modalModel.search(modalCondition, this.modalModel)
441
+ }else {
442
+ modalCondition = this.$refs.paged.model.condition.condition1
443
+ modalCondition += ` and f_checker = '${this.modalRow.checker}'`
444
+ if (this.modalSearchData.f_last_check_state){
445
+ modalCondition += ` and tcpi.f_last_check_state = '${this.modalSearchData.f_last_check_state}'`
446
+ }
447
+ if (this.modalSearchData.f_residential_area){
448
+ modalCondition += ` and f_residential_area = '${this.modalSearchData.f_residential_area}'`
449
+ }
450
+ if (this.modalSearchData.f_user_name){
451
+ modalCondition += ` and tcpi.f_user_name = '${this.modalSearchData.f_user_name}'`
452
+ }
453
+ if (this.modalSearchData.f_user_type){
454
+ modalCondition += ` and tcpi.f_user_type = '${this.modalSearchData.f_user_type}'`
455
+ }
456
+ if (this.modalSearchData.start_time){
457
+ modalCondition += ` and tcp.f_create_time >= '${this.modalSearchData.start_time}'`
458
+ }
459
+ if (this.modalSearchData.end_time){
460
+ modalCondition += ` and tcp.f_create_time <= '${this.modalSearchData.end_time}'`
461
+ }
462
+ if (this.modalSearchData.f_userinfo_code){
463
+ modalCondition += ` and tcpi.f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
464
+ }
465
+ if (this.modalSearchData.f_address){
466
+ modalCondition += ` and tcpi.f_address = '${this.modalSearchData.f_address}'`
467
+ }
468
+ if (this.modalSearchData.f_user_phone){
469
+ modalCondition += ` and tcpi.f_user_phone = '${this.modalSearchData.f_user_phone}'`
470
+ }
471
+ if (this.modalSearchData.f_checker){
472
+ modalCondition += ` and tcp.f_checker = '${this.modalSearchData.f_checker}'`
473
+ }
474
+ if (this.modalSearchData.f_check_version){
475
+ modalCondition += ` and tcpi.f_check_version = '${this.modalSearchData.f_check_version}'`
476
+ }
477
+ this.modalModel.search(modalCondition, this.modalModel)
478
+ }
479
+ this.modalSearchExcelData.condition = modalCondition
480
+ },
481
+ getRes (obj) {
482
+ this.f_filiale_id = this.$login.convertToIn(obj.resids)
483
+ this.orgname = obj.res[0]
484
+ this.$set('orgname', obj.res[0])
485
+ },
486
+ async selfSearch (args) {
487
+ if (!this.f_filiale_id) {
488
+ return this.$showMessage("请选择公司进行查询!!!")
489
+ }
490
+ this.model.f_filiale_id = this.f_filiale_id // 只有选择了下面的条件才会变化
491
+ let condition = {
492
+ condition1 : args.condition,
493
+ condition2 : `1=1 and f_entry_status = '入户'`
494
+ }
495
+ if (args.model.f_checker_id){
496
+ condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
497
+ }
498
+ if (args.model.f_user_type){
499
+ condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
500
+ }
501
+ if (args.model.checkstart){
502
+ condition.condition2 += ` and f_offsite_time >= '${args.model.checkstart}'`
503
+ }
504
+ if (args.model.checkend){
505
+ condition.condition2 += ` and f_offsite_time <= '${args.model.checkend}'`
506
+ }
507
+ this.searchData.f_filiale_id = this.f_filiale_id //导出
508
+ this.searchData.condition=args.condition //导出
509
+ await this.model.search(condition, args.model)
510
+ this.searchData.condition = condition
511
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
512
+ this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
513
+ this.print_model.rows.push({
514
+ checker: '合计',
515
+ data1: this.sumsmodel.data1,
516
+ data2: this.sumsmodel.data2,
517
+ data3: this.sumsmodel.data3,
518
+ data4: this.sumsmodel.data4,
519
+ data5: this.sumsmodel.data5,
520
+ data6: this.sumsmodel.data6,
521
+ data7: `${(this.sumsmodel.data3/this.sumsmodel.data1*100.0).toFixed(2)}%`,
522
+ data8: this.sumsmodel.data8,
523
+ data9: this.sumsmodel.data9
524
+ })
525
+ this.print_model.totalPage = 0
526
+ }
527
+ },
528
+ computed: {
529
+ excelTitle() {
530
+ return `${this.orgname }安检员考核`
531
+ },
532
+ getstart() {
533
+ return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
534
+ },
535
+ },
536
+ watch: {
537
+ },
538
+ ready () {
539
+ this.orgname = this.$login.f.orgs
540
+ //tag)
541
+ //tag
542
+ this.$refs.paged.$refs.cri.model.startDate=Util.toStartDateString() +' 00:00:00'
543
+ this.$refs.paged.$refs.cri.model.endDate=Util.toEndDateString() +' 23:59:59'
544
+
545
+ }
546
+
547
+ }
548
+ </script>
549
+
550
+ <style lang="less" >
551
+ .tableinfo {
552
+ text-align: center;
553
+ background-color: #00A3F0;
554
+ color: #0c2e4d;
555
+ font-size: 26px;
556
+ }
557
+ </style>