safecheck-client 4.0.0-79 → 4.0.0-80

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 (220) 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/android/AddPlanItem.vue +447 -447
  6. package/src/components/android/AddPlanItemYy.vue +451 -451
  7. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  8. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  9. package/src/components/android/Devices.vue +327 -327
  10. package/src/components/android/Devicesm.vue +327 -327
  11. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  12. package/src/components/android/PhoneRecordInfo.vue +113 -113
  13. package/src/components/android/PhoneSellInfo.vue +113 -113
  14. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  15. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  16. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  17. package/src/components/android/SafePlanItem.vue +509 -509
  18. package/src/components/android/examples/SafeListExamples.vue +296 -296
  19. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  20. package/src/components/android/recheck/Recheck.vue +402 -402
  21. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  22. package/src/components/checkplan/checkmsg.vue +459 -459
  23. package/src/components/defect/DefectList.vue +507 -507
  24. package/src/components/defect/DefectListWeixiu.vue +484 -484
  25. package/src/components/filialCircle/CircleList.vue +139 -139
  26. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  27. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  28. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  29. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  30. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  31. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  32. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  33. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  34. package/src/components/pc/AnnouncementPC.vue +524 -524
  35. package/src/components/pc/DefectList.vue +742 -742
  36. package/src/components/pc/DeviceChange.vue +1068 -1068
  37. package/src/components/pc/SafeVisitInfo.vue +261 -261
  38. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  39. package/src/components/report/HiddenSituation.vue +165 -165
  40. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  41. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  42. package/src/components/rongcheng/DefectList.vue +560 -560
  43. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  44. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  45. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  46. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  47. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  48. package/src/components/shaoguan/DefectList.vue +473 -473
  49. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  50. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  51. package/src/components/userfile/SecurityAudit.vue +243 -243
  52. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  53. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  54. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  55. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  56. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  57. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  58. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  59. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  60. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  61. package/src/filiale/bayan/android/Edit.vue +132 -132
  62. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  63. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  64. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  65. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  66. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  67. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  68. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  69. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  70. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  71. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  72. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  73. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  74. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  75. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  76. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  77. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  78. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  79. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  80. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  81. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  82. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  83. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  84. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  85. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  86. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  87. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  88. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  89. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  90. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  91. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  92. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  93. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  94. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  95. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  96. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  97. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  98. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  99. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  100. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  101. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  102. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  103. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  104. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  105. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  106. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  107. package/src/filiale/meihekou/android/CurrentCreate.vue +1090 -1087
  108. package/src/filiale/meihekou/android/MeterReading.vue +106 -106
  109. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2407 -2400
  110. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  111. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  112. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  113. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  114. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  115. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  116. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  117. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  118. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  119. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  120. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  121. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  122. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  123. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  124. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  125. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  126. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  127. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  128. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  129. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  130. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  131. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  132. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  133. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  134. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  135. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  136. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  137. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  138. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  139. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  140. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  141. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  142. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  143. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  144. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  145. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  146. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  147. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  148. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  149. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  150. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  151. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  152. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  153. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  154. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  155. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  156. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  157. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  158. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  159. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  160. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  161. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  162. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  163. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  164. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  165. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  166. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  167. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  168. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  169. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  170. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  171. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  172. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  173. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  174. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  175. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  176. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  177. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  178. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  179. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  180. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  181. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  182. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  183. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  184. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  185. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  186. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  187. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  188. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  189. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  190. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  191. package/src/filiale/xiangyuanzhongai/android.js +13 -13
  192. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  193. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  194. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  195. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  196. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  197. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  198. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  199. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  200. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  201. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  202. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  203. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  204. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  205. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  206. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  207. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  208. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  209. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  210. package/src/filiale/yunchengminsheng/android.js +15 -15
  211. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  212. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  213. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  214. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  215. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  216. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  217. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  218. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  219. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  220. package/src/main.js +33 -32
@@ -1,1087 +1,1090 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
- .app-row {
8
- background-color: white;
9
- padding: 10px 10px 0 10px;
10
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
- }
12
- .search_input {
13
- border: 0;
14
- outline: none;
15
- }
16
- .font{
17
- font: 15px PingFang-SC-Medium;
18
- color: #666666;
19
- }
20
- .input-font{
21
- font: 15px PingFang-SC-Medium;
22
- color: #333333;
23
- }
24
- .btn-font{
25
- font:600 16px PingFang-SC-Bold;
26
- color: #499EDF;
27
- }
28
- .btn-color{
29
- background-color: #FFFFFF;
30
- border-radius: 10px ;
31
- border: 1px solid #499EDF;
32
- }
33
- .app-text {
34
- font-size: 12px;
35
- }
36
- .panel-self{
37
- border-radius: 10px;
38
- border:1px solid #499EDF;
39
- background-color: #F8F8F8;
40
- }
41
- .yybtn-color{
42
- background-color:#499edf;
43
- border-radius: 4px ;
44
- border: 1px solid #499EDF;
45
- color: #FFFFFF;
46
- font: 14px PingFang-SC-Bold;
47
- }
48
- .qxbtn-color{
49
- background-color: #FFFFFF;
50
- border-radius: 4px ;
51
- color: #499edf;
52
- font: 14px PingFang-SC-Bold;
53
- border: 1px solid #499EDF;
54
- }
55
-
56
- .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
57
- .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
58
- .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
59
- .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
60
- </style>
61
- <style>
62
- .clear-select-with .dropdown-menu{
63
- left: 0px !important;
64
- width: 200% !important;
65
- }
66
- </style>
67
- <template>
68
- <div style="height: auto;width: 100%">
69
- <criteria-paged :model="model" v-ref:paged>
70
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
71
- <div partial>
72
- <form>
73
- <div class="row app-row">
74
- <!--小区名称-->
75
- <v-select :value.sync="model.f_residential_area"
76
- class="input-font clear-select-with"
77
- :options='$parent.$parent.residentialAreaOptions'
78
- placeholder='小区名称'
79
- :width="'32.5%'"
80
- v-model="model.f_residential_area"
81
- condition="ti.f_residential_area = '{}'"
82
- @change="$parent.$parent.getbuilds"
83
- :value-single = true
84
- close-on-select clear-button>
85
- </v-select>
86
- <!--楼栋-->
87
- <v-select :value.sync="model.f_building"
88
- class="input-font"
89
- :options='$parent.$parent.buildOptions'
90
- placeholder='楼栋'
91
- :width="'32.5%'"
92
- v-model="model.f_building"
93
- condition="ti.f_building = '{}'"
94
- @change="$parent.$parent.getUnits"
95
- :value-single = true
96
- close-on-select clear-button>
97
- </v-select>
98
- <!--单元-->
99
- <v-select :value.sync="model.f_unit"
100
- class="input-font"
101
- :options='$parent.$parent.unitOptions'
102
- placeholder='单元'
103
- :width="'32.5%'"
104
- :value-single = true
105
- v-model="model.f_unit"
106
- condition="ti.f_unit = '{}'"
107
- close-on-select clear-button>
108
- </v-select>
109
- </div>
110
- <div class="row app-row">
111
- <div class="col-xs-4">
112
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
113
- <label for="f_userinfo_code" class="font text-left">用户编号:</label>
114
- </div>
115
- <div class="col-xs-8" >
116
- <input id="f_userinfo_code" class="search_input input-font"
117
- v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'" />
118
- </div>
119
- </div>
120
- <div class="row app-row">
121
- <div class="col-xs-4">
122
- <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
123
- <label class="font text-left">用户姓名:</label>
124
- </div>
125
- <div class="col-xs-8" >
126
- <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
127
- </div>
128
- </div>
129
-
130
- <div class="row app-row">
131
- <div class="col-xs-4">
132
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
133
- <label class="font text-left">用户证号:</label>
134
- </div>
135
- <div class="col-xs-8" >
136
- <input class="search_input input-font" v-model=model.f_enter_number condition="f_enter_number like '%{}%'" />
137
- </div>
138
- </div>
139
-
140
- <div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
141
- <div class="col-xs-4">
142
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
143
- <label for="f_plan_name" class="font text-left">计划名称:</label>
144
- </div>
145
- <v-select
146
- id="f_plan_name"
147
- :value.sync="model.f_plan_name"
148
- class="input-font"
149
- :options='$parent.$parent.planNameOptions'
150
- placeholder='计划名称'
151
- :width="'60%'"
152
- v-model="model.f_plan_name"
153
- condition="f_plan_name like '%{}%'"
154
- close-on-select clear-button>
155
- </v-select>
156
- </div>
157
-
158
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
159
- <div class="col-xs-4">
160
- <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
161
- <label for="f_state" class="font text-left">是否已检:</label>
162
- </div>
163
- <v-select id="f_state"
164
- :value.sync="model.f_state"
165
- class="input-font"
166
- :options='$parent.$parent.check_states'
167
- placeholder='是否已检'
168
- :width="'60%'"
169
- v-model="model.f_state"
170
- condition="f_state='{}'"
171
- close-on-select clear-button>
172
- </v-select>
173
- </div>
174
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
175
- <div class="col-xs-4">
176
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
177
- <label class="font text-left">表&emsp;&emsp;号:</label>
178
- </div>
179
- <div class="col-xs-5" >
180
- <input class="search_input input-font"
181
- v-model=model.f_meter_no condition="f_meter_no like '%{}%'" />
182
- </div>
183
- <div class="col-xs-3">
184
- <button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
185
- </div>
186
- </div>
187
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
188
- <div class="col-xs-4">
189
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
190
- <label class="font text-left">客户电话:</label>
191
- </div>
192
- <div class="col-xs-8" >
193
- <input class="search_input input-font"
194
- v-model=model.f_user_phone condition="f_user_phone like '%{}%'" />
195
- </div>
196
- </div>
197
-
198
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
199
- <div class="col-xs-4">
200
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
201
- <label class="font text-left">用户地址:</label>
202
- </div>
203
- <div class="col-xs-8" >
204
- <input class="search_input input-font"
205
- v-model=model.f_keyword condition="f_address like '%{}%'" />
206
- </div>
207
- </div>
208
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
209
- <div class="col-xs-4">
210
- <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
211
- <label for="f_user_type" class="font text-left">用户类型:</label>
212
- </div>
213
- <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
214
- :width="'60%'"
215
- :options='$parent.$parent.user_types' placeholder='请选择用户类型'
216
- v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
217
- </div>
218
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
219
- <div class="col-xs-4">
220
- <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
221
- <label for="f_user_type" class="font text-left">安检状态:</label>
222
- </div>
223
- <v-select id="f_user_type" :value.sync="model.f_last_state" class="input-font"
224
- :width="'60%'"
225
- :options='$parent.$parent.last_check_states' placeholder='请选择用户类型'
226
- v-model="model.f_last_state"
227
- close-on-select clear-button></v-select>
228
- </div>
229
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
230
- <div class="col-xs-6">
231
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
232
- <label class="font text-left">到访不遇:</label>
233
- </div>
234
- <div class="col-xs-8" >
235
- <input class="search_input input-font" type="number"
236
- v-model=model.f_check_version condition="f_check_version <= '{}'" />
237
- </div>
238
- </div>
239
- <div class="row app-row" v-if="$parent.$parent.criteriaShow">
240
- <div class="col-xs-6" style="text-align: center">
241
- <span class="font text-left">待办{{$parent.$parent.upcomingCount}}条</span>
242
- </div>
243
- <div class="col-xs-6" style="text-align: center">
244
- <span class="font text-left">已办{{$parent.$parent.doneCount}}条</span>
245
- </div>
246
- <div class="col-xs-6" style="text-align: center">
247
- <span class="font text-left">临时保存{{$parent.$parent.tempSaveCount}}条</span>
248
- </div>
249
- <div class="col-xs-6" style="text-align: center">
250
- <span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
251
- </div>
252
- </div>
253
-
254
- <div class="row text-center" style="margin-top: 20px;">
255
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
256
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px" @click="$parent.$parent.queryplanmany">转发</button>
257
- <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
258
- <img v-if="!$parent.$parent.planName" style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
259
- </div>
260
- <div class="col-sm-12">
261
-
262
- </div>
263
- <!--<div class="row app-btn">-->
264
- <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
265
- <!--</div>-->
266
- <div style="height:30px;"></div>
267
- </form>
268
- </div>
269
- </criteria>
270
- <list :model="model" partial='list'>
271
- <div partial>
272
- <div class="auto app-text" style="margin-top: 5px;">
273
- <div class="panel" style="padding: 10px 10px 5px 10px;">
274
- <div class="panel-body panel-self">
275
-
276
- <div class="col-xs-12">
277
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
278
- <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
279
- <p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
280
- <input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
281
- </p>
282
- </div>
283
- <div class="col-xs-12">
284
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
285
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
286
- </div>
287
- <div class="col-xs-6">
288
- <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
289
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
290
- </p>
291
- </div>
292
- <div class="col-xs-6">
293
- <p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>
294
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
295
- </div>
296
- <div class="col-xs-6">
297
- <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>
298
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>
299
- </div>
300
- <div class="col-xs-12">
301
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
302
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
303
- <img src="../../../assets/phone.png" style="width: 6%"
304
- v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone)'/>
305
- </p>
306
- </div>
307
- <div class="col-xs-12">
308
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>备用电话:</b></p>
309
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_rent_phone}}
310
- <img v-if="row.f_rent_phone" src="../../../assets/phone.png" style="width: 6%"
311
- v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_rent_phone)'/>
312
- </p>
313
- </div>
314
- <div class="col-xs-12">
315
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>租户电话:</b></p>
316
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_zuhu_phone }}
317
- <img v-if="row.f_zuhu_phone" src="../../../assets/phone.png" style="width: 6%"
318
- v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_zuhu_phone)'/>
319
- </p>
320
- </div>
321
-
322
- <div class="col-xs-12">
323
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
324
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
325
- </div>
326
-
327
- <!-- <div class="row">-->
328
- <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
329
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
330
- <!-- </div>-->
331
- <!-- <div class="row">-->
332
- <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
333
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
334
- <!-- </div>-->
335
- <!-- <div class="row">-->
336
- <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
337
- <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
338
- <!-- </div>-->
339
- <div class="row">
340
- <p class="panel-title col-xs-4 text-left font"><b>上次安检状态:</b></p>
341
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
342
- </div>
343
- <div class="col-xs-6">
344
- <p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
345
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_state }}</p>
346
- </div>
347
- <div class="col-xs-6">
348
- <p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
349
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
350
- </div>
351
- <div class="col-xs-12" v-if="row.f_prearranged_date !=null">
352
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>预约时间:</b></p>
353
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_prearranged_date }}</p>
354
- </div>
355
- <div class="col-xs-6">
356
- <p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
357
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
358
- </div>
359
- <div class="col-xs-12">
360
- <p class="panel-title col-xs-5 text-left font"><b>到访不遇次数:</b></p>
361
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_version }}</p>
362
- </div>
363
- <div class="col-xs-6">
364
- <p class="panel-title col-xs-5 text-left font" ><b>是否通过:</b></p>
365
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_approved }}</p>
366
- </div>
367
- <div class="col-xs-6" v-show="row.f_approved == '不通过'">
368
- <p class="panel-title col-xs-5 text-left font" style="color: red;"><b>未通过原因:</b></p>
369
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_approved_note }}</p>
370
- </div>
371
- <!--<div class="col-xs-12">-->
372
- <!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
373
- <!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
374
- <!--</div>-->
375
- <div class="col-xs-12">
376
- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理</button>
377
- <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
378
- <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
379
- </div>
380
- <!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
381
- <!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button>&nbsp;-->
382
- <!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
383
- <!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
384
- <!-- </div>-->
385
- </div>
386
- </div>
387
- </div>
388
- </div>
389
- </list>
390
- </criteria-paged>
391
- <modal :show.sync="showModal">
392
- <div slot="modal-header" class="modal-header">
393
- <h4 class="modal-title">
394
- 选择预约时间
395
- </h4>
396
- </div>
397
- <div slot="modal-body" class="modal-body">
398
- <input type="datetime-local" v-model="f_preset_dt">
399
- </div>
400
- <div slot="modal-footer" class="modal-footer">
401
- <button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
402
- </div>
403
- </modal>
404
- <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
405
- <modal :show.sync="showModal2" v-ref:modal>
406
- <div slot="modal-header" class="modal-header">
407
- <h4 class="modal-title">
408
- 选择计划
409
- </h4>
410
- </div>
411
- <div slot="modal-body" class="modal-body">
412
- <div class="col-xs-12">
413
-
414
- <div class="col-xs-4">
415
- <v-select :value.sync="check" v-model='check'
416
- :value-single="true"
417
- class="select_list select"
418
- :options='checkers' placeholder='安检员'
419
- close-on-select width="100%"></v-select>
420
- </div>
421
-
422
- <div class="col-xs-1">
423
- <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
424
- </div>
425
- <div class="col-xs-4" style="padding-left: 2px">
426
- <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
427
- </div>
428
- <div class="col-xs-1" >
429
- <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
430
- </div>
431
- <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
432
- <div class="col-xs-2" style="float: right">
433
- <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
434
- </div>
435
- </div>
436
- <table class="table table_sy">
437
- <thead>
438
- <tr>
439
- <th style="width: 30px"></th>
440
- <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
441
- </tr>
442
- </thead>
443
- <tbody>
444
- <tr v-for="row in planoption">
445
- <td @click="select(row, $index)" >{{row.selected==true ? '☆' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
446
- <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
447
-
448
-
449
- </tr>
450
- </tbody>
451
- </table>
452
- </div>
453
- <div slot="modal-footer" class="modal-footer">
454
- <button class="btn btn-default" @click="isok()">确认</button>
455
- <button class="btn btn-default" @click="iscancel()">取消</button>
456
- </div>
457
- </modal>
458
- <modal :show.sync="showModal3" v-ref:modal>
459
- <div slot="modal-header" class="modal-header">
460
- <h4 class="modal-title">
461
- 选择计划
462
- </h4>
463
- </div>
464
- <div slot="modal-body" class="modal-body">
465
- <div class="col-xs-12">
466
-
467
- <div class="col-xs-4">
468
- <v-select :value.sync="check" v-model='check'
469
- :value-single="true"
470
- class="select_list select"
471
- :options='checkers' placeholder='安检员'
472
- close-on-select width="100%"></v-select>
473
- </div>
474
-
475
- <div class="col-xs-1">
476
- <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
477
- </div>
478
- <div class="col-xs-4" style="padding-left: 2px">
479
- <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
480
- </div>
481
- <div class="col-xs-1" >
482
- <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
483
- </div>
484
- <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
485
- <div class="col-xs-2" style="float: right">
486
- <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
487
- </div>
488
- </div>
489
- <table class="table table_sy">
490
- <thead>
491
- <tr>
492
- <th style="width: 30px"></th>
493
- <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
494
- </tr>
495
- </thead>
496
- <tbody>
497
- <tr v-for="row in planoption">
498
- <td @click="select(row, $index)" >{{row.selected==true ? '' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
499
- <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
500
-
501
-
502
- </tr>
503
- </tbody>
504
- </table>
505
- </div>
506
- <div slot="modal-footer" class="modal-footer">
507
- <button class="btn btn-default" @click="manyisok()">确认</button>
508
- <button class="btn btn-default" @click="iscancel()">取消</button>
509
- </div>
510
- </modal>
511
- </div>
512
-
513
- </template>
514
-
515
- <script>
516
- import LocalPagedList from '../../../plugins/LocalPagedList'
517
- import Vue from 'vue'
518
- import { PagedList,HttpResetClass } from 'vue-client'
519
- import * as Util from '../../Util'
520
- import co from 'co'
521
- import {isEmpty} from '../../Util'
522
- let select = function * (self) {
523
- let http = new HttpResetClass()
524
- http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
525
- source: 'this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)',
526
- userid: Vue.user.orgid
527
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
528
- //tag
529
- self.checkers.push({label:'全部',value:''})
530
- res.data.forEach((checker)=>{
531
- self.checkers.push({label:checker.name,value:checker.id})
532
- })
533
- })
534
- }
535
- export default {
536
- title: '无计划安检查询',
537
- props: ['planName','f_residential_area','f_building'],
538
- data() {
539
- return {
540
- f_filialeids:'('+Vue.user.orgid+')',
541
- //f_filialeids:'(305)',
542
- planparam:[],
543
- check:'',
544
- plan:'',
545
- planid:'',
546
- model:Vue.android? new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}): new PagedList( 'AndroidRest/api/af-safecheck/sql/androidGetuserinfo',20,{condition:'this.condition'}),
547
- showModal: false,
548
- showModal2:false,
549
- showModal3:false,
550
- needid:'',
551
- criteriaShow: false,
552
- planoption:[],
553
- condition:'',
554
- checkers:[],
555
- param: null,
556
- f_preset_dt : Util.to3339TimeString(),
557
- flow_direction:[
558
- {label: '请选择挂表方式', value: ''},
559
- {label: '左表', value: '左表'},
560
- {label: '右表', value: '右表'}
561
- ],
562
- check_states: [
563
- {label: '请选择安检状态', value: ''},
564
- {label: '未检', value: '未检'},
565
- {label: '已检', value: '已检'},
566
- ],
567
- last_check_states: [
568
- {label: '请选择上次安检状态', value: ''},
569
- {label: '入户', value: '入户'},
570
- {label: '拒检', value: '拒检'},
571
- {label: '到访不遇', value: '到访不遇'},
572
- {label: '未使用天然气', value: '未使用天然气'}
573
- ],
574
- upload_states: [
575
- {label: '请选择上传状态', value: ''},
576
- {label: '未传', value: '未传'},
577
- {label: '已传', value: '已传'}
578
- ],
579
- user_types: [
580
- {label: '请选择用户类型', value: ''},
581
- {label: '民用', value: '民用'},
582
- {label: '非民用', value: '非民用'},
583
- ],
584
- verify_state: [
585
- {label: '请选择审核状态', value: ''},
586
- {label: '未审核', value: '未审核'},
587
- {label: '打回', value: '打回'}
588
- ],
589
- residentialAreaOptions: [],
590
- buildOptions: [],
591
- unitOptions: [],
592
- planNameOptions: [],
593
- upcomingCount: 0,
594
- doneCount: 0,
595
- tempSaveCount: 0,
596
- allPlanCount: 0
597
- }
598
- },
599
- ready(){
600
- this.getAllArea()
601
- this.getAllPlanName()
602
- if (!isEmpty(this.f_residential_area)){
603
- this.$refs.paged.$refs.cri.model.f_residential_area = this.f_residential_area
604
- }
605
- if (!isEmpty(this.f_building)){
606
- this.$refs.paged.$refs.cri.model.f_building = this.f_building
607
- }
608
- this.selfSearch()
609
- let gen = select(this)
610
- co(gen)
611
- },
612
- mounted(){
613
- //tag
614
- if (window.history && window.history.pushState) {
615
- history.pushState(null, null, document.URL);
616
- window.addEventListener('popstate', this.fun, false);//false阻止默认事件
617
- }
618
- },
619
- destroyed(){
620
- //tag
621
- window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
622
- },
623
- methods: {
624
- scan(){
625
- HostApp.__this__=this,
626
- HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
627
- },
628
- getCode(){
629
- const datapa = HostApp.getCode().data;
630
- //tag
631
- this.$refs.paged.$refs.cri.model.f_meter_no = datapa
632
-
633
- },
634
- fun () {
635
- //tag
636
- //tag
637
- },
638
- iscancel(){
639
- this.showModal2=false
640
- this.showModal3=false
641
- this.planoption=[]
642
- },
643
- timeSet(val){
644
- return val
645
- },
646
- async isok(){
647
- if(this.planoption.length==0){
648
- this.$showMessage("请选择计划")
649
- return false
650
- }
651
- for (let i = 0; i <this.planoption.length ; i++) {
652
- if (this.planoption[i]["selected"]==true){
653
- this.planid=this.planoption[i].value
654
- break
655
- }
656
- }
657
- if(this.planid==''){
658
- this.$showMessage("请选择计划")
659
- return false
660
- }
661
- await this.okput()
662
- },
663
- async manyisok(){
664
- if(this.planoption.length==0){
665
- this.$showMessage("请选择计划")
666
- return false
667
- }
668
- for (let i = 0; i <this.planoption.length ; i++) {
669
- if (this.planoption[i]["selected"]==true){
670
- this.planid=this.planoption[i].value
671
- break
672
- }
673
- }
674
- if(this.planid==''){
675
- this.$showMessage("请选择计划")
676
- return false
677
- }
678
- await this.manyokput()
679
- },
680
- changenull(){
681
- this.showModal2=false
682
- this.showModal3=false
683
- this.planoption=[]
684
- this.plan=''
685
- this.check=''
686
- },
687
- async okput(){
688
- let result = this.$androidUtil.bzLogic('UpCheckPlanItemAndroid', {condition:`id='`+this.needid+`'`,f_plan_id:this.planid})
689
- if (result.code == 200) {
690
- let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {data:{
691
- condition:`i.id='`+this.needid+`'`,
692
- f_plan_id:this.planid,
693
- switchCheckAll:false,
694
- checkAll:false,
695
- f_operator:Vue.user.name
696
- }
697
- })
698
- await this.changenull()
699
- }
700
- },
701
- async manyokput(){
702
- let condition = `1=1`
703
- let criteria = {
704
- items: 'id',
705
- tablename: 't_check_plan',
706
- condition: `f_checker_id = '${Vue.user.id}'`,
707
- groupitem: 'id'
708
- }
709
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
710
- if (result.code==200){
711
- condition = `1=1 and i.f_plan_id in (${result.data.rows.map(row => { return `'${row.id}'` }).join()})`
712
- }
713
- let result2 = this.$androidUtil.bzLogic('UpCheckPlanItemAndroid', {condition:`f_plan_id in (${result.data.rows.map(row => { return `'${row.id}'` }).join()})`,f_plan_id:this.planid})
714
- if (result2.code == 200) {
715
- let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {data:{
716
- columnName:"i.id",
717
- condition:condition,
718
- f_plan_id:this.planid,
719
- switchCheckAll:true,
720
- param:this.planparam,
721
- checkAll:true,
722
- f_operator:Vue.user.name
723
- }
724
- })
725
- await this.changenull()
726
- }
727
- },
728
- async plansearch(){
729
- this.planoption=[]
730
- let condition= ` f_plan_year=${new Date().getFullYear()}`
731
- if(this.check){
732
- condition += ` and f_checker_id= '${this.check}'`
733
- }
734
- if(this.plan){
735
- condition += ` and f_plan_name like '%${this.plan}%'`
736
- }
737
- let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {data:{
738
- condition:condition,
739
- f_filialeids:this.f_filialeids,
740
- groupitem:'',
741
- orderitem:'id'
742
- }})
743
- let resoult=res.data
744
- for (let i = 0; i < resoult.length; i++) {
745
- this.planoption.push({label: resoult[i].f_plan_name,selected:false, value: resoult[i].id})
746
- }
747
- },
748
-
749
- select(row, idx) {
750
- this.$set('planoption[' + idx + '].selected', true)
751
- for (let i = 0; i <this.planoption.length ; i++) {
752
- if (i!=idx){
753
- this.planoption[i]["selected"]=false
754
- }
755
- }
756
- },
757
- planclose(){
758
- this.showModal2=false
759
- this.showModal3=false
760
- },
761
- queryplan(val){
762
- this.needid=val
763
- this.showModal2 = true
764
- },
765
- queryplanmany(){
766
-
767
- this.showModal3 = true
768
- },
769
- reload(){
770
- // this.getAllArea()
771
- // this.getAllPlanName()
772
- this.selfSearch()
773
- },
774
- cancelReserve (idx, id) {
775
- if(Vue.android){
776
- let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
777
- this.$set('model.rows[' + idx + '].f_prearranged_date', null)
778
- if (res.code == 200) {
779
- this.$showMessage("取消预约成功")
780
- }
781
- }else {
782
- this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
783
- this.$set('model.rows[' + idx + '].f_prearranged_date', null)
784
- if (repanse.data.code == 200) {
785
- alert("取消预约成功!")
786
- }
787
- })
788
- }},
789
- genuineReserve () {
790
- if(Vue.android){
791
- if (!this.f_preset_dt) {
792
- this.$showMessage('请选择一个日期')
793
- return
794
- }
795
- let pdt = this.f_preset_dt.replace('T', ' ')
796
- let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
797
- this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
798
- if(respanse.code == 200) {
799
- this.$showMessage("预约成功!")
800
- }
801
- this.showModal = false
802
- }else {
803
- if (!this.f_preset_dt) {
804
- alert('请选择一个日期')
805
- return
806
- }
807
- let pdt = this.f_preset_dt.replace('T', ' ')
808
- this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
809
- this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
810
- if(res.data.code == 200) {
811
- alert("预约成功!")
812
- }
813
- this.showModal = false
814
- })
815
- }
816
- },
817
- inspect(row) {
818
- var _this = this
819
- let http = new HttpResetClass()
820
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
821
- items: 'id',
822
- tablename: 't_check_plan_item',
823
- condition: `id = '${row.id}'`,
824
- orderitem: ' id '
825
- }}, {resolveMsg: null, rejectMsg: null}).then((getcheckplan) => {
826
- this.getcheckplandata = getcheckplan.data[0]
827
- if(this.getcheckplandata){
828
- if (row.f_no_checkplan != '无计划安检') {
829
- _this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
830
- row['f_plan_meters'] = response.data
831
- var pardate = {
832
- _this:_this,
833
- title:'安全检查',
834
- safe:true
835
- }
836
- _this.$dispatch('gotoson',pardate)
837
- //tag
838
- _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
839
- }).catch ((msg)=>{
840
- this.$showMessage("网络异常,请检查网络后再试!")
841
- })
842
- }
843
- }else {
844
- this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
845
- }
846
- })
847
- },
848
- makeAPhoneCall(phoneNumber) {
849
- this.$androidUtil.makeAPhoneCall(phoneNumber)
850
- },
851
- reserve (idx) {
852
- this.param = idx
853
- this.showModal = true
854
- },
855
- search(args) {
856
- this.model.rows = []
857
- this.model.search(args.condition, args.model)
858
- },
859
- selfSearch () {
860
- this.getPlanCount()
861
- let condition = ""
862
- if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length >0){
863
- condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area[0]+"'"
864
- }else if(typeof this.$refs.paged.$refs.cri.model.f_residential_area == 'string' && this.$refs.paged.$refs.cri.model.f_residential_area){
865
- condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area+"'"
866
- }
867
- if(this.$refs.paged.$refs.cri.model.f_building)
868
- condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
869
- if(this.$refs.paged.$refs.cri.model.f_unit)
870
- condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
871
- if (this.planName){
872
- condition += " and f_plan_name like '%"+this.planName +"%'"
873
- }else {
874
- if(this.$refs.paged.$refs.cri.model.f_plan_name)
875
- condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
876
- }
877
- // if(this.$refs.paged.$refs.cri.model.f_plan_year)
878
- // condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
879
- // if(this.$refs.paged.$refs.cri.model.f_plan_month)
880
- // condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
881
- if(this.$refs.paged.$refs.cri.model.f_userinfo_code)
882
- condition += " and ti.f_userinfo_code like '%"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"%'"
883
- if(this.$refs.paged.$refs.cri.model.f_keyword)
884
- condition += " and ti.f_address like '%"+this.$refs.paged.$refs.cri.model.f_keyword+"%'"
885
- if(this.$refs.paged.$refs.cri.model.f_user_name)
886
- condition += " and ti.f_user_name like '%"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
887
- if(this.$refs.paged.$refs.cri.model.f_state[0])
888
- condition += " and ti.f_state='"+this.$refs.paged.$refs.cri.model.f_state[0]+"'"
889
- if(this.$refs.paged.$refs.cri.model.f_last_state[0])
890
- condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
891
- if(this.$refs.paged.$refs.cri.model.f_user_type[0])
892
- condition += " and ti.f_user_type='"+this.$refs.paged.$refs.cri.model.f_user_type[0]+"'"
893
- if(this.$refs.paged.$refs.cri.model.f_meter_no)
894
- condition += " and tm.f_meter_no like '%"+this.$refs.paged.$refs.cri.model.f_meter_no+"%'"
895
- // if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
896
- // condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
897
- if(this.$refs.paged.$refs.cri.model.f_user_phone){
898
- condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
899
- }
900
- if(this.$refs.paged.$refs.cri.model.f_enter_number)
901
- condition += " and ti.f_enter_number like '%"+this.$refs.paged.$refs.cri.model.f_enter_number+"%'"
902
- if(this.$refs.paged.$refs.cri.model.f_check_version)
903
- condition += " and ti.f_check_version <= "+this.$refs.paged.$refs.cri.model.f_check_version
904
- //tag
905
- this.model.search("ti.f_no_checkplan = '有计划安检'" + condition)
906
- },
907
- getNewOrder(){
908
- HostApp.__this__ = this
909
- HostApp.logicWithHint({
910
- // logic别名,key必须为logic
911
- 'logic': 'SafeCheckServiceTimeOut',
912
- // 回调执行方法名,key必须为callback
913
- 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
914
- // logic执行需要的业务参数
915
- 'data': {params: ''},
916
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
917
- // 执行回调方法传入key为backresult
918
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
919
- 'backresult': 1
920
- })
921
- HostApp.logicWithHint({
922
- // logic别名,key必须为logic
923
- 'logic': 'FreshPlanItem',
924
- // 回调执行方法名,key必须为callback
925
- 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
926
- // logic执行需要的业务参数
927
- 'data': {params: ''},
928
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
929
- // 执行回调方法传入key为backresult
930
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
931
- 'backresult': 1
932
- })
933
- },
934
- getNewOrderCallBack() {
935
- this.selfSearch()
936
- this.getAllArea()
937
- this.getAllPlanName()
938
- },
939
- hidden() {
940
- this.criteriaShow = !this.criteriaShow
941
- },
942
- getAllArea(){
943
- this.residentialAreaOptions = []
944
- this.buildOptions = []
945
- this.unitOptions = []
946
- this.$refs.paged.$refs.cri.model.f_unit = ''
947
- let criteria = {
948
- items: 'f_residential_area',
949
- tablename: 't_check_plan_item',
950
- condition: `f_residential_area IS NOT NULL AND f_residential_area != ''`,
951
- groupitem: 'f_residential_area'
952
- }
953
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
954
- //tag)
955
- if(result.code == 200){
956
- result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
957
- }
958
- //tag)
959
- },
960
- getbuilds(f_residential_area){
961
- //tag)
962
- this.buildOptions = []
963
- this.unitOptions = []
964
- this.$refs.paged.$refs.cri.model.f_unit = ''
965
- if(!f_residential_area){
966
- return
967
- }
968
- let criteria = {
969
- items: 'f_building',
970
- tablename: 't_check_plan_item',
971
- condition: `f_building IS NOT NULL AND f_building != '' AND f_residential_area = '${f_residential_area}'`,
972
- groupitem: 'f_building order by f_building+0'
973
- }
974
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
975
- if(result.code == 200){
976
- result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
977
- }
978
- this.buildOptions.sort((a,b)=>{
979
- return Number(a.label)- Number(b.label)
980
- })
981
- //tag)
982
- },
983
- getUnits(f_building){
984
- f_building = f_building[0]
985
- //tag)
986
- this.unitOptions = []
987
- this.$refs.paged.$refs.cri.model.f_unit = ''
988
- if(!f_building){
989
- return
990
- }
991
- let criteria = {
992
- items: 'f_unit',
993
- tablename: 't_check_plan_item',
994
- condition: `f_unit IS NOT NULL AND f_unit != '' AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
995
- groupitem: 'f_unit'
996
- }
997
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
998
- if(result.code == 200){
999
- result.data.rows.forEach(item => this.unitOptions.push({label:item.f_unit,value:item.f_unit}))
1000
- }
1001
- this.unitOptions.sort((a,b)=>{
1002
- return Number(a.label)- Number(b.label)
1003
- })
1004
- },
1005
- getPlanCount(){
1006
- this.upcomingCount = 0
1007
- this.tempSaveCount = 0
1008
- this.doneCount = 0
1009
- this.allPlanCount = 0
1010
- let criteria = {
1011
- items: 'count(id) count',
1012
- tablename: 't_check_plan_item',
1013
- condition: `f_state = '未检'`,
1014
- groupitem: 'f_state'
1015
- }
1016
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1017
- if(result.code && result.code == 200){
1018
- if(result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
1019
- this.upcomingCount = result.data.rows[0].count
1020
- }
1021
- }
1022
- criteria = {
1023
- items: 'count(id) count',
1024
- tablename: 't_check_plan_item',
1025
- condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
1026
- groupitem: 'f_state'
1027
- }
1028
- result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1029
- if(result.code && result.code == 200){
1030
- if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
1031
- this.tempSaveCount = result.data.rows[0].count
1032
- }
1033
- }
1034
- criteria = {
1035
- items: 'count(id) count',
1036
- tablename: 't_check_plan_item',
1037
- condition: `f_complete = '已完成' AND f_state = '已检'`,
1038
- groupitem: 'f_state'
1039
- }
1040
- result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1041
- if(result.code && result.code == 200){
1042
- if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
1043
- this.doneCount = result.data.rows[0].count
1044
- }
1045
- }
1046
- this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
1047
-
1048
- //tag
1049
- //tag
1050
- //tag
1051
- //tag
1052
- },
1053
- getAllPlanName(){
1054
- this.planNameOptions = []
1055
- this.$refs.paged.$refs.cri.model.f_plan_name = ''
1056
- let criteria = {
1057
- items: 'f_plan_name',
1058
- tablename: 't_check_plan',
1059
- condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
1060
- groupitem: 'f_plan_name'
1061
- }
1062
- let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1063
- //tag)
1064
- if(result.code == 200){
1065
- result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
1066
- }
1067
- //tag)
1068
- },
1069
- setPlanParam(detailsType, event) {
1070
- if (event.srcElement.checked) {
1071
- this.planparam.push(detailsType)
1072
- //tag
1073
- } else {
1074
- if(this.planparam.length>0){
1075
- let planid= this.planparam.findIndex((value) => {
1076
- return value === detailsType
1077
- })
1078
- this.planparam.splice(planid, 1)
1079
- //tag
1080
-
1081
- }
1082
-
1083
- }
1084
- }
1085
- }
1086
- }
1087
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+ .app-row {
8
+ background-color: white;
9
+ padding: 10px 10px 0 10px;
10
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
11
+ }
12
+ .search_input {
13
+ border: 0;
14
+ outline: none;
15
+ }
16
+ .font{
17
+ font: 15px PingFang-SC-Medium;
18
+ color: #666666;
19
+ }
20
+ .input-font{
21
+ font: 15px PingFang-SC-Medium;
22
+ color: #333333;
23
+ }
24
+ .btn-font{
25
+ font:600 16px PingFang-SC-Bold;
26
+ color: #499EDF;
27
+ }
28
+ .btn-color{
29
+ background-color: #FFFFFF;
30
+ border-radius: 10px ;
31
+ border: 1px solid #499EDF;
32
+ }
33
+ .app-text {
34
+ font-size: 12px;
35
+ }
36
+ .panel-self{
37
+ border-radius: 10px;
38
+ border:1px solid #499EDF;
39
+ background-color: #F8F8F8;
40
+ }
41
+ .yybtn-color{
42
+ background-color:#499edf;
43
+ border-radius: 4px ;
44
+ border: 1px solid #499EDF;
45
+ color: #FFFFFF;
46
+ font: 14px PingFang-SC-Bold;
47
+ }
48
+ .qxbtn-color{
49
+ background-color: #FFFFFF;
50
+ border-radius: 4px ;
51
+ color: #499edf;
52
+ font: 14px PingFang-SC-Bold;
53
+ border: 1px solid #499EDF;
54
+ }
55
+
56
+ .button_shrink_top {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_top.png")}
57
+ .button_shrink_bottom {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_bottom.png")}
58
+ .button_shrink_left {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_left.png")}
59
+ .button_shrink_right {width: 35px; height: 35px; background-size:100%;background-image: url("../../../../static/newStyle/stretch_right.png")}
60
+ </style>
61
+ <style>
62
+ .clear-select-with .dropdown-menu{
63
+ left: 0px !important;
64
+ width: 200% !important;
65
+ }
66
+ </style>
67
+ <template>
68
+ <div style="height: auto;width: 100%">
69
+ <criteria-paged :model="model" v-ref:paged>
70
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
71
+ <div partial>
72
+ <form>
73
+ <div class="row app-row">
74
+ <div class="col-xs-4">
75
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
76
+ <label for="f_plan_name" class="font text-left">单元:</label>
77
+ </div>
78
+ <v-select :value.sync="model.f_unit"
79
+ class="input-font"
80
+ :options='$parent.$parent.unitOptions'
81
+ placeholder='单元'
82
+ :width="'60%'"
83
+ :value-single = true
84
+ v-model="model.f_unit"
85
+ condition="ti.f_unit = '{}'"
86
+ close-on-select clear-button>
87
+ </v-select>
88
+ </div>
89
+ <div class="row app-row">
90
+ <div class="col-xs-4">
91
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
92
+ <label for="f_userinfo_code" class="font text-left">用户编号:</label>
93
+ </div>
94
+ <div class="col-xs-8" >
95
+ <input id="f_userinfo_code" class="search_input input-font"
96
+ v-model=model.f_userinfo_code condition="f_userinfo_code like '%{}%'" />
97
+ </div>
98
+ </div>
99
+ <div class="row app-row">
100
+ <div class="col-xs-4">
101
+ <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
102
+ <label class="font text-left">用户姓名:</label>
103
+ </div>
104
+ <div class="col-xs-8" >
105
+ <input class="search_input input-font" v-model=model.f_user_name condition="f_user_name like '%{}%'" />
106
+ </div>
107
+ </div>
108
+
109
+ <div class="row app-row">
110
+ <div class="col-xs-4">
111
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
112
+ <label class="font text-left">用户证号:</label>
113
+ </div>
114
+ <div class="col-xs-8" >
115
+ <input class="search_input input-font" v-model=model.f_enter_number condition="f_enter_number like '%{}%'" />
116
+ </div>
117
+ </div>
118
+
119
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow && !$parent.$parent.planName">
120
+ <div class="col-xs-4">
121
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
122
+ <label for="f_plan_name" class="font text-left">计划名称:</label>
123
+ </div>
124
+ <v-select
125
+ id="f_plan_name"
126
+ :value.sync="model.f_plan_name"
127
+ class="input-font"
128
+ :options='$parent.$parent.planNameOptions'
129
+ placeholder='计划名称'
130
+ :width="'60%'"
131
+ v-model="model.f_plan_name"
132
+ condition="f_plan_name like '%{}%'"
133
+ close-on-select clear-button>
134
+ </v-select>
135
+ </div>
136
+
137
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
138
+ <div class="col-xs-4">
139
+ <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
140
+ <label for="f_state" class="font text-left">是否已检:</label>
141
+ </div>
142
+ <v-select id="f_state"
143
+ :value.sync="model.f_state"
144
+ class="input-font"
145
+ :options='$parent.$parent.check_states'
146
+ placeholder='是否已检'
147
+ :width="'60%'"
148
+ v-model="model.f_state"
149
+ condition="f_state='{}'"
150
+ close-on-select clear-button>
151
+ </v-select>
152
+ </div>
153
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
154
+ <div class="col-xs-4">
155
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
156
+ <label class="font text-left">表&emsp;&emsp;号:</label>
157
+ </div>
158
+ <div class="col-xs-5" >
159
+ <input class="search_input input-font"
160
+ v-model=model.f_meter_no condition="f_meter_no like '%{}%'" />
161
+ </div>
162
+ <div class="col-xs-3">
163
+ <button type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.scan()">扫码</button>
164
+ </div>
165
+ </div>
166
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
167
+ <div class="col-xs-4">
168
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
169
+ <label class="font text-left">客户电话:</label>
170
+ </div>
171
+ <div class="col-xs-8" >
172
+ <input class="search_input input-font"
173
+ v-model=model.f_user_phone condition="f_user_phone like '%{}%'" />
174
+ </div>
175
+ </div>
176
+
177
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
178
+ <div class="col-xs-4">
179
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
180
+ <label class="font text-left">用户地址:</label>
181
+ </div>
182
+ <div class="col-xs-8" >
183
+ <input class="search_input input-font"
184
+ v-model=model.f_keyword condition="f_address like '%{}%'" />
185
+ </div>
186
+ </div>
187
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
188
+ <div class="col-xs-4">
189
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
190
+ <label for="f_user_type" class="font text-left">用户类型:</label>
191
+ </div>
192
+ <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
193
+ :width="'60%'"
194
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型'
195
+ v-model="model.f_user_type" condition="f_user_type='{}'" close-on-select clear-button></v-select>
196
+ </div>
197
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
198
+ <div class="col-xs-4">
199
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
200
+ <label for="f_user_type" class="font text-left">安检状态:</label>
201
+ </div>
202
+ <v-select id="f_user_type" :value.sync="model.f_last_state" class="input-font"
203
+ :width="'60%'"
204
+ :options='$parent.$parent.last_check_states' placeholder='请选择用户类型'
205
+ v-model="model.f_last_state"
206
+ close-on-select clear-button></v-select>
207
+ </div>
208
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
209
+ <div class="col-xs-6">
210
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
211
+ <label class="font text-left">到访不遇:</label>
212
+ </div>
213
+ <div class="col-xs-8" >
214
+ <input class="search_input input-font" type="number"
215
+ v-model=model.f_check_version condition="f_check_version <= '{}'" />
216
+ </div>
217
+ </div>
218
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
219
+ <div class="col-xs-6" style="text-align: center">
220
+ <span class="font text-left">待办{{$parent.$parent.upcomingCount}}条</span>
221
+ </div>
222
+ <div class="col-xs-6" style="text-align: center">
223
+ <span class="font text-left">已办{{$parent.$parent.doneCount}}条</span>
224
+ </div>
225
+ <div class="col-xs-6" style="text-align: center">
226
+ <span class="font text-left">临时保存{{$parent.$parent.tempSaveCount}}条</span>
227
+ </div>
228
+ <div class="col-xs-6" style="text-align: center">
229
+ <span class="font text-left">总共{{$parent.$parent.allPlanCount}}条</span>
230
+ </div>
231
+ </div>
232
+
233
+ <div class="row text-center" style="margin-top: 20px;">
234
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;" @click="$parent.$parent.selfSearch">查询</button>
235
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%; margin-left: 10px" @click="$parent.$parent.queryplanmany">转发</button>
236
+ <div style="float: right;margin-right: 3% " class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
237
+ <img v-if="!$parent.$parent.planName" style="float: right;margin-right: 3% " @click="$parent.$parent.getNewOrder" src="../../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
238
+ </div>
239
+ <div class="col-sm-12">
240
+
241
+ </div>
242
+ <!--<div class="row app-btn">-->
243
+ <!--<button class="btn btn-primary col-xs-6" type="button" @click="search"><span class="glyphicon glyphicon-search" style="margin-right: 20px;">查询</span></button>-->
244
+ <!--</div>-->
245
+ <div style="height:30px;"></div>
246
+ </form>
247
+ </div>
248
+ </criteria>
249
+ <list :model="model" partial='list'>
250
+ <div partial>
251
+ <div class="auto app-text" style="margin-top: 5px;">
252
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
253
+ <div class="panel-body panel-self">
254
+
255
+ <div class="col-xs-12">
256
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
257
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
258
+ <p class="panel-title col-xs-2 text-left input-font" style="width: 5%;float:right">
259
+ <input type="checkbox" @click="$parent.$parent.$parent.setPlanParam(row.id, $event)"/>
260
+ </p>
261
+ </div>
262
+ <div class="col-xs-12">
263
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
264
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
265
+ </div>
266
+ <div class="col-xs-6">
267
+ <p class="panel-title col-xs-5 text-left font"><b>用户类型:</b></p>
268
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_user_type }}
269
+ </p>
270
+ </div>
271
+ <div class="col-xs-6">
272
+ <p class="panel-title col-xs-5 text-left font"><b>计划名称:</b></p>
273
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_plan_name }}</p>
274
+ </div>
275
+ <div class="col-xs-6">
276
+ <p class="panel-title col-xs-5 text-left font"><b>小区名称:</b></p>
277
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_residential_area }}</p>
278
+ </div>
279
+ <div class="col-xs-12">
280
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
281
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}
282
+ <img src="../../../assets/phone.png" style="width: 6%"
283
+ v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_user_phone)'/>
284
+ </p>
285
+ </div>
286
+ <div class="col-xs-12">
287
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>备用电话:</b></p>
288
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_rent_phone}}
289
+ <img v-if="row.f_rent_phone" src="../../../assets/phone.png" style="width: 6%"
290
+ v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_rent_phone)'/>
291
+ </p>
292
+ </div>
293
+ <div class="col-xs-12">
294
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>租户电话:</b></p>
295
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_zuhu_phone }}
296
+ <img v-if="row.f_zuhu_phone" src="../../../assets/phone.png" style="width: 6%"
297
+ v-on:click.stop.prevent='$parent.$parent.$parent.makeAPhoneCall(row.f_zuhu_phone)'/>
298
+ </p>
299
+ </div>
300
+
301
+ <div class="col-xs-12">
302
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
303
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
304
+ </div>
305
+
306
+ <!-- <div class="row">-->
307
+ <!-- <p class="panel-title col-xs-4 text-left font">计划年份</p>-->
308
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_year }}</p>-->
309
+ <!-- </div>-->
310
+ <!-- <div class="row">-->
311
+ <!-- <p class="panel-title col-xs-4 text-left font">计划月份</p>-->
312
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_plan_month }}</p>-->
313
+ <!-- </div>-->
314
+ <!-- <div class="row">-->
315
+ <!-- <p class="panel-title col-xs-4 text-left font">预约时间</p>-->
316
+ <!-- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_prearranged_date }}</p>-->
317
+ <!-- </div>-->
318
+ <div class="row">
319
+ <p class="panel-title col-xs-4 text-left font"><b>上次安检状态:</b></p>
320
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
321
+ </div>
322
+ <div class="col-xs-6">
323
+ <p class="panel-title col-xs-5 text-left font"><b>安检状态:</b></p>
324
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_state }}</p>
325
+ </div>
326
+ <div class="col-xs-6">
327
+ <p class="panel-title col-xs-5 text-left font"><b>上传状态:</b></p>
328
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_upload_state }}</p>
329
+ </div>
330
+ <div class="col-xs-12" v-if="row.f_prearranged_date !=null">
331
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>预约时间:</b></p>
332
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_prearranged_date }}</p>
333
+ </div>
334
+ <div class="col-xs-6">
335
+ <p class="panel-title col-xs-5 text-left font"><b>安检类型:</b></p>
336
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_safecheck_type }}</p>
337
+ </div>
338
+ <div class="col-xs-12">
339
+ <p class="panel-title col-xs-5 text-left font"><b>到访不遇次数:</b></p>
340
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_check_version }}</p>
341
+ </div>
342
+ <div class="col-xs-6">
343
+ <p class="panel-title col-xs-5 text-left font" ><b>是否通过:</b></p>
344
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_approved }}</p>
345
+ </div>
346
+ <div class="col-xs-6" v-show="row.f_approved == '不通过'">
347
+ <p class="panel-title col-xs-5 text-left font" style="color: red;"><b>未通过原因:</b></p>
348
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_approved_note }}</p>
349
+ </div>
350
+ <!--<div class="col-xs-12">-->
351
+ <!--<p class="panel-title col-xs-5 text-left font"><b>送气期限:</b></p>-->
352
+ <!--<p class="panel-title col-xs-7 text-left input-font">{{timeSet(row.f_issue_time)}}</p>-->
353
+ <!--</div>-->
354
+ <div class="col-xs-12">
355
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right" @click="$parent.$parent.$parent.inspect(row)">处理</button>
356
+ <button type="button" name="button" class="btn btn-primary" style="background-color:#499edf;float: right;margin-right:10px;" @click="$parent.$parent.$parent.queryplan(row.id)">转发</button>
357
+ <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
358
+ </div>
359
+ <!-- <div class="row text-right" v-show="row.f_upload_state != '已传'" >-->
360
+ <!-- <button type="button" class="btn yybtn-color" v-on:click.stop.prevent='$parent.$parent.$parent.reserve($index)'>预约</button>&nbsp;-->
361
+ <!-- <button type="button" class="btn qxbtn-color" v-if ='row.f_prearranged_date'-->
362
+ <!-- v-on:click.stop.prevent='$parent.$parent.$parent.cancelReserve($index, row.id)'>取消预约</button>-->
363
+ <!-- </div>-->
364
+ </div>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ </list>
369
+ </criteria-paged>
370
+ <modal :show.sync="showModal">
371
+ <div slot="modal-header" class="modal-header">
372
+ <h4 class="modal-title">
373
+ 选择预约时间
374
+ </h4>
375
+ </div>
376
+ <div slot="modal-body" class="modal-body">
377
+ <input type="datetime-local" v-model="f_preset_dt">
378
+ </div>
379
+ <div slot="modal-footer" class="modal-footer">
380
+ <button type="button" class="btn btn-default" @click="genuineReserve">确认</button>
381
+ </div>
382
+ </modal>
383
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
384
+ <modal :show.sync="showModal2" v-ref:modal>
385
+ <div slot="modal-header" class="modal-header">
386
+ <h4 class="modal-title">
387
+ 选择计划
388
+ </h4>
389
+ </div>
390
+ <div slot="modal-body" class="modal-body">
391
+ <div class="col-xs-12">
392
+
393
+ <div class="col-xs-4">
394
+ <v-select :value.sync="check" v-model='check'
395
+ :value-single="true"
396
+ class="select_list select"
397
+ :options='checkers' placeholder='安检员'
398
+ close-on-select width="100%"></v-select>
399
+ </div>
400
+
401
+ <div class="col-xs-1">
402
+ <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
403
+ </div>
404
+ <div class="col-xs-4" style="padding-left: 2px">
405
+ <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
406
+ </div>
407
+ <div class="col-xs-1" >
408
+ <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
409
+ </div>
410
+ <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
411
+ <div class="col-xs-2" style="float: right">
412
+ <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
413
+ </div>
414
+ </div>
415
+ <table class="table table_sy">
416
+ <thead>
417
+ <tr>
418
+ <th style="width: 30px"></th>
419
+ <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
420
+ </tr>
421
+ </thead>
422
+ <tbody>
423
+ <tr v-for="row in planoption">
424
+ <td @click="select(row, $index)" >{{row.selected==true ? '☆' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
425
+ <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
426
+
427
+
428
+ </tr>
429
+ </tbody>
430
+ </table>
431
+ </div>
432
+ <div slot="modal-footer" class="modal-footer">
433
+ <button class="btn btn-default" @click="isok()">确认</button>
434
+ <button class="btn btn-default" @click="iscancel()">取消</button>
435
+ </div>
436
+ </modal>
437
+ <modal :show.sync="showModal3" v-ref:modal>
438
+ <div slot="modal-header" class="modal-header">
439
+ <h4 class="modal-title">
440
+ 选择计划
441
+ </h4>
442
+ </div>
443
+ <div slot="modal-body" class="modal-body">
444
+ <div class="col-xs-12">
445
+
446
+ <div class="col-xs-4">
447
+ <v-select :value.sync="check" v-model='check'
448
+ :value-single="true"
449
+ class="select_list select"
450
+ :options='checkers' placeholder='安检员'
451
+ close-on-select width="100%"></v-select>
452
+ </div>
453
+
454
+ <div class="col-xs-1">
455
+ <!--<label style="font-size:20px;line-height: 35px">人员 </label>-->
456
+ </div>
457
+ <div class="col-xs-4" style="padding-left: 2px">
458
+ <input class="select-style" placeholder="计划名称" type="text" v-model="plan" style="border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 35px"/>
459
+ </div>
460
+ <div class="col-xs-1" >
461
+ <!--<label style="font-size: 20px;line-height: 35px">计划</label>-->
462
+ </div>
463
+ <!--<input placeholder="安检员" type="text" v-model="check" style="height:30px;width: 100px"/>-->
464
+ <div class="col-xs-2" style="float: right">
465
+ <button type="button" class="btn btn-primary" @click="plansearch" style="background-color:#499edf;float: right;margin-right:10px;border: 1px solid #93B2D3;height:34px;width: 100%;line-height: 1px;padding-left: 12px">查询</button>
466
+ </div>
467
+ </div>
468
+ <table class="table table_sy">
469
+ <thead>
470
+ <tr>
471
+ <th style="width: 30px"></th>
472
+ <th style="font-family: 'Adobe 黑体 Std R'">计划名称</th>
473
+ </tr>
474
+ </thead>
475
+ <tbody>
476
+ <tr v-for="row in planoption">
477
+ <td @click="select(row, $index)" >{{row.selected==true ? '☆' : '&nbsp;&nbsp;&nbsp;&nbsp;'}}</td>
478
+ <td @click="select(row, $index)" style="text-align: center">{{row.label}}</td>
479
+
480
+
481
+ </tr>
482
+ </tbody>
483
+ </table>
484
+ </div>
485
+ <div slot="modal-footer" class="modal-footer">
486
+ <button class="btn btn-default" @click="manyisok()">确认</button>
487
+ <button class="btn btn-default" @click="iscancel()">取消</button>
488
+ </div>
489
+ </modal>
490
+ </div>
491
+
492
+ </template>
493
+
494
+ <script>
495
+ import LocalPagedList from '../../../plugins/LocalPagedList'
496
+ import Vue from 'vue'
497
+ import { PagedList,HttpResetClass } from 'vue-client'
498
+ import * as Util from '../../Util'
499
+ import co from 'co'
500
+ import {isEmpty} from '../../Util'
501
+ let select = function * (self) {
502
+ let http = new HttpResetClass()
503
+ http.load('POST', `${self.$androidUtil.getProxyUrl()}/rs/search`, {
504
+ source: 'this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)',
505
+ userid: Vue.user.orgid
506
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
507
+ //tag
508
+ self.checkers.push({label:'全部',value:''})
509
+ res.data.forEach((checker)=>{
510
+ self.checkers.push({label:checker.name,value:checker.id})
511
+ })
512
+ })
513
+ }
514
+ export default {
515
+ title: '无计划安检查询',
516
+ props: ['planName','f_residential_area','f_building'],
517
+ data() {
518
+ return {
519
+ f_filialeids:'('+Vue.user.orgid+')',
520
+ //f_filialeids:'(305)',
521
+ planparam:[],
522
+ check:'',
523
+ plan:'',
524
+ planid:'',
525
+ model:Vue.android? new LocalPagedList('androidGetuserinfo',20,{condition:'this.condition'}): new PagedList( 'AndroidRest/api/af-safecheck/sql/androidGetuserinfo',20,{condition:'this.condition'}),
526
+ showModal: false,
527
+ showModal2:false,
528
+ showModal3:false,
529
+ needid:'',
530
+ criteriaShow: false,
531
+ planoption:[],
532
+ condition:'',
533
+ checkers:[],
534
+ param: null,
535
+ f_preset_dt : Util.to3339TimeString(),
536
+ flow_direction:[
537
+ {label: '请选择挂表方式', value: ''},
538
+ {label: '左表', value: '左表'},
539
+ {label: '右表', value: '右表'}
540
+ ],
541
+ check_states: [
542
+ {label: '请选择安检状态', value: ''},
543
+ {label: '未检', value: '未检'},
544
+ {label: '已检', value: '已检'},
545
+ ],
546
+ last_check_states: [
547
+ {label: '请选择上次安检状态', value: ''},
548
+ {label: '入户', value: '入户'},
549
+ {label: '拒检', value: '拒检'},
550
+ {label: '到访不遇', value: '到访不遇'},
551
+ {label: '未使用天然气', value: '未使用天然气'}
552
+ ],
553
+ upload_states: [
554
+ {label: '请选择上传状态', value: ''},
555
+ {label: '未传', value: '未传'},
556
+ {label: '已传', value: '已传'}
557
+ ],
558
+ user_types: [
559
+ {label: '请选择用户类型', value: ''},
560
+ {label: '民用', value: '民用'},
561
+ {label: '非民用', value: '非民用'},
562
+ ],
563
+ verify_state: [
564
+ {label: '请选择审核状态', value: ''},
565
+ {label: '未审核', value: '未审核'},
566
+ {label: '打回', value: '打回'}
567
+ ],
568
+ residentialAreaOptions: [],
569
+ buildOptions: [],
570
+ unitOptions: [],
571
+ planNameOptions: [],
572
+ upcomingCount: 0,
573
+ doneCount: 0,
574
+ tempSaveCount: 0,
575
+ allPlanCount: 0
576
+ }
577
+ },
578
+ ready(){
579
+ // this.getAllArea()
580
+ this.getAllPlanName()
581
+ if (!isEmpty(this.f_residential_area)){
582
+ this.$refs.paged.$refs.cri.model.f_residential_area = this.f_residential_area
583
+ }
584
+ if (!isEmpty(this.f_building)){
585
+ this.$refs.paged.$refs.cri.model.f_building = this.f_building
586
+ }
587
+ this.getUnits(this.f_building)
588
+ this.selfSearch()
589
+ let gen = select(this)
590
+ co(gen)
591
+ },
592
+ mounted(){
593
+ //tag
594
+ if (window.history && window.history.pushState) {
595
+ history.pushState(null, null, document.URL);
596
+ window.addEventListener('popstate', this.fun, false);//false阻止默认事件
597
+ }
598
+ },
599
+ destroyed(){
600
+ //tag
601
+ window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
602
+ },
603
+ methods: {
604
+ scan(){
605
+ HostApp.__this__=this,
606
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
607
+ },
608
+ getCode(){
609
+ const datapa = HostApp.getCode().data;
610
+ //tag
611
+ this.$refs.paged.$refs.cri.model.f_meter_no = datapa
612
+
613
+ },
614
+ fun () {
615
+ //tag
616
+ //tag
617
+ },
618
+ iscancel(){
619
+ this.showModal2=false
620
+ this.showModal3=false
621
+ this.planoption=[]
622
+ },
623
+ timeSet(val){
624
+ return val
625
+ },
626
+ async isok(){
627
+ if(this.planoption.length==0){
628
+ this.$showMessage("请选择计划")
629
+ return false
630
+ }
631
+ for (let i = 0; i <this.planoption.length ; i++) {
632
+ if (this.planoption[i]["selected"]==true){
633
+ this.planid=this.planoption[i].value
634
+ break
635
+ }
636
+ }
637
+ if(this.planid==''){
638
+ this.$showMessage("请选择计划")
639
+ return false
640
+ }
641
+ await this.okput()
642
+ },
643
+ async manyisok(){
644
+ if(this.planoption.length==0){
645
+ this.$showMessage("请选择计划")
646
+ return false
647
+ }
648
+ for (let i = 0; i <this.planoption.length ; i++) {
649
+ if (this.planoption[i]["selected"]==true){
650
+ this.planid=this.planoption[i].value
651
+ break
652
+ }
653
+ }
654
+ if(this.planid==''){
655
+ this.$showMessage("请选择计划")
656
+ return false
657
+ }
658
+ await this.manyokput()
659
+ },
660
+ changenull(){
661
+ this.showModal2=false
662
+ this.showModal3=false
663
+ this.planoption=[]
664
+ this.plan=''
665
+ this.check=''
666
+ },
667
+ async okput(){
668
+ let result = this.$androidUtil.bzLogic('UpCheckPlanItemAndroid', {condition:`id='`+this.needid+`'`,f_plan_id:this.planid})
669
+ if (result.code == 200) {
670
+ let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {data:{
671
+ condition:`i.id='`+this.needid+`'`,
672
+ f_plan_id:this.planid,
673
+ switchCheckAll:false,
674
+ checkAll:false,
675
+ f_operator:Vue.user.name
676
+ }
677
+ })
678
+ await this.changenull()
679
+ }
680
+ },
681
+ async manyokput(){
682
+ let condition = `1=1`
683
+ let criteria = {
684
+ items: 'id',
685
+ tablename: 't_check_plan',
686
+ condition: `f_checker_id = '${Vue.user.id}'`,
687
+ groupitem: 'id'
688
+ }
689
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
690
+ if (result.code==200){
691
+ condition = `1=1 and i.f_plan_id in (${result.data.rows.map(row => { return `'${row.id}'` }).join()})`
692
+ }
693
+ let result2 = this.$androidUtil.bzLogic('UpCheckPlanItemAndroid', {condition:`f_plan_id in (${result.data.rows.map(row => { return `'${row.id}'` }).join()})`,f_plan_id:this.planid})
694
+ if (result2.code == 200) {
695
+ let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/UpCheckPlanItem`, {data:{
696
+ columnName:"i.id",
697
+ condition:condition,
698
+ f_plan_id:this.planid,
699
+ switchCheckAll:true,
700
+ param:this.planparam,
701
+ checkAll:true,
702
+ f_operator:Vue.user.name
703
+ }
704
+ })
705
+ await this.changenull()
706
+ }
707
+ },
708
+ async plansearch(){
709
+ this.planoption=[]
710
+ let condition= ` f_plan_year=${new Date().getFullYear()}`
711
+ if(this.check){
712
+ condition += ` and f_checker_id= '${this.check}'`
713
+ }
714
+ if(this.plan){
715
+ condition += ` and f_plan_name like '%${this.plan}%'`
716
+ }
717
+ let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/预约计划下发`, {data:{
718
+ condition:condition,
719
+ f_filialeids:this.f_filialeids,
720
+ groupitem:'',
721
+ orderitem:'id'
722
+ }})
723
+ let resoult=res.data
724
+ for (let i = 0; i < resoult.length; i++) {
725
+ this.planoption.push({label: resoult[i].f_plan_name,selected:false, value: resoult[i].id})
726
+ }
727
+ },
728
+
729
+ select(row, idx) {
730
+ this.$set('planoption[' + idx + '].selected', true)
731
+ for (let i = 0; i <this.planoption.length ; i++) {
732
+ if (i!=idx){
733
+ this.planoption[i]["selected"]=false
734
+ }
735
+ }
736
+ },
737
+ planclose(){
738
+ this.showModal2=false
739
+ this.showModal3=false
740
+ },
741
+ queryplan(val){
742
+ this.needid=val
743
+ this.showModal2 = true
744
+ },
745
+ queryplanmany(){
746
+
747
+ this.showModal3 = true
748
+ },
749
+ reload(){
750
+ // this.getAllArea()
751
+ // this.getAllPlanName()
752
+ this.selfSearch()
753
+ },
754
+ cancelReserve (idx, id) {
755
+ if(Vue.android){
756
+ let res = this.$androidUtil.bzLogic('BookingCheck', {dt: '', id: id})
757
+ this.$set('model.rows[' + idx + '].f_prearranged_date', null)
758
+ if (res.code == 200) {
759
+ this.$showMessage("取消预约成功")
760
+ }
761
+ }else {
762
+ this.$androidUtil.bzLogic('PCbookingCheck', {dt: '', id: id}).then((repanse) => {
763
+ this.$set('model.rows[' + idx + '].f_prearranged_date', null)
764
+ if (repanse.data.code == 200) {
765
+ alert("取消预约成功!")
766
+ }
767
+ })
768
+ }},
769
+ genuineReserve () {
770
+ if(Vue.android){
771
+ if (!this.f_preset_dt) {
772
+ this.$showMessage('请选择一个日期')
773
+ return
774
+ }
775
+ let pdt = this.f_preset_dt.replace('T', ' ')
776
+ let respanse = this.$androidUtil.bzLogic('BookingCheck', {id: this.model.rows[this.param].id, dt: pdt})
777
+ this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
778
+ if(respanse.code == 200) {
779
+ this.$showMessage("预约成功!")
780
+ }
781
+ this.showModal = false
782
+ }else {
783
+ if (!this.f_preset_dt) {
784
+ alert('请选择一个日期')
785
+ return
786
+ }
787
+ let pdt = this.f_preset_dt.replace('T', ' ')
788
+ this.$androidUtil.bzLogic('PCbookingCheck', {id: this.model.rows[this.param].id, dt: pdt}).then((res) => {
789
+ this.$set('model.rows[' + this.param + '].f_prearranged_date', pdt)
790
+ if(res.data.code == 200) {
791
+ alert("预约成功!")
792
+ }
793
+ this.showModal = false
794
+ })
795
+ }
796
+ },
797
+ inspect(row) {
798
+ var _this = this
799
+ try {
800
+ let http = new HttpResetClass()
801
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
802
+ items: 'id',
803
+ tablename: 't_check_plan_item',
804
+ condition: `id = '${row.id}'`,
805
+ orderitem: ' id '
806
+ }}, {resolveMsg: null, rejectMsg: null}).then((getcheckplan) => {
807
+ this.getcheckplandata = getcheckplan.data[0]
808
+ if(this.getcheckplandata){
809
+ if (row.f_no_checkplan != '无计划安检') {
810
+ _this.$resetpost(`${_this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`, {data: {f_userid: row.f_userinfoid}},{resolveMsg: null,rejectMsg: null}).then((response) => {
811
+ row['f_plan_meters'] = response.data
812
+ var pardate = {
813
+ _this:_this,
814
+ title:'安全检查',
815
+ safe:true
816
+ }
817
+ _this.$dispatch('gotoson',pardate)
818
+ //tag
819
+ _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
820
+ }).catch ((msg)=>{
821
+ this.noLineInspect(row)
822
+ this.$showMessage("网络异常,请检查网络后再试!")
823
+ })
824
+ }
825
+ }else {
826
+ this.$showMessage("该用户安检单已被移除,请联系管理员确认!")
827
+ }
828
+ }).catch((e)=>{
829
+ this.noLineInspect(row)
830
+ })
831
+ }catch (e){
832
+ this.noLineInspect(row)
833
+ }
834
+ },
835
+ noLineInspect(row){
836
+ let _this = this
837
+ let criteria = {
838
+ items: ' * ',
839
+ tablename: ' t_plan_item_meter ',
840
+ condition: ` f_plan_item_id = '${row.id}' `,
841
+ orderitem: ' 1 '
842
+ }
843
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_OrderBy', 'criteria': criteria}})
844
+ if(result.code == 200){
845
+ row.f_plan_meters = [result.data.rows[0]]
846
+ var pardate = {
847
+ _this:_this,
848
+ title:'安全检查',
849
+ safe:true
850
+ }
851
+ _this.$dispatch('gotoson',pardate)
852
+ _this.$goto('safecheck-order-v', {f_plan_id: row.f_plan_id, item: row, role: 'inspect',parentPage:'CurrentCreate'}, 'self', _this.reload)
853
+ }
854
+ },
855
+ makeAPhoneCall(phoneNumber) {
856
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
857
+ },
858
+ reserve (idx) {
859
+ this.param = idx
860
+ this.showModal = true
861
+ },
862
+ search(args) {
863
+ this.model.rows = []
864
+ this.model.search(args.condition, args.model)
865
+ },
866
+ selfSearch () {
867
+ this.getPlanCount()
868
+ let condition = ""
869
+ if (Array.isArray(this.$refs.paged.$refs.cri.model.f_residential_area) && this.$refs.paged.$refs.cri.model.f_residential_area.length >0){
870
+ condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area[0]+"'"
871
+ }else if(typeof this.$refs.paged.$refs.cri.model.f_residential_area == 'string' && this.$refs.paged.$refs.cri.model.f_residential_area){
872
+ condition += " and ti.f_residential_area = '"+this.$refs.paged.$refs.cri.model.f_residential_area+"'"
873
+ }
874
+ if(this.$refs.paged.$refs.cri.model.f_building)
875
+ condition += ` and ti.f_building = '${this.$refs.paged.$refs.cri.model.f_building}'`
876
+ if(this.$refs.paged.$refs.cri.model.f_unit)
877
+ condition += ` and ti.f_unit = '${this.$refs.paged.$refs.cri.model.f_unit}'`
878
+ if (this.planName){
879
+ condition += " and f_plan_name like '%"+this.planName +"%'"
880
+ }else {
881
+ if(this.$refs.paged.$refs.cri.model.f_plan_name)
882
+ condition += " and f_plan_name like '%"+this.$refs.paged.$refs.cri.model.f_plan_name +"%'"
883
+ }
884
+ // if(this.$refs.paged.$refs.cri.model.f_plan_year)
885
+ // condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
886
+ // if(this.$refs.paged.$refs.cri.model.f_plan_month)
887
+ // condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
888
+ if(this.$refs.paged.$refs.cri.model.f_userinfo_code)
889
+ condition += " and ti.f_userinfo_code like '%"+this.$refs.paged.$refs.cri.model.f_userinfo_code+"%'"
890
+ if(this.$refs.paged.$refs.cri.model.f_keyword)
891
+ condition += " and ti.f_address like '%"+this.$refs.paged.$refs.cri.model.f_keyword+"%'"
892
+ if(this.$refs.paged.$refs.cri.model.f_user_name)
893
+ condition += " and ti.f_user_name like '%"+this.$refs.paged.$refs.cri.model.f_user_name+"%'"
894
+ if(this.$refs.paged.$refs.cri.model.f_state[0])
895
+ condition += " and ti.f_state='"+this.$refs.paged.$refs.cri.model.f_state[0]+"'"
896
+ if(this.$refs.paged.$refs.cri.model.f_last_state[0])
897
+ condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
898
+ if(this.$refs.paged.$refs.cri.model.f_user_type[0])
899
+ condition += " and ti.f_user_type='"+this.$refs.paged.$refs.cri.model.f_user_type[0]+"'"
900
+ if(this.$refs.paged.$refs.cri.model.f_meter_no)
901
+ condition += " and tm.f_meter_no like '%"+this.$refs.paged.$refs.cri.model.f_meter_no+"%'"
902
+ // if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
903
+ // condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
904
+ if(this.$refs.paged.$refs.cri.model.f_user_phone){
905
+ condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
906
+ }
907
+ if(this.$refs.paged.$refs.cri.model.f_enter_number)
908
+ condition += " and ti.f_enter_number like '%"+this.$refs.paged.$refs.cri.model.f_enter_number+"%'"
909
+ if(this.$refs.paged.$refs.cri.model.f_check_version)
910
+ condition += " and ti.f_check_version <= "+this.$refs.paged.$refs.cri.model.f_check_version
911
+ //tag
912
+ this.model.search("ti.f_no_checkplan = '有计划安检'" + condition)
913
+ },
914
+ getNewOrder(){
915
+ HostApp.__this__ = this
916
+ HostApp.logicWithHint({
917
+ // logic别名,key必须为logic
918
+ 'logic': 'SafeCheckServiceTimeOut',
919
+ // 回调执行方法名,key必须为callback
920
+ 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
921
+ // logic执行需要的业务参数
922
+ 'data': {params: ''},
923
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
924
+ // 执行回调方法传入key为backresult
925
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
926
+ 'backresult': 1
927
+ })
928
+ HostApp.logicWithHint({
929
+ // logic别名,key必须为logic
930
+ 'logic': 'FreshPlanItem',
931
+ // 回调执行方法名,key必须为callback
932
+ 'callback': 'javascript:HostApp.__this__.getNewOrderCallBack()',
933
+ // logic执行需要的业务参数
934
+ 'data': {params: ''},
935
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
936
+ // 执行回调方法传入key为backresult
937
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
938
+ 'backresult': 1
939
+ })
940
+ },
941
+ getNewOrderCallBack() {
942
+ this.selfSearch()
943
+ this.getAllArea()
944
+ this.getAllPlanName()
945
+ },
946
+ hidden() {
947
+ this.criteriaShow = !this.criteriaShow
948
+ },
949
+ getAllArea(){
950
+ this.residentialAreaOptions = []
951
+ this.buildOptions = []
952
+ this.unitOptions = []
953
+ this.$refs.paged.$refs.cri.model.f_unit = ''
954
+ let criteria = {
955
+ items: 'f_residential_area',
956
+ tablename: 't_check_plan_item',
957
+ condition: `f_residential_area IS NOT NULL AND f_residential_area != ''`,
958
+ groupitem: 'f_residential_area'
959
+ }
960
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
961
+ //tag)
962
+ if(result.code == 200){
963
+ result.data.rows.forEach(item => this.residentialAreaOptions.push({label:item.f_residential_area,value:item.f_residential_area}))
964
+ }
965
+ //tag)
966
+ },
967
+ getbuilds(f_residential_area){
968
+ //tag)
969
+ this.buildOptions = []
970
+ this.unitOptions = []
971
+ this.$refs.paged.$refs.cri.model.f_unit = ''
972
+ if(!f_residential_area){
973
+ return
974
+ }
975
+ let criteria = {
976
+ items: 'f_building',
977
+ tablename: 't_check_plan_item',
978
+ condition: `f_building IS NOT NULL AND f_building != '' AND f_residential_area = '${f_residential_area}'`,
979
+ groupitem: 'f_building order by f_building+0'
980
+ }
981
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
982
+ if(result.code == 200){
983
+ result.data.rows.forEach(item => this.buildOptions.push({label:item.f_building,value:item.f_building}))
984
+ }
985
+ this.buildOptions.sort((a,b)=>{
986
+ return Number(a.label)- Number(b.label)
987
+ })
988
+ //tag)
989
+ },
990
+ getUnits(f_building){
991
+ //tag)
992
+ this.unitOptions = []
993
+ this.$refs.paged.$refs.cri.model.f_unit = ''
994
+ if(!f_building){
995
+ return
996
+ }
997
+ let criteria = {
998
+ items: 'f_unit',
999
+ tablename: 't_check_plan_item',
1000
+ condition: `f_unit IS NOT NULL AND f_unit != '' AND f_residential_area = '${this.$refs.paged.$refs.cri.model.f_residential_area}' AND f_building = '${f_building}'`,
1001
+ groupitem: 'f_unit'
1002
+ }
1003
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1004
+ if(result.code == 200){
1005
+ result.data.rows.forEach(item => this.unitOptions.push({label:item.f_unit,value:item.f_unit}))
1006
+ }
1007
+ },
1008
+ getPlanCount(){
1009
+ this.upcomingCount = 0
1010
+ this.tempSaveCount = 0
1011
+ this.doneCount = 0
1012
+ this.allPlanCount = 0
1013
+ let criteria = {
1014
+ items: 'count(id) count',
1015
+ tablename: 't_check_plan_item',
1016
+ condition: `f_state = '未检'`,
1017
+ groupitem: 'f_state'
1018
+ }
1019
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1020
+ if(result.code && result.code == 200){
1021
+ if(result.data.rows[0] && !isNaN(result.data.rows[0].count)) {
1022
+ this.upcomingCount = result.data.rows[0].count
1023
+ }
1024
+ }
1025
+ criteria = {
1026
+ items: 'count(id) count',
1027
+ tablename: 't_check_plan_item',
1028
+ condition: `(f_complete = '' or f_complete is null or f_complete = '未完成') AND f_state = '已检'`,
1029
+ groupitem: 'f_state'
1030
+ }
1031
+ result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1032
+ if(result.code && result.code == 200){
1033
+ if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
1034
+ this.tempSaveCount = result.data.rows[0].count
1035
+ }
1036
+ }
1037
+ criteria = {
1038
+ items: 'count(id) count',
1039
+ tablename: 't_check_plan_item',
1040
+ condition: `f_complete = '已完成' AND f_state = '已检'`,
1041
+ groupitem: 'f_state'
1042
+ }
1043
+ result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1044
+ if(result.code && result.code == 200){
1045
+ if(result.data.rows[0] && !isNaN(result.data.rows[0].count)){
1046
+ this.doneCount = result.data.rows[0].count
1047
+ }
1048
+ }
1049
+ this.allPlanCount = this.upcomingCount + this.tempSaveCount + this.doneCount
1050
+
1051
+ //tag
1052
+ //tag
1053
+ //tag
1054
+ //tag
1055
+ },
1056
+ getAllPlanName(){
1057
+ this.planNameOptions = []
1058
+ this.$refs.paged.$refs.cri.model.f_plan_name = ''
1059
+ let criteria = {
1060
+ items: 'f_plan_name',
1061
+ tablename: 't_check_plan',
1062
+ condition: `f_plan_name IS NOT NULL AND f_plan_name != ''`,
1063
+ groupitem: 'f_plan_name'
1064
+ }
1065
+ let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_GroupBy', 'criteria': criteria}})
1066
+ //tag)
1067
+ if(result.code == 200){
1068
+ result.data.rows.forEach(item => this.planNameOptions.push({label:item.f_plan_name,value:item.f_plan_name}))
1069
+ }
1070
+ //tag)
1071
+ },
1072
+ setPlanParam(detailsType, event) {
1073
+ if (event.srcElement.checked) {
1074
+ this.planparam.push(detailsType)
1075
+ //tag
1076
+ } else {
1077
+ if(this.planparam.length>0){
1078
+ let planid= this.planparam.findIndex((value) => {
1079
+ return value === detailsType
1080
+ })
1081
+ this.planparam.splice(planid, 1)
1082
+ //tag
1083
+
1084
+ }
1085
+
1086
+ }
1087
+ }
1088
+ }
1089
+ }
1090
+ </script>