safecheck-client 4.0.1-38 → 4.0.1-39

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