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