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