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,1192 +1,1192 @@
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"
10
- id="f_userinfo"
11
- placeholder="编号 名称 电话 表号 地址"
12
- condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_meternumber like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone 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_userinfo_code"
17
- id="f_userinfo_code"
18
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
19
- </div>
20
- <div :class="$parent.$parent.style">
21
- <label class="font_normal_body">用户姓名</label>
22
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
23
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
24
- </div>
25
- <div :class="$parent.$parent.style">
26
- <label class="font_normal_body">小&emsp;&emsp;区</label>
27
- <v-select id="f_residential_area"
28
- placeholder='小区'
29
- class="select select_list"
30
- :value.sync="model.f_residential_area"
31
- :options='$parent.$parent.residentialareas'
32
- :multiple='true'
33
- v-model="model.f_residential_area"
34
- condition="f_residential_area in {}"
35
- ></v-select>
36
- </div>
37
- <div :class="$parent.$parent.style">
38
- <label class="font_normal_body">地&emsp;&emsp;址</label>
39
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
40
- placeholder="地址" condition="f_address like '%{}%'">
41
- </div>
42
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
43
- <export-excel :data="$parent.$parent.searchData"
44
- :field="$parent.$parent.excelHeaders"
45
- :choose-col="true"
46
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
47
- template-name='用户安检情况'></export-excel>
48
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
49
- <div style="float: right" class="button_spacing"
50
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
51
- @click="$parent.$parent.hiddenr()"></div>
52
- <div style="float: right" class="button_spacing"
53
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
- @click="$parent.$parent.hidden()">
55
-
56
- </div>
57
- </div>
58
-
59
-
60
- </div>
61
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
62
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
63
- <label class="font_normal_body">用户类型</label>
64
- <v-select id="f_usertype"
65
- placeholder='用户类型'
66
- class="select select_list"
67
- :value.sync="model.f_usertype"
68
- :value-single="true"
69
- :options='$parent.$parent.usertypes'
70
- v-model="model.f_usertype"
71
- condition="f_user_type = '{}'"
72
- close-on-select clear-button></v-select>
73
- </div>
74
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
75
-
76
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
77
- <label class="font_normal_body" style="color: red;">安检筛选</label>
78
- <v-select
79
- placeholder='安检筛选'
80
- :value-single="true"
81
- class="select select_list"
82
- :value.sync="$parent.$parent.SafeCheckXZ"
83
- :options='$parent.$parent.SafeCheckXZs'
84
- v-model="$parent.$parent.SafeCheckXZ"
85
- close-on-select clear-button></v-select>
86
- </div>
87
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
- <label class="font_normal_body">安检起始</label>
89
- <datepicker
90
- :value.sync="model.f_check_start"
91
- placeholder='最后安检时间起始'
92
- style="width: 60%"
93
- :format="'yyyy-MM-dd 00:00:00'"
94
- :show-rest-button="reset"
95
- v-model="model.f_check_start">
96
- </datepicker>
97
- </div>
98
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
99
- <label class="font_normal_body">安检结束</label>
100
- <datepicker
101
- :value.sync="model.f_check_end"
102
- placeholder='最后安检时间结束'
103
- style="width: 60%"
104
- :format="'yyyy-MM-dd 23:59:59'"
105
- :show-rest-button="reset"
106
- v-model="model.f_check_end">
107
- </datepicker>
108
- </div>
109
-
110
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
111
- <label class="font_normal_body">安检状态</label>
112
- <v-select id="f_entry"
113
- placeholder='安检状态'
114
- :multiple="true"
115
- class="select select_list"
116
- :value.sync="$parent.$parent.checkStates"
117
- :options='$parent.$parent.checkstatus'
118
- ></v-select>
119
- </div>
120
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
121
- <label class="font_normal_body">隐患情况</label>
122
- <v-select
123
- placeholder='隐患情况'
124
- class="select select_list"
125
- :value-single="true"
126
- v-model='model.f_check_result'
127
- :value.sync="model.f_check_result"
128
- :options='$parent.$parent.f_check_results'
129
- condition="f_defect_content like '%{}%'"
130
- close-on-select clear-button></v-select>
131
- </div>
132
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
133
- </div>
134
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
135
-
136
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
137
- <role-selector-safe
138
- role-name="安检员"
139
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
140
- @re-res="$parent.$parent.getRes"
141
- :value.sync="model.f_checker_id"
142
- v-model="model.f_checker_id"
143
- :value-multiple="true"
144
- condition=" f_checker_name in {}">
145
- </role-selector-safe>
146
- </div>
147
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
148
- <label class="font_normal_body">片&emsp;&emsp;区</label>
149
- <v-select class="select_list select"
150
- placeholder='片区/管理站' style="width: 60%"
151
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
152
- :options='$parent.$parent.sliceArea'
153
- filer-key="name"
154
- close-on-select clear-button
155
- condition="f_slice_area='{}'"
156
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
157
- :value-single="true">
158
- </v-select>
159
- </div>
160
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
161
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
162
- <v-select class="select_list select"
163
- placeholder='抄表册' style="width: 60%"
164
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
165
- :options='$parent.$parent.cbc'
166
- filer-key="name"
167
- close-on-select clear-button
168
- condition="f_meter_book_num={}"
169
- :value-single="true">
170
- </v-select>
171
- </div>
172
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
173
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
174
- <v-select class="select_list select"
175
- placeholder='请选择' style="width: 60%"
176
- :value.sync="model.f_pcd" v-model="model.f_pcd"
177
- :options='$parent.$parent.pcds'
178
- filer-key="name"
179
- close-on-select clear-button
180
- condition="f_pcd='{}'"
181
- :value-single="true">
182
- </v-select>
183
- </div>
184
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
185
- <label class="font_normal_body">用户状态</label>
186
- <v-select class="select_list select"
187
- placeholder='用户状态' style="width: 60%"
188
- :value.sync="model.f_user_state" v-model="model.f_user_state"
189
- :options='$parent.$parent.userstates'
190
- close-on-select clear-button
191
- condition="f_user_state = '{}'"
192
- :value-single="true">
193
- </v-select>
194
- </div>
195
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
196
- <label class="font_normal_body">首次通气开始</label>
197
- <datepicker
198
- :value.sync="model.f_gas_start"
199
- placeholder='首次通气开始'
200
- :disabled-days-of-week="[]"
201
- style="width: 60%"
202
- :format="'yyyy-MM-dd'"
203
- :show-rest-button="reset"
204
- v-model="model.f_gas_start"
205
- condition="f_uservent_date >= '{}'"
206
- >
207
- </datepicker>
208
- </div>
209
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
210
- <label class="font_normal_body">首次通气结束</label>
211
- <datepicker
212
- :value.sync="model.f_gas_end"
213
- placeholder='首次通气结束'
214
- style="width: 60%"
215
- :disabled-days-of-week="[]"
216
- :format="'yyyy-MM-dd'"
217
- :show-rest-button="reset"
218
- condition="f_uservent_date <= '{}'"
219
- v-model="model.f_gas_end">
220
- </datepicker>
221
- </div>
222
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
223
- <label class="font_normal_body">建档起始</label>
224
- <datepicker
225
- :value.sync="model.f_createfile_start"
226
- placeholder='建档时间起始'
227
- :disabled-days-of-week="[]"
228
- style="width: 60%"
229
- :format="'yyyy-MM-dd'"
230
- :show-rest-button="reset"
231
- v-model="model.f_createfile_start"
232
- condition="f_createfile_date >= '{}'"
233
- >
234
- </datepicker>
235
- </div>
236
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
237
- <label class="font_normal_body">建档结束</label>
238
- <datepicker
239
- :value.sync="model.f_createfile_end"
240
- placeholder='建档时间结束'
241
- style="width: 60%"
242
- :disabled-days-of-week="[]"
243
- :format="'yyyy-MM-dd'"
244
- :show-rest-button="reset"
245
- condition="f_createfile_date <= '{}'"
246
- v-model="model.f_createfile_end">
247
- </datepicker>
248
- </div>
249
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
250
- <label class="font_normal_body">安&ensp;检&ensp;册</label>
251
- <v-select id="f_check_book_name"
252
- placeholder='安检册'
253
- class="select select_list"
254
- :value.sync="model.f_check_book_name"
255
- :options='$parent.$parent.checkbooknames'
256
- :multiple='true'
257
- v-model="model.f_check_book_name"
258
- condition="f_check_book_name in {}"
259
- ></v-select>
260
- </div>
261
- </div>
262
-
263
- <div class="row" v-show="$parent.$parent.$parent.showItem">
264
- <div :class="$parent.$parent.style">
265
- <label class="font_normal_body">用户编号</label>
266
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
267
-
268
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
269
- </div>
270
- <div :class="$parent.$parent.style">
271
- <label class="font_normal_body">用户姓名</label>
272
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
273
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
274
- </div>
275
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
276
- <export-excel :data="$parent.$parent.searchData"
277
- :field="$parent.$parent.excelHeaders"
278
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
279
- template-name='用户安检情况'></export-excel>
280
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
281
- <div style="float: right" class="button_spacing"
282
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
283
- @click="$parent.$parent.hiddenr()"></div>
284
- <div style="float: right" class="button_spacing"
285
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
286
- @click="$parent.$parent.hidden()">
287
-
288
- </div>
289
- </div>
290
-
291
- </div>
292
- <div class="row" v-show="$parent.$parent.$parent.showItem">
293
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
294
- <label class="font_normal_body">地&emsp;&emsp;址</label>
295
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
296
-
297
- placeholder="地址" condition="f_address like '%{}%'">
298
- </div>
299
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
300
- <label class="font_normal_body">用户类型</label>
301
- <v-select
302
- placeholder='用户类型'
303
- class="select select_list"
304
-
305
- :value.sync="model.f_usertype"
306
- :value-single="true"
307
- :options='$parent.$parent.usertypes'
308
- v-model="model.f_usertype"
309
- condition="f_user_type = '{}'"
310
- close-on-select clear-button></v-select>
311
- </div>
312
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
313
-
314
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
315
- <label class="font_normal_body" style="color: red;">安检筛选</label>
316
- <v-select
317
- placeholder='安检筛选'
318
- :value-single="true"
319
-
320
- class="select select_list"
321
- :value.sync="$parent.$parent.SafeCheckXZ"
322
- :options='$parent.$parent.SafeCheckXZs'
323
- v-model="$parent.$parent.SafeCheckXZ"
324
- close-on-select clear-button></v-select>
325
- </div>
326
-
327
- </div>
328
- <div class="row" v-show="$parent.$parent.$parent.showItem">
329
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
330
- <label class="font_normal_body">安检起始</label>
331
- <datepicker
332
- :value.sync="model.f_check_start"
333
- placeholder='最后安检时间起始'
334
- :disabled-days-of-week="[]"
335
- style="width: 60%"
336
- :format="'yyyy-MM-dd'"
337
- :show-rest-button="reset"
338
- v-model="model.f_check_start">
339
- </datepicker>
340
- </div>
341
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
342
- <label class="font_normal_body">安检结束</label>
343
- <datepicker
344
- :value.sync="model.f_check_end"
345
- placeholder='最后安检时间结束'
346
- style="width: 60%"
347
- :disabled-days-of-week="[]"
348
- :format="'yyyy-MM-dd'"
349
- :show-rest-button="reset"
350
- v-model="model.f_check_end">
351
- </datepicker>
352
- </div>
353
-
354
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
355
- <label class="font_normal_body">安检状态</label>
356
- <v-select
357
- placeholder='安检状态'
358
- class="select select_list"
359
- :value.sync="$parent.$parent.checkStates"
360
- :options='$parent.$parent.checkstatus'
361
- :multiple="true"
362
- close-on-select clear-button></v-select>
363
- </div>
364
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
365
- <label class="font_normal_body">隐患情况</label>
366
- <v-select
367
- placeholder='隐患情况'
368
- class="select select_list"
369
- :value-single="true"
370
- v-model='model.f_check_result'
371
- :value.sync="model.f_check_result"
372
- :options='$parent.$parent.f_check_results'
373
- condition="f_defect_content like '%{}%'"
374
- close-on-select clear-button></v-select>
375
- </div>
376
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
377
- <label class="font_normal_body">首次通气开始</label>
378
- <datepicker
379
- :value.sync="model.f_gas_start"
380
- placeholder='首次通气开始'
381
- :disabled-days-of-week="[]"
382
- style="width: 60%"
383
- :format="'yyyy-MM-dd'"
384
- :show-rest-button="reset"
385
- v-model="model.f_gas_start"
386
- condition="f_uservent_date >= '{}'"
387
- >
388
- </datepicker>
389
- </div>
390
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
391
- <label class="font_normal_body">首次通气结束</label>
392
- <datepicker
393
- :value.sync="model.f_gas_end"
394
- placeholder='首次通气结束'
395
- style="width: 60%"
396
- :disabled-days-of-week="[]"
397
- :format="'yyyy-MM-dd'"
398
- :show-rest-button="reset"
399
- condition="f_uservent_date <= '{}'"
400
- v-model="model.f_gas_end">
401
- </datepicker>
402
- </div>
403
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
404
- <label class="font_normal_body">建档起始</label>
405
- <datepicker
406
- :value.sync="model.f_createfile_start"
407
- placeholder='建档时间起始'
408
- :disabled-days-of-week="[]"
409
- style="width: 60%"
410
- :format="'yyyy-MM-dd'"
411
- :show-rest-button="reset"
412
- v-model="model.f_createfile_start"
413
- condition="f_createfile_date >= '{}'"
414
- >
415
- </datepicker>
416
- </div>
417
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
418
- <label class="font_normal_body">建档结束</label>
419
- <datepicker
420
- :value.sync="model.f_createfile_end"
421
- placeholder='建档时间结束'
422
- style="width: 60%"
423
- :disabled-days-of-week="[]"
424
- :format="'yyyy-MM-dd'"
425
- :show-rest-button="reset"
426
- condition="f_createfile_date <= '{}'"
427
- v-model="model.f_createfile_end">
428
- </datepicker>
429
- </div>
430
- </div>
431
- <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
432
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
433
- <label class="font_normal_body">公&emsp;&emsp;司</label>
434
- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
435
- </right-tree>
436
- </div>
437
-
438
- </div>-->
439
- </div>
440
- </criteria>
441
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
442
- <template partial='head'>
443
- <tr>
444
- <th>
445
- <nobr>用户编号</nobr>
446
- </th>
447
- <th>
448
- <nobr>用户名称</nobr>
449
- </th>
450
- <th>
451
- <nobr>用户电话</nobr>
452
- </th>
453
- <th>
454
- <nobr>用户表号</nobr>
455
- </th>
456
- <!-- <th>-->
457
- <!-- <nobr>气表品牌</nobr>-->
458
- <!-- </th>-->
459
- <th>
460
- <nobr>用户类型</nobr>
461
- </th>
462
- <!-- <th>-->
463
- <!-- <nobr>壁挂炉</nobr>-->
464
- <!-- </th>-->
465
- <!-- <th>-->
466
- <!-- <nobr>灶具</nobr>-->
467
- <!-- </th>-->
468
- <th>
469
- <nobr>片区</nobr>
470
- </th>
471
- <th>
472
- <nobr>小区名称</nobr>
473
- </th>
474
- <th style="padding: 0 40px">
475
- <nobr>地址</nobr>
476
- </th>
477
- <th>
478
- <nobr>安检册</nobr>
479
- </th>
480
- <th>
481
- <nobr>安检员</nobr>
482
- </th>
483
- <!-- <th>-->
484
- <!-- <nobr>安检员备注</nobr>-->
485
- <!-- </th>-->
486
- <th>
487
- <nobr>安检日期</nobr>
488
- </th>
489
- <th>
490
- <nobr>安检状态</nobr>
491
- </th>
492
- <th>
493
- <nobr>安检结果</nobr>
494
- </th>
495
- <th>
496
- <nobr>建档日期</nobr>
497
- </th>
498
- <th>
499
- <nobr>首次通气日期</nobr>
500
- </th>
501
- <th v-show="$parent.$parent.$parent.showcode">
502
- <nobr>二维码</nobr>
503
- </th>
504
- </tr>
505
- </template>
506
- <template partial='body'>
507
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
508
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
509
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
510
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
511
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
512
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
513
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
514
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
515
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_slice_area }}</td>
516
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
517
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
518
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_check_book_name }}</td>
519
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
520
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
521
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
522
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
523
- {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
524
- </td>
525
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
526
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_uservent_date }}</td>
527
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center" v-show="$parent.$parent.$parent.showcode">
528
- <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code)' >点击</button>
529
- </td>
530
- </template>
531
- </data-grid>
532
- </criteria-paged>
533
- <modal :show.sync="dialogVisible" style="text-align: center" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
534
- <div slot="modal-header" class="modal-header">
535
- <h4 class="modal-title">
536
- 二维码
537
- </h4>
538
- </div>
539
- <div slot="modal-body" class="modal-body" >
540
- <div id="dd" ></div>
541
- </div>
542
- <div slot="modal-footer" class="modal-footer">
543
- <print-element class="btn btn-success width-80" id="dd" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
544
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
545
- <button type="button" class="btn btn-success width-80" @click="dialogVisible = false" >取消</button>
546
- </div>
547
- </modal>
548
- </div>
549
-
550
- </template>
551
-
552
- <script>
553
- import {PagedList} from 'vue-client'
554
- import {HttpResetClass} from 'vue-client'
555
- import co from 'co'
556
- import * as Util from '.././../Util'
557
- import Vue from 'vue'
558
-
559
- // let select = function * (self,userid) {
560
- // let http = new HttpResetClass()
561
- // let getGasman = yield http.load('POST','/rs/search', {
562
- // source: 'this.getChildByName($安检员$).getUsers()',
563
- // userid: userid
564
- // }, {resolveMsg: null, rejectMsg: null})
565
- // //tag
566
- // getGasman.data.forEach((checker)=>{
567
- // self.checkersid.push({label:checker.name,value:checker.id})
568
- // })
569
- // self.checkersid.push({label:'全部',value:''})
570
- // }
571
-
572
-
573
- export default {
574
- title: '用户安检情况',
575
- data() {
576
- let options = []
577
- let year = (new Date()).getFullYear()
578
- for (let i = year; i <= year + 3; i++)
579
- options.push({label: i + '', value: i + ''})
580
- let moptions = []
581
- for (let i = 1; i <= 12; i++)
582
- moptions.push({label: i + '', value: i + ''})
583
-
584
- return {
585
- dialogVisible: false,
586
- searchData: {
587
- condition: '1=1',
588
- orderitem: "f_last_check_date",
589
- timetype: "dd",
590
- f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
591
- },
592
- excelHeaders: {
593
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
594
-
595
- 'f_userinfo_code': '用户编号',
596
- 'f_user_name': '用户名称',
597
- 'f_user_phone': '用户电话',
598
- 'f_meternumber': '用户表号',
599
- 'f_user_type': '用户类型',
600
- 'f_checker_name': '安检员',
601
- 'f_slice_area': '片区',
602
- 'f_residential_area': '小区名称',
603
- 'f_address': '地址',
604
- 'f_last_check_date': '安检日期',
605
- 'f_last_check_state': '安检状态',
606
- 'f_last_check_result': '安检结果',
607
- 'f_createfile_date': '建档日期',
608
- 'f_uservent_date': '首次通气日期'
609
- },
610
- model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
611
- orderitem: "'f_last_check_date'",
612
- timetype: "'dd'",
613
- f_defect_content: 'this.f_defect_content'
614
- }),
615
- f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
616
- orgstrs: [{label: '全部', value: ''}],
617
- checkersid: [],
618
- checkStates:[],
619
- SafeCheckXZ: '',
620
- civil: '', //民用安检周期
621
- civilian: '', //非民用安检周期
622
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
623
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
624
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
625
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
626
- IsShare: '否',
627
- checker: {},
628
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
629
- criteriaShow: false,
630
- checkers: [],
631
- showcode:false,
632
- chosenOrg: {id: 0},
633
- showModal: false,
634
- checkedAll: false,
635
- checkrows: [],
636
- adjustables: [],
637
- f_plan_year: year + '',
638
- f_plan_month: moptions[new Date().getMonth()].value,
639
- f_effective_start_time: '', //计划有效起始时间
640
- f_effective_end_time: '', //计划有效结束时间
641
- checkboxModel: {},
642
- c_year_list: options,
643
- c_month_list: moptions,
644
- // areas: this.areas(),
645
- checkstatus: this.checkstatus(),
646
- usertypes: this.usertypes(),
647
- userstates: this.userstates(),
648
- sqlname: '',
649
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
650
- creatPlanWay: '',
651
- sliceArea: [],
652
- residentialareas: [],
653
- checkbooknames: [],
654
- cbcs:[],
655
- cbc:[],
656
- pcds:[]
657
- }
658
- },
659
- props: {
660
- style: {
661
- type: String,
662
- default: 'col-sm-2 form-group'
663
- },
664
- style2: {
665
- type: String,
666
- default: 'col-sm-4 form-group'
667
- },
668
- checkplan: { // 传入一条安检计划信息
669
- type: Object
670
- },
671
- additemshow: {
672
- type: Boolean,
673
- default: false
674
- }
675
- },
676
- ready() {
677
- // 获取分公司信息
678
- this.model.f_defect_content=this.f_defect_content
679
- this.showcode=this.$appdata.getSingleValue('用户安检情况二维码')
680
- //this.getfengongsi()
681
- this.model.chosenOrg = {id: 0}
682
- this.model.f_filialeids = this.$login.f.f_orgids
683
- this.model.f_filiale = this.$login.f.f_fengongsi
684
- this.model.f_OrgStr = this.$login.f.orgpathstr
685
- this.Mreadibook(`('${this.$login.f.orgid}')`)
686
- this.getAllMeterBook(`('${this.$login.f.orgid}')`)
687
- this.getresidentialarea()
688
- this.getcheckbookname()
689
- },
690
- methods: {
691
- //查询二维码
692
- searchInfo(val){
693
- this.dialogVisible = true
694
- //tag
695
- new HttpResetClass().load('POST','api/af-safecheck/logic/QrcodeUtil', {
696
- data: {
697
- id:val
698
- }
699
- },{resolveMsg: null, rejectMsg: null}).then(res=>{
700
- //tag
701
- //tag
702
- let imageer=new Image()
703
- imageer.src="data:image/jpg;base64,"+res.data.result
704
- document.getElementById("dd").appendChild(imageer);
705
- //tag
706
- })
707
-
708
- },
709
- //获取省市区列表
710
- getPcd(val){
711
- this.pcds = [{label:'全部',value:''}]
712
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
713
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
714
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
715
- pcdlist.data.forEach((result)=>{
716
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
717
- })
718
- })
719
- },
720
- getmeterbook(val){
721
-
722
- //tag
723
- this.cbc=[]
724
- this.cbc.push({
725
- label:'全部',
726
- value:''
727
- })
728
- if (val==''){
729
-
730
- this.cbcs.forEach(res=>{
731
- this.cbc.push({
732
- label:res.f_book_name,
733
- value:res.id
734
- })
735
- })
736
- }else{
737
- this.cbcs.forEach(res=>{
738
- if (res.f_book_slice_area==val){
739
- this.cbc.push({
740
- label:res.f_book_name,
741
- value:res.id
742
- })
743
- }
744
- })
745
- }
746
- },
747
- Mreadibook(val){
748
- ////tag
749
- ////tag
750
- if (val){
751
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
752
- items: 'name',
753
- tablename: 't_zone',
754
- condition: `parentid in ${val}`,
755
- orderitem: 'id'
756
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
757
- this.sliceArea=[]
758
- this.sliceArea.push({
759
- label:'全部',
760
- value:''
761
- })
762
- res.data.forEach(ress=>{
763
- this.sliceArea.push({
764
- label:ress.name,
765
- value:ress.name
766
- })
767
- })
768
-
769
- })
770
- }
771
- },
772
- getresidentialarea(){
773
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/tel_singleTable_GroupBy`, {data: {
774
- items: 'f_residential_area',
775
- tablename: 't_user_address',
776
- condition: `f_residential_area is not null and f_orgid = '${this.$login.f.orgid}'`,
777
- groupitem: 'f_residential_area',
778
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
779
- this.residentialareas=[]
780
- this.residentialareas.push({
781
- label:'全部',
782
- value:''
783
- })
784
- res.data.forEach(ress=>{
785
- this.residentialareas.push({
786
- label:ress.f_residential_area,
787
- value:ress.f_residential_area
788
- })
789
- })
790
-
791
- })
792
- },
793
- getcheckbookname(){
794
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/tel_singleTable_GroupBy`, {data: {
795
- items: 'f_check_book_name',
796
- tablename: 't_check_book',
797
- condition: ` f_orgid = '${this.$login.f.orgid}'`,
798
- groupitem: 'f_check_book_name',
799
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
800
- this.checkbooknames=[]
801
- this.checkbooknames.push({
802
- label:'全部',
803
- value:''
804
- })
805
- res.data.forEach(ress=>{
806
- this.checkbooknames.push({
807
- label:ress.f_check_book_name,
808
- value:ress.f_check_book_name
809
- })
810
- })
811
-
812
- })
813
- },
814
- // 获取县域分公司内容
815
- getfengongsi() {
816
- let val = {
817
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
818
- userid: `${this.$login.f.id}`
819
- }
820
- let http = new HttpResetClass()
821
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
822
- res.data.forEach((item) => {
823
- this.orgstrs.push({label: item.name, value: item.id})
824
- })
825
- //tag
826
- })
827
- },
828
- // 县域分公司发生改变
829
- // orgstrchange(val){
830
- // if(val == undefined || val == ''){
831
- // return
832
- // }else {
833
- // this.checkersid = []
834
- // let gen = select(this,val)
835
- // return co(gen)
836
- // }
837
- // },
838
- getDefect(val) {
839
- if (val) {
840
- try {
841
- var defect = JSON.parse(val)
842
- return defect.result
843
- } catch (e) {
844
- //tag
845
- return '正常'
846
- }
847
- }
848
- return '正常'
849
- },
850
- checkerchange(val) {
851
- this.checkboxModel.f_checker = val.name
852
- this.checkboxModel.f_checker_id = val.id
853
- },
854
- search(args) {
855
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
856
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
857
- return
858
- }
859
- if ((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ) {
860
- this.$showMessage('如果录入 安检起始时间,需要选择 安检筛选条件!')
861
- return
862
- }
863
- /*if (this.SafeCheckXZ == '未安检') {
864
- args.condition += " and ( f_last_check_date >= '" + args.model.f_check_start + "' or f_last_check_date <= '" + args.model.f_check_end + "' or f_last_check_date is null)"
865
- } else {
866
- if (args.model.f_check_start) {
867
- args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
868
- }
869
- if (args.model.f_check_end) {
870
- args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
871
- }
872
- }*/
873
- args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
874
- let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
875
- con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
876
- /*con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
877
- con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
878
- con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
879
- con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''*/
880
- if (this.SafeCheckXZ) {
881
- con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
882
- if (this.SafeCheckXZ == '未安检'){
883
- args.condition += ' and ruhuid is null'
884
- }else{
885
- args.condition += ' and ruhuid is not null'
886
- }
887
- }
888
- let states = ` (`
889
- if (this.checkStates.length > 0 ){
890
- for (let i = 0; i < this.checkStates.length; i++) {
891
- if (this.checkStates[i]){
892
- states += `'${this.checkStates[i]}',`
893
- }else {
894
- states = ''
895
- break
896
- }
897
- }
898
- if (states){
899
- states=states.substring(0,states.length-1)
900
- states += `) `
901
- args.condition += ` and f_last_check_state in ${states}`
902
- }
903
- }else {
904
- states = ''
905
- }
906
- con += states ? ` and f_entry_status in ${states}` : ''
907
- con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
908
- let condition = {
909
- condition1: args.condition,
910
- condition2: con
911
- }
912
- this.searchData.condition = condition
913
- return this.model.search(condition, args.model)
914
- },
915
- checkstatus() {
916
- return this.$appdata.getParam('安检状态') ? [{
917
- label: '全部',
918
- value: ''
919
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
920
- },
921
- usertypes() {
922
- return this.$appdata.getParam('用户类型') ? [{
923
- label: '全部',
924
- value: ''
925
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
926
- },
927
- userstates() {
928
- return this.$appdata.getParam('用户状态') ? [{
929
- label: '全部',
930
- value: ''
931
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
932
- },
933
- hiddenr() {
934
- this.$parent.showItem = !this.$parent.showItem
935
- },
936
- hidden() {
937
- this.criteriaShow = !this.criteriaShow
938
- },
939
- confirm() {
940
- if (!this.checkboxModel.f_plan_name) {
941
- this.$showMessage('请填写安检计划名称!')
942
- return
943
- }
944
- // if(this.f_effective_start_time == ''){
945
- // this.$showMessage('请选择有效起始日期!')
946
- // return
947
- // }
948
- // if(this.f_effective_end_time == ''){
949
- // this.$showMessage('请选择有效结束日期!')
950
- // return
951
- // }
952
- if (this.IsShare == '否') {
953
- if (!this.checkboxModel.f_checker_id) {
954
- this.$showMessage('请选择安检员!')
955
- return
956
- }
957
- }
958
- let gen = saveGen(this)
959
- return co(gen)
960
- },
961
- changeStates() {
962
- if (this.checkedAll) {//实现反选/
963
- this.checkrows = [];
964
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
965
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
966
- }
967
- } else {//实现全选
968
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
969
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
970
- }
971
- let _this = this
972
- let condition = this.$refs.paged.$refs.criteria.condition
973
- let url = this.model.url
974
- this.$resetpost(`${url}?pageSize=9999999`, {
975
- data: {
976
- condition: condition,
977
- groupitem: '',
978
- orderitem: 'f_residential_area',
979
- f_usertype: this.model.f_usertype,
980
- f_filialeids: this.model.f_filialeids,
981
- month: this.model.month,
982
- safeCycle: this.model.safeCycle,
983
- f_checktime_start: this.model.f_checktime_start,
984
- f_checktime_end: this.model.f_checktime_end,
985
- SafeCheckSX: this.model.SafeCheckSX,
986
- f_last_check_state: this.model.f_last_check_state
987
- },
988
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
989
- (respanse) => {
990
- if (respanse.data.length >= 5000) {
991
- this.$showMessage("数据量太大,请重新选择")
992
- } else {
993
- _this.checkrows = []
994
- for (let j = 0; j < respanse.data.length; j++) {
995
- _this.checkrows.push(respanse.data[j])
996
- }
997
- //tag;
998
- }
999
- })
1000
- }
1001
- },
1002
- addChecked(item) {
1003
- //tag;
1004
- if (!item.checked) {
1005
- this.checkrows.push(item);
1006
- //tag;
1007
- } else {
1008
- for (let i = 0; i < this.checkrows.length; i++) {
1009
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
1010
- this.checkrows.splice(i, 1)
1011
- }
1012
- }
1013
- }
1014
- },
1015
- ToshowModal() {
1016
- this.creatPlanWay = 'single'
1017
- if (this.checkrows.length > 0) {
1018
- this.showModal = true
1019
- } else {
1020
- this.$showMessage("请选择需要安检的用户!")
1021
- }
1022
- },
1023
- FiltrationPlan() {
1024
- if (this.model.rows.length == 0) {
1025
- this.$showMessage("暂无可生成的计划!")
1026
- return
1027
- }
1028
- this.creatPlanWay = 'filtration'
1029
- this.showModal = true
1030
- },
1031
- AllPlan() {
1032
- if (this.model.rows.length == 0) {
1033
- this.$showMessage("暂无可生成的计划!")
1034
- return
1035
- }
1036
- this.creatPlanWay = 'all'
1037
- this.showModal = true
1038
- },
1039
- cancel() {
1040
- this.showModal = false
1041
- },
1042
- /*areas() {
1043
- let rs = []
1044
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
1045
- let temp = {
1046
- label: this.$login.f.f_allArea[i].label,
1047
- value: this.$login.f.f_allArea[i].label
1048
- }
1049
- rs.push(temp)
1050
- }
1051
- return [{label: '全部', value: ''}, ...rs]
1052
- },*/
1053
- initAdjustables() {
1054
- //tag
1055
- let arr = []
1056
- let filter = this.$login.f.f_orgids
1057
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
1058
- let temp = {}
1059
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
1060
- temp.value = `${item.value.id}`
1061
- arr.push(temp)
1062
- })
1063
- this.adjustables = [{label: '全部', value: ''}, ...arr]
1064
- },
1065
- getAllMeterBook(val){
1066
- ////tag
1067
- ////tag
1068
- this.cbcs=[]
1069
- if (val){
1070
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
1071
- items: 'f_book_name,f_book_slice_area,id',
1072
- tablename: 't_meter_book',
1073
- condition: `f_filiale_id in ${val}`,
1074
- orderitem: 'id'
1075
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1076
- res.data.forEach(ress=>{
1077
- this.cbcs.push({
1078
- id:ress.id,
1079
- f_book_name:ress.f_book_name,
1080
- f_book_slice_area:ress.f_book_slice_area
1081
- })
1082
- })
1083
- this.cbc=[]
1084
- this.cbc.push({
1085
- label:'全部',
1086
- value:''
1087
- })
1088
- this.cbcs.forEach(res=>{
1089
- this.cbc.push({
1090
- label:res.f_book_name,
1091
- value:res.id
1092
- })
1093
- })
1094
- })
1095
- }
1096
- },
1097
- getRes(obj) {
1098
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1099
- this.Mreadibook(this.model.f_filialeids)
1100
- this.getAllMeterBook(this.model.f_filialeids)
1101
- this.getPcd(this.model.f_filialeids)
1102
- }
1103
- },
1104
-
1105
- watch: {
1106
- 'model.f_usertype'(val) {
1107
- if (val == '民用') {
1108
- this.model.safeCycle = this.civil
1109
- } else if (val == '非民用') {
1110
- this.model.safeCycle = this.civilian
1111
- }
1112
- },
1113
- 'model.SafeCheckXZ'(val) {
1114
- this.model.SafeCheckSC = ''
1115
- if (val == '已安检') {
1116
- this.model.SafeCheckCQ = ''
1117
- this.model.SafeCheckSX = {
1118
- f_check_end: '', // 安检时间 查询起始条件
1119
- f_check_start: ''// 安检时间 查询终止条件
1120
- }
1121
- } else {
1122
- // 当使用筛选条件时,清空不需要的条件选项
1123
- this.model.f_issue_start = ''
1124
- this.model.f_issue_end = ''
1125
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
1126
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
1127
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
1128
- this.model.month = ''
1129
- if (val == '应安检') {
1130
- this.model.SafeCheckSC = '否'
1131
-
1132
- this.model.f_issue_start = Util.toStartDateString()
1133
- this.model.f_issue_end = Util.toStandardDateString()
1134
- }
1135
- // this.model.f_checktime_start = ''
1136
- // this.model.f_checktime_end = ''
1137
- }
1138
- },
1139
- 'model.SafeCheckSC'(val) {
1140
- if (val == '') {
1141
- this.model.f_issue_start = ''
1142
- this.model.f_issue_end = ''
1143
- }
1144
- },
1145
- // 'checker'(val){
1146
- // //tag
1147
- // if(val){
1148
- // this.checkboxModel.f_checker = this.checker[0].name
1149
- // this.checkboxModel.f_checker_id = this.checker[0].id
1150
- // }
1151
- // },
1152
- 'model.rows'() {
1153
- // if (!this.checkedAll) {//实现反选/
1154
- // this.checkrows = [];
1155
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1156
- var k = false
1157
- for (let j = 0; j < this.checkrows.length; j++) {
1158
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1159
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1160
- k = true
1161
- continue
1162
- }
1163
- }
1164
- if (!k) {
1165
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1166
- }
1167
- }
1168
- // } else {//实现全选
1169
- // // this.checkboxModel = {};
1170
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1171
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1172
- // }
1173
- // }
1174
- }
1175
- },
1176
- computed: {
1177
- selected() {
1178
- return this.$refs.paged.$refs.grid.selected
1179
- }
1180
- }
1181
- }
1182
- </script>
1183
- <style scoped>
1184
- .newcolor {
1185
- color: red;
1186
- }
1187
-
1188
- .table th {
1189
- background-color: #f2f6fa;
1190
- color: black;
1191
- }
1192
- </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"
10
+ id="f_userinfo"
11
+ placeholder="编号 名称 电话 表号 地址"
12
+ condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_meternumber like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone 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_userinfo_code"
17
+ id="f_userinfo_code"
18
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
19
+ </div>
20
+ <div :class="$parent.$parent.style">
21
+ <label class="font_normal_body">用户姓名</label>
22
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
23
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
24
+ </div>
25
+ <div :class="$parent.$parent.style">
26
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
27
+ <v-select id="f_residential_area"
28
+ placeholder='小区'
29
+ class="select select_list"
30
+ :value.sync="model.f_residential_area"
31
+ :options='$parent.$parent.residentialareas'
32
+ :multiple='true'
33
+ v-model="model.f_residential_area"
34
+ condition="f_residential_area in {}"
35
+ ></v-select>
36
+ </div>
37
+ <div :class="$parent.$parent.style">
38
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
39
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
40
+ placeholder="地址" condition="f_address like '%{}%'">
41
+ </div>
42
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
43
+ <export-excel :data="$parent.$parent.searchData"
44
+ :field="$parent.$parent.excelHeaders"
45
+ :choose-col="true"
46
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
47
+ template-name='用户安检情况'></export-excel>
48
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
49
+ <div style="float: right" class="button_spacing"
50
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
51
+ @click="$parent.$parent.hiddenr()"></div>
52
+ <div style="float: right" class="button_spacing"
53
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
+ @click="$parent.$parent.hidden()">
55
+
56
+ </div>
57
+ </div>
58
+
59
+
60
+ </div>
61
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
62
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
63
+ <label class="font_normal_body">用户类型</label>
64
+ <v-select id="f_usertype"
65
+ placeholder='用户类型'
66
+ class="select select_list"
67
+ :value.sync="model.f_usertype"
68
+ :value-single="true"
69
+ :options='$parent.$parent.usertypes'
70
+ v-model="model.f_usertype"
71
+ condition="f_user_type = '{}'"
72
+ close-on-select clear-button></v-select>
73
+ </div>
74
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
75
+
76
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
77
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
78
+ <v-select
79
+ placeholder='安检筛选'
80
+ :value-single="true"
81
+ class="select select_list"
82
+ :value.sync="$parent.$parent.SafeCheckXZ"
83
+ :options='$parent.$parent.SafeCheckXZs'
84
+ v-model="$parent.$parent.SafeCheckXZ"
85
+ close-on-select clear-button></v-select>
86
+ </div>
87
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
88
+ <label class="font_normal_body">安检起始</label>
89
+ <datepicker
90
+ :value.sync="model.f_check_start"
91
+ placeholder='最后安检时间起始'
92
+ style="width: 60%"
93
+ :format="'yyyy-MM-dd 00:00:00'"
94
+ :show-rest-button="reset"
95
+ v-model="model.f_check_start">
96
+ </datepicker>
97
+ </div>
98
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
99
+ <label class="font_normal_body">安检结束</label>
100
+ <datepicker
101
+ :value.sync="model.f_check_end"
102
+ placeholder='最后安检时间结束'
103
+ style="width: 60%"
104
+ :format="'yyyy-MM-dd 23:59:59'"
105
+ :show-rest-button="reset"
106
+ v-model="model.f_check_end">
107
+ </datepicker>
108
+ </div>
109
+
110
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
111
+ <label class="font_normal_body">安检状态</label>
112
+ <v-select id="f_entry"
113
+ placeholder='安检状态'
114
+ :multiple="true"
115
+ class="select select_list"
116
+ :value.sync="$parent.$parent.checkStates"
117
+ :options='$parent.$parent.checkstatus'
118
+ ></v-select>
119
+ </div>
120
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
121
+ <label class="font_normal_body">隐患情况</label>
122
+ <v-select
123
+ placeholder='隐患情况'
124
+ class="select select_list"
125
+ :value-single="true"
126
+ v-model='model.f_check_result'
127
+ :value.sync="model.f_check_result"
128
+ :options='$parent.$parent.f_check_results'
129
+ condition="f_defect_content like '%{}%'"
130
+ close-on-select clear-button></v-select>
131
+ </div>
132
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
133
+ </div>
134
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
135
+
136
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
137
+ <role-selector-safe
138
+ role-name="安检员"
139
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
140
+ @re-res="$parent.$parent.getRes"
141
+ :value.sync="model.f_checker_id"
142
+ v-model="model.f_checker_id"
143
+ :value-multiple="true"
144
+ condition=" f_checker_name in {}">
145
+ </role-selector-safe>
146
+ </div>
147
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
148
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
149
+ <v-select class="select_list select"
150
+ placeholder='片区/管理站' style="width: 60%"
151
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
152
+ :options='$parent.$parent.sliceArea'
153
+ filer-key="name"
154
+ close-on-select clear-button
155
+ condition="f_slice_area='{}'"
156
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
157
+ :value-single="true">
158
+ </v-select>
159
+ </div>
160
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
161
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
162
+ <v-select class="select_list select"
163
+ placeholder='抄表册' style="width: 60%"
164
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
165
+ :options='$parent.$parent.cbc'
166
+ filer-key="name"
167
+ close-on-select clear-button
168
+ condition="f_meter_book_num={}"
169
+ :value-single="true">
170
+ </v-select>
171
+ </div>
172
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
173
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
174
+ <v-select class="select_list select"
175
+ placeholder='请选择' style="width: 60%"
176
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
177
+ :options='$parent.$parent.pcds'
178
+ filer-key="name"
179
+ close-on-select clear-button
180
+ condition="f_pcd='{}'"
181
+ :value-single="true">
182
+ </v-select>
183
+ </div>
184
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
185
+ <label class="font_normal_body">用户状态</label>
186
+ <v-select class="select_list select"
187
+ placeholder='用户状态' style="width: 60%"
188
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
189
+ :options='$parent.$parent.userstates'
190
+ close-on-select clear-button
191
+ condition="f_user_state = '{}'"
192
+ :value-single="true">
193
+ </v-select>
194
+ </div>
195
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
196
+ <label class="font_normal_body">首次通气开始</label>
197
+ <datepicker
198
+ :value.sync="model.f_gas_start"
199
+ placeholder='首次通气开始'
200
+ :disabled-days-of-week="[]"
201
+ style="width: 60%"
202
+ :format="'yyyy-MM-dd'"
203
+ :show-rest-button="reset"
204
+ v-model="model.f_gas_start"
205
+ condition="f_uservent_date >= '{}'"
206
+ >
207
+ </datepicker>
208
+ </div>
209
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
210
+ <label class="font_normal_body">首次通气结束</label>
211
+ <datepicker
212
+ :value.sync="model.f_gas_end"
213
+ placeholder='首次通气结束'
214
+ style="width: 60%"
215
+ :disabled-days-of-week="[]"
216
+ :format="'yyyy-MM-dd'"
217
+ :show-rest-button="reset"
218
+ condition="f_uservent_date <= '{}'"
219
+ v-model="model.f_gas_end">
220
+ </datepicker>
221
+ </div>
222
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
223
+ <label class="font_normal_body">建档起始</label>
224
+ <datepicker
225
+ :value.sync="model.f_createfile_start"
226
+ placeholder='建档时间起始'
227
+ :disabled-days-of-week="[]"
228
+ style="width: 60%"
229
+ :format="'yyyy-MM-dd'"
230
+ :show-rest-button="reset"
231
+ v-model="model.f_createfile_start"
232
+ condition="f_createfile_date >= '{}'"
233
+ >
234
+ </datepicker>
235
+ </div>
236
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
237
+ <label class="font_normal_body">建档结束</label>
238
+ <datepicker
239
+ :value.sync="model.f_createfile_end"
240
+ placeholder='建档时间结束'
241
+ style="width: 60%"
242
+ :disabled-days-of-week="[]"
243
+ :format="'yyyy-MM-dd'"
244
+ :show-rest-button="reset"
245
+ condition="f_createfile_date <= '{}'"
246
+ v-model="model.f_createfile_end">
247
+ </datepicker>
248
+ </div>
249
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
250
+ <label class="font_normal_body">安&ensp;检&ensp;册</label>
251
+ <v-select id="f_check_book_name"
252
+ placeholder='安检册'
253
+ class="select select_list"
254
+ :value.sync="model.f_check_book_name"
255
+ :options='$parent.$parent.checkbooknames'
256
+ :multiple='true'
257
+ v-model="model.f_check_book_name"
258
+ condition="f_check_book_name in {}"
259
+ ></v-select>
260
+ </div>
261
+ </div>
262
+
263
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
264
+ <div :class="$parent.$parent.style">
265
+ <label class="font_normal_body">用户编号</label>
266
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
267
+
268
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
269
+ </div>
270
+ <div :class="$parent.$parent.style">
271
+ <label class="font_normal_body">用户姓名</label>
272
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
273
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
274
+ </div>
275
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
276
+ <export-excel :data="$parent.$parent.searchData"
277
+ :field="$parent.$parent.excelHeaders"
278
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
279
+ template-name='用户安检情况'></export-excel>
280
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
281
+ <div style="float: right" class="button_spacing"
282
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
283
+ @click="$parent.$parent.hiddenr()"></div>
284
+ <div style="float: right" class="button_spacing"
285
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
286
+ @click="$parent.$parent.hidden()">
287
+
288
+ </div>
289
+ </div>
290
+
291
+ </div>
292
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
293
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
294
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
295
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
296
+
297
+ placeholder="地址" condition="f_address like '%{}%'">
298
+ </div>
299
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
300
+ <label class="font_normal_body">用户类型</label>
301
+ <v-select
302
+ placeholder='用户类型'
303
+ class="select select_list"
304
+
305
+ :value.sync="model.f_usertype"
306
+ :value-single="true"
307
+ :options='$parent.$parent.usertypes'
308
+ v-model="model.f_usertype"
309
+ condition="f_user_type = '{}'"
310
+ close-on-select clear-button></v-select>
311
+ </div>
312
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
313
+
314
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
315
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
316
+ <v-select
317
+ placeholder='安检筛选'
318
+ :value-single="true"
319
+
320
+ class="select select_list"
321
+ :value.sync="$parent.$parent.SafeCheckXZ"
322
+ :options='$parent.$parent.SafeCheckXZs'
323
+ v-model="$parent.$parent.SafeCheckXZ"
324
+ close-on-select clear-button></v-select>
325
+ </div>
326
+
327
+ </div>
328
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
329
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
330
+ <label class="font_normal_body">安检起始</label>
331
+ <datepicker
332
+ :value.sync="model.f_check_start"
333
+ placeholder='最后安检时间起始'
334
+ :disabled-days-of-week="[]"
335
+ style="width: 60%"
336
+ :format="'yyyy-MM-dd'"
337
+ :show-rest-button="reset"
338
+ v-model="model.f_check_start">
339
+ </datepicker>
340
+ </div>
341
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
342
+ <label class="font_normal_body">安检结束</label>
343
+ <datepicker
344
+ :value.sync="model.f_check_end"
345
+ placeholder='最后安检时间结束'
346
+ style="width: 60%"
347
+ :disabled-days-of-week="[]"
348
+ :format="'yyyy-MM-dd'"
349
+ :show-rest-button="reset"
350
+ v-model="model.f_check_end">
351
+ </datepicker>
352
+ </div>
353
+
354
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
355
+ <label class="font_normal_body">安检状态</label>
356
+ <v-select
357
+ placeholder='安检状态'
358
+ class="select select_list"
359
+ :value.sync="$parent.$parent.checkStates"
360
+ :options='$parent.$parent.checkstatus'
361
+ :multiple="true"
362
+ close-on-select clear-button></v-select>
363
+ </div>
364
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
365
+ <label class="font_normal_body">隐患情况</label>
366
+ <v-select
367
+ placeholder='隐患情况'
368
+ class="select select_list"
369
+ :value-single="true"
370
+ v-model='model.f_check_result'
371
+ :value.sync="model.f_check_result"
372
+ :options='$parent.$parent.f_check_results'
373
+ condition="f_defect_content like '%{}%'"
374
+ close-on-select clear-button></v-select>
375
+ </div>
376
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
377
+ <label class="font_normal_body">首次通气开始</label>
378
+ <datepicker
379
+ :value.sync="model.f_gas_start"
380
+ placeholder='首次通气开始'
381
+ :disabled-days-of-week="[]"
382
+ style="width: 60%"
383
+ :format="'yyyy-MM-dd'"
384
+ :show-rest-button="reset"
385
+ v-model="model.f_gas_start"
386
+ condition="f_uservent_date >= '{}'"
387
+ >
388
+ </datepicker>
389
+ </div>
390
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
391
+ <label class="font_normal_body">首次通气结束</label>
392
+ <datepicker
393
+ :value.sync="model.f_gas_end"
394
+ placeholder='首次通气结束'
395
+ style="width: 60%"
396
+ :disabled-days-of-week="[]"
397
+ :format="'yyyy-MM-dd'"
398
+ :show-rest-button="reset"
399
+ condition="f_uservent_date <= '{}'"
400
+ v-model="model.f_gas_end">
401
+ </datepicker>
402
+ </div>
403
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
404
+ <label class="font_normal_body">建档起始</label>
405
+ <datepicker
406
+ :value.sync="model.f_createfile_start"
407
+ placeholder='建档时间起始'
408
+ :disabled-days-of-week="[]"
409
+ style="width: 60%"
410
+ :format="'yyyy-MM-dd'"
411
+ :show-rest-button="reset"
412
+ v-model="model.f_createfile_start"
413
+ condition="f_createfile_date >= '{}'"
414
+ >
415
+ </datepicker>
416
+ </div>
417
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
418
+ <label class="font_normal_body">建档结束</label>
419
+ <datepicker
420
+ :value.sync="model.f_createfile_end"
421
+ placeholder='建档时间结束'
422
+ style="width: 60%"
423
+ :disabled-days-of-week="[]"
424
+ :format="'yyyy-MM-dd'"
425
+ :show-rest-button="reset"
426
+ condition="f_createfile_date <= '{}'"
427
+ v-model="model.f_createfile_end">
428
+ </datepicker>
429
+ </div>
430
+ </div>
431
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
432
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
433
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
434
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
435
+ </right-tree>
436
+ </div>
437
+
438
+ </div>-->
439
+ </div>
440
+ </criteria>
441
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
442
+ <template partial='head'>
443
+ <tr>
444
+ <th>
445
+ <nobr>用户编号</nobr>
446
+ </th>
447
+ <th>
448
+ <nobr>用户名称</nobr>
449
+ </th>
450
+ <th>
451
+ <nobr>用户电话</nobr>
452
+ </th>
453
+ <th>
454
+ <nobr>用户表号</nobr>
455
+ </th>
456
+ <!-- <th>-->
457
+ <!-- <nobr>气表品牌</nobr>-->
458
+ <!-- </th>-->
459
+ <th>
460
+ <nobr>用户类型</nobr>
461
+ </th>
462
+ <!-- <th>-->
463
+ <!-- <nobr>壁挂炉</nobr>-->
464
+ <!-- </th>-->
465
+ <!-- <th>-->
466
+ <!-- <nobr>灶具</nobr>-->
467
+ <!-- </th>-->
468
+ <th>
469
+ <nobr>片区</nobr>
470
+ </th>
471
+ <th>
472
+ <nobr>小区名称</nobr>
473
+ </th>
474
+ <th style="padding: 0 40px">
475
+ <nobr>地址</nobr>
476
+ </th>
477
+ <th>
478
+ <nobr>安检册</nobr>
479
+ </th>
480
+ <th>
481
+ <nobr>安检员</nobr>
482
+ </th>
483
+ <!-- <th>-->
484
+ <!-- <nobr>安检员备注</nobr>-->
485
+ <!-- </th>-->
486
+ <th>
487
+ <nobr>安检日期</nobr>
488
+ </th>
489
+ <th>
490
+ <nobr>安检状态</nobr>
491
+ </th>
492
+ <th>
493
+ <nobr>安检结果</nobr>
494
+ </th>
495
+ <th>
496
+ <nobr>建档日期</nobr>
497
+ </th>
498
+ <th>
499
+ <nobr>首次通气日期</nobr>
500
+ </th>
501
+ <th v-show="$parent.$parent.$parent.showcode">
502
+ <nobr>二维码</nobr>
503
+ </th>
504
+ </tr>
505
+ </template>
506
+ <template partial='body'>
507
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
508
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
509
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
510
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
511
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
512
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
513
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
514
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
515
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_slice_area }}</td>
516
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
517
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
518
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_check_book_name }}</td>
519
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
520
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
521
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
522
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
523
+ {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
524
+ </td>
525
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
526
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_uservent_date }}</td>
527
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center" v-show="$parent.$parent.$parent.showcode">
528
+ <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code)' >点击</button>
529
+ </td>
530
+ </template>
531
+ </data-grid>
532
+ </criteria-paged>
533
+ <modal :show.sync="dialogVisible" style="text-align: center" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
534
+ <div slot="modal-header" class="modal-header">
535
+ <h4 class="modal-title">
536
+ 二维码
537
+ </h4>
538
+ </div>
539
+ <div slot="modal-body" class="modal-body" >
540
+ <div id="dd" ></div>
541
+ </div>
542
+ <div slot="modal-footer" class="modal-footer">
543
+ <print-element class="btn btn-success width-80" id="dd" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
544
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
545
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false" >取消</button>
546
+ </div>
547
+ </modal>
548
+ </div>
549
+
550
+ </template>
551
+
552
+ <script>
553
+ import {PagedList} from 'vue-client'
554
+ import {HttpResetClass} from 'vue-client'
555
+ import co from 'co'
556
+ import * as Util from '.././../Util'
557
+ import Vue from 'vue'
558
+
559
+ // let select = function * (self,userid) {
560
+ // let http = new HttpResetClass()
561
+ // let getGasman = yield http.load('POST','/rs/search', {
562
+ // source: 'this.getChildByName($安检员$).getUsers()',
563
+ // userid: userid
564
+ // }, {resolveMsg: null, rejectMsg: null})
565
+ // //tag
566
+ // getGasman.data.forEach((checker)=>{
567
+ // self.checkersid.push({label:checker.name,value:checker.id})
568
+ // })
569
+ // self.checkersid.push({label:'全部',value:''})
570
+ // }
571
+
572
+
573
+ export default {
574
+ title: '用户安检情况',
575
+ data() {
576
+ let options = []
577
+ let year = (new Date()).getFullYear()
578
+ for (let i = year; i <= year + 3; i++)
579
+ options.push({label: i + '', value: i + ''})
580
+ let moptions = []
581
+ for (let i = 1; i <= 12; i++)
582
+ moptions.push({label: i + '', value: i + ''})
583
+
584
+ return {
585
+ dialogVisible: false,
586
+ searchData: {
587
+ condition: '1=1',
588
+ orderitem: "f_last_check_date",
589
+ timetype: "dd",
590
+ f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
591
+ },
592
+ excelHeaders: {
593
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
594
+
595
+ 'f_userinfo_code': '用户编号',
596
+ 'f_user_name': '用户名称',
597
+ 'f_user_phone': '用户电话',
598
+ 'f_meternumber': '用户表号',
599
+ 'f_user_type': '用户类型',
600
+ 'f_checker_name': '安检员',
601
+ 'f_slice_area': '片区',
602
+ 'f_residential_area': '小区名称',
603
+ 'f_address': '地址',
604
+ 'f_last_check_date': '安检日期',
605
+ 'f_last_check_state': '安检状态',
606
+ 'f_last_check_result': '安检结果',
607
+ 'f_createfile_date': '建档日期',
608
+ 'f_uservent_date': '首次通气日期'
609
+ },
610
+ model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
611
+ orderitem: "'f_last_check_date'",
612
+ timetype: "'dd'",
613
+ f_defect_content: 'this.f_defect_content'
614
+ }),
615
+ f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
616
+ orgstrs: [{label: '全部', value: ''}],
617
+ checkersid: [],
618
+ checkStates:[],
619
+ SafeCheckXZ: '',
620
+ civil: '', //民用安检周期
621
+ civilian: '', //非民用安检周期
622
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
623
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
624
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
625
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
626
+ IsShare: '否',
627
+ checker: {},
628
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
629
+ criteriaShow: false,
630
+ checkers: [],
631
+ showcode:false,
632
+ chosenOrg: {id: 0},
633
+ showModal: false,
634
+ checkedAll: false,
635
+ checkrows: [],
636
+ adjustables: [],
637
+ f_plan_year: year + '',
638
+ f_plan_month: moptions[new Date().getMonth()].value,
639
+ f_effective_start_time: '', //计划有效起始时间
640
+ f_effective_end_time: '', //计划有效结束时间
641
+ checkboxModel: {},
642
+ c_year_list: options,
643
+ c_month_list: moptions,
644
+ // areas: this.areas(),
645
+ checkstatus: this.checkstatus(),
646
+ usertypes: this.usertypes(),
647
+ userstates: this.userstates(),
648
+ sqlname: '',
649
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
650
+ creatPlanWay: '',
651
+ sliceArea: [],
652
+ residentialareas: [],
653
+ checkbooknames: [],
654
+ cbcs:[],
655
+ cbc:[],
656
+ pcds:[]
657
+ }
658
+ },
659
+ props: {
660
+ style: {
661
+ type: String,
662
+ default: 'col-sm-2 form-group'
663
+ },
664
+ style2: {
665
+ type: String,
666
+ default: 'col-sm-4 form-group'
667
+ },
668
+ checkplan: { // 传入一条安检计划信息
669
+ type: Object
670
+ },
671
+ additemshow: {
672
+ type: Boolean,
673
+ default: false
674
+ }
675
+ },
676
+ ready() {
677
+ // 获取分公司信息
678
+ this.model.f_defect_content=this.f_defect_content
679
+ this.showcode=this.$appdata.getSingleValue('用户安检情况二维码')
680
+ //this.getfengongsi()
681
+ this.model.chosenOrg = {id: 0}
682
+ this.model.f_filialeids = this.$login.f.f_orgids
683
+ this.model.f_filiale = this.$login.f.f_fengongsi
684
+ this.model.f_OrgStr = this.$login.f.orgpathstr
685
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
686
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
687
+ this.getresidentialarea()
688
+ this.getcheckbookname()
689
+ },
690
+ methods: {
691
+ //查询二维码
692
+ searchInfo(val){
693
+ this.dialogVisible = true
694
+ //tag
695
+ new HttpResetClass().load('POST','api/af-safecheck/logic/QrcodeUtil', {
696
+ data: {
697
+ id:val
698
+ }
699
+ },{resolveMsg: null, rejectMsg: null}).then(res=>{
700
+ //tag
701
+ //tag
702
+ let imageer=new Image()
703
+ imageer.src="data:image/jpg;base64,"+res.data.result
704
+ document.getElementById("dd").appendChild(imageer);
705
+ //tag
706
+ })
707
+
708
+ },
709
+ //获取省市区列表
710
+ getPcd(val){
711
+ this.pcds = [{label:'全部',value:''}]
712
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
713
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
714
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
715
+ pcdlist.data.forEach((result)=>{
716
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
717
+ })
718
+ })
719
+ },
720
+ getmeterbook(val){
721
+
722
+ //tag
723
+ this.cbc=[]
724
+ this.cbc.push({
725
+ label:'全部',
726
+ value:''
727
+ })
728
+ if (val==''){
729
+
730
+ this.cbcs.forEach(res=>{
731
+ this.cbc.push({
732
+ label:res.f_book_name,
733
+ value:res.id
734
+ })
735
+ })
736
+ }else{
737
+ this.cbcs.forEach(res=>{
738
+ if (res.f_book_slice_area==val){
739
+ this.cbc.push({
740
+ label:res.f_book_name,
741
+ value:res.id
742
+ })
743
+ }
744
+ })
745
+ }
746
+ },
747
+ Mreadibook(val){
748
+ ////tag
749
+ ////tag
750
+ if (val){
751
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
752
+ items: 'name',
753
+ tablename: 't_zone',
754
+ condition: `parentid in ${val}`,
755
+ orderitem: 'id'
756
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
757
+ this.sliceArea=[]
758
+ this.sliceArea.push({
759
+ label:'全部',
760
+ value:''
761
+ })
762
+ res.data.forEach(ress=>{
763
+ this.sliceArea.push({
764
+ label:ress.name,
765
+ value:ress.name
766
+ })
767
+ })
768
+
769
+ })
770
+ }
771
+ },
772
+ getresidentialarea(){
773
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/tel_singleTable_GroupBy`, {data: {
774
+ items: 'f_residential_area',
775
+ tablename: 't_user_address',
776
+ condition: `f_residential_area is not null and f_orgid = '${this.$login.f.orgid}'`,
777
+ groupitem: 'f_residential_area',
778
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
779
+ this.residentialareas=[]
780
+ this.residentialareas.push({
781
+ label:'全部',
782
+ value:''
783
+ })
784
+ res.data.forEach(ress=>{
785
+ this.residentialareas.push({
786
+ label:ress.f_residential_area,
787
+ value:ress.f_residential_area
788
+ })
789
+ })
790
+
791
+ })
792
+ },
793
+ getcheckbookname(){
794
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/tel_singleTable_GroupBy`, {data: {
795
+ items: 'f_check_book_name',
796
+ tablename: 't_check_book',
797
+ condition: ` f_orgid = '${this.$login.f.orgid}'`,
798
+ groupitem: 'f_check_book_name',
799
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
800
+ this.checkbooknames=[]
801
+ this.checkbooknames.push({
802
+ label:'全部',
803
+ value:''
804
+ })
805
+ res.data.forEach(ress=>{
806
+ this.checkbooknames.push({
807
+ label:ress.f_check_book_name,
808
+ value:ress.f_check_book_name
809
+ })
810
+ })
811
+
812
+ })
813
+ },
814
+ // 获取县域分公司内容
815
+ getfengongsi() {
816
+ let val = {
817
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
818
+ userid: `${this.$login.f.id}`
819
+ }
820
+ let http = new HttpResetClass()
821
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
822
+ res.data.forEach((item) => {
823
+ this.orgstrs.push({label: item.name, value: item.id})
824
+ })
825
+ //tag
826
+ })
827
+ },
828
+ // 县域分公司发生改变
829
+ // orgstrchange(val){
830
+ // if(val == undefined || val == ''){
831
+ // return
832
+ // }else {
833
+ // this.checkersid = []
834
+ // let gen = select(this,val)
835
+ // return co(gen)
836
+ // }
837
+ // },
838
+ getDefect(val) {
839
+ if (val) {
840
+ try {
841
+ var defect = JSON.parse(val)
842
+ return defect.result
843
+ } catch (e) {
844
+ //tag
845
+ return '正常'
846
+ }
847
+ }
848
+ return '正常'
849
+ },
850
+ checkerchange(val) {
851
+ this.checkboxModel.f_checker = val.name
852
+ this.checkboxModel.f_checker_id = val.id
853
+ },
854
+ search(args) {
855
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
856
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
857
+ return
858
+ }
859
+ if ((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ) {
860
+ this.$showMessage('如果录入 安检起始时间,需要选择 安检筛选条件!')
861
+ return
862
+ }
863
+ /*if (this.SafeCheckXZ == '未安检') {
864
+ args.condition += " and ( f_last_check_date >= '" + args.model.f_check_start + "' or f_last_check_date <= '" + args.model.f_check_end + "' or f_last_check_date is null)"
865
+ } else {
866
+ if (args.model.f_check_start) {
867
+ args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
868
+ }
869
+ if (args.model.f_check_end) {
870
+ args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
871
+ }
872
+ }*/
873
+ args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
874
+ let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
875
+ con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
876
+ /*con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
877
+ con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
878
+ con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
879
+ con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''*/
880
+ if (this.SafeCheckXZ) {
881
+ con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
882
+ if (this.SafeCheckXZ == '未安检'){
883
+ args.condition += ' and ruhuid is null'
884
+ }else{
885
+ args.condition += ' and ruhuid is not null'
886
+ }
887
+ }
888
+ let states = ` (`
889
+ if (this.checkStates.length > 0 ){
890
+ for (let i = 0; i < this.checkStates.length; i++) {
891
+ if (this.checkStates[i]){
892
+ states += `'${this.checkStates[i]}',`
893
+ }else {
894
+ states = ''
895
+ break
896
+ }
897
+ }
898
+ if (states){
899
+ states=states.substring(0,states.length-1)
900
+ states += `) `
901
+ args.condition += ` and f_last_check_state in ${states}`
902
+ }
903
+ }else {
904
+ states = ''
905
+ }
906
+ con += states ? ` and f_entry_status in ${states}` : ''
907
+ con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
908
+ let condition = {
909
+ condition1: args.condition,
910
+ condition2: con
911
+ }
912
+ this.searchData.condition = condition
913
+ return this.model.search(condition, args.model)
914
+ },
915
+ checkstatus() {
916
+ return this.$appdata.getParam('安检状态') ? [{
917
+ label: '全部',
918
+ value: ''
919
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
920
+ },
921
+ usertypes() {
922
+ return this.$appdata.getParam('用户类型') ? [{
923
+ label: '全部',
924
+ value: ''
925
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
926
+ },
927
+ userstates() {
928
+ return this.$appdata.getParam('用户状态') ? [{
929
+ label: '全部',
930
+ value: ''
931
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
932
+ },
933
+ hiddenr() {
934
+ this.$parent.showItem = !this.$parent.showItem
935
+ },
936
+ hidden() {
937
+ this.criteriaShow = !this.criteriaShow
938
+ },
939
+ confirm() {
940
+ if (!this.checkboxModel.f_plan_name) {
941
+ this.$showMessage('请填写安检计划名称!')
942
+ return
943
+ }
944
+ // if(this.f_effective_start_time == ''){
945
+ // this.$showMessage('请选择有效起始日期!')
946
+ // return
947
+ // }
948
+ // if(this.f_effective_end_time == ''){
949
+ // this.$showMessage('请选择有效结束日期!')
950
+ // return
951
+ // }
952
+ if (this.IsShare == '否') {
953
+ if (!this.checkboxModel.f_checker_id) {
954
+ this.$showMessage('请选择安检员!')
955
+ return
956
+ }
957
+ }
958
+ let gen = saveGen(this)
959
+ return co(gen)
960
+ },
961
+ changeStates() {
962
+ if (this.checkedAll) {//实现反选/
963
+ this.checkrows = [];
964
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
965
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
966
+ }
967
+ } else {//实现全选
968
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
969
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
970
+ }
971
+ let _this = this
972
+ let condition = this.$refs.paged.$refs.criteria.condition
973
+ let url = this.model.url
974
+ this.$resetpost(`${url}?pageSize=9999999`, {
975
+ data: {
976
+ condition: condition,
977
+ groupitem: '',
978
+ orderitem: 'f_residential_area',
979
+ f_usertype: this.model.f_usertype,
980
+ f_filialeids: this.model.f_filialeids,
981
+ month: this.model.month,
982
+ safeCycle: this.model.safeCycle,
983
+ f_checktime_start: this.model.f_checktime_start,
984
+ f_checktime_end: this.model.f_checktime_end,
985
+ SafeCheckSX: this.model.SafeCheckSX,
986
+ f_last_check_state: this.model.f_last_check_state
987
+ },
988
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
989
+ (respanse) => {
990
+ if (respanse.data.length >= 5000) {
991
+ this.$showMessage("数据量太大,请重新选择")
992
+ } else {
993
+ _this.checkrows = []
994
+ for (let j = 0; j < respanse.data.length; j++) {
995
+ _this.checkrows.push(respanse.data[j])
996
+ }
997
+ //tag;
998
+ }
999
+ })
1000
+ }
1001
+ },
1002
+ addChecked(item) {
1003
+ //tag;
1004
+ if (!item.checked) {
1005
+ this.checkrows.push(item);
1006
+ //tag;
1007
+ } else {
1008
+ for (let i = 0; i < this.checkrows.length; i++) {
1009
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
1010
+ this.checkrows.splice(i, 1)
1011
+ }
1012
+ }
1013
+ }
1014
+ },
1015
+ ToshowModal() {
1016
+ this.creatPlanWay = 'single'
1017
+ if (this.checkrows.length > 0) {
1018
+ this.showModal = true
1019
+ } else {
1020
+ this.$showMessage("请选择需要安检的用户!")
1021
+ }
1022
+ },
1023
+ FiltrationPlan() {
1024
+ if (this.model.rows.length == 0) {
1025
+ this.$showMessage("暂无可生成的计划!")
1026
+ return
1027
+ }
1028
+ this.creatPlanWay = 'filtration'
1029
+ this.showModal = true
1030
+ },
1031
+ AllPlan() {
1032
+ if (this.model.rows.length == 0) {
1033
+ this.$showMessage("暂无可生成的计划!")
1034
+ return
1035
+ }
1036
+ this.creatPlanWay = 'all'
1037
+ this.showModal = true
1038
+ },
1039
+ cancel() {
1040
+ this.showModal = false
1041
+ },
1042
+ /*areas() {
1043
+ let rs = []
1044
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
1045
+ let temp = {
1046
+ label: this.$login.f.f_allArea[i].label,
1047
+ value: this.$login.f.f_allArea[i].label
1048
+ }
1049
+ rs.push(temp)
1050
+ }
1051
+ return [{label: '全部', value: ''}, ...rs]
1052
+ },*/
1053
+ initAdjustables() {
1054
+ //tag
1055
+ let arr = []
1056
+ let filter = this.$login.f.f_orgids
1057
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
1058
+ let temp = {}
1059
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
1060
+ temp.value = `${item.value.id}`
1061
+ arr.push(temp)
1062
+ })
1063
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
1064
+ },
1065
+ getAllMeterBook(val){
1066
+ ////tag
1067
+ ////tag
1068
+ this.cbcs=[]
1069
+ if (val){
1070
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
1071
+ items: 'f_book_name,f_book_slice_area,id',
1072
+ tablename: 't_meter_book',
1073
+ condition: `f_filiale_id in ${val}`,
1074
+ orderitem: 'id'
1075
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
1076
+ res.data.forEach(ress=>{
1077
+ this.cbcs.push({
1078
+ id:ress.id,
1079
+ f_book_name:ress.f_book_name,
1080
+ f_book_slice_area:ress.f_book_slice_area
1081
+ })
1082
+ })
1083
+ this.cbc=[]
1084
+ this.cbc.push({
1085
+ label:'全部',
1086
+ value:''
1087
+ })
1088
+ this.cbcs.forEach(res=>{
1089
+ this.cbc.push({
1090
+ label:res.f_book_name,
1091
+ value:res.id
1092
+ })
1093
+ })
1094
+ })
1095
+ }
1096
+ },
1097
+ getRes(obj) {
1098
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
1099
+ this.Mreadibook(this.model.f_filialeids)
1100
+ this.getAllMeterBook(this.model.f_filialeids)
1101
+ this.getPcd(this.model.f_filialeids)
1102
+ }
1103
+ },
1104
+
1105
+ watch: {
1106
+ 'model.f_usertype'(val) {
1107
+ if (val == '民用') {
1108
+ this.model.safeCycle = this.civil
1109
+ } else if (val == '非民用') {
1110
+ this.model.safeCycle = this.civilian
1111
+ }
1112
+ },
1113
+ 'model.SafeCheckXZ'(val) {
1114
+ this.model.SafeCheckSC = ''
1115
+ if (val == '已安检') {
1116
+ this.model.SafeCheckCQ = ''
1117
+ this.model.SafeCheckSX = {
1118
+ f_check_end: '', // 安检时间 查询起始条件
1119
+ f_check_start: ''// 安检时间 查询终止条件
1120
+ }
1121
+ } else {
1122
+ // 当使用筛选条件时,清空不需要的条件选项
1123
+ this.model.f_issue_start = ''
1124
+ this.model.f_issue_end = ''
1125
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
1126
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
1127
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
1128
+ this.model.month = ''
1129
+ if (val == '应安检') {
1130
+ this.model.SafeCheckSC = '否'
1131
+
1132
+ this.model.f_issue_start = Util.toStartDateString()
1133
+ this.model.f_issue_end = Util.toStandardDateString()
1134
+ }
1135
+ // this.model.f_checktime_start = ''
1136
+ // this.model.f_checktime_end = ''
1137
+ }
1138
+ },
1139
+ 'model.SafeCheckSC'(val) {
1140
+ if (val == '') {
1141
+ this.model.f_issue_start = ''
1142
+ this.model.f_issue_end = ''
1143
+ }
1144
+ },
1145
+ // 'checker'(val){
1146
+ // //tag
1147
+ // if(val){
1148
+ // this.checkboxModel.f_checker = this.checker[0].name
1149
+ // this.checkboxModel.f_checker_id = this.checker[0].id
1150
+ // }
1151
+ // },
1152
+ 'model.rows'() {
1153
+ // if (!this.checkedAll) {//实现反选/
1154
+ // this.checkrows = [];
1155
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1156
+ var k = false
1157
+ for (let j = 0; j < this.checkrows.length; j++) {
1158
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1159
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1160
+ k = true
1161
+ continue
1162
+ }
1163
+ }
1164
+ if (!k) {
1165
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1166
+ }
1167
+ }
1168
+ // } else {//实现全选
1169
+ // // this.checkboxModel = {};
1170
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1171
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1172
+ // }
1173
+ // }
1174
+ }
1175
+ },
1176
+ computed: {
1177
+ selected() {
1178
+ return this.$refs.paged.$refs.grid.selected
1179
+ }
1180
+ }
1181
+ }
1182
+ </script>
1183
+ <style scoped>
1184
+ .newcolor {
1185
+ color: red;
1186
+ }
1187
+
1188
+ .table th {
1189
+ background-color: #f2f6fa;
1190
+ color: black;
1191
+ }
1192
+ </style>