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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/examples/SafePlan/comp.js +1527 -1527
  2. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  3. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  4. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  5. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  6. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  7. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  8. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  9. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  10. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  11. package/package.json +1 -1
  12. package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
  13. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  14. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  15. package/src/components/checkplan/CheckDetail.vue +205 -205
  16. package/src/components/checkplan/SelectCheckPlan.vue +311 -311
  17. package/src/components/createcheckplan/PlanUersList.vue +137 -137
  18. package/src/components/defect/DefectPaper.vue +764 -764
  19. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  20. package/src/components/inspections/InspectionList.vue +476 -476
  21. package/src/components/inspections/InspectionLists.vue +478 -478
  22. package/src/components/inspections/InspectionListss.vue +477 -477
  23. package/src/components/noplan/NoPlanSearchUser.vue +300 -300
  24. package/src/components/olddata/OldPaperList.vue +340 -340
  25. package/src/components/paper/PaperList.vue +790 -790
  26. package/src/components/paper/filialeCheckInfo.vue +111 -111
  27. package/src/components/pc/CheckNoDetail.vue +209 -209
  28. package/src/components/pc/DefectDeal.vue +997 -997
  29. package/src/components/pc/NewCheckpaper.vue +1957 -1957
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +1 -1
  32. package/src/components/pc/PaperEdit.vue +151 -151
  33. package/src/components/pc/PaperVisitMain.vue +179 -179
  34. package/src/components/pc/SafeVisitHistory.vue +208 -208
  35. package/src/components/pc/SafecheckDeviceList.vue +260 -260
  36. package/src/components/pc/SecurityCheckLedger.vue +133 -133
  37. package/src/components/pc/SelectCheckNoPlan.vue +278 -278
  38. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
  39. package/src/components/planmanage/checkPlanList.vue +369 -369
  40. package/src/components/planmanage/checkUserList.vue +773 -773
  41. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  42. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  43. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  44. package/src/components/report/CheckPlanAreaList.vue +505 -505
  45. package/src/components/report/CheckPlanUserList.vue +216 -216
  46. package/src/components/report/NoCheckplanSafecheck.vue +212 -212
  47. package/src/components/rongcheng/CheckSearchArea.vue +703 -703
  48. package/src/components/rongcheng/CheckSearchUser.vue +936 -936
  49. package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
  50. package/src/components/rongcheng/CheckUserList.vue +205 -205
  51. package/src/components/rongcheng/DefectPaper.vue +676 -676
  52. package/src/components/rongcheng/PaperListAJ.vue +434 -434
  53. package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
  54. package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
  55. package/src/components/rongcheng/PaperListSQ.vue +444 -444
  56. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
  57. package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
  58. package/src/components/safecheckNew/PaperList.vue +785 -785
  59. package/src/components/shaoguan/DefectPaper.vue +217 -217
  60. package/src/components/shaoguan/PaperList.vue +466 -466
  61. package/src/components/userfile/UserInfoAudit.vue +316 -316
  62. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  63. package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
  64. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  65. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
  66. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  67. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  68. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
  69. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  70. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
  71. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  72. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  73. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  74. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  75. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  76. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  77. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  78. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  79. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  80. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  81. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  82. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  83. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  84. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  85. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  86. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  87. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  88. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  89. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  90. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  91. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  92. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  93. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  94. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  95. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  96. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  97. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  98. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  99. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  100. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  101. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  102. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  103. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  104. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  105. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  106. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  107. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  108. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  109. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  110. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  111. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  112. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  113. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  114. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  115. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  116. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  118. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  119. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  120. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  121. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  122. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  123. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  124. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  125. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  126. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  127. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  128. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  129. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  130. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  131. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  132. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  133. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  134. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  135. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  136. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  137. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  138. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  139. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  140. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  141. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  142. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  143. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  144. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  145. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  146. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  147. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  148. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  149. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  150. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  151. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  152. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  153. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  154. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  155. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  156. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  157. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  158. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  159. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  160. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  161. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  162. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  163. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  164. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  165. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  166. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  167. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  168. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  169. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  170. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  171. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  172. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  173. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  174. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  175. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  176. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  177. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  178. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  179. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  180. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  181. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  182. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  183. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  184. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  185. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  186. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  187. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  188. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  189. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  190. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  191. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  192. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  193. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  194. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  195. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  196. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  197. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  198. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  199. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  200. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  201. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  202. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  203. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  204. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  205. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  206. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  207. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  208. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  209. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  210. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  211. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  212. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  213. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  214. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  215. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  216. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  217. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  218. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  219. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  220. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  221. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  222. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  223. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  224. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  225. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  226. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  227. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  228. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  229. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  230. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  231. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  232. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  233. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  234. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  235. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  236. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  237. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  238. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  239. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  240. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  241. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  242. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  243. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  244. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,871 +1,871 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div partial>
6
- <div class="row " >
7
- <label class="form-group font_normal_body"><b>用户信息</b></label>
8
-
9
- <div class="form-group col-sm-1" >
10
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
- style="width: 95%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
12
- <div class="form-group col-sm-1" >
13
- </div>
14
- </div>
15
- <div class="form-group col-sm-1" >
16
- <input type="text" class="input_search" v-model="model.f_user_name"
17
- style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
18
- </div>
19
- <div class="form-group col-sm-1" >
20
- <input type="text" class="input_search" v-model="model.f_address"
21
- style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-1" >
24
- <input type="text" class="input_search" v-model="model.f_enter_number"
25
- style="width: 95%" placeholder="入户证号" condition="ua.f_enter_number = '{}'">
26
- </div>
27
- <div class="form-group col-sm-1 upuserinfo_sel" >
28
- <v-select
29
- class="select select_list"
30
- :width="'95%'"
31
- :value.sync="model.f_area"
32
- v-model="model.f_area"
33
- :options='$parent.$parent.areaList'
34
- :timeout="500"
35
- @select-search="$parent.$parent.select_search"
36
- placeholder='小区选择'
37
- condition="ua.f_residential_area = '{}'"
38
- close-on-select
39
- value-single
40
- >
41
- </v-select>
42
- </div>
43
- <div class="form-group col-sm-4" style="width: 500px" >
44
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
45
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
46
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
47
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
48
- <button class="button_search" @click="$parent.$parent.clear()">清除</button>
49
- <export-excel :data="$parent.$parent.exportParameter"
50
- :field="$parent.$parent.exportExcelField"
51
- style="margin-left: 0"
52
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="FetchUserFileByOrgNoRuHuSXQ"
53
- :template-name="'安检计划用户信息导出'" :choose-col="true">
54
- </export-excel>
55
- </div>
56
- <div class="form-group col-sm-1" style="float: right">
57
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
58
- </div>
59
- <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
60
- <div slot="modal-header" class="modal-header">
61
- <h4 class="modal-title">
62
- 用户查询条件
63
- </h4>
64
- </div>
65
- <div slot="modal-body" class="modal-body">
66
- <div class="row">
67
- <div class="form-group col-sm-4" >
68
- <label class="font_normal_body">用户类型:</label>
69
- <v-select
70
- class="select select_list"
71
- :value.sync="model.f_user_type"
72
- v-model="model.f_user_type"
73
- :options='$parent.$parent.userTypes'
74
- placeholder='请选择'
75
- condition="uf.f_user_type='{}'"
76
- :search="false"
77
- close-on-select
78
- value-single
79
- >
80
- </v-select>
81
- </div>
82
- <div class="form-group col-sm-4" >
83
- <label class="font_normal_body">用户状态:</label>
84
- <v-select
85
- class="select select_list"
86
- :value.sync="model.f_user_state"
87
- v-model="model.f_user_state"
88
- :options='$parent.$parent.userStates'
89
- placeholder='请选择'
90
- condition="ui.f_user_state='{}'"
91
- :search="false"
92
- close-on-select
93
- value-single
94
- >
95
- </v-select>
96
- </div>
97
- <div class="form-group col-sm-4" >
98
- <label class="font_normal_body">用气性质:</label>
99
- <v-select
100
- class="select select_list"
101
- :value.sync="model.f_gasproperties"
102
- v-model="model.f_gasproperties"
103
- :options='$parent.$parent.gasproperties'
104
- placeholder='请选择'
105
- condition="uf.f_gasproperties='{}'"
106
- :search="false"
107
- close-on-select
108
- value-single
109
- >
110
- </v-select>
111
- </div>
112
- <div class="form-group col-sm-4" >
113
- <label class="font_normal_body">气表类型:</label>
114
- <v-select
115
- class="select select_list"
116
- :value.sync="model.meter_classify"
117
- v-model="model.meter_classify"
118
- :options='$parent.$parent.meter_classifys'
119
- placeholder='请选择'
120
- condition="uf.F_METER_CLASSIFY='{}'"
121
- :search="false"
122
- close-on-select
123
- value-single
124
- >
125
- </v-select>
126
- </div>
127
- <!--<div class="form-group col-sm-4" >
128
- <label class="font_normal_body">小区名称:</label>
129
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
130
- style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
131
- </div>-->
132
- <div class="form-group col-sm-4" >
133
- <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
134
- <input type="text" class="input_search" v-model="model.f_building"
135
- style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
136
- </div>
137
- <div class="form-group col-sm-4" >
138
- <label class="font_normal_body">单&ensp;元&ensp;号:</label>
139
- <input type="text" class="input_search" v-model="model.f_unit"
140
- style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
141
- </div>
142
- <div class="form-group col-sm-4" >
143
- <label class="font_normal_body">楼&ensp;层&ensp;号:</label>
144
- <input type="text" class="input_search" v-model="model.f_floor"
145
- style="width: 60%" placeholder="请选择" condition="ua.f_floor='{}'">
146
- </div>
147
- <div class="form-group col-sm-4" >
148
- <label class="font_normal_body">开户起始:</label>
149
- <datepicker
150
- placeholder='请选择'
151
- style="width:60%"
152
- :disabled-days-of-week="[]"
153
- :format="'yyyy-MM-dd'"
154
- :show-rest-button="reset"
155
- :value.sync="model.f_startfile_time"
156
- v-model="model.f_startfile_time"
157
- condition="ui.f_createfile_date >= '{} 00:00:00'">
158
- </datepicker>
159
- </div>
160
- <div class="form-group col-sm-4" >
161
- <label class="font_normal_body">开户截止:</label>
162
- <datepicker
163
- placeholder='请选择'
164
- :disabled-days-of-week="[]"
165
- style="width:60%"
166
- :format="'yyyy-MM-dd'"
167
- :show-rest-button="reset"
168
- :value.sync="model.f_endfile_time"
169
- v-model="model.f_endfile_time"
170
- condition="ui.f_createfile_date <= '{} 00:00:00'">
171
- </datepicker>
172
- </div>
173
- <div class="form-group col-sm-4" >
174
- <label class="font_normal_body">表&ensp;箱&ensp;号:</label>
175
- <input type="text" class="input_search" v-model="model.f_metertitles"
176
- style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
177
- </div>
178
- <div class="form-group col-sm-4" >
179
- <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
180
- <v-select
181
- class="select select_list"
182
- :value.sync="model.f_book_slice_area"
183
- v-model="model.f_book_slice_area"
184
- :options='$parent.$parent.sliceArea'
185
- @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
186
- placeholder='请选择'
187
- condition="ua.f_slice_area ='{}'"
188
- close-on-select
189
- value-single
190
- >
191
- </v-select>
192
- </div>
193
- <div class="form-group col-sm-4" >
194
- <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
195
- <v-select
196
- class="select select_list"
197
- :value.sync="model.f_meter_book_num"
198
- v-model="model.f_meter_book_num"
199
- :options='$parent.$parent.cbc'
200
- placeholder='请选择'
201
- condition="uf.f_meter_book_num='{}'"
202
- close-on-select
203
- value-single
204
- >
205
- </v-select>
206
- </div>
207
- <div class="form-group col-sm-4" >
208
- <label class="font_normal_body">派发情况:</label>
209
- <v-select
210
- class="select select_list"
211
- :value.sync="model.yearCheck"
212
- v-model="model.yearCheck"
213
- :options='$parent.$parent.yearCheckList'
214
- placeholder='请选择'
215
- condition="{}"
216
- :search="false"
217
- close-on-select
218
- value-single
219
- >
220
- </v-select>
221
- </div>
222
- <div class="form-group col-sm-4" >
223
- <label class="font_normal_body">气价名称:</label>
224
- <v-select
225
- class="select select_list"
226
- :value.sync="model.f_price_name"
227
- v-model="model.f_price_name"
228
- :options='$parent.$parent.priveList'
229
- placeholder='请选择'
230
- condition="sp.f_price_name in {}"
231
- :multiple = "true"
232
- >
233
- </v-select>
234
- </div>
235
- <div class="form-group col-sm-4" >
236
- <label class="font_normal_body">安检起始:</label>
237
- <datepicker
238
- placeholder='请选择'
239
- style="width:60%"
240
- :disabled-days-of-week="[]"
241
- :format="'yyyy-MM-dd'"
242
- :show-rest-button="reset"
243
- :value.sync="model.f_start_time"
244
- v-model="model.f_start_time"
245
- condition="ui.f_last_check_date >='{} 00:00:00'">
246
- </datepicker>
247
- </div>
248
- <div class="form-group col-sm-4" >
249
- <label class="font_normal_body">安检截止:</label>
250
- <datepicker
251
- placeholder='请选择'
252
- :disabled-days-of-week="[]"
253
- style="width:60%"
254
- :format="'yyyy-MM-dd'"
255
- :show-rest-button="reset"
256
- :value.sync="model.f_end_time"
257
- v-model="model.f_end_time"
258
- condition="ui.f_last_check_date <='{} 23:59:59'">
259
- </datepicker>
260
- </div>
261
- <div class="form-group col-sm-4" >
262
- <label class="font_normal_body">安检状态:</label>
263
- <v-select
264
- class="select select_list"
265
- :value.sync="model.f_last_check_state"
266
- v-model="model.f_last_check_state"
267
- :options='$parent.$parent.entry_status'
268
- placeholder='请选择'
269
- condition="ua.f_last_check_state = '{}'"
270
- :search="false"
271
- close-on-select
272
- value-single
273
- >
274
- </v-select>
275
- </div>
276
- <div class="form-group col-sm-4" v-if="$parent.$parent.hasCheckBooks == '是'">
277
- <label class="font_normal_body">安检册:</label>
278
- <v-select
279
- class="select select_list"
280
- :value.sync="model.checkBook"
281
- v-model="model.checkBook"
282
- :options='$parent.$parent.checkBooks'
283
- placeholder='请选择'
284
- :search="false"
285
- close-on-select
286
- value-single
287
- >
288
- </v-select>
289
- </div>
290
- <div class="form-group col-sm-4">
291
- <label class="font_normal_body">安检筛选</label>
292
- <v-select
293
- placeholder='安检筛选'
294
- :value-single="true"
295
- class="select select_list"
296
- :value.sync="$parent.$parent.SafeCheckXZ"
297
- :options='$parent.$parent.SafeCheckXZs'
298
- v-model="$parent.$parent.SafeCheckXZ"
299
- :search="false"
300
- close-on-select
301
- value-single
302
- >
303
- </v-select>
304
- </div>
305
- <div class="form-group col-sm-4" >
306
- <label class="font_normal_body">筛选时间:</label>
307
- <datepicker
308
- placeholder='开始时间'
309
- :disabled-days-of-week="[]"
310
- style="width:60%"
311
- :format="'yyyy-MM-dd 00:00:00'"
312
- :show-rest-button="reset"
313
- :value.sync="model.f_check_start"
314
- v-model="model.f_check_start">
315
- </datepicker>
316
- </div>
317
- <div class="form-group col-sm-4" >
318
- <label class="font_normal_body">筛选时间:</label>
319
- <datepicker
320
- placeholder='结束时间'
321
- :disabled-days-of-week="[]"
322
- style="width:60%"
323
- :format="'yyyy-MM-dd 23:59:59'"
324
- :show-rest-button="reset"
325
- :value.sync="model.f_check_end"
326
- v-model="model.f_check_end">
327
- </datepicker>
328
- </div>
329
- <div class="form-group col-sm-4" >
330
- <label class="font_normal_body">安检次数:</label>
331
- <input type="number" class="input_search" v-model="model.anjiancishu"
332
- style="width: 60%" placeholder="请选择" >
333
- </div>
334
- <!--<div class="form-group col-sm-4" >
335
- <label class="font_normal_body">入户情况:</label>
336
- <v-select
337
- class="select select_list"
338
- :value.sync="model.f_hasHousehold"
339
- v-model="model.f_hasHousehold"
340
- :options='$parent.$parent.hasHousehold'
341
- placeholder='请选择'
342
- close-on-select
343
- :search="false"
344
- value-single
345
- >
346
- </v-select>
347
- </div>-->
348
-
349
- </div>
350
- </div>
351
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
352
- <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
353
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
354
- </div>
355
- </modal>
356
- <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
357
- <div slot="modal-header" class="modal-header">
358
- <h4 class="modal-title">
359
- 导入用户编号
360
- </h4>
361
- </div>
362
- <div slot="modal-body" class="modal-body">
363
- <div class="row">
364
- <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
365
- action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
366
- <img src="../../../assets/Excelformat.png" style="width: 100%"/>
367
- </div>
368
- </div>
369
- <footer slot="modal-footer" class="modal-footer">
370
- </footer>
371
- </modal>
372
- <!--<div class="form-group col-sm-4 button-range" >
373
-
374
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
375
- <export-excel :data="$parent.$parent.exportParameter"
376
- :field="$parent.$parent.excelHeaders"
377
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="planItem"
378
- template-name='安检计划明细' :choose-col="true">
379
- </export-excel>
380
-
381
- </div>-->
382
- </div>
383
- </div>
384
- </criteria>
385
- <data-grid :model="model" partial='list' class="table_sy">
386
-
387
- <template partial='head'>
388
- <tr>
389
- <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
390
- <th><nobr>用户编号</nobr></th>
391
- <th><nobr>用户名称</nobr></th>
392
- <th><nobr>用户类型</nobr></th>
393
- <th><nobr>小区名称</nobr></th>
394
- <th><nobr>片区</nobr></th>
395
- <th><nobr>抄表册</nobr></th>
396
- <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
397
- <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
398
- <th><nobr>详细地址</nobr></th>
399
- </tr>
400
- </template>
401
- <template partial='body'>
402
- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)" /></td>
403
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
404
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
405
- <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
406
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
407
- <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
408
- <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
409
- <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
410
- <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
411
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
412
- </template>
413
- </data-grid>
414
- </criteria-paged>
415
- </div>
416
- </template>
417
-
418
- <script>
419
- import {HttpResetClass, PagedList} from "vue-client";
420
- import * as Util from "../../Util";
421
- import Vue from "vue";
422
-
423
- export default {
424
- name: "PlanManage",
425
- title: '计划管理',
426
- data() {
427
- return {
428
- model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
429
- "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
430
- "f_usertype": "''",
431
- "month": "''",
432
- "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
433
- "SafeCheckCQ": "''",
434
- "startday":"''",
435
- "endday":"''"}),
436
- a:'1',
437
- opt:[{label:"测试",value:"测试"}],
438
- showCondtion:false,
439
- userTypes:[],//用户类型
440
- userStates:[],//用户状态
441
- gasproperties:[],//用气性质
442
- meter_classifys:[],//气表类型
443
- hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
444
- SafeCheckXZ: '',
445
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
446
- yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
447
- defaultSelected: "ua.f_plan_id is null",
448
- entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
449
- sliceArea:[],
450
- meterbooks:[],
451
- hasCheckBooks:'否',
452
- checkBooks:[],
453
- cbc:[],
454
- priveList:[],
455
- areaList:[],
456
- checkAll:false,
457
- checkes:[],
458
- excelUserCondtion:false,
459
- uploadCodeCondition:'',
460
- exportExcelField: {
461
- 'f_userinfo_code':'用户编号',
462
- 'f_user_name':'用户名称',
463
- 'f_user_phone':'用户电话',
464
- 'f_address':'详细地址',
465
- 'f_defendcard':'防盗卡号1',
466
- 'f_defendcard_two':'防盗卡号2',
467
- 'last_check_time':'安检日期',
468
- 'isyinhuan':'是否存在隐患',
469
- 'beizhu':'备注'
470
- // 'f_user_type':'用户类型',
471
- // 'f_residential_area':'小区名称',
472
- // 'f_book_slice_area':'片区',
473
- // 'f_book_name':'抄表册',
474
- // 'f_plan_name':'所属计划'
475
- }
476
- }
477
- },
478
- props:["selectplan","userlogin"],
479
-
480
- ready(){
481
- this.$refs.paged.$refs.criteria.model.f_user_state='正常'
482
- this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
483
- // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
484
- //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
485
- this.getCheckBook()
486
- this.setConList()
487
- this.loadpage()
488
- this.getpricename()
489
- this.$refs.paged.$refs.criteria.model.yearCheck='ua.f_plan_id is null'
490
- },
491
- methods: {
492
- clear(){
493
- //
494
- this.$refs.paged.$refs.criteria.model.f_user_type= '';
495
- this.$refs.paged.$refs.criteria.model.f_userinfo_code = '';
496
- this.$refs.paged.$refs.criteria.model.f_address = '';
497
- this.$refs.paged.$refs.criteria.model.f_user_name = '';
498
- this.$refs.paged.$refs.criteria.model.f_enter_number='';
499
-
500
- this.$refs.paged.$refs.criteria.model.f_user_state='';
501
- this.$refs.paged.$refs.criteria.model.f_gasproperties='';
502
- this.$refs.paged.$refs.criteria.model.meter_classify='';
503
- this.$refs.paged.$refs.criteria.model.f_building='';
504
- this.$refs.paged.$refs.criteria.model.f_unit='';
505
- this.$refs.paged.$refs.criteria.model.f_area='';
506
-
507
- this.$refs.paged.$refs.criteria.model.f_startfile_time='';
508
- this.$refs.paged.$refs.criteria.model.f_endfile_time='';
509
- this.$refs.paged.$refs.criteria.model.f_metertitles='';
510
- this.$refs.paged.$refs.criteria.model.f_book_slice_area='';
511
- this.$refs.paged.$refs.criteria.model.f_meter_book_num='';
512
-
513
- this.$refs.paged.$refs.criteria.model.yearCheck='';
514
- this.$refs.paged.$refs.criteria.model.f_price_name='';
515
- this.$refs.paged.$refs.criteria.model.f_start_time='';
516
- this.$refs.paged.$refs.criteria.model.f_end_time='';
517
- this.$refs.paged.$refs.criteria.model.f_last_check_state='';
518
-
519
- this.$refs.paged.$refs.criteria.model.checkBook='';
520
- this.$refs.paged.$refs.criteria.model.f_floor='';
521
- this.$refs.paged.$refs.criteria.model.f_price_name = []
522
- },
523
- //清空用户编号
524
- clearUserall(){
525
- this.uploadCodeCondition=''
526
- Vue.showMessage("已清空用户编号")
527
- },
528
- getpricename() {
529
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`,
530
- {
531
- data: {
532
- items: "f_price_name",
533
- tablename: "t_stairprice",
534
- orderitem: "id",
535
- condition: `f_orgid = '${this.userlogin.orgid}' and sysdate >= f_perform_date AND sysdate <= f_end_date AND f_state = '有效'`
536
- }
537
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
538
- //tag)
539
- if (res.data.length > 0) {
540
- this.priveList = []
541
- this.priveList.push({label: "全部", value: ""})
542
- res.data.forEach((result) => {
543
- this.priveList.push({label: result.f_price_name, value: result.f_price_name})
544
- })
545
- }
546
- //tag)
547
- })
548
- },
549
-
550
- getCheckBook(){
551
- this.checkBooks=[]
552
- new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
553
- data: {
554
- items: 'id,f_check_book_name,f_check_book_type',
555
- tablename: 't_check_book',
556
- condition: `f_orgid = '${this.userlogin.orgid}'`,
557
- orderitem: 'id desc'
558
- }
559
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
560
- this.checkBooks.push({label: '全部', value: ''})
561
- res.data.forEach(ress => {
562
- this.checkBooks.push({
563
- label: ress.f_check_book_name,
564
- value: `${ress.id}-${ress.f_check_book_type}`
565
- })
566
- })
567
- })
568
- },
569
- loadpage(){
570
- this.select_search()
571
- this.Mreadibook()
572
- this.getSliceArea()
573
- },
574
- cancel(){
575
- this.showCondtion=false
576
- this.excelUserCondtion=false
577
- },
578
- //清空用户编号
579
- clearUserInfoId(){
580
- this.uploadCodeCondition=''
581
- Vue.showMessage("已清空用户编号")
582
- },
583
- showUploadCodeCondition(){
584
- this.excelUserCondtion=true
585
- },
586
- selfSearch (args) {
587
- //tag)
588
- args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
589
- /*if(args.model.f_hasHousehold=='已入户'){
590
- args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
591
- }else if(args.model.f_hasHousehold=='未入户'){
592
- args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
593
- }*/
594
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
595
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 筛选开始/结束时间!')
596
- return
597
- }
598
- if (this.SafeCheckXZ == '未安检') {
599
-
600
- args.condition += " and ( ui.f_last_check_date >= '" + args.model.f_check_end + "' or ui.f_last_check_date <= '" + args.model.f_check_start +
601
- "' or ui.f_last_check_date is null ) and f_plan_name is null"
602
- } else {
603
- if (args.model.f_check_start) {
604
- args.condition += " and ui.f_last_check_date >= '" + args.model.f_check_start + "'"
605
- }
606
- if (args.model.f_check_end) {
607
- args.condition += " and ui.f_last_check_date <= '" + args.model.f_check_end + "'"
608
- }
609
- }
610
- // 安检次数
611
- if(args.model.anjiancishu){
612
- if (args.model.anjiancishu < 1){
613
- args.condition += ` and kp.anjiancishu is null`
614
- }else {
615
- args.condition += ` and kp.anjiancishu = '${args.model.anjiancishu}'`
616
- }
617
- }
618
- if(args.model.checkBook){
619
- let arr=args.model.checkBook.split('-')
620
- if(arr[1] == '用户'){
621
- args.condition +=` and ua.f_check_book_id=${arr[0]}`
622
- }else{
623
- args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
624
- }
625
- }
626
- if(this.uploadCodeCondition){
627
- args.condition +=` and ${this.uploadCodeCondition}`
628
- }
629
- this.cancel()
630
- this.checkes=[]
631
- this.checkAll=false
632
- this.model.search(args.condition, args.model, args.condValue)
633
- },
634
- showUserCondition(){
635
- this.showCondtion=true
636
- },
637
- setConList(){
638
- this.userTypes=this.$appdata.getParam('用户类型') ? [{
639
- label: '全部',
640
- value: ''
641
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
642
-
643
- this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
644
- this.gasproperties=this.$appdata.getParam('用气性质') ? [{
645
- label: '全部',
646
- value: ''
647
- }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
648
- this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
649
- label: '全部',
650
- value: ''
651
- }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
652
- },
653
- select_search(text){
654
- //tag
655
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
656
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
657
- //tag)
658
- if(res.data.length>0){
659
- this.areaList=[]
660
- this.areaList.push({label:"全部",value:""})
661
- res.data.forEach((result)=>{
662
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
663
- })
664
- }
665
- //tag)
666
- })
667
- },
668
- //获取抄表册
669
- async Mreadibook(){
670
- this.cbc=[]
671
- this.sliceArea=[]
672
- let http = new HttpResetClass()
673
- let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
674
- {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
675
- {resolveMsg: null, rejectMsg: '获取失败!!!'})
676
- this.cbc = [{label: '全部', value: ''}]
677
- //tag
678
- //tag)
679
- //tag
680
- this.meterbooks=[]
681
- this.meterbooks=getMeterReadingBooks.data.meterbooks
682
- this.meterbooks.forEach((res) => {
683
- this.cbc.push({label: res.f_book_name, value: res.id})
684
- /*if(res.f_book_slice_area){
685
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
686
- this.sliceArea.push(res.f_book_slice_area)
687
- }
688
- }*/
689
- })
690
-
691
- },
692
- //片区获取
693
- async getSliceArea() {
694
- let http = new HttpResetClass()
695
- let getAllArea = await http.load('POST', '/rs/search', {
696
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
697
- userid: this.userlogin.id
698
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
699
- this.sliceArea = [{label: '全部', value: ''}]
700
- //tag
701
- //tag
702
- //tag
703
- getAllArea.data.forEach((res) => {
704
- if(res.parentid==this.userlogin.orgid){
705
- this.sliceArea.push({label:res.name,value:res.name})
706
- }
707
- })
708
- //tag
709
- },
710
- //片区改变-对应抄表册下拉重新赋值
711
- slice_areaChange(value) {
712
- //tag
713
- if(!value){
714
- this.cbc=[]
715
- this.meterbooks.forEach((res) => {
716
- this.cbc.push({label: res.f_book_name, value: res.id})
717
- })
718
- }else{
719
- this.cbc=[]
720
- this.meterbooks.forEach((res) => {
721
- if(res.f_book_slice_area==value){
722
- this.cbc.push({label: res.f_book_name, value: res.id})
723
- }
724
- })
725
- }
726
- },
727
- isChecked(v) {
728
- // 如果全选,不在的按选中算,否则,在的按选中算
729
- if (this.checkAll) {
730
- return this.checkes.indexOf(v) == -1
731
- } else {
732
- return this.checkes.indexOf(v) != -1
733
- }
734
- },
735
- setCheckAll() {
736
- this.checkAll=this.checkAll?false:true;
737
- // 全选改变后,清空选中数据
738
- this.checkes = []
739
- },
740
- setCheckes(id) {
741
- let index=this.checkes.indexOf(id)
742
- if(index<0){
743
- this.checkes.push(id)
744
- }else{
745
- this.checkes.splice(index,1)
746
- }
747
- },
748
- //将客户信息拖至计划中
749
- async dragtoPlanItem() {
750
- if(this.model.rows.length==0){
751
- Vue.showMessage("未检测到列表中有用户!")
752
- return
753
- }
754
- if(!this.checkAll && this.checkes.length==0){
755
- Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
756
- return
757
- }
758
- if(this.selectplan && this.selectplan.id){
759
- this.$parent.isSend=true
760
- try{
761
- let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/AddCheckPlanItem", {
762
- data:{
763
- f_operator:this.userlogin.name,
764
- f_plan_id:this.selectplan.id,
765
- f_safecheck_type:this.selectplan.f_safecheck_type,
766
- f_filialeid:this.userlogin.orgid,
767
- f_subscribe_date:'',
768
- condition:this.model.condition,
769
- switchCheckAll:true,
770
- checkAll:this.checkAll,
771
- param:this.checkes,
772
- columnName: "ua.id"
773
- }
774
- }, {resolveMsg: null, rejectMsg: null})
775
- //tag+"---"+res.data.result.length)
776
- this.$parent.isSend=false
777
- if(res.data.code==200){
778
- //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
779
- this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
780
- this.$parent.refresh()
781
- }else{
782
- this.$showMessage("添加失败!")
783
- }
784
- }catch (e) {
785
- this.$showMessage("添加失败!")
786
- }
787
- }else{
788
- this.$parent.isSend=false
789
- this.$showMessage("请先打开一个计划再进行操作")
790
- }
791
- }
792
- },
793
- computed:{
794
- exportParameter(){
795
- // excel 导出条件拼接
796
- return {
797
- condition: this.$refs.paged.model.condition,
798
- orderitem: 'f_residential_area,f_building,f_unit,f_floor,f_room',
799
- f_usertype: '',
800
- month: '',
801
- SafeCheckSX: {f_check_start: '', f_check_end: ''},
802
- SafeCheckCQ: '',
803
- startday:'',
804
- endday:''
805
- }
806
- }
807
- },
808
- events: {
809
- onFileUpload: function (file, res) {
810
- //tag)
811
- //tag)
812
- let data = {
813
- filepath: res.f_downloadpath
814
- }
815
- new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
816
- resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
817
- rejectMsg: '导入失败'
818
- }).then((res) => {
819
- this.uploadCodeCondition=res.data.condition
820
- this.excelUserCondtion = false
821
- })
822
- },
823
-
824
- }
825
- }
826
- </script>
827
-
828
- <style scoped>
829
- .safe-planfont{
830
- font-family: MicrosoftYaHei;
831
- font-size: 15px;
832
- font-weight: normal;
833
- font-stretch: normal;
834
- letter-spacing: 2px;
835
- color: #333333;
836
- line-height: 25px;
837
- }
838
- .safe-bodyfont{
839
- font-family: MicrosoftYaHei;
840
- font-size: 14px;
841
- font-weight: normal;
842
- font-stretch: normal;
843
- letter-spacing: 0px;
844
- color: #999999;
845
- line-height: 30px;
846
- }
847
- .safe-leftplan{
848
- height:auto;
849
- border-bottom:1px solid #ececec;
850
- padding: 10px 5px
851
- }
852
- .leftplan-center{
853
- border-top:1px solid #ececec;
854
- border-bottom:1px solid #ececec;
855
- }
856
- .safe_p{
857
- white-space: nowrap;
858
- overflow: hidden;
859
- text-overflow: ellipsis;
860
- }
861
- .safe-div-p{
862
- color: #4792de;
863
- text-align: end;
864
- padding: 8px 15px;
865
- }
866
- </style>
867
- <style lang="less">
868
- .upuserinfo_sel ul{
869
- width: 150% !important;
870
- }
871
- </style>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <div class="row " >
7
+ <label class="form-group font_normal_body"><b>用户信息</b></label>
8
+
9
+ <div class="form-group col-sm-1" >
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
+ style="width: 95%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
12
+ <div class="form-group col-sm-1" >
13
+ </div>
14
+ </div>
15
+ <div class="form-group col-sm-1" >
16
+ <input type="text" class="input_search" v-model="model.f_user_name"
17
+ style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
18
+ </div>
19
+ <div class="form-group col-sm-1" >
20
+ <input type="text" class="input_search" v-model="model.f_address"
21
+ style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-1" >
24
+ <input type="text" class="input_search" v-model="model.f_enter_number"
25
+ style="width: 95%" placeholder="入户证号" condition="ua.f_enter_number = '{}'">
26
+ </div>
27
+ <div class="form-group col-sm-1 upuserinfo_sel" >
28
+ <v-select
29
+ class="select select_list"
30
+ :width="'95%'"
31
+ :value.sync="model.f_area"
32
+ v-model="model.f_area"
33
+ :options='$parent.$parent.areaList'
34
+ :timeout="500"
35
+ @select-search="$parent.$parent.select_search"
36
+ placeholder='小区选择'
37
+ condition="ua.f_residential_area = '{}'"
38
+ close-on-select
39
+ value-single
40
+ >
41
+ </v-select>
42
+ </div>
43
+ <div class="form-group col-sm-4" style="width: 500px" >
44
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
45
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
46
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
47
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
48
+ <button class="button_search" @click="$parent.$parent.clear()">清除</button>
49
+ <export-excel :data="$parent.$parent.exportParameter"
50
+ :field="$parent.$parent.exportExcelField"
51
+ style="margin-left: 0"
52
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="FetchUserFileByOrgNoRuHuSXQ"
53
+ :template-name="'安检计划用户信息导出'" :choose-col="true">
54
+ </export-excel>
55
+ </div>
56
+ <div class="form-group col-sm-1" style="float: right">
57
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
58
+ </div>
59
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
60
+ <div slot="modal-header" class="modal-header">
61
+ <h4 class="modal-title">
62
+ 用户查询条件
63
+ </h4>
64
+ </div>
65
+ <div slot="modal-body" class="modal-body">
66
+ <div class="row">
67
+ <div class="form-group col-sm-4" >
68
+ <label class="font_normal_body">用户类型:</label>
69
+ <v-select
70
+ class="select select_list"
71
+ :value.sync="model.f_user_type"
72
+ v-model="model.f_user_type"
73
+ :options='$parent.$parent.userTypes'
74
+ placeholder='请选择'
75
+ condition="uf.f_user_type='{}'"
76
+ :search="false"
77
+ close-on-select
78
+ value-single
79
+ >
80
+ </v-select>
81
+ </div>
82
+ <div class="form-group col-sm-4" >
83
+ <label class="font_normal_body">用户状态:</label>
84
+ <v-select
85
+ class="select select_list"
86
+ :value.sync="model.f_user_state"
87
+ v-model="model.f_user_state"
88
+ :options='$parent.$parent.userStates'
89
+ placeholder='请选择'
90
+ condition="ui.f_user_state='{}'"
91
+ :search="false"
92
+ close-on-select
93
+ value-single
94
+ >
95
+ </v-select>
96
+ </div>
97
+ <div class="form-group col-sm-4" >
98
+ <label class="font_normal_body">用气性质:</label>
99
+ <v-select
100
+ class="select select_list"
101
+ :value.sync="model.f_gasproperties"
102
+ v-model="model.f_gasproperties"
103
+ :options='$parent.$parent.gasproperties'
104
+ placeholder='请选择'
105
+ condition="uf.f_gasproperties='{}'"
106
+ :search="false"
107
+ close-on-select
108
+ value-single
109
+ >
110
+ </v-select>
111
+ </div>
112
+ <div class="form-group col-sm-4" >
113
+ <label class="font_normal_body">气表类型:</label>
114
+ <v-select
115
+ class="select select_list"
116
+ :value.sync="model.meter_classify"
117
+ v-model="model.meter_classify"
118
+ :options='$parent.$parent.meter_classifys'
119
+ placeholder='请选择'
120
+ condition="uf.F_METER_CLASSIFY='{}'"
121
+ :search="false"
122
+ close-on-select
123
+ value-single
124
+ >
125
+ </v-select>
126
+ </div>
127
+ <!--<div class="form-group col-sm-4" >
128
+ <label class="font_normal_body">小区名称:</label>
129
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
130
+ style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
131
+ </div>-->
132
+ <div class="form-group col-sm-4" >
133
+ <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
134
+ <input type="text" class="input_search" v-model="model.f_building"
135
+ style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
136
+ </div>
137
+ <div class="form-group col-sm-4" >
138
+ <label class="font_normal_body">单&ensp;元&ensp;号:</label>
139
+ <input type="text" class="input_search" v-model="model.f_unit"
140
+ style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
141
+ </div>
142
+ <div class="form-group col-sm-4" >
143
+ <label class="font_normal_body">楼&ensp;层&ensp;号:</label>
144
+ <input type="text" class="input_search" v-model="model.f_floor"
145
+ style="width: 60%" placeholder="请选择" condition="ua.f_floor='{}'">
146
+ </div>
147
+ <div class="form-group col-sm-4" >
148
+ <label class="font_normal_body">开户起始:</label>
149
+ <datepicker
150
+ placeholder='请选择'
151
+ style="width:60%"
152
+ :disabled-days-of-week="[]"
153
+ :format="'yyyy-MM-dd'"
154
+ :show-rest-button="reset"
155
+ :value.sync="model.f_startfile_time"
156
+ v-model="model.f_startfile_time"
157
+ condition="ui.f_createfile_date >= '{} 00:00:00'">
158
+ </datepicker>
159
+ </div>
160
+ <div class="form-group col-sm-4" >
161
+ <label class="font_normal_body">开户截止:</label>
162
+ <datepicker
163
+ placeholder='请选择'
164
+ :disabled-days-of-week="[]"
165
+ style="width:60%"
166
+ :format="'yyyy-MM-dd'"
167
+ :show-rest-button="reset"
168
+ :value.sync="model.f_endfile_time"
169
+ v-model="model.f_endfile_time"
170
+ condition="ui.f_createfile_date <= '{} 00:00:00'">
171
+ </datepicker>
172
+ </div>
173
+ <div class="form-group col-sm-4" >
174
+ <label class="font_normal_body">表&ensp;箱&ensp;号:</label>
175
+ <input type="text" class="input_search" v-model="model.f_metertitles"
176
+ style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
177
+ </div>
178
+ <div class="form-group col-sm-4" >
179
+ <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
180
+ <v-select
181
+ class="select select_list"
182
+ :value.sync="model.f_book_slice_area"
183
+ v-model="model.f_book_slice_area"
184
+ :options='$parent.$parent.sliceArea'
185
+ @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
186
+ placeholder='请选择'
187
+ condition="ua.f_slice_area ='{}'"
188
+ close-on-select
189
+ value-single
190
+ >
191
+ </v-select>
192
+ </div>
193
+ <div class="form-group col-sm-4" >
194
+ <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
195
+ <v-select
196
+ class="select select_list"
197
+ :value.sync="model.f_meter_book_num"
198
+ v-model="model.f_meter_book_num"
199
+ :options='$parent.$parent.cbc'
200
+ placeholder='请选择'
201
+ condition="uf.f_meter_book_num='{}'"
202
+ close-on-select
203
+ value-single
204
+ >
205
+ </v-select>
206
+ </div>
207
+ <div class="form-group col-sm-4" >
208
+ <label class="font_normal_body">派发情况:</label>
209
+ <v-select
210
+ class="select select_list"
211
+ :value.sync="model.yearCheck"
212
+ v-model="model.yearCheck"
213
+ :options='$parent.$parent.yearCheckList'
214
+ placeholder='请选择'
215
+ condition="{}"
216
+ :search="false"
217
+ close-on-select
218
+ value-single
219
+ >
220
+ </v-select>
221
+ </div>
222
+ <div class="form-group col-sm-4" >
223
+ <label class="font_normal_body">气价名称:</label>
224
+ <v-select
225
+ class="select select_list"
226
+ :value.sync="model.f_price_name"
227
+ v-model="model.f_price_name"
228
+ :options='$parent.$parent.priveList'
229
+ placeholder='请选择'
230
+ condition="sp.f_price_name in {}"
231
+ :multiple = "true"
232
+ >
233
+ </v-select>
234
+ </div>
235
+ <div class="form-group col-sm-4" >
236
+ <label class="font_normal_body">安检起始:</label>
237
+ <datepicker
238
+ placeholder='请选择'
239
+ style="width:60%"
240
+ :disabled-days-of-week="[]"
241
+ :format="'yyyy-MM-dd'"
242
+ :show-rest-button="reset"
243
+ :value.sync="model.f_start_time"
244
+ v-model="model.f_start_time"
245
+ condition="ui.f_last_check_date >='{} 00:00:00'">
246
+ </datepicker>
247
+ </div>
248
+ <div class="form-group col-sm-4" >
249
+ <label class="font_normal_body">安检截止:</label>
250
+ <datepicker
251
+ placeholder='请选择'
252
+ :disabled-days-of-week="[]"
253
+ style="width:60%"
254
+ :format="'yyyy-MM-dd'"
255
+ :show-rest-button="reset"
256
+ :value.sync="model.f_end_time"
257
+ v-model="model.f_end_time"
258
+ condition="ui.f_last_check_date <='{} 23:59:59'">
259
+ </datepicker>
260
+ </div>
261
+ <div class="form-group col-sm-4" >
262
+ <label class="font_normal_body">安检状态:</label>
263
+ <v-select
264
+ class="select select_list"
265
+ :value.sync="model.f_last_check_state"
266
+ v-model="model.f_last_check_state"
267
+ :options='$parent.$parent.entry_status'
268
+ placeholder='请选择'
269
+ condition="ua.f_last_check_state = '{}'"
270
+ :search="false"
271
+ close-on-select
272
+ value-single
273
+ >
274
+ </v-select>
275
+ </div>
276
+ <div class="form-group col-sm-4" v-if="$parent.$parent.hasCheckBooks == '是'">
277
+ <label class="font_normal_body">安检册:</label>
278
+ <v-select
279
+ class="select select_list"
280
+ :value.sync="model.checkBook"
281
+ v-model="model.checkBook"
282
+ :options='$parent.$parent.checkBooks'
283
+ placeholder='请选择'
284
+ :search="false"
285
+ close-on-select
286
+ value-single
287
+ >
288
+ </v-select>
289
+ </div>
290
+ <div class="form-group col-sm-4">
291
+ <label class="font_normal_body">安检筛选</label>
292
+ <v-select
293
+ placeholder='安检筛选'
294
+ :value-single="true"
295
+ class="select select_list"
296
+ :value.sync="$parent.$parent.SafeCheckXZ"
297
+ :options='$parent.$parent.SafeCheckXZs'
298
+ v-model="$parent.$parent.SafeCheckXZ"
299
+ :search="false"
300
+ close-on-select
301
+ value-single
302
+ >
303
+ </v-select>
304
+ </div>
305
+ <div class="form-group col-sm-4" >
306
+ <label class="font_normal_body">筛选时间:</label>
307
+ <datepicker
308
+ placeholder='开始时间'
309
+ :disabled-days-of-week="[]"
310
+ style="width:60%"
311
+ :format="'yyyy-MM-dd 00:00:00'"
312
+ :show-rest-button="reset"
313
+ :value.sync="model.f_check_start"
314
+ v-model="model.f_check_start">
315
+ </datepicker>
316
+ </div>
317
+ <div class="form-group col-sm-4" >
318
+ <label class="font_normal_body">筛选时间:</label>
319
+ <datepicker
320
+ placeholder='结束时间'
321
+ :disabled-days-of-week="[]"
322
+ style="width:60%"
323
+ :format="'yyyy-MM-dd 23:59:59'"
324
+ :show-rest-button="reset"
325
+ :value.sync="model.f_check_end"
326
+ v-model="model.f_check_end">
327
+ </datepicker>
328
+ </div>
329
+ <div class="form-group col-sm-4" >
330
+ <label class="font_normal_body">安检次数:</label>
331
+ <input type="number" class="input_search" v-model="model.anjiancishu"
332
+ style="width: 60%" placeholder="请选择" >
333
+ </div>
334
+ <!--<div class="form-group col-sm-4" >
335
+ <label class="font_normal_body">入户情况:</label>
336
+ <v-select
337
+ class="select select_list"
338
+ :value.sync="model.f_hasHousehold"
339
+ v-model="model.f_hasHousehold"
340
+ :options='$parent.$parent.hasHousehold'
341
+ placeholder='请选择'
342
+ close-on-select
343
+ :search="false"
344
+ value-single
345
+ >
346
+ </v-select>
347
+ </div>-->
348
+
349
+ </div>
350
+ </div>
351
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
352
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
353
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
354
+ </div>
355
+ </modal>
356
+ <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
357
+ <div slot="modal-header" class="modal-header">
358
+ <h4 class="modal-title">
359
+ 导入用户编号
360
+ </h4>
361
+ </div>
362
+ <div slot="modal-body" class="modal-body">
363
+ <div class="row">
364
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
365
+ action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
366
+ <img src="../../../assets/Excelformat.png" style="width: 100%"/>
367
+ </div>
368
+ </div>
369
+ <footer slot="modal-footer" class="modal-footer">
370
+ </footer>
371
+ </modal>
372
+ <!--<div class="form-group col-sm-4 button-range" >
373
+
374
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
375
+ <export-excel :data="$parent.$parent.exportParameter"
376
+ :field="$parent.$parent.excelHeaders"
377
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItem"
378
+ template-name='安检计划明细' :choose-col="true">
379
+ </export-excel>
380
+
381
+ </div>-->
382
+ </div>
383
+ </div>
384
+ </criteria>
385
+ <data-grid :model="model" partial='list' class="table_sy">
386
+
387
+ <template partial='head'>
388
+ <tr>
389
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
390
+ <th><nobr>用户编号</nobr></th>
391
+ <th><nobr>用户名称</nobr></th>
392
+ <th><nobr>用户类型</nobr></th>
393
+ <th><nobr>小区名称</nobr></th>
394
+ <th><nobr>片区</nobr></th>
395
+ <th><nobr>抄表册</nobr></th>
396
+ <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
397
+ <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
398
+ <th><nobr>详细地址</nobr></th>
399
+ </tr>
400
+ </template>
401
+ <template partial='body'>
402
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)" /></td>
403
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
404
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
405
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
406
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
407
+ <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
408
+ <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
409
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
410
+ <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
411
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
412
+ </template>
413
+ </data-grid>
414
+ </criteria-paged>
415
+ </div>
416
+ </template>
417
+
418
+ <script>
419
+ import {HttpResetClass, PagedList} from "vue-client";
420
+ import * as Util from "../../Util";
421
+ import Vue from "vue";
422
+
423
+ export default {
424
+ name: "PlanManage",
425
+ title: '计划管理',
426
+ data() {
427
+ return {
428
+ model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
429
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
430
+ "f_usertype": "''",
431
+ "month": "''",
432
+ "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
433
+ "SafeCheckCQ": "''",
434
+ "startday":"''",
435
+ "endday":"''"}),
436
+ a:'1',
437
+ opt:[{label:"测试",value:"测试"}],
438
+ showCondtion:false,
439
+ userTypes:[],//用户类型
440
+ userStates:[],//用户状态
441
+ gasproperties:[],//用气性质
442
+ meter_classifys:[],//气表类型
443
+ hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
444
+ SafeCheckXZ: '',
445
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
446
+ yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
447
+ defaultSelected: "ua.f_plan_id is null",
448
+ entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
449
+ sliceArea:[],
450
+ meterbooks:[],
451
+ hasCheckBooks:'否',
452
+ checkBooks:[],
453
+ cbc:[],
454
+ priveList:[],
455
+ areaList:[],
456
+ checkAll:false,
457
+ checkes:[],
458
+ excelUserCondtion:false,
459
+ uploadCodeCondition:'',
460
+ exportExcelField: {
461
+ 'f_userinfo_code':'用户编号',
462
+ 'f_user_name':'用户名称',
463
+ 'f_user_phone':'用户电话',
464
+ 'f_address':'详细地址',
465
+ 'f_defendcard':'防盗卡号1',
466
+ 'f_defendcard_two':'防盗卡号2',
467
+ 'last_check_time':'安检日期',
468
+ 'isyinhuan':'是否存在隐患',
469
+ 'beizhu':'备注'
470
+ // 'f_user_type':'用户类型',
471
+ // 'f_residential_area':'小区名称',
472
+ // 'f_book_slice_area':'片区',
473
+ // 'f_book_name':'抄表册',
474
+ // 'f_plan_name':'所属计划'
475
+ }
476
+ }
477
+ },
478
+ props:["selectplan","userlogin"],
479
+
480
+ ready(){
481
+ this.$refs.paged.$refs.criteria.model.f_user_state='正常'
482
+ this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
483
+ // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
484
+ //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
485
+ this.getCheckBook()
486
+ this.setConList()
487
+ this.loadpage()
488
+ this.getpricename()
489
+ this.$refs.paged.$refs.criteria.model.yearCheck='ua.f_plan_id is null'
490
+ },
491
+ methods: {
492
+ clear(){
493
+ //
494
+ this.$refs.paged.$refs.criteria.model.f_user_type= '';
495
+ this.$refs.paged.$refs.criteria.model.f_userinfo_code = '';
496
+ this.$refs.paged.$refs.criteria.model.f_address = '';
497
+ this.$refs.paged.$refs.criteria.model.f_user_name = '';
498
+ this.$refs.paged.$refs.criteria.model.f_enter_number='';
499
+
500
+ this.$refs.paged.$refs.criteria.model.f_user_state='';
501
+ this.$refs.paged.$refs.criteria.model.f_gasproperties='';
502
+ this.$refs.paged.$refs.criteria.model.meter_classify='';
503
+ this.$refs.paged.$refs.criteria.model.f_building='';
504
+ this.$refs.paged.$refs.criteria.model.f_unit='';
505
+ this.$refs.paged.$refs.criteria.model.f_area='';
506
+
507
+ this.$refs.paged.$refs.criteria.model.f_startfile_time='';
508
+ this.$refs.paged.$refs.criteria.model.f_endfile_time='';
509
+ this.$refs.paged.$refs.criteria.model.f_metertitles='';
510
+ this.$refs.paged.$refs.criteria.model.f_book_slice_area='';
511
+ this.$refs.paged.$refs.criteria.model.f_meter_book_num='';
512
+
513
+ this.$refs.paged.$refs.criteria.model.yearCheck='';
514
+ this.$refs.paged.$refs.criteria.model.f_price_name='';
515
+ this.$refs.paged.$refs.criteria.model.f_start_time='';
516
+ this.$refs.paged.$refs.criteria.model.f_end_time='';
517
+ this.$refs.paged.$refs.criteria.model.f_last_check_state='';
518
+
519
+ this.$refs.paged.$refs.criteria.model.checkBook='';
520
+ this.$refs.paged.$refs.criteria.model.f_floor='';
521
+ this.$refs.paged.$refs.criteria.model.f_price_name = []
522
+ },
523
+ //清空用户编号
524
+ clearUserall(){
525
+ this.uploadCodeCondition=''
526
+ Vue.showMessage("已清空用户编号")
527
+ },
528
+ getpricename() {
529
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`,
530
+ {
531
+ data: {
532
+ items: "f_price_name",
533
+ tablename: "t_stairprice",
534
+ orderitem: "id",
535
+ condition: `f_orgid = '${this.userlogin.orgid}' and sysdate >= f_perform_date AND sysdate <= f_end_date AND f_state = '有效'`
536
+ }
537
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
538
+ //tag)
539
+ if (res.data.length > 0) {
540
+ this.priveList = []
541
+ this.priveList.push({label: "全部", value: ""})
542
+ res.data.forEach((result) => {
543
+ this.priveList.push({label: result.f_price_name, value: result.f_price_name})
544
+ })
545
+ }
546
+ //tag)
547
+ })
548
+ },
549
+
550
+ getCheckBook(){
551
+ this.checkBooks=[]
552
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
553
+ data: {
554
+ items: 'id,f_check_book_name,f_check_book_type',
555
+ tablename: 't_check_book',
556
+ condition: `f_orgid = '${this.userlogin.orgid}'`,
557
+ orderitem: 'id desc'
558
+ }
559
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
560
+ this.checkBooks.push({label: '全部', value: ''})
561
+ res.data.forEach(ress => {
562
+ this.checkBooks.push({
563
+ label: ress.f_check_book_name,
564
+ value: `${ress.id}-${ress.f_check_book_type}`
565
+ })
566
+ })
567
+ })
568
+ },
569
+ loadpage(){
570
+ this.select_search()
571
+ this.Mreadibook()
572
+ this.getSliceArea()
573
+ },
574
+ cancel(){
575
+ this.showCondtion=false
576
+ this.excelUserCondtion=false
577
+ },
578
+ //清空用户编号
579
+ clearUserInfoId(){
580
+ this.uploadCodeCondition=''
581
+ Vue.showMessage("已清空用户编号")
582
+ },
583
+ showUploadCodeCondition(){
584
+ this.excelUserCondtion=true
585
+ },
586
+ selfSearch (args) {
587
+ //tag)
588
+ args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
589
+ /*if(args.model.f_hasHousehold=='已入户'){
590
+ args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
591
+ }else if(args.model.f_hasHousehold=='未入户'){
592
+ args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
593
+ }*/
594
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
595
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 筛选开始/结束时间!')
596
+ return
597
+ }
598
+ if (this.SafeCheckXZ == '未安检') {
599
+
600
+ args.condition += " and ( ui.f_last_check_date >= '" + args.model.f_check_end + "' or ui.f_last_check_date <= '" + args.model.f_check_start +
601
+ "' or ui.f_last_check_date is null ) and f_plan_name is null"
602
+ } else {
603
+ if (args.model.f_check_start) {
604
+ args.condition += " and ui.f_last_check_date >= '" + args.model.f_check_start + "'"
605
+ }
606
+ if (args.model.f_check_end) {
607
+ args.condition += " and ui.f_last_check_date <= '" + args.model.f_check_end + "'"
608
+ }
609
+ }
610
+ // 安检次数
611
+ if(args.model.anjiancishu){
612
+ if (args.model.anjiancishu < 1){
613
+ args.condition += ` and kp.anjiancishu is null`
614
+ }else {
615
+ args.condition += ` and kp.anjiancishu = '${args.model.anjiancishu}'`
616
+ }
617
+ }
618
+ if(args.model.checkBook){
619
+ let arr=args.model.checkBook.split('-')
620
+ if(arr[1] == '用户'){
621
+ args.condition +=` and ua.f_check_book_id=${arr[0]}`
622
+ }else{
623
+ args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
624
+ }
625
+ }
626
+ if(this.uploadCodeCondition){
627
+ args.condition +=` and ${this.uploadCodeCondition}`
628
+ }
629
+ this.cancel()
630
+ this.checkes=[]
631
+ this.checkAll=false
632
+ this.model.search(args.condition, args.model, args.condValue)
633
+ },
634
+ showUserCondition(){
635
+ this.showCondtion=true
636
+ },
637
+ setConList(){
638
+ this.userTypes=this.$appdata.getParam('用户类型') ? [{
639
+ label: '全部',
640
+ value: ''
641
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
642
+
643
+ this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
644
+ this.gasproperties=this.$appdata.getParam('用气性质') ? [{
645
+ label: '全部',
646
+ value: ''
647
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
648
+ this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
649
+ label: '全部',
650
+ value: ''
651
+ }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
652
+ },
653
+ select_search(text){
654
+ //tag
655
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
656
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
657
+ //tag)
658
+ if(res.data.length>0){
659
+ this.areaList=[]
660
+ this.areaList.push({label:"全部",value:""})
661
+ res.data.forEach((result)=>{
662
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
663
+ })
664
+ }
665
+ //tag)
666
+ })
667
+ },
668
+ //获取抄表册
669
+ async Mreadibook(){
670
+ this.cbc=[]
671
+ this.sliceArea=[]
672
+ let http = new HttpResetClass()
673
+ let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
674
+ {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
675
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
676
+ this.cbc = [{label: '全部', value: ''}]
677
+ //tag
678
+ //tag)
679
+ //tag
680
+ this.meterbooks=[]
681
+ this.meterbooks=getMeterReadingBooks.data.meterbooks
682
+ this.meterbooks.forEach((res) => {
683
+ this.cbc.push({label: res.f_book_name, value: res.id})
684
+ /*if(res.f_book_slice_area){
685
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
686
+ this.sliceArea.push(res.f_book_slice_area)
687
+ }
688
+ }*/
689
+ })
690
+
691
+ },
692
+ //片区获取
693
+ async getSliceArea() {
694
+ let http = new HttpResetClass()
695
+ let getAllArea = await http.load('POST', '/rs/search', {
696
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
697
+ userid: this.userlogin.id
698
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
699
+ this.sliceArea = [{label: '全部', value: ''}]
700
+ //tag
701
+ //tag
702
+ //tag
703
+ getAllArea.data.forEach((res) => {
704
+ if(res.parentid==this.userlogin.orgid){
705
+ this.sliceArea.push({label:res.name,value:res.name})
706
+ }
707
+ })
708
+ //tag
709
+ },
710
+ //片区改变-对应抄表册下拉重新赋值
711
+ slice_areaChange(value) {
712
+ //tag
713
+ if(!value){
714
+ this.cbc=[]
715
+ this.meterbooks.forEach((res) => {
716
+ this.cbc.push({label: res.f_book_name, value: res.id})
717
+ })
718
+ }else{
719
+ this.cbc=[]
720
+ this.meterbooks.forEach((res) => {
721
+ if(res.f_book_slice_area==value){
722
+ this.cbc.push({label: res.f_book_name, value: res.id})
723
+ }
724
+ })
725
+ }
726
+ },
727
+ isChecked(v) {
728
+ // 如果全选,不在的按选中算,否则,在的按选中算
729
+ if (this.checkAll) {
730
+ return this.checkes.indexOf(v) == -1
731
+ } else {
732
+ return this.checkes.indexOf(v) != -1
733
+ }
734
+ },
735
+ setCheckAll() {
736
+ this.checkAll=this.checkAll?false:true;
737
+ // 全选改变后,清空选中数据
738
+ this.checkes = []
739
+ },
740
+ setCheckes(id) {
741
+ let index=this.checkes.indexOf(id)
742
+ if(index<0){
743
+ this.checkes.push(id)
744
+ }else{
745
+ this.checkes.splice(index,1)
746
+ }
747
+ },
748
+ //将客户信息拖至计划中
749
+ async dragtoPlanItem() {
750
+ if(this.model.rows.length==0){
751
+ Vue.showMessage("未检测到列表中有用户!")
752
+ return
753
+ }
754
+ if(!this.checkAll && this.checkes.length==0){
755
+ Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
756
+ return
757
+ }
758
+ if(this.selectplan && this.selectplan.id){
759
+ this.$parent.isSend=true
760
+ try{
761
+ let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/AddCheckPlanItem", {
762
+ data:{
763
+ f_operator:this.userlogin.name,
764
+ f_plan_id:this.selectplan.id,
765
+ f_safecheck_type:this.selectplan.f_safecheck_type,
766
+ f_filialeid:this.userlogin.orgid,
767
+ f_subscribe_date:'',
768
+ condition:this.model.condition,
769
+ switchCheckAll:true,
770
+ checkAll:this.checkAll,
771
+ param:this.checkes,
772
+ columnName: "ua.id"
773
+ }
774
+ }, {resolveMsg: null, rejectMsg: null})
775
+ //tag+"---"+res.data.result.length)
776
+ this.$parent.isSend=false
777
+ if(res.data.code==200){
778
+ //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
779
+ this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
780
+ this.$parent.refresh()
781
+ }else{
782
+ this.$showMessage("添加失败!")
783
+ }
784
+ }catch (e) {
785
+ this.$showMessage("添加失败!")
786
+ }
787
+ }else{
788
+ this.$parent.isSend=false
789
+ this.$showMessage("请先打开一个计划再进行操作")
790
+ }
791
+ }
792
+ },
793
+ computed:{
794
+ exportParameter(){
795
+ // excel 导出条件拼接
796
+ return {
797
+ condition: this.$refs.paged.model.condition,
798
+ orderitem: 'f_residential_area,f_building,f_unit,f_floor,f_room',
799
+ f_usertype: '',
800
+ month: '',
801
+ SafeCheckSX: {f_check_start: '', f_check_end: ''},
802
+ SafeCheckCQ: '',
803
+ startday:'',
804
+ endday:''
805
+ }
806
+ }
807
+ },
808
+ events: {
809
+ onFileUpload: function (file, res) {
810
+ //tag)
811
+ //tag)
812
+ let data = {
813
+ filepath: res.f_downloadpath
814
+ }
815
+ new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
816
+ resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
817
+ rejectMsg: '导入失败'
818
+ }).then((res) => {
819
+ this.uploadCodeCondition=res.data.condition
820
+ this.excelUserCondtion = false
821
+ })
822
+ },
823
+
824
+ }
825
+ }
826
+ </script>
827
+
828
+ <style scoped>
829
+ .safe-planfont{
830
+ font-family: MicrosoftYaHei;
831
+ font-size: 15px;
832
+ font-weight: normal;
833
+ font-stretch: normal;
834
+ letter-spacing: 2px;
835
+ color: #333333;
836
+ line-height: 25px;
837
+ }
838
+ .safe-bodyfont{
839
+ font-family: MicrosoftYaHei;
840
+ font-size: 14px;
841
+ font-weight: normal;
842
+ font-stretch: normal;
843
+ letter-spacing: 0px;
844
+ color: #999999;
845
+ line-height: 30px;
846
+ }
847
+ .safe-leftplan{
848
+ height:auto;
849
+ border-bottom:1px solid #ececec;
850
+ padding: 10px 5px
851
+ }
852
+ .leftplan-center{
853
+ border-top:1px solid #ececec;
854
+ border-bottom:1px solid #ececec;
855
+ }
856
+ .safe_p{
857
+ white-space: nowrap;
858
+ overflow: hidden;
859
+ text-overflow: ellipsis;
860
+ }
861
+ .safe-div-p{
862
+ color: #4792de;
863
+ text-align: end;
864
+ padding: 8px 15px;
865
+ }
866
+ </style>
867
+ <style lang="less">
868
+ .upuserinfo_sel ul{
869
+ width: 150% !important;
870
+ }
871
+ </style>