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