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,690 +1,690 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">设备编号</label>
9
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
- id="f_userinfo_code"
11
-
12
- placeholder="设备编号" condition="d1.f_userinfo_code like '%{}%'">
13
- </div>
14
- <div :class="$parent.$parent.style">
15
- <label class="font_normal_body">设备名称</label>
16
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
17
- placeholder="设备名称" condition="f_user_name like '%{}%'">
18
- </div>
19
- <div :class="$parent.$parent.style">
20
- <label class="font_normal_body">设备类型</label>
21
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
22
- id="f_residential_area"
23
- placeholder="设备类型" condition="f_residential_area like '%{}%'">
24
- </div>
25
- <div :class="$parent.$parent.style">
26
- <label class="font_normal_body">设备地址</label>
27
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
28
- placeholder="设备地址" condition="f_address like '%{}%'">
29
- </div>
30
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
31
- <export-excel :data="$parent.$parent.searchData"
32
- :field="$parent.$parent.excelHeaders"
33
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="QueryShebeiDetail"
34
- template-name='设备维护情况台账'></export-excel>
35
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
36
- <div style="float: right" class="button_spacing"
37
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
38
- @click="$parent.$parent.hiddenr()"></div>
39
- <div style="float: right" class="button_spacing"
40
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
- @click="$parent.$parent.hidden()">
42
-
43
- </div>
44
- </div>
45
-
46
-
47
- </div>
48
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
49
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
50
- <label class="font_normal_body">维护起始</label>
51
- <datepicker
52
- :value.sync="model.f_check_start"
53
- placeholder='最后维护时间起始'
54
- style="width: 60%"
55
- :format="'yyyy-MM-dd 00:00:00'"
56
- condition="weihushijian > '{}'"
57
- :show-rest-button="reset"
58
- v-model="model.f_check_start">
59
- </datepicker>
60
- </div>
61
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
62
- <label class="font_normal_body">维护结束</label>
63
- <datepicker
64
- :value.sync="model.f_check_end"
65
- placeholder='最后维护时间结束'
66
- style="width: 60%"
67
- :format="'yyyy-MM-dd 23:59:59'"
68
- condition="weihushijian < '{}'"
69
- :show-rest-button="reset"
70
- v-model="model.f_check_end">
71
- </datepicker>
72
- </div>
73
-
74
- </div>
75
-
76
- <div class="row" v-show="$parent.$parent.$parent.showItem">
77
- <div :class="$parent.$parent.style">
78
- <label class="font_normal_body">设备编号</label>
79
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
80
-
81
- placeholder="设备编号" condition="d1.f_userinfo_code like '%{}%'">
82
- </div>
83
- <div :class="$parent.$parent.style">
84
- <label class="font_normal_body">设备名称</label>
85
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
86
- placeholder="设备名称" condition="f_user_name like '%{}%'">
87
- </div>
88
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
89
- <export-excel :data="$parent.$parent.searchData"
90
- :field="$parent.$parent.excelHeaders"
91
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="QueryShebeiDetail"
92
- template-name='设备维护情况台账'></export-excel>
93
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
94
- <div style="float: right" class="button_spacing"
95
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
96
- @click="$parent.$parent.hiddenr()"></div>
97
- <div style="float: right" class="button_spacing"
98
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
99
- @click="$parent.$parent.hidden()">
100
-
101
- </div>
102
- </div>
103
-
104
- </div>
105
- <div class="row" v-show="$parent.$parent.$parent.showItem">
106
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
107
- <label class="font_normal_body">设备类型</label>
108
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
109
-
110
- placeholder="设备类型" condition="f_residential_area like '%{}%'">
111
- </div>
112
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
113
- <label class="font_normal_body">设备地址</label>
114
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
115
-
116
- placeholder="设备地址" condition="f_address like '%{}%'">
117
- </div>
118
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
119
- <label class="font_normal_body">维护起始</label>
120
- <datepicker
121
- :value.sync="model.f_check_start"
122
- placeholder='最后维护时间起始'
123
- :disabled-days-of-week="[]"
124
- style="width: 60%"
125
- :format="'yyyy-MM-dd 00:00:00'"
126
- condition="weihushijian > '{}'"
127
- :show-rest-button="reset"
128
- v-model="model.f_check_start">
129
- </datepicker>
130
- </div>
131
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
132
- <label class="font_normal_body">维护结束</label>
133
- <datepicker
134
- :value.sync="model.f_check_end"
135
- placeholder='最后维护时间结束'
136
- style="width: 60%"
137
- :disabled-days-of-week="[]"
138
- :format="'yyyy-MM-dd 23:59:59'"
139
- :show-rest-button="reset"
140
- condition="weihushijian < '{}'"
141
- v-model="model.f_check_end">
142
- </datepicker>
143
- </div>
144
- </div>
145
- </div>
146
- </criteria>
147
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
148
- <template partial='head'>
149
- <tr>
150
- <th>
151
- <nobr>设备编号</nobr>
152
- </th>
153
- <th>
154
- <nobr>设备名称</nobr>
155
- </th>
156
- <th>
157
- <nobr>设备电话</nobr>
158
- </th>
159
- <th>
160
- <nobr>设备类型</nobr>
161
- </th>
162
- <th>
163
- <nobr>设备地址</nobr>
164
- </th>
165
- <th>
166
- <nobr>最后维护人员</nobr>
167
- </th>
168
- <th>
169
- <nobr>最后维护时间</nobr>
170
- </th>
171
- <th>
172
- <nobr>最后维护备注</nobr>
173
- </th>
174
- <!-- <th>-->
175
- <!-- <nobr>安检日期</nobr>-->
176
- <!-- </th>-->
177
- </tr>
178
- </template>
179
- <template partial='body'>
180
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
181
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
182
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
183
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
184
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
185
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
186
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.weihushijian }}</td>
187
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.beizhu }}</td>
188
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.weihushijian }}</td>-->
189
-
190
- </template>
191
- </data-grid>
192
- </criteria-paged>
193
- </div>
194
- </template>
195
-
196
- <script>
197
- import {PagedList} from 'vue-client'
198
- import {HttpResetClass} from 'vue-client'
199
- import co from 'co'
200
- import * as Util from './../Util'
201
- import Vue from 'vue'
202
-
203
- // let select = function * (self,userid) {
204
- // let http = new HttpResetClass()
205
- // let getGasman = yield http.load('POST','/rs/search', {
206
- // source: 'this.getChildByName($安检员$).getUsers()',
207
- // userid: userid
208
- // }, {resolveMsg: null, rejectMsg: null})
209
- // //tag
210
- // getGasman.data.forEach((checker)=>{
211
- // self.checkersid.push({label:checker.name,value:checker.id})
212
- // })
213
- // self.checkersid.push({label:'全部',value:''})
214
- // }
215
-
216
-
217
- export default {
218
- title: '用户安检情况',
219
- data() {
220
- let options = []
221
- let year = (new Date()).getFullYear()
222
- for (let i = year; i <= year + 3; i++)
223
- options.push({label: i + '', value: i + ''})
224
- let moptions = []
225
- for (let i = 1; i <= 12; i++)
226
- moptions.push({label: i + '', value: i + ''})
227
-
228
- return {
229
- searchData: {
230
- condition: '1=1'
231
- },
232
- excelHeaders: {
233
- //设备编号 设备名称 设备电话 安检次数 用户类型 设备类型名称 设备地址 安检日期 安检状态 安检结果
234
- 'f_userinfo_code': '设备编号',
235
- 'f_user_name': '设备名称',
236
- 'f_user_phone': '设备电话',
237
- 'f_residential_area': '设备类型',
238
- 'f_address': '设备地址',
239
- 'f_checker_name': '最后维护人员',
240
- 'weihushijian': '最后维护日期',
241
- 'beizhu': '最后维护备注'
242
- },
243
- model: new PagedList('api/af-safecheck/sql/QueryShebeiDetail', 20, {
244
- }),
245
- f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', ua.f_last_check_result ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( ua.f_last_check_result, len( ua.f_last_check_result ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
246
- orgstrs: [{label: '全部', value: ''}],
247
- checkersid: [],
248
- SafeCheckXZ: '',
249
- civil: '', //民用安检周期
250
- civilian: '', //非民用安检周期
251
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
252
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
253
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
254
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
255
- IsShare: '否',
256
- checker: {},
257
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
258
- criteriaShow: false,
259
- checkers: [],
260
- chosenOrg: {id: 0},
261
- showModal: false,
262
- checkedAll: false,
263
- checkrows: [],
264
- adjustables: [],
265
- f_plan_year: year + '',
266
- f_plan_month: moptions[new Date().getMonth()].value,
267
- f_effective_start_time: '', //计划有效起始时间
268
- f_effective_end_time: '', //计划有效结束时间
269
- checkboxModel: {},
270
- c_year_list: options,
271
- c_month_list: moptions,
272
- areas: this.areas(),
273
- checkstatus: this.checkstatus(),
274
- usertypes: this.usertypes(),
275
- userstates: this.userstates(),
276
- sqlname: '',
277
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
278
- creatPlanWay: '',
279
- sliceArea: [],
280
- cbcs:[],
281
- cbc:[]
282
-
283
- }
284
- },
285
- props: {
286
- style: {
287
- type: String,
288
- default: 'col-sm-2 form-group'
289
- },
290
- style2: {
291
- type: String,
292
- default: 'col-sm-4 form-group'
293
- },
294
- checkplan: { // 传入一条安检计划信息
295
- type: Object
296
- },
297
- additemshow: {
298
- type: Boolean,
299
- default: false
300
- }
301
- },
302
- ready() {
303
- // 获取分公司信息
304
- // this.model.f_defect_content=this.f_defect_content
305
- //
306
- // //this.getfengongsi()
307
- // this.model.chosenOrg = {id: 0}
308
- // this.model.f_filialeids = this.$login.f.f_orgids
309
- // this.model.f_filiale = this.$login.f.f_fengongsi
310
- // this.model.f_OrgStr = this.$login.f.orgpathstr
311
- // this.Mreadibook(`('${this.$login.f.orgid}')`)
312
- // this.getAllMeterBook(`('${this.$login.f.orgid}')`)
313
- },
314
- methods: {
315
- getmeterbook(val){
316
-
317
- //tag
318
- this.cbc=[]
319
- this.cbc.push({
320
- label:'全部',
321
- value:''
322
- })
323
- if (val==''){
324
-
325
- this.cbcs.forEach(res=>{
326
- this.cbc.push({
327
- label:res.f_book_name,
328
- value:res.id
329
- })
330
- })
331
- }else{
332
- this.cbcs.forEach(res=>{
333
- if (res.f_book_slice_area==val){
334
- this.cbc.push({
335
- label:res.f_book_name,
336
- value:res.id
337
- })
338
- }
339
- })
340
- }
341
- },
342
- Mreadibook(val){
343
- ////tag
344
- ////tag
345
- this.sliceArea=[]
346
- if (val){
347
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
348
- items: 'name',
349
- tablename: 't_zone',
350
- condition: `parentid in ${val}`,
351
- orderitem: 'id'
352
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
353
- this.sliceArea.push({
354
- label:'全部',
355
- value:''
356
- })
357
- res.data.forEach(ress=>{
358
- this.sliceArea.push({
359
- label:ress.name,
360
- value:ress.name
361
- })
362
- })
363
-
364
- })
365
- }
366
- },
367
- // 获取县域分公司内容
368
- getfengongsi() {
369
- let val = {
370
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
371
- userid: `${this.$login.f.id}`
372
- }
373
- let http = new HttpResetClass()
374
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
375
- res.data.forEach((item) => {
376
- this.orgstrs.push({label: item.name, value: item.id})
377
- })
378
- //tag
379
- })
380
- },
381
- // 县域分公司发生改变
382
- // orgstrchange(val){
383
- // if(val == undefined || val == ''){
384
- // return
385
- // }else {
386
- // this.checkersid = []
387
- // let gen = select(this,val)
388
- // return co(gen)
389
- // }
390
- // },
391
- getDefect(val) {
392
- if (val) {
393
- try {
394
- var defect = JSON.parse(val)
395
- return defect.result
396
- } catch (e) {
397
- //tag
398
- return '正常'
399
- }
400
- }
401
- return '正常'
402
- },
403
- checkerchange(val) {
404
- this.checkboxModel.f_checker = val.name
405
- this.checkboxModel.f_checker_id = val.id
406
- },
407
- search(args) {
408
-
409
-
410
-
411
- this.searchData.condition = args.condition
412
- return this.model.search(args.condition, args.model)
413
- },
414
- checkstatus() {
415
- return this.$appdata.getParam('安检状态') ? [{
416
- label: '全部',
417
- value: ''
418
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
419
- },
420
- usertypes() {
421
- return this.$appdata.getParam('用户类型') ? [{
422
- label: '全部',
423
- value: ''
424
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
425
- },
426
- userstates() {
427
- return this.$appdata.getParam('用户状态') ? [{
428
- label: '全部',
429
- value: ''
430
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
431
- },
432
- hiddenr() {
433
- this.$parent.showItem = !this.$parent.showItem
434
- },
435
- hidden() {
436
- this.criteriaShow = !this.criteriaShow
437
- },
438
- confirm() {
439
- if (!this.checkboxModel.f_plan_name) {
440
- this.$showMessage('请填写安检计划名称!')
441
- return
442
- }
443
- // if(this.f_effective_start_time == ''){
444
- // this.$showMessage('请选择有效起始日期!')
445
- // return
446
- // }
447
- // if(this.f_effective_end_time == ''){
448
- // this.$showMessage('请选择有效结束日期!')
449
- // return
450
- // }
451
- if (this.IsShare == '否') {
452
- if (!this.checkboxModel.f_checker_id) {
453
- this.$showMessage('请选择安检员!')
454
- return
455
- }
456
- }
457
- let gen = saveGen(this)
458
- return co(gen)
459
- },
460
- changeStates() {
461
- if (this.checkedAll) {//实现反选/
462
- this.checkrows = [];
463
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
464
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
465
- }
466
- } else {//实现全选
467
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
468
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
469
- }
470
- let _this = this
471
- let condition = this.$refs.paged.$refs.criteria.condition
472
- let url = this.model.url
473
- this.$resetpost(`${url}?pageSize=9999999`, {
474
- data: {
475
- condition: condition,
476
- groupitem: '',
477
- orderitem: 'f_residential_area',
478
- f_usertype: this.model.f_usertype,
479
- f_filialeids: this.model.f_filialeids,
480
- month: this.model.month,
481
- safeCycle: this.model.safeCycle,
482
- f_checktime_start: this.model.f_checktime_start,
483
- f_checktime_end: this.model.f_checktime_end,
484
- SafeCheckSX: this.model.SafeCheckSX,
485
- f_last_check_state: this.model.f_last_check_state
486
- },
487
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
488
- (respanse) => {
489
- if (respanse.data.length >= 5000) {
490
- this.$showMessage("数据量太大,请重新选择")
491
- } else {
492
- _this.checkrows = []
493
- for (let j = 0; j < respanse.data.length; j++) {
494
- _this.checkrows.push(respanse.data[j])
495
- }
496
- //tag;
497
- }
498
- })
499
- }
500
- },
501
- addChecked(item) {
502
- //tag;
503
- if (!item.checked) {
504
- this.checkrows.push(item);
505
- //tag;
506
- } else {
507
- for (let i = 0; i < this.checkrows.length; i++) {
508
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
509
- this.checkrows.splice(i, 1)
510
- }
511
- }
512
- }
513
- },
514
- ToshowModal() {
515
- this.creatPlanWay = 'single'
516
- if (this.checkrows.length > 0) {
517
- this.showModal = true
518
- } else {
519
- this.$showMessage("请选择需要安检的用户!")
520
- }
521
- },
522
- FiltrationPlan() {
523
- if (this.model.rows.length == 0) {
524
- this.$showMessage("暂无可生成的计划!")
525
- return
526
- }
527
- this.creatPlanWay = 'filtration'
528
- this.showModal = true
529
- },
530
- AllPlan() {
531
- if (this.model.rows.length == 0) {
532
- this.$showMessage("暂无可生成的计划!")
533
- return
534
- }
535
- this.creatPlanWay = 'all'
536
- this.showModal = true
537
- },
538
- cancel() {
539
- this.showModal = false
540
- },
541
- areas() {
542
- let rs = []
543
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
544
- let temp = {
545
- label: this.$login.f.f_allArea[i].label,
546
- value: this.$login.f.f_allArea[i].label
547
- }
548
- rs.push(temp)
549
- }
550
- return [{label: '全部', value: ''}, ...rs]
551
- },
552
- initAdjustables() {
553
- //tag
554
- let arr = []
555
- let filter = this.$login.f.f_orgids
556
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
557
- let temp = {}
558
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
559
- temp.value = `${item.value.id}`
560
- arr.push(temp)
561
- })
562
- this.adjustables = [{label: '全部', value: ''}, ...arr]
563
- },
564
- getAllMeterBook(val){
565
- ////tag
566
- ////tag
567
- this.cbcs=[]
568
- if (val){
569
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
570
- items: 'f_book_name,f_book_slice_area,id',
571
- tablename: 't_meter_book',
572
- condition: `f_filiale_id in ${val}`,
573
- orderitem: 'id'
574
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
575
- res.data.forEach(ress=>{
576
- this.cbcs.push({
577
- id:ress.id,
578
- f_book_name:ress.f_book_name,
579
- f_book_slice_area:ress.f_book_slice_area
580
- })
581
- })
582
- this.cbc=[]
583
- this.cbc.push({
584
- label:'全部',
585
- value:''
586
- })
587
- this.cbcs.forEach(res=>{
588
- this.cbc.push({
589
- label:res.f_book_name,
590
- value:res.id
591
- })
592
- })
593
- })
594
- }
595
- },
596
- getRes(obj) {
597
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
598
- this.Mreadibook(this.model.f_filialeids)
599
- this.getAllMeterBook(this.model.f_filialeids)
600
- }
601
- },
602
-
603
- watch: {
604
- 'model.f_usertype'(val) {
605
- if (val == '民用') {
606
- this.model.safeCycle = this.civil
607
- } else if (val == '非民用') {
608
- this.model.safeCycle = this.civilian
609
- }
610
- },
611
- 'model.SafeCheckXZ'(val) {
612
- this.model.SafeCheckSC = ''
613
- if (val == '已安检') {
614
- this.model.SafeCheckCQ = ''
615
- this.model.SafeCheckSX = {
616
- f_check_end: '', // 安检时间 查询起始条件
617
- f_check_start: ''// 安检时间 查询终止条件
618
- }
619
- } else {
620
- // 当使用筛选条件时,清空不需要的条件选项
621
- this.model.f_issue_start = ''
622
- this.model.f_issue_end = ''
623
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
624
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
625
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
626
- this.model.month = ''
627
- if (val == '应安检') {
628
- this.model.SafeCheckSC = '否'
629
-
630
- this.model.f_issue_start = Util.toStartDateString()
631
- this.model.f_issue_end = Util.toStandardDateString()
632
- }
633
- // this.model.f_checktime_start = ''
634
- // this.model.f_checktime_end = ''
635
- }
636
- },
637
- 'model.SafeCheckSC'(val) {
638
- if (val == '') {
639
- this.model.f_issue_start = ''
640
- this.model.f_issue_end = ''
641
- }
642
- },
643
- // 'checker'(val){
644
- // //tag
645
- // if(val){
646
- // this.checkboxModel.f_checker = this.checker[0].name
647
- // this.checkboxModel.f_checker_id = this.checker[0].id
648
- // }
649
- // },
650
- 'model.rows'() {
651
- // if (!this.checkedAll) {//实现反选/
652
- // this.checkrows = [];
653
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
654
- var k = false
655
- for (let j = 0; j < this.checkrows.length; j++) {
656
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
657
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
658
- k = true
659
- continue
660
- }
661
- }
662
- if (!k) {
663
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
664
- }
665
- }
666
- // } else {//实现全选
667
- // // this.checkboxModel = {};
668
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
669
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
670
- // }
671
- // }
672
- }
673
- },
674
- computed: {
675
- selected() {
676
- return this.$refs.paged.$refs.grid.selected
677
- }
678
- }
679
- }
680
- </script>
681
- <style scoped>
682
- .newcolor {
683
- color: red;
684
- }
685
-
686
- .table th {
687
- background-color: #f2f6fa;
688
- color: black;
689
- }
690
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">设备编号</label>
9
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
+ id="f_userinfo_code"
11
+
12
+ placeholder="设备编号" condition="d1.f_userinfo_code like '%{}%'">
13
+ </div>
14
+ <div :class="$parent.$parent.style">
15
+ <label class="font_normal_body">设备名称</label>
16
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
17
+ placeholder="设备名称" condition="f_user_name like '%{}%'">
18
+ </div>
19
+ <div :class="$parent.$parent.style">
20
+ <label class="font_normal_body">设备类型</label>
21
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
22
+ id="f_residential_area"
23
+ placeholder="设备类型" condition="f_residential_area like '%{}%'">
24
+ </div>
25
+ <div :class="$parent.$parent.style">
26
+ <label class="font_normal_body">设备地址</label>
27
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
28
+ placeholder="设备地址" condition="f_address like '%{}%'">
29
+ </div>
30
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
31
+ <export-excel :data="$parent.$parent.searchData"
32
+ :field="$parent.$parent.excelHeaders"
33
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="QueryShebeiDetail"
34
+ template-name='设备维护情况台账'></export-excel>
35
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
36
+ <div style="float: right" class="button_spacing"
37
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
38
+ @click="$parent.$parent.hiddenr()"></div>
39
+ <div style="float: right" class="button_spacing"
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.hidden()">
42
+
43
+ </div>
44
+ </div>
45
+
46
+
47
+ </div>
48
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
49
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
50
+ <label class="font_normal_body">维护起始</label>
51
+ <datepicker
52
+ :value.sync="model.f_check_start"
53
+ placeholder='最后维护时间起始'
54
+ style="width: 60%"
55
+ :format="'yyyy-MM-dd 00:00:00'"
56
+ condition="weihushijian > '{}'"
57
+ :show-rest-button="reset"
58
+ v-model="model.f_check_start">
59
+ </datepicker>
60
+ </div>
61
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
62
+ <label class="font_normal_body">维护结束</label>
63
+ <datepicker
64
+ :value.sync="model.f_check_end"
65
+ placeholder='最后维护时间结束'
66
+ style="width: 60%"
67
+ :format="'yyyy-MM-dd 23:59:59'"
68
+ condition="weihushijian < '{}'"
69
+ :show-rest-button="reset"
70
+ v-model="model.f_check_end">
71
+ </datepicker>
72
+ </div>
73
+
74
+ </div>
75
+
76
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
77
+ <div :class="$parent.$parent.style">
78
+ <label class="font_normal_body">设备编号</label>
79
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
80
+
81
+ placeholder="设备编号" condition="d1.f_userinfo_code like '%{}%'">
82
+ </div>
83
+ <div :class="$parent.$parent.style">
84
+ <label class="font_normal_body">设备名称</label>
85
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
86
+ placeholder="设备名称" condition="f_user_name like '%{}%'">
87
+ </div>
88
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
89
+ <export-excel :data="$parent.$parent.searchData"
90
+ :field="$parent.$parent.excelHeaders"
91
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="QueryShebeiDetail"
92
+ template-name='设备维护情况台账'></export-excel>
93
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
94
+ <div style="float: right" class="button_spacing"
95
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
96
+ @click="$parent.$parent.hiddenr()"></div>
97
+ <div style="float: right" class="button_spacing"
98
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
99
+ @click="$parent.$parent.hidden()">
100
+
101
+ </div>
102
+ </div>
103
+
104
+ </div>
105
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
106
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
107
+ <label class="font_normal_body">设备类型</label>
108
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
109
+
110
+ placeholder="设备类型" condition="f_residential_area like '%{}%'">
111
+ </div>
112
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
113
+ <label class="font_normal_body">设备地址</label>
114
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
115
+
116
+ placeholder="设备地址" condition="f_address like '%{}%'">
117
+ </div>
118
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
119
+ <label class="font_normal_body">维护起始</label>
120
+ <datepicker
121
+ :value.sync="model.f_check_start"
122
+ placeholder='最后维护时间起始'
123
+ :disabled-days-of-week="[]"
124
+ style="width: 60%"
125
+ :format="'yyyy-MM-dd 00:00:00'"
126
+ condition="weihushijian > '{}'"
127
+ :show-rest-button="reset"
128
+ v-model="model.f_check_start">
129
+ </datepicker>
130
+ </div>
131
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
132
+ <label class="font_normal_body">维护结束</label>
133
+ <datepicker
134
+ :value.sync="model.f_check_end"
135
+ placeholder='最后维护时间结束'
136
+ style="width: 60%"
137
+ :disabled-days-of-week="[]"
138
+ :format="'yyyy-MM-dd 23:59:59'"
139
+ :show-rest-button="reset"
140
+ condition="weihushijian < '{}'"
141
+ v-model="model.f_check_end">
142
+ </datepicker>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </criteria>
147
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
148
+ <template partial='head'>
149
+ <tr>
150
+ <th>
151
+ <nobr>设备编号</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>设备名称</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>设备电话</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>设备类型</nobr>
161
+ </th>
162
+ <th>
163
+ <nobr>设备地址</nobr>
164
+ </th>
165
+ <th>
166
+ <nobr>最后维护人员</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>最后维护时间</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>最后维护备注</nobr>
173
+ </th>
174
+ <!-- <th>-->
175
+ <!-- <nobr>安检日期</nobr>-->
176
+ <!-- </th>-->
177
+ </tr>
178
+ </template>
179
+ <template partial='body'>
180
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
181
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
182
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
183
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
184
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
185
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
186
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.weihushijian }}</td>
187
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.beizhu }}</td>
188
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.weihushijian }}</td>-->
189
+
190
+ </template>
191
+ </data-grid>
192
+ </criteria-paged>
193
+ </div>
194
+ </template>
195
+
196
+ <script>
197
+ import {PagedList} from 'vue-client'
198
+ import {HttpResetClass} from 'vue-client'
199
+ import co from 'co'
200
+ import * as Util from './../Util'
201
+ import Vue from 'vue'
202
+
203
+ // let select = function * (self,userid) {
204
+ // let http = new HttpResetClass()
205
+ // let getGasman = yield http.load('POST','/rs/search', {
206
+ // source: 'this.getChildByName($安检员$).getUsers()',
207
+ // userid: userid
208
+ // }, {resolveMsg: null, rejectMsg: null})
209
+ // //tag
210
+ // getGasman.data.forEach((checker)=>{
211
+ // self.checkersid.push({label:checker.name,value:checker.id})
212
+ // })
213
+ // self.checkersid.push({label:'全部',value:''})
214
+ // }
215
+
216
+
217
+ export default {
218
+ title: '用户安检情况',
219
+ data() {
220
+ let options = []
221
+ let year = (new Date()).getFullYear()
222
+ for (let i = year; i <= year + 3; i++)
223
+ options.push({label: i + '', value: i + ''})
224
+ let moptions = []
225
+ for (let i = 1; i <= 12; i++)
226
+ moptions.push({label: i + '', value: i + ''})
227
+
228
+ return {
229
+ searchData: {
230
+ condition: '1=1'
231
+ },
232
+ excelHeaders: {
233
+ //设备编号 设备名称 设备电话 安检次数 用户类型 设备类型名称 设备地址 安检日期 安检状态 安检结果
234
+ 'f_userinfo_code': '设备编号',
235
+ 'f_user_name': '设备名称',
236
+ 'f_user_phone': '设备电话',
237
+ 'f_residential_area': '设备类型',
238
+ 'f_address': '设备地址',
239
+ 'f_checker_name': '最后维护人员',
240
+ 'weihushijian': '最后维护日期',
241
+ 'beizhu': '最后维护备注'
242
+ },
243
+ model: new PagedList('api/af-safecheck/sql/QueryShebeiDetail', 20, {
244
+ }),
245
+ f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', ua.f_last_check_result ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( ua.f_last_check_result, len( ua.f_last_check_result ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
246
+ orgstrs: [{label: '全部', value: ''}],
247
+ checkersid: [],
248
+ SafeCheckXZ: '',
249
+ civil: '', //民用安检周期
250
+ civilian: '', //非民用安检周期
251
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
252
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
253
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
254
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
255
+ IsShare: '否',
256
+ checker: {},
257
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
258
+ criteriaShow: false,
259
+ checkers: [],
260
+ chosenOrg: {id: 0},
261
+ showModal: false,
262
+ checkedAll: false,
263
+ checkrows: [],
264
+ adjustables: [],
265
+ f_plan_year: year + '',
266
+ f_plan_month: moptions[new Date().getMonth()].value,
267
+ f_effective_start_time: '', //计划有效起始时间
268
+ f_effective_end_time: '', //计划有效结束时间
269
+ checkboxModel: {},
270
+ c_year_list: options,
271
+ c_month_list: moptions,
272
+ areas: this.areas(),
273
+ checkstatus: this.checkstatus(),
274
+ usertypes: this.usertypes(),
275
+ userstates: this.userstates(),
276
+ sqlname: '',
277
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
278
+ creatPlanWay: '',
279
+ sliceArea: [],
280
+ cbcs:[],
281
+ cbc:[]
282
+
283
+ }
284
+ },
285
+ props: {
286
+ style: {
287
+ type: String,
288
+ default: 'col-sm-2 form-group'
289
+ },
290
+ style2: {
291
+ type: String,
292
+ default: 'col-sm-4 form-group'
293
+ },
294
+ checkplan: { // 传入一条安检计划信息
295
+ type: Object
296
+ },
297
+ additemshow: {
298
+ type: Boolean,
299
+ default: false
300
+ }
301
+ },
302
+ ready() {
303
+ // 获取分公司信息
304
+ // this.model.f_defect_content=this.f_defect_content
305
+ //
306
+ // //this.getfengongsi()
307
+ // this.model.chosenOrg = {id: 0}
308
+ // this.model.f_filialeids = this.$login.f.f_orgids
309
+ // this.model.f_filiale = this.$login.f.f_fengongsi
310
+ // this.model.f_OrgStr = this.$login.f.orgpathstr
311
+ // this.Mreadibook(`('${this.$login.f.orgid}')`)
312
+ // this.getAllMeterBook(`('${this.$login.f.orgid}')`)
313
+ },
314
+ methods: {
315
+ getmeterbook(val){
316
+
317
+ //tag
318
+ this.cbc=[]
319
+ this.cbc.push({
320
+ label:'全部',
321
+ value:''
322
+ })
323
+ if (val==''){
324
+
325
+ this.cbcs.forEach(res=>{
326
+ this.cbc.push({
327
+ label:res.f_book_name,
328
+ value:res.id
329
+ })
330
+ })
331
+ }else{
332
+ this.cbcs.forEach(res=>{
333
+ if (res.f_book_slice_area==val){
334
+ this.cbc.push({
335
+ label:res.f_book_name,
336
+ value:res.id
337
+ })
338
+ }
339
+ })
340
+ }
341
+ },
342
+ Mreadibook(val){
343
+ ////tag
344
+ ////tag
345
+ this.sliceArea=[]
346
+ if (val){
347
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
348
+ items: 'name',
349
+ tablename: 't_zone',
350
+ condition: `parentid in ${val}`,
351
+ orderitem: 'id'
352
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
353
+ this.sliceArea.push({
354
+ label:'全部',
355
+ value:''
356
+ })
357
+ res.data.forEach(ress=>{
358
+ this.sliceArea.push({
359
+ label:ress.name,
360
+ value:ress.name
361
+ })
362
+ })
363
+
364
+ })
365
+ }
366
+ },
367
+ // 获取县域分公司内容
368
+ getfengongsi() {
369
+ let val = {
370
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
371
+ userid: `${this.$login.f.id}`
372
+ }
373
+ let http = new HttpResetClass()
374
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
375
+ res.data.forEach((item) => {
376
+ this.orgstrs.push({label: item.name, value: item.id})
377
+ })
378
+ //tag
379
+ })
380
+ },
381
+ // 县域分公司发生改变
382
+ // orgstrchange(val){
383
+ // if(val == undefined || val == ''){
384
+ // return
385
+ // }else {
386
+ // this.checkersid = []
387
+ // let gen = select(this,val)
388
+ // return co(gen)
389
+ // }
390
+ // },
391
+ getDefect(val) {
392
+ if (val) {
393
+ try {
394
+ var defect = JSON.parse(val)
395
+ return defect.result
396
+ } catch (e) {
397
+ //tag
398
+ return '正常'
399
+ }
400
+ }
401
+ return '正常'
402
+ },
403
+ checkerchange(val) {
404
+ this.checkboxModel.f_checker = val.name
405
+ this.checkboxModel.f_checker_id = val.id
406
+ },
407
+ search(args) {
408
+
409
+
410
+
411
+ this.searchData.condition = args.condition
412
+ return this.model.search(args.condition, args.model)
413
+ },
414
+ checkstatus() {
415
+ return this.$appdata.getParam('安检状态') ? [{
416
+ label: '全部',
417
+ value: ''
418
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
419
+ },
420
+ usertypes() {
421
+ return this.$appdata.getParam('用户类型') ? [{
422
+ label: '全部',
423
+ value: ''
424
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
425
+ },
426
+ userstates() {
427
+ return this.$appdata.getParam('用户状态') ? [{
428
+ label: '全部',
429
+ value: ''
430
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
431
+ },
432
+ hiddenr() {
433
+ this.$parent.showItem = !this.$parent.showItem
434
+ },
435
+ hidden() {
436
+ this.criteriaShow = !this.criteriaShow
437
+ },
438
+ confirm() {
439
+ if (!this.checkboxModel.f_plan_name) {
440
+ this.$showMessage('请填写安检计划名称!')
441
+ return
442
+ }
443
+ // if(this.f_effective_start_time == ''){
444
+ // this.$showMessage('请选择有效起始日期!')
445
+ // return
446
+ // }
447
+ // if(this.f_effective_end_time == ''){
448
+ // this.$showMessage('请选择有效结束日期!')
449
+ // return
450
+ // }
451
+ if (this.IsShare == '否') {
452
+ if (!this.checkboxModel.f_checker_id) {
453
+ this.$showMessage('请选择安检员!')
454
+ return
455
+ }
456
+ }
457
+ let gen = saveGen(this)
458
+ return co(gen)
459
+ },
460
+ changeStates() {
461
+ if (this.checkedAll) {//实现反选/
462
+ this.checkrows = [];
463
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
464
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
465
+ }
466
+ } else {//实现全选
467
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
468
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
469
+ }
470
+ let _this = this
471
+ let condition = this.$refs.paged.$refs.criteria.condition
472
+ let url = this.model.url
473
+ this.$resetpost(`${url}?pageSize=9999999`, {
474
+ data: {
475
+ condition: condition,
476
+ groupitem: '',
477
+ orderitem: 'f_residential_area',
478
+ f_usertype: this.model.f_usertype,
479
+ f_filialeids: this.model.f_filialeids,
480
+ month: this.model.month,
481
+ safeCycle: this.model.safeCycle,
482
+ f_checktime_start: this.model.f_checktime_start,
483
+ f_checktime_end: this.model.f_checktime_end,
484
+ SafeCheckSX: this.model.SafeCheckSX,
485
+ f_last_check_state: this.model.f_last_check_state
486
+ },
487
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
488
+ (respanse) => {
489
+ if (respanse.data.length >= 5000) {
490
+ this.$showMessage("数据量太大,请重新选择")
491
+ } else {
492
+ _this.checkrows = []
493
+ for (let j = 0; j < respanse.data.length; j++) {
494
+ _this.checkrows.push(respanse.data[j])
495
+ }
496
+ //tag;
497
+ }
498
+ })
499
+ }
500
+ },
501
+ addChecked(item) {
502
+ //tag;
503
+ if (!item.checked) {
504
+ this.checkrows.push(item);
505
+ //tag;
506
+ } else {
507
+ for (let i = 0; i < this.checkrows.length; i++) {
508
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
509
+ this.checkrows.splice(i, 1)
510
+ }
511
+ }
512
+ }
513
+ },
514
+ ToshowModal() {
515
+ this.creatPlanWay = 'single'
516
+ if (this.checkrows.length > 0) {
517
+ this.showModal = true
518
+ } else {
519
+ this.$showMessage("请选择需要安检的用户!")
520
+ }
521
+ },
522
+ FiltrationPlan() {
523
+ if (this.model.rows.length == 0) {
524
+ this.$showMessage("暂无可生成的计划!")
525
+ return
526
+ }
527
+ this.creatPlanWay = 'filtration'
528
+ this.showModal = true
529
+ },
530
+ AllPlan() {
531
+ if (this.model.rows.length == 0) {
532
+ this.$showMessage("暂无可生成的计划!")
533
+ return
534
+ }
535
+ this.creatPlanWay = 'all'
536
+ this.showModal = true
537
+ },
538
+ cancel() {
539
+ this.showModal = false
540
+ },
541
+ areas() {
542
+ let rs = []
543
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
544
+ let temp = {
545
+ label: this.$login.f.f_allArea[i].label,
546
+ value: this.$login.f.f_allArea[i].label
547
+ }
548
+ rs.push(temp)
549
+ }
550
+ return [{label: '全部', value: ''}, ...rs]
551
+ },
552
+ initAdjustables() {
553
+ //tag
554
+ let arr = []
555
+ let filter = this.$login.f.f_orgids
556
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
557
+ let temp = {}
558
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
559
+ temp.value = `${item.value.id}`
560
+ arr.push(temp)
561
+ })
562
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
563
+ },
564
+ getAllMeterBook(val){
565
+ ////tag
566
+ ////tag
567
+ this.cbcs=[]
568
+ if (val){
569
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
570
+ items: 'f_book_name,f_book_slice_area,id',
571
+ tablename: 't_meter_book',
572
+ condition: `f_filiale_id in ${val}`,
573
+ orderitem: 'id'
574
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
575
+ res.data.forEach(ress=>{
576
+ this.cbcs.push({
577
+ id:ress.id,
578
+ f_book_name:ress.f_book_name,
579
+ f_book_slice_area:ress.f_book_slice_area
580
+ })
581
+ })
582
+ this.cbc=[]
583
+ this.cbc.push({
584
+ label:'全部',
585
+ value:''
586
+ })
587
+ this.cbcs.forEach(res=>{
588
+ this.cbc.push({
589
+ label:res.f_book_name,
590
+ value:res.id
591
+ })
592
+ })
593
+ })
594
+ }
595
+ },
596
+ getRes(obj) {
597
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
598
+ this.Mreadibook(this.model.f_filialeids)
599
+ this.getAllMeterBook(this.model.f_filialeids)
600
+ }
601
+ },
602
+
603
+ watch: {
604
+ 'model.f_usertype'(val) {
605
+ if (val == '民用') {
606
+ this.model.safeCycle = this.civil
607
+ } else if (val == '非民用') {
608
+ this.model.safeCycle = this.civilian
609
+ }
610
+ },
611
+ 'model.SafeCheckXZ'(val) {
612
+ this.model.SafeCheckSC = ''
613
+ if (val == '已安检') {
614
+ this.model.SafeCheckCQ = ''
615
+ this.model.SafeCheckSX = {
616
+ f_check_end: '', // 安检时间 查询起始条件
617
+ f_check_start: ''// 安检时间 查询终止条件
618
+ }
619
+ } else {
620
+ // 当使用筛选条件时,清空不需要的条件选项
621
+ this.model.f_issue_start = ''
622
+ this.model.f_issue_end = ''
623
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
624
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
625
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
626
+ this.model.month = ''
627
+ if (val == '应安检') {
628
+ this.model.SafeCheckSC = '否'
629
+
630
+ this.model.f_issue_start = Util.toStartDateString()
631
+ this.model.f_issue_end = Util.toStandardDateString()
632
+ }
633
+ // this.model.f_checktime_start = ''
634
+ // this.model.f_checktime_end = ''
635
+ }
636
+ },
637
+ 'model.SafeCheckSC'(val) {
638
+ if (val == '') {
639
+ this.model.f_issue_start = ''
640
+ this.model.f_issue_end = ''
641
+ }
642
+ },
643
+ // 'checker'(val){
644
+ // //tag
645
+ // if(val){
646
+ // this.checkboxModel.f_checker = this.checker[0].name
647
+ // this.checkboxModel.f_checker_id = this.checker[0].id
648
+ // }
649
+ // },
650
+ 'model.rows'() {
651
+ // if (!this.checkedAll) {//实现反选/
652
+ // this.checkrows = [];
653
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
654
+ var k = false
655
+ for (let j = 0; j < this.checkrows.length; j++) {
656
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
657
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
658
+ k = true
659
+ continue
660
+ }
661
+ }
662
+ if (!k) {
663
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
664
+ }
665
+ }
666
+ // } else {//实现全选
667
+ // // this.checkboxModel = {};
668
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
669
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
670
+ // }
671
+ // }
672
+ }
673
+ },
674
+ computed: {
675
+ selected() {
676
+ return this.$refs.paged.$refs.grid.selected
677
+ }
678
+ }
679
+ }
680
+ </script>
681
+ <style scoped>
682
+ .newcolor {
683
+ color: red;
684
+ }
685
+
686
+ .table th {
687
+ background-color: #f2f6fa;
688
+ color: black;
689
+ }
690
+ </style>