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,485 +1,485 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged :pager="false">
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
8
- <label class="font_normal_body">组织机构</label>
9
- <res-select restype='organization'
10
- class="select select_list"
11
- style="width: 60%"
12
- @res-select="$parent.$parent.getorg"
13
- :initresid='$parent.$parent.curorgid'>
14
- </res-select>
15
- </div>-->
16
- <div :class="{'col-sm-6':$parent.$parent.$parent.isdetail,'col-sm-4':!$parent.$parent.$parent.isdetail}">
17
- <role-selector-safe
18
- role-name="安检员"
19
- role-lable="安&ensp;检&ensp;员"
20
- @re-res="$parent.$parent.getorg"
21
- :value.sync="model.f_checker_id"
22
- v-model="model.f_checker_id"
23
- condition="f_checker_name like '%{}%'">
24
- </role-selector-safe>
25
- </div>
26
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
27
- <label class="font_normal_body">小区名称</label>
28
- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area" placeholder='小区名称'
29
- condition="f_residential_area like '%{}%'" v-next-el="cx" v-el:qjmc>
30
- </div>
31
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
32
- <label class="font_normal_body">计划名称</label>
33
- <v-select class="select_list select"
34
- placeholder='计划名称' style="width: 60%"
35
- :search="true"
36
- v-model="model.f_plan_name"
37
- :value.sync="model.f_plan_name"
38
- :options='$parent.$parent.planName'
39
- condition="f_plan_id = '{}'"
40
- :value-single="true"
41
- close-on-select clear-button></v-select>
42
-
43
- </div>
44
- <!--<div :class="{
45
- 'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
46
- <label class="font_normal_body">安&ensp;检&ensp;员</label>
47
- <input type="text" class="input_search" style="width:60%" v-model="model.f_checker_name" placeholder='安检员'
48
- condition="f_checker_name like '%{}%'" v-next-el="cx" v-el:qjmc>
49
- </div>-->
50
- <div class="form-group col-sm-2" v-if="!$parent.$parent.$parent.isdetail"></div>
51
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" style="float:right; padding-right: 25px">
52
- <div class="span" style="float:right;">
53
- <div style="float: right;margin-left:10px" class="button_spacing"
54
- :class="{'button_shrink_left':!$parent.$parent.$parent.isdetail,'button_shrink_right':$parent.$parent.$parent.isdetail}"
55
- @click="$parent.$parent.hiddenr()"></div>
56
- <div class="button_spacing" style="float: right;margin-left:10px"
57
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
58
- @click="$parent.$parent.hidden()">
59
- </div>
60
- <!-- <export-excel-safe :data="$parent.$parent.exportParameter"
61
- :field="$parent.$parent.exportExcelField"
62
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="getCheckPlanAreaList"
63
- template-name='安检汇总' :choose-col="true">
64
- </export-excel-safe>-->
65
- <button id="btnaaaa" style="float: right" class="button_search"
66
- @click="$parent.$parent.exportexcel()"
67
- v-el:cx>导出</button>
68
- <button id="btnaaa" style="float: right" class="button_search"
69
- @click="$parent.$parent.getGroupName1(),search(),$parent.$parent.getexportExcelField(),$parent.$parent.$parent.isdetail=false,$parent.$parent.listflag=false"
70
- v-el:cx>查询</button>
71
- </div>
72
- </div>
73
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" v-if="$parent.$parent.criteriaShow">
74
- <label class="font_normal_body">起始时间</label>
75
- <datepicker
76
- :value.sync="$parent.$parent.f_check_start"
77
- placeholder='起始时间' style="width:60%"
78
- :disabled-days-of-week="[]"
79
- :format="'yyyy-MM'"
80
- :select-month="true"
81
- :show-rest-button="reset">
82
- </datepicker>
83
- </div>
84
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" v-if="$parent.$parent.criteriaShow">
85
- <label class="font_normal_body">结束时间</label>
86
- <datepicker
87
- :value.sync="$parent.$parent.f_check_end"
88
- placeholder='结束时间' style="width:60%"
89
- :disabled-days-of-week="[]"
90
- :format="'yyyy-MM'"
91
- :select-month="true"
92
- :show-rest-button="reset">
93
- </datepicker>
94
- </div>
95
- </div>
96
- <div class="row">
97
- <div class="col-sm-12">
98
- <label class="control-label" style="color: #c7254e">汇 总 项</label>
99
- <input type="checkbox" id="f_plan_month" value="f_plan_month" v-model="$parent.$parent.nameForSql"/>
100
- <label for="f_plan_month">计划月份</label>
101
- <input type="checkbox" id="f_no_checkplan" value="f_no_checkplan" v-model="$parent.$parent.nameForSql"/>
102
- <label for="f_no_checkplan">计划类型</label>
103
- <input type="checkbox" id="f_residential_area" value="f_residential_area" v-model="$parent.$parent.nameForSql"/>
104
- <label for="f_residential_area">小区名称</label>
105
- <input type="checkbox" id="f_plan_name" value="f_plan_name" v-model="$parent.$parent.nameForSql"/>
106
- <label for="f_plan_name">计划名称</label>
107
- <input type="checkbox" id="f_checker_name" value="f_checker_name" v-model="$parent.$parent.nameForSql"/>
108
- <label for="f_checker_name">安检员</label>
109
- <input type="checkbox" id="f_user_number" value="f_user_number" v-model="$parent.$parent.nameForSql"/>
110
- <label for="f_checker_name">档案数量</label>
111
- </div>
112
- </div>
113
- </div>
114
-
115
- </criteria>
116
- <data-grid id="excelid" :model="model" partial='list' class="list_area table_sy excelid" v-ref:grid>
117
- <template partial='head'>
118
- <tr>
119
- <th>
120
- <nobr>序号</nobr>
121
- </th>
122
- <th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')"><nobr>计划月份</nobr></th>
123
- <th v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')"><nobr>计划类型</nobr></th>
124
- <th v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')"><nobr>小区名称</nobr></th>
125
- <th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')"><nobr>计划名称</nobr></th>
126
- <th v-if="$parent.$parent.$parent.nameForSql.includes('f_checker_name')"><nobr>安检员</nobr></th>
127
- <th v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')"><nobr>档案数量</nobr></th>
128
- <th>
129
- <nobr>计划总数</nobr>
130
- </th>
131
- <th>
132
- <nobr>未检</nobr>
133
- </th>
134
- <th>
135
- <nobr>已检</nobr>
136
- </th>
137
- <th>
138
- <nobr>入户</nobr>
139
- </th>
140
- <th>
141
- <nobr>到访不遇</nobr>
142
- </th>
143
- <th>
144
- <nobr>拒检</nobr>
145
- </th>
146
- <th>
147
- <nobr>安检率</nobr>
148
- </th>
149
- <!--<th>-->
150
- <!--<nobr>查看</nobr>-->
151
- <!--</th>-->
152
- </tr>
153
- </template>
154
- <template partial='body'>
155
- <tr>
156
- <td style="text-align:center;border-right: 1px solid ">{{$index + 1}}</td>
157
- <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')">{{row.f_plan_month.indexOf('*&')!=-1?'':row.f_plan_month}}</td>-->
158
- <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')">{{row.f_no_checkplan.indexOf('*&')!=-1?'':row.f_no_checkplan}}</td>-->
159
- <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')">{{row.f_residential_area.indexOf('*&')!=-1?'':row.f_residential_area}}</td>-->
160
- <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>-->
161
- <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</td>-->
162
- <td style="text-align:center" :class="{'td-0':row.f_plan_month==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_month.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_month.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_month.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_month.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')">{{row.f_plan_month.indexOf('*&')!=-1?'':row.f_plan_month}}</td>
163
- <td style="text-align:center" :class="{'td-0':row.f_no_checkplan==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_no_checkplan.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_no_checkplan.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_no_checkplan.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_no_checkplan.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')">{{row.f_no_checkplan.indexOf('*&')!=-1?'':row.f_no_checkplan}}</td>
164
- <td style="text-align:center" :class="{'td-0':row.f_residential_area==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_residential_area.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_residential_area.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_residential_area.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_residential_area.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')">{{row.f_residential_area.indexOf('*&')!=-1?'':row.f_residential_area}}</td>
165
- <td style="text-align:center" :class="{'td-0':row.f_plan_name==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>
166
- <td style="text-align:center" :class="{'td-0':row && !row.f_checker_name,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_checker_name && row.f_checker_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</td>
167
- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')">{{row.f_user_number}}</td>
168
- <td style="text-align:center">{{row.f_plan_total}}</td>
169
- <td style="text-align:center">{{row.f_weijian}}</td>
170
- <td style="text-align:center"><nobr>{{row.f_yijian}}</nobr></td>
171
- <td style="text-align:center"><nobr>{{row.f_ruhu}}</nobr></td>
172
- <td style="text-align:center">{{row.f_buyu}}</td>
173
- <td style="text-align:center"><nobr>{{row.f_jujian}}</nobr></td>
174
- <td style="text-align:center"><nobr>{{row.f_check_bv}}</nobr></td>
175
- <!--<td style="text-align: center;">-->
176
- <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showhistory(row)">查看</button>-->
177
- <!--</td>-->
178
- </tr>
179
- </template>
180
- <template partial='foot'></template>
181
- </data-grid>
182
- </criteria-paged>
183
- </div>
184
- </template>
185
-
186
- <script>
187
- /**
188
- *阶梯气价查询列表
189
- */
190
- import {PagedList} from 'vue-client'
191
- import { HttpResetClass } from 'vue-client'
192
- import * as Util from "../../Util";
193
- import XLSX from 'xlsx'
194
- export default {
195
- data () {
196
- return {
197
- model: new PagedList('api/af-safecheck/sql/getCheckPlanAreaList', 99999),
198
- // 公司下拉
199
- curorgid: [this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)],
200
- row: {},
201
- f_orgid: '',
202
- nameForSql: [],
203
- groupNameForSql: '',
204
- listflag:false,
205
- nameflag:false,
206
- criteriaShow: false,
207
- f_check_start:new Date().getFullYear() + '-01',
208
- f_check_end:new Date().getFullYear() + '-12',
209
- planName:[{label: '全部', value: ''}],
210
- exportExcelField: {
211
- 'f_weijian':'未检',
212
- 'f_yijian':'已检',
213
- 'f_ruhu':'入户',
214
- 'f_buyu':'到访不遇',
215
- 'f_jujian':'拒检',
216
- 'f_check_bv':'安检率'
217
- }
218
- }
219
- },
220
- props: {
221
- row: {},
222
- config: {},
223
- ispartial: false,
224
- f_filialeid: {
225
- type: String
226
- }
227
- },
228
- ready () {
229
- this.nameForSql = ['f_plan_month', 'f_plan_name','f_checker_name']
230
- this.groupNameForSql = 'f_plan_month', 'f_plan_name','f_checker_name'
231
- this.pl()
232
- // this.search()
233
-
234
- },
235
- methods: {
236
- exportexcel(){
237
- //tag
238
- // 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
239
- const aa = document.getElementsByClassName("list_area table_sy excelid")[0]
240
- console.log(aa)
241
- let workbook = XLSX.utils.table_to_book(document.getElementsByClassName("list_area table_sy excelid")[0])
242
- try {
243
- XLSX.writeFile(workbook, '安检情况汇总导出.xlsx');
244
- } catch(e) {
245
- //tag;
246
- }
247
- },
248
- // 获取导出列
249
- getexportExcelField(){
250
- this.exportExcelField = {
251
- 'f_weijian':'未检',
252
- 'f_yijian':'已检',
253
- 'f_ruhu':'入户',
254
- 'f_buyu':'到访不遇',
255
- 'f_jujian':'拒检',
256
- 'f_check_bv':'安检率',
257
- 'f_plan_total':'计划总数'
258
- }
259
- let forName = this.groupNameForSql.split(",")
260
- for (let i = 0; i < forName.length; i++) {
261
- let ff = forName[i]
262
- if (ff==='f_plan_month') {
263
- this.exportExcelField.f_plan_month='计划月份'
264
- }
265
- if (ff==='f_no_checkplan') {
266
- this.exportExcelField.f_no_checkplan='计划类型'
267
- }
268
- if (ff==='f_plan_name') {
269
- this.exportExcelField.f_plan_name='计划名称'
270
- }
271
- if (ff==='f_checker_name') {
272
- this.exportExcelField.f_checker_name='安检员'
273
- }if (ff==='f_residential_area') {
274
- this.exportExcelField.f_residential_area='小区名称'
275
- }if (ff==='f_user_number') {
276
- this.exportExcelField.f_user_number='档案数量'
277
- }
278
- }
279
- },
280
- pl() {
281
- let getGasman = new HttpResetClass()
282
- getGasman.load('POST', `api/af-safecheck/sql/safe_singleTable_OrderBy`, {
283
- data: {
284
- items: "id,f_plan_name",
285
- tablename: "t_check_plan",
286
- condition: `f_filialeid = '${this.curorgid}'`,
287
- orderitem: "id"
288
- }
289
- }, {resolveMsg: null, rejectMsg: null}).then((plne) => {
290
- //tag
291
- //tag
292
- //tag
293
- for (let i = 0; i < plne.data.length; i++) {
294
- this.planName.push({label: plne.data[i].f_plan_name, value: plne.data[i].id})
295
- }
296
- //tag
297
- })
298
- },
299
- hiddenr() {
300
- this.$parent.isdetail = !this.$parent.isdetail
301
- },
302
- hidden() {
303
- this.criteriaShow = !this.criteriaShow
304
- },
305
- search () {
306
- this.$refs.paged.$refs.cri.search()
307
- this.$dispatch('search')
308
- },
309
- getorg (val) {
310
- this.f_orgid = this.$login.convertToIn(val.resids)
311
- this.f_filialeid = val[0]
312
-
313
- },
314
- selfSearch (args) {
315
- if (!this.f_orgid) {
316
- this.getorg([this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)])
317
- args.condition = `f_filialeid in ('${this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)}') and ${args.condition}`
318
- }
319
- if (this.f_orgid) {
320
- args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
321
- }
322
- if(this.f_check_start && this.f_check_end){
323
- if(new Date(this.f_check_start).getFullYear() == new Date(this.f_check_end).getFullYear() ){
324
- args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
325
- }else {
326
- args.condition += ` and (
327
- (f_year = ${new Date(this.f_check_start).getFullYear()} and f_month >= ${new Date(this.f_check_start).getMonth()+1})
328
- or
329
- ( f_year > ${new Date(this.f_check_start).getFullYear()} and f_year < ${new Date(this.f_check_end).getFullYear()})
330
- or
331
- (f_year = ${new Date(this.f_check_end).getFullYear()} and f_month <= ${new Date(this.f_check_end).getMonth()+1}))`
332
- }
333
- } else {
334
- if(this.f_check_start){
335
- args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1}`
336
- }
337
- if(this.f_check_end){
338
- args.condition += ` and f_year<=${new Date(this.f_check_end).getFullYear()} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
339
- }
340
- }
341
- this.$refs.paged.$refs.grid.$el.scrollTop = 0
342
- if (this.groupNameForSql=='undefined'){
343
- //tag
344
- this.$showMessage("请至少选择一项进行汇总")
345
- return
346
- }
347
- this.model.paramSource = {groupName: `'${this.groupNameForSql}'`}
348
- this.model.search(args.condition, args.model)
349
- },
350
-
351
- // 拼接groupName1
352
- getGroupName1 () {
353
- var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
354
- var newtemp=[]
355
-
356
- for (var i=0;i<temp.length;i++){
357
- for (var j=0;j<this.nameForSql.length;j++){
358
- //tag
359
- if(temp[i]==this.nameForSql[j]){
360
- newtemp.push(this.nameForSql[j])
361
- }
362
- }
363
- }
364
- let str = ''
365
-
366
- for (var i=0;i < newtemp.length - 1; i++) {
367
- str += newtemp[i] + ','
368
- }
369
- str += newtemp[i]
370
- this.groupNameForSql = str.trim()
371
- }
372
- },
373
- watch: {
374
- // 'nameForSql' () {
375
- //
376
- // this.getGroupName1()
377
- // },
378
- 'nameForSql' () {
379
- var e = document.createEvent("MouseEvents");
380
- e.initEvent("click", true, true);
381
- document.getElementById("btnaaa").dispatchEvent(e);
382
- },
383
- 'model.rows'(){
384
- //tag
385
- if(this.listflag){
386
- return;
387
- }
388
- this.listflag=true
389
- //tag
390
- var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
391
- var newtemp=[]
392
- for (var i=0;i<temp.length;i++){
393
- for (var j=0;j<this.nameForSql.length;j++){
394
- //tag
395
- if(temp[i]==this.nameForSql[j]){
396
- newtemp.push(this.nameForSql[j])
397
- }
398
- }
399
- }
400
- if((newtemp.includes('f_user_number')&&newtemp.length==2)||(!newtemp.includes('f_user_number')&&newtemp.length==1)){
401
- return
402
- }
403
- var temp=JSON.parse(JSON.stringify(this.model.rows))
404
-
405
- //遍历查询结果 为指定列增加样式
406
- for (var i=0;i<newtemp.length-1;i++){
407
- if(newtemp[i]=='f_user_number'){
408
- return;
409
- }
410
- //tag
411
- var ss=''
412
- for (var j=0;j<temp.length;j++){
413
- if(j>0&&i>0){
414
- var flag=false
415
- for(var t=i-1;t>-1;t--){
416
- //tag
417
- //tag
418
- //tag
419
- //tag
420
- if(temp[j-1][newtemp[t]]!=temp[j][newtemp[t]]&&(temp[j][newtemp[t]] !=null && temp[j][newtemp[t]].indexOf('*&') )==-1){
421
- flag=true
422
- break
423
- }
424
- }
425
- //tag
426
- if(flag){
427
- ss=temp[j][newtemp[i]]
428
- continue
429
- }
430
- }
431
- if(temp[j][newtemp[i]]==ss){
432
- temp[j][newtemp[i]]=temp[j][newtemp[i]]+'*&'
433
- }else {
434
- ss=temp[j][newtemp[i]]
435
- }
436
- }
437
- }
438
- //tag
439
- this.model.rows=JSON.parse(JSON.stringify(temp))
440
- }
441
- },
442
- computed:{
443
- exportParameter(){
444
- // excel 导出条件拼接
445
- return {
446
- condition: this.$refs.paged.model.condition,
447
- groupName: this.groupNameForSql
448
- }
449
- }
450
- }
451
- }
452
- </script>
453
-
454
- <style scoped>
455
-
456
- .td-0{
457
- border: 1px solid #000000;
458
- }
459
-
460
- .td-1{
461
- border: none;
462
- border-top: 1px solid #000000;
463
- border-left: 1px solid #000000;
464
- border-right: 1px solid #000000;
465
- }
466
-
467
- .td-2{
468
- border: none;
469
- border-left: 1px solid #000000;
470
- border-right: 1px solid #000000;
471
- }
472
- .td-4{
473
- border: none;
474
- border-top: 1px solid #000000;
475
- border-left: 1px solid #000000;
476
- border-right: 1px solid #000000;
477
- border-bottom: 1px solid #000000;
478
- }
479
- .td-3{
480
- border: none;
481
- border-left: 1px solid #000000;
482
- border-right: 1px solid #000000;
483
- border-bottom: 1px solid #000000;
484
- }
485
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged :pager="false">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
8
+ <label class="font_normal_body">组织机构</label>
9
+ <res-select restype='organization'
10
+ class="select select_list"
11
+ style="width: 60%"
12
+ @res-select="$parent.$parent.getorg"
13
+ :initresid='$parent.$parent.curorgid'>
14
+ </res-select>
15
+ </div>-->
16
+ <div :class="{'col-sm-6':$parent.$parent.$parent.isdetail,'col-sm-4':!$parent.$parent.$parent.isdetail}">
17
+ <role-selector-safe
18
+ role-name="安检员"
19
+ role-lable="安&ensp;检&ensp;员"
20
+ @re-res="$parent.$parent.getorg"
21
+ :value.sync="model.f_checker_id"
22
+ v-model="model.f_checker_id"
23
+ condition="f_checker_name like '%{}%'">
24
+ </role-selector-safe>
25
+ </div>
26
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
27
+ <label class="font_normal_body">小区名称</label>
28
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area" placeholder='小区名称'
29
+ condition="f_residential_area like '%{}%'" v-next-el="cx" v-el:qjmc>
30
+ </div>
31
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
32
+ <label class="font_normal_body">计划名称</label>
33
+ <v-select class="select_list select"
34
+ placeholder='计划名称' style="width: 60%"
35
+ :search="true"
36
+ v-model="model.f_plan_name"
37
+ :value.sync="model.f_plan_name"
38
+ :options='$parent.$parent.planName'
39
+ condition="f_plan_id = '{}'"
40
+ :value-single="true"
41
+ close-on-select clear-button></v-select>
42
+
43
+ </div>
44
+ <!--<div :class="{
45
+ 'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
46
+ <label class="font_normal_body">安&ensp;检&ensp;员</label>
47
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_checker_name" placeholder='安检员'
48
+ condition="f_checker_name like '%{}%'" v-next-el="cx" v-el:qjmc>
49
+ </div>-->
50
+ <div class="form-group col-sm-2" v-if="!$parent.$parent.$parent.isdetail"></div>
51
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" style="float:right; padding-right: 25px">
52
+ <div class="span" style="float:right;">
53
+ <div style="float: right;margin-left:10px" class="button_spacing"
54
+ :class="{'button_shrink_left':!$parent.$parent.$parent.isdetail,'button_shrink_right':$parent.$parent.$parent.isdetail}"
55
+ @click="$parent.$parent.hiddenr()"></div>
56
+ <div class="button_spacing" style="float: right;margin-left:10px"
57
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
58
+ @click="$parent.$parent.hidden()">
59
+ </div>
60
+ <!-- <export-excel-safe :data="$parent.$parent.exportParameter"
61
+ :field="$parent.$parent.exportExcelField"
62
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="getCheckPlanAreaList"
63
+ template-name='安检汇总' :choose-col="true">
64
+ </export-excel-safe>-->
65
+ <button id="btnaaaa" style="float: right" class="button_search"
66
+ @click="$parent.$parent.exportexcel()"
67
+ v-el:cx>导出</button>
68
+ <button id="btnaaa" style="float: right" class="button_search"
69
+ @click="$parent.$parent.getGroupName1(),search(),$parent.$parent.getexportExcelField(),$parent.$parent.$parent.isdetail=false,$parent.$parent.listflag=false"
70
+ v-el:cx>查询</button>
71
+ </div>
72
+ </div>
73
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" v-if="$parent.$parent.criteriaShow">
74
+ <label class="font_normal_body">起始时间</label>
75
+ <datepicker
76
+ :value.sync="$parent.$parent.f_check_start"
77
+ placeholder='起始时间' style="width:60%"
78
+ :disabled-days-of-week="[]"
79
+ :format="'yyyy-MM'"
80
+ :select-month="true"
81
+ :show-rest-button="reset">
82
+ </datepicker>
83
+ </div>
84
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}" v-if="$parent.$parent.criteriaShow">
85
+ <label class="font_normal_body">结束时间</label>
86
+ <datepicker
87
+ :value.sync="$parent.$parent.f_check_end"
88
+ placeholder='结束时间' style="width:60%"
89
+ :disabled-days-of-week="[]"
90
+ :format="'yyyy-MM'"
91
+ :select-month="true"
92
+ :show-rest-button="reset">
93
+ </datepicker>
94
+ </div>
95
+ </div>
96
+ <div class="row">
97
+ <div class="col-sm-12">
98
+ <label class="control-label" style="color: #c7254e">汇 总 项</label>
99
+ <input type="checkbox" id="f_plan_month" value="f_plan_month" v-model="$parent.$parent.nameForSql"/>
100
+ <label for="f_plan_month">计划月份</label>
101
+ <input type="checkbox" id="f_no_checkplan" value="f_no_checkplan" v-model="$parent.$parent.nameForSql"/>
102
+ <label for="f_no_checkplan">计划类型</label>
103
+ <input type="checkbox" id="f_residential_area" value="f_residential_area" v-model="$parent.$parent.nameForSql"/>
104
+ <label for="f_residential_area">小区名称</label>
105
+ <input type="checkbox" id="f_plan_name" value="f_plan_name" v-model="$parent.$parent.nameForSql"/>
106
+ <label for="f_plan_name">计划名称</label>
107
+ <input type="checkbox" id="f_checker_name" value="f_checker_name" v-model="$parent.$parent.nameForSql"/>
108
+ <label for="f_checker_name">安检员</label>
109
+ <input type="checkbox" id="f_user_number" value="f_user_number" v-model="$parent.$parent.nameForSql"/>
110
+ <label for="f_checker_name">档案数量</label>
111
+ </div>
112
+ </div>
113
+ </div>
114
+
115
+ </criteria>
116
+ <data-grid id="excelid" :model="model" partial='list' class="list_area table_sy excelid" v-ref:grid>
117
+ <template partial='head'>
118
+ <tr>
119
+ <th>
120
+ <nobr>序号</nobr>
121
+ </th>
122
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')"><nobr>计划月份</nobr></th>
123
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')"><nobr>计划类型</nobr></th>
124
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')"><nobr>小区名称</nobr></th>
125
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')"><nobr>计划名称</nobr></th>
126
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_checker_name')"><nobr>安检员</nobr></th>
127
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')"><nobr>档案数量</nobr></th>
128
+ <th>
129
+ <nobr>计划总数</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>未检</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>已检</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>入户</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>到访不遇</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>拒检</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>安检率</nobr>
148
+ </th>
149
+ <!--<th>-->
150
+ <!--<nobr>查看</nobr>-->
151
+ <!--</th>-->
152
+ </tr>
153
+ </template>
154
+ <template partial='body'>
155
+ <tr>
156
+ <td style="text-align:center;border-right: 1px solid ">{{$index + 1}}</td>
157
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')">{{row.f_plan_month.indexOf('*&')!=-1?'':row.f_plan_month}}</td>-->
158
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')">{{row.f_no_checkplan.indexOf('*&')!=-1?'':row.f_no_checkplan}}</td>-->
159
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')">{{row.f_residential_area.indexOf('*&')!=-1?'':row.f_residential_area}}</td>-->
160
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>-->
161
+ <!-- <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</td>-->
162
+ <td style="text-align:center" :class="{'td-0':row.f_plan_month==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_month.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_month.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_month.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_month.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_month')">{{row.f_plan_month.indexOf('*&')!=-1?'':row.f_plan_month}}</td>
163
+ <td style="text-align:center" :class="{'td-0':row.f_no_checkplan==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_no_checkplan.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_no_checkplan.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_no_checkplan.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_no_checkplan.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_no_checkplan')">{{row.f_no_checkplan.indexOf('*&')!=-1?'':row.f_no_checkplan}}</td>
164
+ <td style="text-align:center" :class="{'td-0':row.f_residential_area==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_residential_area.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_residential_area.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_residential_area.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_residential_area.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')">{{row.f_residential_area.indexOf('*&')!=-1?'':row.f_residential_area}}</td>
165
+ <td style="text-align:center" :class="{'td-0':row.f_plan_name==undefined,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_plan_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql.includes('f_plan_name')">{{row.f_plan_name.indexOf('*&')!=-1?'':row.f_plan_name}}</td>
166
+ <td style="text-align:center" :class="{'td-0':row && !row.f_checker_name,'td-1':model.rows && model.rows.length!=($index+1)&&row.f_checker_name && row.f_checker_name.indexOf('*&')==-1,'td-2':model.rows && model.rows.length!=($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-3':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')!=-1,'td-4':model.rows && model.rows.length==($index+1)&&row.f_checker_name &&row.f_checker_name.indexOf('*&')==-1}" v-if="$parent.$parent.$parent.nameForSql && $parent.$parent.$parent.nameForSql.includes('f_checker_name')">{{row.f_checker_name && row.f_checker_name.indexOf('*&')!=-1?'':row.f_checker_name}}</td>
167
+ <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_user_number')">{{row.f_user_number}}</td>
168
+ <td style="text-align:center">{{row.f_plan_total}}</td>
169
+ <td style="text-align:center">{{row.f_weijian}}</td>
170
+ <td style="text-align:center"><nobr>{{row.f_yijian}}</nobr></td>
171
+ <td style="text-align:center"><nobr>{{row.f_ruhu}}</nobr></td>
172
+ <td style="text-align:center">{{row.f_buyu}}</td>
173
+ <td style="text-align:center"><nobr>{{row.f_jujian}}</nobr></td>
174
+ <td style="text-align:center"><nobr>{{row.f_check_bv}}</nobr></td>
175
+ <!--<td style="text-align: center;">-->
176
+ <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showhistory(row)">查看</button>-->
177
+ <!--</td>-->
178
+ </tr>
179
+ </template>
180
+ <template partial='foot'></template>
181
+ </data-grid>
182
+ </criteria-paged>
183
+ </div>
184
+ </template>
185
+
186
+ <script>
187
+ /**
188
+ *阶梯气价查询列表
189
+ */
190
+ import {PagedList} from 'vue-client'
191
+ import { HttpResetClass } from 'vue-client'
192
+ import * as Util from "../../Util";
193
+ import XLSX from 'xlsx'
194
+ export default {
195
+ data () {
196
+ return {
197
+ model: new PagedList('api/af-safecheck/sql/getCheckPlanAreaList', 99999),
198
+ // 公司下拉
199
+ curorgid: [this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)],
200
+ row: {},
201
+ f_orgid: '',
202
+ nameForSql: [],
203
+ groupNameForSql: '',
204
+ listflag:false,
205
+ nameflag:false,
206
+ criteriaShow: false,
207
+ f_check_start:new Date().getFullYear() + '-01',
208
+ f_check_end:new Date().getFullYear() + '-12',
209
+ planName:[{label: '全部', value: ''}],
210
+ exportExcelField: {
211
+ 'f_weijian':'未检',
212
+ 'f_yijian':'已检',
213
+ 'f_ruhu':'入户',
214
+ 'f_buyu':'到访不遇',
215
+ 'f_jujian':'拒检',
216
+ 'f_check_bv':'安检率'
217
+ }
218
+ }
219
+ },
220
+ props: {
221
+ row: {},
222
+ config: {},
223
+ ispartial: false,
224
+ f_filialeid: {
225
+ type: String
226
+ }
227
+ },
228
+ ready () {
229
+ this.nameForSql = ['f_plan_month', 'f_plan_name','f_checker_name']
230
+ this.groupNameForSql = 'f_plan_month', 'f_plan_name','f_checker_name'
231
+ this.pl()
232
+ // this.search()
233
+
234
+ },
235
+ methods: {
236
+ exportexcel(){
237
+ //tag
238
+ // 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
239
+ const aa = document.getElementsByClassName("list_area table_sy excelid")[0]
240
+ console.log(aa)
241
+ let workbook = XLSX.utils.table_to_book(document.getElementsByClassName("list_area table_sy excelid")[0])
242
+ try {
243
+ XLSX.writeFile(workbook, '安检情况汇总导出.xlsx');
244
+ } catch(e) {
245
+ //tag;
246
+ }
247
+ },
248
+ // 获取导出列
249
+ getexportExcelField(){
250
+ this.exportExcelField = {
251
+ 'f_weijian':'未检',
252
+ 'f_yijian':'已检',
253
+ 'f_ruhu':'入户',
254
+ 'f_buyu':'到访不遇',
255
+ 'f_jujian':'拒检',
256
+ 'f_check_bv':'安检率',
257
+ 'f_plan_total':'计划总数'
258
+ }
259
+ let forName = this.groupNameForSql.split(",")
260
+ for (let i = 0; i < forName.length; i++) {
261
+ let ff = forName[i]
262
+ if (ff==='f_plan_month') {
263
+ this.exportExcelField.f_plan_month='计划月份'
264
+ }
265
+ if (ff==='f_no_checkplan') {
266
+ this.exportExcelField.f_no_checkplan='计划类型'
267
+ }
268
+ if (ff==='f_plan_name') {
269
+ this.exportExcelField.f_plan_name='计划名称'
270
+ }
271
+ if (ff==='f_checker_name') {
272
+ this.exportExcelField.f_checker_name='安检员'
273
+ }if (ff==='f_residential_area') {
274
+ this.exportExcelField.f_residential_area='小区名称'
275
+ }if (ff==='f_user_number') {
276
+ this.exportExcelField.f_user_number='档案数量'
277
+ }
278
+ }
279
+ },
280
+ pl() {
281
+ let getGasman = new HttpResetClass()
282
+ getGasman.load('POST', `api/af-safecheck/sql/safe_singleTable_OrderBy`, {
283
+ data: {
284
+ items: "id,f_plan_name",
285
+ tablename: "t_check_plan",
286
+ condition: `f_filialeid = '${this.curorgid}'`,
287
+ orderitem: "id"
288
+ }
289
+ }, {resolveMsg: null, rejectMsg: null}).then((plne) => {
290
+ //tag
291
+ //tag
292
+ //tag
293
+ for (let i = 0; i < plne.data.length; i++) {
294
+ this.planName.push({label: plne.data[i].f_plan_name, value: plne.data[i].id})
295
+ }
296
+ //tag
297
+ })
298
+ },
299
+ hiddenr() {
300
+ this.$parent.isdetail = !this.$parent.isdetail
301
+ },
302
+ hidden() {
303
+ this.criteriaShow = !this.criteriaShow
304
+ },
305
+ search () {
306
+ this.$refs.paged.$refs.cri.search()
307
+ this.$dispatch('search')
308
+ },
309
+ getorg (val) {
310
+ this.f_orgid = this.$login.convertToIn(val.resids)
311
+ this.f_filialeid = val[0]
312
+
313
+ },
314
+ selfSearch (args) {
315
+ if (!this.f_orgid) {
316
+ this.getorg([this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)])
317
+ args.condition = `f_filialeid in ('${this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1)}') and ${args.condition}`
318
+ }
319
+ if (this.f_orgid) {
320
+ args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
321
+ }
322
+ if(this.f_check_start && this.f_check_end){
323
+ if(new Date(this.f_check_start).getFullYear() == new Date(this.f_check_end).getFullYear() ){
324
+ args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
325
+ }else {
326
+ args.condition += ` and (
327
+ (f_year = ${new Date(this.f_check_start).getFullYear()} and f_month >= ${new Date(this.f_check_start).getMonth()+1})
328
+ or
329
+ ( f_year > ${new Date(this.f_check_start).getFullYear()} and f_year < ${new Date(this.f_check_end).getFullYear()})
330
+ or
331
+ (f_year = ${new Date(this.f_check_end).getFullYear()} and f_month <= ${new Date(this.f_check_end).getMonth()+1}))`
332
+ }
333
+ } else {
334
+ if(this.f_check_start){
335
+ args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1}`
336
+ }
337
+ if(this.f_check_end){
338
+ args.condition += ` and f_year<=${new Date(this.f_check_end).getFullYear()} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
339
+ }
340
+ }
341
+ this.$refs.paged.$refs.grid.$el.scrollTop = 0
342
+ if (this.groupNameForSql=='undefined'){
343
+ //tag
344
+ this.$showMessage("请至少选择一项进行汇总")
345
+ return
346
+ }
347
+ this.model.paramSource = {groupName: `'${this.groupNameForSql}'`}
348
+ this.model.search(args.condition, args.model)
349
+ },
350
+
351
+ // 拼接groupName1
352
+ getGroupName1 () {
353
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
354
+ var newtemp=[]
355
+
356
+ for (var i=0;i<temp.length;i++){
357
+ for (var j=0;j<this.nameForSql.length;j++){
358
+ //tag
359
+ if(temp[i]==this.nameForSql[j]){
360
+ newtemp.push(this.nameForSql[j])
361
+ }
362
+ }
363
+ }
364
+ let str = ''
365
+
366
+ for (var i=0;i < newtemp.length - 1; i++) {
367
+ str += newtemp[i] + ','
368
+ }
369
+ str += newtemp[i]
370
+ this.groupNameForSql = str.trim()
371
+ }
372
+ },
373
+ watch: {
374
+ // 'nameForSql' () {
375
+ //
376
+ // this.getGroupName1()
377
+ // },
378
+ 'nameForSql' () {
379
+ var e = document.createEvent("MouseEvents");
380
+ e.initEvent("click", true, true);
381
+ document.getElementById("btnaaa").dispatchEvent(e);
382
+ },
383
+ 'model.rows'(){
384
+ //tag
385
+ if(this.listflag){
386
+ return;
387
+ }
388
+ this.listflag=true
389
+ //tag
390
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
391
+ var newtemp=[]
392
+ for (var i=0;i<temp.length;i++){
393
+ for (var j=0;j<this.nameForSql.length;j++){
394
+ //tag
395
+ if(temp[i]==this.nameForSql[j]){
396
+ newtemp.push(this.nameForSql[j])
397
+ }
398
+ }
399
+ }
400
+ if((newtemp.includes('f_user_number')&&newtemp.length==2)||(!newtemp.includes('f_user_number')&&newtemp.length==1)){
401
+ return
402
+ }
403
+ var temp=JSON.parse(JSON.stringify(this.model.rows))
404
+
405
+ //遍历查询结果 为指定列增加样式
406
+ for (var i=0;i<newtemp.length-1;i++){
407
+ if(newtemp[i]=='f_user_number'){
408
+ return;
409
+ }
410
+ //tag
411
+ var ss=''
412
+ for (var j=0;j<temp.length;j++){
413
+ if(j>0&&i>0){
414
+ var flag=false
415
+ for(var t=i-1;t>-1;t--){
416
+ //tag
417
+ //tag
418
+ //tag
419
+ //tag
420
+ if(temp[j-1][newtemp[t]]!=temp[j][newtemp[t]]&&(temp[j][newtemp[t]] !=null && temp[j][newtemp[t]].indexOf('*&') )==-1){
421
+ flag=true
422
+ break
423
+ }
424
+ }
425
+ //tag
426
+ if(flag){
427
+ ss=temp[j][newtemp[i]]
428
+ continue
429
+ }
430
+ }
431
+ if(temp[j][newtemp[i]]==ss){
432
+ temp[j][newtemp[i]]=temp[j][newtemp[i]]+'*&'
433
+ }else {
434
+ ss=temp[j][newtemp[i]]
435
+ }
436
+ }
437
+ }
438
+ //tag
439
+ this.model.rows=JSON.parse(JSON.stringify(temp))
440
+ }
441
+ },
442
+ computed:{
443
+ exportParameter(){
444
+ // excel 导出条件拼接
445
+ return {
446
+ condition: this.$refs.paged.model.condition,
447
+ groupName: this.groupNameForSql
448
+ }
449
+ }
450
+ }
451
+ }
452
+ </script>
453
+
454
+ <style scoped>
455
+
456
+ .td-0{
457
+ border: 1px solid #000000;
458
+ }
459
+
460
+ .td-1{
461
+ border: none;
462
+ border-top: 1px solid #000000;
463
+ border-left: 1px solid #000000;
464
+ border-right: 1px solid #000000;
465
+ }
466
+
467
+ .td-2{
468
+ border: none;
469
+ border-left: 1px solid #000000;
470
+ border-right: 1px solid #000000;
471
+ }
472
+ .td-4{
473
+ border: none;
474
+ border-top: 1px solid #000000;
475
+ border-left: 1px solid #000000;
476
+ border-right: 1px solid #000000;
477
+ border-bottom: 1px solid #000000;
478
+ }
479
+ .td-3{
480
+ border: none;
481
+ border-left: 1px solid #000000;
482
+ border-right: 1px solid #000000;
483
+ border-bottom: 1px solid #000000;
484
+ }
485
+ </style>