safecheck-client 4.0.2-8 → 4.0.2-9

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 (268) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  4. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  5. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  6. package/src/components/Util/RightTreeSafeDep.vue +362 -362
  7. package/src/components/android/AddPlanItem.vue +447 -447
  8. package/src/components/android/AddPlanItemYy.vue +451 -451
  9. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  10. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  11. package/src/components/android/DailyworkloadQuery.vue +473 -473
  12. package/src/components/android/Devices.vue +327 -327
  13. package/src/components/android/Devicesm.vue +327 -327
  14. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  15. package/src/components/android/PhoneRecordInfo.vue +113 -113
  16. package/src/components/android/PhoneSellInfo.vue +113 -113
  17. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  18. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  19. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  20. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  21. package/src/components/android/SafePlanItem.vue +509 -509
  22. package/src/components/android/SafeRightTree.vue +218 -218
  23. package/src/components/android/SafecheckDevices.vue +1340 -1340
  24. package/src/components/android/UploadPage.vue +232 -232
  25. package/src/components/android/examples/SafeListExamples.vue +296 -296
  26. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  27. package/src/components/android/recheck/Recheck.vue +402 -402
  28. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  29. package/src/components/checkplan/checkmsg.vue +459 -459
  30. package/src/components/defect/DefectList.vue +507 -507
  31. package/src/components/defect/DefectListWeixiu.vue +484 -484
  32. package/src/components/filialCircle/CircleList.vue +139 -139
  33. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  34. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  35. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  36. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  37. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  38. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  39. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  40. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  41. package/src/components/map/PersonTrack.vue +226 -226
  42. package/src/components/paper/RegionalList.vue +220 -220
  43. package/src/components/pc/AnnouncementPC.vue +524 -524
  44. package/src/components/pc/CheckBook.vue +303 -303
  45. package/src/components/pc/CheckBookArea.vue +146 -146
  46. package/src/components/pc/CheckBookCompany.vue +144 -144
  47. package/src/components/pc/CheckBookDetails.vue +161 -161
  48. package/src/components/pc/CheckBookEntry.vue +60 -60
  49. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  50. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  51. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  52. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  53. package/src/components/pc/DefectList.vue +742 -742
  54. package/src/components/pc/DefectMaterialLook.vue +98 -98
  55. package/src/components/pc/DeviceChange.vue +1068 -1068
  56. package/src/components/pc/PaperDefectMain.vue +905 -905
  57. package/src/components/pc/RoleSelectorDep.vue +166 -166
  58. package/src/components/pc/SafeVisitInfo.vue +261 -261
  59. package/src/components/report/HiddenSituation.vue +165 -165
  60. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  61. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  62. package/src/components/rongcheng/DefectList.vue +560 -560
  63. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  64. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  65. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  66. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  67. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  68. package/src/components/shaoguan/DefectList.vue +473 -473
  69. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  70. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  71. package/src/components/userfile/SecurityAudit.vue +243 -243
  72. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  73. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  74. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  75. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  76. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  77. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  78. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  79. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  80. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  81. package/src/filiale/bayan/android/Edit.vue +132 -132
  82. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  83. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  84. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  85. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  86. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  87. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  88. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  89. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  90. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  91. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  92. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  93. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  94. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  95. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  96. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  97. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  98. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  99. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  100. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  101. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  102. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  103. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  104. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  105. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  106. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  107. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  108. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  109. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  110. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  111. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  112. package/src/filiale/jinhong/pc/CheckBookList.vue +393 -393
  113. package/src/filiale/jinhong/pc/PaperList.vue +853 -853
  114. package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
  115. package/src/filiale/jinhong/pc/checkPlanList.vue +420 -420
  116. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  117. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  118. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  119. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  120. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  121. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  122. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  123. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  124. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  125. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  126. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  127. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  128. package/src/filiale/libo/android/CurrentCreate.vue +1091 -1091
  129. package/src/filiale/libo/android.js +15 -15
  130. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  131. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  132. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  133. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  134. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  135. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  136. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  137. package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1542
  138. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  139. package/src/filiale/meihekou/android/SafecheckDevices.vue +1340 -1343
  140. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2448 -2446
  141. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  142. package/src/filiale/meihekou/android.js +22 -22
  143. package/src/filiale/meihekou/pc/CheckDetail.vue +208 -0
  144. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  145. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -2050
  146. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  147. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  148. package/src/filiale/meihekou/pc.js +2 -0
  149. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  150. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  151. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  152. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  153. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  154. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  155. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  156. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  157. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  158. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  159. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  160. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  161. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  162. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  163. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -359
  164. package/src/filiale/qingjian/pc.js +15 -15
  165. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  166. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  167. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  168. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  169. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  170. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  171. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  172. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  173. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  174. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  175. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  176. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  177. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  178. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  179. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  180. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  181. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  182. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  183. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  184. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  185. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  186. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  187. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  188. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  189. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  190. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  191. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  192. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  193. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  194. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  195. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  196. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  197. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  198. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  199. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  200. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  201. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  202. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  203. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  204. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  205. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  206. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  207. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  208. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  209. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  210. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  211. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  212. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  213. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  214. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  215. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  216. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  217. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  218. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  219. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  220. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  221. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  222. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  223. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  224. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  225. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  226. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  227. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  228. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  229. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  230. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  231. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  232. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  233. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  234. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  235. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  236. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  237. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  238. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  239. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  240. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  241. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  242. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  243. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  244. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  245. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  246. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  247. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  248. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  249. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  250. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  251. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  252. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  253. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  254. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  255. package/src/filiale/yunchengminsheng/android.js +15 -15
  256. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  257. package/src/filiale/yunchengminsheng/pc.js +15 -15
  258. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  259. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  260. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  261. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  262. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  263. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  264. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  265. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  266. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  267. package/src/main.js +32 -33
  268. package/src/safecheck.js +924 -924
@@ -1,674 +1,674 @@
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
- <div class="form-group col-sm-2" >
8
- <label class="font_normal_body">用户信息</label>
9
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
10
- style="width: 60%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
11
- </div>
12
- <div class="form-group col-sm-2" >
13
- <label class="font_normal_body" title="参数名称:安检用户状态">用户状态:</label>
14
- <v-select
15
- class="select select_list"
16
- :value.sync="model.f_user_state"
17
- v-model="model.f_user_state"
18
- :options='$parent.$parent.userStates'
19
- placeholder='请选择'
20
- condition="ui.f_user_state='{}'"
21
- :search="false"
22
- close-on-select
23
- value-single
24
- >
25
- </v-select>
26
- </div>
27
- <div class="form-group col-sm-2" >
28
- <label class="font_normal_body"title="参数名称:用气性质">用气性质:</label>
29
- <v-select
30
- class="select select_list"
31
- :value.sync="model.f_gasproperties"
32
- v-model="model.f_gasproperties"
33
- :options='$parent.$parent.gasproperties'
34
- placeholder='请选择'
35
- condition="uf.f_gasproperties in {}"
36
- :search="false"
37
- :multiple="true"
38
- close-on-select
39
- >
40
- </v-select>
41
- </div>
42
- <div class="form-group col-sm-2" >
43
- <label class="font_normal_body">气表品牌:</label>
44
- <v-select
45
- class="select select_list"
46
- :value.sync="model.metergasbrand"
47
- v-model="model.metergasbrand"
48
- :options='$parent.$parent.meter_gasbrand'
49
- placeholder='气表品牌'
50
- condition="uf.f_gasbrand_id in {}"
51
- :search="false"
52
- :multiple="true"
53
- close-on-select
54
- >
55
- </v-select>
56
- </div>
57
- <div class="form-group col-sm-4" >
58
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
59
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
60
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.createAndSend()">下发</button>
61
- </div>
62
- <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
63
- <div slot="modal-header" class="modal-header">
64
- <h4 class="modal-title">
65
- 用户查询条件
66
- </h4>
67
- </div>
68
- <div slot="modal-body" class="modal-body">
69
- <div class="row">
70
- <div class="form-group col-sm-4" >
71
- <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
72
- <input type="text" class="input_search" v-model="model.f_building"
73
- style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
74
- </div>
75
- <div class="form-group col-sm-4" >
76
- <label class="font_normal_body">单&ensp;元&ensp;号:</label>
77
- <input type="text" class="input_search" v-model="model.f_unit"
78
- style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
79
- </div>
80
- <div class="form-group col-sm-4" >
81
- <label class="font_normal_body">派发情况:</label>
82
- <v-select
83
- class="select select_list"
84
- :value.sync="model.yearCheck"
85
- v-model="model.yearCheck"
86
- :options='$parent.$parent.yearCheckList'
87
- placeholder='请选择'
88
- condition="{}"
89
- :search="false"
90
- close-on-select
91
- value-single
92
- >
93
- </v-select>
94
- </div>
95
- <div class="form-group col-sm-4" >
96
- <label class="font_normal_body">安检状态:</label>
97
- <v-select
98
- class="select select_list"
99
- :value.sync="model.f_last_check_state"
100
- v-model="model.f_last_check_state"
101
- :options='$parent.$parent.entry_status'
102
- placeholder='请选择'
103
- :search="false"
104
- close-on-select
105
- value-single
106
- >
107
- </v-select>
108
- </div>
109
- <div class="form-group col-sm-4" >
110
- <label class="font_normal_body">安检起始:</label>
111
- <datepicker
112
- placeholder='请选择'
113
- style="width:60%;text-align: center"
114
- :disabled-days-of-week="[]"
115
- :format="'yyyy-MM-dd'"
116
- :show-rest-button="reset"
117
- :value.sync="model.f_check_start"
118
- v-model="model.f_check_start">
119
- </datepicker>
120
- </div>
121
- <div class="form-group col-sm-4" >
122
- <label class="font_normal_body">安检截止:</label>
123
- <datepicker
124
- placeholder='请选择'
125
- :disabled-days-of-week="[]"
126
- style="width:60%;text-align: center"
127
- :format="'yyyy-MM-dd'"
128
- :show-rest-button="reset"
129
- :value.sync="model.f_check_end"
130
- v-model="model.f_check_end">
131
- </datepicker>
132
- </div>
133
-
134
- </div>
135
- </div>
136
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
137
- <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
138
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
139
- </div>
140
- </modal>
141
- <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
142
- <div slot="modal-header" class="modal-header">
143
- <h4 class="modal-title">
144
- 导入用户编号
145
- </h4>
146
- </div>
147
- <div slot="modal-body" class="modal-body">
148
- <div class="row">
149
- <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
150
- action="api/af-safecheck/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
151
- <img src="../../assets/Excelformat.png" style="width: 100%"/>
152
- </div>
153
- </div>
154
- <footer slot="modal-footer" class="modal-footer">
155
- </footer>
156
- </modal>
157
- </div>
158
- </div>
159
- </criteria>
160
- <data-grid :model="model" partial='list' class="table_sy">
161
-
162
- <template partial='head'>
163
- <tr>
164
- <th><nobr><input type="checkbox" @dblclick.stop="" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
165
- <th><nobr>用户编号</nobr></th>
166
- <th><nobr>用户名称</nobr></th>
167
- <th><nobr>用户类型</nobr></th>
168
- <th><nobr>小区名称</nobr></th>
169
- <!-- <th><nobr>片区</nobr></th>-->
170
- <th><nobr>抄表册</nobr></th>
171
- <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
172
- <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
173
- <th><nobr>详细地址</nobr></th>
174
- </tr>
175
- </template>
176
- <template partial='body'>
177
- <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>
178
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
179
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
180
- <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
181
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
182
- <!-- <td style="text-align: center"><nobr>{{row.f_slice_area}}</nobr></td>-->
183
- <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
184
- <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
185
- <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
186
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
187
- </template>
188
- </data-grid>
189
- </criteria-paged>
190
- <modal :show.sync="showCreatePlan" v-ref:modal1 :width="'50%'" :backdrop="false">
191
- <div slot="modal-header" class="modal-header">
192
- <h4 class="modal-title">
193
- 新建计划
194
- </h4>
195
- </div>
196
- <div slot="modal-body" class="modal-body">
197
- <div class="row">
198
- <div class="form-group col-sm-4" >
199
- <label class="font_normal_body">计划名称:</label>
200
- <input type="text" class="input_search" v-model="createPlan.f_plan_name"
201
- style="width: 60%" placeholder="请选择" />
202
- </div>
203
- <div class="form-group col-sm-4" >
204
- <label class="font_normal_body">计划年份:</label>
205
- <v-select
206
- class="select select_list"
207
- :value.sync="createPlan.f_plan_year"
208
- v-model="createPlan.f_plan_year"
209
- :search="false"
210
- :options='yearList'
211
- close-on-select
212
- value-single
213
- >
214
- </v-select>
215
- </div>
216
- <div class="form-group col-sm-4" >
217
- <label class="font_normal_body">计划月份:</label>
218
- <v-select
219
- class="select select_list"
220
- :value.sync="createPlan.f_plan_month"
221
- v-model="createPlan.f_plan_month"
222
- :search="false"
223
- :options='monthList'
224
- close-on-select
225
- value-single>
226
- </v-select>
227
- </div>
228
- <div class="form-group col-sm-4" >
229
- <label class="font_normal_body">计划开始:</label>
230
- <datepicker
231
- placeholder='请选择'
232
- style="width:60%"
233
- :disabled-days-of-week="[]"
234
- :format="'yyyy-MM-dd'"
235
- :show-rest-button="reset"
236
- :value.sync="createPlan.f_start_time"
237
- v-model="createPlan.f_start_time">
238
- </datepicker>
239
- </div>
240
- <div class="form-group col-sm-4" >
241
- <label class="font_normal_body">计划结束:</label>
242
- <datepicker
243
- placeholder='请选择'
244
- style="width:60%"
245
- :disabled-days-of-week="[]"
246
- :format="'yyyy-MM-dd'"
247
- :show-rest-button="reset"
248
- :value.sync="createPlan.f_end_time"
249
- v-model="createPlan.f_end_time">
250
- </datepicker>
251
- </div>
252
- </div>
253
- </div>
254
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
255
- <button class="button_search" style="margin-right: 15px" @click="addNewPlan()">创建计划</button>
256
- <button class="button_search" @click="cancelCreatePlan">取消</button>
257
- </div>
258
- </modal>
259
- </div>
260
- </template>
261
-
262
- <script>
263
- import {HttpResetClass, PagedList} from "vue-client";
264
- import * as Util from "../../components/Util";
265
- import Vue from "vue";
266
-
267
- export default {
268
- title: '计划管理',
269
- data() {
270
- return {
271
- createPlan:{
272
- f_safecheck_type:"年度普检",
273
- checker:"",
274
- isShare:"否",
275
- f_usertype:"",
276
- f_issued:'是',
277
- f_end_time:Util.toStandardDateString().replace(new Date().getFullYear().toString(),(new Date().getFullYear()+1).toString()),
278
- f_start_time:Util.toStandardDateString(),
279
- f_plan_month:(new Date().getMonth()+1).toString(),
280
- f_plan_year:new Date().getFullYear().toString(),
281
- f_plan_name:""
282
- },
283
- yearList:[{label:"2020",value:"2020"},{label:"2021",value:"2021"},{label:"2022",value:"2022"},{label:"2023",value:"2023"},{label:"2024",value:"2024"},{label:"2025",value:"2025"},{label:"2026",value:"2026"},{label:"2027",value:"2027"},{label:"2028",value:"2028"},{label:"2029",value:"2029"},{label:"2030",value:"2030"}],
284
- monthList:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"10",value:"10"},{label:"11",value:"11"},{label:"12",value:"12"}],
285
- showCreatePlan:false,
286
- model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 20, {
287
- "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
288
- "f_usertype": "''",
289
- "month": "''",
290
- "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
291
- "SafeCheckCQ": "''",
292
- "startday":"''",
293
- "endday":"''"}),
294
- a:'1',
295
- opt:[{label:"测试",value:"测试"}],
296
- showCondtion:false,
297
- userTypes:[],//用户类型
298
- entry_status:[],
299
- userStates:[],//用户状态
300
- gasproperties:[],//用气性质
301
- meter_gasbrand:[],//气表品牌
302
- hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
303
- yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
304
- checkStateList:[{label:"全部",value:""},{label:"两年内已检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())<=730"},{label:"两年内未检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())>730"},{label:"从未安检",value:"从未安检"}],
305
- hasResidentialArea:[{label:"全部",value:""},{label:"有名称",value:"有名称"},{label:"无名称",value:"无名称"}],
306
- sliceArea:[],
307
- meterbooks:[],
308
- checkBooks:[{label:'sss',value:'1-用户'},{label:'ssssss',value:'1-小区'}],
309
- cbc:[],
310
- areaList:[],
311
- checkAll:false,
312
- checkes:[],
313
- areaen:[],//片区
314
- excelUserCondtion:false,
315
- uploadCodeCondition:''
316
- }
317
- },
318
- props:["userlogin","bookrow","needprops","row","bookrowsdata","addcondata"],
319
- ready(){
320
- console.log("this.bookrow",this.bookrow)
321
- console.log("this.row",this.row)
322
- console.log("this.needprops",this.needprops)
323
- this.createPlan.checker = this.needprops.checker.filter(item=>item.label == this.row.f_checker_name)[0].value
324
- this.createPlan.f_checker_id=this.createPlan.checker.id
325
- this.createPlan.f_checker=this.createPlan.checker.name
326
- this.createPlan.f_usertype = this.row.f_user_type
327
- this.createPlan.f_plan_name = `${this.row.f_check_book_name}${this.createPlan.f_plan_year}年${this.createPlan.f_plan_month}月`
328
- this.$refs.paged.$refs.criteria.model.f_user_state='正常'
329
- this.meter_gasbrand=this.needprops.meter_gasbrand,
330
- this.checkBooks=this.needprops.checkBooks,
331
- this.entry_status=this.needprops.entry_status,
332
- this.userTypes=this.needprops.userTypes,
333
- this.userStates=this.needprops.userStates,
334
- this.gasproperties=this.needprops.gasproperties,
335
- this.areaList=this.needprops.areaList,
336
- this.sliceArea=this.needprops.sliceArea,
337
- this.cbc=this.needprops.cbc,
338
- this.meterbooks=this.needprops.meterbooks
339
- },
340
- methods: {
341
- async addNewPlan(){
342
- this.createPlan.f_plan_type='预约计划'
343
- this.createPlan.f_subcompany=this.userlogin.orgstr
344
- this.createPlan.f_filialeid=this.userlogin.orgid
345
- this.createPlan.f_create_operator=this.userlogin.name
346
- this.createPlan.f_create_time=Util.toStandardTimeString()
347
- this.createPlan.f_check_book_id = this.row.id
348
- console.log(this.createPlan)
349
- const addPlan = {
350
- f_operator:this.userlogin.name,
351
- f_filialeid:this.userlogin.orgid,
352
- f_subscribe_date:'',
353
- condition:this.model.condition,
354
- switchCheckAll:true,
355
- checkAll:this.checkAll,
356
- param:this.checkes,
357
- columnName: "ua.id"
358
- }
359
- new HttpResetClass().load("POST",'/api/af-safecheck/logic/createAndAddPlan',{createPlan:this.createPlan,addPlan}).then(res=>{
360
- if(res.data.code==200){
361
- this.$showMessage("计划下发成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
362
- this.cancelCreatePlan()
363
- }else{
364
- this.$showMessage("计划下发失败!")
365
- }
366
- })
367
- },
368
- cancelCreatePlan(){
369
- this.showCreatePlan = false
370
- },
371
- createAndSend(){
372
- if(this.model.rows.length==0){
373
- Vue.showMessage("未检测到列表中有用户!")
374
- return
375
- }
376
- if(!this.checkAll && this.checkes.length==0){
377
- Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
378
- return
379
- }
380
- this.showCreatePlan = true
381
- },
382
- cancel(){
383
- this.showCondtion=false
384
- this.excelUserCondtion=false
385
- },
386
- //清空用户编号
387
- clearUserInfoId(){
388
- this.uploadCodeCondition=''
389
- Vue.showMessage("已清空用户编号")
390
- },
391
- showUploadCodeCondition(){
392
- this.excelUserCondtion=true
393
- },
394
- selfSearch (args) {
395
- console.log(this.bookrow,"6666")
396
- //tag)
397
- // 判断时间和状态匹配条件
398
- if (!Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )){
399
- if (args.model.f_last_check_state == '未检'){
400
- var lscon = args.model.f_check_start ? ` or ua.f_last_check_date <= '${args.model.f_check_start} 00:00:00'` :''
401
- lscon += lscon ? (args.model.f_check_end ? ` or ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :''): (args.model.f_check_end ? `ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :'')
402
- args.condition +=`and (ua.f_last_check_state is null or ua.f_last_check_state ='' ${lscon} ) `
403
- }else {
404
- var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
405
- lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
406
- args.condition += `and ua.f_last_check_state = '${args.model.f_last_check_state}' ${lscon}`
407
- }
408
-
409
- }else if (Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )) {
410
- var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
411
- lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
412
- args.condition += lscon
413
- }else if (!Util.isEmpty(args.model.f_last_check_state) && Util.isEmpty(args.model.f_check_start) && Util.isEmpty(args.model.f_check_end)){
414
- this.$showMessage("选择安检状态时,需要选择安检时间区间!")
415
- return
416
- }else{
417
- console.log('这块无条件')
418
- }
419
- let condition1=`(ua.f_last_check_date is null or ua.f_last_check_date ='')`
420
- let arge = args.condition.replace('从未安检',condition1)
421
- args.condition = arge
422
- // 上一个界面条件拼接进来
423
- if(this.addcondata){
424
- args.condition += this.addcondata
425
- }
426
- var checkallcond = ''
427
- // 判断小区或者单位是否是多选 全选
428
- if(this.bookrowsdata.checkAll){
429
- if(this.row.f_user_type === '民用'){
430
- checkallcond = ` and area.f_check_book_id = ${this.row.id} `
431
- }else{
432
- checkallcond = ` and tc.f_check_book_id = ${this.row.id} `
433
- }
434
-
435
- if(this.bookrowsdata.bookrows.length > 0){
436
- this.bookrowsdata.bookrows.forEach((item) => {
437
- if(this.row.f_user_type === '民用'){
438
- checkallcond += ` and area.id != ${item}`
439
- }else{
440
- checkallcond += ` and tc.id != ${item}`
441
- }
442
- })
443
- }
444
- }else{
445
- var nums = '('
446
- this.bookrowsdata.bookrows.forEach((item) => {
447
- if(this.bookrowsdata.bookrows[this.bookrowsdata.bookrows.length -1] == item){
448
- nums += item +')'
449
- }else{
450
- nums += item +','
451
- }
452
- })
453
- if(this.row.f_user_type === '民用'){
454
- checkallcond += ` and area.id in ${nums}`
455
- }else{
456
- checkallcond += ` and tc.id in ${nums}`
457
- }
458
- }
459
- args.condition += checkallcond
460
- args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
461
- if (args.model.f_residential_area == "无名称"){
462
- args.condition +=" and (ua.f_residential_area is null or ua.f_residential_area ='')"
463
- }else if (args.model.f_residential_area == "有名称"){
464
- args.condition +=" and (ua.f_residential_area is not null and ua.f_residential_area !='')"
465
- }
466
- if(this.uploadCodeCondition){
467
- args.condition +=` and ${this.uploadCodeCondition}`
468
- }
469
- this.cancel()
470
- this.checkes=[]
471
- this.checkAll=false
472
- this.model.search(args.condition, args.model, args.condValue)
473
- },
474
- showUserCondition(){
475
- this.showCondtion=true
476
- },
477
- setConList(){
478
- this.entry_status=this.$appdata.getParam('安检状态') ? [{
479
- label: '全部',
480
- value: ''
481
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
482
-
483
- this.userTypes=this.$appdata.getParam('用户类型') ? [{
484
- label: '全部',
485
- value: ''
486
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
487
- this.userStates=this.$appdata.getParam('安检用户状态') ? [{
488
- label: '全部',
489
- value: ''
490
- }, ...this.$appdata.getParam('安检用户状态')] : [{label: '全部', value: ''}]
491
- this.gasproperties=this.$appdata.getParam('用气性质') ? [{
492
- label: '全部',
493
- value: ''
494
- }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
495
- // this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
496
- // label: '全部',
497
- // value: ''
498
- // }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
499
- },
500
- select_search(text, type){
501
- //tag
502
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
503
- if (type == 'pqId'){
504
- if(text.length==0){
505
- pcdText=text?` and 1=1`:''
506
- }else {
507
- pcdText =text?`and f_check_book_id in (${text})`:''
508
- }
509
-
510
- }
511
- 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)=>{
512
- //tag)
513
- this.areaList=[]
514
- this.areaList.push({label:"全部",value:""})
515
- res.data.forEach((result)=>{
516
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
517
- //console.log('this.areaList=', JSON.stringify(this.areaList))
518
- })
519
- //tag)
520
- })
521
-
522
-
523
- },
524
- //获取抄表册
525
- async Mreadibook(){
526
- this.cbc=[]
527
- this.sliceArea=[]
528
- let http = new HttpResetClass()
529
- let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
530
- {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
531
- {resolveMsg: null, rejectMsg: '获取失败!!!'})
532
- this.cbc = [{label: '全部', value: ''}]
533
- //tag
534
- //tag)
535
- //tag
536
- this.meterbooks=[]
537
- this.meterbooks=getMeterReadingBooks.data.meterbooks
538
- this.meterbooks.forEach((res) => {
539
- this.cbc.push({label: res.f_book_name, value: res.id})
540
- /*if(res.f_book_slice_area){
541
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
542
- this.sliceArea.push(res.f_book_slice_area)
543
- }
544
- }*/
545
- })
546
-
547
- },
548
- //片区获取
549
- async getSliceArea() {
550
- let http = new HttpResetClass()
551
- let getAllArea = await http.load('POST', '/rs/search', {
552
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
553
- userid: this.userlogin.id
554
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
555
- this.sliceArea = [{label: '全部', value: ''}]
556
- //tag
557
- //tag
558
- //tag
559
- getAllArea.data.forEach((res) => {
560
- if(res.parentid==this.userlogin.orgid){
561
- this.sliceArea.push({label:res.name,value:res.name})
562
- }
563
- })
564
- //tag
565
- },
566
- //片区改变-对应抄表册下拉重新赋值
567
- slice_areaChange(value) {
568
- //tag
569
- if(!value){
570
- this.cbc=[]
571
- this.meterbooks.forEach((res) => {
572
- this.cbc.push({label: res.f_book_name, value: res.id})
573
- })
574
- }else{
575
- this.cbc=[]
576
- this.meterbooks.forEach((res) => {
577
- if(res.f_book_slice_area==value){
578
- this.cbc.push({label: res.f_book_name, value: res.id})
579
- }
580
- })
581
- }
582
- },
583
- isChecked(v) {
584
- // 如果全选,不在的按选中算,否则,在的按选中算
585
- if (this.checkAll) {
586
- return this.checkes.indexOf(v) == -1
587
- } else {
588
- return this.checkes.indexOf(v) != -1
589
- }
590
- },
591
- setCheckAll() {
592
- this.checkAll=this.checkAll?false:true;
593
- // 全选改变后,清空选中数据
594
- this.checkes = []
595
- },
596
- setCheckes(id) {
597
- let index=this.checkes.indexOf(id)
598
- if(index<0){
599
- this.checkes.push(id)
600
- }else{
601
- this.checkes.splice(index,1)
602
- }
603
- },
604
- },
605
- watch: {
606
- 'areaen'(val) {
607
- //console.log('val=', JSON.stringify(val))
608
- this.select_search(val, 'pqId')
609
- }
610
- },
611
- events: {
612
- onFileUpload: function (file, res) {
613
- //tag)
614
- //tag)
615
- let data = {
616
- filepath: res.f_downloadpath
617
- }
618
- new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
619
- resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
620
- rejectMsg: '导入失败'
621
- }).then((res) => {
622
- this.uploadCodeCondition=res.data.condition
623
- this.excelUserCondtion = false
624
- })
625
- },
626
-
627
- }
628
- }
629
- </script>
630
-
631
- <style scoped>
632
- .safe-planfont{
633
- font-family: MicrosoftYaHei;
634
- font-size: 15px;
635
- font-weight: normal;
636
- font-stretch: normal;
637
- letter-spacing: 2px;
638
- color: #333333;
639
- line-height: 25px;
640
- }
641
- .safe-bodyfont{
642
- font-family: MicrosoftYaHei;
643
- font-size: 14px;
644
- font-weight: normal;
645
- font-stretch: normal;
646
- letter-spacing: 0px;
647
- color: #999999;
648
- line-height: 30px;
649
- }
650
- .safe-leftplan{
651
- height:auto;
652
- border-bottom:1px solid #ececec;
653
- padding: 10px 5px
654
- }
655
- .leftplan-center{
656
- border-top:1px solid #ececec;
657
- border-bottom:1px solid #ececec;
658
- }
659
- .safe_p{
660
- white-space: nowrap;
661
- overflow: hidden;
662
- text-overflow: ellipsis;
663
- }
664
- .safe-div-p{
665
- color: #4792de;
666
- text-align: end;
667
- padding: 8px 15px;
668
- }
669
- </style>
670
- <style lang="less">
671
- .upuserinfo_sel ul{
672
- width: 150% !important;
673
- }
674
- </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
+ <div class="form-group col-sm-2" >
8
+ <label class="font_normal_body">用户信息</label>
9
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
10
+ style="width: 60%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
11
+ </div>
12
+ <div class="form-group col-sm-2" >
13
+ <label class="font_normal_body" title="参数名称:安检用户状态">用户状态:</label>
14
+ <v-select
15
+ class="select select_list"
16
+ :value.sync="model.f_user_state"
17
+ v-model="model.f_user_state"
18
+ :options='$parent.$parent.userStates'
19
+ placeholder='请选择'
20
+ condition="ui.f_user_state='{}'"
21
+ :search="false"
22
+ close-on-select
23
+ value-single
24
+ >
25
+ </v-select>
26
+ </div>
27
+ <div class="form-group col-sm-2" >
28
+ <label class="font_normal_body"title="参数名称:用气性质">用气性质:</label>
29
+ <v-select
30
+ class="select select_list"
31
+ :value.sync="model.f_gasproperties"
32
+ v-model="model.f_gasproperties"
33
+ :options='$parent.$parent.gasproperties'
34
+ placeholder='请选择'
35
+ condition="uf.f_gasproperties in {}"
36
+ :search="false"
37
+ :multiple="true"
38
+ close-on-select
39
+ >
40
+ </v-select>
41
+ </div>
42
+ <div class="form-group col-sm-2" >
43
+ <label class="font_normal_body">气表品牌:</label>
44
+ <v-select
45
+ class="select select_list"
46
+ :value.sync="model.metergasbrand"
47
+ v-model="model.metergasbrand"
48
+ :options='$parent.$parent.meter_gasbrand'
49
+ placeholder='气表品牌'
50
+ condition="uf.f_gasbrand_id in {}"
51
+ :search="false"
52
+ :multiple="true"
53
+ close-on-select
54
+ >
55
+ </v-select>
56
+ </div>
57
+ <div class="form-group col-sm-4" >
58
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
59
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
60
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.createAndSend()">下发</button>
61
+ </div>
62
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
63
+ <div slot="modal-header" class="modal-header">
64
+ <h4 class="modal-title">
65
+ 用户查询条件
66
+ </h4>
67
+ </div>
68
+ <div slot="modal-body" class="modal-body">
69
+ <div class="row">
70
+ <div class="form-group col-sm-4" >
71
+ <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
72
+ <input type="text" class="input_search" v-model="model.f_building"
73
+ style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
74
+ </div>
75
+ <div class="form-group col-sm-4" >
76
+ <label class="font_normal_body">单&ensp;元&ensp;号:</label>
77
+ <input type="text" class="input_search" v-model="model.f_unit"
78
+ style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
79
+ </div>
80
+ <div class="form-group col-sm-4" >
81
+ <label class="font_normal_body">派发情况:</label>
82
+ <v-select
83
+ class="select select_list"
84
+ :value.sync="model.yearCheck"
85
+ v-model="model.yearCheck"
86
+ :options='$parent.$parent.yearCheckList'
87
+ placeholder='请选择'
88
+ condition="{}"
89
+ :search="false"
90
+ close-on-select
91
+ value-single
92
+ >
93
+ </v-select>
94
+ </div>
95
+ <div class="form-group col-sm-4" >
96
+ <label class="font_normal_body">安检状态:</label>
97
+ <v-select
98
+ class="select select_list"
99
+ :value.sync="model.f_last_check_state"
100
+ v-model="model.f_last_check_state"
101
+ :options='$parent.$parent.entry_status'
102
+ placeholder='请选择'
103
+ :search="false"
104
+ close-on-select
105
+ value-single
106
+ >
107
+ </v-select>
108
+ </div>
109
+ <div class="form-group col-sm-4" >
110
+ <label class="font_normal_body">安检起始:</label>
111
+ <datepicker
112
+ placeholder='请选择'
113
+ style="width:60%;text-align: center"
114
+ :disabled-days-of-week="[]"
115
+ :format="'yyyy-MM-dd'"
116
+ :show-rest-button="reset"
117
+ :value.sync="model.f_check_start"
118
+ v-model="model.f_check_start">
119
+ </datepicker>
120
+ </div>
121
+ <div class="form-group col-sm-4" >
122
+ <label class="font_normal_body">安检截止:</label>
123
+ <datepicker
124
+ placeholder='请选择'
125
+ :disabled-days-of-week="[]"
126
+ style="width:60%;text-align: center"
127
+ :format="'yyyy-MM-dd'"
128
+ :show-rest-button="reset"
129
+ :value.sync="model.f_check_end"
130
+ v-model="model.f_check_end">
131
+ </datepicker>
132
+ </div>
133
+
134
+ </div>
135
+ </div>
136
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
137
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
138
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
139
+ </div>
140
+ </modal>
141
+ <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
142
+ <div slot="modal-header" class="modal-header">
143
+ <h4 class="modal-title">
144
+ 导入用户编号
145
+ </h4>
146
+ </div>
147
+ <div slot="modal-body" class="modal-body">
148
+ <div class="row">
149
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
150
+ action="api/af-safecheck/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
151
+ <img src="../../assets/Excelformat.png" style="width: 100%"/>
152
+ </div>
153
+ </div>
154
+ <footer slot="modal-footer" class="modal-footer">
155
+ </footer>
156
+ </modal>
157
+ </div>
158
+ </div>
159
+ </criteria>
160
+ <data-grid :model="model" partial='list' class="table_sy">
161
+
162
+ <template partial='head'>
163
+ <tr>
164
+ <th><nobr><input type="checkbox" @dblclick.stop="" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
165
+ <th><nobr>用户编号</nobr></th>
166
+ <th><nobr>用户名称</nobr></th>
167
+ <th><nobr>用户类型</nobr></th>
168
+ <th><nobr>小区名称</nobr></th>
169
+ <!-- <th><nobr>片区</nobr></th>-->
170
+ <th><nobr>抄表册</nobr></th>
171
+ <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
172
+ <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
173
+ <th><nobr>详细地址</nobr></th>
174
+ </tr>
175
+ </template>
176
+ <template partial='body'>
177
+ <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>
178
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
179
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
180
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
181
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
182
+ <!-- <td style="text-align: center"><nobr>{{row.f_slice_area}}</nobr></td>-->
183
+ <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
184
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
185
+ <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
186
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
187
+ </template>
188
+ </data-grid>
189
+ </criteria-paged>
190
+ <modal :show.sync="showCreatePlan" v-ref:modal1 :width="'50%'" :backdrop="false">
191
+ <div slot="modal-header" class="modal-header">
192
+ <h4 class="modal-title">
193
+ 新建计划
194
+ </h4>
195
+ </div>
196
+ <div slot="modal-body" class="modal-body">
197
+ <div class="row">
198
+ <div class="form-group col-sm-4" >
199
+ <label class="font_normal_body">计划名称:</label>
200
+ <input type="text" class="input_search" v-model="createPlan.f_plan_name"
201
+ style="width: 60%" placeholder="请选择" />
202
+ </div>
203
+ <div class="form-group col-sm-4" >
204
+ <label class="font_normal_body">计划年份:</label>
205
+ <v-select
206
+ class="select select_list"
207
+ :value.sync="createPlan.f_plan_year"
208
+ v-model="createPlan.f_plan_year"
209
+ :search="false"
210
+ :options='yearList'
211
+ close-on-select
212
+ value-single
213
+ >
214
+ </v-select>
215
+ </div>
216
+ <div class="form-group col-sm-4" >
217
+ <label class="font_normal_body">计划月份:</label>
218
+ <v-select
219
+ class="select select_list"
220
+ :value.sync="createPlan.f_plan_month"
221
+ v-model="createPlan.f_plan_month"
222
+ :search="false"
223
+ :options='monthList'
224
+ close-on-select
225
+ value-single>
226
+ </v-select>
227
+ </div>
228
+ <div class="form-group col-sm-4" >
229
+ <label class="font_normal_body">计划开始:</label>
230
+ <datepicker
231
+ placeholder='请选择'
232
+ style="width:60%"
233
+ :disabled-days-of-week="[]"
234
+ :format="'yyyy-MM-dd'"
235
+ :show-rest-button="reset"
236
+ :value.sync="createPlan.f_start_time"
237
+ v-model="createPlan.f_start_time">
238
+ </datepicker>
239
+ </div>
240
+ <div class="form-group col-sm-4" >
241
+ <label class="font_normal_body">计划结束:</label>
242
+ <datepicker
243
+ placeholder='请选择'
244
+ style="width:60%"
245
+ :disabled-days-of-week="[]"
246
+ :format="'yyyy-MM-dd'"
247
+ :show-rest-button="reset"
248
+ :value.sync="createPlan.f_end_time"
249
+ v-model="createPlan.f_end_time">
250
+ </datepicker>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
255
+ <button class="button_search" style="margin-right: 15px" @click="addNewPlan()">创建计划</button>
256
+ <button class="button_search" @click="cancelCreatePlan">取消</button>
257
+ </div>
258
+ </modal>
259
+ </div>
260
+ </template>
261
+
262
+ <script>
263
+ import {HttpResetClass, PagedList} from "vue-client";
264
+ import * as Util from "../../components/Util";
265
+ import Vue from "vue";
266
+
267
+ export default {
268
+ title: '计划管理',
269
+ data() {
270
+ return {
271
+ createPlan:{
272
+ f_safecheck_type:"年度普检",
273
+ checker:"",
274
+ isShare:"否",
275
+ f_usertype:"",
276
+ f_issued:'是',
277
+ f_end_time:Util.toStandardDateString().replace(new Date().getFullYear().toString(),(new Date().getFullYear()+1).toString()),
278
+ f_start_time:Util.toStandardDateString(),
279
+ f_plan_month:(new Date().getMonth()+1).toString(),
280
+ f_plan_year:new Date().getFullYear().toString(),
281
+ f_plan_name:""
282
+ },
283
+ yearList:[{label:"2020",value:"2020"},{label:"2021",value:"2021"},{label:"2022",value:"2022"},{label:"2023",value:"2023"},{label:"2024",value:"2024"},{label:"2025",value:"2025"},{label:"2026",value:"2026"},{label:"2027",value:"2027"},{label:"2028",value:"2028"},{label:"2029",value:"2029"},{label:"2030",value:"2030"}],
284
+ monthList:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"10",value:"10"},{label:"11",value:"11"},{label:"12",value:"12"}],
285
+ showCreatePlan:false,
286
+ model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 20, {
287
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
288
+ "f_usertype": "''",
289
+ "month": "''",
290
+ "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
291
+ "SafeCheckCQ": "''",
292
+ "startday":"''",
293
+ "endday":"''"}),
294
+ a:'1',
295
+ opt:[{label:"测试",value:"测试"}],
296
+ showCondtion:false,
297
+ userTypes:[],//用户类型
298
+ entry_status:[],
299
+ userStates:[],//用户状态
300
+ gasproperties:[],//用气性质
301
+ meter_gasbrand:[],//气表品牌
302
+ hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
303
+ yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
304
+ checkStateList:[{label:"全部",value:""},{label:"两年内已检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())<=730"},{label:"两年内未检",value:"DATEDIFF(day,isnull(ui.f_last_check_date,'2010-01-01'),GETDATE())>730"},{label:"从未安检",value:"从未安检"}],
305
+ hasResidentialArea:[{label:"全部",value:""},{label:"有名称",value:"有名称"},{label:"无名称",value:"无名称"}],
306
+ sliceArea:[],
307
+ meterbooks:[],
308
+ checkBooks:[{label:'sss',value:'1-用户'},{label:'ssssss',value:'1-小区'}],
309
+ cbc:[],
310
+ areaList:[],
311
+ checkAll:false,
312
+ checkes:[],
313
+ areaen:[],//片区
314
+ excelUserCondtion:false,
315
+ uploadCodeCondition:''
316
+ }
317
+ },
318
+ props:["userlogin","bookrow","needprops","row","bookrowsdata","addcondata"],
319
+ ready(){
320
+ console.log("this.bookrow",this.bookrow)
321
+ console.log("this.row",this.row)
322
+ console.log("this.needprops",this.needprops)
323
+ this.createPlan.checker = this.needprops.checker.filter(item=>item.label == this.row.f_checker_name)[0].value
324
+ this.createPlan.f_checker_id=this.createPlan.checker.id
325
+ this.createPlan.f_checker=this.createPlan.checker.name
326
+ this.createPlan.f_usertype = this.row.f_user_type
327
+ this.createPlan.f_plan_name = `${this.row.f_check_book_name}${this.createPlan.f_plan_year}年${this.createPlan.f_plan_month}月`
328
+ this.$refs.paged.$refs.criteria.model.f_user_state='正常'
329
+ this.meter_gasbrand=this.needprops.meter_gasbrand,
330
+ this.checkBooks=this.needprops.checkBooks,
331
+ this.entry_status=this.needprops.entry_status,
332
+ this.userTypes=this.needprops.userTypes,
333
+ this.userStates=this.needprops.userStates,
334
+ this.gasproperties=this.needprops.gasproperties,
335
+ this.areaList=this.needprops.areaList,
336
+ this.sliceArea=this.needprops.sliceArea,
337
+ this.cbc=this.needprops.cbc,
338
+ this.meterbooks=this.needprops.meterbooks
339
+ },
340
+ methods: {
341
+ async addNewPlan(){
342
+ this.createPlan.f_plan_type='预约计划'
343
+ this.createPlan.f_subcompany=this.userlogin.orgstr
344
+ this.createPlan.f_filialeid=this.userlogin.orgid
345
+ this.createPlan.f_create_operator=this.userlogin.name
346
+ this.createPlan.f_create_time=Util.toStandardTimeString()
347
+ this.createPlan.f_check_book_id = this.row.id
348
+ console.log(this.createPlan)
349
+ const addPlan = {
350
+ f_operator:this.userlogin.name,
351
+ f_filialeid:this.userlogin.orgid,
352
+ f_subscribe_date:'',
353
+ condition:this.model.condition,
354
+ switchCheckAll:true,
355
+ checkAll:this.checkAll,
356
+ param:this.checkes,
357
+ columnName: "ua.id"
358
+ }
359
+ new HttpResetClass().load("POST",'/api/af-safecheck/logic/createAndAddPlan',{createPlan:this.createPlan,addPlan}).then(res=>{
360
+ if(res.data.code==200){
361
+ this.$showMessage("计划下发成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
362
+ this.cancelCreatePlan()
363
+ }else{
364
+ this.$showMessage("计划下发失败!")
365
+ }
366
+ })
367
+ },
368
+ cancelCreatePlan(){
369
+ this.showCreatePlan = false
370
+ },
371
+ createAndSend(){
372
+ if(this.model.rows.length==0){
373
+ Vue.showMessage("未检测到列表中有用户!")
374
+ return
375
+ }
376
+ if(!this.checkAll && this.checkes.length==0){
377
+ Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
378
+ return
379
+ }
380
+ this.showCreatePlan = true
381
+ },
382
+ cancel(){
383
+ this.showCondtion=false
384
+ this.excelUserCondtion=false
385
+ },
386
+ //清空用户编号
387
+ clearUserInfoId(){
388
+ this.uploadCodeCondition=''
389
+ Vue.showMessage("已清空用户编号")
390
+ },
391
+ showUploadCodeCondition(){
392
+ this.excelUserCondtion=true
393
+ },
394
+ selfSearch (args) {
395
+ console.log(this.bookrow,"6666")
396
+ //tag)
397
+ // 判断时间和状态匹配条件
398
+ if (!Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )){
399
+ if (args.model.f_last_check_state == '未检'){
400
+ var lscon = args.model.f_check_start ? ` or ua.f_last_check_date <= '${args.model.f_check_start} 00:00:00'` :''
401
+ lscon += lscon ? (args.model.f_check_end ? ` or ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :''): (args.model.f_check_end ? `ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :'')
402
+ args.condition +=`and (ua.f_last_check_state is null or ua.f_last_check_state ='' ${lscon} ) `
403
+ }else {
404
+ var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
405
+ lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
406
+ args.condition += `and ua.f_last_check_state = '${args.model.f_last_check_state}' ${lscon}`
407
+ }
408
+
409
+ }else if (Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )) {
410
+ var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
411
+ lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
412
+ args.condition += lscon
413
+ }else if (!Util.isEmpty(args.model.f_last_check_state) && Util.isEmpty(args.model.f_check_start) && Util.isEmpty(args.model.f_check_end)){
414
+ this.$showMessage("选择安检状态时,需要选择安检时间区间!")
415
+ return
416
+ }else{
417
+ console.log('这块无条件')
418
+ }
419
+ let condition1=`(ua.f_last_check_date is null or ua.f_last_check_date ='')`
420
+ let arge = args.condition.replace('从未安检',condition1)
421
+ args.condition = arge
422
+ // 上一个界面条件拼接进来
423
+ if(this.addcondata){
424
+ args.condition += this.addcondata
425
+ }
426
+ var checkallcond = ''
427
+ // 判断小区或者单位是否是多选 全选
428
+ if(this.bookrowsdata.checkAll){
429
+ if(this.row.f_user_type === '民用'){
430
+ checkallcond = ` and area.f_check_book_id = ${this.row.id} `
431
+ }else{
432
+ checkallcond = ` and tc.f_check_book_id = ${this.row.id} `
433
+ }
434
+
435
+ if(this.bookrowsdata.bookrows.length > 0){
436
+ this.bookrowsdata.bookrows.forEach((item) => {
437
+ if(this.row.f_user_type === '民用'){
438
+ checkallcond += ` and area.id != ${item}`
439
+ }else{
440
+ checkallcond += ` and tc.id != ${item}`
441
+ }
442
+ })
443
+ }
444
+ }else{
445
+ var nums = '('
446
+ this.bookrowsdata.bookrows.forEach((item) => {
447
+ if(this.bookrowsdata.bookrows[this.bookrowsdata.bookrows.length -1] == item){
448
+ nums += item +')'
449
+ }else{
450
+ nums += item +','
451
+ }
452
+ })
453
+ if(this.row.f_user_type === '民用'){
454
+ checkallcond += ` and area.id in ${nums}`
455
+ }else{
456
+ checkallcond += ` and tc.id in ${nums}`
457
+ }
458
+ }
459
+ args.condition += checkallcond
460
+ args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
461
+ if (args.model.f_residential_area == "无名称"){
462
+ args.condition +=" and (ua.f_residential_area is null or ua.f_residential_area ='')"
463
+ }else if (args.model.f_residential_area == "有名称"){
464
+ args.condition +=" and (ua.f_residential_area is not null and ua.f_residential_area !='')"
465
+ }
466
+ if(this.uploadCodeCondition){
467
+ args.condition +=` and ${this.uploadCodeCondition}`
468
+ }
469
+ this.cancel()
470
+ this.checkes=[]
471
+ this.checkAll=false
472
+ this.model.search(args.condition, args.model, args.condValue)
473
+ },
474
+ showUserCondition(){
475
+ this.showCondtion=true
476
+ },
477
+ setConList(){
478
+ this.entry_status=this.$appdata.getParam('安检状态') ? [{
479
+ label: '全部',
480
+ value: ''
481
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
482
+
483
+ this.userTypes=this.$appdata.getParam('用户类型') ? [{
484
+ label: '全部',
485
+ value: ''
486
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
487
+ this.userStates=this.$appdata.getParam('安检用户状态') ? [{
488
+ label: '全部',
489
+ value: ''
490
+ }, ...this.$appdata.getParam('安检用户状态')] : [{label: '全部', value: ''}]
491
+ this.gasproperties=this.$appdata.getParam('用气性质') ? [{
492
+ label: '全部',
493
+ value: ''
494
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
495
+ // this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
496
+ // label: '全部',
497
+ // value: ''
498
+ // }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
499
+ },
500
+ select_search(text, type){
501
+ //tag
502
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
503
+ if (type == 'pqId'){
504
+ if(text.length==0){
505
+ pcdText=text?` and 1=1`:''
506
+ }else {
507
+ pcdText =text?`and f_check_book_id in (${text})`:''
508
+ }
509
+
510
+ }
511
+ 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)=>{
512
+ //tag)
513
+ this.areaList=[]
514
+ this.areaList.push({label:"全部",value:""})
515
+ res.data.forEach((result)=>{
516
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
517
+ //console.log('this.areaList=', JSON.stringify(this.areaList))
518
+ })
519
+ //tag)
520
+ })
521
+
522
+
523
+ },
524
+ //获取抄表册
525
+ async Mreadibook(){
526
+ this.cbc=[]
527
+ this.sliceArea=[]
528
+ let http = new HttpResetClass()
529
+ let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
530
+ {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
531
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
532
+ this.cbc = [{label: '全部', value: ''}]
533
+ //tag
534
+ //tag)
535
+ //tag
536
+ this.meterbooks=[]
537
+ this.meterbooks=getMeterReadingBooks.data.meterbooks
538
+ this.meterbooks.forEach((res) => {
539
+ this.cbc.push({label: res.f_book_name, value: res.id})
540
+ /*if(res.f_book_slice_area){
541
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
542
+ this.sliceArea.push(res.f_book_slice_area)
543
+ }
544
+ }*/
545
+ })
546
+
547
+ },
548
+ //片区获取
549
+ async getSliceArea() {
550
+ let http = new HttpResetClass()
551
+ let getAllArea = await http.load('POST', '/rs/search', {
552
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
553
+ userid: this.userlogin.id
554
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
555
+ this.sliceArea = [{label: '全部', value: ''}]
556
+ //tag
557
+ //tag
558
+ //tag
559
+ getAllArea.data.forEach((res) => {
560
+ if(res.parentid==this.userlogin.orgid){
561
+ this.sliceArea.push({label:res.name,value:res.name})
562
+ }
563
+ })
564
+ //tag
565
+ },
566
+ //片区改变-对应抄表册下拉重新赋值
567
+ slice_areaChange(value) {
568
+ //tag
569
+ if(!value){
570
+ this.cbc=[]
571
+ this.meterbooks.forEach((res) => {
572
+ this.cbc.push({label: res.f_book_name, value: res.id})
573
+ })
574
+ }else{
575
+ this.cbc=[]
576
+ this.meterbooks.forEach((res) => {
577
+ if(res.f_book_slice_area==value){
578
+ this.cbc.push({label: res.f_book_name, value: res.id})
579
+ }
580
+ })
581
+ }
582
+ },
583
+ isChecked(v) {
584
+ // 如果全选,不在的按选中算,否则,在的按选中算
585
+ if (this.checkAll) {
586
+ return this.checkes.indexOf(v) == -1
587
+ } else {
588
+ return this.checkes.indexOf(v) != -1
589
+ }
590
+ },
591
+ setCheckAll() {
592
+ this.checkAll=this.checkAll?false:true;
593
+ // 全选改变后,清空选中数据
594
+ this.checkes = []
595
+ },
596
+ setCheckes(id) {
597
+ let index=this.checkes.indexOf(id)
598
+ if(index<0){
599
+ this.checkes.push(id)
600
+ }else{
601
+ this.checkes.splice(index,1)
602
+ }
603
+ },
604
+ },
605
+ watch: {
606
+ 'areaen'(val) {
607
+ //console.log('val=', JSON.stringify(val))
608
+ this.select_search(val, 'pqId')
609
+ }
610
+ },
611
+ events: {
612
+ onFileUpload: function (file, res) {
613
+ //tag)
614
+ //tag)
615
+ let data = {
616
+ filepath: res.f_downloadpath
617
+ }
618
+ new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
619
+ resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
620
+ rejectMsg: '导入失败'
621
+ }).then((res) => {
622
+ this.uploadCodeCondition=res.data.condition
623
+ this.excelUserCondtion = false
624
+ })
625
+ },
626
+
627
+ }
628
+ }
629
+ </script>
630
+
631
+ <style scoped>
632
+ .safe-planfont{
633
+ font-family: MicrosoftYaHei;
634
+ font-size: 15px;
635
+ font-weight: normal;
636
+ font-stretch: normal;
637
+ letter-spacing: 2px;
638
+ color: #333333;
639
+ line-height: 25px;
640
+ }
641
+ .safe-bodyfont{
642
+ font-family: MicrosoftYaHei;
643
+ font-size: 14px;
644
+ font-weight: normal;
645
+ font-stretch: normal;
646
+ letter-spacing: 0px;
647
+ color: #999999;
648
+ line-height: 30px;
649
+ }
650
+ .safe-leftplan{
651
+ height:auto;
652
+ border-bottom:1px solid #ececec;
653
+ padding: 10px 5px
654
+ }
655
+ .leftplan-center{
656
+ border-top:1px solid #ececec;
657
+ border-bottom:1px solid #ececec;
658
+ }
659
+ .safe_p{
660
+ white-space: nowrap;
661
+ overflow: hidden;
662
+ text-overflow: ellipsis;
663
+ }
664
+ .safe-div-p{
665
+ color: #4792de;
666
+ text-align: end;
667
+ padding: 8px 15px;
668
+ }
669
+ </style>
670
+ <style lang="less">
671
+ .upuserinfo_sel ul{
672
+ width: 150% !important;
673
+ }
674
+ </style>