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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/examples/SafePlan/comp.js +1527 -1527
  2. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  3. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  4. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  5. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  6. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  7. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  8. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  9. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  10. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  11. package/package.json +1 -1
  12. package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
  13. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  14. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  15. package/src/components/checkplan/CheckDetail.vue +205 -205
  16. package/src/components/checkplan/SelectCheckPlan.vue +311 -311
  17. package/src/components/createcheckplan/PlanUersList.vue +137 -137
  18. package/src/components/defect/DefectPaper.vue +764 -764
  19. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  20. package/src/components/inspections/InspectionList.vue +476 -476
  21. package/src/components/inspections/InspectionLists.vue +478 -478
  22. package/src/components/inspections/InspectionListss.vue +477 -477
  23. package/src/components/noplan/NoPlanSearchUser.vue +300 -300
  24. package/src/components/olddata/OldPaperList.vue +340 -340
  25. package/src/components/paper/PaperList.vue +790 -790
  26. package/src/components/paper/filialeCheckInfo.vue +111 -111
  27. package/src/components/pc/CheckNoDetail.vue +209 -209
  28. package/src/components/pc/DefectDeal.vue +997 -997
  29. package/src/components/pc/NewCheckpaper.vue +1957 -1957
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +1 -1
  32. package/src/components/pc/PaperEdit.vue +151 -151
  33. package/src/components/pc/PaperVisitMain.vue +179 -179
  34. package/src/components/pc/SafeVisitHistory.vue +208 -208
  35. package/src/components/pc/SafecheckDeviceList.vue +260 -260
  36. package/src/components/pc/SecurityCheckLedger.vue +133 -133
  37. package/src/components/pc/SelectCheckNoPlan.vue +278 -278
  38. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
  39. package/src/components/planmanage/checkPlanList.vue +369 -369
  40. package/src/components/planmanage/checkUserList.vue +773 -773
  41. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  42. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  43. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  44. package/src/components/report/CheckPlanAreaList.vue +505 -505
  45. package/src/components/report/CheckPlanUserList.vue +216 -216
  46. package/src/components/report/NoCheckplanSafecheck.vue +212 -212
  47. package/src/components/rongcheng/CheckSearchArea.vue +703 -703
  48. package/src/components/rongcheng/CheckSearchUser.vue +936 -936
  49. package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
  50. package/src/components/rongcheng/CheckUserList.vue +205 -205
  51. package/src/components/rongcheng/DefectPaper.vue +676 -676
  52. package/src/components/rongcheng/PaperListAJ.vue +434 -434
  53. package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
  54. package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
  55. package/src/components/rongcheng/PaperListSQ.vue +444 -444
  56. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
  57. package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
  58. package/src/components/safecheckNew/PaperList.vue +785 -785
  59. package/src/components/shaoguan/DefectPaper.vue +217 -217
  60. package/src/components/shaoguan/PaperList.vue +466 -466
  61. package/src/components/userfile/UserInfoAudit.vue +316 -316
  62. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  63. package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
  64. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  65. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
  66. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  67. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  68. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
  69. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  70. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
  71. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  72. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  73. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  74. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  75. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  76. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  77. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  78. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  79. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  80. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  81. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  82. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  83. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  84. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  85. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  86. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  87. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  88. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  89. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  90. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  91. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  92. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  93. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  94. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  95. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  96. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  97. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  98. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  99. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  100. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  101. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  102. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  103. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  104. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  105. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  106. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  107. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  108. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  109. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  110. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  111. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  112. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  113. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  114. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  115. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  116. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  118. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  119. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  120. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  121. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  122. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  123. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  124. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  125. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  126. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  127. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  128. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  129. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  130. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  131. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  132. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  133. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  134. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  135. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  136. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  137. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  138. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  139. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  140. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  141. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  142. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  143. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  144. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  145. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  146. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  147. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  148. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  149. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  150. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  151. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  152. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  153. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  154. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  155. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  156. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  157. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  158. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  159. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  160. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  161. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  162. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  163. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  164. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  165. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  166. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  167. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  168. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  169. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  170. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  171. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  172. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  173. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  174. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  175. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  176. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  177. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  178. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  179. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  180. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  181. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  182. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  183. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  184. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  185. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  186. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  187. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  188. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  189. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  190. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  191. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  192. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  193. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  194. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  195. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  196. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  197. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  198. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  199. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  200. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  201. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  202. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  203. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  204. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  205. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  206. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  207. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  208. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  209. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  210. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  211. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  212. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  213. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  214. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  215. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  216. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  217. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  218. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  219. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  220. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  221. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  222. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  223. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  224. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  225. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  226. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  227. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  228. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  229. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  230. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  231. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  232. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  233. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  234. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  235. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  236. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  237. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  238. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  239. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  240. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  241. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  242. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  243. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  244. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,927 +1,927 @@
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="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">小&emsp;&emsp;区</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">地&emsp;&emsp;址</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="根据安检员查询用户档案"
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
- <v-select id="f_usertype"
52
- placeholder='用户类型'
53
- class="select select_list"
54
- :value.sync="model.f_usertype"
55
- :value-single="true"
56
- :options='$parent.$parent.usertypes'
57
- v-model="model.f_usertype"
58
- condition="f_user_type = '{}'"
59
- close-on-select clear-button></v-select>
60
- </div>
61
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
62
-
63
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
- <label class="font_normal_body" style="color: red;">安检筛选</label>
65
- <v-select
66
- placeholder='安检筛选'
67
- :value-single="true"
68
- class="select select_list"
69
- :value.sync="$parent.$parent.SafeCheckXZ"
70
- :options='$parent.$parent.SafeCheckXZs'
71
- v-model="$parent.$parent.SafeCheckXZ"
72
- close-on-select clear-button></v-select>
73
- </div>
74
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
75
- <label class="font_normal_body">安检起始</label>
76
- <datepicker
77
- :value.sync="model.f_check_start"
78
- placeholder='最后安检时间起始'
79
- style="width: 60%"
80
- :format="'yyyy-MM-dd 00:00:00'"
81
- :show-rest-button="reset"
82
- v-model="model.f_check_start">
83
- </datepicker>
84
- </div>
85
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
86
- <label class="font_normal_body">安检结束</label>
87
- <datepicker
88
- :value.sync="model.f_check_end"
89
- placeholder='最后安检时间结束'
90
- style="width: 60%"
91
- :format="'yyyy-MM-dd 23:59:59'"
92
- :show-rest-button="reset"
93
- v-model="model.f_check_end">
94
- </datepicker>
95
- </div>
96
-
97
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
98
- <label class="font_normal_body">安检状态</label>
99
- <v-select id="f_entry"
100
- placeholder='安检状态'
101
- class="select select_list"
102
- :value.sync="model.f_last_check_state"
103
- :value-single="true"
104
- :options='$parent.$parent.checkstatus'
105
- v-model="model.f_last_check_state"
106
- condition="f_last_check_state = '{}'"
107
- close-on-select clear-button></v-select>
108
- </div>
109
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
110
- <label class="font_normal_body">隐患情况</label>
111
- <v-select
112
- placeholder='隐患情况'
113
- class="select select_list"
114
- :value-single="true"
115
- v-model='model.f_check_result'
116
- :value.sync="model.f_check_result"
117
- :options='$parent.$parent.f_check_results'
118
- condition="f_last_check_result like '%{}%'"
119
- close-on-select clear-button></v-select>
120
- </div>
121
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
122
- </div>
123
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
124
-
125
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
126
- <role-selector-safe
127
- role-name="安检员"
128
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
129
- @re-res="$parent.$parent.getRes"
130
- :value.sync="model.f_checker_id"
131
- v-model="model.f_checker_id"
132
- :value-multiple="true"
133
- condition=" f_checker_name in {}">
134
- </role-selector-safe>
135
- </div>
136
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
137
- <label class="font_normal_body">片&emsp;&emsp;区</label>
138
- <v-select class="select_list select"
139
- placeholder='片区/管理站' style="width: 60%"
140
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
141
- :options='$parent.$parent.sliceArea'
142
- filer-key="name"
143
- close-on-select clear-button
144
- condition="f_slice_area='{}'"
145
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
146
- :value-single="true">
147
- </v-select>
148
- </div>
149
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
150
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
151
- <v-select class="select_list select"
152
- placeholder='抄表册' style="width: 60%"
153
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
154
- :options='$parent.$parent.cbc'
155
- filer-key="name"
156
- close-on-select clear-button
157
- condition="f_meter_book_num={}"
158
- :value-single="true">
159
- </v-select>
160
- </div>
161
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
162
- <label class="font_normal_body">用户状态</label>
163
- <v-select class="select_list select"
164
- placeholder='用户状态' style="width: 60%"
165
- :value.sync="model.f_user_state" v-model="model.f_user_state"
166
- :options='$parent.$parent.userstates'
167
- close-on-select clear-button
168
- condition="f_user_state = '{}'"
169
- :value-single="true">
170
- </v-select>
171
- </div>
172
- </div>
173
-
174
- <div class="row" v-show="$parent.$parent.$parent.showItem">
175
- <div :class="$parent.$parent.style">
176
- <label class="font_normal_body">用户编号</label>
177
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
178
-
179
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
180
- </div>
181
- <div :class="$parent.$parent.style">
182
- <label class="font_normal_body">用户姓名</label>
183
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
184
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
185
- </div>
186
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
187
- <export-excel :data="$parent.$parent.searchData"
188
- :field="$parent.$parent.excelHeaders"
189
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
190
- template-name='用户安检情况'></export-excel>
191
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
192
- <div style="float: right" class="button_spacing"
193
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
194
- @click="$parent.$parent.hiddenr()"></div>
195
- <div style="float: right" class="button_spacing"
196
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
197
- @click="$parent.$parent.hidden()">
198
-
199
- </div>
200
- </div>
201
-
202
- </div>
203
- <div class="row" v-show="$parent.$parent.$parent.showItem">
204
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
205
- <label class="font_normal_body">小&emsp;&emsp;区</label>
206
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
207
-
208
- placeholder="小区" condition="f_residential_area like '%{}%'">
209
- </div>
210
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
211
- <label class="font_normal_body">地&emsp;&emsp;址</label>
212
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
213
-
214
- placeholder="地址" condition="f_address like '%{}%'">
215
- </div>
216
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
217
- <label class="font_normal_body">用户类型</label>
218
- <v-select
219
- placeholder='用户类型'
220
- class="select select_list"
221
-
222
- :value.sync="model.f_usertype"
223
- :value-single="true"
224
- :options='$parent.$parent.usertypes'
225
- v-model="model.f_usertype"
226
- condition="f_user_type = '{}'"
227
- close-on-select clear-button></v-select>
228
- </div>
229
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
230
-
231
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
232
- <label class="font_normal_body" style="color: red;">安检筛选</label>
233
- <v-select
234
- placeholder='安检筛选'
235
- :value-single="true"
236
-
237
- class="select select_list"
238
- :value.sync="$parent.$parent.SafeCheckXZ"
239
- :options='$parent.$parent.SafeCheckXZs'
240
- v-model="$parent.$parent.SafeCheckXZ"
241
- close-on-select clear-button></v-select>
242
- </div>
243
-
244
- </div>
245
- <div class="row" v-show="$parent.$parent.$parent.showItem">
246
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
247
- <label class="font_normal_body">安检起始</label>
248
- <datepicker
249
- :value.sync="model.f_check_start"
250
- placeholder='最后安检时间起始'
251
- :disabled-days-of-week="[]"
252
- style="width: 60%"
253
- :format="'yyyy-MM-dd'"
254
- :show-rest-button="reset"
255
- v-model="model.f_check_start">
256
- </datepicker>
257
- </div>
258
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
259
- <label class="font_normal_body">安检结束</label>
260
- <datepicker
261
- :value.sync="model.f_check_end"
262
- placeholder='最后安检时间结束'
263
- style="width: 60%"
264
- :disabled-days-of-week="[]"
265
- :format="'yyyy-MM-dd'"
266
- :show-rest-button="reset"
267
- v-model="model.f_check_end">
268
- </datepicker>
269
- </div>
270
-
271
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
272
- <label class="font_normal_body">安检状态</label>
273
- <v-select
274
- placeholder='安检状态'
275
- class="select select_list"
276
-
277
- :value.sync="model.f_last_check_state"
278
- :value-single="true"
279
- :options='$parent.$parent.checkstatus'
280
- v-model="model.f_last_check_state"
281
- condition="f_last_check_state = '{}'"
282
- close-on-select clear-button></v-select>
283
- </div>
284
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
285
- <label class="font_normal_body">隐患情况</label>
286
- <v-select
287
- placeholder='隐患情况'
288
- class="select select_list"
289
-
290
- :value-single="true"
291
- v-model='model.f_check_result'
292
- :value.sync="model.f_check_result"
293
- :options='$parent.$parent.f_check_results'
294
- condition="f_last_check_result like '%{}%'"
295
- close-on-select clear-button></v-select>
296
- </div>
297
-
298
- </div>
299
- <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
300
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
301
- <label class="font_normal_body">公&emsp;&emsp;司</label>
302
- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
303
- </right-tree>
304
- </div>
305
-
306
- </div>-->
307
- </div>
308
- </criteria>
309
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
310
- <template partial='head'>
311
- <tr>
312
- <th>
313
- <nobr>用户编号</nobr>
314
- </th>
315
- <th>
316
- <nobr>用户名称</nobr>
317
- </th>
318
- <th>
319
- <nobr>用户电话</nobr>
320
- </th>
321
- <th>
322
- <nobr>燃气表号</nobr>
323
- </th>
324
- <th>
325
- <nobr>气表品牌</nobr>
326
- </th>
327
- <th>
328
- <nobr>用户类型</nobr>
329
- </th>
330
- <!-- <th>-->
331
- <!-- <nobr>壁挂炉</nobr>-->
332
- <!-- </th>-->
333
- <!-- <th>-->
334
- <!-- <nobr>灶具</nobr>-->
335
- <!-- </th>-->
336
- <th>
337
- <nobr>小区名称</nobr>
338
- </th>
339
- <th>
340
- <nobr>地址</nobr>
341
- </th>
342
- <th>
343
- <nobr>安检员</nobr>
344
- </th>
345
- <th>
346
- <nobr>安检员备注</nobr>
347
- </th>
348
- <th>
349
- <nobr>营收备注</nobr>
350
- </th>
351
- <th>
352
- <nobr>安检日期</nobr>
353
- </th>
354
- <th>
355
- <nobr>安检状态</nobr>
356
- </th>
357
- <th>
358
- <nobr>安检结果</nobr>
359
- </th>
360
- </tr>
361
- </template>
362
- <template partial='body'>
363
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
364
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
365
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
366
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
367
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>
368
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
369
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
370
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
371
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
372
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
373
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
374
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_comments }}</td>
375
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_note }}</td>
376
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
377
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
378
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
379
- {{ $parent.$parent.$parent.getDefect(row.f_last_check_result) }}
380
- </td>
381
- </template>
382
- </data-grid>
383
- </criteria-paged>
384
- </div>
385
- </template>
386
-
387
- <script>
388
- import {PagedList} from 'vue-client'
389
- import {HttpResetClass} from 'vue-client'
390
- import co from 'co'
391
- import * as Util from '../../Util'
392
- import Vue from 'vue'
393
-
394
- // let select = function * (self,userid) {
395
- // let http = new HttpResetClass()
396
- // let getGasman = yield http.load('POST','/rs/search', {
397
- // source: 'this.getChildByName($安检员$).getUsers()',
398
- // userid: userid
399
- // }, {resolveMsg: null, rejectMsg: null})
400
- // console.log('获取安检员', getGasman)
401
- // getGasman.data.forEach((checker)=>{
402
- // self.checkersid.push({label:checker.name,value:checker.id})
403
- // })
404
- // self.checkersid.push({label:'全部',value:''})
405
- // }
406
-
407
-
408
- export default {
409
- title: '用户安检情况',
410
- data() {
411
- let options = []
412
- let year = (new Date()).getFullYear()
413
- for (let i = year; i <= year + 3; i++)
414
- options.push({label: i + '', value: i + ''})
415
- let moptions = []
416
- for (let i = 1; i <= 12; i++)
417
- moptions.push({label: i + '', value: i + ''})
418
-
419
- return {
420
- searchData: {
421
- condition: '1=1',
422
- orderitem: "f_userinfo_code",
423
- timetype: "dd",
424
- 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"
425
-
426
- },
427
- excelHeaders: {
428
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
429
-
430
- 'f_userinfo_code': '用户编号',
431
- 'f_user_name': '用户名称',
432
- 'f_user_phone': '用户电话',
433
- 'f_meternumber': '燃气表号',
434
- 'f_meter_brand': '气表品牌',
435
- // 'count_item': '安检次数',
436
- 'f_user_type': '用户类型',
437
- 'f_checker_name': '安检员',
438
- 'f_comments': '安检备注',
439
- 'f_note': '营收备注',
440
- 'f_residential_area': '小区名称',
441
- 'f_address': '地址',
442
- 'f_last_check_date': '安检日期',
443
- 'f_last_check_state': '安检状态',
444
- 'f_defect_content': '安检结果'
445
- },
446
- model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
447
- orderitem: "'f_last_check_date'",
448
- timetype: "'dd'",
449
- f_defect_content: 'this.f_defect_content'
450
- }),
451
- 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",
452
- orgstrs: [{label: '全部', value: ''}],
453
- checkersid: [],
454
- SafeCheckXZ: '',
455
- civil: '', //民用安检周期
456
- civilian: '', //非民用安检周期
457
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
458
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
459
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
460
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
461
- IsShare: '否',
462
- checker: {},
463
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
464
- criteriaShow: false,
465
- checkers: [],
466
- chosenOrg: {id: 0},
467
- showModal: false,
468
- checkedAll: false,
469
- checkrows: [],
470
- adjustables: [],
471
- f_plan_year: year + '',
472
- f_plan_month: moptions[new Date().getMonth()].value,
473
- f_effective_start_time: '', //计划有效起始时间
474
- f_effective_end_time: '', //计划有效结束时间
475
- checkboxModel: {},
476
- c_year_list: options,
477
- c_month_list: moptions,
478
- areas: this.areas(),
479
- checkstatus: this.checkstatus(),
480
- usertypes: this.usertypes(),
481
- userstates: this.userstates(),
482
- sqlname: '',
483
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
484
- creatPlanWay: '',
485
- sliceArea: [],
486
- cbcs:[],
487
- cbc:[]
488
-
489
- }
490
- },
491
- props: {
492
- style: {
493
- type: String,
494
- default: 'col-sm-2 form-group'
495
- },
496
- style2: {
497
- type: String,
498
- default: 'col-sm-4 form-group'
499
- },
500
- checkplan: { // 传入一条安检计划信息
501
- type: Object
502
- },
503
- additemshow: {
504
- type: Boolean,
505
- default: false
506
- }
507
- },
508
- ready() {
509
- // 获取分公司信息
510
- this.model.f_defect_content=this.f_defect_content
511
-
512
- //this.getfengongsi()
513
- this.model.chosenOrg = {id: 0}
514
- this.model.f_filialeids = this.$login.f.f_orgids
515
- this.model.f_filiale = this.$login.f.f_fengongsi
516
- this.model.f_OrgStr = this.$login.f.orgpathstr
517
- this.Mreadibook(`('${this.$login.f.orgid}')`)
518
- this.getAllMeterBook(`('${this.$login.f.orgid}')`)
519
- },
520
- methods: {
521
- getmeterbook(val){
522
-
523
- console.log("进来111")
524
- this.cbc=[]
525
- this.cbc.push({
526
- label:'全部',
527
- value:''
528
- })
529
- if (val==''){
530
-
531
- this.cbcs.forEach(res=>{
532
- this.cbc.push({
533
- label:res.f_book_name,
534
- value:res.id
535
- })
536
- })
537
- }else{
538
- this.cbcs.forEach(res=>{
539
- if (res.f_book_slice_area==val){
540
- this.cbc.push({
541
- label:res.f_book_name,
542
- value:res.id
543
- })
544
- }
545
- })
546
- }
547
- },
548
- Mreadibook(val){
549
- //console.log("999999999")
550
- //console.log(val)
551
- this.sliceArea=[]
552
- if (val){
553
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
554
- items: 'name',
555
- tablename: 't_zone',
556
- condition: `parentid in ${val}`,
557
- orderitem: 'id'
558
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
559
- this.sliceArea.push({
560
- label:'全部',
561
- value:''
562
- })
563
- res.data.forEach(ress=>{
564
- this.sliceArea.push({
565
- label:ress.name,
566
- value:ress.name
567
- })
568
- })
569
-
570
- })
571
- }
572
- },
573
- // 获取县域分公司内容
574
- getfengongsi() {
575
- let val = {
576
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
577
- userid: `${this.$login.f.id}`
578
- }
579
- let http = new HttpResetClass()
580
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
581
- res.data.forEach((item) => {
582
- this.orgstrs.push({label: item.name, value: item.id})
583
- })
584
- console.log(this.orgstrs.length)
585
- })
586
- },
587
- // 县域分公司发生改变
588
- // orgstrchange(val){
589
- // if(val == undefined || val == ''){
590
- // return
591
- // }else {
592
- // this.checkersid = []
593
- // let gen = select(this,val)
594
- // return co(gen)
595
- // }
596
- // },
597
- getDefect(val) {
598
- if (val) {
599
- try {
600
- var defect = JSON.parse(val)
601
- return defect.result
602
- } catch (e) {
603
- console.log(val)
604
- return '正常'
605
- }
606
- }
607
- return '正常'
608
- },
609
- checkerchange(val) {
610
- this.checkboxModel.f_checker = val.name
611
- this.checkboxModel.f_checker_id = val.id
612
- },
613
- search(args) {
614
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
615
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
616
- return
617
- }
618
- if (this.SafeCheckXZ == '未安检') {
619
- args.condition += " and ( f_last_check_date >= '" + args.model.f_check_end + "' or f_last_check_date <= '" + args.model.f_check_start + "' or f_last_check_date is null)"
620
- } else {
621
- if (args.model.f_check_start) {
622
- args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
623
- }
624
- if (args.model.f_check_end) {
625
- args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
626
- }
627
- }
628
- args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
629
- let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
630
- con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'` : ' and 1=1'
631
- con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ' and 1=1'
632
- con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ' and 1=1'
633
- con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ' and 1=1'
634
- con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ' and 1=1'
635
- if (this.SafeCheckXZ == '未安检') {
636
- con += args.model.f_check_start ? ` and ( f_offsite_time < '${args.model.f_check_start}' or f_offsite_time > '${args.model.f_check_end}' )` : ' and 1=1'
637
- } else {
638
- con += args.model.f_check_start ? ` and f_offsite_time >= '${args.model.f_check_start}'` : ' and 1=1'
639
- con += args.model.f_check_end ? ` and f_offsite_time <= '${args.model.f_check_end}'` : ' and 1=1'
640
- }
641
- con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ' and 1=1'
642
- con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
643
- let condition = {
644
- condition1: args.condition,
645
- condition2: con
646
- }
647
- console.log('查询参数', condition)
648
- this.searchData.condition = condition
649
- return this.model.search(condition, args.model)
650
- },
651
- checkstatus() {
652
- return this.$appdata.getParam('安检状态') ? [{
653
- label: '全部',
654
- value: ''
655
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
656
- },
657
- usertypes() {
658
- return this.$appdata.getParam('用户类型') ? [{
659
- label: '全部',
660
- value: ''
661
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
662
- },
663
- userstates() {
664
- return this.$appdata.getParam('用户状态') ? [{
665
- label: '全部',
666
- value: ''
667
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
668
- },
669
- hiddenr() {
670
- this.$parent.showItem = !this.$parent.showItem
671
- },
672
- hidden() {
673
- this.criteriaShow = !this.criteriaShow
674
- },
675
- confirm() {
676
- if (!this.checkboxModel.f_plan_name) {
677
- this.$showMessage('请填写安检计划名称!')
678
- return
679
- }
680
- // if(this.f_effective_start_time == ''){
681
- // this.$showMessage('请选择有效起始日期!')
682
- // return
683
- // }
684
- // if(this.f_effective_end_time == ''){
685
- // this.$showMessage('请选择有效结束日期!')
686
- // return
687
- // }
688
- if (this.IsShare == '否') {
689
- if (!this.checkboxModel.f_checker_id) {
690
- this.$showMessage('请选择安检员!')
691
- return
692
- }
693
- }
694
- let gen = saveGen(this)
695
- return co(gen)
696
- },
697
- changeStates() {
698
- if (this.checkedAll) {//实现反选/
699
- this.checkrows = [];
700
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
701
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
702
- }
703
- } else {//实现全选
704
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
705
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
706
- }
707
- let _this = this
708
- let condition = this.$refs.paged.$refs.criteria.condition
709
- let url = this.model.url
710
- this.$resetpost(`${url}?pageSize=9999999`, {
711
- data: {
712
- condition: condition,
713
- groupitem: '',
714
- orderitem: 'f_residential_area',
715
- f_usertype: this.model.f_usertype,
716
- f_filialeids: this.model.f_filialeids,
717
- month: this.model.month,
718
- safeCycle: this.model.safeCycle,
719
- f_checktime_start: this.model.f_checktime_start,
720
- f_checktime_end: this.model.f_checktime_end,
721
- SafeCheckSX: this.model.SafeCheckSX,
722
- f_last_check_state: this.model.f_last_check_state
723
- },
724
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
725
- (respanse) => {
726
- if (respanse.data.length >= 5000) {
727
- this.$showMessage("数据量太大,请重新选择")
728
- } else {
729
- _this.checkrows = []
730
- for (let j = 0; j < respanse.data.length; j++) {
731
- _this.checkrows.push(respanse.data[j])
732
- }
733
- console.log(_this.checkrows);
734
- }
735
- })
736
- }
737
- },
738
- addChecked(item) {
739
- console.log(item);
740
- if (!item.checked) {
741
- this.checkrows.push(item);
742
- console.log(this.checkrows);
743
- } else {
744
- for (let i = 0; i < this.checkrows.length; i++) {
745
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
746
- this.checkrows.splice(i, 1)
747
- }
748
- }
749
- }
750
- },
751
- ToshowModal() {
752
- this.creatPlanWay = 'single'
753
- if (this.checkrows.length > 0) {
754
- this.showModal = true
755
- } else {
756
- this.$showMessage("请选择需要安检的用户!")
757
- }
758
- },
759
- FiltrationPlan() {
760
- if (this.model.rows.length == 0) {
761
- this.$showMessage("暂无可生成的计划!")
762
- return
763
- }
764
- this.creatPlanWay = 'filtration'
765
- this.showModal = true
766
- },
767
- AllPlan() {
768
- if (this.model.rows.length == 0) {
769
- this.$showMessage("暂无可生成的计划!")
770
- return
771
- }
772
- this.creatPlanWay = 'all'
773
- this.showModal = true
774
- },
775
- cancel() {
776
- this.showModal = false
777
- },
778
- areas() {
779
- let rs = []
780
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
781
- let temp = {
782
- label: this.$login.f.f_allArea[i].label,
783
- value: this.$login.f.f_allArea[i].label
784
- }
785
- rs.push(temp)
786
- }
787
- return [{label: '全部', value: ''}, ...rs]
788
- },
789
- initAdjustables() {
790
- console.log('初始化调压箱', this.$GetSaleParam)
791
- let arr = []
792
- let filter = this.$login.f.f_orgids
793
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
794
- let temp = {}
795
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
796
- temp.value = `${item.value.id}`
797
- arr.push(temp)
798
- })
799
- this.adjustables = [{label: '全部', value: ''}, ...arr]
800
- },
801
- getAllMeterBook(val){
802
- //console.log("999999999")
803
- //console.log(val)
804
- this.cbcs=[]
805
- if (val){
806
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
807
- items: 'f_book_name,f_book_slice_area,id',
808
- tablename: 't_meter_book',
809
- condition: `f_filiale_id in ${val}`,
810
- orderitem: 'id'
811
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
812
- res.data.forEach(ress=>{
813
- this.cbcs.push({
814
- id:ress.id,
815
- f_book_name:ress.f_book_name,
816
- f_book_slice_area:ress.f_book_slice_area
817
- })
818
- })
819
- this.cbc=[]
820
- this.cbc.push({
821
- label:'全部',
822
- value:''
823
- })
824
- this.cbcs.forEach(res=>{
825
- this.cbc.push({
826
- label:res.f_book_name,
827
- value:res.id
828
- })
829
- })
830
- })
831
- }
832
- },
833
- getRes(obj) {
834
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
835
- this.Mreadibook(this.model.f_filialeids)
836
- this.getAllMeterBook(this.model.f_filialeids)
837
- }
838
- },
839
-
840
- watch: {
841
- 'model.f_usertype'(val) {
842
- if (val == '民用') {
843
- this.model.safeCycle = this.civil
844
- } else if (val == '非民用') {
845
- this.model.safeCycle = this.civilian
846
- }
847
- },
848
- 'model.SafeCheckXZ'(val) {
849
- this.model.SafeCheckSC = ''
850
- if (val == '已安检') {
851
- this.model.SafeCheckCQ = ''
852
- this.model.SafeCheckSX = {
853
- f_check_end: '', // 安检时间 查询起始条件
854
- f_check_start: ''// 安检时间 查询终止条件
855
- }
856
- } else {
857
- // 当使用筛选条件时,清空不需要的条件选项
858
- this.model.f_issue_start = ''
859
- this.model.f_issue_end = ''
860
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
861
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
862
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
863
- this.model.month = ''
864
- if (val == '应安检') {
865
- this.model.SafeCheckSC = '否'
866
-
867
- this.model.f_issue_start = Util.toStartDateString()
868
- this.model.f_issue_end = Util.toStandardDateString()
869
- }
870
- // this.model.f_checktime_start = ''
871
- // this.model.f_checktime_end = ''
872
- }
873
- },
874
- 'model.SafeCheckSC'(val) {
875
- if (val == '') {
876
- this.model.f_issue_start = ''
877
- this.model.f_issue_end = ''
878
- }
879
- },
880
- // 'checker'(val){
881
- // console.log("checker",this.checker)
882
- // if(val){
883
- // this.checkboxModel.f_checker = this.checker[0].name
884
- // this.checkboxModel.f_checker_id = this.checker[0].id
885
- // }
886
- // },
887
- 'model.rows'() {
888
- // if (!this.checkedAll) {//实现反选/
889
- // this.checkrows = [];
890
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
891
- var k = false
892
- for (let j = 0; j < this.checkrows.length; j++) {
893
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
894
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
895
- k = true
896
- continue
897
- }
898
- }
899
- if (!k) {
900
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
901
- }
902
- }
903
- // } else {//实现全选
904
- // // this.checkboxModel = {};
905
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
906
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
907
- // }
908
- // }
909
- }
910
- },
911
- computed: {
912
- selected() {
913
- return this.$refs.paged.$refs.grid.selected
914
- }
915
- }
916
- }
917
- </script>
918
- <style scoped>
919
- .newcolor {
920
- color: red;
921
- }
922
-
923
- .table th {
924
- background-color: #f2f6fa;
925
- color: black;
926
- }
927
- </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="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">小&emsp;&emsp;区</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">地&emsp;&emsp;址</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="根据安检员查询用户档案"
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
+ <v-select id="f_usertype"
52
+ placeholder='用户类型'
53
+ class="select select_list"
54
+ :value.sync="model.f_usertype"
55
+ :value-single="true"
56
+ :options='$parent.$parent.usertypes'
57
+ v-model="model.f_usertype"
58
+ condition="f_user_type = '{}'"
59
+ close-on-select clear-button></v-select>
60
+ </div>
61
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
62
+
63
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
65
+ <v-select
66
+ placeholder='安检筛选'
67
+ :value-single="true"
68
+ class="select select_list"
69
+ :value.sync="$parent.$parent.SafeCheckXZ"
70
+ :options='$parent.$parent.SafeCheckXZs'
71
+ v-model="$parent.$parent.SafeCheckXZ"
72
+ close-on-select clear-button></v-select>
73
+ </div>
74
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
75
+ <label class="font_normal_body">安检起始</label>
76
+ <datepicker
77
+ :value.sync="model.f_check_start"
78
+ placeholder='最后安检时间起始'
79
+ style="width: 60%"
80
+ :format="'yyyy-MM-dd 00:00:00'"
81
+ :show-rest-button="reset"
82
+ v-model="model.f_check_start">
83
+ </datepicker>
84
+ </div>
85
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
86
+ <label class="font_normal_body">安检结束</label>
87
+ <datepicker
88
+ :value.sync="model.f_check_end"
89
+ placeholder='最后安检时间结束'
90
+ style="width: 60%"
91
+ :format="'yyyy-MM-dd 23:59:59'"
92
+ :show-rest-button="reset"
93
+ v-model="model.f_check_end">
94
+ </datepicker>
95
+ </div>
96
+
97
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
98
+ <label class="font_normal_body">安检状态</label>
99
+ <v-select id="f_entry"
100
+ placeholder='安检状态'
101
+ class="select select_list"
102
+ :value.sync="model.f_last_check_state"
103
+ :value-single="true"
104
+ :options='$parent.$parent.checkstatus'
105
+ v-model="model.f_last_check_state"
106
+ condition="f_last_check_state = '{}'"
107
+ close-on-select clear-button></v-select>
108
+ </div>
109
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
110
+ <label class="font_normal_body">隐患情况</label>
111
+ <v-select
112
+ placeholder='隐患情况'
113
+ class="select select_list"
114
+ :value-single="true"
115
+ v-model='model.f_check_result'
116
+ :value.sync="model.f_check_result"
117
+ :options='$parent.$parent.f_check_results'
118
+ condition="f_last_check_result like '%{}%'"
119
+ close-on-select clear-button></v-select>
120
+ </div>
121
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
122
+ </div>
123
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
124
+
125
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
126
+ <role-selector-safe
127
+ role-name="安检员"
128
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
129
+ @re-res="$parent.$parent.getRes"
130
+ :value.sync="model.f_checker_id"
131
+ v-model="model.f_checker_id"
132
+ :value-multiple="true"
133
+ condition=" f_checker_name in {}">
134
+ </role-selector-safe>
135
+ </div>
136
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
137
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
138
+ <v-select class="select_list select"
139
+ placeholder='片区/管理站' style="width: 60%"
140
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
141
+ :options='$parent.$parent.sliceArea'
142
+ filer-key="name"
143
+ close-on-select clear-button
144
+ condition="f_slice_area='{}'"
145
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
146
+ :value-single="true">
147
+ </v-select>
148
+ </div>
149
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
150
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
151
+ <v-select class="select_list select"
152
+ placeholder='抄表册' style="width: 60%"
153
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
154
+ :options='$parent.$parent.cbc'
155
+ filer-key="name"
156
+ close-on-select clear-button
157
+ condition="f_meter_book_num={}"
158
+ :value-single="true">
159
+ </v-select>
160
+ </div>
161
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
162
+ <label class="font_normal_body">用户状态</label>
163
+ <v-select class="select_list select"
164
+ placeholder='用户状态' style="width: 60%"
165
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
166
+ :options='$parent.$parent.userstates'
167
+ close-on-select clear-button
168
+ condition="f_user_state = '{}'"
169
+ :value-single="true">
170
+ </v-select>
171
+ </div>
172
+ </div>
173
+
174
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
175
+ <div :class="$parent.$parent.style">
176
+ <label class="font_normal_body">用户编号</label>
177
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
178
+
179
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
180
+ </div>
181
+ <div :class="$parent.$parent.style">
182
+ <label class="font_normal_body">用户姓名</label>
183
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
184
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
185
+ </div>
186
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
187
+ <export-excel :data="$parent.$parent.searchData"
188
+ :field="$parent.$parent.excelHeaders"
189
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
190
+ template-name='用户安检情况'></export-excel>
191
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
192
+ <div style="float: right" class="button_spacing"
193
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
194
+ @click="$parent.$parent.hiddenr()"></div>
195
+ <div style="float: right" class="button_spacing"
196
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
197
+ @click="$parent.$parent.hidden()">
198
+
199
+ </div>
200
+ </div>
201
+
202
+ </div>
203
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
204
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
205
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
206
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
207
+
208
+ placeholder="小区" condition="f_residential_area like '%{}%'">
209
+ </div>
210
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
211
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
212
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
213
+
214
+ placeholder="地址" condition="f_address like '%{}%'">
215
+ </div>
216
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
217
+ <label class="font_normal_body">用户类型</label>
218
+ <v-select
219
+ placeholder='用户类型'
220
+ class="select select_list"
221
+
222
+ :value.sync="model.f_usertype"
223
+ :value-single="true"
224
+ :options='$parent.$parent.usertypes'
225
+ v-model="model.f_usertype"
226
+ condition="f_user_type = '{}'"
227
+ close-on-select clear-button></v-select>
228
+ </div>
229
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
230
+
231
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
232
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
233
+ <v-select
234
+ placeholder='安检筛选'
235
+ :value-single="true"
236
+
237
+ class="select select_list"
238
+ :value.sync="$parent.$parent.SafeCheckXZ"
239
+ :options='$parent.$parent.SafeCheckXZs'
240
+ v-model="$parent.$parent.SafeCheckXZ"
241
+ close-on-select clear-button></v-select>
242
+ </div>
243
+
244
+ </div>
245
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
246
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
247
+ <label class="font_normal_body">安检起始</label>
248
+ <datepicker
249
+ :value.sync="model.f_check_start"
250
+ placeholder='最后安检时间起始'
251
+ :disabled-days-of-week="[]"
252
+ style="width: 60%"
253
+ :format="'yyyy-MM-dd'"
254
+ :show-rest-button="reset"
255
+ v-model="model.f_check_start">
256
+ </datepicker>
257
+ </div>
258
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
259
+ <label class="font_normal_body">安检结束</label>
260
+ <datepicker
261
+ :value.sync="model.f_check_end"
262
+ placeholder='最后安检时间结束'
263
+ style="width: 60%"
264
+ :disabled-days-of-week="[]"
265
+ :format="'yyyy-MM-dd'"
266
+ :show-rest-button="reset"
267
+ v-model="model.f_check_end">
268
+ </datepicker>
269
+ </div>
270
+
271
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
272
+ <label class="font_normal_body">安检状态</label>
273
+ <v-select
274
+ placeholder='安检状态'
275
+ class="select select_list"
276
+
277
+ :value.sync="model.f_last_check_state"
278
+ :value-single="true"
279
+ :options='$parent.$parent.checkstatus'
280
+ v-model="model.f_last_check_state"
281
+ condition="f_last_check_state = '{}'"
282
+ close-on-select clear-button></v-select>
283
+ </div>
284
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
285
+ <label class="font_normal_body">隐患情况</label>
286
+ <v-select
287
+ placeholder='隐患情况'
288
+ class="select select_list"
289
+
290
+ :value-single="true"
291
+ v-model='model.f_check_result'
292
+ :value.sync="model.f_check_result"
293
+ :options='$parent.$parent.f_check_results'
294
+ condition="f_last_check_result like '%{}%'"
295
+ close-on-select clear-button></v-select>
296
+ </div>
297
+
298
+ </div>
299
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
300
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
301
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
302
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
303
+ </right-tree>
304
+ </div>
305
+
306
+ </div>-->
307
+ </div>
308
+ </criteria>
309
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
310
+ <template partial='head'>
311
+ <tr>
312
+ <th>
313
+ <nobr>用户编号</nobr>
314
+ </th>
315
+ <th>
316
+ <nobr>用户名称</nobr>
317
+ </th>
318
+ <th>
319
+ <nobr>用户电话</nobr>
320
+ </th>
321
+ <th>
322
+ <nobr>燃气表号</nobr>
323
+ </th>
324
+ <th>
325
+ <nobr>气表品牌</nobr>
326
+ </th>
327
+ <th>
328
+ <nobr>用户类型</nobr>
329
+ </th>
330
+ <!-- <th>-->
331
+ <!-- <nobr>壁挂炉</nobr>-->
332
+ <!-- </th>-->
333
+ <!-- <th>-->
334
+ <!-- <nobr>灶具</nobr>-->
335
+ <!-- </th>-->
336
+ <th>
337
+ <nobr>小区名称</nobr>
338
+ </th>
339
+ <th>
340
+ <nobr>地址</nobr>
341
+ </th>
342
+ <th>
343
+ <nobr>安检员</nobr>
344
+ </th>
345
+ <th>
346
+ <nobr>安检员备注</nobr>
347
+ </th>
348
+ <th>
349
+ <nobr>营收备注</nobr>
350
+ </th>
351
+ <th>
352
+ <nobr>安检日期</nobr>
353
+ </th>
354
+ <th>
355
+ <nobr>安检状态</nobr>
356
+ </th>
357
+ <th>
358
+ <nobr>安检结果</nobr>
359
+ </th>
360
+ </tr>
361
+ </template>
362
+ <template partial='body'>
363
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
364
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
365
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
366
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
367
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>
368
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
369
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
370
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
371
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
372
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
373
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
374
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_comments }}</td>
375
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_note }}</td>
376
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
377
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
378
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
379
+ {{ $parent.$parent.$parent.getDefect(row.f_last_check_result) }}
380
+ </td>
381
+ </template>
382
+ </data-grid>
383
+ </criteria-paged>
384
+ </div>
385
+ </template>
386
+
387
+ <script>
388
+ import {PagedList} from 'vue-client'
389
+ import {HttpResetClass} from 'vue-client'
390
+ import co from 'co'
391
+ import * as Util from '../../Util'
392
+ import Vue from 'vue'
393
+
394
+ // let select = function * (self,userid) {
395
+ // let http = new HttpResetClass()
396
+ // let getGasman = yield http.load('POST','/rs/search', {
397
+ // source: 'this.getChildByName($安检员$).getUsers()',
398
+ // userid: userid
399
+ // }, {resolveMsg: null, rejectMsg: null})
400
+ // console.log('获取安检员', getGasman)
401
+ // getGasman.data.forEach((checker)=>{
402
+ // self.checkersid.push({label:checker.name,value:checker.id})
403
+ // })
404
+ // self.checkersid.push({label:'全部',value:''})
405
+ // }
406
+
407
+
408
+ export default {
409
+ title: '用户安检情况',
410
+ data() {
411
+ let options = []
412
+ let year = (new Date()).getFullYear()
413
+ for (let i = year; i <= year + 3; i++)
414
+ options.push({label: i + '', value: i + ''})
415
+ let moptions = []
416
+ for (let i = 1; i <= 12; i++)
417
+ moptions.push({label: i + '', value: i + ''})
418
+
419
+ return {
420
+ searchData: {
421
+ condition: '1=1',
422
+ orderitem: "f_userinfo_code",
423
+ timetype: "dd",
424
+ 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"
425
+
426
+ },
427
+ excelHeaders: {
428
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
429
+
430
+ 'f_userinfo_code': '用户编号',
431
+ 'f_user_name': '用户名称',
432
+ 'f_user_phone': '用户电话',
433
+ 'f_meternumber': '燃气表号',
434
+ 'f_meter_brand': '气表品牌',
435
+ // 'count_item': '安检次数',
436
+ 'f_user_type': '用户类型',
437
+ 'f_checker_name': '安检员',
438
+ 'f_comments': '安检备注',
439
+ 'f_note': '营收备注',
440
+ 'f_residential_area': '小区名称',
441
+ 'f_address': '地址',
442
+ 'f_last_check_date': '安检日期',
443
+ 'f_last_check_state': '安检状态',
444
+ 'f_defect_content': '安检结果'
445
+ },
446
+ model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
447
+ orderitem: "'f_last_check_date'",
448
+ timetype: "'dd'",
449
+ f_defect_content: 'this.f_defect_content'
450
+ }),
451
+ 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",
452
+ orgstrs: [{label: '全部', value: ''}],
453
+ checkersid: [],
454
+ SafeCheckXZ: '',
455
+ civil: '', //民用安检周期
456
+ civilian: '', //非民用安检周期
457
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
458
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
459
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
460
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
461
+ IsShare: '否',
462
+ checker: {},
463
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
464
+ criteriaShow: false,
465
+ checkers: [],
466
+ chosenOrg: {id: 0},
467
+ showModal: false,
468
+ checkedAll: false,
469
+ checkrows: [],
470
+ adjustables: [],
471
+ f_plan_year: year + '',
472
+ f_plan_month: moptions[new Date().getMonth()].value,
473
+ f_effective_start_time: '', //计划有效起始时间
474
+ f_effective_end_time: '', //计划有效结束时间
475
+ checkboxModel: {},
476
+ c_year_list: options,
477
+ c_month_list: moptions,
478
+ areas: this.areas(),
479
+ checkstatus: this.checkstatus(),
480
+ usertypes: this.usertypes(),
481
+ userstates: this.userstates(),
482
+ sqlname: '',
483
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
484
+ creatPlanWay: '',
485
+ sliceArea: [],
486
+ cbcs:[],
487
+ cbc:[]
488
+
489
+ }
490
+ },
491
+ props: {
492
+ style: {
493
+ type: String,
494
+ default: 'col-sm-2 form-group'
495
+ },
496
+ style2: {
497
+ type: String,
498
+ default: 'col-sm-4 form-group'
499
+ },
500
+ checkplan: { // 传入一条安检计划信息
501
+ type: Object
502
+ },
503
+ additemshow: {
504
+ type: Boolean,
505
+ default: false
506
+ }
507
+ },
508
+ ready() {
509
+ // 获取分公司信息
510
+ this.model.f_defect_content=this.f_defect_content
511
+
512
+ //this.getfengongsi()
513
+ this.model.chosenOrg = {id: 0}
514
+ this.model.f_filialeids = this.$login.f.f_orgids
515
+ this.model.f_filiale = this.$login.f.f_fengongsi
516
+ this.model.f_OrgStr = this.$login.f.orgpathstr
517
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
518
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
519
+ },
520
+ methods: {
521
+ getmeterbook(val){
522
+
523
+ console.log("进来111")
524
+ this.cbc=[]
525
+ this.cbc.push({
526
+ label:'全部',
527
+ value:''
528
+ })
529
+ if (val==''){
530
+
531
+ this.cbcs.forEach(res=>{
532
+ this.cbc.push({
533
+ label:res.f_book_name,
534
+ value:res.id
535
+ })
536
+ })
537
+ }else{
538
+ this.cbcs.forEach(res=>{
539
+ if (res.f_book_slice_area==val){
540
+ this.cbc.push({
541
+ label:res.f_book_name,
542
+ value:res.id
543
+ })
544
+ }
545
+ })
546
+ }
547
+ },
548
+ Mreadibook(val){
549
+ //console.log("999999999")
550
+ //console.log(val)
551
+ this.sliceArea=[]
552
+ if (val){
553
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
554
+ items: 'name',
555
+ tablename: 't_zone',
556
+ condition: `parentid in ${val}`,
557
+ orderitem: 'id'
558
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
559
+ this.sliceArea.push({
560
+ label:'全部',
561
+ value:''
562
+ })
563
+ res.data.forEach(ress=>{
564
+ this.sliceArea.push({
565
+ label:ress.name,
566
+ value:ress.name
567
+ })
568
+ })
569
+
570
+ })
571
+ }
572
+ },
573
+ // 获取县域分公司内容
574
+ getfengongsi() {
575
+ let val = {
576
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
577
+ userid: `${this.$login.f.id}`
578
+ }
579
+ let http = new HttpResetClass()
580
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
581
+ res.data.forEach((item) => {
582
+ this.orgstrs.push({label: item.name, value: item.id})
583
+ })
584
+ console.log(this.orgstrs.length)
585
+ })
586
+ },
587
+ // 县域分公司发生改变
588
+ // orgstrchange(val){
589
+ // if(val == undefined || val == ''){
590
+ // return
591
+ // }else {
592
+ // this.checkersid = []
593
+ // let gen = select(this,val)
594
+ // return co(gen)
595
+ // }
596
+ // },
597
+ getDefect(val) {
598
+ if (val) {
599
+ try {
600
+ var defect = JSON.parse(val)
601
+ return defect.result
602
+ } catch (e) {
603
+ console.log(val)
604
+ return '正常'
605
+ }
606
+ }
607
+ return '正常'
608
+ },
609
+ checkerchange(val) {
610
+ this.checkboxModel.f_checker = val.name
611
+ this.checkboxModel.f_checker_id = val.id
612
+ },
613
+ search(args) {
614
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
615
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
616
+ return
617
+ }
618
+ if (this.SafeCheckXZ == '未安检') {
619
+ args.condition += " and ( f_last_check_date >= '" + args.model.f_check_end + "' or f_last_check_date <= '" + args.model.f_check_start + "' or f_last_check_date is null)"
620
+ } else {
621
+ if (args.model.f_check_start) {
622
+ args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
623
+ }
624
+ if (args.model.f_check_end) {
625
+ args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
626
+ }
627
+ }
628
+ args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
629
+ let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
630
+ con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'` : ' and 1=1'
631
+ con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ' and 1=1'
632
+ con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ' and 1=1'
633
+ con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ' and 1=1'
634
+ con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ' and 1=1'
635
+ if (this.SafeCheckXZ == '未安检') {
636
+ con += args.model.f_check_start ? ` and ( f_offsite_time < '${args.model.f_check_start}' or f_offsite_time > '${args.model.f_check_end}' )` : ' and 1=1'
637
+ } else {
638
+ con += args.model.f_check_start ? ` and f_offsite_time >= '${args.model.f_check_start}'` : ' and 1=1'
639
+ con += args.model.f_check_end ? ` and f_offsite_time <= '${args.model.f_check_end}'` : ' and 1=1'
640
+ }
641
+ con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ' and 1=1'
642
+ con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
643
+ let condition = {
644
+ condition1: args.condition,
645
+ condition2: con
646
+ }
647
+ console.log('查询参数', condition)
648
+ this.searchData.condition = condition
649
+ return this.model.search(condition, args.model)
650
+ },
651
+ checkstatus() {
652
+ return this.$appdata.getParam('安检状态') ? [{
653
+ label: '全部',
654
+ value: ''
655
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
656
+ },
657
+ usertypes() {
658
+ return this.$appdata.getParam('用户类型') ? [{
659
+ label: '全部',
660
+ value: ''
661
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
662
+ },
663
+ userstates() {
664
+ return this.$appdata.getParam('用户状态') ? [{
665
+ label: '全部',
666
+ value: ''
667
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
668
+ },
669
+ hiddenr() {
670
+ this.$parent.showItem = !this.$parent.showItem
671
+ },
672
+ hidden() {
673
+ this.criteriaShow = !this.criteriaShow
674
+ },
675
+ confirm() {
676
+ if (!this.checkboxModel.f_plan_name) {
677
+ this.$showMessage('请填写安检计划名称!')
678
+ return
679
+ }
680
+ // if(this.f_effective_start_time == ''){
681
+ // this.$showMessage('请选择有效起始日期!')
682
+ // return
683
+ // }
684
+ // if(this.f_effective_end_time == ''){
685
+ // this.$showMessage('请选择有效结束日期!')
686
+ // return
687
+ // }
688
+ if (this.IsShare == '否') {
689
+ if (!this.checkboxModel.f_checker_id) {
690
+ this.$showMessage('请选择安检员!')
691
+ return
692
+ }
693
+ }
694
+ let gen = saveGen(this)
695
+ return co(gen)
696
+ },
697
+ changeStates() {
698
+ if (this.checkedAll) {//实现反选/
699
+ this.checkrows = [];
700
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
701
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
702
+ }
703
+ } else {//实现全选
704
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
705
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
706
+ }
707
+ let _this = this
708
+ let condition = this.$refs.paged.$refs.criteria.condition
709
+ let url = this.model.url
710
+ this.$resetpost(`${url}?pageSize=9999999`, {
711
+ data: {
712
+ condition: condition,
713
+ groupitem: '',
714
+ orderitem: 'f_residential_area',
715
+ f_usertype: this.model.f_usertype,
716
+ f_filialeids: this.model.f_filialeids,
717
+ month: this.model.month,
718
+ safeCycle: this.model.safeCycle,
719
+ f_checktime_start: this.model.f_checktime_start,
720
+ f_checktime_end: this.model.f_checktime_end,
721
+ SafeCheckSX: this.model.SafeCheckSX,
722
+ f_last_check_state: this.model.f_last_check_state
723
+ },
724
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
725
+ (respanse) => {
726
+ if (respanse.data.length >= 5000) {
727
+ this.$showMessage("数据量太大,请重新选择")
728
+ } else {
729
+ _this.checkrows = []
730
+ for (let j = 0; j < respanse.data.length; j++) {
731
+ _this.checkrows.push(respanse.data[j])
732
+ }
733
+ console.log(_this.checkrows);
734
+ }
735
+ })
736
+ }
737
+ },
738
+ addChecked(item) {
739
+ console.log(item);
740
+ if (!item.checked) {
741
+ this.checkrows.push(item);
742
+ console.log(this.checkrows);
743
+ } else {
744
+ for (let i = 0; i < this.checkrows.length; i++) {
745
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
746
+ this.checkrows.splice(i, 1)
747
+ }
748
+ }
749
+ }
750
+ },
751
+ ToshowModal() {
752
+ this.creatPlanWay = 'single'
753
+ if (this.checkrows.length > 0) {
754
+ this.showModal = true
755
+ } else {
756
+ this.$showMessage("请选择需要安检的用户!")
757
+ }
758
+ },
759
+ FiltrationPlan() {
760
+ if (this.model.rows.length == 0) {
761
+ this.$showMessage("暂无可生成的计划!")
762
+ return
763
+ }
764
+ this.creatPlanWay = 'filtration'
765
+ this.showModal = true
766
+ },
767
+ AllPlan() {
768
+ if (this.model.rows.length == 0) {
769
+ this.$showMessage("暂无可生成的计划!")
770
+ return
771
+ }
772
+ this.creatPlanWay = 'all'
773
+ this.showModal = true
774
+ },
775
+ cancel() {
776
+ this.showModal = false
777
+ },
778
+ areas() {
779
+ let rs = []
780
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
781
+ let temp = {
782
+ label: this.$login.f.f_allArea[i].label,
783
+ value: this.$login.f.f_allArea[i].label
784
+ }
785
+ rs.push(temp)
786
+ }
787
+ return [{label: '全部', value: ''}, ...rs]
788
+ },
789
+ initAdjustables() {
790
+ console.log('初始化调压箱', this.$GetSaleParam)
791
+ let arr = []
792
+ let filter = this.$login.f.f_orgids
793
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
794
+ let temp = {}
795
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
796
+ temp.value = `${item.value.id}`
797
+ arr.push(temp)
798
+ })
799
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
800
+ },
801
+ getAllMeterBook(val){
802
+ //console.log("999999999")
803
+ //console.log(val)
804
+ this.cbcs=[]
805
+ if (val){
806
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
807
+ items: 'f_book_name,f_book_slice_area,id',
808
+ tablename: 't_meter_book',
809
+ condition: `f_filiale_id in ${val}`,
810
+ orderitem: 'id'
811
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
812
+ res.data.forEach(ress=>{
813
+ this.cbcs.push({
814
+ id:ress.id,
815
+ f_book_name:ress.f_book_name,
816
+ f_book_slice_area:ress.f_book_slice_area
817
+ })
818
+ })
819
+ this.cbc=[]
820
+ this.cbc.push({
821
+ label:'全部',
822
+ value:''
823
+ })
824
+ this.cbcs.forEach(res=>{
825
+ this.cbc.push({
826
+ label:res.f_book_name,
827
+ value:res.id
828
+ })
829
+ })
830
+ })
831
+ }
832
+ },
833
+ getRes(obj) {
834
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
835
+ this.Mreadibook(this.model.f_filialeids)
836
+ this.getAllMeterBook(this.model.f_filialeids)
837
+ }
838
+ },
839
+
840
+ watch: {
841
+ 'model.f_usertype'(val) {
842
+ if (val == '民用') {
843
+ this.model.safeCycle = this.civil
844
+ } else if (val == '非民用') {
845
+ this.model.safeCycle = this.civilian
846
+ }
847
+ },
848
+ 'model.SafeCheckXZ'(val) {
849
+ this.model.SafeCheckSC = ''
850
+ if (val == '已安检') {
851
+ this.model.SafeCheckCQ = ''
852
+ this.model.SafeCheckSX = {
853
+ f_check_end: '', // 安检时间 查询起始条件
854
+ f_check_start: ''// 安检时间 查询终止条件
855
+ }
856
+ } else {
857
+ // 当使用筛选条件时,清空不需要的条件选项
858
+ this.model.f_issue_start = ''
859
+ this.model.f_issue_end = ''
860
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
861
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
862
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
863
+ this.model.month = ''
864
+ if (val == '应安检') {
865
+ this.model.SafeCheckSC = '否'
866
+
867
+ this.model.f_issue_start = Util.toStartDateString()
868
+ this.model.f_issue_end = Util.toStandardDateString()
869
+ }
870
+ // this.model.f_checktime_start = ''
871
+ // this.model.f_checktime_end = ''
872
+ }
873
+ },
874
+ 'model.SafeCheckSC'(val) {
875
+ if (val == '') {
876
+ this.model.f_issue_start = ''
877
+ this.model.f_issue_end = ''
878
+ }
879
+ },
880
+ // 'checker'(val){
881
+ // console.log("checker",this.checker)
882
+ // if(val){
883
+ // this.checkboxModel.f_checker = this.checker[0].name
884
+ // this.checkboxModel.f_checker_id = this.checker[0].id
885
+ // }
886
+ // },
887
+ 'model.rows'() {
888
+ // if (!this.checkedAll) {//实现反选/
889
+ // this.checkrows = [];
890
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
891
+ var k = false
892
+ for (let j = 0; j < this.checkrows.length; j++) {
893
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
894
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
895
+ k = true
896
+ continue
897
+ }
898
+ }
899
+ if (!k) {
900
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
901
+ }
902
+ }
903
+ // } else {//实现全选
904
+ // // this.checkboxModel = {};
905
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
906
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
907
+ // }
908
+ // }
909
+ }
910
+ },
911
+ computed: {
912
+ selected() {
913
+ return this.$refs.paged.$refs.grid.selected
914
+ }
915
+ }
916
+ }
917
+ </script>
918
+ <style scoped>
919
+ .newcolor {
920
+ color: red;
921
+ }
922
+
923
+ .table th {
924
+ background-color: #f2f6fa;
925
+ color: black;
926
+ }
927
+ </style>