safecheck-client 4.0.0-86 → 4.0.0-88

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 (233) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  4. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  5. package/src/components/NewDefectList/DefectListNew.vue +0 -3
  6. package/src/components/android/AddPlanItem.vue +447 -447
  7. package/src/components/android/AddPlanItemYy.vue +451 -451
  8. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  9. package/src/components/android/AndroidDefectDetails.vue +740 -740
  10. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  11. package/src/components/android/Devices.vue +327 -327
  12. package/src/components/android/Devicesm.vue +327 -327
  13. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  14. package/src/components/android/PhoneRecordInfo.vue +113 -113
  15. package/src/components/android/PhoneSellInfo.vue +113 -113
  16. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  17. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  18. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  19. package/src/components/android/SafePlanItem.vue +509 -509
  20. package/src/components/android/examples/SafeListExamples.vue +296 -296
  21. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  22. package/src/components/android/recheck/Recheck.vue +402 -402
  23. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  24. package/src/components/checkplan/checkmsg.vue +459 -459
  25. package/src/components/defect/DefectList.vue +507 -507
  26. package/src/components/defect/DefectListWeixiu.vue +484 -484
  27. package/src/components/filialCircle/CircleList.vue +139 -139
  28. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  29. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  30. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  31. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  32. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  33. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  34. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  35. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  36. package/src/components/pc/AnnouncementPC.vue +524 -524
  37. package/src/components/pc/DefectList.vue +742 -742
  38. package/src/components/pc/DeviceChange.vue +1068 -1068
  39. package/src/components/pc/NewCheckpaper.vue +2 -2
  40. package/src/components/pc/SafeVisitInfo.vue +261 -261
  41. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  42. package/src/components/report/HiddenSituation.vue +165 -165
  43. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  44. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  45. package/src/components/rongcheng/DefectList.vue +560 -560
  46. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  47. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  48. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  49. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  50. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  51. package/src/components/shaoguan/DefectList.vue +473 -473
  52. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  53. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  54. package/src/components/userfile/SecurityAudit.vue +243 -243
  55. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  56. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  57. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  58. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  59. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  60. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  61. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  62. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  63. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  64. package/src/filiale/bayan/android/Edit.vue +132 -132
  65. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  66. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  67. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  68. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  69. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  70. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  71. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  72. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  73. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  74. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  75. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  76. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  77. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  78. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  79. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  80. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  81. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  82. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  83. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  84. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  85. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  86. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  87. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  88. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  89. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  90. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  91. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  92. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  93. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  94. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  95. package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +2 -9
  96. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  97. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  98. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  99. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  100. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  101. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  102. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  103. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  104. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  105. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  106. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  107. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  108. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  109. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  110. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  111. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  112. package/src/filiale/meihekou/android/CurrentCreate.vue +1097 -1097
  113. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1306 -1306
  114. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2409 -2409
  115. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  116. package/src/filiale/meihekou/pc/NewCheckpaper.vue +1959 -1959
  117. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  118. package/src/filiale/meihekou/pc.js +13 -13
  119. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  120. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  121. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  122. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  123. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  124. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  125. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  126. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  127. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  128. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  129. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  130. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  131. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  132. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  133. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  134. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  135. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  136. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  137. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  138. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  139. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  140. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  141. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  142. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  143. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  144. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  145. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  146. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  147. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  148. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  149. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  150. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  151. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  152. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  153. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  154. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  155. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  156. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  157. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  158. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  159. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  160. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  161. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  162. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  163. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  164. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  165. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  166. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  167. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  168. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  169. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  170. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  171. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  172. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  173. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  174. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  175. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  176. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  177. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  178. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  179. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  180. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  181. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  182. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  183. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  184. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  185. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  186. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  187. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  188. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  189. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  190. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  191. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  192. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  193. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  194. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  195. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  196. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  197. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  198. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  199. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  200. package/src/filiale/xiangyuanzhongai/android/AndroidDefectDeal.vue +634 -0
  201. package/src/filiale/xiangyuanzhongai/android/SafecheckUserInfo.vue +3 -3
  202. package/src/filiale/xiangyuanzhongai/android.js +14 -13
  203. package/src/filiale/xiangyuanzhongai/pc/DefectDeal.vue +2 -2
  204. package/src/filiale/xiangyuanzhongai/pc/PaperList.vue +2 -6
  205. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  206. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  207. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  208. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  209. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  210. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  211. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  212. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  213. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  214. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  215. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  216. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  217. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  218. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  219. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  220. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  221. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  222. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  223. package/src/filiale/yunchengminsheng/android.js +15 -15
  224. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  225. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  226. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  227. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  228. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  229. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  230. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  231. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  232. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  233. package/src/main.js +33 -32
@@ -1,740 +1,740 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
-
8
- .app-row {
9
- background-color: white;
10
- padding: 10px 10px 0 10px;
11
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
- }
13
-
14
- .search_input {
15
- border: 0;
16
- outline: none;
17
- }
18
-
19
- .font {
20
- font: 15px PingFang-SC-Medium;
21
- color: #666666;
22
- }
23
-
24
- .input-font {
25
- font: 15px PingFang-SC-Medium;
26
- color: #333333;
27
- }
28
-
29
- .btn-font {
30
- font: 600 16px PingFang-SC-Bold;
31
- color: #499EDF;
32
- }
33
-
34
- .btn-color {
35
- background-color: #FFFFFF;
36
- border-radius: 10px;
37
- border: 1px solid #499EDF;
38
- }
39
-
40
- .app-text {
41
- font-size: 12px;
42
- }
43
-
44
- .panel-self {
45
- border-radius: 10px;
46
- border: 1px solid #499EDF;
47
- background-color: #F8F8F8;
48
- }
49
-
50
- .yybtn-color {
51
- background-color: #499edf;
52
- border-radius: 4px;
53
- border: 1px solid #499EDF;
54
- color: #FFFFFF;
55
- font: 14px PingFang-SC-Bold;
56
- }
57
-
58
- .qxbtn-color {
59
- background-color: #FFFFFF;
60
- border-radius: 4px;
61
- color: #499edf;
62
- font: 14px PingFang-SC-Bold;
63
- border: 1px solid #499EDF;
64
- }
65
-
66
- .button_shrink_top {
67
- width: 35px;
68
- height: 35px;
69
- background-size: 100%;
70
- background-image: url("../../../static/newStyle/stretch_top.png")
71
- }
72
-
73
- .button_shrink_bottom {
74
- width: 35px;
75
- height: 35px;
76
- background-size: 100%;
77
- background-image: url("../../../static/newStyle/stretch_bottom.png")
78
- }
79
-
80
- .button_shrink_left {
81
- width: 35px;
82
- height: 35px;
83
- background-size: 100%;
84
- background-image: url("../../../static/newStyle/stretch_left.png")
85
- }
86
-
87
- .button_shrink_right {
88
- width: 35px;
89
- height: 35px;
90
- background-size: 100%;
91
- background-image: url("../../../static/newStyle/stretch_right.png")
92
- }
93
- </style>
94
- <template>
95
- <div style="height: auto;width: 100%">
96
- <criteria-paged :model="model" v-ref:paged>
97
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
98
- <div partial>
99
- <form>
100
- <div class="row app-row">
101
- <div class="col-xs-4">
102
- <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
103
- <label class="font text-left">用户姓名:</label>
104
- </div>
105
- <div class="col-xs-8">
106
- <input class="search_input input-font" v-model=model.f_user_name
107
- condition="tcp.f_user_name like '%{}%'"/>
108
- </div>
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="tcp.f_userinfo_code like '%{}%'"/>
118
- </div>
119
- </div>
120
- <div class="row app-row">
121
- <div class="col-xs-4">
122
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
123
- <label for="f_userinfo_code" class="font text-left">安检人员:</label>
124
- </div>
125
- <div class="col-xs-8">
126
- <input id="f_userinfo_code" class="search_input input-font"
127
- v-model=model.f_checker_name condition="tcp.f_checker_name like '%{}%'"/>
128
- </div>
129
- </div>
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"
137
- v-model=model.f_address condition="tcp.f_address like '%{}%'"/>
138
- </div>
139
- </div>
140
- <div class="row app-row">
141
- <div class="col-xs-4">
142
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
143
- <label class="font text-left">隐患项:</label>
144
- </div>
145
- <div class="col-xs-8">
146
- <input class="search_input input-font"
147
- v-model=model.f_item_name condition=" tdi.f_item_name like '%{}%'"/>
148
- </div>
149
- </div>
150
- <div class="row app-row">
151
- <div class="col-xs-4">
152
- <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
153
- <label for="f_state" class="font text-left">起始时间:</label>
154
- </div>
155
- <datepicker id="f_start_date"
156
- placeholder='起始时间'
157
- :value.sync="model.f_start_date"
158
- :disabled-days-of-Week="[]"
159
- v-model="model.f_start_date"
160
- class="input-font col-xs-8"
161
- :format="'yyyy-MM-dd 00:00:00'"
162
- :show-reset-button="reset" readonly="readonly">
163
- </datepicker>
164
- </div>
165
- <div class="row app-row">
166
- <div class="col-xs-4">
167
- <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
168
- <label for="f_state" class="font text-left">结束时间:</label>
169
- </div>
170
- <datepicker id="f_end_date"
171
- placeholder='结束时间'
172
- :value.sync="model.f_end_date"
173
- :disabled-days-of-Week="[]"
174
- v-model="model.f_end_date"
175
- class="input-font col-xs-8"
176
- :format="'yyyy-MM-dd 23:59:00'"
177
- :show-reset-button="reset" readonly="readonly">
178
- </datepicker>
179
- </div>
180
- <div class="row app-row">
181
- <div class="col-xs-4">
182
- <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
183
- <label for="f_user_type" class="font text-left">用户类型:</label>
184
- </div>
185
- <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
186
- :width="'60%'"
187
- :options='$parent.$parent.user_types' placeholder='请选择用户类型'
188
- v-model="model.f_user_type" condition="f_user_type = '{}'" close-on-select
189
- clear-button></v-select>
190
- </div>
191
-
192
- <div class="row app-row">
193
- <div class="col-xs-4">
194
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
195
- <label class="font text-left">处理人:</label>
196
- </div>
197
- <div class="col-xs-8">
198
- <input class="search_input input-font"
199
- v-model=model.f_repairman condition="f_repairman like '%{}%'"/>
200
- </div>
201
- </div>
202
- <div class="row app-row">
203
- <div class="col-xs-4">
204
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
205
- <label class="font text-left">处理时间:</label>
206
- </div>
207
- <div class="col-xs-8">
208
- <datepicker id="startDate" placeholder="处理开始日期"
209
- style="width: 60%!important;"
210
- v-model="model.sq_startDate"
211
- :value.sync="model.sq_startDate"
212
- :format="'yyyy-MM-dd 00:00:00'"
213
- :show-reset-button="true"
214
- condition="f_repair_date >= '{}'">
215
- </datepicker>
216
- </div>
217
- </div>
218
- <div class="row app-row">
219
- <div class="col-xs-4">
220
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
221
- <label class="font text-left">处理时间:</label>
222
- </div>
223
- <div class="col-xs-8">
224
- <datepicker id="endDate" placeholder="处理结束日期"
225
- style="width: 60%!important;"
226
- v-model="model.sq_endDate"
227
- :value.sync="model.sq_endDate"
228
- :format="'yyyy-MM-dd 23:59:59'"
229
- :show-reset-button="true"
230
- condition="f_repair_date<= '{}'">
231
- </datepicker>
232
- </div>
233
- </div>
234
- <div class="row app-row">
235
- <div class="col-xs-4">
236
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
237
- <label class="font text-left">处理状态:</label>
238
- </div>
239
- <div class="col-xs-8">
240
- <v-select :value.sync="model.is_repair" class="input-font"
241
- :options='$parent.$parent.is_repairs' placeholder='处理状态' :value-single="true"
242
- v-model="is_repair" close-on-select clear-button></v-select>
243
- </div>
244
- </div>
245
- <div class="row text-center" style="margin-top: 20px;">
246
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
247
- @click="$parent.$parent.selfSearch">查询
248
- </button>
249
- <div style="float: right;margin-right: 3% " class="button_spacing"
250
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
251
- @click="$parent.$parent.hidden()"></div>
252
- </div>
253
- <div style="height:30px;"></div>
254
- </form>
255
- </div>
256
- </criteria>
257
- <list :model="model" partial='list'>
258
- <div partial>
259
- <div class="auto app-text" style="margin-top: 5px;">
260
- <div class="panel" style="padding: 10px 10px 5px 10px;">
261
- <div class="panel-body panel-self">
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-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
265
- </div>
266
- <div class="col-xs-12">
267
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
268
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
269
- </div>
270
- <div class="col-xs-12">
271
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
272
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
273
- </div>
274
- <div class="col-xs-12">
275
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>安检时间:</b></p>
276
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_offsite_time }}</p>
277
- </div>
278
- <div class="col-xs-12">
279
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
280
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
281
- </div>
282
- <div class="col-xs-12">
283
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>所属安检:</b></p>
284
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
285
- </div>
286
- <div class="col-xs-12">
287
- <p class="panel-title col-xs-5 text-left font"><b>检&ensp;查&ensp;项:</b></p>
288
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_device_type }}</p>
289
- </div>
290
- <div class="col-xs-12">
291
- <p class="panel-title col-xs-5 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
292
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_name }}</p>
293
- </div>
294
- <div class="col-xs-12">
295
- <p class="panel-title col-xs-5 text-left font"><b>隐患原因:</b></p>
296
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_value }}</p>
297
- </div>
298
- <div class="col-xs-12">
299
- <p class="panel-title col-xs-5 text-left font"><b>处理人:</b></p>
300
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repairman }}</p>
301
- </div>
302
- <div class="col-xs-12">
303
- <p class="panel-title col-xs-5 text-left font"><b>处理时间:</b></p>
304
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date }}</p>
305
- </div>
306
- <div class="col-xs-12">
307
- <p class="panel-title col-xs-5 text-left font"><b>处理状态:</b></p>
308
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date == '****-**-** **:**:**' ? '未处理' : '已处理' }}</p>
309
- </div>
310
- <div class="col-xs-12">
311
- <p class="panel-title col-xs-5 text-left font"><b>备注:</b></p>
312
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_comments }}</p>
313
- </div>
314
- <!-- <div class="col-xs-12">-->
315
- <!-- <button type="button" name="button" class="btn btn-primary"-->
316
- <!-- style="background-color:#499edf;float: right"-->
317
- <!-- @click="$parent.$parent.$parent.openshowModal(row)">查看-->
318
- <!-- </button>-->
319
- <!-- <button type="button" name="button" class="btn btn-primary"-->
320
- <!-- style="background-color:#499edf;float: right;margin-right:10px;"-->
321
- <!-- @click="$parent.$parent.$parent.openshowModal1(row)">处理-->
322
- <!-- </button>-->
323
- <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
324
- <!-- </div>-->
325
- </div>
326
- </div>
327
- </div>
328
- </div>
329
- </list>
330
- </criteria-paged>
331
- </div>
332
- <modal :show.sync="showModal">
333
- <div slot="modal-header" class="modal-header">
334
- <h4 class="modal-title">
335
- 隐患照片
336
- </h4>
337
- </div>
338
- <div slot="modal-body" class="modal-body">
339
- <div class="from-group">
340
- <div class="row">
341
- <div class="col-md-6">
342
- <img-self v-if="row.f_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_path" width="300" height="400"></img-self>
343
- <img-self v-if="row.f_p1_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p1_path" width="300" height="400"></img-self>
344
- <img-self v-if="row.f_p2_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p2_path" width="300" height="400"></img-self>
345
- </div>
346
- </div>
347
- </div>
348
- </div>
349
- <div slot="modal-footer" class="modal-footer">
350
- <button type="button" class="btn btn-default" @click="closeshowModal">确认</button>
351
- </div>
352
- </modal>
353
- <modal :show.sync="showModal1">
354
- <div slot="modal-header" class="modal-header">
355
- <h4 class="modal-title">
356
- 处理结果
357
- </h4>
358
- </div>
359
- <div slot="modal-body" class="modal-body">
360
- <div class="row" style="margin-bottom: 10px">
361
- <p class="panel-title col-xs-3 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
362
- <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_name }}</p>
363
- </div>
364
- <div class="row" style="margin-bottom: 10px">
365
- <p class="panel-title col-xs-3 text-left font"><b>隐患原因:</b></p>
366
- <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_value }}</p>
367
- </div>
368
- <div class="form-group col-sm-12">
369
- <div class="auto">
370
- <div class="panel" style="padding: 10px 10px 5px 10px;">
371
- <div class="panel-body panel-self"
372
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
373
- <img-self :src="deal.f_deal_path" alt="整改照片" :width="140" :height="170" capture="camera"
374
- type="file"></img-self>
375
- <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
376
- <img src="../../assets/remove.png" @click="delfile('f_deal_path', deal.f_deal_path)"></img>
377
- <button type="button" name="button" class="btn btn-primary btn-photo"
378
- @click="takePic('f_deal_path','整改照片')">拍照
379
- </button>
380
- </div>
381
- </div>
382
- <div class="panel-body panel-self"
383
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
384
- <img-self :src="deal.f_other_dealpath1" alt="整改照片" :width="140" :height="170" capture="camera"
385
- type="file"></img-self>
386
- <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
387
- <img src="../../assets/remove.png" @click="delfile('f_other_dealpath1', deal.f_other_dealpath1)"></img>
388
- <button type="button" name="button" class="btn btn-primary btn-photo"
389
- @click="takePic('f_other_dealpath1','整改照片')">拍照
390
- </button>
391
- </div>
392
- </div>
393
- <div class="panel-body panel-self"
394
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
395
- <img-self :src="deal.f_other_dealpath2" alt="整改照片" :width="140" :height="170" capture="camera"
396
- type="file"></img-self>
397
- <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
398
- <img src="../../assets/remove.png" @click="delfile('f_other_dealpath2', deal.f_other_dealpath2)"></img>
399
- <button type="button" name="button" class="btn btn-primary btn-photo"
400
- @click="takePic('f_other_dealpath2','整改照片')">拍照
401
- </button>
402
- </div>
403
- </div>
404
- </div>
405
- </div>
406
- </div>
407
- <div class="form-group col-sm-12" v-if="isNeedDealSign">
408
- <p class="panel-title text-left font" style="text-align: center">用户签名:</p>
409
- <div class="auto">
410
- <div class="panel" style="padding: 10px 10px 5px 10px;">
411
- <div class="panel-body panel-self"
412
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
413
- <img :src="deal.f_dealsign_path" :width="200" :height="150"/>
414
- <div class="row text-right div-photo" style="height: 50px;margin-top: 60px">
415
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
416
- </div>
417
- </div>
418
- </div>
419
- </div>
420
- </div>
421
- <div class="row">
422
- <div class="col-xs-2">
423
- <p class="panel-title text-left font" style="text-align: center">处理结果</p>
424
- </div>
425
- <div class="col-xs-9">
426
- <textarea class="input-font " v-model=deal.f_deal_remark style="width: 100%"></textarea>
427
- </div>
428
- </div>
429
- <div v-if="isCancelLimitGas" style="display: flex;align-items: end;height: 30px;gap: 10px;padding-left: 16px;">
430
- <input type="checkbox" v-model="deletebacklistisselect"/>
431
- <div style="height: 18px">取消限制该用户购气</div>
432
- </div>
433
- </div>
434
- <div slot="modal-footer" class="modal-footer">
435
- <button type="button" class="btn btn-default" @click="commitDealDefect">确认</button>
436
- <button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
437
- </div>
438
- </modal>
439
- </template>
440
-
441
- <script>
442
- import Vue from 'vue'
443
- import {HttpResetClass, PagedList} from 'vue-client'
444
- import * as Util from '../Util'
445
-
446
- export default {
447
- title: '隐患明细',
448
- data() {
449
- return {
450
- row:{},
451
- is_repairs:[{label: '请选择', value: ''},
452
- {label: '已处理', value: '已处理'},
453
- {label: '未处理', value: '未处理'}],
454
- showModal: false,
455
- showModal1: false,
456
- showimg: '',
457
- deal: {
458
- result: {},
459
- f_deal_path: '',
460
- f_other_dealpath1: '',
461
- f_other_dealpath2: '',
462
- f_deal_remark: '',
463
- f_dealsign_path: '', //签名
464
- f_dealer: Vue.user.name,
465
- f_dealer_id: Vue.user.id
466
- },
467
- user_types: [
468
- {label: '请选择用户类型', value: ''},
469
- {label: '民用', value: '民用'},
470
- {label: '非民用', value: '非民用'}
471
- ],
472
- f_filialeids: '',
473
- model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/defectDetails`, 20, {
474
- condition: 'this.condition',
475
- f_filialeids: `('${Vue.user.orgid}')`,
476
- f_checker_id: `'${Vue.user.id}'`
477
- }),
478
- criteriaShow: false,
479
- isNeedDealSign: this.$appdata.getSingleValue('隐患处理是否需要签名') == 'true',
480
- isCancelLimitGas: this.$appdata.getSingleValue('隐患处理-取消限制购气') == '是',
481
- deletebacklistisselect: false
482
- }
483
- },
484
- ready() {
485
- this.selfSearch()
486
- },
487
- methods: {
488
- async deletebacklist() {
489
- ////tag)
490
- let http = new HttpResetClass()
491
- ////tag
492
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
493
- data: {
494
- items: "*",
495
- tablename: "t_userinfo",
496
- condition: `f_userinfo_code = ${this.deal.result.f_userinfo_code}`,
497
- orderitem: "f_userinfo_code"
498
- }
499
- }, {resolveMsg: null, rejectMsg: null})
500
- ////tag)
501
- ////tag
502
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
503
- data: {
504
- "f_operat_type": "取消拉黑",
505
- "f_state": "有效",
506
- "f_user_name": this.deal.result.f_user_name,
507
- "f_comments": '',
508
- "f_operator": Vue.user.name,
509
- "f_operatorid": Vue.user.id,
510
- "f_orgid": Vue.user.orgid,
511
- "f_orgname": Vue.user.orgs,
512
- "f_depid": Vue.user.depids,
513
- "f_depname": Vue.user.deps,
514
- "f_describe": `${Vue.user.name}对用户${this.deal.result.f_user_name}进行取消拉黑`,
515
- "f_userinfo_id": {
516
- "f_userinfo_id": res1.data[0].f_userinfo_id,
517
- "f_user_state": "正常",
518
- "version": res1.data[0].version
519
- },
520
- "f_limit_times":"",
521
- "f_limit_value":""
522
- }
523
- }, {resolveMsg: null, rejectMsg: null})
524
- },
525
- // 签名回调
526
- signCallback(prop, fileName) {
527
- console.log("签名回调地址" + fileName)
528
- // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
529
- HostApp.__this__.$set('deal.f_dealsign_path', fileName)
530
- HostApp.__callback__ = null
531
- HostApp.__this__ = null
532
- },
533
- // 用户签名
534
- sign() {
535
- if (!this.deal.f_deal_path) {
536
- this.$showMessage('请先拍摄处理后照片!!!')
537
- return
538
- }
539
- this.delAudioFile('f_dealsign_path', this.deal.f_dealsign_path)
540
- let prop = 'f_dealsign_path'
541
- let idx = 'aofeng'
542
- let fileName
543
- if (!this.deal.f_dealsign_path) {
544
- fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
545
- } else {
546
- fileName = Util.getFileName(this.deal.f_dealsign_path)
547
- }
548
- HostApp.__callback__ = this.signCallback
549
- HostApp.__this__ = this
550
- HostApp.getSignature({
551
- file: fileName,
552
- requestCode: 111,
553
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
554
- })
555
- },
556
- delAudioFile(prop, fileName) {
557
- if (!fileName)
558
- return
559
- else {
560
- HostApp.delfile(fileName)
561
- this.deal[prop] = null
562
- }
563
- },
564
- commitDealDefect() {
565
- //tag
566
- //tag)
567
- // if (!this.deal.f_deal_path) {
568
- // this.$showMessage('处理后照片必须上传')
569
- // return
570
- // }
571
- if (this.isNeedDealSign && !this.deal.f_dealsign_path) {
572
- this.$showMessage('签名必须上传')
573
- return
574
- }
575
- if (this.deletebacklistisselect){
576
- this.deletebacklist()
577
- }
578
- this.deal.f_other_dealpath = this.deal.f_deal_path
579
- HostApp.__this__ = this
580
- HostApp.logicWithHint({
581
- 'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
582
- 'data': this.deal, 'backresult': 1
583
- })
584
- },
585
- commitCallBack(jo) {
586
- //tag
587
- //tag)
588
- if (jo.state == 'ok') {
589
- let ress = JSON.parse(jo.result)
590
- if (ress.code == 200) {
591
- this.$showMessage(ress.msg)
592
- this.closeshowModal1()
593
- } else {
594
- this.$showMessage(ress.msg)
595
- }
596
- } else {
597
- this.$showMessage('本地服务调用失败')
598
- }
599
- },
600
- delfile(prop, fileName) {
601
- if (fileName == Vue.nopic)
602
- return
603
- else {
604
- HostApp.delfile(fileName)
605
- this.deal[prop] = Vue.nopic
606
- }
607
- },
608
- openshowModal(val) {
609
- this.row = val
610
- this.showModal = true
611
- },
612
- closeshowModal() {
613
- this.showimg = ''
614
- this.showModal = false
615
- },
616
- openshowModal1(val) {
617
- this.deal.result = val
618
- //tag
619
- //tag
620
- this.deletebacklistisselect = false
621
- this.showModal1 = true
622
- },
623
- closeshowModal1() {
624
- this.deal = {
625
- result: {},
626
- f_deal_path: '',
627
- f_other_dealpath1: '',
628
- f_other_dealpath2: '',
629
- f_deal_remark: '',
630
- f_dealsign_path: '', //签名
631
- f_dealer: Vue.user.name,
632
- f_dealer_id: Vue.user.id
633
- }
634
- this.showModal1 = false
635
- this.selfSearch()
636
- },
637
- cameraCallBack(prop, fileName) {
638
- HostApp.__this__.$set( 'deal.'+prop+'', fileName)
639
- HostApp.__callback__ = null
640
- HostApp.__this__ = null
641
- },
642
- takePic(prop, title) {
643
- HostApp.__callback__ = this.cameraCallBack
644
- HostApp.__this__ = this
645
- let fileName
646
- if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
647
- fileName = Util.guid() + '-' + prop + '.jpg'
648
- } else {
649
- fileName = Util.getFileName(this.deal[prop])
650
- }
651
- //tag
652
- //tag
653
- HostApp._open_a_page({
654
- type: 'boomerang',
655
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
656
- param: {
657
- file: fileName,
658
- requestCode: 111,
659
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
661
- }
662
- })
663
- },
664
- selfSearch() {
665
-
666
- let condition = "1=1 "
667
- if (this.$refs.paged.$refs.cri.model.f_user_name) {
668
- if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
669
- condition += " and f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
670
- }
671
- }
672
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
673
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
674
- condition += " and f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
675
- }
676
- }
677
- if (this.$refs.paged.$refs.cri.model.f_item_name) {
678
- if (this.$refs.paged.$refs.cri.model.f_item_name.toString().trim()) {
679
- condition += " and f_item_name like '" + this.$refs.paged.$refs.cri.model.f_item_name + "%'"
680
- }
681
- }
682
- if (this.$refs.paged.$refs.cri.model.f_checker_name) {
683
- if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
684
- condition += " and f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
685
- }
686
- }
687
- if (this.$refs.paged.$refs.cri.model.f_address) {
688
- if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
689
- condition += " and f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
690
- }
691
- }
692
- if (this.$refs.paged.$refs.cri.model.f_start_date) {
693
- if (this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()) {
694
- condition += " and f_offsite_time > '" + this.$refs.paged.$refs.cri.model.f_start_date + "'"
695
- }
696
- }
697
- if (this.$refs.paged.$refs.cri.model.f_end_date) {
698
- if (this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()) {
699
- condition += " and f_offsite_time < '" + this.$refs.paged.$refs.cri.model.f_end_date + "'"
700
- }
701
- }
702
- if (this.$refs.paged.$refs.cri.model.f_user_type) {
703
- if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
704
- condition += " and f_check_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
705
- }
706
- }
707
- if (this.$refs.paged.$refs.cri.model.f_repairman) {
708
- if (this.$refs.paged.$refs.cri.model.f_repairman.toString().trim()) {
709
- condition += " and f_repairman like '%" + this.$refs.paged.$refs.cri.model.f_repairman + "%'"
710
- }
711
- }
712
- if (this.$refs.paged.$refs.cri.model.sq_endDate) {
713
- if (this.$refs.paged.$refs.cri.model.sq_endDate.toString().trim()) {
714
- condition += " and f_repair_date <= '" + this.$refs.paged.$refs.cri.model.sq_endDate + "'"
715
- }
716
- }
717
- if (this.$refs.paged.$refs.cri.model.sq_startDate) {
718
- if (this.$refs.paged.$refs.cri.model.sq_startDate.toString().trim()) {
719
- condition += " and f_repair_date >= '" + this.$refs.paged.$refs.cri.model.sq_startDate + "'"
720
- }
721
- }
722
- if (this.$refs.paged.$refs.cri.model.is_repair) {
723
- if (this.$refs.paged.$refs.cri.model.is_repair == '已处理') {
724
- condition += " and f_repair_date != '****-**-** **:**:**'"
725
- }else if (this.$refs.paged.$refs.cri.model.is_repair == '未处理'){
726
- condition += " and f_repair_date = '****-**-** **:**:**'"
727
- }
728
- }
729
-
730
-
731
- //tag
732
- this.model.search(condition)
733
- },
734
-
735
- hidden() {
736
- this.criteriaShow = !this.criteriaShow
737
- }
738
- }
739
- }
740
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+
8
+ .app-row {
9
+ background-color: white;
10
+ padding: 10px 10px 0 10px;
11
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
+ }
13
+
14
+ .search_input {
15
+ border: 0;
16
+ outline: none;
17
+ }
18
+
19
+ .font {
20
+ font: 15px PingFang-SC-Medium;
21
+ color: #666666;
22
+ }
23
+
24
+ .input-font {
25
+ font: 15px PingFang-SC-Medium;
26
+ color: #333333;
27
+ }
28
+
29
+ .btn-font {
30
+ font: 600 16px PingFang-SC-Bold;
31
+ color: #499EDF;
32
+ }
33
+
34
+ .btn-color {
35
+ background-color: #FFFFFF;
36
+ border-radius: 10px;
37
+ border: 1px solid #499EDF;
38
+ }
39
+
40
+ .app-text {
41
+ font-size: 12px;
42
+ }
43
+
44
+ .panel-self {
45
+ border-radius: 10px;
46
+ border: 1px solid #499EDF;
47
+ background-color: #F8F8F8;
48
+ }
49
+
50
+ .yybtn-color {
51
+ background-color: #499edf;
52
+ border-radius: 4px;
53
+ border: 1px solid #499EDF;
54
+ color: #FFFFFF;
55
+ font: 14px PingFang-SC-Bold;
56
+ }
57
+
58
+ .qxbtn-color {
59
+ background-color: #FFFFFF;
60
+ border-radius: 4px;
61
+ color: #499edf;
62
+ font: 14px PingFang-SC-Bold;
63
+ border: 1px solid #499EDF;
64
+ }
65
+
66
+ .button_shrink_top {
67
+ width: 35px;
68
+ height: 35px;
69
+ background-size: 100%;
70
+ background-image: url("../../../static/newStyle/stretch_top.png")
71
+ }
72
+
73
+ .button_shrink_bottom {
74
+ width: 35px;
75
+ height: 35px;
76
+ background-size: 100%;
77
+ background-image: url("../../../static/newStyle/stretch_bottom.png")
78
+ }
79
+
80
+ .button_shrink_left {
81
+ width: 35px;
82
+ height: 35px;
83
+ background-size: 100%;
84
+ background-image: url("../../../static/newStyle/stretch_left.png")
85
+ }
86
+
87
+ .button_shrink_right {
88
+ width: 35px;
89
+ height: 35px;
90
+ background-size: 100%;
91
+ background-image: url("../../../static/newStyle/stretch_right.png")
92
+ }
93
+ </style>
94
+ <template>
95
+ <div style="height: auto;width: 100%">
96
+ <criteria-paged :model="model" v-ref:paged>
97
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
98
+ <div partial>
99
+ <form>
100
+ <div class="row app-row">
101
+ <div class="col-xs-4">
102
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
103
+ <label class="font text-left">用户姓名:</label>
104
+ </div>
105
+ <div class="col-xs-8">
106
+ <input class="search_input input-font" v-model=model.f_user_name
107
+ condition="tcp.f_user_name like '%{}%'"/>
108
+ </div>
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="tcp.f_userinfo_code like '%{}%'"/>
118
+ </div>
119
+ </div>
120
+ <div class="row app-row">
121
+ <div class="col-xs-4">
122
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
123
+ <label for="f_userinfo_code" class="font text-left">安检人员:</label>
124
+ </div>
125
+ <div class="col-xs-8">
126
+ <input id="f_userinfo_code" class="search_input input-font"
127
+ v-model=model.f_checker_name condition="tcp.f_checker_name like '%{}%'"/>
128
+ </div>
129
+ </div>
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"
137
+ v-model=model.f_address condition="tcp.f_address like '%{}%'"/>
138
+ </div>
139
+ </div>
140
+ <div class="row app-row">
141
+ <div class="col-xs-4">
142
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
143
+ <label class="font text-left">隐患项:</label>
144
+ </div>
145
+ <div class="col-xs-8">
146
+ <input class="search_input input-font"
147
+ v-model=model.f_item_name condition=" tdi.f_item_name like '%{}%'"/>
148
+ </div>
149
+ </div>
150
+ <div class="row app-row">
151
+ <div class="col-xs-4">
152
+ <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
153
+ <label for="f_state" class="font text-left">起始时间:</label>
154
+ </div>
155
+ <datepicker id="f_start_date"
156
+ placeholder='起始时间'
157
+ :value.sync="model.f_start_date"
158
+ :disabled-days-of-Week="[]"
159
+ v-model="model.f_start_date"
160
+ class="input-font col-xs-8"
161
+ :format="'yyyy-MM-dd 00:00:00'"
162
+ :show-reset-button="reset" readonly="readonly">
163
+ </datepicker>
164
+ </div>
165
+ <div class="row app-row">
166
+ <div class="col-xs-4">
167
+ <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
168
+ <label for="f_state" class="font text-left">结束时间:</label>
169
+ </div>
170
+ <datepicker id="f_end_date"
171
+ placeholder='结束时间'
172
+ :value.sync="model.f_end_date"
173
+ :disabled-days-of-Week="[]"
174
+ v-model="model.f_end_date"
175
+ class="input-font col-xs-8"
176
+ :format="'yyyy-MM-dd 23:59:00'"
177
+ :show-reset-button="reset" readonly="readonly">
178
+ </datepicker>
179
+ </div>
180
+ <div class="row app-row">
181
+ <div class="col-xs-4">
182
+ <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
183
+ <label for="f_user_type" class="font text-left">用户类型:</label>
184
+ </div>
185
+ <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
186
+ :width="'60%'"
187
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型'
188
+ v-model="model.f_user_type" condition="f_user_type = '{}'" close-on-select
189
+ clear-button></v-select>
190
+ </div>
191
+
192
+ <div class="row app-row">
193
+ <div class="col-xs-4">
194
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
195
+ <label class="font text-left">处理人:</label>
196
+ </div>
197
+ <div class="col-xs-8">
198
+ <input class="search_input input-font"
199
+ v-model=model.f_repairman condition="f_repairman like '%{}%'"/>
200
+ </div>
201
+ </div>
202
+ <div class="row app-row">
203
+ <div class="col-xs-4">
204
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
205
+ <label class="font text-left">处理时间:</label>
206
+ </div>
207
+ <div class="col-xs-8">
208
+ <datepicker id="startDate" placeholder="处理开始日期"
209
+ style="width: 60%!important;"
210
+ v-model="model.sq_startDate"
211
+ :value.sync="model.sq_startDate"
212
+ :format="'yyyy-MM-dd 00:00:00'"
213
+ :show-reset-button="true"
214
+ condition="f_repair_date >= '{}'">
215
+ </datepicker>
216
+ </div>
217
+ </div>
218
+ <div class="row app-row">
219
+ <div class="col-xs-4">
220
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
221
+ <label class="font text-left">处理时间:</label>
222
+ </div>
223
+ <div class="col-xs-8">
224
+ <datepicker id="endDate" placeholder="处理结束日期"
225
+ style="width: 60%!important;"
226
+ v-model="model.sq_endDate"
227
+ :value.sync="model.sq_endDate"
228
+ :format="'yyyy-MM-dd 23:59:59'"
229
+ :show-reset-button="true"
230
+ condition="f_repair_date<= '{}'">
231
+ </datepicker>
232
+ </div>
233
+ </div>
234
+ <div class="row app-row">
235
+ <div class="col-xs-4">
236
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
237
+ <label class="font text-left">处理状态:</label>
238
+ </div>
239
+ <div class="col-xs-8">
240
+ <v-select :value.sync="model.is_repair" class="input-font"
241
+ :options='$parent.$parent.is_repairs' placeholder='处理状态' :value-single="true"
242
+ v-model="is_repair" close-on-select clear-button></v-select>
243
+ </div>
244
+ </div>
245
+ <div class="row text-center" style="margin-top: 20px;">
246
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
247
+ @click="$parent.$parent.selfSearch">查询
248
+ </button>
249
+ <div style="float: right;margin-right: 3% " class="button_spacing"
250
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
251
+ @click="$parent.$parent.hidden()"></div>
252
+ </div>
253
+ <div style="height:30px;"></div>
254
+ </form>
255
+ </div>
256
+ </criteria>
257
+ <list :model="model" partial='list'>
258
+ <div partial>
259
+ <div class="auto app-text" style="margin-top: 5px;">
260
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
261
+ <div class="panel-body panel-self">
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-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
265
+ </div>
266
+ <div class="col-xs-12">
267
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
268
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
269
+ </div>
270
+ <div class="col-xs-12">
271
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
272
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
273
+ </div>
274
+ <div class="col-xs-12">
275
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>安检时间:</b></p>
276
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_offsite_time }}</p>
277
+ </div>
278
+ <div class="col-xs-12">
279
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
280
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
281
+ </div>
282
+ <div class="col-xs-12">
283
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>所属安检:</b></p>
284
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
285
+ </div>
286
+ <div class="col-xs-12">
287
+ <p class="panel-title col-xs-5 text-left font"><b>检&ensp;查&ensp;项:</b></p>
288
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_device_type }}</p>
289
+ </div>
290
+ <div class="col-xs-12">
291
+ <p class="panel-title col-xs-5 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
292
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_name }}</p>
293
+ </div>
294
+ <div class="col-xs-12">
295
+ <p class="panel-title col-xs-5 text-left font"><b>隐患原因:</b></p>
296
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_value }}</p>
297
+ </div>
298
+ <div class="col-xs-12">
299
+ <p class="panel-title col-xs-5 text-left font"><b>处理人:</b></p>
300
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repairman }}</p>
301
+ </div>
302
+ <div class="col-xs-12">
303
+ <p class="panel-title col-xs-5 text-left font"><b>处理时间:</b></p>
304
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date }}</p>
305
+ </div>
306
+ <div class="col-xs-12">
307
+ <p class="panel-title col-xs-5 text-left font"><b>处理状态:</b></p>
308
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date == '****-**-** **:**:**' ? '未处理' : '已处理' }}</p>
309
+ </div>
310
+ <div class="col-xs-12">
311
+ <p class="panel-title col-xs-5 text-left font"><b>备注:</b></p>
312
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_comments }}</p>
313
+ </div>
314
+ <!-- <div class="col-xs-12">-->
315
+ <!-- <button type="button" name="button" class="btn btn-primary"-->
316
+ <!-- style="background-color:#499edf;float: right"-->
317
+ <!-- @click="$parent.$parent.$parent.openshowModal(row)">查看-->
318
+ <!-- </button>-->
319
+ <!-- <button type="button" name="button" class="btn btn-primary"-->
320
+ <!-- style="background-color:#499edf;float: right;margin-right:10px;"-->
321
+ <!-- @click="$parent.$parent.$parent.openshowModal1(row)">处理-->
322
+ <!-- </button>-->
323
+ <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
324
+ <!-- </div>-->
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div>
329
+ </list>
330
+ </criteria-paged>
331
+ </div>
332
+ <modal :show.sync="showModal">
333
+ <div slot="modal-header" class="modal-header">
334
+ <h4 class="modal-title">
335
+ 隐患照片
336
+ </h4>
337
+ </div>
338
+ <div slot="modal-body" class="modal-body">
339
+ <div class="from-group">
340
+ <div class="row">
341
+ <div class="col-md-6">
342
+ <img-self v-if="row.f_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_path" width="300" height="400"></img-self>
343
+ <img-self v-if="row.f_p1_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p1_path" width="300" height="400"></img-self>
344
+ <img-self v-if="row.f_p2_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p2_path" width="300" height="400"></img-self>
345
+ </div>
346
+ </div>
347
+ </div>
348
+ </div>
349
+ <div slot="modal-footer" class="modal-footer">
350
+ <button type="button" class="btn btn-default" @click="closeshowModal">确认</button>
351
+ </div>
352
+ </modal>
353
+ <modal :show.sync="showModal1">
354
+ <div slot="modal-header" class="modal-header">
355
+ <h4 class="modal-title">
356
+ 处理结果
357
+ </h4>
358
+ </div>
359
+ <div slot="modal-body" class="modal-body">
360
+ <div class="row" style="margin-bottom: 10px">
361
+ <p class="panel-title col-xs-3 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
362
+ <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_name }}</p>
363
+ </div>
364
+ <div class="row" style="margin-bottom: 10px">
365
+ <p class="panel-title col-xs-3 text-left font"><b>隐患原因:</b></p>
366
+ <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_value }}</p>
367
+ </div>
368
+ <div class="form-group col-sm-12">
369
+ <div class="auto">
370
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
371
+ <div class="panel-body panel-self"
372
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
373
+ <img-self :src="deal.f_deal_path" alt="整改照片" :width="140" :height="170" capture="camera"
374
+ type="file"></img-self>
375
+ <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
376
+ <img src="../../assets/remove.png" @click="delfile('f_deal_path', deal.f_deal_path)"></img>
377
+ <button type="button" name="button" class="btn btn-primary btn-photo"
378
+ @click="takePic('f_deal_path','整改照片')">拍照
379
+ </button>
380
+ </div>
381
+ </div>
382
+ <div class="panel-body panel-self"
383
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
384
+ <img-self :src="deal.f_other_dealpath1" alt="整改照片" :width="140" :height="170" capture="camera"
385
+ type="file"></img-self>
386
+ <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
387
+ <img src="../../assets/remove.png" @click="delfile('f_other_dealpath1', deal.f_other_dealpath1)"></img>
388
+ <button type="button" name="button" class="btn btn-primary btn-photo"
389
+ @click="takePic('f_other_dealpath1','整改照片')">拍照
390
+ </button>
391
+ </div>
392
+ </div>
393
+ <div class="panel-body panel-self"
394
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
395
+ <img-self :src="deal.f_other_dealpath2" alt="整改照片" :width="140" :height="170" capture="camera"
396
+ type="file"></img-self>
397
+ <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
398
+ <img src="../../assets/remove.png" @click="delfile('f_other_dealpath2', deal.f_other_dealpath2)"></img>
399
+ <button type="button" name="button" class="btn btn-primary btn-photo"
400
+ @click="takePic('f_other_dealpath2','整改照片')">拍照
401
+ </button>
402
+ </div>
403
+ </div>
404
+ </div>
405
+ </div>
406
+ </div>
407
+ <div class="form-group col-sm-12" v-if="isNeedDealSign">
408
+ <p class="panel-title text-left font" style="text-align: center">用户签名:</p>
409
+ <div class="auto">
410
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
411
+ <div class="panel-body panel-self"
412
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
413
+ <img :src="deal.f_dealsign_path" :width="200" :height="150"/>
414
+ <div class="row text-right div-photo" style="height: 50px;margin-top: 60px">
415
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
416
+ </div>
417
+ </div>
418
+ </div>
419
+ </div>
420
+ </div>
421
+ <div class="row">
422
+ <div class="col-xs-2">
423
+ <p class="panel-title text-left font" style="text-align: center">处理结果</p>
424
+ </div>
425
+ <div class="col-xs-9">
426
+ <textarea class="input-font " v-model=deal.f_deal_remark style="width: 100%"></textarea>
427
+ </div>
428
+ </div>
429
+ <div v-if="isCancelLimitGas" style="display: flex;align-items: end;height: 30px;gap: 10px;padding-left: 16px;">
430
+ <input type="checkbox" v-model="deletebacklistisselect"/>
431
+ <div style="height: 18px">取消限制该用户购气</div>
432
+ </div>
433
+ </div>
434
+ <div slot="modal-footer" class="modal-footer">
435
+ <button type="button" class="btn btn-default" @click="commitDealDefect">确认</button>
436
+ <button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
437
+ </div>
438
+ </modal>
439
+ </template>
440
+
441
+ <script>
442
+ import Vue from 'vue'
443
+ import {HttpResetClass, PagedList} from 'vue-client'
444
+ import * as Util from '../Util'
445
+
446
+ export default {
447
+ title: '隐患明细',
448
+ data() {
449
+ return {
450
+ row:{},
451
+ is_repairs:[{label: '请选择', value: ''},
452
+ {label: '已处理', value: '已处理'},
453
+ {label: '未处理', value: '未处理'}],
454
+ showModal: false,
455
+ showModal1: false,
456
+ showimg: '',
457
+ deal: {
458
+ result: {},
459
+ f_deal_path: '',
460
+ f_other_dealpath1: '',
461
+ f_other_dealpath2: '',
462
+ f_deal_remark: '',
463
+ f_dealsign_path: '', //签名
464
+ f_dealer: Vue.user.name,
465
+ f_dealer_id: Vue.user.id
466
+ },
467
+ user_types: [
468
+ {label: '请选择用户类型', value: ''},
469
+ {label: '民用', value: '民用'},
470
+ {label: '非民用', value: '非民用'}
471
+ ],
472
+ f_filialeids: '',
473
+ model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/defectDetails`, 20, {
474
+ condition: 'this.condition',
475
+ f_filialeids: `('${Vue.user.orgid}')`,
476
+ f_checker_id: `'${Vue.user.id}'`
477
+ }),
478
+ criteriaShow: false,
479
+ isNeedDealSign: this.$appdata.getSingleValue('隐患处理是否需要签名') == 'true',
480
+ isCancelLimitGas: this.$appdata.getSingleValue('隐患处理-取消限制购气') == '是',
481
+ deletebacklistisselect: false
482
+ }
483
+ },
484
+ ready() {
485
+ this.selfSearch()
486
+ },
487
+ methods: {
488
+ async deletebacklist() {
489
+ ////tag)
490
+ let http = new HttpResetClass()
491
+ ////tag
492
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
493
+ data: {
494
+ items: "*",
495
+ tablename: "t_userinfo",
496
+ condition: `f_userinfo_code = ${this.deal.result.f_userinfo_code}`,
497
+ orderitem: "f_userinfo_code"
498
+ }
499
+ }, {resolveMsg: null, rejectMsg: null})
500
+ ////tag)
501
+ ////tag
502
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
503
+ data: {
504
+ "f_operat_type": "取消拉黑",
505
+ "f_state": "有效",
506
+ "f_user_name": this.deal.result.f_user_name,
507
+ "f_comments": '',
508
+ "f_operator": Vue.user.name,
509
+ "f_operatorid": Vue.user.id,
510
+ "f_orgid": Vue.user.orgid,
511
+ "f_orgname": Vue.user.orgs,
512
+ "f_depid": Vue.user.depids,
513
+ "f_depname": Vue.user.deps,
514
+ "f_describe": `${Vue.user.name}对用户${this.deal.result.f_user_name}进行取消拉黑`,
515
+ "f_userinfo_id": {
516
+ "f_userinfo_id": res1.data[0].f_userinfo_id,
517
+ "f_user_state": "正常",
518
+ "version": res1.data[0].version
519
+ },
520
+ "f_limit_times":"",
521
+ "f_limit_value":""
522
+ }
523
+ }, {resolveMsg: null, rejectMsg: null})
524
+ },
525
+ // 签名回调
526
+ signCallback(prop, fileName) {
527
+ console.log("签名回调地址" + fileName)
528
+ // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
529
+ HostApp.__this__.$set('deal.f_dealsign_path', fileName)
530
+ HostApp.__callback__ = null
531
+ HostApp.__this__ = null
532
+ },
533
+ // 用户签名
534
+ sign() {
535
+ if (!this.deal.f_deal_path) {
536
+ this.$showMessage('请先拍摄处理后照片!!!')
537
+ return
538
+ }
539
+ this.delAudioFile('f_dealsign_path', this.deal.f_dealsign_path)
540
+ let prop = 'f_dealsign_path'
541
+ let idx = 'aofeng'
542
+ let fileName
543
+ if (!this.deal.f_dealsign_path) {
544
+ fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
545
+ } else {
546
+ fileName = Util.getFileName(this.deal.f_dealsign_path)
547
+ }
548
+ HostApp.__callback__ = this.signCallback
549
+ HostApp.__this__ = this
550
+ HostApp.getSignature({
551
+ file: fileName,
552
+ requestCode: 111,
553
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
554
+ })
555
+ },
556
+ delAudioFile(prop, fileName) {
557
+ if (!fileName)
558
+ return
559
+ else {
560
+ HostApp.delfile(fileName)
561
+ this.deal[prop] = null
562
+ }
563
+ },
564
+ commitDealDefect() {
565
+ //tag
566
+ //tag)
567
+ // if (!this.deal.f_deal_path) {
568
+ // this.$showMessage('处理后照片必须上传')
569
+ // return
570
+ // }
571
+ if (this.isNeedDealSign && !this.deal.f_dealsign_path) {
572
+ this.$showMessage('签名必须上传')
573
+ return
574
+ }
575
+ if (this.deletebacklistisselect){
576
+ this.deletebacklist()
577
+ }
578
+ this.deal.f_other_dealpath = this.deal.f_deal_path
579
+ HostApp.__this__ = this
580
+ HostApp.logicWithHint({
581
+ 'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
582
+ 'data': this.deal, 'backresult': 1
583
+ })
584
+ },
585
+ commitCallBack(jo) {
586
+ //tag
587
+ //tag)
588
+ if (jo.state == 'ok') {
589
+ let ress = JSON.parse(jo.result)
590
+ if (ress.code == 200) {
591
+ this.$showMessage(ress.msg)
592
+ this.closeshowModal1()
593
+ } else {
594
+ this.$showMessage(ress.msg)
595
+ }
596
+ } else {
597
+ this.$showMessage('本地服务调用失败')
598
+ }
599
+ },
600
+ delfile(prop, fileName) {
601
+ if (fileName == Vue.nopic)
602
+ return
603
+ else {
604
+ HostApp.delfile(fileName)
605
+ this.deal[prop] = Vue.nopic
606
+ }
607
+ },
608
+ openshowModal(val) {
609
+ this.row = val
610
+ this.showModal = true
611
+ },
612
+ closeshowModal() {
613
+ this.showimg = ''
614
+ this.showModal = false
615
+ },
616
+ openshowModal1(val) {
617
+ this.deal.result = val
618
+ //tag
619
+ //tag
620
+ this.deletebacklistisselect = false
621
+ this.showModal1 = true
622
+ },
623
+ closeshowModal1() {
624
+ this.deal = {
625
+ result: {},
626
+ f_deal_path: '',
627
+ f_other_dealpath1: '',
628
+ f_other_dealpath2: '',
629
+ f_deal_remark: '',
630
+ f_dealsign_path: '', //签名
631
+ f_dealer: Vue.user.name,
632
+ f_dealer_id: Vue.user.id
633
+ }
634
+ this.showModal1 = false
635
+ this.selfSearch()
636
+ },
637
+ cameraCallBack(prop, fileName) {
638
+ HostApp.__this__.$set( 'deal.'+prop+'', fileName)
639
+ HostApp.__callback__ = null
640
+ HostApp.__this__ = null
641
+ },
642
+ takePic(prop, title) {
643
+ HostApp.__callback__ = this.cameraCallBack
644
+ HostApp.__this__ = this
645
+ let fileName
646
+ if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
647
+ fileName = Util.guid() + '-' + prop + '.jpg'
648
+ } else {
649
+ fileName = Util.getFileName(this.deal[prop])
650
+ }
651
+ //tag
652
+ //tag
653
+ HostApp._open_a_page({
654
+ type: 'boomerang',
655
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
656
+ param: {
657
+ file: fileName,
658
+ requestCode: 111,
659
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
661
+ }
662
+ })
663
+ },
664
+ selfSearch() {
665
+
666
+ let condition = "1=1 "
667
+ if (this.$refs.paged.$refs.cri.model.f_user_name) {
668
+ if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
669
+ condition += " and f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
670
+ }
671
+ }
672
+ if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
673
+ if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
674
+ condition += " and f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
675
+ }
676
+ }
677
+ if (this.$refs.paged.$refs.cri.model.f_item_name) {
678
+ if (this.$refs.paged.$refs.cri.model.f_item_name.toString().trim()) {
679
+ condition += " and f_item_name like '" + this.$refs.paged.$refs.cri.model.f_item_name + "%'"
680
+ }
681
+ }
682
+ if (this.$refs.paged.$refs.cri.model.f_checker_name) {
683
+ if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
684
+ condition += " and f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
685
+ }
686
+ }
687
+ if (this.$refs.paged.$refs.cri.model.f_address) {
688
+ if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
689
+ condition += " and f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
690
+ }
691
+ }
692
+ if (this.$refs.paged.$refs.cri.model.f_start_date) {
693
+ if (this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()) {
694
+ condition += " and f_offsite_time > '" + this.$refs.paged.$refs.cri.model.f_start_date + "'"
695
+ }
696
+ }
697
+ if (this.$refs.paged.$refs.cri.model.f_end_date) {
698
+ if (this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()) {
699
+ condition += " and f_offsite_time < '" + this.$refs.paged.$refs.cri.model.f_end_date + "'"
700
+ }
701
+ }
702
+ if (this.$refs.paged.$refs.cri.model.f_user_type) {
703
+ if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
704
+ condition += " and f_check_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
705
+ }
706
+ }
707
+ if (this.$refs.paged.$refs.cri.model.f_repairman) {
708
+ if (this.$refs.paged.$refs.cri.model.f_repairman.toString().trim()) {
709
+ condition += " and f_repairman like '%" + this.$refs.paged.$refs.cri.model.f_repairman + "%'"
710
+ }
711
+ }
712
+ if (this.$refs.paged.$refs.cri.model.sq_endDate) {
713
+ if (this.$refs.paged.$refs.cri.model.sq_endDate.toString().trim()) {
714
+ condition += " and f_repair_date <= '" + this.$refs.paged.$refs.cri.model.sq_endDate + "'"
715
+ }
716
+ }
717
+ if (this.$refs.paged.$refs.cri.model.sq_startDate) {
718
+ if (this.$refs.paged.$refs.cri.model.sq_startDate.toString().trim()) {
719
+ condition += " and f_repair_date >= '" + this.$refs.paged.$refs.cri.model.sq_startDate + "'"
720
+ }
721
+ }
722
+ if (this.$refs.paged.$refs.cri.model.is_repair) {
723
+ if (this.$refs.paged.$refs.cri.model.is_repair == '已处理') {
724
+ condition += " and f_repair_date != '****-**-** **:**:**'"
725
+ }else if (this.$refs.paged.$refs.cri.model.is_repair == '未处理'){
726
+ condition += " and f_repair_date = '****-**-** **:**:**'"
727
+ }
728
+ }
729
+
730
+
731
+ //tag
732
+ this.model.search(condition)
733
+ },
734
+
735
+ hidden() {
736
+ this.criteriaShow = !this.criteriaShow
737
+ }
738
+ }
739
+ }
740
+ </script>