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,681 +1,681 @@
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>
13
- <div class="form-group col-sm-1" >
14
- <input type="text" class="input_search" v-model="model.f_user_name"
15
- style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
16
- </div>
17
- <div class="form-group col-sm-1" >
18
- <input type="text" class="input_search" v-model="model.f_address"
19
- style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
20
- </div>
21
- <div class="form-group col-sm-1 upuserinfo_sel" >
22
- <v-select
23
- class="select select_list"
24
- :width="'95%'"
25
- :value.sync="model.f_area"
26
- v-model="model.f_area"
27
- :options='$parent.$parent.areaList'
28
- :timeout="500"
29
- @select-search="$parent.$parent.select_search"
30
- placeholder='小区选择'
31
- condition="ua.f_residential_area = '{}'"
32
- close-on-select
33
- value-single
34
- >
35
- </v-select>
36
- </div>
37
- <div class="form-group col-sm-4" >
38
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
40
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
41
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
42
- </div>
43
- <div class="form-group col-sm-1" style="float: right">
44
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
45
- </div>
46
- <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
47
- <div slot="modal-header" class="modal-header">
48
- <h4 class="modal-title">
49
- 用户查询条件
50
- </h4>
51
- </div>
52
- <div slot="modal-body" class="modal-body">
53
- <div class="row">
54
- <div class="form-group col-sm-4" >
55
- <label class="font_normal_body">用户类型:</label>
56
- <v-select
57
- class="select select_list"
58
- :value.sync="model.f_user_type"
59
- v-model="model.f_user_type"
60
- :options='$parent.$parent.userTypes'
61
- placeholder='请选择'
62
- condition="uf.f_user_type='{}'"
63
- :search="false"
64
- close-on-select
65
- value-single
66
- >
67
- </v-select>
68
- </div>
69
- <div class="form-group col-sm-4" >
70
- <label class="font_normal_body">用户状态:</label>
71
- <v-select
72
- class="select select_list"
73
- :value.sync="model.f_user_state"
74
- v-model="model.f_user_state"
75
- :options='$parent.$parent.userStates'
76
- placeholder='请选择'
77
- condition="ui.f_user_state='{}'"
78
- :search="false"
79
- close-on-select
80
- value-single
81
- >
82
- </v-select>
83
- </div>
84
- <div class="form-group col-sm-4" >
85
- <label class="font_normal_body">用气性质:</label>
86
- <v-select
87
- class="select select_list"
88
- :value.sync="model.f_gasproperties"
89
- v-model="model.f_gasproperties"
90
- :options='$parent.$parent.gasproperties'
91
- placeholder='请选择'
92
- condition="uf.f_gasproperties='{}'"
93
- :search="false"
94
- close-on-select
95
- value-single
96
- >
97
- </v-select>
98
- </div>
99
- <div class="form-group col-sm-4" >
100
- <label class="font_normal_body">气表类型:</label>
101
- <v-select
102
- class="select select_list"
103
- :value.sync="model.meter_classify"
104
- v-model="model.meter_classify"
105
- :options='$parent.$parent.meter_classifys'
106
- placeholder='请选择'
107
- condition="uf.F_METER_CLASSIFY='{}'"
108
- :search="false"
109
- close-on-select
110
- value-single
111
- >
112
- </v-select>
113
- </div>
114
- <!--<div class="form-group col-sm-4" >
115
- <label class="font_normal_body">小区名称:</label>
116
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
117
- style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
118
- </div>-->
119
- <div class="form-group col-sm-4" >
120
- <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
121
- <input type="text" class="input_search" v-model="model.f_building"
122
- style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
123
- </div>
124
- <div class="form-group col-sm-4" >
125
- <label class="font_normal_body">单&ensp;元&ensp;号:</label>
126
- <input type="text" class="input_search" v-model="model.f_unit"
127
- style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
128
- </div>
129
- <div class="form-group col-sm-4" >
130
- <label class="font_normal_body">楼&ensp;层&ensp;号:</label>
131
- <input type="text" class="input_search" v-model="model.f_floor"
132
- style="width: 60%" placeholder="请选择" condition="ua.f_floor='{}'">
133
- </div>
134
- <div class="form-group col-sm-4" >
135
- <label class="font_normal_body">开户起始:</label>
136
- <datepicker
137
- placeholder='请选择'
138
- style="width:60%"
139
- :disabled-days-of-week="[]"
140
- :format="'yyyy-MM-dd'"
141
- :show-rest-button="reset"
142
- :value.sync="model.f_startfile_time"
143
- v-model="model.f_startfile_time"
144
- condition="ui.f_createfile_date >= '{} 00:00:00'">
145
- </datepicker>
146
- </div>
147
- <div class="form-group col-sm-4" >
148
- <label class="font_normal_body">开户截止:</label>
149
- <datepicker
150
- placeholder='请选择'
151
- :disabled-days-of-week="[]"
152
- style="width:60%"
153
- :format="'yyyy-MM-dd'"
154
- :show-rest-button="reset"
155
- :value.sync="model.f_endfile_time"
156
- v-model="model.f_endfile_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">表&ensp;箱&ensp;号:</label>
162
- <input type="text" class="input_search" v-model="model.f_metertitles"
163
- style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
164
- </div>
165
- <div class="form-group col-sm-4" >
166
- <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
167
- <v-select
168
- class="select select_list"
169
- :value.sync="model.f_book_slice_area"
170
- v-model="model.f_book_slice_area"
171
- :options='$parent.$parent.sliceArea'
172
- @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
173
- placeholder='请选择'
174
- condition="ua.f_slice_area ='{}'"
175
- close-on-select
176
- value-single
177
- >
178
- </v-select>
179
- </div>
180
- <div class="form-group col-sm-4" >
181
- <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
182
- <v-select
183
- class="select select_list"
184
- :value.sync="model.f_meter_book_num"
185
- v-model="model.f_meter_book_num"
186
- :options='$parent.$parent.cbc'
187
- placeholder='请选择'
188
- condition="uf.f_meter_book_num='{}'"
189
- close-on-select
190
- value-single
191
- >
192
- </v-select>
193
- </div>
194
- <div class="form-group col-sm-4" >
195
- <label class="font_normal_body">派发情况:</label>
196
- <v-select
197
- class="select select_list"
198
- :value.sync="model.yearCheck"
199
- v-model="model.yearCheck"
200
- :options='$parent.$parent.yearCheckList'
201
- placeholder='请选择'
202
- condition="{}"
203
- :search="false"
204
- close-on-select
205
- value-single
206
- >
207
- </v-select>
208
- </div>
209
- <div class="form-group col-sm-4" >
210
- <label class="font_normal_body">安检起始:</label>
211
- <datepicker
212
- placeholder='请选择'
213
- style="width:60%"
214
- :disabled-days-of-week="[]"
215
- :format="'yyyy-MM-dd'"
216
- :show-rest-button="reset"
217
- :value.sync="model.f_start_time"
218
- v-model="model.f_start_time"
219
- condition="ui.f_last_check_date >='{} 00:00:00'">
220
- </datepicker>
221
- </div>
222
- <div class="form-group col-sm-4" >
223
- <label class="font_normal_body">安检截止:</label>
224
- <datepicker
225
- placeholder='请选择'
226
- :disabled-days-of-week="[]"
227
- style="width:60%"
228
- :format="'yyyy-MM-dd'"
229
- :show-rest-button="reset"
230
- :value.sync="model.f_end_time"
231
- v-model="model.f_end_time"
232
- condition="ui.f_last_check_date <='{} 23:59:59'">
233
- </datepicker>
234
- </div>
235
- <div class="form-group col-sm-4" >
236
- <label class="font_normal_body">安检状态:</label>
237
- <v-select
238
- class="select select_list"
239
- :value.sync="model.f_last_check_state"
240
- v-model="model.f_last_check_state"
241
- :options='$parent.$parent.entry_status'
242
- placeholder='请选择'
243
- condition="ua.f_last_check_state = '{}'"
244
- :search="false"
245
- close-on-select
246
- value-single
247
- >
248
- </v-select>
249
- </div>
250
- <div class="form-group col-sm-4" v-if="$parent.$parent.hasCheckBooks == '是'">
251
- <label class="font_normal_body">安检册:</label>
252
- <v-select
253
- class="select select_list"
254
- :value.sync="model.checkBook"
255
- v-model="model.checkBook"
256
- :options='$parent.$parent.checkBooks'
257
- placeholder='请选择'
258
- :search="false"
259
- close-on-select
260
- value-single
261
- >
262
- </v-select>
263
- </div>
264
- <!--<div class="form-group col-sm-4" >
265
- <label class="font_normal_body">入户情况:</label>
266
- <v-select
267
- class="select select_list"
268
- :value.sync="model.f_hasHousehold"
269
- v-model="model.f_hasHousehold"
270
- :options='$parent.$parent.hasHousehold'
271
- placeholder='请选择'
272
- close-on-select
273
- :search="false"
274
- value-single
275
- >
276
- </v-select>
277
- </div>-->
278
-
279
- </div>
280
- </div>
281
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
282
- <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
283
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
284
- </div>
285
- </modal>
286
- <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
287
- <div slot="modal-header" class="modal-header">
288
- <h4 class="modal-title">
289
- 导入用户编号
290
- </h4>
291
- </div>
292
- <div slot="modal-body" class="modal-body">
293
- <div class="row">
294
- <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
295
- action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
296
- <img src="../../../assets/Excelformat.png" style="width: 100%"/>
297
- </div>
298
- </div>
299
- <footer slot="modal-footer" class="modal-footer">
300
- </footer>
301
- </modal>
302
- <!--<div class="form-group col-sm-4 button-range" >
303
-
304
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
305
- <export-excel :data="$parent.$parent.exportParameter"
306
- :field="$parent.$parent.excelHeaders"
307
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="planItem"
308
- template-name='安检计划明细' :choose-col="true">
309
- </export-excel>
310
-
311
- </div>-->
312
- </div>
313
- </div>
314
- </criteria>
315
- <data-grid :model="model" partial='list' class="table_sy">
316
-
317
- <template partial='head'>
318
- <tr>
319
- <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
320
- <th><nobr>用户编号</nobr></th>
321
- <th><nobr>用户名称</nobr></th>
322
- <th><nobr>用户类型</nobr></th>
323
- <th><nobr>小区名称</nobr></th>
324
- <th><nobr>片区</nobr></th>
325
- <th><nobr>备注</nobr></th>
326
- <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
327
- <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
328
- <th><nobr>详细地址</nobr></th>
329
- </tr>
330
- </template>
331
- <template partial='body'>
332
- <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>
333
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
334
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
335
- <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
336
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
337
- <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
338
- <td style="text-align: center"><nobr>{{row.f_comments}}</nobr></td>
339
- <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
340
- <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
341
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
342
- </template>
343
- </data-grid>
344
- </criteria-paged>
345
- </div>
346
- </template>
347
-
348
- <script>
349
- import {HttpResetClass, PagedList} from "vue-client";
350
- import * as Util from "../../Util";
351
- import Vue from "vue";
352
-
353
- export default {
354
- name: "PlanManage",
355
- title: '计划管理',
356
- data() {
357
- return {
358
- model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
359
- "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
360
- "f_usertype": "''",
361
- "month": "''",
362
- "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
363
- "SafeCheckCQ": "''",
364
- "startday":"''",
365
- "endday":"''"}),
366
- a:'1',
367
- opt:[{label:"测试",value:"测试"}],
368
- showCondtion:false,
369
- userTypes:[],//用户类型
370
- userStates:[],//用户状态
371
- gasproperties:[],//用气性质
372
- meter_classifys:[],//气表类型
373
- hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
374
- yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
375
- entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
376
- sliceArea:[],
377
- meterbooks:[],
378
- hasCheckBooks:'否',
379
- checkBooks:[],
380
- cbc:[],
381
- areaList:[],
382
- checkAll:false,
383
- checkes:[],
384
- excelUserCondtion:false,
385
- uploadCodeCondition:''
386
- }
387
- },
388
- props:["selectplan","userlogin"],
389
- ready(){
390
- this.$refs.paged.$refs.criteria.model.f_user_state='正常'
391
- this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
392
- // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
393
- //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
394
- this.getCheckBook()
395
- this.setConList()
396
- this.loadpage()
397
- },
398
- methods: {
399
- getCheckBook(){
400
- this.checkBooks=[]
401
- new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
402
- data: {
403
- items: 'id,f_check_book_name,f_check_book_type',
404
- tablename: 't_check_book',
405
- condition: `f_orgid = '${this.userlogin.orgid}'`,
406
- orderitem: 'id desc'
407
- }
408
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
409
- this.checkBooks.push({label: '全部', value: ''})
410
- res.data.forEach(ress => {
411
- this.checkBooks.push({
412
- label: ress.f_check_book_name,
413
- value: `${ress.id}-${ress.f_check_book_type}`
414
- })
415
- })
416
- })
417
- },
418
- loadpage(){
419
- this.select_search()
420
- this.Mreadibook()
421
- this.getSliceArea()
422
- },
423
- cancel(){
424
- this.showCondtion=false
425
- this.excelUserCondtion=false
426
- },
427
- //清空用户编号
428
- clearUserInfoId(){
429
- this.uploadCodeCondition=''
430
- Vue.showMessage("已清空用户编号")
431
- },
432
- showUploadCodeCondition(){
433
- this.excelUserCondtion=true
434
- },
435
- selfSearch (args) {
436
- //tag)
437
- args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
438
- /*if(args.model.f_hasHousehold=='已入户'){
439
- 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='入户'`
440
- }else if(args.model.f_hasHousehold=='未入户'){
441
- 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,'未入户')!='入户')`
442
- }*/
443
- if(args.model.checkBook){
444
- let arr=args.model.checkBook.split('-')
445
- if(arr[1] == '用户'){
446
- args.condition +=` and ua.f_check_book_id=${arr[0]}`
447
- }else{
448
- args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
449
- }
450
- }
451
- if(this.uploadCodeCondition){
452
- args.condition +=` and ${this.uploadCodeCondition}`
453
- }
454
- this.cancel()
455
- this.checkes=[]
456
- this.checkAll=false
457
- this.model.search(args.condition, args.model, args.condValue)
458
- },
459
- showUserCondition(){
460
- this.showCondtion=true
461
- },
462
- setConList(){
463
- this.userTypes=this.$appdata.getParam('用户类型') ? [{
464
- label: '全部',
465
- value: ''
466
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
467
-
468
- this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
469
- this.gasproperties=this.$appdata.getParam('用气性质') ? [{
470
- label: '全部',
471
- value: ''
472
- }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
473
- this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
474
- label: '全部',
475
- value: ''
476
- }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
477
- },
478
- select_search(text){
479
- //tag
480
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
481
- 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)=>{
482
- //tag)
483
- if(res.data.length>0){
484
- this.areaList=[]
485
- this.areaList.push({label:"全部",value:""})
486
- res.data.forEach((result)=>{
487
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
488
- })
489
- }
490
- //tag)
491
- })
492
- },
493
- //获取抄表册
494
- async Mreadibook(){
495
- this.cbc=[]
496
- this.sliceArea=[]
497
- let http = new HttpResetClass()
498
- let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
499
- {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
500
- {resolveMsg: null, rejectMsg: '获取失败!!!'})
501
- this.cbc = [{label: '全部', value: ''}]
502
- //tag
503
- //tag)
504
- //tag
505
- this.meterbooks=[]
506
- this.meterbooks=getMeterReadingBooks.data.meterbooks
507
- this.meterbooks.forEach((res) => {
508
- this.cbc.push({label: res.f_book_name, value: res.id})
509
- /*if(res.f_book_slice_area){
510
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
511
- this.sliceArea.push(res.f_book_slice_area)
512
- }
513
- }*/
514
- })
515
-
516
- },
517
- //片区获取
518
- async getSliceArea() {
519
- let http = new HttpResetClass()
520
- let getAllArea = await http.load('POST', '/rs/search', {
521
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
522
- userid: this.userlogin.id
523
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
524
- this.sliceArea = [{label: '全部', value: ''}]
525
- //tag
526
- //tag
527
- //tag
528
- getAllArea.data.forEach((res) => {
529
- if(res.parentid==this.userlogin.orgid){
530
- this.sliceArea.push({label:res.name,value:res.name})
531
- }
532
- })
533
- //tag
534
- },
535
- //片区改变-对应抄表册下拉重新赋值
536
- slice_areaChange(value) {
537
- //tag
538
- if(!value){
539
- this.cbc=[]
540
- this.meterbooks.forEach((res) => {
541
- this.cbc.push({label: res.f_book_name, value: res.id})
542
- })
543
- }else{
544
- this.cbc=[]
545
- this.meterbooks.forEach((res) => {
546
- if(res.f_book_slice_area==value){
547
- this.cbc.push({label: res.f_book_name, value: res.id})
548
- }
549
- })
550
- }
551
- },
552
- isChecked(v) {
553
- // 如果全选,不在的按选中算,否则,在的按选中算
554
- if (this.checkAll) {
555
- return this.checkes.indexOf(v) == -1
556
- } else {
557
- return this.checkes.indexOf(v) != -1
558
- }
559
- },
560
- setCheckAll() {
561
- this.checkAll=this.checkAll?false:true;
562
- // 全选改变后,清空选中数据
563
- this.checkes = []
564
- },
565
- setCheckes(id) {
566
- let index=this.checkes.indexOf(id)
567
- if(index<0){
568
- this.checkes.push(id)
569
- }else{
570
- this.checkes.splice(index,1)
571
- }
572
- },
573
- //将客户信息拖至计划中
574
- async dragtoPlanItem() {
575
- if(this.model.rows.length==0){
576
- Vue.showMessage("未检测到列表中有用户!")
577
- return
578
- }
579
- if(!this.checkAll && this.checkes.length==0){
580
- Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
581
- return
582
- }
583
- if(this.selectplan && this.selectplan.id){
584
- this.$parent.isSend=true
585
- try{
586
- let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/AddCheckPlanItem", {
587
- data:{
588
- f_operator:this.userlogin.name,
589
- f_plan_id:this.selectplan.id,
590
- f_safecheck_type:this.selectplan.f_safecheck_type,
591
- f_filialeid:this.userlogin.orgid,
592
- f_subscribe_date:'',
593
- condition:this.model.condition,
594
- switchCheckAll:true,
595
- checkAll:this.checkAll,
596
- param:this.checkes,
597
- columnName: "ua.id"
598
- }
599
- }, {resolveMsg: null, rejectMsg: null})
600
- //tag+"---"+res.data.result.length)
601
- this.$parent.isSend=false
602
- if(res.data.code==200){
603
- //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
604
- this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
605
- this.$parent.refresh()
606
- }else{
607
- this.$showMessage("添加失败!")
608
- }
609
- }catch (e) {
610
- this.$showMessage("添加失败!")
611
- }
612
- }else{
613
- this.$parent.isSend=false
614
- this.$showMessage("请先打开一个计划再进行操作")
615
- }
616
- }
617
- },
618
- events: {
619
- onFileUpload: function (file, res) {
620
- //tag)
621
- //tag)
622
- let data = {
623
- filepath: res.f_downloadpath
624
- }
625
- new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
626
- resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
627
- rejectMsg: '导入失败'
628
- }).then((res) => {
629
- this.uploadCodeCondition=res.data.condition
630
- this.excelUserCondtion = false
631
- })
632
- },
633
-
634
- }
635
- }
636
- </script>
637
-
638
- <style scoped>
639
- .safe-planfont{
640
- font-family: MicrosoftYaHei;
641
- font-size: 15px;
642
- font-weight: normal;
643
- font-stretch: normal;
644
- letter-spacing: 2px;
645
- color: #333333;
646
- line-height: 25px;
647
- }
648
- .safe-bodyfont{
649
- font-family: MicrosoftYaHei;
650
- font-size: 14px;
651
- font-weight: normal;
652
- font-stretch: normal;
653
- letter-spacing: 0px;
654
- color: #999999;
655
- line-height: 30px;
656
- }
657
- .safe-leftplan{
658
- height:auto;
659
- border-bottom:1px solid #ececec;
660
- padding: 10px 5px
661
- }
662
- .leftplan-center{
663
- border-top:1px solid #ececec;
664
- border-bottom:1px solid #ececec;
665
- }
666
- .safe_p{
667
- white-space: nowrap;
668
- overflow: hidden;
669
- text-overflow: ellipsis;
670
- }
671
- .safe-div-p{
672
- color: #4792de;
673
- text-align: end;
674
- padding: 8px 15px;
675
- }
676
- </style>
677
- <style lang="less">
678
- .upuserinfo_sel ul{
679
- width: 150% !important;
680
- }
681
- </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>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_user_name"
15
+ style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
16
+ </div>
17
+ <div class="form-group col-sm-1" >
18
+ <input type="text" class="input_search" v-model="model.f_address"
19
+ style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-1 upuserinfo_sel" >
22
+ <v-select
23
+ class="select select_list"
24
+ :width="'95%'"
25
+ :value.sync="model.f_area"
26
+ v-model="model.f_area"
27
+ :options='$parent.$parent.areaList'
28
+ :timeout="500"
29
+ @select-search="$parent.$parent.select_search"
30
+ placeholder='小区选择'
31
+ condition="ua.f_residential_area = '{}'"
32
+ close-on-select
33
+ value-single
34
+ >
35
+ </v-select>
36
+ </div>
37
+ <div class="form-group col-sm-4" >
38
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
40
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
41
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
42
+ </div>
43
+ <div class="form-group col-sm-1" style="float: right">
44
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
45
+ </div>
46
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
47
+ <div slot="modal-header" class="modal-header">
48
+ <h4 class="modal-title">
49
+ 用户查询条件
50
+ </h4>
51
+ </div>
52
+ <div slot="modal-body" class="modal-body">
53
+ <div class="row">
54
+ <div class="form-group col-sm-4" >
55
+ <label class="font_normal_body">用户类型:</label>
56
+ <v-select
57
+ class="select select_list"
58
+ :value.sync="model.f_user_type"
59
+ v-model="model.f_user_type"
60
+ :options='$parent.$parent.userTypes'
61
+ placeholder='请选择'
62
+ condition="uf.f_user_type='{}'"
63
+ :search="false"
64
+ close-on-select
65
+ value-single
66
+ >
67
+ </v-select>
68
+ </div>
69
+ <div class="form-group col-sm-4" >
70
+ <label class="font_normal_body">用户状态:</label>
71
+ <v-select
72
+ class="select select_list"
73
+ :value.sync="model.f_user_state"
74
+ v-model="model.f_user_state"
75
+ :options='$parent.$parent.userStates'
76
+ placeholder='请选择'
77
+ condition="ui.f_user_state='{}'"
78
+ :search="false"
79
+ close-on-select
80
+ value-single
81
+ >
82
+ </v-select>
83
+ </div>
84
+ <div class="form-group col-sm-4" >
85
+ <label class="font_normal_body">用气性质:</label>
86
+ <v-select
87
+ class="select select_list"
88
+ :value.sync="model.f_gasproperties"
89
+ v-model="model.f_gasproperties"
90
+ :options='$parent.$parent.gasproperties'
91
+ placeholder='请选择'
92
+ condition="uf.f_gasproperties='{}'"
93
+ :search="false"
94
+ close-on-select
95
+ value-single
96
+ >
97
+ </v-select>
98
+ </div>
99
+ <div class="form-group col-sm-4" >
100
+ <label class="font_normal_body">气表类型:</label>
101
+ <v-select
102
+ class="select select_list"
103
+ :value.sync="model.meter_classify"
104
+ v-model="model.meter_classify"
105
+ :options='$parent.$parent.meter_classifys'
106
+ placeholder='请选择'
107
+ condition="uf.F_METER_CLASSIFY='{}'"
108
+ :search="false"
109
+ close-on-select
110
+ value-single
111
+ >
112
+ </v-select>
113
+ </div>
114
+ <!--<div class="form-group col-sm-4" >
115
+ <label class="font_normal_body">小区名称:</label>
116
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
117
+ style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
118
+ </div>-->
119
+ <div class="form-group col-sm-4" >
120
+ <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
121
+ <input type="text" class="input_search" v-model="model.f_building"
122
+ style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
123
+ </div>
124
+ <div class="form-group col-sm-4" >
125
+ <label class="font_normal_body">单&ensp;元&ensp;号:</label>
126
+ <input type="text" class="input_search" v-model="model.f_unit"
127
+ style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
128
+ </div>
129
+ <div class="form-group col-sm-4" >
130
+ <label class="font_normal_body">楼&ensp;层&ensp;号:</label>
131
+ <input type="text" class="input_search" v-model="model.f_floor"
132
+ style="width: 60%" placeholder="请选择" condition="ua.f_floor='{}'">
133
+ </div>
134
+ <div class="form-group col-sm-4" >
135
+ <label class="font_normal_body">开户起始:</label>
136
+ <datepicker
137
+ placeholder='请选择'
138
+ style="width:60%"
139
+ :disabled-days-of-week="[]"
140
+ :format="'yyyy-MM-dd'"
141
+ :show-rest-button="reset"
142
+ :value.sync="model.f_startfile_time"
143
+ v-model="model.f_startfile_time"
144
+ condition="ui.f_createfile_date >= '{} 00:00:00'">
145
+ </datepicker>
146
+ </div>
147
+ <div class="form-group col-sm-4" >
148
+ <label class="font_normal_body">开户截止:</label>
149
+ <datepicker
150
+ placeholder='请选择'
151
+ :disabled-days-of-week="[]"
152
+ style="width:60%"
153
+ :format="'yyyy-MM-dd'"
154
+ :show-rest-button="reset"
155
+ :value.sync="model.f_endfile_time"
156
+ v-model="model.f_endfile_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">表&ensp;箱&ensp;号:</label>
162
+ <input type="text" class="input_search" v-model="model.f_metertitles"
163
+ style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
164
+ </div>
165
+ <div class="form-group col-sm-4" >
166
+ <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
167
+ <v-select
168
+ class="select select_list"
169
+ :value.sync="model.f_book_slice_area"
170
+ v-model="model.f_book_slice_area"
171
+ :options='$parent.$parent.sliceArea'
172
+ @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
173
+ placeholder='请选择'
174
+ condition="ua.f_slice_area ='{}'"
175
+ close-on-select
176
+ value-single
177
+ >
178
+ </v-select>
179
+ </div>
180
+ <div class="form-group col-sm-4" >
181
+ <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
182
+ <v-select
183
+ class="select select_list"
184
+ :value.sync="model.f_meter_book_num"
185
+ v-model="model.f_meter_book_num"
186
+ :options='$parent.$parent.cbc'
187
+ placeholder='请选择'
188
+ condition="uf.f_meter_book_num='{}'"
189
+ close-on-select
190
+ value-single
191
+ >
192
+ </v-select>
193
+ </div>
194
+ <div class="form-group col-sm-4" >
195
+ <label class="font_normal_body">派发情况:</label>
196
+ <v-select
197
+ class="select select_list"
198
+ :value.sync="model.yearCheck"
199
+ v-model="model.yearCheck"
200
+ :options='$parent.$parent.yearCheckList'
201
+ placeholder='请选择'
202
+ condition="{}"
203
+ :search="false"
204
+ close-on-select
205
+ value-single
206
+ >
207
+ </v-select>
208
+ </div>
209
+ <div class="form-group col-sm-4" >
210
+ <label class="font_normal_body">安检起始:</label>
211
+ <datepicker
212
+ placeholder='请选择'
213
+ style="width:60%"
214
+ :disabled-days-of-week="[]"
215
+ :format="'yyyy-MM-dd'"
216
+ :show-rest-button="reset"
217
+ :value.sync="model.f_start_time"
218
+ v-model="model.f_start_time"
219
+ condition="ui.f_last_check_date >='{} 00:00:00'">
220
+ </datepicker>
221
+ </div>
222
+ <div class="form-group col-sm-4" >
223
+ <label class="font_normal_body">安检截止:</label>
224
+ <datepicker
225
+ placeholder='请选择'
226
+ :disabled-days-of-week="[]"
227
+ style="width:60%"
228
+ :format="'yyyy-MM-dd'"
229
+ :show-rest-button="reset"
230
+ :value.sync="model.f_end_time"
231
+ v-model="model.f_end_time"
232
+ condition="ui.f_last_check_date <='{} 23:59:59'">
233
+ </datepicker>
234
+ </div>
235
+ <div class="form-group col-sm-4" >
236
+ <label class="font_normal_body">安检状态:</label>
237
+ <v-select
238
+ class="select select_list"
239
+ :value.sync="model.f_last_check_state"
240
+ v-model="model.f_last_check_state"
241
+ :options='$parent.$parent.entry_status'
242
+ placeholder='请选择'
243
+ condition="ua.f_last_check_state = '{}'"
244
+ :search="false"
245
+ close-on-select
246
+ value-single
247
+ >
248
+ </v-select>
249
+ </div>
250
+ <div class="form-group col-sm-4" v-if="$parent.$parent.hasCheckBooks == '是'">
251
+ <label class="font_normal_body">安检册:</label>
252
+ <v-select
253
+ class="select select_list"
254
+ :value.sync="model.checkBook"
255
+ v-model="model.checkBook"
256
+ :options='$parent.$parent.checkBooks'
257
+ placeholder='请选择'
258
+ :search="false"
259
+ close-on-select
260
+ value-single
261
+ >
262
+ </v-select>
263
+ </div>
264
+ <!--<div class="form-group col-sm-4" >
265
+ <label class="font_normal_body">入户情况:</label>
266
+ <v-select
267
+ class="select select_list"
268
+ :value.sync="model.f_hasHousehold"
269
+ v-model="model.f_hasHousehold"
270
+ :options='$parent.$parent.hasHousehold'
271
+ placeholder='请选择'
272
+ close-on-select
273
+ :search="false"
274
+ value-single
275
+ >
276
+ </v-select>
277
+ </div>-->
278
+
279
+ </div>
280
+ </div>
281
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
282
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
283
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
284
+ </div>
285
+ </modal>
286
+ <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
287
+ <div slot="modal-header" class="modal-header">
288
+ <h4 class="modal-title">
289
+ 导入用户编号
290
+ </h4>
291
+ </div>
292
+ <div slot="modal-body" class="modal-body">
293
+ <div class="row">
294
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
295
+ action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
296
+ <img src="../../../assets/Excelformat.png" style="width: 100%"/>
297
+ </div>
298
+ </div>
299
+ <footer slot="modal-footer" class="modal-footer">
300
+ </footer>
301
+ </modal>
302
+ <!--<div class="form-group col-sm-4 button-range" >
303
+
304
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
305
+ <export-excel :data="$parent.$parent.exportParameter"
306
+ :field="$parent.$parent.excelHeaders"
307
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItem"
308
+ template-name='安检计划明细' :choose-col="true">
309
+ </export-excel>
310
+
311
+ </div>-->
312
+ </div>
313
+ </div>
314
+ </criteria>
315
+ <data-grid :model="model" partial='list' class="table_sy">
316
+
317
+ <template partial='head'>
318
+ <tr>
319
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
320
+ <th><nobr>用户编号</nobr></th>
321
+ <th><nobr>用户名称</nobr></th>
322
+ <th><nobr>用户类型</nobr></th>
323
+ <th><nobr>小区名称</nobr></th>
324
+ <th><nobr>片区</nobr></th>
325
+ <th><nobr>备注</nobr></th>
326
+ <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
327
+ <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
328
+ <th><nobr>详细地址</nobr></th>
329
+ </tr>
330
+ </template>
331
+ <template partial='body'>
332
+ <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>
333
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
334
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
335
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
336
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
337
+ <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
338
+ <td style="text-align: center"><nobr>{{row.f_comments}}</nobr></td>
339
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
340
+ <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
341
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
342
+ </template>
343
+ </data-grid>
344
+ </criteria-paged>
345
+ </div>
346
+ </template>
347
+
348
+ <script>
349
+ import {HttpResetClass, PagedList} from "vue-client";
350
+ import * as Util from "../../Util";
351
+ import Vue from "vue";
352
+
353
+ export default {
354
+ name: "PlanManage",
355
+ title: '计划管理',
356
+ data() {
357
+ return {
358
+ model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
359
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
360
+ "f_usertype": "''",
361
+ "month": "''",
362
+ "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
363
+ "SafeCheckCQ": "''",
364
+ "startday":"''",
365
+ "endday":"''"}),
366
+ a:'1',
367
+ opt:[{label:"测试",value:"测试"}],
368
+ showCondtion:false,
369
+ userTypes:[],//用户类型
370
+ userStates:[],//用户状态
371
+ gasproperties:[],//用气性质
372
+ meter_classifys:[],//气表类型
373
+ hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
374
+ yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
375
+ entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
376
+ sliceArea:[],
377
+ meterbooks:[],
378
+ hasCheckBooks:'否',
379
+ checkBooks:[],
380
+ cbc:[],
381
+ areaList:[],
382
+ checkAll:false,
383
+ checkes:[],
384
+ excelUserCondtion:false,
385
+ uploadCodeCondition:''
386
+ }
387
+ },
388
+ props:["selectplan","userlogin"],
389
+ ready(){
390
+ this.$refs.paged.$refs.criteria.model.f_user_state='正常'
391
+ this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
392
+ // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
393
+ //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
394
+ this.getCheckBook()
395
+ this.setConList()
396
+ this.loadpage()
397
+ },
398
+ methods: {
399
+ getCheckBook(){
400
+ this.checkBooks=[]
401
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
402
+ data: {
403
+ items: 'id,f_check_book_name,f_check_book_type',
404
+ tablename: 't_check_book',
405
+ condition: `f_orgid = '${this.userlogin.orgid}'`,
406
+ orderitem: 'id desc'
407
+ }
408
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
409
+ this.checkBooks.push({label: '全部', value: ''})
410
+ res.data.forEach(ress => {
411
+ this.checkBooks.push({
412
+ label: ress.f_check_book_name,
413
+ value: `${ress.id}-${ress.f_check_book_type}`
414
+ })
415
+ })
416
+ })
417
+ },
418
+ loadpage(){
419
+ this.select_search()
420
+ this.Mreadibook()
421
+ this.getSliceArea()
422
+ },
423
+ cancel(){
424
+ this.showCondtion=false
425
+ this.excelUserCondtion=false
426
+ },
427
+ //清空用户编号
428
+ clearUserInfoId(){
429
+ this.uploadCodeCondition=''
430
+ Vue.showMessage("已清空用户编号")
431
+ },
432
+ showUploadCodeCondition(){
433
+ this.excelUserCondtion=true
434
+ },
435
+ selfSearch (args) {
436
+ //tag)
437
+ args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
438
+ /*if(args.model.f_hasHousehold=='已入户'){
439
+ 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='入户'`
440
+ }else if(args.model.f_hasHousehold=='未入户'){
441
+ 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,'未入户')!='入户')`
442
+ }*/
443
+ if(args.model.checkBook){
444
+ let arr=args.model.checkBook.split('-')
445
+ if(arr[1] == '用户'){
446
+ args.condition +=` and ua.f_check_book_id=${arr[0]}`
447
+ }else{
448
+ args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
449
+ }
450
+ }
451
+ if(this.uploadCodeCondition){
452
+ args.condition +=` and ${this.uploadCodeCondition}`
453
+ }
454
+ this.cancel()
455
+ this.checkes=[]
456
+ this.checkAll=false
457
+ this.model.search(args.condition, args.model, args.condValue)
458
+ },
459
+ showUserCondition(){
460
+ this.showCondtion=true
461
+ },
462
+ setConList(){
463
+ this.userTypes=this.$appdata.getParam('用户类型') ? [{
464
+ label: '全部',
465
+ value: ''
466
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
467
+
468
+ this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
469
+ this.gasproperties=this.$appdata.getParam('用气性质') ? [{
470
+ label: '全部',
471
+ value: ''
472
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
473
+ this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
474
+ label: '全部',
475
+ value: ''
476
+ }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
477
+ },
478
+ select_search(text){
479
+ //tag
480
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
481
+ 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)=>{
482
+ //tag)
483
+ if(res.data.length>0){
484
+ this.areaList=[]
485
+ this.areaList.push({label:"全部",value:""})
486
+ res.data.forEach((result)=>{
487
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
488
+ })
489
+ }
490
+ //tag)
491
+ })
492
+ },
493
+ //获取抄表册
494
+ async Mreadibook(){
495
+ this.cbc=[]
496
+ this.sliceArea=[]
497
+ let http = new HttpResetClass()
498
+ let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
499
+ {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
500
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
501
+ this.cbc = [{label: '全部', value: ''}]
502
+ //tag
503
+ //tag)
504
+ //tag
505
+ this.meterbooks=[]
506
+ this.meterbooks=getMeterReadingBooks.data.meterbooks
507
+ this.meterbooks.forEach((res) => {
508
+ this.cbc.push({label: res.f_book_name, value: res.id})
509
+ /*if(res.f_book_slice_area){
510
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
511
+ this.sliceArea.push(res.f_book_slice_area)
512
+ }
513
+ }*/
514
+ })
515
+
516
+ },
517
+ //片区获取
518
+ async getSliceArea() {
519
+ let http = new HttpResetClass()
520
+ let getAllArea = await http.load('POST', '/rs/search', {
521
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
522
+ userid: this.userlogin.id
523
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
524
+ this.sliceArea = [{label: '全部', value: ''}]
525
+ //tag
526
+ //tag
527
+ //tag
528
+ getAllArea.data.forEach((res) => {
529
+ if(res.parentid==this.userlogin.orgid){
530
+ this.sliceArea.push({label:res.name,value:res.name})
531
+ }
532
+ })
533
+ //tag
534
+ },
535
+ //片区改变-对应抄表册下拉重新赋值
536
+ slice_areaChange(value) {
537
+ //tag
538
+ if(!value){
539
+ this.cbc=[]
540
+ this.meterbooks.forEach((res) => {
541
+ this.cbc.push({label: res.f_book_name, value: res.id})
542
+ })
543
+ }else{
544
+ this.cbc=[]
545
+ this.meterbooks.forEach((res) => {
546
+ if(res.f_book_slice_area==value){
547
+ this.cbc.push({label: res.f_book_name, value: res.id})
548
+ }
549
+ })
550
+ }
551
+ },
552
+ isChecked(v) {
553
+ // 如果全选,不在的按选中算,否则,在的按选中算
554
+ if (this.checkAll) {
555
+ return this.checkes.indexOf(v) == -1
556
+ } else {
557
+ return this.checkes.indexOf(v) != -1
558
+ }
559
+ },
560
+ setCheckAll() {
561
+ this.checkAll=this.checkAll?false:true;
562
+ // 全选改变后,清空选中数据
563
+ this.checkes = []
564
+ },
565
+ setCheckes(id) {
566
+ let index=this.checkes.indexOf(id)
567
+ if(index<0){
568
+ this.checkes.push(id)
569
+ }else{
570
+ this.checkes.splice(index,1)
571
+ }
572
+ },
573
+ //将客户信息拖至计划中
574
+ async dragtoPlanItem() {
575
+ if(this.model.rows.length==0){
576
+ Vue.showMessage("未检测到列表中有用户!")
577
+ return
578
+ }
579
+ if(!this.checkAll && this.checkes.length==0){
580
+ Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
581
+ return
582
+ }
583
+ if(this.selectplan && this.selectplan.id){
584
+ this.$parent.isSend=true
585
+ try{
586
+ let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/AddCheckPlanItem", {
587
+ data:{
588
+ f_operator:this.userlogin.name,
589
+ f_plan_id:this.selectplan.id,
590
+ f_safecheck_type:this.selectplan.f_safecheck_type,
591
+ f_filialeid:this.userlogin.orgid,
592
+ f_subscribe_date:'',
593
+ condition:this.model.condition,
594
+ switchCheckAll:true,
595
+ checkAll:this.checkAll,
596
+ param:this.checkes,
597
+ columnName: "ua.id"
598
+ }
599
+ }, {resolveMsg: null, rejectMsg: null})
600
+ //tag+"---"+res.data.result.length)
601
+ this.$parent.isSend=false
602
+ if(res.data.code==200){
603
+ //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
604
+ this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
605
+ this.$parent.refresh()
606
+ }else{
607
+ this.$showMessage("添加失败!")
608
+ }
609
+ }catch (e) {
610
+ this.$showMessage("添加失败!")
611
+ }
612
+ }else{
613
+ this.$parent.isSend=false
614
+ this.$showMessage("请先打开一个计划再进行操作")
615
+ }
616
+ }
617
+ },
618
+ events: {
619
+ onFileUpload: function (file, res) {
620
+ //tag)
621
+ //tag)
622
+ let data = {
623
+ filepath: res.f_downloadpath
624
+ }
625
+ new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
626
+ resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
627
+ rejectMsg: '导入失败'
628
+ }).then((res) => {
629
+ this.uploadCodeCondition=res.data.condition
630
+ this.excelUserCondtion = false
631
+ })
632
+ },
633
+
634
+ }
635
+ }
636
+ </script>
637
+
638
+ <style scoped>
639
+ .safe-planfont{
640
+ font-family: MicrosoftYaHei;
641
+ font-size: 15px;
642
+ font-weight: normal;
643
+ font-stretch: normal;
644
+ letter-spacing: 2px;
645
+ color: #333333;
646
+ line-height: 25px;
647
+ }
648
+ .safe-bodyfont{
649
+ font-family: MicrosoftYaHei;
650
+ font-size: 14px;
651
+ font-weight: normal;
652
+ font-stretch: normal;
653
+ letter-spacing: 0px;
654
+ color: #999999;
655
+ line-height: 30px;
656
+ }
657
+ .safe-leftplan{
658
+ height:auto;
659
+ border-bottom:1px solid #ececec;
660
+ padding: 10px 5px
661
+ }
662
+ .leftplan-center{
663
+ border-top:1px solid #ececec;
664
+ border-bottom:1px solid #ececec;
665
+ }
666
+ .safe_p{
667
+ white-space: nowrap;
668
+ overflow: hidden;
669
+ text-overflow: ellipsis;
670
+ }
671
+ .safe-div-p{
672
+ color: #4792de;
673
+ text-align: end;
674
+ padding: 8px 15px;
675
+ }
676
+ </style>
677
+ <style lang="less">
678
+ .upuserinfo_sel ul{
679
+ width: 150% !important;
680
+ }
681
+ </style>