safecheck-client 4.0.0-108 → 4.0.0-109

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