safecheck-client 4.0.0-22 → 4.0.0-23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/package.json +1 -1
  2. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  3. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  4. package/src/components/android/AddPlanItem.vue +447 -447
  5. package/src/components/android/AddPlanItemYy.vue +451 -451
  6. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  7. package/src/components/android/BlackUserOnLine.vue +318 -318
  8. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  9. package/src/components/android/Devices.vue +327 -327
  10. package/src/components/android/Devicesm.vue +327 -327
  11. package/src/components/android/PaperFeedbackTemp.vue +1470 -1470
  12. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  13. package/src/components/android/PhoneRecordInfo.vue +113 -113
  14. package/src/components/android/PhoneSellInfo.vue +113 -113
  15. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  16. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  17. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  18. package/src/components/android/SafePlanItem.vue +509 -509
  19. package/src/components/android/SafecheckDevices.vue +1337 -1337
  20. package/src/components/android/UserinfoSelect.vue +714 -714
  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/checkmsg.vue +459 -459
  26. package/src/components/defect/DefectList.vue +507 -507
  27. package/src/components/defect/DefectListWeixiu.vue +484 -484
  28. package/src/components/filialCircle/CircleList.vue +139 -139
  29. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  30. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  31. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  32. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  33. package/src/components/inspections/inspectionFeedback.vue +720 -720
  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/pc/AnnouncementPC.vue +524 -524
  39. package/src/components/pc/DefectList.vue +742 -742
  40. package/src/components/pc/DeviceChange.vue +1068 -1068
  41. package/src/components/pc/SafeVisitInfo.vue +261 -261
  42. package/src/components/planmanage/PlanManage.vue +886 -888
  43. package/src/components/planmanage/checkPlanList.vue +368 -368
  44. package/src/components/querycheckpaper/CheckPaperList.vue +130 -130
  45. package/src/components/report/HiddenSituation.vue +165 -165
  46. package/src/components/rongcheng/AspPaperFeedback.vue +1179 -1179
  47. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  48. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  49. package/src/components/rongcheng/DefectList.vue +560 -560
  50. package/src/components/rongcheng/PaperFeedback.vue +1318 -1318
  51. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  52. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  53. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  54. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  55. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2731 -2731
  56. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  57. package/src/components/shaoguan/DefectList.vue +473 -473
  58. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  59. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  60. package/src/components/userfile/SecurityAudit.vue +243 -243
  61. package/src/components/userfileNew/UserInfoAuditNew.vue +274 -274
  62. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  63. package/src/filiale/ancheng/android/PaperFeedback.vue +1489 -1489
  64. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  65. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  66. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  67. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  68. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  69. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  70. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  71. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  72. package/src/filiale/bayan/android/Edit.vue +132 -132
  73. package/src/filiale/bayan/android/PaperFeedback.vue +1669 -1669
  74. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  75. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  76. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  77. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  78. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  79. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  80. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  81. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  82. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  83. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  84. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  85. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  86. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  87. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  88. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
  89. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  90. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  91. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  92. package/src/filiale/huatong/android/PaperFeedback.vue +1433 -1433
  93. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  94. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  95. package/src/filiale/huayin/android/PaperFeedback.vue +1422 -1422
  96. package/src/filiale/huayin/android/SafecheckOrderV.vue +2712 -2712
  97. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  98. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  99. package/src/filiale/jiaocheng/android/PaperFeedback.vue +1308 -1308
  100. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  101. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  102. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  103. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  104. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  105. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  106. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  107. package/src/filiale/jingyang/android/PaperFeedback.vue +1493 -1493
  108. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  109. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  110. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +420 -420
  111. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  112. package/src/filiale/kelai/android/AndroidDefectDeal.vue +747 -747
  113. package/src/filiale/kelai/android/PaperFeedback.vue +1539 -1539
  114. package/src/filiale/kelai/android/SafecheckOrderV.vue +2448 -2448
  115. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  116. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  117. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  118. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  119. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  120. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  121. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  122. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  123. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  124. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  125. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  126. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  127. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  128. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  129. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  130. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  131. package/src/filiale/pingxiang/android/PaperFeedback.vue +1399 -1399
  132. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  133. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  134. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  135. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  136. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  137. package/src/filiale/qianneng/android/PaperFeedback.vue +1434 -1434
  138. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  139. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  140. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  141. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  142. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  143. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  144. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  145. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  146. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  147. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  148. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  149. package/src/filiale/rizhao/android/PaperFeedback.vue +1510 -1510
  150. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  151. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  152. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  153. package/src/filiale/rongchuang/android/PaperFeedback.vue +1455 -1455
  154. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  155. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  156. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  157. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  158. package/src/filiale/shanggao/android/PaperFeedback.vue +1422 -1422
  159. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  160. package/src/filiale/shanxian/android/PaperFeedback.vue +1445 -1445
  161. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  162. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  163. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  164. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  165. package/src/filiale/shexian/android/PaperFeedback.vue +1448 -1448
  166. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  167. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  168. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  169. package/src/filiale/shimen/android/PaperFeedback.vue +1341 -1341
  170. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  171. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  172. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  173. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  174. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  175. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  176. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  177. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  178. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  179. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  180. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  181. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  182. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  183. package/src/filiale/tongchuan/android/PaperFeedback.vue +1316 -1316
  184. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  185. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  186. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  187. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  188. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  189. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  190. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  191. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  192. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  193. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  194. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  195. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  196. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  197. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  198. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  199. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  200. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  201. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  202. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  203. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  204. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  205. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  206. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  207. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  208. package/src/filiale/wenxi/android/PaperFeedback.vue +1607 -1607
  209. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  210. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  211. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  212. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  213. package/src/filiale/wuan/android/PaperFeedback.vue +1433 -1433
  214. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  215. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  216. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  217. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  218. package/src/filiale/wuhai/android/PaperFeedback.vue +1350 -1350
  219. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  220. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  221. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  222. package/src/filiale/xinkang/android/SafecheckOrderV.vue +2732 -2732
  223. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +747 -747
  224. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  225. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1498 -1498
  226. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  227. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  228. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  229. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  230. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  231. package/src/filiale/yongzhou/android/PaperFeedback.vue +1519 -1519
  232. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  233. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  234. package/src/filiale/yuansheng/android/PaperFeedback.vue +1488 -1488
  235. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  236. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  237. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  238. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  239. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  240. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  241. package/src/filiale/zhongsheng/android/PaperFeedback.vue +1341 -1341
  242. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  243. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  244. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  245. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  246. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  247. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  248. package/src/filiale/zhoukou/android/PaperFeedback.vue +1367 -1367
  249. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  250. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  251. package/src/main.js +32 -33
@@ -1,775 +1,775 @@
1
- <template>
2
- <div class="auto app-text">
3
- <div class="panel" style="padding: 10px 10px 5px 10px;">
4
- <div class="panel-body panel-self">
5
- <div class="col-xs-12" style="padding: 2px 0">
6
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
7
- <!--<a class="panel-title col-xs-7 text-left input-font" style="width: 79%;color: blue;text-decoration:underline" @click="searchHistory(userinfo.f_userinfoid)">{{ userinfo.f_userinfo_code }}</a>-->
8
- <p class="panel-title col-xs-7 text-left input-font">
9
- <label @click="searchHistory(userinfo.f_userinfoid)"
10
- style="color: #00b3ee;text-decoration:none;">{{ userinfo.f_userinfo_code }}</label>
11
- <label
12
- v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;"
13
- @click="upuserinfo(userinfo.f_userinfoid)">信息变更</label>
14
- </p>
15
- </div>
16
- <div class="col-xs-12" style="padding: 2px 0">
17
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
18
- <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_user_name }}</p>
19
- </div>
20
- <div class="col-xs-12" style="padding: 2px 0">
21
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户类型:</b></p>
22
- <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_check_type }}
23
- </p>
24
- </div>
25
- <div class="col-xs-12" style="padding: 2px 0">
26
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户电话:</b></p>
27
- <input class="panel-title text-left input-font" style="width: 53%"
28
- value="{{ userinfo.f_user_phone2 ? userinfo.f_user_phone2 : userinfo.f_user_phone }}"
29
- v-model="userinfo.f_user_phone"
30
- readonly
31
- />
32
-
33
- </div>
34
- <!-- <div class="col-xs-12" style="padding: 2px 0" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')">-->
35
- <!-- <p class="panel-title text-left font" style="width: 23%;float: left"><b>机表表号:</b></p>-->
36
- <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meter_no }}" v-model="userinfo.f_meter_no"/>-->
37
-
38
- <!-- </div>-->
39
- <div class="col-xs-12" style="padding: 2px 0">
40
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户小区:</b></p>
41
- <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_residential_area }}</p>
42
- </div>
43
- <div class="col-xs-12" style="padding: 2px 0">
44
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
45
- <p class="panel-title text-left input-font" style="width: 79%;float: left">{{ userinfo.f_address }}</p>
46
- </div>
47
- <div class="col-xs-12" style="padding: 2px 0">
48
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>安检状态:</b></p>
49
- <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_state }}</p>
50
- </div>
51
- <div class="col-xs-12" style="padding: 2px 0">
52
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>防盗卡号1:</b></p>
53
- <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_defendcard }}</p>
54
- </div>
55
- <div class="col-xs-12" style="padding: 2px 0">
56
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>防盗卡号2:</b></p>
57
- <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_defendcard_two }}</p>
58
- </div>
59
- <div class="col-xs-12" style="padding: 2px 0">
60
- <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>是否换表:</b></p>
61
- <p class="panel-title text-left input-font" style="width: 79%">{{isChange}}</p>
62
- </div>
63
- <div class="col-xs-12" style="padding: 2px 0" v-if="isChange=='是'">
64
- <p class="panel-title text-left input-font" style="width: 79%">旧表是:{{ oldGasType }},新表是{{newGasType}}</p>
65
- </div>
66
- <div class="col-xs-12">
67
- <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone"
68
- @click="updatePhone(userinfo.f_user_phone,userinfo.f_userinfoid)">电话修改
69
- </button>
70
- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updatemetermodel"
71
- @click="showbiaoxinghao()">表型号修改
72
- </button>
73
- </div>
74
- <div class="col-xs-12">
75
- <button type="button" style="width: 45%;float: left" class="btn btn-primary"
76
- v-if="updatemeternumber&&(userinfo.planmeterss.f_aliasname=='机表')"
77
- @click="updatebiaohao(userinfo.f_meter_no,userinfo.f_userinfoid)">表号修改
78
- </button>
79
- <!-- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>-->
80
- </div>
81
- </div>
82
- <div class="panel-body">
83
- <div v-show="false" class="row repair-info-content auto">
84
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
85
- <label class="control-label">
86
- <nobr>到达时间:</nobr>
87
- </label>
88
- <span>{{ f_onsite_time }}</span>
89
- </div>
90
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
91
- <label class="control-label">
92
- <nobr>离开时间:</nobr>
93
- </label>
94
- <span>{{ f_offsite_time }}</span>
95
- </div>
96
- </div>
97
-
98
-
99
- <div style="font-size: medium;" :class="style__">
100
- <span class="col-md-3 col-sm-4 col-xs-4 text-left">
101
- <img src="../../../assets/housestyle.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">入户状态:
102
- </span>
103
- <div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
104
- <input type="radio" name="enterstatus" v-model="f_entry_status" id="nopeople" value="到访不遇">到访不遇
105
- <input type="radio" name="enterstatus" v-model="f_entry_status" id="rejectchecck" value="拒检">拒检
106
- <input type="radio" name="enterstatus" v-model="f_entry_status" id="enterhouse" value="入户">入户
107
- </div>
108
- </div>
109
- <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
110
- <label class="text-left font">到访不遇照片:</label>
111
- <div class="auto">
112
- <div class="panel" style="padding: 10px 10px 5px 10px;">
113
- <div class="panel-body panel-self"
114
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
115
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
116
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
117
- v-for="(index,img) in f_noanswers_path">
118
- <img-self :src="img.f_noanswer_path" alt="到访不遇照片" :width="130" :height="160"></img-self>
119
- <img src="../../../assets/删除.png" @click="delfile('f_noanswers_path', img.f_noanswer_path,index)"
120
- style="width: 15px;margin-top: -80px" alt="">
121
- </div>
122
- </div>
123
- <div class="row text-right div-photo" :class="style__">
124
- <button type="button" name="button" class="btn btn-primary btn-photo"
125
- @click="takePic('拍照','f_noanswers_path', '到访不遇照片')">拍照
126
- </button>
127
- <!-- <button type="button" name="button" class="btn btn-primary btn-photo"-->
128
- <!-- @click="takePic('相册','f_noanswers_path', '到访不遇照片')">相册-->
129
- <!-- </button>-->
130
- </div>
131
- </div>
132
- </div>
133
- </div>
134
- </div>
135
- <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='拒检'">
136
- <label class="text-left font">拒检照片:</label>
137
- <div class="auto">
138
- <div class="panel" style="padding: 10px 10px 5px 10px;">
139
- <div class="panel-body panel-self"
140
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
141
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
142
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
143
- v-for="(index,img) in f_rejectchecks_path">
144
- <img-self :src="img.f_rejectcheck_path" alt="拒检照片" :width="130" :height="160"></img-self>
145
- <img src="../../../assets/删除.png" @click="delfile('f_rejectchecks_path', img.f_rejectcheck_path,index)"
146
- style="width: 15px;margin-top: -80px" alt="">
147
- </div>
148
- </div>
149
- <div class="row text-right div-photo" :class="style__">
150
- <button type="button" name="button" class="btn btn-primary btn-photo"
151
- @click="takePic('拍照','f_rejectchecks_path', '拒检照片')">拍照
152
- </button>
153
- </div>
154
- </div>
155
- </div>
156
- </div>
157
- </div>
158
- </div>
159
- </div>
160
- <div :class="style__" class="form-group" v-show="f_usegas == '未使用'">
161
- <sapn class="text-left col-md-12 col-sm-12 col-xs-12">处置方式:</sapn>
162
- <div class="col-xs-12 col-sm-12 col-md-12">
163
- <input type="checkbox" v-model="f_no_gas_device">无燃气具
164
- <input type="checkbox" v-model="f_close_valve">关闭表前阀
165
- <input type="checkbox" v-model="f_unload_battery">取下表内电池
166
- </div>
167
- </div>
168
- <div class="auto app-text" style="margin-top: 5px;" v-if="this.$parent.$parent.role != 'view'">
169
- <div class="panel" style="padding: 10px 7px 10px 0px;">
170
- <div class="panel-body panel-self">
171
- <div v-show="false" class="row">
172
- <p class="panel-title col-xs-4 text-left font">建档时间</p>
173
- <p class="panel-title col-xs-8 text-left input-font">{{ newfile_date }}</p>
174
- </div>
175
- <div class="row" v-if="last_check_date != null && last_check_date != ''">
176
- <p class="panel-title col-xs-4 text-left font">上次安检时间</p>
177
- <p class="panel-title col-xs-8 text-left input-font">{{ last_check_date }}</p>
178
- </div>
179
- <div class="row">
180
- <p class="panel-title col-xs-4 text-left font">上次安检状态</p>
181
- <p class="panel-title col-xs-8 text-left input-font"
182
- v-if="last_check_date != null && last_check_date != ''">{{last_check_state}}</p>
183
- <p class="panel-title col-xs-8 text-left input-font"
184
- v-if="last_check_date == null || last_check_date == ''">未安检</p>
185
- </div>
186
- <div class="row" v-if="last_check_date != null && last_check_date != ''">
187
- <p class="panel-title col-xs-4 text-left font">上次安检结果</p>
188
- <p class="panel-title col-xs-8 text-left input-font" :class="last_check_result=='正常'?'':'color-red'">
189
- {{ last_check_result }}</p>
190
- <div v-for="data in last_check_data.data" class="panel-title col-xs-offset-4 col-xs-8 text-left input-font">
191
- <p v-for="(key,item) in data">
192
- {{ key }}:{{ item }}
193
- </p>
194
- </div>
195
- </div>
196
- </div>
197
- </div>
198
- </div>
199
- </div>
200
- <div v-if="showbModal">
201
- <modal :show.sync="showbModal" v-ref:modal backdrop="false">
202
- <div slot="modal-header" class="modal-header">
203
- <h4 class="modal-title">
204
- 选择表型号
205
- </h4>
206
- </div>
207
- <div slot="modal-body" class="modal-body">
208
- <div class="col-xs-12">
209
-
210
- <v-select :value.sync="biaoxinghao" v-model='biaoxinghao'
211
- :value-single="true"
212
- class="select_list select"
213
- :options='gmlist' placeholder='请选择表型号'
214
- close-on-select width="100%"></v-select>
215
- </div>
216
- <div class="col-xs-12" style="height: 10px">
217
-
218
- </div>
219
-
220
- </div>
221
- <div slot="modal-footer" class="modal-footer">
222
- <button class="btn btn-default" @click="biaoxinghaook()">确认</button>
223
- <button class="btn btn-default" @click="biaoxinghaocancel()">取消</button>
224
- </div>
225
- </modal>
226
- </div>
227
- </template>
228
-
229
- <script>
230
- import {HttpResetClass} from 'vue-client'
231
- import * as Util from '../../Util'
232
- import Vue from 'vue'
233
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
234
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
235
-
236
- export default {
237
- title: 'SafecheckUserInfo',
238
- props: ['userinfo'],
239
- data () {
240
- return this.$parent.$parent.data
241
- },
242
- created () {
243
- this.$set('showbModal', false)
244
- //tag
245
- this.$set('biaoxinghao', '')
246
- },
247
- ready () {
248
- //tag
249
- //tag)
250
- // //tag)
251
- // this.$set('userinfo.f_meter_no',this.userinfo.planmeterss.f_meter_no)
252
- // //tag)
253
- this.$set('beforephone', this.userinfo.f_user_phone)
254
- this.$set('gmlist', [])
255
- //tag
256
- if (Vue.config.safecheck != undefined) {
257
- if (Vue.config.safecheck.SafecheckUserinfo != undefined) {
258
- if (Vue.config.safecheck.SafecheckUserinfo.updateuserphone != undefined) {
259
- this.$set('updateuserphone', Vue.config.safecheck.SafecheckUserinfo.updateuserphone)
260
- }
261
- if (Vue.config.safecheck.SafecheckUserinfo.updatemetermodel != undefined) {
262
- this.$set('updatemetermodel', Vue.config.safecheck.SafecheckUserinfo.updatemetermodel)
263
- }
264
- if (Vue.config.safecheck.SafecheckUserinfo.updatemeternumber != undefined) {
265
- this.$set('updatemeternumber', Vue.config.safecheck.SafecheckUserinfo.updatemeternumber)
266
- }
267
- }
268
- }
269
- for (let i in this.userinfo) {
270
- //tag + ':' + JSON.stringify(this.userinfo[i]))
271
- }
272
- this.safecheckStateReady()
273
- this.getGasType()
274
- },
275
- methods: {
276
- getGasType () {
277
- let http = new HttpResetClass()
278
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckGetGasType`, {
279
- f_userinfo_id:this.userinfo.f_userinfoid,
280
- f_start_date:this.$parent.$parent.data.f_create_time,
281
- //当前时间
282
- f_end_date:Util.toStandardTimeString()
283
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
284
- if (res.data) {
285
- this.$set('isChange', res.data.isChange)
286
- this.$set('newGasType', res.data.newType)
287
- this.$set('oldGasType', res.data.oldType)
288
- } else {
289
- this.$showMessage('查询失败!,网络异常')
290
- }
291
- })
292
- },
293
- updatebiaohao (f_meter_no, f_userinfo_id) {
294
- this.$showMessage('将用户 ' + this.userinfo.f_user_name + '的机表表号从' + this.userinfo.planmeterss.f_meter_no + '修改为' + f_meter_no, ['confirm', 'cancel']).then((butt) => {
295
- if (butt == 'confirm') {
296
- let http = new HttpResetClass()
297
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckUpdateBiaoHao`, {
298
- f_meter_no: f_meter_no,
299
- f_userinfo_id: f_userinfo_id
300
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
301
- if (res.data.code == 200) {
302
- this.$showMessage('修改成功!')
303
- } else {
304
- this.$showMessage('修改失败!,网络异常')
305
- }
306
- })
307
- }
308
- })
309
- },
310
- biaoxinghaook () {
311
- if (this.biaoxinghao == '') {
312
- this.$showMessage('请选择表型号')
313
- return
314
- }
315
- //tag
316
- //tag
317
- this.$showMessage('是否确定进行修改?', ['confirm', 'cancel']).then((butt) => {
318
- if (butt == 'confirm') {
319
- let http = new HttpResetClass()
320
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckUpdateBiaoXingHao`, {
321
- biaoxinghao: this.biaoxinghao,
322
- f_userinfo_id: this.userinfo.f_userinfoid
323
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
324
- if (res.data.code == 200) {
325
- this.$showMessage('修改成功!')
326
- //tag
327
- this.showbModal = false
328
- } else {
329
- this.$showMessage('修改失败!,网络异常')
330
- }
331
- })
332
- }
333
- })
334
- },
335
- biaoxinghaocancel () {
336
- //tag
337
- this.showbModal = false
338
- },
339
- showbiaoxinghao () {
340
- this.gmlist = []
341
- //tag)
342
- //tag
343
- let http1 = new HttpResetClass()
344
- http1.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
345
- data: {
346
- items: 'gm.id,gm.f_meter_style',
347
- tablename: 't_gasbrand gb LEFT JOIN t_gasmodel gm ON gb.id= gm.f_gasbrand_id ',
348
- condition: `f_meter_brand = '${this.userinfo.planmeterss.f_aliasname}'`,
349
- // condition: `f_meter_brand = 'this.userinfo.planmeterss'`,
350
- orderitem: 'gm.id'
351
- }
352
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
353
- ress.data.forEach(res => {
354
- this.gmlist.push({
355
- label: res.f_meter_style,
356
- value: res.id
357
- })
358
- })
359
- //tag)
360
- //tag
361
- this.showbModal = true
362
- })
363
- },
364
- updatePhone (f_user_phone, f_userinfo_id) {
365
-
366
- this.$showMessage('将用户 ' + this.userinfo.f_user_name + '的电话号码从' + this.beforephone + '修改为' + f_user_phone, ['confirm', 'cancel']).then((butt) => {
367
- if (butt == 'confirm') {
368
- let http = new HttpResetClass()
369
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckUpdatePhone`, {
370
- f_user_phone: f_user_phone,
371
- f_userinfo_id: f_userinfo_id
372
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
373
- if (res.data.code == 200) {
374
- this.$showMessage('修改成功!')
375
- } else {
376
- this.$showMessage('修改失败!,网络异常')
377
- }
378
- })
379
- }
380
- })
381
- },
382
- upuserinfo (f_userinfo_id) {
383
- this.$dispatch('gotoson', {
384
- _this: this.$parent.$parent,
385
- title: '档案信息变更',
386
- safe: false
387
- })
388
- let _this = this.$parent.$parent
389
- this.$parent.$parent.$goto('PhoneUpUserinfo', {f_userinfo_id: f_userinfo_id, f_source: '安检'},'self',function () {
390
- _this.updateUserCallBack()
391
- })
392
- },
393
- searchHistory (f_userinfo_id) {
394
- this.$dispatch('gotoson', {
395
- _this: this.$parent.$parent,
396
- title: '购气记录',
397
- safe: false
398
- })
399
- this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
400
- },
401
- cameraCallBack (prop, fileName) {
402
- if (prop == 'f_noanswers_path') {
403
- let f_noanswer_path = fileName + '?' + Math.random()
404
- HostApp.__this__.f_noanswers_path.push({
405
- f_noanswer_path: f_noanswer_path
406
- })
407
- } else if (prop == 'f_rejectchecks_path') {
408
- let f_rejectcheck_path = fileName + '?' + Math.random()
409
- HostApp.__this__.f_rejectchecks_path.push({
410
- f_rejectcheck_path: f_rejectcheck_path
411
- })
412
- }else {
413
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
414
- }
415
- HostApp.__callback__ = null
416
- HostApp.__this__ = null
417
- },
418
- takePic (type ,prop, title) {
419
- HostApp.__callback__ = this.cameraCallBack
420
- HostApp.__this__ = this
421
- //tag
422
- let fileName
423
- if (prop == 'f_noanswers_path') {
424
- //tag
425
- if (this.f_noanswers_path.length == 3) {
426
- return
427
- }
428
- fileName = Util.guid() + '-' + prop + '.jpg'
429
- } else if (prop == 'f_rejectchecks_path') {
430
- //tag
431
- if (this.f_rejectchecks_path.length == 3) {
432
- return
433
- }
434
- fileName = Util.guid() + '-' + prop + '.jpg'
435
- }else {
436
- if (!this[prop] || this[prop].includes('nopic.png')) {
437
- fileName = Util.guid() + '-' + prop + '.jpg'
438
- } else {
439
- fileName = Util.getFileName(this[prop])
440
- }
441
- }
442
- let page = 'com.aofeng.hybrid.android.peripheral.CameraActivity'
443
- if(type === '相册'){
444
- page ='com.aofeng.hybrid.android.peripheral.ActionPickActivity'
445
- }
446
- HostApp._open_a_page({
447
- type: 'boomerang',
448
- page,
449
- param: {
450
- file: fileName,
451
- requestCode: 111,
452
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
453
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
454
- }
455
- })
456
- },
457
- delfile (prop, fileName, index) {
458
- if (fileName == Vue.nopic) {
459
- return
460
- } else {
461
- if (prop == 'f_noanswers_path') {
462
- this.f_noanswers_path.splice(index, 1)
463
- HostApp.delfile(fileName)
464
- }else if (prop == 'f_rejectchecks_path') {
465
- this.f_rejectchecks_path.splice(index, 1)
466
- HostApp.delfile(fileName)
467
- } else {
468
- HostApp.delfile(fileName)
469
- this[prop] = Vue.nopic
470
- }
471
- }
472
- },
473
- setEntryClass (val) {
474
- if (val == '到访不遇') {
475
- this.f_usegas = ''
476
- this.$set('f_entry_class', 'warning')
477
- } else if (val == '拒检') {
478
- this.f_usegas = ''
479
- this.$set('f_entry_class', 'danger')
480
- } else if (val == '入户') {
481
- this.$set('f_entry_class', 'success')
482
- }
483
- },
484
- setUsegas (val) {
485
- if (val == '未使用') {
486
- this.$set('f_useclass', 'default')
487
- }
488
- if (val == '已使用') {
489
- this.$set('f_useclass', 'success')
490
- }
491
- },
492
- start () {
493
- this.$parent.$parent.isStrat = true
494
- this.$set('action', !this.action)
495
- this.$set('f_onsite_time', Util.toStandardTimeString())
496
- },
497
- safecheckStateReady () {
498
- //tag
499
- //tag
500
- //tag
501
- if (!this.$parent.$parent.showBack) {
502
- this.$parent.$parent.showBack = true
503
- }
504
- //兼容下-如果没有通过外层查询带进来最新安检时间,就拿本地单子里存的上次安检时间
505
- if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_date) {
506
- this.$set('last_check_date', this.$parent.$parent.item.f_plan_meters[0].f_last_check_date)
507
- this.$set('last_check_state', this.$parent.$parent.item.f_plan_meters[0].f_last_check_state)
508
- this.$set('newfile_date', this.$parent.$parent.item.f_plan_meters[0].f_newfile_date)
509
- if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_result) {
510
- let checkResult = JSON.parse(this.$parent.$parent.item.f_plan_meters[0].f_last_check_result)
511
- this.$set('last_check_result', checkResult.result)
512
- this.$set('last_check_data.data', checkResult.data)
513
- } else {
514
- this.$set('last_check_result', '')
515
- this.$set('last_check_data.data', [])
516
- }
517
- } else {
518
- this.$set('last_check_date', this.$parent.$parent.item.f_last_check_date)
519
- this.$set('last_check_state', this.$parent.$parent.item.f_plan_meters[0].f_last_check_state)
520
- if (this.$parent.$parent.item.f_last_check_result) {
521
- let checkResult = JSON.parse(this.$parent.$parent.item.f_last_check_result)
522
- this.$set('last_check_result', checkResult.result)
523
- this.$set('last_check_data.data', checkResult.data)
524
- } else {
525
- this.$set('last_check_result', '')
526
- this.$set('last_check_data.data', [])
527
- }
528
- }
529
-
530
- this.$set('upUserinfoSta', '否')
531
- this.upUserinfoSta = this.$appdata.getSingleValue('安检修改档案信息')
532
-
533
- if (this.$parent.$parent.role == 'inspect' && this.f_complete != '已完成') {
534
- this.start()
535
- }
536
- if (this.$parent.$parent.data.f_onsite_time) {
537
- //tag
538
- this.$parent.$parent.startClick = true
539
- }
540
- this.action = true
541
- //tag
542
- if (this.f_onsite_time) {
543
- this.$parent.$parent.isStrat = true
544
- this.$parent.$parent.data.f_onsite_time = Util.toStandardTimeString()
545
- }
546
- if (this.$parent.$parent.role == 'repair') {
547
- this.$set('style__', 'divmask')
548
- this.$set('style_view_', '')
549
- } else if (this.$parent.$parent.role == 'view') {
550
- this.$set('style__', 'divmask')
551
- this.$set('style_view_', 'divmask')
552
- //tag
553
- } else {
554
- this.$set('style__', '')
555
- this.$set('style_view_', '')
556
- }
557
- if (!this.f_nongasuser_path) {
558
- this.$set('f_nongasuser_path', '')
559
- }
560
- //到访多张照片
561
- this.$set('f_noanswers_path', [])
562
- if (this.f_noanswer_path) {
563
- this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer_path})
564
- } else {
565
- this.$set('f_noanswer_path', '')
566
- }
567
- if (this.f_noanswer1_path) {
568
- this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer1_path})
569
- } else {
570
- this.$set('f_noanswer1_path', '')
571
- }
572
- if (this.f_noanswer2_path) {
573
- this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer2_path})
574
- } else {
575
- this.$set('f_noanswer2_path', '')
576
- }
577
-
578
- if (!this.f_rejectcheck_path) {
579
- this.$set('f_rejectcheck_path', '')
580
- }
581
- //拒检多张照片
582
- this.$set('f_rejectchecks_path', [])
583
- if (this.f_rejectcheck_path) {
584
- this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck_path})
585
- } else {
586
- this.$set('f_rejectcheck_path', '')
587
- }
588
- if (this.f_rejectcheck1_path) {
589
- this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck1_path})
590
- } else {
591
- this.$set('f_rejectcheck1_path', '')
592
- }
593
- if (this.f_rejectcheck2_path) {
594
- this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck2_path})
595
- } else {
596
- this.$set('f_rejectcheck2_path', '')
597
- }
598
-
599
- this.$watch('f_noanswers_path.length', () => {
600
- //tag)
601
- for (let i = 0; i < 3; i++) {
602
-
603
- if (this.f_noanswers_path[i] && this.f_noanswers_path[i].f_noanswer_path) {
604
- //tag)
605
- if (i == 0) {
606
- this.f_noanswer_path = this.f_noanswers_path[i].f_noanswer_path
607
- } else {
608
- this['f_noanswer' + i + '_path'] = this.f_noanswers_path[i].f_noanswer_path
609
- }
610
- } else {
611
- //tag)
612
- if (i == 0) {
613
- this.f_noanswer_path = null
614
- } else {
615
- this['f_noanswer' + i + '_path'] = null
616
- }
617
- }
618
- }
619
- //tag
620
- })
621
- this.$watch('f_rejectchecks_path.length', () => {
622
- //tag)
623
- for (let i = 0; i < 3; i++) {
624
-
625
- if (this.f_rejectchecks_path[i] && this.f_rejectchecks_path[i].f_rejectcheck_path) {
626
- //tag)
627
- if (i == 0) {
628
- this.f_rejectcheck_path = this.f_rejectchecks_path[i].f_rejectcheck_path
629
- } else {
630
- this['f_rejectcheck' + i + '_path'] = this.f_rejectchecks_path[i].f_rejectcheck_path
631
- }
632
- } else {
633
- //tag)
634
- if (i == 0) {
635
- this.f_rejectcheck_path = null
636
- } else {
637
- this['f_rejectcheck' + i + '_path'] = null
638
- }
639
- }
640
- }
641
- //tag
642
- })
643
-
644
- this.$watch('f_usegas', (val) => {
645
- this.setUsegas(val)
646
- })
647
-
648
- this.setEntryClass(this.f_entry_status)
649
- this.$watch('f_entry_status', (val) => {
650
- this.setEntryClass(val)
651
-
652
- if (val == '到访不遇') {
653
- this.f_rejectcheck_path = Vue.nopic
654
- this.f_rejectcheck1_path = Vue.nopic
655
- this.f_rejectcheck2_path = Vue.nopic
656
- this.f_rejectchecks_path = []
657
- }
658
- if (val == '拒检') {
659
- this.f_noanswer_path = Vue.nopic
660
- this.f_noanswer1_path = Vue.nopic
661
- this.f_noanswer2_path = Vue.nopic
662
- this.f_noanswers_path = []
663
- }
664
-
665
- if (val != '入户') {
666
- //清理安检概括
667
- this.f_no_gas_device = false
668
- this.f_unload_battery = false
669
- this.f_close_valve = false
670
- //清理全局隐患
671
- this.f_defect_cramped = false
672
- this.f_defect_bedroom = false
673
- this.f_defect_longpipe = false
674
- this.f_defect_firesource = false
675
- this.f_defect_explosive = false
676
- this.f_defect_viacabinet = false
677
- this.f_defect_intermittent = false
678
- this.f_defect_nearfire = false
679
- this.f_defect_openkitchen = false
680
- this.f_defect_hang = false
681
- this.f_cramped_path = Vue.nopic
682
- //用户评价
683
- this.f_client_evaluation = null
684
- //清设备
685
- this.$set('f_plumbs', [])
686
- this.$set('f_valves', [])
687
- this.$set('f_inner_plumbs', [])
688
- this.$set('f_alarms', [])
689
- this.$set('f_cookers', [])
690
- this.$set('f_heaters', [])
691
- this.$set('f_furnaces', [])
692
- } else {
693
- this.f_rejectcheck_path = Vue.nopic
694
- this.f_noanswer_path = Vue.nopic
695
- this.f_novisit_reason = null
696
- }
697
- })
698
- }
699
- },
700
- components: {
701
- RadioGroup,
702
- Radio
703
- }
704
- }
705
- </script>
706
-
707
- <style scoped>
708
-
709
- .font {
710
- font: 15px PingFang-SC-Medium;
711
- color: #666666;
712
- }
713
-
714
- .input-font {
715
- font: 15px PingFang-SC-Medium;
716
- color: #333333;
717
- }
718
-
719
- .app-text {
720
- font-size: 12px;
721
- }
722
-
723
- .panel-self {
724
- border-radius: 10px;
725
- border: 1px solid #499EDF;
726
- background-color: #F8F8F8;
727
- }
728
-
729
- .app-text {
730
- font-size: 12px;
731
- }
732
-
733
- .panel-self {
734
- border-radius: 5px;
735
- border: 1px solid #c5e1f7;
736
- background-color: #F2F6FA;
737
- }
738
-
739
- .font {
740
- font: 15px PingFang-SC-Medium;
741
- color: #333333;
742
- }
743
-
744
- .panel-self {
745
- border-radius: 5px;
746
- border: 1px solid #c5e1f7;
747
- background-color: #F2F6FA;
748
- }
749
-
750
- .text-left {
751
- text-align: left;
752
- }
753
-
754
- .font {
755
- font: 15px PingFang-SC-Medium;
756
- color: #333333;
757
- }
758
-
759
- .btn-photo {
760
- border: 0;
761
- border-radius: 7px;
762
- background-color: #7dc1f4;
763
- font: 15px PingFang-SC-Bold;
764
- height: 20%;
765
- }
766
-
767
- .div-photo {
768
- width: auto;
769
- height: auto;
770
- /* margin-top: 10px; */
771
- position: absolute;
772
- bottom: 10px;
773
- right: 10px;
774
- }
775
- </style>
1
+ <template>
2
+ <div class="auto app-text">
3
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
4
+ <div class="panel-body panel-self">
5
+ <div class="col-xs-12" style="padding: 2px 0">
6
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
7
+ <!--<a class="panel-title col-xs-7 text-left input-font" style="width: 79%;color: blue;text-decoration:underline" @click="searchHistory(userinfo.f_userinfoid)">{{ userinfo.f_userinfo_code }}</a>-->
8
+ <p class="panel-title col-xs-7 text-left input-font">
9
+ <label @click="searchHistory(userinfo.f_userinfoid)"
10
+ style="color: #00b3ee;text-decoration:none;">{{ userinfo.f_userinfo_code }}</label>
11
+ <label
12
+ v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;"
13
+ @click="upuserinfo(userinfo.f_userinfoid)">信息变更</label>
14
+ </p>
15
+ </div>
16
+ <div class="col-xs-12" style="padding: 2px 0">
17
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
18
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_user_name }}</p>
19
+ </div>
20
+ <div class="col-xs-12" style="padding: 2px 0">
21
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户类型:</b></p>
22
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_check_type }}
23
+ </p>
24
+ </div>
25
+ <div class="col-xs-12" style="padding: 2px 0">
26
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户电话:</b></p>
27
+ <input class="panel-title text-left input-font" style="width: 53%"
28
+ value="{{ userinfo.f_user_phone2 ? userinfo.f_user_phone2 : userinfo.f_user_phone }}"
29
+ v-model="userinfo.f_user_phone"
30
+ readonly
31
+ />
32
+
33
+ </div>
34
+ <!-- <div class="col-xs-12" style="padding: 2px 0" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')">-->
35
+ <!-- <p class="panel-title text-left font" style="width: 23%;float: left"><b>机表表号:</b></p>-->
36
+ <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meter_no }}" v-model="userinfo.f_meter_no"/>-->
37
+
38
+ <!-- </div>-->
39
+ <div class="col-xs-12" style="padding: 2px 0">
40
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户小区:</b></p>
41
+ <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_residential_area }}</p>
42
+ </div>
43
+ <div class="col-xs-12" style="padding: 2px 0">
44
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
45
+ <p class="panel-title text-left input-font" style="width: 79%;float: left">{{ userinfo.f_address }}</p>
46
+ </div>
47
+ <div class="col-xs-12" style="padding: 2px 0">
48
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>安检状态:</b></p>
49
+ <p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_state }}</p>
50
+ </div>
51
+ <div class="col-xs-12" style="padding: 2px 0">
52
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>防盗卡号1:</b></p>
53
+ <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_defendcard }}</p>
54
+ </div>
55
+ <div class="col-xs-12" style="padding: 2px 0">
56
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>防盗卡号2:</b></p>
57
+ <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_defendcard_two }}</p>
58
+ </div>
59
+ <div class="col-xs-12" style="padding: 2px 0">
60
+ <p class="panel-title col-xs-5 text-left font" style="width: 25%;float: left"><b>是否换表:</b></p>
61
+ <p class="panel-title text-left input-font" style="width: 79%">{{isChange}}</p>
62
+ </div>
63
+ <div class="col-xs-12" style="padding: 2px 0" v-if="isChange=='是'">
64
+ <p class="panel-title text-left input-font" style="width: 79%">旧表是:{{ oldGasType }},新表是{{newGasType}}</p>
65
+ </div>
66
+ <div class="col-xs-12">
67
+ <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone"
68
+ @click="updatePhone(userinfo.f_user_phone,userinfo.f_userinfoid)">电话修改
69
+ </button>
70
+ <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updatemetermodel"
71
+ @click="showbiaoxinghao()">表型号修改
72
+ </button>
73
+ </div>
74
+ <div class="col-xs-12">
75
+ <button type="button" style="width: 45%;float: left" class="btn btn-primary"
76
+ v-if="updatemeternumber&&(userinfo.planmeterss.f_aliasname=='机表')"
77
+ @click="updatebiaohao(userinfo.f_meter_no,userinfo.f_userinfoid)">表号修改
78
+ </button>
79
+ <!-- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>-->
80
+ </div>
81
+ </div>
82
+ <div class="panel-body">
83
+ <div v-show="false" class="row repair-info-content auto">
84
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
85
+ <label class="control-label">
86
+ <nobr>到达时间:</nobr>
87
+ </label>
88
+ <span>{{ f_onsite_time }}</span>
89
+ </div>
90
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
91
+ <label class="control-label">
92
+ <nobr>离开时间:</nobr>
93
+ </label>
94
+ <span>{{ f_offsite_time }}</span>
95
+ </div>
96
+ </div>
97
+
98
+
99
+ <div style="font-size: medium;" :class="style__">
100
+ <span class="col-md-3 col-sm-4 col-xs-4 text-left">
101
+ <img src="../../../assets/housestyle.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">入户状态:
102
+ </span>
103
+ <div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
104
+ <input type="radio" name="enterstatus" v-model="f_entry_status" id="nopeople" value="到访不遇">到访不遇
105
+ <input type="radio" name="enterstatus" v-model="f_entry_status" id="rejectchecck" value="拒检">拒检
106
+ <input type="radio" name="enterstatus" v-model="f_entry_status" id="enterhouse" value="入户">入户
107
+ </div>
108
+ </div>
109
+ <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
110
+ <label class="text-left font">到访不遇照片:</label>
111
+ <div class="auto">
112
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
113
+ <div class="panel-body panel-self"
114
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
115
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
116
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
117
+ v-for="(index,img) in f_noanswers_path">
118
+ <img-self :src="img.f_noanswer_path" alt="到访不遇照片" :width="130" :height="160"></img-self>
119
+ <img src="../../../assets/删除.png" @click="delfile('f_noanswers_path', img.f_noanswer_path,index)"
120
+ style="width: 15px;margin-top: -80px" alt="">
121
+ </div>
122
+ </div>
123
+ <div class="row text-right div-photo" :class="style__">
124
+ <button type="button" name="button" class="btn btn-primary btn-photo"
125
+ @click="takePic('拍照','f_noanswers_path', '到访不遇照片')">拍照
126
+ </button>
127
+ <!-- <button type="button" name="button" class="btn btn-primary btn-photo"-->
128
+ <!-- @click="takePic('相册','f_noanswers_path', '到访不遇照片')">相册-->
129
+ <!-- </button>-->
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='拒检'">
136
+ <label class="text-left font">拒检照片:</label>
137
+ <div class="auto">
138
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
139
+ <div class="panel-body panel-self"
140
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
141
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
142
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
143
+ v-for="(index,img) in f_rejectchecks_path">
144
+ <img-self :src="img.f_rejectcheck_path" alt="拒检照片" :width="130" :height="160"></img-self>
145
+ <img src="../../../assets/删除.png" @click="delfile('f_rejectchecks_path', img.f_rejectcheck_path,index)"
146
+ style="width: 15px;margin-top: -80px" alt="">
147
+ </div>
148
+ </div>
149
+ <div class="row text-right div-photo" :class="style__">
150
+ <button type="button" name="button" class="btn btn-primary btn-photo"
151
+ @click="takePic('拍照','f_rejectchecks_path', '拒检照片')">拍照
152
+ </button>
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ <div :class="style__" class="form-group" v-show="f_usegas == '未使用'">
161
+ <sapn class="text-left col-md-12 col-sm-12 col-xs-12">处置方式:</sapn>
162
+ <div class="col-xs-12 col-sm-12 col-md-12">
163
+ <input type="checkbox" v-model="f_no_gas_device">无燃气具
164
+ <input type="checkbox" v-model="f_close_valve">关闭表前阀
165
+ <input type="checkbox" v-model="f_unload_battery">取下表内电池
166
+ </div>
167
+ </div>
168
+ <div class="auto app-text" style="margin-top: 5px;" v-if="this.$parent.$parent.role != 'view'">
169
+ <div class="panel" style="padding: 10px 7px 10px 0px;">
170
+ <div class="panel-body panel-self">
171
+ <div v-show="false" class="row">
172
+ <p class="panel-title col-xs-4 text-left font">建档时间</p>
173
+ <p class="panel-title col-xs-8 text-left input-font">{{ newfile_date }}</p>
174
+ </div>
175
+ <div class="row" v-if="last_check_date != null && last_check_date != ''">
176
+ <p class="panel-title col-xs-4 text-left font">上次安检时间</p>
177
+ <p class="panel-title col-xs-8 text-left input-font">{{ last_check_date }}</p>
178
+ </div>
179
+ <div class="row">
180
+ <p class="panel-title col-xs-4 text-left font">上次安检状态</p>
181
+ <p class="panel-title col-xs-8 text-left input-font"
182
+ v-if="last_check_date != null && last_check_date != ''">{{last_check_state}}</p>
183
+ <p class="panel-title col-xs-8 text-left input-font"
184
+ v-if="last_check_date == null || last_check_date == ''">未安检</p>
185
+ </div>
186
+ <div class="row" v-if="last_check_date != null && last_check_date != ''">
187
+ <p class="panel-title col-xs-4 text-left font">上次安检结果</p>
188
+ <p class="panel-title col-xs-8 text-left input-font" :class="last_check_result=='正常'?'':'color-red'">
189
+ {{ last_check_result }}</p>
190
+ <div v-for="data in last_check_data.data" class="panel-title col-xs-offset-4 col-xs-8 text-left input-font">
191
+ <p v-for="(key,item) in data">
192
+ {{ key }}:{{ item }}
193
+ </p>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ </div>
200
+ <div v-if="showbModal">
201
+ <modal :show.sync="showbModal" v-ref:modal backdrop="false">
202
+ <div slot="modal-header" class="modal-header">
203
+ <h4 class="modal-title">
204
+ 选择表型号
205
+ </h4>
206
+ </div>
207
+ <div slot="modal-body" class="modal-body">
208
+ <div class="col-xs-12">
209
+
210
+ <v-select :value.sync="biaoxinghao" v-model='biaoxinghao'
211
+ :value-single="true"
212
+ class="select_list select"
213
+ :options='gmlist' placeholder='请选择表型号'
214
+ close-on-select width="100%"></v-select>
215
+ </div>
216
+ <div class="col-xs-12" style="height: 10px">
217
+
218
+ </div>
219
+
220
+ </div>
221
+ <div slot="modal-footer" class="modal-footer">
222
+ <button class="btn btn-default" @click="biaoxinghaook()">确认</button>
223
+ <button class="btn btn-default" @click="biaoxinghaocancel()">取消</button>
224
+ </div>
225
+ </modal>
226
+ </div>
227
+ </template>
228
+
229
+ <script>
230
+ import {HttpResetClass} from 'vue-client'
231
+ import * as Util from '../../Util'
232
+ import Vue from 'vue'
233
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
234
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
235
+
236
+ export default {
237
+ title: 'SafecheckUserInfo',
238
+ props: ['userinfo'],
239
+ data () {
240
+ return this.$parent.$parent.data
241
+ },
242
+ created () {
243
+ this.$set('showbModal', false)
244
+ //tag
245
+ this.$set('biaoxinghao', '')
246
+ },
247
+ ready () {
248
+ //tag
249
+ //tag)
250
+ // //tag)
251
+ // this.$set('userinfo.f_meter_no',this.userinfo.planmeterss.f_meter_no)
252
+ // //tag)
253
+ this.$set('beforephone', this.userinfo.f_user_phone)
254
+ this.$set('gmlist', [])
255
+ //tag
256
+ if (Vue.config.safecheck != undefined) {
257
+ if (Vue.config.safecheck.SafecheckUserinfo != undefined) {
258
+ if (Vue.config.safecheck.SafecheckUserinfo.updateuserphone != undefined) {
259
+ this.$set('updateuserphone', Vue.config.safecheck.SafecheckUserinfo.updateuserphone)
260
+ }
261
+ if (Vue.config.safecheck.SafecheckUserinfo.updatemetermodel != undefined) {
262
+ this.$set('updatemetermodel', Vue.config.safecheck.SafecheckUserinfo.updatemetermodel)
263
+ }
264
+ if (Vue.config.safecheck.SafecheckUserinfo.updatemeternumber != undefined) {
265
+ this.$set('updatemeternumber', Vue.config.safecheck.SafecheckUserinfo.updatemeternumber)
266
+ }
267
+ }
268
+ }
269
+ for (let i in this.userinfo) {
270
+ //tag + ':' + JSON.stringify(this.userinfo[i]))
271
+ }
272
+ this.safecheckStateReady()
273
+ this.getGasType()
274
+ },
275
+ methods: {
276
+ getGasType () {
277
+ let http = new HttpResetClass()
278
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckGetGasType`, {
279
+ f_userinfo_id:this.userinfo.f_userinfoid,
280
+ f_start_date:this.$parent.$parent.data.f_create_time,
281
+ //当前时间
282
+ f_end_date:Util.toStandardTimeString()
283
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
284
+ if (res.data) {
285
+ this.$set('isChange', res.data.isChange)
286
+ this.$set('newGasType', res.data.newType)
287
+ this.$set('oldGasType', res.data.oldType)
288
+ } else {
289
+ this.$showMessage('查询失败!,网络异常')
290
+ }
291
+ })
292
+ },
293
+ updatebiaohao (f_meter_no, f_userinfo_id) {
294
+ this.$showMessage('将用户 ' + this.userinfo.f_user_name + '的机表表号从' + this.userinfo.planmeterss.f_meter_no + '修改为' + f_meter_no, ['confirm', 'cancel']).then((butt) => {
295
+ if (butt == 'confirm') {
296
+ let http = new HttpResetClass()
297
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckUpdateBiaoHao`, {
298
+ f_meter_no: f_meter_no,
299
+ f_userinfo_id: f_userinfo_id
300
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
301
+ if (res.data.code == 200) {
302
+ this.$showMessage('修改成功!')
303
+ } else {
304
+ this.$showMessage('修改失败!,网络异常')
305
+ }
306
+ })
307
+ }
308
+ })
309
+ },
310
+ biaoxinghaook () {
311
+ if (this.biaoxinghao == '') {
312
+ this.$showMessage('请选择表型号')
313
+ return
314
+ }
315
+ //tag
316
+ //tag
317
+ this.$showMessage('是否确定进行修改?', ['confirm', 'cancel']).then((butt) => {
318
+ if (butt == 'confirm') {
319
+ let http = new HttpResetClass()
320
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckUpdateBiaoXingHao`, {
321
+ biaoxinghao: this.biaoxinghao,
322
+ f_userinfo_id: this.userinfo.f_userinfoid
323
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
324
+ if (res.data.code == 200) {
325
+ this.$showMessage('修改成功!')
326
+ //tag
327
+ this.showbModal = false
328
+ } else {
329
+ this.$showMessage('修改失败!,网络异常')
330
+ }
331
+ })
332
+ }
333
+ })
334
+ },
335
+ biaoxinghaocancel () {
336
+ //tag
337
+ this.showbModal = false
338
+ },
339
+ showbiaoxinghao () {
340
+ this.gmlist = []
341
+ //tag)
342
+ //tag
343
+ let http1 = new HttpResetClass()
344
+ http1.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
345
+ data: {
346
+ items: 'gm.id,gm.f_meter_style',
347
+ tablename: 't_gasbrand gb LEFT JOIN t_gasmodel gm ON gb.id= gm.f_gasbrand_id ',
348
+ condition: `f_meter_brand = '${this.userinfo.planmeterss.f_aliasname}'`,
349
+ // condition: `f_meter_brand = 'this.userinfo.planmeterss'`,
350
+ orderitem: 'gm.id'
351
+ }
352
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
353
+ ress.data.forEach(res => {
354
+ this.gmlist.push({
355
+ label: res.f_meter_style,
356
+ value: res.id
357
+ })
358
+ })
359
+ //tag)
360
+ //tag
361
+ this.showbModal = true
362
+ })
363
+ },
364
+ updatePhone (f_user_phone, f_userinfo_id) {
365
+
366
+ this.$showMessage('将用户 ' + this.userinfo.f_user_name + '的电话号码从' + this.beforephone + '修改为' + f_user_phone, ['confirm', 'cancel']).then((butt) => {
367
+ if (butt == 'confirm') {
368
+ let http = new HttpResetClass()
369
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/safecheckUpdatePhone`, {
370
+ f_user_phone: f_user_phone,
371
+ f_userinfo_id: f_userinfo_id
372
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
373
+ if (res.data.code == 200) {
374
+ this.$showMessage('修改成功!')
375
+ } else {
376
+ this.$showMessage('修改失败!,网络异常')
377
+ }
378
+ })
379
+ }
380
+ })
381
+ },
382
+ upuserinfo (f_userinfo_id) {
383
+ this.$dispatch('gotoson', {
384
+ _this: this.$parent.$parent,
385
+ title: '档案信息变更',
386
+ safe: false
387
+ })
388
+ let _this = this.$parent.$parent
389
+ this.$parent.$parent.$goto('PhoneUpUserinfo', {f_userinfo_id: f_userinfo_id, f_source: '安检'},'self',function () {
390
+ _this.updateUserCallBack()
391
+ })
392
+ },
393
+ searchHistory (f_userinfo_id) {
394
+ this.$dispatch('gotoson', {
395
+ _this: this.$parent.$parent,
396
+ title: '购气记录',
397
+ safe: false
398
+ })
399
+ this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
400
+ },
401
+ cameraCallBack (prop, fileName) {
402
+ if (prop == 'f_noanswers_path') {
403
+ let f_noanswer_path = fileName + '?' + Math.random()
404
+ HostApp.__this__.f_noanswers_path.push({
405
+ f_noanswer_path: f_noanswer_path
406
+ })
407
+ } else if (prop == 'f_rejectchecks_path') {
408
+ let f_rejectcheck_path = fileName + '?' + Math.random()
409
+ HostApp.__this__.f_rejectchecks_path.push({
410
+ f_rejectcheck_path: f_rejectcheck_path
411
+ })
412
+ }else {
413
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
414
+ }
415
+ HostApp.__callback__ = null
416
+ HostApp.__this__ = null
417
+ },
418
+ takePic (type ,prop, title) {
419
+ HostApp.__callback__ = this.cameraCallBack
420
+ HostApp.__this__ = this
421
+ //tag
422
+ let fileName
423
+ if (prop == 'f_noanswers_path') {
424
+ //tag
425
+ if (this.f_noanswers_path.length == 3) {
426
+ return
427
+ }
428
+ fileName = Util.guid() + '-' + prop + '.jpg'
429
+ } else if (prop == 'f_rejectchecks_path') {
430
+ //tag
431
+ if (this.f_rejectchecks_path.length == 3) {
432
+ return
433
+ }
434
+ fileName = Util.guid() + '-' + prop + '.jpg'
435
+ }else {
436
+ if (!this[prop] || this[prop].includes('nopic.png')) {
437
+ fileName = Util.guid() + '-' + prop + '.jpg'
438
+ } else {
439
+ fileName = Util.getFileName(this[prop])
440
+ }
441
+ }
442
+ let page = 'com.aofeng.hybrid.android.peripheral.CameraActivity'
443
+ if(type === '相册'){
444
+ page ='com.aofeng.hybrid.android.peripheral.ActionPickActivity'
445
+ }
446
+ HostApp._open_a_page({
447
+ type: 'boomerang',
448
+ page,
449
+ param: {
450
+ file: fileName,
451
+ requestCode: 111,
452
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
453
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
454
+ }
455
+ })
456
+ },
457
+ delfile (prop, fileName, index) {
458
+ if (fileName == Vue.nopic) {
459
+ return
460
+ } else {
461
+ if (prop == 'f_noanswers_path') {
462
+ this.f_noanswers_path.splice(index, 1)
463
+ HostApp.delfile(fileName)
464
+ }else if (prop == 'f_rejectchecks_path') {
465
+ this.f_rejectchecks_path.splice(index, 1)
466
+ HostApp.delfile(fileName)
467
+ } else {
468
+ HostApp.delfile(fileName)
469
+ this[prop] = Vue.nopic
470
+ }
471
+ }
472
+ },
473
+ setEntryClass (val) {
474
+ if (val == '到访不遇') {
475
+ this.f_usegas = ''
476
+ this.$set('f_entry_class', 'warning')
477
+ } else if (val == '拒检') {
478
+ this.f_usegas = ''
479
+ this.$set('f_entry_class', 'danger')
480
+ } else if (val == '入户') {
481
+ this.$set('f_entry_class', 'success')
482
+ }
483
+ },
484
+ setUsegas (val) {
485
+ if (val == '未使用') {
486
+ this.$set('f_useclass', 'default')
487
+ }
488
+ if (val == '已使用') {
489
+ this.$set('f_useclass', 'success')
490
+ }
491
+ },
492
+ start () {
493
+ this.$parent.$parent.isStrat = true
494
+ this.$set('action', !this.action)
495
+ this.$set('f_onsite_time', Util.toStandardTimeString())
496
+ },
497
+ safecheckStateReady () {
498
+ //tag
499
+ //tag
500
+ //tag
501
+ if (!this.$parent.$parent.showBack) {
502
+ this.$parent.$parent.showBack = true
503
+ }
504
+ //兼容下-如果没有通过外层查询带进来最新安检时间,就拿本地单子里存的上次安检时间
505
+ if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_date) {
506
+ this.$set('last_check_date', this.$parent.$parent.item.f_plan_meters[0].f_last_check_date)
507
+ this.$set('last_check_state', this.$parent.$parent.item.f_plan_meters[0].f_last_check_state)
508
+ this.$set('newfile_date', this.$parent.$parent.item.f_plan_meters[0].f_newfile_date)
509
+ if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_result) {
510
+ let checkResult = JSON.parse(this.$parent.$parent.item.f_plan_meters[0].f_last_check_result)
511
+ this.$set('last_check_result', checkResult.result)
512
+ this.$set('last_check_data.data', checkResult.data)
513
+ } else {
514
+ this.$set('last_check_result', '')
515
+ this.$set('last_check_data.data', [])
516
+ }
517
+ } else {
518
+ this.$set('last_check_date', this.$parent.$parent.item.f_last_check_date)
519
+ this.$set('last_check_state', this.$parent.$parent.item.f_plan_meters[0].f_last_check_state)
520
+ if (this.$parent.$parent.item.f_last_check_result) {
521
+ let checkResult = JSON.parse(this.$parent.$parent.item.f_last_check_result)
522
+ this.$set('last_check_result', checkResult.result)
523
+ this.$set('last_check_data.data', checkResult.data)
524
+ } else {
525
+ this.$set('last_check_result', '')
526
+ this.$set('last_check_data.data', [])
527
+ }
528
+ }
529
+
530
+ this.$set('upUserinfoSta', '否')
531
+ this.upUserinfoSta = this.$appdata.getSingleValue('安检修改档案信息')
532
+
533
+ if (this.$parent.$parent.role == 'inspect' && this.f_complete != '已完成') {
534
+ this.start()
535
+ }
536
+ if (this.$parent.$parent.data.f_onsite_time) {
537
+ //tag
538
+ this.$parent.$parent.startClick = true
539
+ }
540
+ this.action = true
541
+ //tag
542
+ if (this.f_onsite_time) {
543
+ this.$parent.$parent.isStrat = true
544
+ this.$parent.$parent.data.f_onsite_time = Util.toStandardTimeString()
545
+ }
546
+ if (this.$parent.$parent.role == 'repair') {
547
+ this.$set('style__', 'divmask')
548
+ this.$set('style_view_', '')
549
+ } else if (this.$parent.$parent.role == 'view') {
550
+ this.$set('style__', 'divmask')
551
+ this.$set('style_view_', 'divmask')
552
+ //tag
553
+ } else {
554
+ this.$set('style__', '')
555
+ this.$set('style_view_', '')
556
+ }
557
+ if (!this.f_nongasuser_path) {
558
+ this.$set('f_nongasuser_path', '')
559
+ }
560
+ //到访多张照片
561
+ this.$set('f_noanswers_path', [])
562
+ if (this.f_noanswer_path) {
563
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer_path})
564
+ } else {
565
+ this.$set('f_noanswer_path', '')
566
+ }
567
+ if (this.f_noanswer1_path) {
568
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer1_path})
569
+ } else {
570
+ this.$set('f_noanswer1_path', '')
571
+ }
572
+ if (this.f_noanswer2_path) {
573
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer2_path})
574
+ } else {
575
+ this.$set('f_noanswer2_path', '')
576
+ }
577
+
578
+ if (!this.f_rejectcheck_path) {
579
+ this.$set('f_rejectcheck_path', '')
580
+ }
581
+ //拒检多张照片
582
+ this.$set('f_rejectchecks_path', [])
583
+ if (this.f_rejectcheck_path) {
584
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck_path})
585
+ } else {
586
+ this.$set('f_rejectcheck_path', '')
587
+ }
588
+ if (this.f_rejectcheck1_path) {
589
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck1_path})
590
+ } else {
591
+ this.$set('f_rejectcheck1_path', '')
592
+ }
593
+ if (this.f_rejectcheck2_path) {
594
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck2_path})
595
+ } else {
596
+ this.$set('f_rejectcheck2_path', '')
597
+ }
598
+
599
+ this.$watch('f_noanswers_path.length', () => {
600
+ //tag)
601
+ for (let i = 0; i < 3; i++) {
602
+
603
+ if (this.f_noanswers_path[i] && this.f_noanswers_path[i].f_noanswer_path) {
604
+ //tag)
605
+ if (i == 0) {
606
+ this.f_noanswer_path = this.f_noanswers_path[i].f_noanswer_path
607
+ } else {
608
+ this['f_noanswer' + i + '_path'] = this.f_noanswers_path[i].f_noanswer_path
609
+ }
610
+ } else {
611
+ //tag)
612
+ if (i == 0) {
613
+ this.f_noanswer_path = null
614
+ } else {
615
+ this['f_noanswer' + i + '_path'] = null
616
+ }
617
+ }
618
+ }
619
+ //tag
620
+ })
621
+ this.$watch('f_rejectchecks_path.length', () => {
622
+ //tag)
623
+ for (let i = 0; i < 3; i++) {
624
+
625
+ if (this.f_rejectchecks_path[i] && this.f_rejectchecks_path[i].f_rejectcheck_path) {
626
+ //tag)
627
+ if (i == 0) {
628
+ this.f_rejectcheck_path = this.f_rejectchecks_path[i].f_rejectcheck_path
629
+ } else {
630
+ this['f_rejectcheck' + i + '_path'] = this.f_rejectchecks_path[i].f_rejectcheck_path
631
+ }
632
+ } else {
633
+ //tag)
634
+ if (i == 0) {
635
+ this.f_rejectcheck_path = null
636
+ } else {
637
+ this['f_rejectcheck' + i + '_path'] = null
638
+ }
639
+ }
640
+ }
641
+ //tag
642
+ })
643
+
644
+ this.$watch('f_usegas', (val) => {
645
+ this.setUsegas(val)
646
+ })
647
+
648
+ this.setEntryClass(this.f_entry_status)
649
+ this.$watch('f_entry_status', (val) => {
650
+ this.setEntryClass(val)
651
+
652
+ if (val == '到访不遇') {
653
+ this.f_rejectcheck_path = Vue.nopic
654
+ this.f_rejectcheck1_path = Vue.nopic
655
+ this.f_rejectcheck2_path = Vue.nopic
656
+ this.f_rejectchecks_path = []
657
+ }
658
+ if (val == '拒检') {
659
+ this.f_noanswer_path = Vue.nopic
660
+ this.f_noanswer1_path = Vue.nopic
661
+ this.f_noanswer2_path = Vue.nopic
662
+ this.f_noanswers_path = []
663
+ }
664
+
665
+ if (val != '入户') {
666
+ //清理安检概括
667
+ this.f_no_gas_device = false
668
+ this.f_unload_battery = false
669
+ this.f_close_valve = false
670
+ //清理全局隐患
671
+ this.f_defect_cramped = false
672
+ this.f_defect_bedroom = false
673
+ this.f_defect_longpipe = false
674
+ this.f_defect_firesource = false
675
+ this.f_defect_explosive = false
676
+ this.f_defect_viacabinet = false
677
+ this.f_defect_intermittent = false
678
+ this.f_defect_nearfire = false
679
+ this.f_defect_openkitchen = false
680
+ this.f_defect_hang = false
681
+ this.f_cramped_path = Vue.nopic
682
+ //用户评价
683
+ this.f_client_evaluation = null
684
+ //清设备
685
+ this.$set('f_plumbs', [])
686
+ this.$set('f_valves', [])
687
+ this.$set('f_inner_plumbs', [])
688
+ this.$set('f_alarms', [])
689
+ this.$set('f_cookers', [])
690
+ this.$set('f_heaters', [])
691
+ this.$set('f_furnaces', [])
692
+ } else {
693
+ this.f_rejectcheck_path = Vue.nopic
694
+ this.f_noanswer_path = Vue.nopic
695
+ this.f_novisit_reason = null
696
+ }
697
+ })
698
+ }
699
+ },
700
+ components: {
701
+ RadioGroup,
702
+ Radio
703
+ }
704
+ }
705
+ </script>
706
+
707
+ <style scoped>
708
+
709
+ .font {
710
+ font: 15px PingFang-SC-Medium;
711
+ color: #666666;
712
+ }
713
+
714
+ .input-font {
715
+ font: 15px PingFang-SC-Medium;
716
+ color: #333333;
717
+ }
718
+
719
+ .app-text {
720
+ font-size: 12px;
721
+ }
722
+
723
+ .panel-self {
724
+ border-radius: 10px;
725
+ border: 1px solid #499EDF;
726
+ background-color: #F8F8F8;
727
+ }
728
+
729
+ .app-text {
730
+ font-size: 12px;
731
+ }
732
+
733
+ .panel-self {
734
+ border-radius: 5px;
735
+ border: 1px solid #c5e1f7;
736
+ background-color: #F2F6FA;
737
+ }
738
+
739
+ .font {
740
+ font: 15px PingFang-SC-Medium;
741
+ color: #333333;
742
+ }
743
+
744
+ .panel-self {
745
+ border-radius: 5px;
746
+ border: 1px solid #c5e1f7;
747
+ background-color: #F2F6FA;
748
+ }
749
+
750
+ .text-left {
751
+ text-align: left;
752
+ }
753
+
754
+ .font {
755
+ font: 15px PingFang-SC-Medium;
756
+ color: #333333;
757
+ }
758
+
759
+ .btn-photo {
760
+ border: 0;
761
+ border-radius: 7px;
762
+ background-color: #7dc1f4;
763
+ font: 15px PingFang-SC-Bold;
764
+ height: 20%;
765
+ }
766
+
767
+ .div-photo {
768
+ width: auto;
769
+ height: auto;
770
+ /* margin-top: 10px; */
771
+ position: absolute;
772
+ bottom: 10px;
773
+ right: 10px;
774
+ }
775
+ </style>