safecheck-client 3.0.30-62-t10 → 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 (246) 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 +16 -60
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +879 -866
  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/android/PhoneUpUserinfo.vue +1376 -1376
  77. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  78. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  79. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  80. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  81. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  82. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  83. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  84. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  85. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  86. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  87. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  88. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  89. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  90. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  91. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  92. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  93. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  94. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  95. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  96. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  97. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  98. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  99. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  100. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  101. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  102. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  103. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  104. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  105. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  106. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  107. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  108. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  109. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  110. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  111. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  112. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  113. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  114. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  115. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  116. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  117. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  118. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  119. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  120. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  121. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  122. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  123. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  124. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  125. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  126. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  127. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  128. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  129. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  130. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  131. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  132. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  133. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  134. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  135. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  136. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  137. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  138. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  139. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  140. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  141. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  142. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  143. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  144. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  145. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  146. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
  147. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  148. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  149. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  150. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  151. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  152. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  153. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  154. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  155. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  156. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  157. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  158. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  159. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  160. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  161. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  162. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  163. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  164. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  165. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  166. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  167. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  168. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  169. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  170. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  171. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  172. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  173. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  174. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  175. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  176. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  177. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  178. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  179. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  180. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  181. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  182. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  183. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  184. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  185. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  186. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  187. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  188. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  189. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  190. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  191. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  192. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  193. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  194. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  195. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  196. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  197. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  198. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  199. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  200. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  201. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  202. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  203. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  204. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  205. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  206. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  207. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  208. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  209. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  210. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  211. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  212. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  213. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  214. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  215. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  216. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  217. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  218. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  219. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  220. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  221. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  222. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  223. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  224. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  225. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  226. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  227. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  228. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  229. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  230. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  231. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  232. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  233. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  234. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  235. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  236. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  237. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  238. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  239. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  240. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  241. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  242. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  243. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  244. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  245. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  246. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,505 +1,505 @@
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 :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>-->
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
- </tr>
176
- </template>
177
- <template partial="foot">
178
- <tr>
179
- <td style="text-align:center"><strong>合计:</strong></td>
180
- <td style="text-align:center" :colspan="$parent.$parent.$parent.nameForSql.length"></td>
181
- <td style="text-align:center"><strong>{{model.sums.f_plan_total}}</strong></td>
182
- <td style="text-align:center"><strong>{{model.sums.f_weijian}}</strong></td>
183
- <td style="text-align:center"><nobr><strong>{{model.sums.f_yijian}}</strong></nobr></td>
184
- <td style="text-align:center"><nobr><strong>{{model.sums.f_ruhu}}</strong></nobr></td>
185
- <td style="text-align:center"><nobr><strong>{{model.sums.f_buyu}}</strong></nobr></td>
186
- <td style="text-align:center"><nobr><strong>{{model.sums.f_jujian}}</strong></nobr></td>
187
- <td style="text-align:center"><strong>{{model.sums.f_plan_total>0?(model.sums.f_yijian/model.sums.f_plan_total*100).toFixed(2)+'%':0}}</strong></td>
188
- </tr >
189
- </template>
190
- </data-grid>
191
- </criteria-paged>
192
- </div>
193
- </template>
194
-
195
- <script>
196
- /**
197
- *阶梯气价查询列表
198
- */
199
- import {PagedList} from 'vue-client'
200
- import { HttpResetClass } from 'vue-client'
201
- import * as Util from "../Util";
202
- import XLSX from 'xlsx'
203
- export default {
204
- data () {
205
- return {
206
- model: new PagedList('api/af-safecheck/sql/getCheckPlanAreaList', 99999,{},{f_plan_total:'',f_weijian:'',f_yijian:'',f_ruhu:'',f_buyu:'',f_jujian:''}),
207
- // 公司下拉
208
- curorgid: [this.$login.f.orgid],
209
- row: {},
210
- f_orgid: '',
211
- nameForSql: [],
212
- groupNameForSql: '',
213
- listflag:false,
214
- nameflag:false,
215
- criteriaShow: false,
216
- f_check_start:new Date().getFullYear() + '-01',
217
- f_check_end:new Date().getFullYear() + '-12',
218
- planName:[{label: '全部', value: ''}],
219
- exportExcelField: {
220
- 'f_weijian':'未检',
221
- 'f_yijian':'已检',
222
- 'f_ruhu':'入户',
223
- 'f_buyu':'到访不遇',
224
- 'f_jujian':'拒检',
225
- 'f_check_bv':'安检率'
226
- }
227
- }
228
- },
229
- props: {
230
- row: {},
231
- config: {},
232
- ispartial: false,
233
- f_filialeid: {
234
- type: String
235
- }
236
- },
237
- ready () {
238
- this.nameForSql = ['f_plan_month', 'f_plan_name','f_checker_name']
239
- this.groupNameForSql = 'f_plan_month', 'f_plan_name','f_checker_name'
240
- this.pl()
241
- // this.search()
242
-
243
- },
244
- methods: {
245
- exportexcel(){
246
- //tag
247
- // 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
248
- const aa = document.getElementsByClassName("list_area table_sy excelid")[0]
249
- console.log(aa)
250
- let workbook = XLSX.utils.table_to_book(document.getElementsByClassName("list_area table_sy excelid")[0])
251
- try {
252
- XLSX.writeFile(workbook, '安检情况汇总导出.xlsx');
253
- } catch(e) {
254
- //tag;
255
- }
256
- },
257
- // 获取导出列
258
- getexportExcelField(){
259
- this.exportExcelField = {
260
- 'f_weijian':'未检',
261
- 'f_yijian':'已检',
262
- 'f_ruhu':'入户',
263
- 'f_buyu':'到访不遇',
264
- 'f_jujian':'拒检',
265
- 'f_check_bv':'安检率',
266
- 'f_plan_total':'计划总数'
267
- }
268
- let forName = this.groupNameForSql.split(",")
269
- for (let i = 0; i < forName.length; i++) {
270
- let ff = forName[i]
271
- if (ff==='f_plan_month') {
272
- this.exportExcelField.f_plan_month='计划月份'
273
- }
274
- if (ff==='f_no_checkplan') {
275
- this.exportExcelField.f_no_checkplan='计划类型'
276
- }
277
- if (ff==='f_plan_name') {
278
- this.exportExcelField.f_plan_name='计划名称'
279
- }
280
- if (ff==='f_checker_name') {
281
- this.exportExcelField.f_checker_name='安检员'
282
- }if (ff==='f_residential_area') {
283
- this.exportExcelField.f_residential_area='小区名称'
284
- }if (ff==='f_user_number') {
285
- this.exportExcelField.f_user_number='档案数量'
286
- }
287
- }
288
- },
289
- pl() {
290
- let getGasman = new HttpResetClass()
291
- getGasman.load('POST', `api/af-safecheck/sql/safe_singleTable_OrderBy`, {
292
- data: {
293
- items: "id,f_plan_name",
294
- tablename: "t_check_plan",
295
- condition: `f_filialeid = '${this.curorgid}'`,
296
- orderitem: "id"
297
- }
298
- }, {resolveMsg: null, rejectMsg: null}).then((plne) => {
299
- //tag
300
- //tag
301
- //tag
302
- for (let i = 0; i < plne.data.length; i++) {
303
- this.planName.push({label: plne.data[i].f_plan_name, value: plne.data[i].id})
304
- }
305
- //tag
306
- })
307
- },
308
- hiddenr() {
309
- this.$parent.isdetail = !this.$parent.isdetail
310
- },
311
- hidden() {
312
- this.criteriaShow = !this.criteriaShow
313
- },
314
- search () {
315
- this.$refs.paged.$refs.cri.search()
316
- this.$dispatch('search')
317
- },
318
- getorg (val) {
319
- this.f_orgid = this.$login.convertToIn(val.resids)
320
- this.f_filialeid = val[0]
321
-
322
- },
323
- selfSearch (args) {
324
- if (!this.f_orgid) {
325
- this.getorg([this.$login.f.orgid])
326
- args.condition = `f_filialeid in ('${this.$login.f.orgid}') and ${args.condition}`
327
- }
328
- if (this.f_orgid) {
329
- args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
330
- }
331
- if(this.f_check_start && this.f_check_end){
332
- if(new Date(this.f_check_start).getFullYear() == new Date(this.f_check_end).getFullYear() ){
333
- 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}`
334
- }else {
335
- args.condition += ` and (
336
- (f_year = ${new Date(this.f_check_start).getFullYear()} and f_month >= ${new Date(this.f_check_start).getMonth()+1})
337
- or
338
- ( f_year > ${new Date(this.f_check_start).getFullYear()} and f_year < ${new Date(this.f_check_end).getFullYear()})
339
- or
340
- (f_year = ${new Date(this.f_check_end).getFullYear()} and f_month <= ${new Date(this.f_check_end).getMonth()+1}))`
341
- }
342
- } else {
343
- if(this.f_check_start){
344
- args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1}`
345
- }
346
- if(this.f_check_end){
347
- args.condition += ` and f_year<=${new Date(this.f_check_end).getFullYear()} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
348
- }
349
- }
350
- this.$refs.paged.$refs.grid.$el.scrollTop = 0
351
- if (this.groupNameForSql=='undefined'){
352
- //tag
353
- this.$showMessage("请至少选择一项进行汇总")
354
- return
355
- }
356
- this.model.paramSource = {groupName: `'${this.groupNameForSql}'`}
357
- this.model.search(args.condition, args.model)
358
- },
359
-
360
- // 拼接groupName1
361
- getGroupName1 () {
362
- var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
363
- var newtemp=[]
364
-
365
- for (var i=0;i<temp.length;i++){
366
- for (var j=0;j<this.nameForSql.length;j++){
367
- //tag
368
- if(temp[i]==this.nameForSql[j]){
369
- newtemp.push(this.nameForSql[j])
370
- }
371
- }
372
- }
373
- let str = ''
374
-
375
- for (var i=0;i < newtemp.length - 1; i++) {
376
- str += newtemp[i] + ','
377
- }
378
- str += newtemp[i]
379
- this.groupNameForSql = str.trim()
380
- }
381
- },
382
- watch: {
383
- // 'nameForSql' () {
384
- //
385
- // this.getGroupName1()
386
- // },
387
- 'nameForSql' () {
388
- var e = document.createEvent("MouseEvents");
389
- e.initEvent("click", true, true);
390
- document.getElementById("btnaaa").dispatchEvent(e);
391
- },
392
- 'model.rows'(){
393
- //tag
394
- if(this.listflag){
395
- return;
396
- }
397
- this.listflag=true
398
- //tag
399
- var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
400
- var newtemp=[]
401
- for (var i=0;i<temp.length;i++){
402
- for (var j=0;j<this.nameForSql.length;j++){
403
- //tag
404
- if(temp[i]==this.nameForSql[j]){
405
- newtemp.push(this.nameForSql[j])
406
- }
407
- }
408
- }
409
- if((newtemp.includes('f_user_number')&&newtemp.length==2)||(!newtemp.includes('f_user_number')&&newtemp.length==1)){
410
- return
411
- }
412
- var temp=JSON.parse(JSON.stringify(this.model.rows))
413
-
414
- //遍历查询结果 为指定列增加样式
415
- for (var i=0;i<newtemp.length-1;i++){
416
- if(newtemp[i]=='f_user_number'){
417
- return;
418
- }
419
- //tag
420
- var ss=''
421
- for (var j=0;j<temp.length;j++){
422
- if(j>0&&i>0){
423
- var flag=false
424
- for(var t=i-1;t>-1;t--){
425
- //tag
426
- //tag
427
- //tag
428
- //tag
429
- if(temp[j-1][newtemp[t]]!=temp[j][newtemp[t]]&&(temp[j][newtemp[t]] !=null && temp[j][newtemp[t]].indexOf('*&') )==-1){
430
- flag=true
431
- break
432
- }
433
- }
434
- //tag
435
- if(flag){
436
- ss=temp[j][newtemp[i]]
437
- continue
438
- }
439
- }
440
- if(temp[j][newtemp[i]]==ss){
441
- temp[j][newtemp[i]]=temp[j][newtemp[i]]+'*&'
442
- }else {
443
- ss=temp[j][newtemp[i]]
444
- }
445
- }
446
- }
447
- //tag
448
- this.model.rows=JSON.parse(JSON.stringify(temp))
449
- },
450
- 'model.rows.length'() {
451
- // 如果查询无结果,将合计置为0
452
- if(this.model.rows.length < 1){
453
- this.model.sums.f_plan_total = 0
454
- this.model.sums.f_weijian = 0
455
- this.model.sums.f_yijian = 0
456
- this.model.sums.f_ruhu = 0
457
- this.model.sums.f_buyu = 0
458
- this.model.sums.f_jujian = 0
459
- }
460
- }
461
- },
462
- computed:{
463
- exportParameter(){
464
- // excel 导出条件拼接
465
- return {
466
- condition: this.$refs.paged.model.condition,
467
- groupName: this.groupNameForSql
468
- }
469
- }
470
- }
471
- }
472
- </script>
473
-
474
- <style scoped>
475
-
476
- .td-0{
477
- border: 1px solid #000000;
478
- }
479
-
480
- .td-1{
481
- border: none;
482
- border-top: 1px solid #000000;
483
- border-left: 1px solid #000000;
484
- border-right: 1px solid #000000;
485
- }
486
-
487
- .td-2{
488
- border: none;
489
- border-left: 1px solid #000000;
490
- border-right: 1px solid #000000;
491
- }
492
- .td-4{
493
- border: none;
494
- border-top: 1px solid #000000;
495
- border-left: 1px solid #000000;
496
- border-right: 1px solid #000000;
497
- border-bottom: 1px solid #000000;
498
- }
499
- .td-3{
500
- border: none;
501
- border-left: 1px solid #000000;
502
- border-right: 1px solid #000000;
503
- border-bottom: 1px solid #000000;
504
- }
505
- </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 :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>-->
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
+ </tr>
176
+ </template>
177
+ <template partial="foot">
178
+ <tr>
179
+ <td style="text-align:center"><strong>合计:</strong></td>
180
+ <td style="text-align:center" :colspan="$parent.$parent.$parent.nameForSql.length"></td>
181
+ <td style="text-align:center"><strong>{{model.sums.f_plan_total}}</strong></td>
182
+ <td style="text-align:center"><strong>{{model.sums.f_weijian}}</strong></td>
183
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_yijian}}</strong></nobr></td>
184
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_ruhu}}</strong></nobr></td>
185
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_buyu}}</strong></nobr></td>
186
+ <td style="text-align:center"><nobr><strong>{{model.sums.f_jujian}}</strong></nobr></td>
187
+ <td style="text-align:center"><strong>{{model.sums.f_plan_total>0?(model.sums.f_yijian/model.sums.f_plan_total*100).toFixed(2)+'%':0}}</strong></td>
188
+ </tr >
189
+ </template>
190
+ </data-grid>
191
+ </criteria-paged>
192
+ </div>
193
+ </template>
194
+
195
+ <script>
196
+ /**
197
+ *阶梯气价查询列表
198
+ */
199
+ import {PagedList} from 'vue-client'
200
+ import { HttpResetClass } from 'vue-client'
201
+ import * as Util from "../Util";
202
+ import XLSX from 'xlsx'
203
+ export default {
204
+ data () {
205
+ return {
206
+ model: new PagedList('api/af-safecheck/sql/getCheckPlanAreaList', 99999,{},{f_plan_total:'',f_weijian:'',f_yijian:'',f_ruhu:'',f_buyu:'',f_jujian:''}),
207
+ // 公司下拉
208
+ curorgid: [this.$login.f.orgid],
209
+ row: {},
210
+ f_orgid: '',
211
+ nameForSql: [],
212
+ groupNameForSql: '',
213
+ listflag:false,
214
+ nameflag:false,
215
+ criteriaShow: false,
216
+ f_check_start:new Date().getFullYear() + '-01',
217
+ f_check_end:new Date().getFullYear() + '-12',
218
+ planName:[{label: '全部', value: ''}],
219
+ exportExcelField: {
220
+ 'f_weijian':'未检',
221
+ 'f_yijian':'已检',
222
+ 'f_ruhu':'入户',
223
+ 'f_buyu':'到访不遇',
224
+ 'f_jujian':'拒检',
225
+ 'f_check_bv':'安检率'
226
+ }
227
+ }
228
+ },
229
+ props: {
230
+ row: {},
231
+ config: {},
232
+ ispartial: false,
233
+ f_filialeid: {
234
+ type: String
235
+ }
236
+ },
237
+ ready () {
238
+ this.nameForSql = ['f_plan_month', 'f_plan_name','f_checker_name']
239
+ this.groupNameForSql = 'f_plan_month', 'f_plan_name','f_checker_name'
240
+ this.pl()
241
+ // this.search()
242
+
243
+ },
244
+ methods: {
245
+ exportexcel(){
246
+ //tag
247
+ // 以上四行也可以直接一行搞定,如果不需要对表格数据进行修改的话
248
+ const aa = document.getElementsByClassName("list_area table_sy excelid")[0]
249
+ console.log(aa)
250
+ let workbook = XLSX.utils.table_to_book(document.getElementsByClassName("list_area table_sy excelid")[0])
251
+ try {
252
+ XLSX.writeFile(workbook, '安检情况汇总导出.xlsx');
253
+ } catch(e) {
254
+ //tag;
255
+ }
256
+ },
257
+ // 获取导出列
258
+ getexportExcelField(){
259
+ this.exportExcelField = {
260
+ 'f_weijian':'未检',
261
+ 'f_yijian':'已检',
262
+ 'f_ruhu':'入户',
263
+ 'f_buyu':'到访不遇',
264
+ 'f_jujian':'拒检',
265
+ 'f_check_bv':'安检率',
266
+ 'f_plan_total':'计划总数'
267
+ }
268
+ let forName = this.groupNameForSql.split(",")
269
+ for (let i = 0; i < forName.length; i++) {
270
+ let ff = forName[i]
271
+ if (ff==='f_plan_month') {
272
+ this.exportExcelField.f_plan_month='计划月份'
273
+ }
274
+ if (ff==='f_no_checkplan') {
275
+ this.exportExcelField.f_no_checkplan='计划类型'
276
+ }
277
+ if (ff==='f_plan_name') {
278
+ this.exportExcelField.f_plan_name='计划名称'
279
+ }
280
+ if (ff==='f_checker_name') {
281
+ this.exportExcelField.f_checker_name='安检员'
282
+ }if (ff==='f_residential_area') {
283
+ this.exportExcelField.f_residential_area='小区名称'
284
+ }if (ff==='f_user_number') {
285
+ this.exportExcelField.f_user_number='档案数量'
286
+ }
287
+ }
288
+ },
289
+ pl() {
290
+ let getGasman = new HttpResetClass()
291
+ getGasman.load('POST', `api/af-safecheck/sql/safe_singleTable_OrderBy`, {
292
+ data: {
293
+ items: "id,f_plan_name",
294
+ tablename: "t_check_plan",
295
+ condition: `f_filialeid = '${this.curorgid}'`,
296
+ orderitem: "id"
297
+ }
298
+ }, {resolveMsg: null, rejectMsg: null}).then((plne) => {
299
+ //tag
300
+ //tag
301
+ //tag
302
+ for (let i = 0; i < plne.data.length; i++) {
303
+ this.planName.push({label: plne.data[i].f_plan_name, value: plne.data[i].id})
304
+ }
305
+ //tag
306
+ })
307
+ },
308
+ hiddenr() {
309
+ this.$parent.isdetail = !this.$parent.isdetail
310
+ },
311
+ hidden() {
312
+ this.criteriaShow = !this.criteriaShow
313
+ },
314
+ search () {
315
+ this.$refs.paged.$refs.cri.search()
316
+ this.$dispatch('search')
317
+ },
318
+ getorg (val) {
319
+ this.f_orgid = this.$login.convertToIn(val.resids)
320
+ this.f_filialeid = val[0]
321
+
322
+ },
323
+ selfSearch (args) {
324
+ if (!this.f_orgid) {
325
+ this.getorg([this.$login.f.orgid])
326
+ args.condition = `f_filialeid in ('${this.$login.f.orgid}') and ${args.condition}`
327
+ }
328
+ if (this.f_orgid) {
329
+ args.condition = `f_filialeid in ${this.f_orgid} and ${args.condition}`
330
+ }
331
+ if(this.f_check_start && this.f_check_end){
332
+ if(new Date(this.f_check_start).getFullYear() == new Date(this.f_check_end).getFullYear() ){
333
+ 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}`
334
+ }else {
335
+ args.condition += ` and (
336
+ (f_year = ${new Date(this.f_check_start).getFullYear()} and f_month >= ${new Date(this.f_check_start).getMonth()+1})
337
+ or
338
+ ( f_year > ${new Date(this.f_check_start).getFullYear()} and f_year < ${new Date(this.f_check_end).getFullYear()})
339
+ or
340
+ (f_year = ${new Date(this.f_check_end).getFullYear()} and f_month <= ${new Date(this.f_check_end).getMonth()+1}))`
341
+ }
342
+ } else {
343
+ if(this.f_check_start){
344
+ args.condition += ` and f_year>=${new Date(this.f_check_start).getFullYear()} and f_month>=${new Date(this.f_check_start).getMonth()+1}`
345
+ }
346
+ if(this.f_check_end){
347
+ args.condition += ` and f_year<=${new Date(this.f_check_end).getFullYear()} and f_month<=${new Date(this.f_check_end).getMonth()+1}`
348
+ }
349
+ }
350
+ this.$refs.paged.$refs.grid.$el.scrollTop = 0
351
+ if (this.groupNameForSql=='undefined'){
352
+ //tag
353
+ this.$showMessage("请至少选择一项进行汇总")
354
+ return
355
+ }
356
+ this.model.paramSource = {groupName: `'${this.groupNameForSql}'`}
357
+ this.model.search(args.condition, args.model)
358
+ },
359
+
360
+ // 拼接groupName1
361
+ getGroupName1 () {
362
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
363
+ var newtemp=[]
364
+
365
+ for (var i=0;i<temp.length;i++){
366
+ for (var j=0;j<this.nameForSql.length;j++){
367
+ //tag
368
+ if(temp[i]==this.nameForSql[j]){
369
+ newtemp.push(this.nameForSql[j])
370
+ }
371
+ }
372
+ }
373
+ let str = ''
374
+
375
+ for (var i=0;i < newtemp.length - 1; i++) {
376
+ str += newtemp[i] + ','
377
+ }
378
+ str += newtemp[i]
379
+ this.groupNameForSql = str.trim()
380
+ }
381
+ },
382
+ watch: {
383
+ // 'nameForSql' () {
384
+ //
385
+ // this.getGroupName1()
386
+ // },
387
+ 'nameForSql' () {
388
+ var e = document.createEvent("MouseEvents");
389
+ e.initEvent("click", true, true);
390
+ document.getElementById("btnaaa").dispatchEvent(e);
391
+ },
392
+ 'model.rows'(){
393
+ //tag
394
+ if(this.listflag){
395
+ return;
396
+ }
397
+ this.listflag=true
398
+ //tag
399
+ var temp=['f_plan_month','f_no_checkplan','f_residential_area','f_plan_name','f_checker_name','f_user_number']
400
+ var newtemp=[]
401
+ for (var i=0;i<temp.length;i++){
402
+ for (var j=0;j<this.nameForSql.length;j++){
403
+ //tag
404
+ if(temp[i]==this.nameForSql[j]){
405
+ newtemp.push(this.nameForSql[j])
406
+ }
407
+ }
408
+ }
409
+ if((newtemp.includes('f_user_number')&&newtemp.length==2)||(!newtemp.includes('f_user_number')&&newtemp.length==1)){
410
+ return
411
+ }
412
+ var temp=JSON.parse(JSON.stringify(this.model.rows))
413
+
414
+ //遍历查询结果 为指定列增加样式
415
+ for (var i=0;i<newtemp.length-1;i++){
416
+ if(newtemp[i]=='f_user_number'){
417
+ return;
418
+ }
419
+ //tag
420
+ var ss=''
421
+ for (var j=0;j<temp.length;j++){
422
+ if(j>0&&i>0){
423
+ var flag=false
424
+ for(var t=i-1;t>-1;t--){
425
+ //tag
426
+ //tag
427
+ //tag
428
+ //tag
429
+ if(temp[j-1][newtemp[t]]!=temp[j][newtemp[t]]&&(temp[j][newtemp[t]] !=null && temp[j][newtemp[t]].indexOf('*&') )==-1){
430
+ flag=true
431
+ break
432
+ }
433
+ }
434
+ //tag
435
+ if(flag){
436
+ ss=temp[j][newtemp[i]]
437
+ continue
438
+ }
439
+ }
440
+ if(temp[j][newtemp[i]]==ss){
441
+ temp[j][newtemp[i]]=temp[j][newtemp[i]]+'*&'
442
+ }else {
443
+ ss=temp[j][newtemp[i]]
444
+ }
445
+ }
446
+ }
447
+ //tag
448
+ this.model.rows=JSON.parse(JSON.stringify(temp))
449
+ },
450
+ 'model.rows.length'() {
451
+ // 如果查询无结果,将合计置为0
452
+ if(this.model.rows.length < 1){
453
+ this.model.sums.f_plan_total = 0
454
+ this.model.sums.f_weijian = 0
455
+ this.model.sums.f_yijian = 0
456
+ this.model.sums.f_ruhu = 0
457
+ this.model.sums.f_buyu = 0
458
+ this.model.sums.f_jujian = 0
459
+ }
460
+ }
461
+ },
462
+ computed:{
463
+ exportParameter(){
464
+ // excel 导出条件拼接
465
+ return {
466
+ condition: this.$refs.paged.model.condition,
467
+ groupName: this.groupNameForSql
468
+ }
469
+ }
470
+ }
471
+ }
472
+ </script>
473
+
474
+ <style scoped>
475
+
476
+ .td-0{
477
+ border: 1px solid #000000;
478
+ }
479
+
480
+ .td-1{
481
+ border: none;
482
+ border-top: 1px solid #000000;
483
+ border-left: 1px solid #000000;
484
+ border-right: 1px solid #000000;
485
+ }
486
+
487
+ .td-2{
488
+ border: none;
489
+ border-left: 1px solid #000000;
490
+ border-right: 1px solid #000000;
491
+ }
492
+ .td-4{
493
+ border: none;
494
+ border-top: 1px solid #000000;
495
+ border-left: 1px solid #000000;
496
+ border-right: 1px solid #000000;
497
+ border-bottom: 1px solid #000000;
498
+ }
499
+ .td-3{
500
+ border: none;
501
+ border-left: 1px solid #000000;
502
+ border-right: 1px solid #000000;
503
+ border-bottom: 1px solid #000000;
504
+ }
505
+ </style>