safecheck-client 4.0.0-23 → 4.0.0-24

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