safecheck-client 4.0.1-81 → 4.0.1-82

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