safecheck-client 4.0.1-5 → 4.0.1-50

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 (281) hide show
  1. package/.trae/.ignore +0 -0
  2. package/.vscode/settings.json +3 -0
  3. package/package.json +132 -132
  4. package/src/App.vue +31 -31
  5. package/src/assets//350/255/246/345/221/212 (3).png +0 -0
  6. package/src/assets//350/255/246/345/221/212 (4).png +0 -0
  7. package/src/assets//350/255/246/345/221/212 (5).png +0 -0
  8. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  9. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  10. package/src/components/android/AddPlanItem.vue +447 -447
  11. package/src/components/android/AddPlanItemYy.vue +451 -451
  12. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  13. package/src/components/android/AndroidDefectDetails.vue +769 -769
  14. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  15. package/src/components/android/DailyworkloadQuery.vue +2 -1
  16. package/src/components/android/Devices.vue +327 -327
  17. package/src/components/android/Devicesm.vue +327 -327
  18. package/src/components/android/NewCheckpaperAndroid.vue +22 -48
  19. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  20. package/src/components/android/PhoneRecordInfo.vue +113 -113
  21. package/src/components/android/PhoneSellInfo.vue +113 -113
  22. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  23. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  24. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  25. package/src/components/android/SafePlanItem.vue +509 -509
  26. package/src/components/android/SwitchValve.vue +1 -1
  27. package/src/components/android/examples/SafeListExamples.vue +296 -296
  28. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  29. package/src/components/android/recheck/Recheck.vue +402 -402
  30. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  31. package/src/components/checkplan/CheckDetail.vue +1 -1
  32. package/src/components/checkplan/checkmsg.vue +459 -459
  33. package/src/components/defect/DefectList.vue +507 -507
  34. package/src/components/defect/DefectListWeixiu.vue +484 -484
  35. package/src/components/filialCircle/CircleList.vue +139 -139
  36. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  37. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  38. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  39. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  40. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  41. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  42. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  43. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  44. package/src/components/map/PersonTrack.vue +226 -226
  45. package/src/components/map/SecurityCheckCoordinates.vue +348 -0
  46. package/src/components/paper/RegionalList.vue +220 -220
  47. package/src/components/pc/AnnouncementPC.vue +524 -524
  48. package/src/components/pc/CheckBookUser.vue +8 -4
  49. package/src/components/pc/DefectList.vue +742 -742
  50. package/src/components/pc/DeviceChange.vue +1068 -1068
  51. package/src/components/pc/SafeVisitInfo.vue +261 -261
  52. package/src/components/querycheckpaper/CheckPaperList.vue +133 -130
  53. package/src/components/querycheckpaper/CheckSearchUser.vue +5 -0
  54. package/src/components/report/HiddenSituation.vue +165 -165
  55. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  56. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  57. package/src/components/rongcheng/DefectList.vue +560 -560
  58. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  59. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  60. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  61. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  62. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  63. package/src/components/shaoguan/DefectList.vue +473 -473
  64. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  65. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  66. package/src/components/userfile/SecurityAudit.vue +243 -243
  67. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  68. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  69. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  70. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  71. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  72. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  73. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  74. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  75. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  76. package/src/filiale/bayan/android/Edit.vue +132 -132
  77. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  78. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  79. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  80. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  81. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  82. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  83. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  84. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  85. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  86. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  87. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  88. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  89. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  90. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  91. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  92. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  93. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  94. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  95. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  96. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  97. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  98. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  99. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  100. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  101. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  102. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  103. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  104. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  105. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  106. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  107. package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
  108. package/src/filiale/jinhong/pc/CheckBookList.vue +10 -7
  109. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  110. package/src/filiale/jinhong/pc/checkUserList.vue +31 -8
  111. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  112. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  113. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  114. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  115. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  116. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  117. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  118. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  119. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  120. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  121. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  122. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  123. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  124. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  125. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  126. package/src/filiale/libo/android.js +14 -0
  127. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  128. package/src/filiale/libo/pc.js +12 -0
  129. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  130. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  131. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  132. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  133. package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
  134. package/src/filiale/meihekou/android/MeterReading.vue +9 -5
  135. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1306
  136. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  137. package/src/filiale/meihekou/android/SafecheckOrderV.vue +324 -311
  138. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  139. package/src/filiale/meihekou/pc/NewCheckpaper.vue +1 -1
  140. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  141. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  142. package/src/filiale/meihekou/pc/PaperList.vue +1136 -0
  143. package/src/filiale/meihekou/pc.js +15 -13
  144. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  145. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  146. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  147. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  148. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  149. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  150. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  151. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  152. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  153. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  154. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  155. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  156. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  157. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  158. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  159. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  160. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  161. package/src/filiale/qingjian/pc.js +15 -15
  162. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  163. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  164. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  165. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  166. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  167. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  168. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  169. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  170. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  171. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  172. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  173. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  174. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  175. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  176. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  177. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  178. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  179. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  180. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  181. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  182. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  183. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  184. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  185. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  186. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  187. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  188. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  189. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  190. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  191. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  192. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1259 -0
  193. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2341 -0
  194. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +776 -0
  195. package/src/filiale/taiyuan/android.js +13 -0
  196. package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -0
  197. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  198. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  199. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  200. package/src/filiale/taiyuan/pc.js +15 -0
  201. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  202. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  203. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  204. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  205. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  206. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  207. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  208. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  209. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  210. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  211. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  212. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  213. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  214. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  215. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  216. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  217. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  218. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  219. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  220. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  221. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  222. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  223. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  224. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  225. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  226. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  227. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  228. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  229. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  230. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  231. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  232. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  233. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  234. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  235. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  236. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  237. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  238. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  239. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  240. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  241. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  242. package/src/filiale/xinkang/android/AddPlanItem.vue +65 -31
  243. package/src/filiale/xinkang/android/SafecheckDevices.vue +29 -7
  244. package/src/filiale/xinkang/android/SafecheckOrderV.vue +21 -44
  245. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  246. package/src/filiale/xinkang/pc/CheckSearchUser.vue +12 -12
  247. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  248. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1474 -1498
  249. package/src/filiale/xinkang/pc/PaperList.vue +2 -9
  250. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  251. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  252. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  253. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  254. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  255. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  256. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  257. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  258. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  259. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  260. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  261. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  262. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  263. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
  264. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  265. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
  266. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  267. package/src/filiale/yunchengminsheng/android.js +15 -15
  268. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  269. package/src/filiale/yunchengminsheng/pc.js +1 -0
  270. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  271. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  272. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  273. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  274. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  275. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  276. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  277. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  278. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  279. package/src/main.js +33 -32
  280. package/src/safecheck-android.js +316 -312
  281. package/src/safecheck.js +3 -0
@@ -31,7 +31,7 @@
31
31
  <div class="row" style="height: 240px;overflow: scroll;top: 1px">
32
32
  <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
33
33
  v-for="(index,img) in paper.f_overall_imgs">
34
- <img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></img-self>
34
+ <android-img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></android-img-self>
35
35
  <img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)"
36
36
  style="width: 15px;margin-top: -80px" alt="">
37
37
  </div>
@@ -53,7 +53,7 @@
53
53
  style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
54
54
  <div class="row" style="height: 240px;overflow: scroll;top: 1px">
55
55
  <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
56
- <img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></img-self>
56
+ <android-img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></android-img-self>
57
57
  </div>
58
58
  </div>
59
59
  </div>
@@ -144,7 +144,7 @@
144
144
  style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
145
145
  <div class="row" style="height: 240px;overflow: scroll;top: 1px">
146
146
  <div class="col-sm-4">
147
- <img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
147
+ <android-img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
148
148
  <div class="row text-right div-photo">
149
149
  <button type="button" name="button" class="btn btn-primary btn-photo"
150
150
  @click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照
@@ -156,7 +156,7 @@
156
156
  </div>
157
157
  </div>
158
158
  <div class="col-sm-4">
159
- <img-self :src="paper.f_notified1_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
159
+ <android-img-self :src="paper.f_notified1_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
160
160
  <div class="row text-right div-photo">
161
161
  <button type="button" name="button" class="btn btn-primary btn-photo"
162
162
  @click="takePic('f_notified1_path', '安检通知书/隐患整改通知书照片')">拍照
@@ -168,7 +168,7 @@
168
168
  </div>
169
169
  </div>
170
170
  <div class="col-sm-4">
171
- <img-self :src="paper.f_notified2_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
171
+ <android-img-self :src="paper.f_notified2_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></android-img-self>
172
172
  <div class="row text-right div-photo">
173
173
  <button type="button" name="button" class="btn btn-primary btn-photo"
174
174
  @click="takePic('f_notified2_path', '安检通知书/隐患整改通知书照片')">拍照
@@ -355,587 +355,605 @@
355
355
  </template>
356
356
 
357
357
  <script>
358
- import Vue from 'vue'
359
- import * as Util from '../../Util'
360
- import {HttpResetClass} from 'vue-client'
361
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
362
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
363
- import co from 'co'
358
+ import Vue from 'vue'
359
+ import * as Util from '../../Util'
360
+ import {HttpResetClass} from 'vue-client'
361
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
362
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
363
+ import co from 'co'
364
364
 
365
- // let getRepairParam = function * (self){
366
- // let data = {
367
- // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
368
- // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
369
- // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
370
- // }, user: self.user, callObj: self.callObj
371
- // }
372
- // if(self.$parent.$parent.meading == '转维修员'){
373
- // data.toRepair = '一级派单'
374
- // }
375
- // data.$parent.$parent.model.f_attendant = data.loginUser.name
376
- // ////tag
377
- // ////tag
378
- // let res
379
- // let errString = self.$parent. $parent.errorVerify()
380
- // if(errString){
381
- // ////tag
382
- // if (Vue.android)
383
- // self.undo()
384
- // this.$showMessage(errString)
385
- // return
386
- // } else {
387
- // if(self.role == 'inspect'){
388
- // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
389
- // this.$showMessage("请选择维修员!")
390
- // return
391
- // }
392
- // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
393
- // HostApp.alert()
394
- // this.$showMessage("请选择站点!")
395
- // return
396
- // }
397
- // if(self.$parent.$parent.model.f_repairtype == ''){
398
- // this.$showMessage("请选择报修类型!")
399
- // return
400
- // }
401
- // ////tag)
402
- // let checkResult = '正常'
403
- // let options = [{"data": "已处理"},{"data": "未处理"}]
404
- // let value = ''
405
- // let codata = JSON.parse(JSON.stringify(self.paper))
406
- // for(let device in codata){
407
- // ////tag)
408
- // let f_device_type
409
- // if(device.startsWith("device")){
410
- // for(let item in codata[device]) {
411
- // if(codata[device].length > 1 ){
412
- // let j = Number.parseInt(item)+1
413
- // f_device_type = `${codata[device][item].f_device_type}${j}`
414
- // }else{
415
- // f_device_type = codata[device][item].f_device_type
416
- // }
417
- // // ////tag
418
- // let details = []
419
- // for(let i in codata[device][item].f_items){
420
- // let items = codata[device][item].f_items[i]
421
- // ////tag
422
- // if(items.f_is_defect == true || items.f_is_defect == 'true'){
423
- // checkResult = '有隐患'
424
- // ////tag
425
- // let res = yield self.$resetpost(`${self.Url}/api/af-safecheck/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
426
- // ////tag)
427
- // self.$set('detail.f_defect_id', res.data[0].id)
428
- // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
429
- // self.$set('detail.type',items.type)
430
- // self.$set('detail.options',options)
431
- // details.push(JSON.parse(JSON.stringify(self.detail)))
432
- // }
433
- // if(items.type == 'selector'){
434
- // items.selected = ''
435
- // }
436
- // self.detail = {}
437
- // }
438
- // ////tag
439
- // self.$set('defectDevice.f_type',f_device_type)
440
- // self.$set('defectDevice.details',details)
441
- // if(self.defectDevice.details.length >0 ){
442
- // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
443
- // }
444
- // self.defectDevice = {}
445
- // ////tag
446
- // }
447
- // }
448
- // }
449
- // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
450
- //
451
- //
452
- // ////tag)
453
- // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
454
- // ////tag
455
- // ////tag
456
- // ////tag
457
- // if(res.code == 200){
458
- // self.$parent.$parent.isSafeCheckToRepair = true
459
- // self.undo()
460
- // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
461
- // ////tag
462
- // self.$resetpost(`${self.Url}/api/af-safecheck/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
463
- // ////tag
464
- // if(ret.data.code ==200){
465
- // ////tag
466
- // self.$parent.$parent.$back()
467
- // }else{
468
- // self.$showMessage('安检转维修失败!')
469
- // }
470
- // }).catch(v=>{
471
- // ////tag)
472
- // self.$showMessage('安检转维修失败!')
473
- // })
474
- // }else{
475
- // self.$showMessage('安检转维修失败!')
476
- // }
477
- // }
478
- // }
479
- // }
365
+ // let getRepairParam = function * (self){
366
+ // let data = {
367
+ // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
368
+ // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
369
+ // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
370
+ // }, user: self.user, callObj: self.callObj
371
+ // }
372
+ // if(self.$parent.$parent.meading == '转维修员'){
373
+ // data.toRepair = '一级派单'
374
+ // }
375
+ // data.$parent.$parent.model.f_attendant = data.loginUser.name
376
+ // ////tag
377
+ // ////tag
378
+ // let res
379
+ // let errString = self.$parent. $parent.errorVerify()
380
+ // if(errString){
381
+ // ////tag
382
+ // if (Vue.android)
383
+ // self.undo()
384
+ // this.$showMessage(errString)
385
+ // return
386
+ // } else {
387
+ // if(self.role == 'inspect'){
388
+ // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
389
+ // this.$showMessage("请选择维修员!")
390
+ // return
391
+ // }
392
+ // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
393
+ // HostApp.alert()
394
+ // this.$showMessage("请选择站点!")
395
+ // return
396
+ // }
397
+ // if(self.$parent.$parent.model.f_repairtype == ''){
398
+ // this.$showMessage("请选择报修类型!")
399
+ // return
400
+ // }
401
+ // ////tag)
402
+ // let checkResult = '正常'
403
+ // let options = [{"data": "已处理"},{"data": "未处理"}]
404
+ // let value = ''
405
+ // let codata = JSON.parse(JSON.stringify(self.paper))
406
+ // for(let device in codata){
407
+ // ////tag)
408
+ // let f_device_type
409
+ // if(device.startsWith("device")){
410
+ // for(let item in codata[device]) {
411
+ // if(codata[device].length > 1 ){
412
+ // let j = Number.parseInt(item)+1
413
+ // f_device_type = `${codata[device][item].f_device_type}${j}`
414
+ // }else{
415
+ // f_device_type = codata[device][item].f_device_type
416
+ // }
417
+ // // ////tag
418
+ // let details = []
419
+ // for(let i in codata[device][item].f_items){
420
+ // let items = codata[device][item].f_items[i]
421
+ // ////tag
422
+ // if(items.f_is_defect == true || items.f_is_defect == 'true'){
423
+ // checkResult = '有隐患'
424
+ // ////tag
425
+ // let res = yield self.$resetpost(`${self.Url}/api/af-safecheck/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
426
+ // ////tag)
427
+ // self.$set('detail.f_defect_id', res.data[0].id)
428
+ // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
429
+ // self.$set('detail.type',items.type)
430
+ // self.$set('detail.options',options)
431
+ // details.push(JSON.parse(JSON.stringify(self.detail)))
432
+ // }
433
+ // if(items.type == 'selector'){
434
+ // items.selected = ''
435
+ // }
436
+ // self.detail = {}
437
+ // }
438
+ // ////tag
439
+ // self.$set('defectDevice.f_type',f_device_type)
440
+ // self.$set('defectDevice.details',details)
441
+ // if(self.defectDevice.details.length >0 ){
442
+ // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
443
+ // }
444
+ // self.defectDevice = {}
445
+ // ////tag
446
+ // }
447
+ // }
448
+ // }
449
+ // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
450
+ //
451
+ //
452
+ // ////tag)
453
+ // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
454
+ // ////tag
455
+ // ////tag
456
+ // ////tag
457
+ // if(res.code == 200){
458
+ // self.$parent.$parent.isSafeCheckToRepair = true
459
+ // self.undo()
460
+ // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
461
+ // ////tag
462
+ // self.$resetpost(`${self.Url}/api/af-safecheck/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
463
+ // ////tag
464
+ // if(ret.data.code ==200){
465
+ // ////tag
466
+ // self.$parent.$parent.$back()
467
+ // }else{
468
+ // self.$showMessage('安检转维修失败!')
469
+ // }
470
+ // }).catch(v=>{
471
+ // ////tag)
472
+ // self.$showMessage('安检转维修失败!')
473
+ // })
474
+ // }else{
475
+ // self.$showMessage('安检转维修失败!')
476
+ // }
477
+ // }
478
+ // }
479
+ // }
480
480
 
481
481
 
482
- // let getRepairs = async function(self,url) {
483
- // // 获取配置信息
484
- // try {
485
- // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
486
- // let repairs =[]
487
- // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
488
- // res.data.forEach((item) => {
489
- // repairs.push({label: item.name, value: item})
490
- // })
491
- // self.f_repair_person = repairs
492
- // if(self.$parent.$parent.role == 'inspect'){
493
- // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
494
- // if(res.code == 200){
495
- // self.$parent.$parent.user = res.data[0]
496
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
497
- // }
498
- // }else{
499
- // ////tag
500
- // self.$resetpost(`${self.Url}/api/af-safecheck/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
501
- // ////tag
502
- // if(res.data.length != 0){
503
- // self.$parent.$parent.user = res.data[0]
504
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
505
- // }
506
- // })
507
- // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
508
- // }
509
- // } catch (error) {
510
- // ////tag
511
- // }
512
- // }
482
+ // let getRepairs = async function(self,url) {
483
+ // // 获取配置信息
484
+ // try {
485
+ // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
486
+ // let repairs =[]
487
+ // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
488
+ // res.data.forEach((item) => {
489
+ // repairs.push({label: item.name, value: item})
490
+ // })
491
+ // self.f_repair_person = repairs
492
+ // if(self.$parent.$parent.role == 'inspect'){
493
+ // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
494
+ // if(res.code == 200){
495
+ // self.$parent.$parent.user = res.data[0]
496
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
497
+ // }
498
+ // }else{
499
+ // ////tag
500
+ // self.$resetpost(`${self.Url}/api/af-safecheck/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
501
+ // ////tag
502
+ // if(res.data.length != 0){
503
+ // self.$parent.$parent.user = res.data[0]
504
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
505
+ // }
506
+ // })
507
+ // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
508
+ // }
509
+ // } catch (error) {
510
+ // ////tag
511
+ // }
512
+ // }
513
513
 
514
- export default {
515
- title: '用户反馈',
516
- data() {
517
- return {
518
- defectImgs: [],
519
- defectToolTip: [],
520
- defectReason: [],
521
- images: [],
522
- showmodelthree: false,
523
- isneedDate: this.$parent.$parent.isneedDate,
524
- plan: this.$parent.$parent.item,
525
- meading: this.$parent.$parent.meading,
526
- paper: this.$parent.$parent.data,
527
- printContent: [],
528
- upload_state: this.$parent.$parent.item.f_upload_state,
529
- enabled: false,//控制限制购气是否可选
530
- deleteenabled: false,
531
- showmodel: false,
532
- showbacklist: '是',
533
- backlistisselect: false,
534
- deletebacklistisselect: false,
535
- radios: [
536
- {
537
- label: '满意',
538
- value: 0,
539
- isChecked: false,
540
- },
541
- {
542
- label: '基本满意',
543
- value: 1,
544
- isChecked: false,
545
- },
546
- {
547
- label: '不满意',
548
- value: 2,
549
- isChecked: false,
550
- },
551
- ],
552
- repairitems: [],
553
- repairstypes: this.$appdata.getParam('报修类型'),
554
- // f_repair_person: this.readRepair(),
555
- showrepair: false,
556
- safeCheckToRepair: '',
557
- showCheckToRepair: false,
558
- userid: '',
559
- source:
560
- 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
561
- 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
562
- isback: false,
563
- defectDevice: {},
564
- detail: {},
565
- callObj: null,
566
- user: {},
567
- role: this.$parent.$parent.role,
568
- handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
569
- Url: this.$androidUtil.getProxyUrl(),
570
- cause: "",
571
- deletecause: "",
572
- isRecodr: "false", //单值参数,为true则是开启全程录音
514
+ export default {
515
+ title: '用户反馈',
516
+ data() {
517
+ return {
518
+ defectImgs: [],
519
+ defectToolTip: [],
520
+ defectReason: [],
521
+ images: [],
522
+ showmodelthree: false,
523
+ isneedDate: this.$parent.$parent.isneedDate,
524
+ plan: this.$parent.$parent.item,
525
+ meading: this.$parent.$parent.meading,
526
+ paper: this.$parent.$parent.data,
527
+ printContent: [],
528
+ upload_state: this.$parent.$parent.item.f_upload_state,
529
+ enabled: false,//控制限制购气是否可选
530
+ deleteenabled: false,
531
+ showmodel: false,
532
+ showbacklist: '是',
533
+ backlistisselect: false,
534
+ deletebacklistisselect: false,
535
+ radios: [
536
+ {
537
+ label: '满意',
538
+ value: 0,
539
+ isChecked: false,
540
+ },
541
+ {
542
+ label: '基本满意',
543
+ value: 1,
544
+ isChecked: false,
545
+ },
546
+ {
547
+ label: '不满意',
548
+ value: 2,
549
+ isChecked: false,
550
+ },
551
+ ],
552
+ repairitems: [],
553
+ repairstypes: this.$appdata.getParam('报修类型'),
554
+ // f_repair_person: this.readRepair(),
555
+ showrepair: false,
556
+ safeCheckToRepair: '',
557
+ showCheckToRepair: false,
558
+ userid: '',
559
+ source:
560
+ 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
561
+ 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
562
+ isback: false,
563
+ defectDevice: {},
564
+ detail: {},
565
+ callObj: null,
566
+ user: {},
567
+ role: this.$parent.$parent.role,
568
+ handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
569
+ Url: this.$androidUtil.getProxyUrl(),
570
+ cause: "",
571
+ deletecause: "",
572
+ isRecodr: "false", //单值参数,为true则是开启全程录音
573
+ }
574
+ },
575
+ props: ['idx'],
576
+ components: {
577
+ RadioGroup,
578
+ Radio
579
+ },
580
+ methods: {
581
+ timeSet(val) {
582
+ //////tag
583
+ if (!val) {
584
+ return
585
+ }
586
+ let time = new Date(val).getTime()
587
+ let time2 = new Date().getTime()
588
+ if (time2 > time) {
589
+ return true
573
590
  }
574
591
  },
575
- props: ['idx'],
576
- components: {
577
- RadioGroup,
578
- Radio
592
+ // async isoverDate(){
593
+ // ////tag
594
+ // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
595
+ // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
596
+ // }
597
+ // })
598
+ // this.isneedDate=res.data[0]["f_subscribe_date"]
599
+ // ////tag
600
+ // },
601
+ check(index) {
602
+ ////tag
603
+ // 先取消所有选中项
604
+ for (let item of this.radios) {
605
+ item.isChecked = false;
606
+ }
607
+ //再设置当前点击项选中
608
+ this.paper.f_client_evaluation = this.radios[index].label;
609
+ // 设置值,以供传递
610
+ this.radios[index].isChecked = true;
611
+ ////tag;
579
612
  },
580
- methods: {
581
- timeSet(val) {
582
- //////tag
583
- if (!val) {
584
- return
613
+ getSignValue(fileName) {
614
+ this.f_signname = fileName
615
+ },
616
+ cameraCallBack(prop, fileName) {
617
+ if (prop == 'f_overall_path') {
618
+ let f_overall_path = fileName + '?' + Math.random()
619
+ HostApp.__this__.paper.f_overall_imgs.push({
620
+ f_overall_path: f_overall_path
621
+ })
622
+ } else {
623
+ HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
624
+ }
625
+ HostApp.__callback__ = null
626
+ HostApp.__this__ = null
627
+ },
628
+ takePic(prop, title, index) {
629
+ HostApp.__callback__ = this.cameraCallBack
630
+ HostApp.__this__ = this
631
+ ////tag
632
+ ////tag
633
+ let fileName
634
+ if (prop == 'f_overall_path') {
635
+ if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
636
+ fileName = Util.guid() + '-' + prop + '.jpg'
637
+ } else {
638
+ fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
585
639
  }
586
- let time = new Date(val).getTime()
587
- let time2 = new Date().getTime()
588
- if (time2 > time) {
589
- return true
640
+ } else {
641
+ if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
642
+ fileName = Util.guid() + '-' + prop + '.jpg'
643
+ } else {
644
+ fileName = Util.getFileName(this.paper[prop])
590
645
  }
591
- },
592
- // async isoverDate(){
593
- // ////tag
594
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
595
- // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
596
- // }
597
- // })
598
- // this.isneedDate=res.data[0]["f_subscribe_date"]
599
- // ////tag
600
- // },
601
- check(index) {
602
- ////tag
603
- // 先取消所有选中项
604
- for (let item of this.radios) {
605
- item.isChecked = false;
646
+ }
647
+ let jingweidu = ''
648
+ if (this.$parent.$parent.is_has_jingweidu == 'true'){
649
+ const obj = HostApp.getGpsDetailAddress()
650
+ jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
651
+ }
652
+ HostApp._open_a_page({
653
+ type: 'boomerang',
654
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
655
+ param: {
656
+ file: fileName,
657
+ requestCode: 111,
658
+ diaphaneity: 1000,
659
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code + '\t' + this.paper.f_user_name + '\t' + this.paper.f_address
661
+ +jingweidu
606
662
  }
607
- //再设置当前点击项选中
608
- this.paper.f_client_evaluation = this.radios[index].label;
609
- // 设置值,以供传递
610
- this.radios[index].isChecked = true;
611
- ////tag;
612
- },
613
- getSignValue(fileName) {
614
- this.f_signname = fileName
615
- },
616
- cameraCallBack(prop, fileName) {
617
- if (prop == 'f_overall_path') {
618
- let f_overall_path = fileName + '?' + Math.random()
619
- HostApp.__this__.paper.f_overall_imgs.push({
620
- f_overall_path: f_overall_path
621
- })
622
- } else {
623
- HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
663
+ })
664
+ },
665
+ amrCallBack(fileName) {
666
+ HostApp.__this__.$set('paper.f_recording1_path', fileName)
667
+ HostApp.__callback__ = null
668
+ HostApp.__this__ = null
669
+ },
670
+ record() {
671
+ if (this.$parent.$parent.role != 'inspect') {
672
+ if (this.paper.f_recording1_path != '') {
673
+ window.location = this.paper.f_recording1_path
624
674
  }
625
- HostApp.__callback__ = null
626
- HostApp.__this__ = null
627
- },
628
- takePic(prop, title, index) {
629
- HostApp.__callback__ = this.cameraCallBack
675
+ } else {
676
+ HostApp.__callback__ = this.amrCallBack
630
677
  HostApp.__this__ = this
631
- ////tag
632
- ////tag
633
678
  let fileName
634
- if (prop == 'f_overall_path') {
635
- if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
636
- fileName = Util.guid() + '-' + prop + '.jpg'
637
- } else {
638
- fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
639
- }
679
+ if (!this.paper.f_recording1_path) {
680
+ fileName = Util.guid() + '.amr'
640
681
  } else {
641
- if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
642
- fileName = Util.guid() + '-' + prop + '.jpg'
643
- } else {
644
- fileName = Util.getFileName(this.paper[prop])
645
- }
646
- }
647
- let jingweidu = ''
648
- if (this.$parent.$parent.is_has_jingweidu == 'true'){
649
- const obj = HostApp.getGpsDetailAddress()
650
- jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
682
+ fileName = Util.getFileName(this.paper.f_recording1_path)
651
683
  }
652
684
  HostApp._open_a_page({
653
685
  type: 'boomerang',
654
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
655
- param: {
656
- file: fileName,
657
- requestCode: 111,
658
- diaphaneity: 1000,
659
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code + '\t' + this.paper.f_user_name + '\t' + this.paper.f_address
661
- +jingweidu
662
- }
686
+ page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
687
+ param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
663
688
  })
664
- },
665
- amrCallBack(fileName) {
666
- HostApp.__this__.$set('paper.f_recording1_path', fileName)
667
- HostApp.__callback__ = null
668
- HostApp.__this__ = null
669
- },
670
- record() {
671
- if (this.$parent.$parent.role != 'inspect') {
672
- if (this.paper.f_recording1_path != '') {
673
- window.location = this.paper.f_recording1_path
674
- }
675
- } else {
676
- HostApp.__callback__ = this.amrCallBack
677
- HostApp.__this__ = this
678
- let fileName
679
- if (!this.paper.f_recording1_path) {
680
- fileName = Util.guid() + '.amr'
681
- } else {
682
- fileName = Util.getFileName(this.paper.f_recording1_path)
683
- }
684
- HostApp._open_a_page({
685
- type: 'boomerang',
686
- page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
687
- param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
688
- })
689
- }
690
- },
691
- // 签名回调
692
- signCallback(prop, fileName) {
693
- // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
694
- HostApp.__this__.$set('paper.f_sign_path', fileName)
695
- HostApp.__callback__ = null
696
- HostApp.__this__ = null
697
- },
698
- // 用户签名
699
- sign() {
700
- if (!this.paper.f_read_instructions) {
701
- this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
702
- return
703
- }
704
- this.delAudioFile('f_sign_path', this.paper.f_sign_path)
705
- let prop = 'f_sign_path'
706
- let idx = 'aofeng'
707
- let fileName
708
- if (!this.paper.f_sign_path) {
709
- fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
689
+ }
690
+ },
691
+ // 签名回调
692
+ signCallback(prop, fileName) {
693
+ // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
694
+ HostApp.__this__.$set('paper.f_sign_path', fileName)
695
+ HostApp.__callback__ = null
696
+ HostApp.__this__ = null
697
+ },
698
+ // 用户签名
699
+ sign() {
700
+ if (!this.paper.f_read_instructions) {
701
+ this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
702
+ return
703
+ }
704
+ this.delAudioFile('f_sign_path', this.paper.f_sign_path)
705
+ let prop = 'f_sign_path'
706
+ let idx = 'aofeng'
707
+ let fileName
708
+ if (!this.paper.f_sign_path) {
709
+ fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
710
+ } else {
711
+ fileName = Util.getFileName(this.paper.f_sign_path)
712
+ }
713
+ HostApp.__callback__ = this.signCallback
714
+ HostApp.__this__ = this
715
+ HostApp.getSignature({
716
+ file: fileName,
717
+ requestCode: 111,
718
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
719
+ })
720
+ },
721
+ delfile(prop, fileName, index) {
722
+ if (fileName == Vue.nopic)
723
+ return
724
+ else {
725
+ if (prop == 'f_overall_path') {
726
+ this.paper.f_overall_imgs.splice(index, 1)
727
+ HostApp.delfile(fileName)
710
728
  } else {
711
- fileName = Util.getFileName(this.paper.f_sign_path)
712
- }
713
- HostApp.__callback__ = this.signCallback
714
- HostApp.__this__ = this
715
- HostApp.getSignature({
716
- file: fileName,
717
- requestCode: 111,
718
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
719
- })
720
- },
721
- delfile(prop, fileName, index) {
722
- if (fileName == Vue.nopic)
723
- return
724
- else {
725
- if (prop == 'f_overall_path') {
726
- this.paper.f_overall_imgs.splice(index, 1)
727
- HostApp.delfile(fileName)
728
- } else {
729
- HostApp.delfile(fileName)
730
- this.paper[prop] = Vue.nopic
731
- }
732
- }
733
- },
734
- delAudioFile(prop, fileName) {
735
- if (!fileName)
736
- return
737
- else {
738
729
  HostApp.delfile(fileName)
739
- this.paper[prop] = null
730
+ this.paper[prop] = Vue.nopic
740
731
  }
741
- },
742
- //获取打印用户信息
743
- getUser() {
744
- if (this.paper.f_user_name == undefined)
745
- this.paper.f_user_name = ''
746
- this.printContent.push({
747
- type: 3,
748
- text: '用户名称:' + this.paper.f_user_name,
749
- fontsize: 2,
750
- isbold: false,
751
- align: 'left'
752
- })
753
- if (this.paper.f_userinfo_code == undefined)
754
- this.paper.f_userinfo_code = ''
755
- this.printContent.push({
756
- type: 3,
757
- text: '用户编号:' + this.paper.f_userinfo_code,
758
- fontsize: 2,
759
- isbold: false,
760
- align: 'left'
761
- })
762
- if (this.paper.f_address == undefined)
763
- this.paper.f_address = ''
764
- this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
765
- if (this.paper.f_user_phone == undefined)
766
- this.paper.f_user_phone = ''
767
- this.printContent.push({
768
- type: 3,
769
- text: '电话:' + this.paper.f_user_phone,
770
- fontsize: 2,
771
- isbold: false,
772
- align: 'left'
773
- })
774
- },
775
- verify() {
776
- let hasError = this.$parent.$parent.verifyUser()
777
- if (hasError)
778
- return hasError
779
- hasError = this.$parent.$parent.verifyDevices()
780
- if (hasError)
781
- return hasError
782
- },
783
- print() {
784
- let errString = this.verify()
785
- if (errString) {
786
- ////tag
787
- if (Vue.android)
788
- this.$showMessage(errString)
789
- return
790
- }
791
- // 文本
792
- let templatename = '安检结果单'
793
- if (Vue.config.safecheck != undefined) {
794
- if (Vue.config.safecheck.ApproveConfig != undefined) {
795
- if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
796
- templatename = Vue.config.safecheck.ApproveConfig.templatename
797
- }
732
+ }
733
+ },
734
+ delAudioFile(prop, fileName) {
735
+ if (!fileName)
736
+ return
737
+ else {
738
+ HostApp.delfile(fileName)
739
+ this.paper[prop] = null
740
+ }
741
+ },
742
+ //获取打印用户信息
743
+ getUser() {
744
+ if (this.paper.f_user_name == undefined)
745
+ this.paper.f_user_name = ''
746
+ this.printContent.push({
747
+ type: 3,
748
+ text: '用户名称:' + this.paper.f_user_name,
749
+ fontsize: 2,
750
+ isbold: false,
751
+ align: 'left'
752
+ })
753
+ if (this.paper.f_userinfo_code == undefined)
754
+ this.paper.f_userinfo_code = ''
755
+ this.printContent.push({
756
+ type: 3,
757
+ text: '用户编号:' + this.paper.f_userinfo_code,
758
+ fontsize: 2,
759
+ isbold: false,
760
+ align: 'left'
761
+ })
762
+ if (this.paper.f_address == undefined)
763
+ this.paper.f_address = ''
764
+ this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
765
+ if (this.paper.f_user_phone == undefined)
766
+ this.paper.f_user_phone = ''
767
+ this.printContent.push({
768
+ type: 3,
769
+ text: '电话:' + this.paper.f_user_phone,
770
+ fontsize: 2,
771
+ isbold: false,
772
+ align: 'left'
773
+ })
774
+ },
775
+ verify() {
776
+ let hasError = this.$parent.$parent.verifyUser()
777
+ if (hasError)
778
+ return hasError
779
+ hasError = this.$parent.$parent.verifyDevices()
780
+ if (hasError)
781
+ return hasError
782
+ },
783
+ print() {
784
+ let errString = this.verify()
785
+ if (errString) {
786
+ ////tag
787
+ if (Vue.android)
788
+ this.$showMessage(errString)
789
+ return
790
+ }
791
+ // 文本
792
+ let templatename = '安检结果单'
793
+ if (Vue.config.safecheck != undefined) {
794
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
795
+ if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
796
+ templatename = Vue.config.safecheck.ApproveConfig.templatename
798
797
  }
799
798
  }
800
- let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
801
- let feedPageHead = {type: 4, value: 2, unit: 'line'}
802
- let feedPageEnd = {type: 4, value: 4, unit: 'line'}
803
- this.printContent.push(textHead)
804
- this.printContent.push(feedPageHead)
805
- this.getUser()
806
- this.getDefect()
807
- this.getCheck()
808
- this.printContent.push(feedPageEnd)
809
- let arrstr = JSON.stringify(this.printContent)
810
- ////tag
811
- this.$androidUtil.print(arrstr)
812
- this.$set('printContent', [])
813
- },
814
- //打印安检信息
815
- getCheck() {
816
- let telephone = '96777'
817
- if (Vue.config.safecheck != undefined) {
818
- if (Vue.config.safecheck.ApproveConfig != undefined) {
819
- if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
820
- telephone = Vue.config.safecheck.ApproveConfig.checkphone
821
- }
799
+ }
800
+ let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
801
+ let feedPageHead = {type: 4, value: 2, unit: 'line'}
802
+ let feedPageEnd = {type: 4, value: 4, unit: 'line'}
803
+ this.printContent.push(textHead)
804
+ this.printContent.push(feedPageHead)
805
+ this.getUser()
806
+ this.getDefect()
807
+ this.getCheck()
808
+ this.printContent.push(feedPageEnd)
809
+ let arrstr = JSON.stringify(this.printContent)
810
+ ////tag
811
+ this.$androidUtil.print(arrstr)
812
+ this.$set('printContent', [])
813
+ },
814
+ //打印安检信息
815
+ getCheck() {
816
+ let telephone = '96777'
817
+ if (Vue.config.safecheck != undefined) {
818
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
819
+ if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
820
+ telephone = Vue.config.safecheck.ApproveConfig.checkphone
822
821
  }
823
822
  }
824
- this.printContent.push({
825
- type: 3,
826
- text: '*******************************',
827
- fontsize: 3,
828
- isbold: false,
829
- align: 'center'
830
- })
831
- this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
832
- this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
833
- this.printContent.push({
834
- type: 3,
835
- text: '安检时间:' + this.getNowFormatDate(),
836
- fontsize: 2,
837
- isbold: false,
838
- align: 'left'
839
- })
840
- this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
841
- this.printContent.push({type: 4, value: 4, unit: 'line'})
842
- },
823
+ }
824
+ this.printContent.push({
825
+ type: 3,
826
+ text: '*******************************',
827
+ fontsize: 3,
828
+ isbold: false,
829
+ align: 'center'
830
+ })
831
+ this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
832
+ this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
833
+ this.printContent.push({
834
+ type: 3,
835
+ text: '安检时间:' + this.getNowFormatDate(),
836
+ fontsize: 2,
837
+ isbold: false,
838
+ align: 'left'
839
+ })
840
+ this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
841
+ this.printContent.push({type: 4, value: 4, unit: 'line'})
842
+ },
843
843
 
844
- getDefect() {
845
- let showmore = false
846
- if (Vue.config.safecheck != undefined) {
847
- if (Vue.config.safecheck.ApproveConfig != undefined) {
848
- if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
849
- showmore = Vue.config.safecheck.ApproveConfig.showmore
850
- }
844
+ getDefect() {
845
+ let showmore = false
846
+ if (Vue.config.safecheck != undefined) {
847
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
848
+ if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
849
+ showmore = Vue.config.safecheck.ApproveConfig.showmore
851
850
  }
852
851
  }
852
+ }
853
853
 
854
- let backData = this.$parent.$parent.getAllDefect()
855
- // 对隐患信息进行遍历
856
- let res = JSON.parse(backData.f_defect_content)
857
- this.printContent.push({
858
- type: 3,
859
- text: '安检结果:' + res.result,
860
- fontsize: 2,
861
- isbold: false,
862
- align: 'left'
863
- })
864
- this.printContent.push({
865
- type: 3,
866
- text: '*******************************',
867
- fontsize: 3,
868
- isbold: false,
869
- align: 'center'
870
- })
854
+ let backData = this.$parent.$parent.getAllDefect()
855
+ // 对隐患信息进行遍历
856
+ let res = JSON.parse(backData.f_defect_content)
857
+ this.printContent.push({
858
+ type: 3,
859
+ text: '安检结果:' + res.result,
860
+ fontsize: 2,
861
+ isbold: false,
862
+ align: 'left'
863
+ })
864
+ this.printContent.push({
865
+ type: 3,
866
+ text: '*******************************',
867
+ fontsize: 3,
868
+ isbold: false,
869
+ align: 'center'
870
+ })
871
871
 
872
872
 
873
- if (showmore) {
874
- //全部打印
875
- for (let dev in this.$parent.$parent.config) {
876
- for (let device in backData) {
877
- if (device.startsWith("device")) {
878
- for (let item in backData[device]) {
879
- //遍历结果
880
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
881
- let error = true
882
- for (let i in backData[device][item].f_items) {
883
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
884
- error = false
885
- }
873
+ if (showmore) {
874
+ //全部打印
875
+ for (let dev in this.$parent.$parent.config) {
876
+ for (let device in backData) {
877
+ if (device.startsWith("device")) {
878
+ for (let item in backData[device]) {
879
+ //遍历结果
880
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
881
+ let error = true
882
+ for (let i in backData[device][item].f_items) {
883
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
884
+ error = false
886
885
  }
887
- if (error) {
886
+ }
887
+ if (error) {
888
+ this.printContent.push({
889
+ type: 3,
890
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
891
+ fontsize: 2,
892
+ isbold: false,
893
+ align: 'left'
894
+ })
895
+ } else {
896
+ this.printContent.push({
897
+ type: 3,
898
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
899
+ fontsize: 2,
900
+ isbold: true,
901
+ align: 'left'
902
+ })
903
+ }
904
+
905
+ for (let i in backData[device][item].f_items) {
906
+ if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
888
907
  this.printContent.push({
889
908
  type: 3,
890
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
909
+ text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
891
910
  fontsize: 2,
892
911
  isbold: false,
893
912
  align: 'left'
894
913
  })
895
- } else {
896
- this.printContent.push({
897
- type: 3,
898
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
899
- fontsize: 2,
900
- isbold: true,
901
- align: 'left'
902
- })
903
- }
904
-
905
- for (let i in backData[device][item].f_items) {
906
- if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
907
- this.printContent.push({
908
- type: 3,
909
- text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
910
- fontsize: 2,
911
- isbold: false,
912
- align: 'left'
913
- })
914
- }
915
914
  }
916
- this.printContent.push({type: 4, value: 2, unit: 'line'})
917
915
  }
916
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
918
917
  }
919
918
  }
920
919
  }
921
920
  }
921
+ }
922
922
 
923
- for (let dev in this.$parent.$parent.config) {
924
- for (let device in backData) {
925
- if (device.startsWith("device")) {
926
- for (let item in backData[device]) {
927
- //遍历结果
928
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
929
- let error = true
930
- for (let i in backData[device][item].f_items) {
931
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
932
- error = false
933
- }
923
+ for (let dev in this.$parent.$parent.config) {
924
+ for (let device in backData) {
925
+ if (device.startsWith("device")) {
926
+ for (let item in backData[device]) {
927
+ //遍历结果
928
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
929
+ let error = true
930
+ for (let i in backData[device][item].f_items) {
931
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
932
+ error = false
934
933
  }
935
- if (!error) {
934
+ }
935
+ if (!error) {
936
+ this.printContent.push({
937
+ type: 3,
938
+ text: '隐患:',
939
+ fontsize: 2,
940
+ isbold: true,
941
+ align: 'left'
942
+ })
943
+ }
944
+ }
945
+ }
946
+ }
947
+ }
948
+ for (let device in backData) {
949
+ if (device.startsWith("device")) {
950
+ for (let item in backData[device]) {
951
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
952
+ for (let i in backData[device][item].f_items) {
953
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
936
954
  this.printContent.push({
937
955
  type: 3,
938
- text: '隐患:',
956
+ text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
939
957
  fontsize: 2,
940
958
  isbold: true,
941
959
  align: 'left'
@@ -945,565 +963,547 @@
945
963
  }
946
964
  }
947
965
  }
948
- for (let device in backData) {
949
- if (device.startsWith("device")) {
950
- for (let item in backData[device]) {
951
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
952
- for (let i in backData[device][item].f_items) {
953
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
954
- this.printContent.push({
955
- type: 3,
956
- text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
957
- fontsize: 2,
958
- isbold: true,
959
- align: 'left'
960
- })
961
- }
966
+ }
967
+
968
+ }
969
+ } else {
970
+ for (let dev in this.$parent.$parent.config) {
971
+ for (let device in backData) {
972
+ if (device.startsWith("device")) {
973
+ for (let item in backData[device]) {
974
+ //遍历结果
975
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
976
+ let error = true
977
+ for (let i in backData[device][item].f_items) {
978
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
979
+ error = false
962
980
  }
963
981
  }
964
- }
965
- }
966
- }
982
+ if (error) {
983
+ this.printContent.push({
984
+ type: 3,
985
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
986
+ fontsize: 2,
987
+ isbold: false,
988
+ align: 'left'
989
+ })
990
+ } else {
991
+ this.printContent.push({
992
+ type: 3,
993
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
994
+ fontsize: 2,
995
+ isbold: false,
996
+ align: 'left'
997
+ })
998
+ }
967
999
 
968
- }
969
- } else {
970
- for (let dev in this.$parent.$parent.config) {
971
- for (let device in backData) {
972
- if (device.startsWith("device")) {
973
- for (let item in backData[device]) {
974
- //遍历结果
975
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
976
- let error = true
977
- for (let i in backData[device][item].f_items) {
978
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
979
- error = false
980
- }
981
- }
982
- if (error) {
1000
+ for (let i in backData[device][item].f_items) {
1001
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
983
1002
  this.printContent.push({
984
1003
  type: 3,
985
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
1004
+ text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
986
1005
  fontsize: 2,
987
1006
  isbold: false,
988
1007
  align: 'left'
989
1008
  })
990
- } else {
991
- this.printContent.push({
992
- type: 3,
993
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
994
- fontsize: 2,
995
- isbold: false,
996
- align: 'left'
997
- })
998
- }
999
-
1000
- for (let i in backData[device][item].f_items) {
1001
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
1002
- this.printContent.push({
1003
- type: 3,
1004
- text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
1005
- fontsize: 2,
1006
- isbold: false,
1007
- align: 'left'
1008
- })
1009
- }
1010
1009
  }
1011
- this.printContent.push({type: 4, value: 2, unit: 'line'})
1012
1010
  }
1011
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
1013
1012
  }
1014
1013
  }
1015
1014
  }
1016
1015
  }
1017
1016
  }
1018
- },
1019
- //获取当前时间
1020
- getNowFormatDate() {
1021
- var date = new Date();
1022
- var seperator1 = "-";
1023
- var seperator2 = ":";
1024
- var month = date.getMonth() + 1;
1025
- var strDate = date.getDate();
1026
- if (month >= 1 && month <= 9) {
1027
- month = "0" + month;
1028
- }
1029
- if (strDate >= 0 && strDate <= 9) {
1030
- strDate = "0" + strDate;
1031
- }
1032
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1033
- + " " + date.getHours() + seperator2 + date.getMinutes()
1034
- + seperator2 + date.getSeconds();
1035
- return currentdate;
1036
- },
1037
- readRepair() {
1038
- let url = this.$androidUtil.getProxyUrl()
1039
- let gen = getRepairs(this, url)
1040
- return co(gen)
1041
- },
1042
- showToRepair() {
1043
- let res = this.hasDefect()
1044
- ////tag
1045
- ////tag
1046
- if (res == '正常') {
1047
- this.showrepair = false
1048
- } else {
1049
- this.showrepair = true
1050
- this.assignObj()
1051
- }
1052
- this.showCheckToRepair = !this.showCheckToRepair
1053
- },
1054
- // 选中部门
1055
- reres(val) {
1056
- if (val.res == undefined) {
1057
- return
1058
- }
1059
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1060
- this.$parent.$parent.model.f_meetunit = val.res
1061
- this.$parent.$parent.model.f_orgstr = val.resids
1062
- var arr = val.res.split('.')
1063
- this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1064
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1065
- },
1066
- assignObj() {
1067
- this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1068
- this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1069
- this.$parent.$parent.model.f_address = this.paper.f_address
1070
- this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1071
- this.$parent.$parent.model.f_street = this.paper.f_street
1072
- this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1073
- this.$parent.$parent.model.f_building = this.paper.f_building
1074
- this.$parent.$parent.model.f_unit = this.paper.f_unit
1075
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1076
- this.$parent.$parent.model.f_room = this.paper.f_room
1077
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1078
- this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1079
- this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1080
- },
1081
- hasDefect() {
1082
- let checkResult = '正常'
1083
- let codata = JSON.parse(JSON.stringify(this.paper))
1084
- for (let device in this.paper) {
1085
- if (device.startsWith("device")) {
1086
- for (let item in this.paper[device]) {
1087
- for (let i in this.paper[device][item].f_items) {
1088
- let items = this.paper[device][item].f_items[i]
1089
- ////tag
1090
- if (items.f_is_defect == true || items.f_is_defect == 'true') {
1091
- checkResult = '有隐患'
1092
- }
1017
+ }
1018
+ },
1019
+ //获取当前时间
1020
+ getNowFormatDate() {
1021
+ var date = new Date();
1022
+ var seperator1 = "-";
1023
+ var seperator2 = ":";
1024
+ var month = date.getMonth() + 1;
1025
+ var strDate = date.getDate();
1026
+ if (month >= 1 && month <= 9) {
1027
+ month = "0" + month;
1028
+ }
1029
+ if (strDate >= 0 && strDate <= 9) {
1030
+ strDate = "0" + strDate;
1031
+ }
1032
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1033
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1034
+ + seperator2 + date.getSeconds();
1035
+ return currentdate;
1036
+ },
1037
+ readRepair() {
1038
+ let url = this.$androidUtil.getProxyUrl()
1039
+ let gen = getRepairs(this, url)
1040
+ return co(gen)
1041
+ },
1042
+ showToRepair() {
1043
+ let res = this.hasDefect()
1044
+ ////tag
1045
+ ////tag
1046
+ if (res == '正常') {
1047
+ this.showrepair = false
1048
+ } else {
1049
+ this.showrepair = true
1050
+ this.assignObj()
1051
+ }
1052
+ this.showCheckToRepair = !this.showCheckToRepair
1053
+ },
1054
+ // 选中部门
1055
+ reres(val) {
1056
+ if (val.res == undefined) {
1057
+ return
1058
+ }
1059
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1060
+ this.$parent.$parent.model.f_meetunit = val.res
1061
+ this.$parent.$parent.model.f_orgstr = val.resids
1062
+ var arr = val.res.split('.')
1063
+ this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1064
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1065
+ },
1066
+ assignObj() {
1067
+ this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1068
+ this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1069
+ this.$parent.$parent.model.f_address = this.paper.f_address
1070
+ this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1071
+ this.$parent.$parent.model.f_street = this.paper.f_street
1072
+ this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1073
+ this.$parent.$parent.model.f_building = this.paper.f_building
1074
+ this.$parent.$parent.model.f_unit = this.paper.f_unit
1075
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1076
+ this.$parent.$parent.model.f_room = this.paper.f_room
1077
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1078
+ this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1079
+ this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1080
+ },
1081
+ hasDefect() {
1082
+ let checkResult = '正常'
1083
+ let codata = JSON.parse(JSON.stringify(this.paper))
1084
+ for (let device in this.paper) {
1085
+ if (device.startsWith("device")) {
1086
+ for (let item in this.paper[device]) {
1087
+ for (let i in this.paper[device][item].f_items) {
1088
+ let items = this.paper[device][item].f_items[i]
1089
+ ////tag
1090
+ if (items.f_is_defect == true || items.f_is_defect == 'true') {
1091
+ checkResult = '有隐患'
1093
1092
  }
1094
1093
  }
1095
1094
  }
1096
1095
  }
1097
- return checkResult
1098
- },
1099
- uploadPaper() {
1100
- if (this.showrepair) {
1101
- ////tag
1102
- ////tag
1103
- ////tag
1104
- ////tag
1105
-
1106
- if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1107
- this.$showMessage("请选择维修员!")
1108
- return
1109
- }
1110
- if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1111
- this.$showMessage("请选择站点!")
1112
- return
1113
- }
1114
- if (this.$parent.$parent.model.f_repairtype == '') {
1115
- this.$showMessage("请选择报修类型!")
1116
- return
1117
- }
1118
- this.$parent.$parent.isToRepair = true
1119
- this.$parent.$parent.uploadCheckPaper()
1120
- // this.$parent.$parent.savePaper(false).then((res) => {
1121
- // ////tag
1122
- // if(res != true){
1123
- // ////tag
1124
- // return
1125
- // }else{
1126
- // this.$parent.$parent.todo()
1127
- // }
1128
- // })
1129
- } else {
1130
- this.$parent.$parent.undo()
1131
- }
1132
-
1133
- },
1134
- //确认安检转维修
1135
-
1136
- undo() {
1137
- this.showCheckToRepair = !this.showCheckToRepair
1138
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1139
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1140
- this.$parent.$parent.model.f_repairtype = ''
1141
- this.meading = '转站点'
1142
- },
1143
- //取消拉黑
1144
- async deletebacklist() {
1145
- if (!this.deletecause) {
1146
- this.$showMessage("请填写取消拉黑原因!")
1147
- return
1148
- }
1149
- this.paper.f_blocking_cause = this.deletecause
1150
- ////tag)
1151
- let http = new HttpResetClass()
1096
+ }
1097
+ return checkResult
1098
+ },
1099
+ uploadPaper() {
1100
+ if (this.showrepair) {
1101
+ ////tag
1102
+ ////tag
1152
1103
  ////tag
1153
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1154
- data: {
1155
- items: "version",
1156
- tablename: "t_userinfo",
1157
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1158
- orderitem: "f_userinfo_id"
1159
- }
1160
- }, {resolveMsg: null, rejectMsg: null})
1161
- ////tag)
1162
1104
  ////tag
1163
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1164
- data: {
1165
- "f_operat_type": "取消拉黑",
1166
- "f_state": "有效",
1167
- "f_user_name": this.paper.f_user_name,
1168
- "f_comments": this.paper.f_delete_cause,
1169
- "f_operator": Vue.user.name,
1170
- "f_operatorid": Vue.user.id,
1171
- "f_orgid": Vue.user.orgid,
1172
- "f_orgname": Vue.user.orgs,
1173
- "f_depid": Vue.user.depids,
1174
- "f_depname": Vue.user.deps,
1175
- "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
1176
- "f_userinfo_id": {
1177
- "f_userinfo_id": this.paper.f_userinfoid,
1178
- "f_user_state": "正常",
1179
- "version": res1.data[0].version
1180
- },
1181
- "f_limit_times": "",
1182
- "f_limit_value": ""
1183
- }
1184
- }, {resolveMsg: null, rejectMsg: null})
1185
1105
 
1186
- ////tag)
1187
- if (res2.data.code == 200) {
1188
- this.showmodelthree = false
1189
- this.deleteenabled = true
1190
- this.paper.f_blacklist = "否"
1191
- this.$showMessage("取消该用户限制购气成功!")
1192
- } else {
1193
- this.$showMessage("网络异常,请稍后再试!")
1106
+ if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1107
+ this.$showMessage("请选择维修员!")
1108
+ return
1194
1109
  }
1195
- },
1196
- async backlist() {
1197
- if (!this.cause) {
1198
- this.$showMessage("请填写拉黑原因!")
1110
+ if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1111
+ this.$showMessage("请选择站点!")
1199
1112
  return
1200
1113
  }
1201
- this.paper.f_blocking_cause = this.cause
1202
- ////tag)
1203
- let http = new HttpResetClass()
1204
- ////tag
1205
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1206
- data: {
1207
- items: "version",
1208
- tablename: "t_userinfo",
1209
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1210
- orderitem: "f_userinfo_id"
1211
- }
1212
- }, {resolveMsg: null, rejectMsg: null})
1213
- ////tag)
1214
- ////tag
1215
- let limit_times = 1
1216
- let limit_value = 3
1217
- if (Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value) {
1218
- limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1219
- limit_value = Vue.config.safecheck.ApproveConfig.limit_value
1114
+ if (this.$parent.$parent.model.f_repairtype == '') {
1115
+ this.$showMessage("请选择报修类型!")
1116
+ return
1220
1117
  }
1221
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1222
- data: {
1223
- data: this.$parent.$parent.data,
1224
- item: this.$parent.$parent.data.item,
1225
- "f_operat_type": "拉黑",
1226
- "f_state": "有效",
1227
- "f_user_name": this.paper.f_user_name,
1228
- "f_comments": this.paper.f_blocking_cause,
1229
- "f_operator": Vue.user.name,
1230
- "f_operate_date": Util.toStandardTimeString(),
1231
- "f_operatorid": Vue.user.id,
1232
- "f_orgid": Vue.user.orgid,
1233
- "f_orgname": Vue.user.orgs,
1234
- "f_depid": Vue.user.depids,
1235
- "f_depname": Vue.user.deps,
1236
- "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
1237
- "f_userinfo_id": {
1238
- "f_userinfo_id": this.paper.f_userinfoid
1239
- },
1240
- "f_limit_times": limit_times,
1241
- "f_limit_value": limit_value
1242
- }
1243
- }, {resolveMsg: null, rejectMsg: null})
1118
+ this.$parent.$parent.isToRepair = true
1119
+ this.$parent.$parent.uploadCheckPaper()
1120
+ // this.$parent.$parent.savePaper(false).then((res) => {
1121
+ // ////tag
1122
+ // if(res != true){
1123
+ // ////tag
1124
+ // return
1125
+ // }else{
1126
+ // this.$parent.$parent.todo()
1127
+ // }
1128
+ // })
1129
+ } else {
1130
+ this.$parent.$parent.undo()
1131
+ }
1244
1132
 
1245
- ////tag)
1246
- if (res2.data.code == 200) {
1247
- this.showmodel = false
1248
- this.enabled = true
1249
- this.paper.f_blacklist = "是"
1250
- this.$showMessage("将该用户限制购气成功!")
1251
- } else if (res2.data.msg == '数据增加重复') {
1252
- this.showmodel = false
1253
- this.enabled = true
1254
- this.$showMessage("该用户已被限制购气,请勿重复提交!")
1255
- } else {
1256
- this.$showMessage("网络异常,请稍后再试!")
1133
+ },
1134
+ //确认安检转维修
1135
+
1136
+ undo() {
1137
+ this.showCheckToRepair = !this.showCheckToRepair
1138
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1139
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1140
+ this.$parent.$parent.model.f_repairtype = ''
1141
+ this.meading = '转站点'
1142
+ },
1143
+ //取消拉黑
1144
+ async deletebacklist() {
1145
+ if (!this.deletecause) {
1146
+ this.$showMessage("请填写取消拉黑原因!")
1147
+ return
1148
+ }
1149
+ this.paper.f_blocking_cause = this.deletecause
1150
+ ////tag)
1151
+ let http = new HttpResetClass()
1152
+ ////tag
1153
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1154
+ data: {
1155
+ items: "version",
1156
+ tablename: "t_userinfo",
1157
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1158
+ orderitem: "f_userinfo_id"
1257
1159
  }
1258
- },
1259
- cancel() {
1260
- this.backlistisselect = false
1261
- this.showmodel = false
1262
- },
1263
- deletecancel() {
1264
- this.deletebacklistisselect = false
1265
- this.showmodelthree = false
1266
- },
1267
- repiarmancg(val) {
1268
- if (val) {
1269
- ////tag
1270
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1271
- let http1 = new HttpResetClass()
1272
- http1.load('POST', `${this.Url}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1273
- data: {
1274
- items: 'f_user_telephone',
1275
- tablename: 't_user',
1276
- condition: `name = '${val}'`,
1277
- orderitem: 'id'
1278
- }
1279
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1280
- this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1281
- })
1160
+ }, {resolveMsg: null, rejectMsg: null})
1161
+ ////tag)
1162
+ ////tag
1163
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1164
+ data: {
1165
+ "f_operat_type": "取消拉黑",
1166
+ "f_state": "有效",
1167
+ "f_user_name": this.paper.f_user_name,
1168
+ "f_comments": this.paper.f_delete_cause,
1169
+ "f_operator": Vue.user.name,
1170
+ "f_operatorid": Vue.user.id,
1171
+ "f_orgid": Vue.user.orgid,
1172
+ "f_orgname": Vue.user.orgs,
1173
+ "f_depid": Vue.user.depids,
1174
+ "f_depname": Vue.user.deps,
1175
+ "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
1176
+ "f_userinfo_id": {
1177
+ "f_userinfo_id": this.paper.f_userinfoid,
1178
+ "f_user_state": "正常",
1179
+ "version": res1.data[0].version
1180
+ },
1181
+ "f_limit_times": "",
1182
+ "f_limit_value": ""
1282
1183
  }
1283
- },
1184
+ }, {resolveMsg: null, rejectMsg: null})
1185
+
1186
+ ////tag)
1187
+ if (res2.data.code == 200) {
1188
+ this.showmodelthree = false
1189
+ this.deleteenabled = true
1190
+ this.paper.f_blacklist = "否"
1191
+ this.$showMessage("取消该用户限制购气成功!")
1192
+ } else {
1193
+ this.$showMessage("网络异常,请稍后再试!")
1194
+ }
1284
1195
  },
1285
- async ready() {
1286
- this.isRecodr = this.$appdata.getSingleValue('无限制录音')
1287
- if (this.$appdata.getSingleValue('安检时显示拉黑')) {
1288
- this.showbacklist = this.$appdata.getSingleValue('安检时显示拉黑');
1196
+ async backlist() {
1197
+ if (!this.cause) {
1198
+ this.$showMessage("请填写拉黑原因!")
1199
+ return
1289
1200
  }
1290
- // await this.isoverDate()
1201
+ this.paper.f_blocking_cause = this.cause
1202
+ ////tag)
1203
+ let http = new HttpResetClass()
1291
1204
  ////tag
1205
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1206
+ data: {
1207
+ items: "version",
1208
+ tablename: "t_userinfo",
1209
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1210
+ orderitem: "f_userinfo_id"
1211
+ }
1212
+ }, {resolveMsg: null, rejectMsg: null})
1213
+ ////tag)
1292
1214
  ////tag
1215
+ let limit_times = 1
1216
+ let limit_value = 3
1217
+ if (Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value) {
1218
+ limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1219
+ limit_value = Vue.config.safecheck.ApproveConfig.limit_value
1220
+ }
1221
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1222
+ data: {
1223
+ data: this.$parent.$parent.data,
1224
+ item: this.$parent.$parent.data.item,
1225
+ "f_operat_type": "拉黑",
1226
+ "f_state": "有效",
1227
+ "f_user_name": this.paper.f_user_name,
1228
+ "f_comments": this.paper.f_blocking_cause,
1229
+ "f_operator": Vue.user.name,
1230
+ "f_operate_date": Util.toStandardTimeString(),
1231
+ "f_operatorid": Vue.user.id,
1232
+ "f_orgid": Vue.user.orgid,
1233
+ "f_orgname": Vue.user.orgs,
1234
+ "f_depid": Vue.user.depids,
1235
+ "f_depname": Vue.user.deps,
1236
+ "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
1237
+ "f_userinfo_id": {
1238
+ "f_userinfo_id": this.paper.f_userinfoid
1239
+ },
1240
+ "f_limit_times": limit_times,
1241
+ "f_limit_value": limit_value
1242
+ }
1243
+ }, {resolveMsg: null, rejectMsg: null})
1244
+
1293
1245
  ////tag)
1294
- ////tag))
1295
- if (this.$parent.$parent.role == 'repair') {
1296
- this.$set('style__', 'divmask')
1297
- this.$set('style_view_', '')
1298
- } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1299
- this.$set('style__', 'divmask')
1300
- this.$set('style_view_', 'divmask')
1301
- ////tag
1246
+ if (res2.data.code == 200) {
1247
+ this.showmodel = false
1248
+ this.enabled = true
1249
+ this.paper.f_blacklist = "是"
1250
+ this.$showMessage("将该用户限制购气成功!")
1251
+ } else if (res2.data.msg == '数据增加重复') {
1252
+ this.showmodel = false
1253
+ this.enabled = true
1254
+ this.$showMessage("该用户已被限制购气,请勿重复提交!")
1302
1255
  } else {
1303
- this.$set('style__', '')
1304
- this.$set('style_view_', '')
1256
+ this.$showMessage("网络异常,请稍后再试!")
1305
1257
  }
1306
-
1307
- for (let item of this.radios) {
1308
- if (this.paper.f_client_evaluation == item.label) {
1309
- item.isChecked = true;
1310
- }
1258
+ },
1259
+ cancel() {
1260
+ this.backlistisselect = false
1261
+ this.showmodel = false
1262
+ },
1263
+ deletecancel() {
1264
+ this.deletebacklistisselect = false
1265
+ this.showmodelthree = false
1266
+ },
1267
+ repiarmancg(val) {
1268
+ if (val) {
1269
+ ////tag
1270
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1271
+ let http1 = new HttpResetClass()
1272
+ http1.load('POST', `${this.Url}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1273
+ data: {
1274
+ items: 'f_user_telephone',
1275
+ tablename: 't_user',
1276
+ condition: `name = '${val}'`,
1277
+ orderitem: 'id'
1278
+ }
1279
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1280
+ this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1281
+ })
1311
1282
  }
1312
- if (!this.paper.f_notified_path)
1313
- this.$set('paper.f_notified_path', Vue.nopic)
1314
- if (!this.paper.f_notified1_path)
1315
- this.$set('paper.f_notified1_path', Vue.nopic)
1316
- if (!this.paper.f_notified2_path)
1317
- this.$set('paper.f_notified2_path', Vue.nopic)
1318
- if (!this.paper.f_sign_path)
1319
- this.$set('paper.f_sign_path', Vue.nopic)
1283
+ },
1284
+ },
1285
+ async ready() {
1286
+ this.isRecodr = this.$appdata.getSingleValue('无限制录音')
1287
+ if (this.$appdata.getSingleValue('安检时显示拉黑')) {
1288
+ this.showbacklist = this.$appdata.getSingleValue('安检时显示拉黑');
1289
+ }
1290
+ // await this.isoverDate()
1291
+ ////tag
1292
+ ////tag
1293
+ ////tag)
1294
+ ////tag))
1295
+ if (this.$parent.$parent.role == 'repair') {
1296
+ this.$set('style__', 'divmask')
1297
+ this.$set('style_view_', '')
1298
+ } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1299
+ this.$set('style__', 'divmask')
1300
+ this.$set('style_view_', 'divmask')
1320
1301
  ////tag
1321
- if (!this.paper.f_overall_imgs) {
1322
- let imgs = []
1323
- // imgs.push({f_overall_path:Vue.nopic})
1324
- this.$set('paper.f_overall_imgs', imgs)
1325
- ////tag
1302
+ } else {
1303
+ this.$set('style__', '')
1304
+ this.$set('style_view_', '')
1305
+ }
1306
+
1307
+ for (let item of this.radios) {
1308
+ if (this.paper.f_client_evaluation == item.label) {
1309
+ item.isChecked = true;
1326
1310
  }
1327
- if (!this.paper.f_overall2_path)
1328
- this.$set('paper.f_overall2_path', Vue.nopic)
1311
+ }
1312
+ if (!this.paper.f_notified_path)
1313
+ this.$set('paper.f_notified_path', Vue.nopic)
1314
+ if (!this.paper.f_notified1_path)
1315
+ this.$set('paper.f_notified1_path', Vue.nopic)
1316
+ if (!this.paper.f_notified2_path)
1317
+ this.$set('paper.f_notified2_path', Vue.nopic)
1318
+ if (!this.paper.f_sign_path)
1319
+ this.$set('paper.f_sign_path', Vue.nopic)
1320
+ ////tag
1321
+ if (!this.paper.f_overall_imgs) {
1322
+ let imgs = []
1323
+ // imgs.push({f_overall_path:Vue.nopic})
1324
+ this.$set('paper.f_overall_imgs', imgs)
1325
+ ////tag
1326
+ }
1327
+ if (!this.paper.f_overall2_path)
1328
+ this.$set('paper.f_overall2_path', Vue.nopic)
1329
1329
 
1330
- this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1331
- if (Vue.config.safecheck != undefined) {
1332
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1333
- if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1334
- this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1335
- }
1330
+ this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1331
+ if (Vue.config.safecheck != undefined) {
1332
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1333
+ if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1334
+ this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1336
1335
  }
1337
1336
  }
1338
- let device = this.$parent.$parent.data
1339
- for (const deviceitem in device) {
1340
- if (deviceitem.startsWith('device')) {
1341
- //tag)
1342
- if (device[deviceitem].length == 0) {
1343
- continue
1344
- }
1345
- let items = device[deviceitem][0].f_items
1346
- let deviceType = device[deviceitem][0].f_device_type
1347
- for (let i = 0; i < items.length; i++) {
1348
- if (items[i].f_is_defect) {
1349
- let reason = items[i].f_item_name + ":"
1350
- if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox') {
1351
- for (let j = 0; j < items[i].f_item_value.length; j++) {
1352
- if (j + 1 === items[i].f_item_value.length) {
1353
- reason += items[i].f_item_value[j]
1354
- } else {
1355
- reason += items[i].f_item_value[j] + ","
1356
- }
1337
+ }
1338
+ let device = this.$parent.$parent.data
1339
+ for (const deviceitem in device) {
1340
+ if (deviceitem.startsWith('device')) {
1341
+ //tag)
1342
+ if (device[deviceitem].length == 0) {
1343
+ continue
1344
+ }
1345
+ let items = device[deviceitem][0].f_items
1346
+ let deviceType = device[deviceitem][0].f_device_type
1347
+ for (let i = 0; i < items.length; i++) {
1348
+ if (items[i].f_is_defect) {
1349
+ let reason = items[i].f_item_name + ":"
1350
+ if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox') {
1351
+ for (let j = 0; j < items[i].f_item_value.length; j++) {
1352
+ if (j + 1 === items[i].f_item_value.length) {
1353
+ reason += items[i].f_item_value[j]
1354
+ } else {
1355
+ reason += items[i].f_item_value[j] + ","
1357
1356
  }
1358
- } else {
1359
- reason += items[i].f_item_value
1360
- }
1361
- if (items[i].f_path) {
1362
- this.defectImgs.push(items[i].f_path)
1363
- }
1364
- if (items[i].f_p1_path) {
1365
- this.defectImgs.push(items[i].f_p1_path)
1366
- }
1367
- if (items[i].f_p2_path) {
1368
- this.defectImgs.push(items[i].f_p2_path)
1369
1357
  }
1370
- if (items[i].f_p3_path) {
1371
- this.defectImgs.push(items[i].f_p3_path)
1372
- }
1373
- if (items[i].tooltip) {
1374
- this.defectToolTip.push(items[i].tooltip)
1375
- }
1376
- this.defectReason.push({device: deviceType, deviceitem: reason})
1377
- } else if (items[i].type === 'errorstring' && items[i].f_item_value) {
1378
- let reason = items[i].f_item_name + ":" + items[i].f_item_value
1379
- this.defectReason.push({device: deviceType, deviceitem: reason})
1358
+ } else {
1359
+ reason += items[i].f_item_value
1380
1360
  }
1381
-
1361
+ if (items[i].f_path) {
1362
+ this.defectImgs.push(items[i].f_path)
1363
+ }
1364
+ if (items[i].f_p1_path) {
1365
+ this.defectImgs.push(items[i].f_p1_path)
1366
+ }
1367
+ if (items[i].f_p2_path) {
1368
+ this.defectImgs.push(items[i].f_p2_path)
1369
+ }
1370
+ if (items[i].f_p3_path) {
1371
+ this.defectImgs.push(items[i].f_p3_path)
1372
+ }
1373
+ if (items[i].tooltip) {
1374
+ this.defectToolTip.push(items[i].tooltip)
1375
+ }
1376
+ this.defectReason.push({device: deviceType, deviceitem: reason})
1377
+ } else if (items[i].type === 'errorstring' && items[i].f_item_value) {
1378
+ let reason = items[i].f_item_name + ":" + items[i].f_item_value
1379
+ this.defectReason.push({device: deviceType, deviceitem: reason})
1382
1380
  }
1381
+
1383
1382
  }
1384
1383
  }
1384
+ }
1385
+ ////tag
1386
+ ////tag
1387
+ //tag
1388
+ ////tag
1389
+ //tag)
1390
+ //tag)
1391
+ //tag)
1392
+ ////tag
1393
+ ////tag
1394
+ ////tag
1395
+ },
1396
+ watch: {
1397
+ '$parent.$parent.isUpload'(val) {
1385
1398
  ////tag
1399
+ },
1400
+ 'meading'(val) {
1386
1401
  ////tag
1387
- //tag
1388
- ////tag
1389
- //tag)
1390
- //tag)
1391
- //tag)
1392
- ////tag
1393
- ////tag
1394
- ////tag
1402
+ this.$parent.$parent.meading = val
1395
1403
  },
1396
- watch: {
1397
- '$parent.$parent.isUpload'(val) {
1398
- ////tag
1399
- },
1400
- 'meading'(val) {
1401
- ////tag
1402
- this.$parent.$parent.meading = val
1403
- },
1404
- 'backlistisselect'(val) {
1405
- if (val == true) {
1406
- this.showmodel = true
1407
- this.deletebacklistisselect = false
1408
- }
1409
- },
1410
- 'deletebacklistisselect'(val) {
1411
- if (val == true) {
1412
- this.showmodelthree = true
1413
- this.backlistisselect = false
1414
- }
1415
- },
1416
- 'isRecodr'(val) {
1417
- if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1418
- this.isRecodr = "false";
1419
- }
1404
+ 'backlistisselect'(val) {
1405
+ if (val == true) {
1406
+ this.showmodel = true
1407
+ this.deletebacklistisselect = false
1408
+ }
1409
+ },
1410
+ 'deletebacklistisselect'(val) {
1411
+ if (val == true) {
1412
+ this.showmodelthree = true
1413
+ this.backlistisselect = false
1414
+ }
1415
+ },
1416
+ 'isRecodr'(val) {
1417
+ if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1418
+ this.isRecodr = "false";
1420
1419
  }
1421
1420
  }
1422
1421
  }
1422
+ }
1423
1423
  </script>
1424
1424
  <style scoped>
1425
- .panel-self {
1426
- border-radius: 5px;
1427
- border: 1px solid #c5e1f7;
1428
- background-color: #F2F6FA;
1429
- }
1425
+ .panel-self {
1426
+ border-radius: 5px;
1427
+ border: 1px solid #c5e1f7;
1428
+ background-color: #F2F6FA;
1429
+ }
1430
1430
 
1431
- .text-left {
1432
- text-align: left;
1433
- }
1431
+ .text-left {
1432
+ text-align: left;
1433
+ }
1434
1434
 
1435
- .font {
1436
- font: 15px PingFang-SC-Medium;
1437
- color: #333333;
1438
- }
1435
+ .font {
1436
+ font: 15px PingFang-SC-Medium;
1437
+ color: #333333;
1438
+ }
1439
1439
 
1440
- .showIi {
1441
- font: 14px PingFang-SC-Medium;
1442
- color: #666666;
1443
- }
1440
+ .showIi {
1441
+ font: 14px PingFang-SC-Medium;
1442
+ color: #666666;
1443
+ }
1444
1444
 
1445
- .info {
1446
- margin-top: 15px;
1447
- border-radius: 5px;
1448
- background-color: #f3faff;
1449
- }
1445
+ .info {
1446
+ margin-top: 15px;
1447
+ border-radius: 5px;
1448
+ background-color: #f3faff;
1449
+ }
1450
1450
 
1451
- .btn-photo {
1452
- border: 0;
1453
- border-radius: 7px;
1454
- background-color: #7dc1f4;
1455
- font: 15px PingFang-SC-Bold;
1456
- height: 20%;
1457
- }
1451
+ .btn-photo {
1452
+ border: 0;
1453
+ border-radius: 7px;
1454
+ background-color: #7dc1f4;
1455
+ font: 15px PingFang-SC-Bold;
1456
+ height: 20%;
1457
+ }
1458
1458
 
1459
- .div-photo {
1460
- width: auto;
1461
- height: auto;
1462
- /* margin-top: 10px; */
1463
- position: absolute;
1464
- bottom: 10px;
1465
- right: 10px;
1466
- }
1459
+ .div-photo {
1460
+ width: auto;
1461
+ height: auto;
1462
+ /* margin-top: 10px; */
1463
+ position: absolute;
1464
+ bottom: 10px;
1465
+ right: 10px;
1466
+ }
1467
1467
 
1468
- .btn-voice {
1469
- border-radius: 7px;
1470
- border: 1px solid #dedede;
1471
- background-color: #f5fbff;
1472
- font: 15px PingFang-SC-Bold;
1473
- color: #499edf;
1474
- }
1468
+ .btn-voice {
1469
+ border-radius: 7px;
1470
+ border: 1px solid #dedede;
1471
+ background-color: #f5fbff;
1472
+ font: 15px PingFang-SC-Bold;
1473
+ color: #499edf;
1474
+ }
1475
1475
 
1476
- .save-btn {
1477
- width: 25%;
1478
- background-color: #499edf;
1479
- border-radius: 6px;
1480
- color: #FFFFFF;
1481
- font: 15px PingFang-SC-Bold;
1482
- }
1476
+ .save-btn {
1477
+ width: 25%;
1478
+ background-color: #499edf;
1479
+ border-radius: 6px;
1480
+ color: #FFFFFF;
1481
+ font: 15px PingFang-SC-Bold;
1482
+ }
1483
1483
 
1484
- .upload-btn {
1485
- width: 25%;
1486
- background-color: #ffffff;
1487
- border: 1px solid #499edf;
1488
- border-radius: 6px;
1489
- color: #499edf;
1490
- font: 15px PingFang-SC-Bold;
1491
- }
1484
+ .upload-btn {
1485
+ width: 25%;
1486
+ background-color: #ffffff;
1487
+ border: 1px solid #499edf;
1488
+ border-radius: 6px;
1489
+ color: #499edf;
1490
+ font: 15px PingFang-SC-Bold;
1491
+ }
1492
1492
 
1493
- .repair-btn {
1494
- width: 25%;
1495
- border: 1px solid #499edf;
1496
- border-radius: 6px;
1497
- font: 15px PingFang-SC-Bold;
1498
- }
1493
+ .repair-btn {
1494
+ width: 25%;
1495
+ border: 1px solid #499edf;
1496
+ border-radius: 6px;
1497
+ font: 15px PingFang-SC-Bold;
1498
+ }
1499
1499
 
1500
- #el_ca_tx {
1501
- width: 100%;
1502
- margin: 5px;
1503
- }
1500
+ #el_ca_tx {
1501
+ width: 100%;
1502
+ margin: 5px;
1503
+ }
1504
1504
 
1505
- #el_ca_txt {
1506
- width: 100%;
1507
- margin: 5px;
1508
- }
1505
+ #el_ca_txt {
1506
+ width: 100%;
1507
+ margin: 5px;
1508
+ }
1509
1509
  </style>