safecheck-client 4.0.1-41 → 4.0.1-43

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 (264) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  4. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  5. package/src/components/NewDefectList/DefectListNew.vue +663 -663
  6. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  7. package/src/components/Util/SafecheckUpload.vue +281 -281
  8. package/src/components/android/AddPlanItem.vue +447 -447
  9. package/src/components/android/AddPlanItemYy.vue +451 -451
  10. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  11. package/src/components/android/AndroidDefectDetails.vue +769 -769
  12. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  13. package/src/components/android/Devices.vue +327 -327
  14. package/src/components/android/Devicesm.vue +327 -327
  15. package/src/components/android/NewCheckpaperAndroid.vue +1344 -1369
  16. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  17. package/src/components/android/PhoneRecordInfo.vue +113 -113
  18. package/src/components/android/PhoneSellInfo.vue +113 -113
  19. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  20. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  21. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  22. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  23. package/src/components/android/SafePlanItem.vue +509 -509
  24. package/src/components/android/SafeRightTree.vue +218 -218
  25. package/src/components/android/SafecheckDevices.vue +1340 -1340
  26. package/src/components/android/examples/SafeListExamples.vue +296 -296
  27. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  28. package/src/components/android/recheck/Recheck.vue +402 -402
  29. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  30. package/src/components/checkplan/checkmsg.vue +459 -459
  31. package/src/components/defect/DefectList.vue +507 -507
  32. package/src/components/defect/DefectListWeixiu.vue +484 -484
  33. package/src/components/filialCircle/CircleList.vue +139 -139
  34. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  35. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  36. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  37. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  38. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  39. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  40. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  41. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  42. package/src/components/map/PersonTrack.vue +226 -226
  43. package/src/components/paper/PaperList.vue +797 -797
  44. package/src/components/paper/RegionalList.vue +220 -220
  45. package/src/components/pc/AnnouncementPC.vue +524 -524
  46. package/src/components/pc/CheckBook.vue +303 -303
  47. package/src/components/pc/CheckBookArea.vue +146 -146
  48. package/src/components/pc/CheckBookCompany.vue +144 -144
  49. package/src/components/pc/CheckBookDetails.vue +161 -161
  50. package/src/components/pc/CheckBookEntry.vue +60 -60
  51. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  52. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  53. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  54. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  55. package/src/components/pc/DefectList.vue +742 -742
  56. package/src/components/pc/DeviceChange.vue +1068 -1068
  57. package/src/components/pc/PaperDefectMain.vue +880 -880
  58. package/src/components/pc/SafeVisitInfo.vue +261 -261
  59. package/src/components/querycheckpaper/CheckPaperList.vue +133 -130
  60. package/src/components/report/HiddenSituation.vue +165 -165
  61. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  62. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  63. package/src/components/rongcheng/DefectList.vue +560 -560
  64. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  65. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  66. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  67. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  68. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  69. package/src/components/shaoguan/DefectList.vue +473 -473
  70. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  71. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  72. package/src/components/userfile/SecurityAudit.vue +243 -243
  73. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  74. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  75. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  76. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  77. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  78. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  79. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  80. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  81. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  82. package/src/filiale/bayan/android/Edit.vue +132 -132
  83. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  84. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  85. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  86. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  87. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  88. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  89. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  90. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  91. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  92. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  93. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  94. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  95. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  96. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  97. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  98. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  99. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  100. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  101. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  102. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  103. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  104. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  105. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  106. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  107. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  108. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  109. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  110. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  111. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  112. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  113. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  114. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  115. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  116. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  118. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  119. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  120. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  121. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  122. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  123. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  124. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  125. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  126. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  127. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  128. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  129. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  130. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  131. package/src/filiale/meihekou/android/CurrentCreate.vue +1038 -1038
  132. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  133. package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1542
  134. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  135. package/src/filiale/meihekou/android/SafecheckDevices.vue +1340 -1340
  136. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2446 -2446
  137. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  138. package/src/filiale/meihekou/android.js +22 -22
  139. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -2050
  140. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  141. package/src/filiale/meihekou/pc/PaperList.vue +828 -810
  142. package/src/filiale/meihekou/pc.js +15 -15
  143. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  144. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  145. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  146. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  147. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  148. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  149. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  150. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  151. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  152. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  153. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  154. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  155. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  156. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  157. package/src/filiale/qingjian/pc.js +15 -15
  158. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  159. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  160. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  161. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  162. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  163. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  164. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  165. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  166. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  167. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  168. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  169. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  170. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  171. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  172. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  173. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  174. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  175. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  176. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  177. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  178. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  179. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  180. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  181. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  182. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  183. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  184. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  185. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  186. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  187. package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -1033
  188. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  189. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  190. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  191. package/src/filiale/taiyuan/pc.js +15 -15
  192. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  193. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  194. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  195. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  196. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  197. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  198. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  199. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  200. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  201. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  202. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  203. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  204. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  205. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  206. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  207. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  208. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  209. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  210. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  211. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  212. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  213. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  214. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  215. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  216. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  217. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  218. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  219. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  220. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  221. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  222. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  223. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  224. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  225. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  226. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  227. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  228. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  229. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  230. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  231. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  232. package/src/filiale/xinkang/android/AddPlanItem.vue +414 -413
  233. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  234. package/src/filiale/xinkang/pc/NewCheckpaper.vue +1474 -1474
  235. package/src/filiale/xinkang/pc/PaperList.vue +596 -596
  236. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  237. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  238. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  239. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  240. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  241. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  242. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  243. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  244. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  245. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  246. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  247. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  248. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  249. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  250. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  251. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  252. package/src/filiale/yunchengminsheng/android.js +15 -15
  253. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  254. package/src/filiale/yunchengminsheng/pc.js +15 -15
  255. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  256. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  257. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  258. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  259. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  260. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  261. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  262. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  263. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  264. package/src/main.js +1 -2
@@ -1,1040 +1,1040 @@
1
- <template>
2
- <work-busy :is-busy="excessive"></work-busy>
3
- <div style="height: 100%">
4
- <!-- <div class="panel auto" >-->
5
- <!-- <div class="panel-heading" @click="selectVal('基本信息')" style="background-color: #ffffff">-->
6
- <!-- <span class="spanboder" >-->
7
- <!-- <img src="../../assets/person.png" style="width: 22px;margin-right: 8px;">基本信息-->
8
- <!-- <img class="butt3" :src="imgback('基本信息')">-->
9
- <!-- </span>-->
10
- <!-- </div>-->
11
- <!-- <div class="panel-body " id="upuserinfo_sel" v-show="headername=='基本信息'">-->
12
- <!-- <div class="row auto" style="margin: 5px 0">-->
13
- <!-- <labe class="righttxt">用户编号:</labe>-->
14
- <!-- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly/>-->
15
- <!-- </div>-->
16
- <!-- <div class="row auto" style="margin: 5px 0">-->
17
- <!-- <labe class="righttxt">用户名称:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly />-->
18
- <!-- </div>-->
19
- <!-- <div class="row auto" style="margin: 5px 0">-->
20
- <!-- <labe class="righttxt">用户状态:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo.baseinfo.base.f_user_state" />-->
21
- <!-- </div>-->
22
- <!-- <div class="row auto" style="margin: 5px 0">-->
23
- <!-- <labe class="righttxt">用户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone" />-->
24
- <!-- </div>-->
25
- <!-- <div class="row auto" style="margin: 5px 0">-->
26
- <!-- <labe class="righttxt">备用电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_phone" />-->
27
- <!-- </div>-->
28
- <!-- <div class="row auto" style="margin: 5px 0">-->
29
- <!-- <labe class="righttxt">租户姓名:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name" />-->
30
- <!-- </div>-->
31
- <!-- <div class="row auto" style="margin: 5px 0">-->
32
- <!-- <labe class="righttxt">租户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone" />-->
33
- <!-- </div>-->
34
- <!-- <div class="row auto" style="margin: 5px 0">-->
35
- <!-- <labe class="righttxt">地址类型:</labe>-->
36
- <!-- <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">-->
37
- <!-- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType1">普通地址</label></div>-->
38
- <!-- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType2">特殊地址</label></div>-->
39
- <!-- </div>-->
40
- <!-- &lt;!&ndash;<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />&ndash;&gt;-->
41
- <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />&ndash;&gt;-->
42
- <!-- &lt;!&ndash;<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"-->
43
- <!-- :width="'60%'"-->
44
- <!-- v-model="userinfo.addressinfo.f_iscity"-->
45
- <!-- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>&ndash;&gt;-->
46
- <!-- </div>-->
47
- <!-- <div class="row auto" style="margin: 5px 0">-->
48
- <!-- <labe class="righttxt">地区类型:</labe>-->
49
- <!-- &lt;!&ndash;<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />&ndash;&gt;-->
50
- <!-- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity" />-->
51
- <!-- &lt;!&ndash;<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"-->
52
- <!-- :width="'60%'"-->
53
- <!-- :disabled="true"-->
54
- <!-- v-model="userinfo.addressinfo.f_iscity"-->
55
- <!-- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>&ndash;&gt;-->
56
- <!-- </div>-->
57
- <!-- <div class="row auto" style="margin: 5px 0">-->
58
- <!-- <labe class="righttxt">省&ensp;市&ensp;区:</labe>-->
59
- <!-- &lt;!&ndash;<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />&ndash;&gt;-->
60
- <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />&ndash;&gt;-->
61
- <!-- <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;"-->
62
- <!-- :width="'60%'"-->
63
- <!-- v-model="selectPcd"-->
64
- <!-- :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single @change="pcd_change()"></v-select>-->
65
- <!-- </div>-->
66
- <!-- <div class="row auto" style="margin: 5px 0">-->
67
- <!-- <labe class="righttxt">街道名称:</labe>&lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />&ndash;&gt;-->
68
- <!-- <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;"-->
69
- <!-- :width="'60%'"-->
70
- <!-- v-model="selectStreet"-->
71
- <!-- :options='streets' placeholder='请选择街道' close-on-select clear-button value-single @change="street_change()"></v-select>-->
72
- <!-- </div>-->
73
- <!-- <div class="row auto" style="margin: 5px 0">-->
74
- <!-- <labe class="righttxt">集收单位:</labe>-->
75
- <!-- &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;-->
76
- <!-- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"-->
77
- <!-- :width="'60%'"-->
78
- <!-- v-model="selectArea"-->
79
- <!-- :timeout="500"-->
80
- <!-- @select-search="select_search"-->
81
- <!-- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_change()"></v-select>-->
82
- <!-- </div>-->
83
- <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">-->
84
- <!-- <labe class="righttxt">集收单位:</labe>-->
85
- <!-- &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;-->
86
- <!-- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"-->
87
- <!-- :width="'60%'"-->
88
- <!-- v-model="selectArea"-->
89
- <!-- @select-search="select_search"-->
90
- <!-- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>-->
91
- <!-- </div>&ndash;&gt;-->
92
- <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
93
- <!-- <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />-->
94
- <!-- </div>-->
95
- <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
96
- <!-- <labe class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />-->
97
- <!-- </div>-->
98
- <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
99
- <!-- <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />-->
100
- <!-- </div>-->
101
- <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
102
- <!-- <labe class="righttxt">门&ensp;牌&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />-->
103
- <!-- </div>-->
104
- <!-- <div class="row auto" style="margin: 5px 0">-->
105
- <!-- <labe class="righttxt">详细地址:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo_old.addressinfo.f_address" />-->
106
- <!-- </div>-->
107
- <!-- <div class="row auto" style="margin: 5px 0">-->
108
- <!-- <labe class="righttxt">新&ensp;地&ensp;址:</labe>&lt;!&ndash;<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />&ndash;&gt;-->
109
- <!-- <textarea :readonly="addressType=='普通地址'" class="form-control rightipt" : style="height: 80px" v-model="userinfo.addressinfo.f_address"></textarea>-->
110
- <!-- </div>-->
111
-
112
- <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">-->
113
- <!-- <labe class="righttxt">新&ensp;地&ensp;址:</labe>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;-->
114
- <!-- <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>-->
115
- <!-- </div>&ndash;&gt;-->
116
-
117
- <!-- <div class="row auto" style="margin: 5px 0">-->
118
- <!-- <labe class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</labe><textarea class="form-control rightipt" style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />&ndash;&gt;-->
119
- <!-- </div>-->
120
- <!-- </div>-->
121
- <!-- </div>-->
122
- <!-- <div class="panel auto" >-->
123
- <!-- <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">-->
124
- <!-- <span class="spanboder" >-->
125
- <!-- <img src="../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息-->
126
- <!-- <img class="butt3" :src="imgback('表具信息')">-->
127
- <!-- </span>-->
128
- <!-- </div>-->
129
- <!-- <div class="panel-body " v-show="headername=='表具信息'">-->
130
- <!-- <div class="row auto" style="margin: 5px 0">-->
131
- <!-- <labe class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</labe>-->
132
- <!-- <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify!='机表'" class="form-control rightipt" style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />-->
133
- <!-- <button type="button" :disabled="userinfo.meterinfo[0].f_meter_classify!='机表'" name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码</button>-->
134
- <!-- </div>-->
135
- <!-- <div class="row auto" style="margin: 5px 0">-->
136
- <!-- <labe class="righttxt">气表品牌:</labe>-->
137
- <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasbrand" readonly />-->
138
- <!-- </div>-->
139
- <!-- <div class="row auto" style="margin: 5px 0">-->
140
- <!-- <labe class="righttxt">气表型号:</labe>-->
141
- <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasmodel" readonly />-->
142
- <!-- </div>-->
143
- <!-- <div class="row auto" style="margin: 5px 0">-->
144
- <!-- <labe class="righttxt">气表类型:</labe>-->
145
- <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>&ndash;&gt;-->
146
- <!-- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].gasmodeltype"-->
147
- <!-- v-model="userinfo.meterinfo[0].gasmodeltype"-->
148
- <!-- placeholder='请选择'-->
149
- <!-- :width='wid'-->
150
- <!-- readonly-->
151
- <!-- :options="qb_types"-->
152
- <!-- close-on-select value-single></v-select>-->
153
- <!-- </div>-->
154
- <!-- <div class="row auto" style="margin: 5px 0">-->
155
- <!-- <labe class="righttxt">通讯模式:</labe>-->
156
- <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>-->
157
- <!-- </div>-->
158
- <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">-->
159
- <!-- <div class="auto">-->
160
- <!-- <div class="panel" style="padding: 0px 15px 5px 10px;">-->
161
- <!-- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">-->
162
- <!-- <div class="row" style="height: 240px;">-->
163
- <!-- <div class="col-sm-4">-->
164
- <!-- <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>-->
165
- <!-- </div>-->
166
- <!-- </div>-->
167
- <!-- <div class="row text-right div-photo" :class="style__">-->
168
- <!-- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>-->
169
-
170
- <!-- </div>-->
171
- <!-- </div>-->
172
- <!-- </div>-->
173
- <!-- </div>-->
174
- <!-- </div>&ndash;&gt;-->
175
- <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0">&ndash;&gt;-->
176
- <!-- &lt;!&ndash;<labe class="righttxt">控制器号:</labe>&ndash;&gt;-->
177
- <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />&ndash;&gt;-->
178
- <!-- &lt;!&ndash;</div>&ndash;&gt;-->
179
- <!-- <div class="row auto" style="margin: 5px 0">-->
180
- <!-- <labe class="righttxt">表&ensp;封&ensp;号:</labe>-->
181
- <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />-->
182
- <!-- </div>-->
183
- <!-- <div class="row auto" style="margin: 5px 0">-->
184
- <!-- <labe class="righttxt">表&ensp;位&ensp;置:</labe>-->
185
- <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>&ndash;&gt;-->
186
- <!-- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"-->
187
- <!-- v-model="userinfo.meterinfo[0].f_position"-->
188
- <!-- placeholder='请选择'-->
189
- <!-- :width='wid'-->
190
- <!-- readonly-->
191
- <!-- :options="wz_types"-->
192
- <!-- close-on-select value-single></v-select>-->
193
- <!-- </div>-->
194
- <!-- <div class="row auto" style="margin: 5px 0">-->
195
- <!-- <div style="display: flex;justify-content: center;">-->
196
- <!-- <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>-->
197
- <!-- </div>-->
198
- <!-- </div>-->
199
- <!-- </div>-->
200
- <!-- </div>-->
201
- <div class="panel auto">
202
- <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
203
-
204
- <span class="spanboder"><img src="../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
205
- class="butt3" :src="imgback('设备信息')"></span>
206
- </div>
207
- <div class="panel-body" v-show="headername=='设备信息'">
208
- <div class="row" v-for="row in model"
209
- style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
210
- <div class="row auto" style="margin: 5px 0">
211
- <labe class="righttxt">设备类型:</labe>
212
- <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
213
- <v-select class="rightipt" :value.sync="row.f_devices_type"
214
- v-model="row.f_devices_type"
215
- placeholder='请选择'
216
- :width='wid'
217
- readonly
218
- :options="devices_types"
219
- close-on-select value-single></v-select>
220
- </div>
221
- <div class="row auto" style="margin: 5px 0">
222
- <labe class="righttxt">设备品牌:</labe>
223
- <input type="text" class="form-control rightipt" v-model="row.f_brand"/>
224
- </div>
225
- <div class="row auto" style="margin: 5px 0">
226
- <labe class="righttxt">设备型号:</labe>
227
- <input type="text" class="form-control rightipt" v-model="row.f_devices_model"/>
228
- </div>
229
- <!-- <div class="row auto" style="margin: 5px 0">-->
230
- <!-- <labe class="righttxt">设备功率:</labe>-->
231
- <!-- <input type="text" class="form-control rightipt" v-model="row.f_device_power"/>-->
232
- <!-- </div>-->
233
- <div class="row auto" style="margin: 5px 0">
234
- <labe class="righttxt">生产日期:</labe>
235
- <!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
236
- <datepicker class="rightipt"
237
- :value.sync="row.f_make_date"
238
- v-model="row.f_make_date"
239
- :disabled-days-of-Week="[]"
240
- :format="'yyyy-MM-dd'"
241
- :show-reset-button="reset" readonly="readonly">
242
- </datepicker>
243
- </div>
244
- <div class="row auto" style="margin: 5px 0">
245
- <labe class="righttxt">使用年限:</labe>
246
- <input type="number" class="form-control rightipt" v-model="row.f_service_life"/>
247
- </div>
248
- <div class="row auto" style="margin: 5px 0">
249
- <labe class="righttxt">到期日期:</labe>
250
- <!--<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />-->
251
- <datepicker class="rightipt"
252
- :value.sync="row.f_expire_date"
253
- v-model="row.f_expire_date"
254
- :disabled-days-of-Week="[]"
255
- :format="'yyyy-MM-dd'"
256
- :show-reset-button="reset" readonly="readonly">
257
- </datepicker>
258
- </div>
259
- <div class="row auto" style="margin: 5px 0">
260
- <labe class="righttxt">安&ensp;装&ensp;人:</labe>
261
- <input type="text" class="form-control rightipt" v-model="row.f_input_person"/>
262
- </div>
263
- <div class="row auto" style="margin: 5px 0">
264
- <labe class="righttxt">安装日期:</labe>
265
- <!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
266
- <datepicker class="rightipt"
267
- :value.sync="row.f_input_date"
268
- v-model="row.f_input_date"
269
- :disabled-days-of-Week="[]"
270
- :format="'yyyy-MM-dd'"
271
- :show-reset-button="reset" readonly="readonly">
272
- </datepicker>
273
- </div>
274
- <div class="row auto" style="margin: 5px 0">
275
- <labe class="righttxt">设备数量:</labe>
276
- <input type="number" class="form-control rightipt" v-model="row.f_devices_num"/>
277
- </div>
278
- <div class="row auto" style="margin: 5px 0">
279
- <labe class="righttxt">有无不锈钢波纹管:</labe>
280
- <!-- <input type="text" class="form-control rightipt" v-model="row.f_pipe_type"/>-->
281
- <v-select class="rightipt" :value.sync="row.f_pipe_type"
282
- v-model="row.f_pipe_type"
283
- placeholder='请选择'
284
- :width='wid'
285
- readonly
286
- :options="pipetypes"
287
- close-on-select value-single></v-select>
288
- </div>
289
- <!-- <div class="row auto" style="margin: 5px 0">-->
290
- <!-- <labe class="righttxt">管道数量:</labe>-->
291
- <!-- <input type="text" class="form-control rightipt" v-model="row.f_pipe_num"/>-->
292
- <!-- </div>-->
293
- <!-- <div class="row auto" style="margin: 5px 0">-->
294
- <!-- <labe class="righttxt">管道安装日期:</labe>-->
295
- <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_make_date" />&ndash;&gt;-->
296
- <!-- <datepicker class="rightipt"-->
297
- <!-- :value.sync="row.f_pipeinstall_date"-->
298
- <!-- v-model="row.f_pipeinstall_date"-->
299
- <!-- :disabled-days-of-Week="[]"-->
300
- <!-- :format="'yyyy-MM-dd'"-->
301
- <!-- :show-reset-button="reset" readonly="readonly">-->
302
- <!-- </datepicker>-->
303
- <!-- </div>-->
304
- <!-- <div class="row auto" style="margin: 5px 0">-->
305
- <!-- <labe class="righttxt">管道到期日期:</labe>-->
306
- <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_make_date" />&ndash;&gt;-->
307
- <!-- <datepicker class="rightipt"-->
308
- <!-- :value.sync="row.f_pipeexpire_date"-->
309
- <!-- v-model="row.f_pipeexpire_date"-->
310
- <!-- :disabled-days-of-Week="[]"-->
311
- <!-- :format="'yyyy-MM-dd'"-->
312
- <!-- :show-reset-button="reset" readonly="readonly">-->
313
- <!-- </datepicker>-->
314
- <!-- </div>-->
315
- <!-- <div class="row auto" style="margin: 5px 0">-->
316
- <!-- <labe class="righttxt">有无自闭阀:</labe>-->
317
- <!-- &lt;!&ndash; <input type="text" class="form-control rightipt" v-model="row.f_is_zibifa" />&ndash;&gt;-->
318
- <!-- <v-select class="rightipt" :value.sync="row.f_is_zibifa"-->
319
- <!-- v-model="row.f_is_zibifa"-->
320
- <!-- placeholder='请选择'-->
321
- <!-- :width='wid'-->
322
- <!-- :options="is_zibifa"-->
323
- <!-- close-on-select value-single></v-select>-->
324
- <!-- </div>-->
325
- <!-- <div class="row auto" style="margin: 5px 0">-->
326
- <!-- <labe class="righttxt">自闭阀数量:</labe>-->
327
- <!-- <input type="text" class="form-control rightipt" v-model="row.f_zibifa_num"/>-->
328
- <!-- </div>-->
329
- <!--<div class="row auto" style="margin: 5px 0">
330
- <labe class="righttxt">设备状态:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
331
- </div>-->
332
- <!--<div class="row auto" style="margin: 5px 0">
333
- <labe class="righttxt">购买方式:</labe><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
334
- </div>-->
335
- <div style="display: flex;justify-content: center;margin-bottom: 3px"
336
- v-if="$index>this.userinfo_old.devicesinfo.length-1 || this.userinfo_old.devicesinfo.length==0">
337
- <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
338
- </div>
339
- </div>
340
- <div style="display: flex;justify-content: space-around;">
341
- <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
342
- </div>
343
- </div>
344
- </div>
345
- <div class="panel auto">
346
- <div class="panel-body">
347
- <div style="display: flex;justify-content: center;">
348
- <button class="col-sm-3 btn btn-primary" :disabled="enable" @click="editUserInfo()">上传</button>
349
- </div>
350
- </div>
351
- </div>
352
- </div>
353
- </template>
354
-
355
- <script>
356
- import {HttpResetClass} from 'vue-client'
357
- import * as Util from '../../components/Util'
358
- import Vue from 'vue'
359
-
360
- export default {
361
- title: '设备查看',
362
- data() {
363
- return {
364
- model: [],
365
- show: false,
366
- row: Object,
367
- userinfo: Object,
368
- userinfo_old: Object,
369
- wid: "60%",
370
- devices_types: [],
371
- pipe_types: this.$appdata.getParam('管道类型'),
372
- pipetypes: [{label: '有', value: '不锈钢波纹管'}, {label: '无', value: ''}],
373
- wz_types: [],
374
- qb_types: Vue.$appdata.getParam('表类型'),
375
- cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
376
- is_zibifa: this.$appdata.getParam('有无自闭阀'),
377
- pcds: [],
378
- streets: [],
379
- update: false,
380
- headername: '设备信息',
381
- excessive: false,
382
- area: [],
383
- enable: false,
384
- f_meterno_path: Vue.nopic,
385
- selectArea: {id: ''},
386
- selectPcd: {id: ''},
387
- selectStreet: {id: ''},
388
- changemeterno: false,//是否修改了机表表号
389
- approveChange: false,//是否需要进行信息变更审核
390
- newAddress: '',
391
- addressType: '',
392
- //需要审核的字段
393
- checkField: {
394
- checkUserinfoField: [
395
- 'f_user_name'
396
- ],
397
- checkUserFilesField: [
398
- 'f_meternumber'
399
- ],
400
- checkAddressField: [
401
- 'f_pcd_id',
402
- 'f_street_id',
403
- 'f_residential_area_id',
404
- 'f_building',
405
- 'f_unit',
406
- 'f_floor',
407
- 'f_room',
408
- 'f_slice_area',
409
- 'f_special',
410
- 'f_address'
411
- ],
412
- }
413
- }
414
- },
415
- props: {
416
- user: {
417
- type: Object
418
- },
419
- f_userinfo_id: {
420
- type: String
421
- },
422
- f_source: {
423
- type: String
424
- }
425
- },
426
- methods: {
427
- // scan(){
428
- // HostApp.__this__=this,
429
- // HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
430
- // },
431
- // getCode(){
432
- // var datapa = HostApp.getCode().data;
433
- // //tag
434
- // this.userinfo.meterinfo[0].f_meternumber=datapa
435
- // },
436
- //数据检查
437
- // checkVal(){
438
- // //检查一些必要信息是否未填
439
- // this.approveChange=false
440
- // this.changemeterno=false
441
- // let checked={ischeck:true,msg:''}
442
- // //tag
443
- // //tag
444
- // //tag
445
- // if(!this.userinfo.baseinfo.base.f_user_name){
446
- // checked={ischeck:false,msg:'请输入用户名称!'}
447
- // }
448
- // if(!this.selectPcd.id){
449
- // checked={ischeck:false,msg:'请选择省市区!'}
450
- // }
451
- // if(!this.selectStreet.id){
452
- // checked={ischeck:false,msg:'请选择街道!'}
453
- // }
454
- // if(!this.userinfo.addressinfo.f_address){
455
- // checked={ischeck:false,msg:'新地址不能为空!'}
456
- // }
457
- // if(this.addressType=='普通地址'){
458
- // if(!this.selectArea.id){
459
- // checked={ischeck:false,msg:'请选择集收单位!'}
460
- // }
461
- // if(!this.userinfo.addressinfo.f_room){
462
- // checked={ischeck:false,msg:'新输入门牌号!'}
463
- // }
464
- // }
465
- // if(this.userinfo.meterinfo[0].f_meter_classify=='机表' && this.userinfo_old.meterinfo[0].f_meternumber){
466
- //
467
- // //tag
468
- // //tag
469
- // if(this.userinfo.meterinfo[0].f_meternumber){
470
- // if(this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber){
471
- // if(!this.f_meterno_path || this.f_meterno_path==Vue.nopic){
472
- // checked={ischeck:false,msg:'请拍摄表号照片!'}
473
- // }else{
474
- // //用来标识当前有修改机表表号,后台需要进行照片上传
475
- // this.changemeterno=true
476
- // }
477
- // }
478
- // }else{
479
- // checked={ischeck:false,msg:'请输入表号!'}
480
- // }
481
- // }
482
- // //检查本次修改信息中是否包含需要审核的内容
483
- // for(let check in this.checkField){
484
- // //tag
485
- // if(typeof check!='function'){
486
- // for(let i = 0;i < this.checkField[check].length;i++){
487
- // //tag
488
- // if(check=='checkUserinfoField'){
489
- // //tag
490
- // //tag
491
- // if(this.userinfo.baseinfo.base[this.checkField[check][i]]!=this.userinfo_old.baseinfo.base[this.checkField[check][i]]){
492
- // //tag
493
- // this.approveChange=true
494
- // }
495
- // }else if(check=='checkUserFilesField'){
496
- // //tag
497
- // //tag
498
- // if(this.userinfo.meterinfo[0][this.checkField[check][i]]!=this.userinfo_old.meterinfo[0][this.checkField[check][i]]){
499
- // //tag
500
- // this.approveChange=true
501
- // }
502
- // }else if(check=='checkAddressField'){
503
- // //tag
504
- // //tag
505
- // if(this.userinfo.addressinfo[this.checkField[check][i]]!=this.userinfo_old.addressinfo[this.checkField[check][i]]){
506
- // //tag
507
- // this.approveChange=true
508
- // }
509
- // }
510
- // }
511
- // }
512
- // }
513
- // //tag
514
- // return checked
515
- // },
516
- // select_search(text){
517
- // //tag
518
- // if(this.selectStreet.id){
519
- // let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
520
- // new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
521
- // //tag)
522
- // if(res.data.length>0){
523
- // this.area=[]
524
- // res.data.forEach((result)=>{
525
- // this.area.push({label:result.f_residential_area,value:result})
526
- // })
527
- // }
528
- // })
529
- // }else{
530
- // this.area=[]
531
- // }
532
- // },
533
- cameraCallBack(prop, fileName) {
534
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
535
- //tag
536
- HostApp.__callback__ = null
537
- HostApp.__this__ = null
538
- },
539
- takePic(prop, title) {
540
- HostApp.__callback__ = this.cameraCallBack
541
- HostApp.__this__ = this
542
- //tag
543
- let fileName
544
- if (!this[prop] || this[prop].includes("nopic.png")) {
545
- fileName = Util.guid() + '-' + prop + '.jpg'
546
- } else {
547
- fileName = Util.getFileName(this[prop])
548
- }
549
- HostApp._open_a_page({
550
- type: 'boomerang',
551
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
552
- param: {
553
- file: fileName,
554
- requestCode: 111,
555
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
556
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
557
- }
558
- })
559
- },
560
- delfile(prop, fileName) {
561
- if (fileName == Vue.nopic)
562
- return
563
- else {
564
- HostApp.delfile(fileName)
565
- this[prop] = Vue.nopic
566
- }
567
- },
568
- editUserInfo() {
569
- // let checked=this.checkVal()
570
- // if(!checked.ischeck){
571
- // this.$showMessage(checked.msg)
572
- // return
573
- // }
574
- for (let i = 0; i < this.model.length; i++) {
575
- this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
576
- }
577
- this.$showMessage('确定是否修改上传设备信息?', ['confirm', 'cancel']).then((res) => {
578
- if (res === 'confirm') {
579
- this.excessive = true
580
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
581
- //userinfoms.f_user_name=row.f_user_name
582
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
583
- userinfoms.f_rent_phone = this.userinfo.baseinfo.base.f_rent_phone
584
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
585
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
586
- userinfoms.f_operator_record = Vue.user.name
587
- userinfoms.f_operatorid_record = Vue.user.id
588
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
589
- userinfoms.f_orgid_record = Vue.user.orgid
590
- userinfoms.f_orgname_record = Vue.user.orgs
591
- userinfoms.f_depid_record = Vue.user.depids
592
- userinfoms.f_depname_record = Vue.user.deps
593
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
594
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
595
- userinfoms.userfiles = []
596
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
597
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
598
- //tag)
599
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
600
- data: {
601
- userinfo: userinfoms,
602
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
603
- address: {
604
- id: this.userinfo_old.addressinfo.id,
605
- oldid: this.userinfo_old.addressinfo.id,
606
- f_address: this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
607
- }
608
- }
609
- }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
610
- //tag+res1.data.status)
611
- if (res1.data.status == 200) {
612
- //本次修改信息包含需要审核信息
613
- if (false) {
614
- //tag
615
- let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
616
- row: {
617
- f_time: Util.toStandardTimeString(),
618
- f_modifier: Vue.user.name,//Vue.user.name
619
- f_modifier_id: Vue.user.id,//Vue.user.id
620
- f_modify_type: '用户档案',
621
- f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
622
- f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
623
- f_approved: '未审核',
624
- filialestr: Vue.user.orgid,//Vue.user.orgid
625
- version: 1,
626
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
627
- f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
628
- f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
629
- f_street: this.userinfo.addressinfo.f_street,
630
- f_building: this.userinfo.addressinfo.f_building,
631
- f_unit: this.userinfo.addressinfo.f_unit,
632
- f_floor: this.userinfo.addressinfo.f_floor,
633
- f_room: this.userinfo.addressinfo.f_room,
634
- f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
635
- f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
636
- f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
637
- f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
638
- f_residential_area: this.userinfo.addressinfo.f_residential_area,
639
- f_address: this.userinfo.addressinfo.f_address,
640
- f_pcd: this.userinfo.addressinfo.f_pcd,
641
- f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
642
- f_street_id: this.userinfo.addressinfo.f_street_id,
643
- f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
644
- f_used_name: this.userinfo.baseinfo.base.f_used_name,
645
- f_slice_area: this.userinfo.addressinfo.f_slice_area,
646
- f_remark: this.userinfo.baseinfo.base.f_remark,
647
- f_source: this.f_source,
648
- f_meterno_path: this.f_meterno_path,
649
- f_iscity: this.userinfo.addressinfo.f_iscity,
650
- f_special: this.userinfo.addressinfo.f_special,
651
- f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
652
- changemeterno: this.changemeterno
653
- },
654
- tablename: 't_modify_userinfo'
655
- })
656
- //tag)
657
- if (res2.code == 200) {
658
- this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
659
- this.enable = true
660
- this.excessive = false
661
- } else {
662
- this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
663
- this.excessive = false
664
- }
665
- } else {
666
- this.$showMessage("修改用户信息成功!")
667
- this.enable = true
668
- this.excessive = false
669
- }
670
-
671
- }
672
- }).catch((msg) => {
673
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
674
- this.excessive = false
675
- })
676
-
677
- }
678
- })
679
- },
680
- imgback(header) {
681
- if (this.headername == header) {
682
- return require('../../assets/xiangxia1.png')
683
- } else {
684
- return require('../../assets/xiangyou1.png')
685
- }
686
- this.headername = header
687
- },
688
- selectVal(header) {
689
- if (this.headername == header) {
690
- this.headername = ''
691
- } else {
692
- this.headername = header
693
- }
694
-
695
- },
696
- // changeNewAddress(){
697
- // this.userinfo.addressinfo.f_address=this.addressType=='普通地址'?this.getAddress:this.getAddressTS
698
- // },
699
- // area_change(){
700
- // //tag
701
- // this.userinfo.addressinfo.f_residential_area=this.selectArea.f_residential_area
702
- // this.userinfo.addressinfo.f_residential_area_id=this.selectArea.id
703
- // this.userinfo.addressinfo.f_slice_area=this.selectArea.f_slice_area
704
- // this.changeNewAddress()
705
- // //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
706
- // },
707
- // async street_change(){
708
- // //tag
709
- // if(this.selectStreet.id){
710
- // //如果街道改变--给街道赋值!
711
- // this.userinfo.addressinfo.f_street=this.selectStreet.f_street
712
- // this.userinfo.addressinfo.f_street_id=this.selectStreet.id
713
- // this.userinfo.addressinfo.f_iscity=this.selectStreet.f_iscity
714
- // //清空当前选中小区的值
715
- // this.userinfo.addressinfo.f_residential_area=''
716
- // this.userinfo.addressinfo.f_residential_area_id=''
717
- // this.userinfo.addressinfo.f_slice_area=''
718
- // this.selectArea={id:''}
719
- // this.area=[]
720
- // let pcdText=` and f_street_id=${this.selectStreet.id}`
721
- // let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null})
722
- // ////tag)
723
- // res.data.forEach((result)=>{
724
- // this.area.push({label:result.f_residential_area,value:result})
725
- // })
726
- // }else{
727
- // this.area=[]
728
- // }
729
- //
730
- // this.changeNewAddress()
731
- // },
732
- // async pcd_change(){
733
- // //tag
734
- // if(this.selectPcd.id){
735
- // //tag
736
- // //如果省市区改变-重新赋值
737
- // this.userinfo.addressinfo.f_pcd=this.selectPcd.f_pcd
738
- // this.userinfo.addressinfo.f_pcd_id=this.selectPcd.id
739
- // //清空 选中的街道和集收单位
740
- // this.selectStreet={id:''}
741
- // this.userinfo.addressinfo.f_street=''
742
- // this.userinfo.addressinfo.f_street_id=''
743
- // this.userinfo.addressinfo.f_iscity=''
744
- // this.selectArea={id:''}
745
- // this.userinfo.addressinfo.f_residential_area=''
746
- // this.userinfo.addressinfo.f_residential_area_id=''
747
- // this.userinfo.addressinfo.f_slice_area=''
748
- // this.streets=[]
749
- // let pcdText=`and f_pcd_id=${this.selectPcd.id}`
750
- // let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
751
- // streetlist.data.forEach((result)=>{
752
- // this.streets.push({label:result.f_street,value:result})
753
- // })
754
- // }else{
755
- // this.streets=[]
756
- // }
757
- // this.changeNewAddress()
758
- // },
759
- // upUserState(){
760
- // //tag)
761
- // if(this.userinfo.meterinfo[0].f_table_state=='正常'){
762
- // let data = {
763
- // f_userfiles_id: {
764
- // f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
765
- // f_table_state: '停用',
766
- // version: this.userinfo.meterinfo[0].version
767
- // },
768
- // f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
769
- // f_user_id: this.userinfo.meterinfo[0].f_user_id,
770
- // f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
771
- // f_user_name: this.userinfo.baseinfo.base.f_user_name,
772
- // f_comments: '安检时发现问题关闭阀门',
773
- // f_othereason:'',
774
- // f_operat_type: '停用',
775
- // f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
776
- // f_state: '有效',
777
- // f_operator: Vue.user.name,//${Vue.$login.f.name}
778
- // f_operatorid: Vue.user.id,
779
- // f_orgid: Vue.user.orgid,
780
- // f_orgname: Vue.user.orgs,
781
- // f_depid: Vue.user.depids,
782
- // f_depname: Vue.user.deps,
783
- // f_zoneid: Vue.user.zoneid,
784
- // f_zones: Vue.user.zones
785
- // }
786
- // new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
787
- // data, {resolveMsg: null, rejectMsg: null}).then((row) => {
788
- // this.$showMessage('已成功关阀停气!')
789
- // this.userinfo.meterinfo[0].f_table_state='停用'
790
- // })
791
- // }else{
792
- // this.$showMessage('该用户已被关阀停用,请勿重复操作!')
793
- // }
794
- //
795
- // },
796
- addDevices() {
797
- //Vue.user.name
798
- let obj = {
799
- "f_operator": Vue.user.name,
800
- "f_picture": null,
801
- "f_pipe_type": null,
802
- "f_pipeinstall_date": null,
803
- "f_pipe_connection": null,
804
- "f_expire_date": null,
805
- "f_pipeexpire_date": null,
806
- "f_comments": null,
807
- "f_operate_date": Util.toStandardTimeString(),
808
- "f_operatorid": Vue.user.id,
809
- "f_devices_num": null,
810
- "f_process_id": null,
811
- "f_devices_type": null,
812
- "f_make_date": null,
813
- "f_input_date": null,
814
- "f_state": "有效",
815
- "f_brand": null,
816
- "f_devices_model": null,
817
- "f_device_power": null,
818
- "f_devices_no": null,
819
- "img": {"content": null, "filename": null}
820
- }
821
- this.model.push(obj)
822
- },
823
- delDevices(idx) {
824
- //tag
825
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
826
- if (res === 'confirm') {
827
- this.model.splice(idx, 1)
828
- }
829
- })
830
- },
831
- // async getAreaList(text){
832
- // if(this.selectStreet.id){
833
- // this.area=[]
834
- // let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
835
- // let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
836
- // ////tag)
837
- // res.data.forEach((result)=>{
838
- // this.area.push({label:result.f_residential_area,value:result})
839
- // })
840
- // //tag
841
- // this.area.push({label:this.userinfo.addressinfo.f_residential_area,value:{id:this.userinfo.addressinfo.f_residential_area_id,f_residential_area:this.userinfo.addressinfo.f_residential_area}})
842
- // }else{
843
- // this.area=[]
844
- // }
845
- //
846
- // },
847
- // async getStreetList(){
848
- // if(this.selectPcd.id){
849
- // //tag
850
- // this.streets=[]
851
- // let pcdText=`and f_pcd_id=${this.selectPcd.id}`
852
- // let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
853
- // streetlist.data.forEach((result)=>{
854
- // //如果第一次进来有地址id 就拿下地址区域
855
- // if(this.selectStreet.id && this.selectStreet.id==result.id){
856
- // //tag)
857
- // this.userinfo.addressinfo.f_iscity=result.f_iscity
858
- // }
859
- // this.streets.push({label:result.f_street,value:result})
860
- // })
861
- // }else{
862
- // this.streets=[]
863
- // }
864
- // },
865
- // changeAddressType (val) {
866
- // //tag
867
- // if(this.addressType=='普通地址'){
868
- // this.userinfo.addressinfo.f_special=null
869
- // }else if(this.addressType=='特殊地址'){
870
- // this.userinfo.addressinfo.f_special=1
871
- // this.userinfo.addressinfo.f_building=null
872
- // this.userinfo.addressinfo.f_unit=null
873
- // this.userinfo.addressinfo.f_floor=null
874
- // this.userinfo.addressinfo.f_room=null
875
- // }
876
- // this.changeNewAddress()
877
- // }
878
-
879
- },
880
- computed: {
881
- // getAddress(){
882
- // return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
883
- // (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
884
- // (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')+
885
- // (this.userinfo.addressinfo.f_building?this.userinfo.addressinfo.f_building+(this.userinfo.addressinfo.f_building_suffix?this.userinfo.addressinfo.f_building_suffix:''):'')+
886
- // (this.userinfo.addressinfo.f_unit?this.userinfo.addressinfo.f_unit+(this.userinfo.addressinfo.f_unit_suffix?this.userinfo.addressinfo.f_unit_suffix:''):'')+
887
- // (this.userinfo.addressinfo.f_floor?this.userinfo.addressinfo.f_floor+(this.userinfo.addressinfo.f_floor_suffix?this.userinfo.addressinfo.f_floor_suffix:''):'')+
888
- // (this.userinfo.addressinfo.f_room?this.userinfo.addressinfo.f_room+(this.userinfo.addressinfo.f_room_suffix?this.userinfo.addressinfo.f_room_suffix:''):'')
889
- // },
890
- // getAddressTS(){
891
- // return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
892
- // (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
893
- // (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')
894
- // }
895
- },
896
- watch: {
897
-
898
- /*'selectPcd.id' (val) {
899
- //tag
900
- if(this.selectPcd.id){
901
- this.getStreetList()
902
- }
903
- },
904
- 'selectStreet.id' (val) {
905
- //tag
906
- if(this.selectStreet.id){
907
- this.getAreaList()
908
- }
909
- }*/
910
- },
911
- async ready() {
912
-
913
- if (!this.f_userinfo_id) {
914
- this.$showMessage("未检测到用户!")
915
- this.enable = true
916
- return
917
- }
918
- try {
919
- this.devices_types = Vue.$appdata.getParam('设备类型')
920
- this.wz_types = Vue.$appdata.getParam('安装位置')
921
- this.excessive = true
922
- let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
923
- data: {
924
- items: "*",
925
- tablename: "t_pcd",
926
- orderitem: "id",
927
- condition: `f_orgid = '${Vue.user.orgid}'`
928
- }
929
- }, {resolveMsg: null, rejectMsg: null})
930
- //tag)
931
- pcdlist.data.forEach((result) => {
932
- this.pcds.push({label: result.f_pcd, value: result})
933
- })
934
- ////tag)
935
- let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
936
- //f_userinfo_code:'12381344',
937
- f_userinfo_id: this.f_userinfo_id
938
- }, {resolveMsg: null, rejectMsg: null})
939
- //tag
940
- //tag
941
- this.userinfo = res.data
942
- this.userinfo_old = JSON.parse(JSON.stringify(res.data))
943
- this.model = this.userinfo.meterinfo[0].devicesinfo
944
- this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
945
- this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
946
- this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
947
- this.selectStreet.id = this.userinfo.addressinfo.f_street_id
948
- this.selectStreet.f_street = this.userinfo.addressinfo.f_street
949
- await this.getStreetList()
950
- await this.getAreaList()
951
- this.excessive = false
952
- this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
953
- //this.userinfo.addressinfo.f_special=1
954
- //tag
955
- } catch (e) {
956
- this.excessive = false
957
- }
958
- new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, {data: {}}, {
959
- resolveMsg: null,
960
- rejectMsg: null
961
- }).then((addressUnit) => {
962
- this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
963
- this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
964
- this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
965
- this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
966
- }).catch((msg) => {
967
- })
968
- }
969
- }
970
- </script>
971
- <style lang="less" scoped>
972
- .butt3 {
973
- float: right;
974
- width: 12px;
975
- margin: 1% 2% 0 0;
976
- }
977
-
978
- .rightipt {
979
- width: 60%;
980
- float: left;
981
- margin-left: 5%;
982
- }
983
-
984
- .righttxt {
985
- border: none;
986
- margin-left: 5px;
987
- /*border-left: 5px solid #A2C2EB;*/
988
- float: left;
989
- width: 25%;
990
- margin-bottom: 3px;
991
- text-align: left;
992
- word-wrap: break-word;
993
- white-space: normal;
994
- }
995
-
996
- .tit1 {
997
- background-image: url('../../assets/用户姓名.png');
998
- background-repeat: no-repeat;
999
- background-position: center;
1000
- }
1001
-
1002
- .spanboder {
1003
- border-bottom: 2px solid #499edf;
1004
- padding-bottom: 8px
1005
- }
1006
-
1007
- #upuserinfo_sel /deep/ ul {
1008
- width: 100% !important;
1009
- left: 0 !important;
1010
- }
1011
-
1012
- .btn-photo {
1013
- border: 0;
1014
- border-radius: 7px;
1015
- background-color: #7dc1f4;
1016
- font: 15px PingFang-SC-Bold;
1017
- height: 20%;
1018
- }
1019
-
1020
- .panel-self {
1021
- border-radius: 10px;
1022
- border: 1px solid #499EDF;
1023
- background-color: #F8F8F8;
1024
- }
1025
-
1026
- .div-photo {
1027
- width: auto;
1028
- height: auto;
1029
- /* margin-top: 10px; */
1030
- position: absolute;
1031
- bottom: 10px;
1032
- right: 10px;
1033
- }
1034
- </style>
1035
- <style lang="less">
1036
- #upuserinfo_sel ul {
1037
- width: 100% !important;
1038
- left: 0 !important;
1039
- }
1040
- </style>
1
+ <template>
2
+ <work-busy :is-busy="excessive"></work-busy>
3
+ <div style="height: 100%">
4
+ <!-- <div class="panel auto" >-->
5
+ <!-- <div class="panel-heading" @click="selectVal('基本信息')" style="background-color: #ffffff">-->
6
+ <!-- <span class="spanboder" >-->
7
+ <!-- <img src="../../assets/person.png" style="width: 22px;margin-right: 8px;">基本信息-->
8
+ <!-- <img class="butt3" :src="imgback('基本信息')">-->
9
+ <!-- </span>-->
10
+ <!-- </div>-->
11
+ <!-- <div class="panel-body " id="upuserinfo_sel" v-show="headername=='基本信息'">-->
12
+ <!-- <div class="row auto" style="margin: 5px 0">-->
13
+ <!-- <labe class="righttxt">用户编号:</labe>-->
14
+ <!-- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly/>-->
15
+ <!-- </div>-->
16
+ <!-- <div class="row auto" style="margin: 5px 0">-->
17
+ <!-- <labe class="righttxt">用户名称:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly />-->
18
+ <!-- </div>-->
19
+ <!-- <div class="row auto" style="margin: 5px 0">-->
20
+ <!-- <labe class="righttxt">用户状态:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo.baseinfo.base.f_user_state" />-->
21
+ <!-- </div>-->
22
+ <!-- <div class="row auto" style="margin: 5px 0">-->
23
+ <!-- <labe class="righttxt">用户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone" />-->
24
+ <!-- </div>-->
25
+ <!-- <div class="row auto" style="margin: 5px 0">-->
26
+ <!-- <labe class="righttxt">备用电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_phone" />-->
27
+ <!-- </div>-->
28
+ <!-- <div class="row auto" style="margin: 5px 0">-->
29
+ <!-- <labe class="righttxt">租户姓名:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name" />-->
30
+ <!-- </div>-->
31
+ <!-- <div class="row auto" style="margin: 5px 0">-->
32
+ <!-- <labe class="righttxt">租户电话:</labe><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone" />-->
33
+ <!-- </div>-->
34
+ <!-- <div class="row auto" style="margin: 5px 0">-->
35
+ <!-- <labe class="righttxt">地址类型:</labe>-->
36
+ <!-- <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">-->
37
+ <!-- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType1">普通地址</label></div>-->
38
+ <!-- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px" for="phone_addressType2">特殊地址</label></div>-->
39
+ <!-- </div>-->
40
+ <!-- &lt;!&ndash;<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />&ndash;&gt;-->
41
+ <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />&ndash;&gt;-->
42
+ <!-- &lt;!&ndash;<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"-->
43
+ <!-- :width="'60%'"-->
44
+ <!-- v-model="userinfo.addressinfo.f_iscity"-->
45
+ <!-- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>&ndash;&gt;-->
46
+ <!-- </div>-->
47
+ <!-- <div class="row auto" style="margin: 5px 0">-->
48
+ <!-- <labe class="righttxt">地区类型:</labe>-->
49
+ <!-- &lt;!&ndash;<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />&ndash;&gt;-->
50
+ <!-- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity" />-->
51
+ <!-- &lt;!&ndash;<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"-->
52
+ <!-- :width="'60%'"-->
53
+ <!-- :disabled="true"-->
54
+ <!-- v-model="userinfo.addressinfo.f_iscity"-->
55
+ <!-- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>&ndash;&gt;-->
56
+ <!-- </div>-->
57
+ <!-- <div class="row auto" style="margin: 5px 0">-->
58
+ <!-- <labe class="righttxt">省&ensp;市&ensp;区:</labe>-->
59
+ <!-- &lt;!&ndash;<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />&ndash;&gt;-->
60
+ <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />&ndash;&gt;-->
61
+ <!-- <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;"-->
62
+ <!-- :width="'60%'"-->
63
+ <!-- v-model="selectPcd"-->
64
+ <!-- :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single @change="pcd_change()"></v-select>-->
65
+ <!-- </div>-->
66
+ <!-- <div class="row auto" style="margin: 5px 0">-->
67
+ <!-- <labe class="righttxt">街道名称:</labe>&lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />&ndash;&gt;-->
68
+ <!-- <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;"-->
69
+ <!-- :width="'60%'"-->
70
+ <!-- v-model="selectStreet"-->
71
+ <!-- :options='streets' placeholder='请选择街道' close-on-select clear-button value-single @change="street_change()"></v-select>-->
72
+ <!-- </div>-->
73
+ <!-- <div class="row auto" style="margin: 5px 0">-->
74
+ <!-- <labe class="righttxt">集收单位:</labe>-->
75
+ <!-- &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;-->
76
+ <!-- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"-->
77
+ <!-- :width="'60%'"-->
78
+ <!-- v-model="selectArea"-->
79
+ <!-- :timeout="500"-->
80
+ <!-- @select-search="select_search"-->
81
+ <!-- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_change()"></v-select>-->
82
+ <!-- </div>-->
83
+ <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">-->
84
+ <!-- <labe class="righttxt">集收单位:</labe>-->
85
+ <!-- &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;-->
86
+ <!-- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"-->
87
+ <!-- :width="'60%'"-->
88
+ <!-- v-model="selectArea"-->
89
+ <!-- @select-search="select_search"-->
90
+ <!-- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>-->
91
+ <!-- </div>&ndash;&gt;-->
92
+ <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
93
+ <!-- <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />-->
94
+ <!-- </div>-->
95
+ <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
96
+ <!-- <labe class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />-->
97
+ <!-- </div>-->
98
+ <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
99
+ <!-- <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />-->
100
+ <!-- </div>-->
101
+ <!-- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">-->
102
+ <!-- <labe class="righttxt">门&ensp;牌&ensp;号:</labe><input type="text" @change="changeNewAddress" class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />-->
103
+ <!-- </div>-->
104
+ <!-- <div class="row auto" style="margin: 5px 0">-->
105
+ <!-- <labe class="righttxt">详细地址:</labe><input type="text" class="form-control rightipt" readonly v-model="userinfo_old.addressinfo.f_address" />-->
106
+ <!-- </div>-->
107
+ <!-- <div class="row auto" style="margin: 5px 0">-->
108
+ <!-- <labe class="righttxt">新&ensp;地&ensp;址:</labe>&lt;!&ndash;<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />&ndash;&gt;-->
109
+ <!-- <textarea :readonly="addressType=='普通地址'" class="form-control rightipt" : style="height: 80px" v-model="userinfo.addressinfo.f_address"></textarea>-->
110
+ <!-- </div>-->
111
+
112
+ <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">-->
113
+ <!-- <labe class="righttxt">新&ensp;地&ensp;址:</labe>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;-->
114
+ <!-- <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>-->
115
+ <!-- </div>&ndash;&gt;-->
116
+
117
+ <!-- <div class="row auto" style="margin: 5px 0">-->
118
+ <!-- <labe class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</labe><textarea class="form-control rightipt" style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />&ndash;&gt;-->
119
+ <!-- </div>-->
120
+ <!-- </div>-->
121
+ <!-- </div>-->
122
+ <!-- <div class="panel auto" >-->
123
+ <!-- <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">-->
124
+ <!-- <span class="spanboder" >-->
125
+ <!-- <img src="../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息-->
126
+ <!-- <img class="butt3" :src="imgback('表具信息')">-->
127
+ <!-- </span>-->
128
+ <!-- </div>-->
129
+ <!-- <div class="panel-body " v-show="headername=='表具信息'">-->
130
+ <!-- <div class="row auto" style="margin: 5px 0">-->
131
+ <!-- <labe class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</labe>-->
132
+ <!-- <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify!='机表'" class="form-control rightipt" style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />-->
133
+ <!-- <button type="button" :disabled="userinfo.meterinfo[0].f_meter_classify!='机表'" name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码</button>-->
134
+ <!-- </div>-->
135
+ <!-- <div class="row auto" style="margin: 5px 0">-->
136
+ <!-- <labe class="righttxt">气表品牌:</labe>-->
137
+ <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasbrand" readonly />-->
138
+ <!-- </div>-->
139
+ <!-- <div class="row auto" style="margin: 5px 0">-->
140
+ <!-- <labe class="righttxt">气表型号:</labe>-->
141
+ <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasmodel" readonly />-->
142
+ <!-- </div>-->
143
+ <!-- <div class="row auto" style="margin: 5px 0">-->
144
+ <!-- <labe class="righttxt">气表类型:</labe>-->
145
+ <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>&ndash;&gt;-->
146
+ <!-- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].gasmodeltype"-->
147
+ <!-- v-model="userinfo.meterinfo[0].gasmodeltype"-->
148
+ <!-- placeholder='请选择'-->
149
+ <!-- :width='wid'-->
150
+ <!-- readonly-->
151
+ <!-- :options="qb_types"-->
152
+ <!-- close-on-select value-single></v-select>-->
153
+ <!-- </div>-->
154
+ <!-- <div class="row auto" style="margin: 5px 0">-->
155
+ <!-- <labe class="righttxt">通讯模式:</labe>-->
156
+ <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>-->
157
+ <!-- </div>-->
158
+ <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">-->
159
+ <!-- <div class="auto">-->
160
+ <!-- <div class="panel" style="padding: 0px 15px 5px 10px;">-->
161
+ <!-- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">-->
162
+ <!-- <div class="row" style="height: 240px;">-->
163
+ <!-- <div class="col-sm-4">-->
164
+ <!-- <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>-->
165
+ <!-- </div>-->
166
+ <!-- </div>-->
167
+ <!-- <div class="row text-right div-photo" :class="style__">-->
168
+ <!-- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>-->
169
+
170
+ <!-- </div>-->
171
+ <!-- </div>-->
172
+ <!-- </div>-->
173
+ <!-- </div>-->
174
+ <!-- </div>&ndash;&gt;-->
175
+ <!-- &lt;!&ndash;<div class="row auto" style="margin: 5px 0">&ndash;&gt;-->
176
+ <!-- &lt;!&ndash;<labe class="righttxt">控制器号:</labe>&ndash;&gt;-->
177
+ <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />&ndash;&gt;-->
178
+ <!-- &lt;!&ndash;</div>&ndash;&gt;-->
179
+ <!-- <div class="row auto" style="margin: 5px 0">-->
180
+ <!-- <labe class="righttxt">表&ensp;封&ensp;号:</labe>-->
181
+ <!-- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />-->
182
+ <!-- </div>-->
183
+ <!-- <div class="row auto" style="margin: 5px 0">-->
184
+ <!-- <labe class="righttxt">表&ensp;位&ensp;置:</labe>-->
185
+ <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>&ndash;&gt;-->
186
+ <!-- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"-->
187
+ <!-- v-model="userinfo.meterinfo[0].f_position"-->
188
+ <!-- placeholder='请选择'-->
189
+ <!-- :width='wid'-->
190
+ <!-- readonly-->
191
+ <!-- :options="wz_types"-->
192
+ <!-- close-on-select value-single></v-select>-->
193
+ <!-- </div>-->
194
+ <!-- <div class="row auto" style="margin: 5px 0">-->
195
+ <!-- <div style="display: flex;justify-content: center;">-->
196
+ <!-- <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>-->
197
+ <!-- </div>-->
198
+ <!-- </div>-->
199
+ <!-- </div>-->
200
+ <!-- </div>-->
201
+ <div class="panel auto">
202
+ <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
203
+
204
+ <span class="spanboder"><img src="../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
205
+ class="butt3" :src="imgback('设备信息')"></span>
206
+ </div>
207
+ <div class="panel-body" v-show="headername=='设备信息'">
208
+ <div class="row" v-for="row in model"
209
+ style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
210
+ <div class="row auto" style="margin: 5px 0">
211
+ <labe class="righttxt">设备类型:</labe>
212
+ <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
213
+ <v-select class="rightipt" :value.sync="row.f_devices_type"
214
+ v-model="row.f_devices_type"
215
+ placeholder='请选择'
216
+ :width='wid'
217
+ readonly
218
+ :options="devices_types"
219
+ close-on-select value-single></v-select>
220
+ </div>
221
+ <div class="row auto" style="margin: 5px 0">
222
+ <labe class="righttxt">设备品牌:</labe>
223
+ <input type="text" class="form-control rightipt" v-model="row.f_brand"/>
224
+ </div>
225
+ <div class="row auto" style="margin: 5px 0">
226
+ <labe class="righttxt">设备型号:</labe>
227
+ <input type="text" class="form-control rightipt" v-model="row.f_devices_model"/>
228
+ </div>
229
+ <!-- <div class="row auto" style="margin: 5px 0">-->
230
+ <!-- <labe class="righttxt">设备功率:</labe>-->
231
+ <!-- <input type="text" class="form-control rightipt" v-model="row.f_device_power"/>-->
232
+ <!-- </div>-->
233
+ <div class="row auto" style="margin: 5px 0">
234
+ <labe class="righttxt">生产日期:</labe>
235
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
236
+ <datepicker class="rightipt"
237
+ :value.sync="row.f_make_date"
238
+ v-model="row.f_make_date"
239
+ :disabled-days-of-Week="[]"
240
+ :format="'yyyy-MM-dd'"
241
+ :show-reset-button="reset" readonly="readonly">
242
+ </datepicker>
243
+ </div>
244
+ <div class="row auto" style="margin: 5px 0">
245
+ <labe class="righttxt">使用年限:</labe>
246
+ <input type="number" class="form-control rightipt" v-model="row.f_service_life"/>
247
+ </div>
248
+ <div class="row auto" style="margin: 5px 0">
249
+ <labe class="righttxt">到期日期:</labe>
250
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />-->
251
+ <datepicker class="rightipt"
252
+ :value.sync="row.f_expire_date"
253
+ v-model="row.f_expire_date"
254
+ :disabled-days-of-Week="[]"
255
+ :format="'yyyy-MM-dd'"
256
+ :show-reset-button="reset" readonly="readonly">
257
+ </datepicker>
258
+ </div>
259
+ <div class="row auto" style="margin: 5px 0">
260
+ <labe class="righttxt">安&ensp;装&ensp;人:</labe>
261
+ <input type="text" class="form-control rightipt" v-model="row.f_input_person"/>
262
+ </div>
263
+ <div class="row auto" style="margin: 5px 0">
264
+ <labe class="righttxt">安装日期:</labe>
265
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
266
+ <datepicker class="rightipt"
267
+ :value.sync="row.f_input_date"
268
+ v-model="row.f_input_date"
269
+ :disabled-days-of-Week="[]"
270
+ :format="'yyyy-MM-dd'"
271
+ :show-reset-button="reset" readonly="readonly">
272
+ </datepicker>
273
+ </div>
274
+ <div class="row auto" style="margin: 5px 0">
275
+ <labe class="righttxt">设备数量:</labe>
276
+ <input type="number" class="form-control rightipt" v-model="row.f_devices_num"/>
277
+ </div>
278
+ <div class="row auto" style="margin: 5px 0">
279
+ <labe class="righttxt">有无不锈钢波纹管:</labe>
280
+ <!-- <input type="text" class="form-control rightipt" v-model="row.f_pipe_type"/>-->
281
+ <v-select class="rightipt" :value.sync="row.f_pipe_type"
282
+ v-model="row.f_pipe_type"
283
+ placeholder='请选择'
284
+ :width='wid'
285
+ readonly
286
+ :options="pipetypes"
287
+ close-on-select value-single></v-select>
288
+ </div>
289
+ <!-- <div class="row auto" style="margin: 5px 0">-->
290
+ <!-- <labe class="righttxt">管道数量:</labe>-->
291
+ <!-- <input type="text" class="form-control rightipt" v-model="row.f_pipe_num"/>-->
292
+ <!-- </div>-->
293
+ <!-- <div class="row auto" style="margin: 5px 0">-->
294
+ <!-- <labe class="righttxt">管道安装日期:</labe>-->
295
+ <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_make_date" />&ndash;&gt;-->
296
+ <!-- <datepicker class="rightipt"-->
297
+ <!-- :value.sync="row.f_pipeinstall_date"-->
298
+ <!-- v-model="row.f_pipeinstall_date"-->
299
+ <!-- :disabled-days-of-Week="[]"-->
300
+ <!-- :format="'yyyy-MM-dd'"-->
301
+ <!-- :show-reset-button="reset" readonly="readonly">-->
302
+ <!-- </datepicker>-->
303
+ <!-- </div>-->
304
+ <!-- <div class="row auto" style="margin: 5px 0">-->
305
+ <!-- <labe class="righttxt">管道到期日期:</labe>-->
306
+ <!-- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_make_date" />&ndash;&gt;-->
307
+ <!-- <datepicker class="rightipt"-->
308
+ <!-- :value.sync="row.f_pipeexpire_date"-->
309
+ <!-- v-model="row.f_pipeexpire_date"-->
310
+ <!-- :disabled-days-of-Week="[]"-->
311
+ <!-- :format="'yyyy-MM-dd'"-->
312
+ <!-- :show-reset-button="reset" readonly="readonly">-->
313
+ <!-- </datepicker>-->
314
+ <!-- </div>-->
315
+ <!-- <div class="row auto" style="margin: 5px 0">-->
316
+ <!-- <labe class="righttxt">有无自闭阀:</labe>-->
317
+ <!-- &lt;!&ndash; <input type="text" class="form-control rightipt" v-model="row.f_is_zibifa" />&ndash;&gt;-->
318
+ <!-- <v-select class="rightipt" :value.sync="row.f_is_zibifa"-->
319
+ <!-- v-model="row.f_is_zibifa"-->
320
+ <!-- placeholder='请选择'-->
321
+ <!-- :width='wid'-->
322
+ <!-- :options="is_zibifa"-->
323
+ <!-- close-on-select value-single></v-select>-->
324
+ <!-- </div>-->
325
+ <!-- <div class="row auto" style="margin: 5px 0">-->
326
+ <!-- <labe class="righttxt">自闭阀数量:</labe>-->
327
+ <!-- <input type="text" class="form-control rightipt" v-model="row.f_zibifa_num"/>-->
328
+ <!-- </div>-->
329
+ <!--<div class="row auto" style="margin: 5px 0">
330
+ <labe class="righttxt">设备状态:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
331
+ </div>-->
332
+ <!--<div class="row auto" style="margin: 5px 0">
333
+ <labe class="righttxt">购买方式:</labe><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
334
+ </div>-->
335
+ <div style="display: flex;justify-content: center;margin-bottom: 3px"
336
+ v-if="$index>this.userinfo_old.devicesinfo.length-1 || this.userinfo_old.devicesinfo.length==0">
337
+ <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
338
+ </div>
339
+ </div>
340
+ <div style="display: flex;justify-content: space-around;">
341
+ <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
342
+ </div>
343
+ </div>
344
+ </div>
345
+ <div class="panel auto">
346
+ <div class="panel-body">
347
+ <div style="display: flex;justify-content: center;">
348
+ <button class="col-sm-3 btn btn-primary" :disabled="enable" @click="editUserInfo()">上传</button>
349
+ </div>
350
+ </div>
351
+ </div>
352
+ </div>
353
+ </template>
354
+
355
+ <script>
356
+ import {HttpResetClass} from 'vue-client'
357
+ import * as Util from '../../components/Util'
358
+ import Vue from 'vue'
359
+
360
+ export default {
361
+ title: '设备查看',
362
+ data() {
363
+ return {
364
+ model: [],
365
+ show: false,
366
+ row: Object,
367
+ userinfo: Object,
368
+ userinfo_old: Object,
369
+ wid: "60%",
370
+ devices_types: [],
371
+ pipe_types: this.$appdata.getParam('管道类型'),
372
+ pipetypes: [{label: '有', value: '不锈钢波纹管'}, {label: '无', value: ''}],
373
+ wz_types: [],
374
+ qb_types: Vue.$appdata.getParam('表类型'),
375
+ cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
376
+ is_zibifa: this.$appdata.getParam('有无自闭阀'),
377
+ pcds: [],
378
+ streets: [],
379
+ update: false,
380
+ headername: '设备信息',
381
+ excessive: false,
382
+ area: [],
383
+ enable: false,
384
+ f_meterno_path: Vue.nopic,
385
+ selectArea: {id: ''},
386
+ selectPcd: {id: ''},
387
+ selectStreet: {id: ''},
388
+ changemeterno: false,//是否修改了机表表号
389
+ approveChange: false,//是否需要进行信息变更审核
390
+ newAddress: '',
391
+ addressType: '',
392
+ //需要审核的字段
393
+ checkField: {
394
+ checkUserinfoField: [
395
+ 'f_user_name'
396
+ ],
397
+ checkUserFilesField: [
398
+ 'f_meternumber'
399
+ ],
400
+ checkAddressField: [
401
+ 'f_pcd_id',
402
+ 'f_street_id',
403
+ 'f_residential_area_id',
404
+ 'f_building',
405
+ 'f_unit',
406
+ 'f_floor',
407
+ 'f_room',
408
+ 'f_slice_area',
409
+ 'f_special',
410
+ 'f_address'
411
+ ],
412
+ }
413
+ }
414
+ },
415
+ props: {
416
+ user: {
417
+ type: Object
418
+ },
419
+ f_userinfo_id: {
420
+ type: String
421
+ },
422
+ f_source: {
423
+ type: String
424
+ }
425
+ },
426
+ methods: {
427
+ // scan(){
428
+ // HostApp.__this__=this,
429
+ // HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
430
+ // },
431
+ // getCode(){
432
+ // var datapa = HostApp.getCode().data;
433
+ // //tag
434
+ // this.userinfo.meterinfo[0].f_meternumber=datapa
435
+ // },
436
+ //数据检查
437
+ // checkVal(){
438
+ // //检查一些必要信息是否未填
439
+ // this.approveChange=false
440
+ // this.changemeterno=false
441
+ // let checked={ischeck:true,msg:''}
442
+ // //tag
443
+ // //tag
444
+ // //tag
445
+ // if(!this.userinfo.baseinfo.base.f_user_name){
446
+ // checked={ischeck:false,msg:'请输入用户名称!'}
447
+ // }
448
+ // if(!this.selectPcd.id){
449
+ // checked={ischeck:false,msg:'请选择省市区!'}
450
+ // }
451
+ // if(!this.selectStreet.id){
452
+ // checked={ischeck:false,msg:'请选择街道!'}
453
+ // }
454
+ // if(!this.userinfo.addressinfo.f_address){
455
+ // checked={ischeck:false,msg:'新地址不能为空!'}
456
+ // }
457
+ // if(this.addressType=='普通地址'){
458
+ // if(!this.selectArea.id){
459
+ // checked={ischeck:false,msg:'请选择集收单位!'}
460
+ // }
461
+ // if(!this.userinfo.addressinfo.f_room){
462
+ // checked={ischeck:false,msg:'新输入门牌号!'}
463
+ // }
464
+ // }
465
+ // if(this.userinfo.meterinfo[0].f_meter_classify=='机表' && this.userinfo_old.meterinfo[0].f_meternumber){
466
+ //
467
+ // //tag
468
+ // //tag
469
+ // if(this.userinfo.meterinfo[0].f_meternumber){
470
+ // if(this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber){
471
+ // if(!this.f_meterno_path || this.f_meterno_path==Vue.nopic){
472
+ // checked={ischeck:false,msg:'请拍摄表号照片!'}
473
+ // }else{
474
+ // //用来标识当前有修改机表表号,后台需要进行照片上传
475
+ // this.changemeterno=true
476
+ // }
477
+ // }
478
+ // }else{
479
+ // checked={ischeck:false,msg:'请输入表号!'}
480
+ // }
481
+ // }
482
+ // //检查本次修改信息中是否包含需要审核的内容
483
+ // for(let check in this.checkField){
484
+ // //tag
485
+ // if(typeof check!='function'){
486
+ // for(let i = 0;i < this.checkField[check].length;i++){
487
+ // //tag
488
+ // if(check=='checkUserinfoField'){
489
+ // //tag
490
+ // //tag
491
+ // if(this.userinfo.baseinfo.base[this.checkField[check][i]]!=this.userinfo_old.baseinfo.base[this.checkField[check][i]]){
492
+ // //tag
493
+ // this.approveChange=true
494
+ // }
495
+ // }else if(check=='checkUserFilesField'){
496
+ // //tag
497
+ // //tag
498
+ // if(this.userinfo.meterinfo[0][this.checkField[check][i]]!=this.userinfo_old.meterinfo[0][this.checkField[check][i]]){
499
+ // //tag
500
+ // this.approveChange=true
501
+ // }
502
+ // }else if(check=='checkAddressField'){
503
+ // //tag
504
+ // //tag
505
+ // if(this.userinfo.addressinfo[this.checkField[check][i]]!=this.userinfo_old.addressinfo[this.checkField[check][i]]){
506
+ // //tag
507
+ // this.approveChange=true
508
+ // }
509
+ // }
510
+ // }
511
+ // }
512
+ // }
513
+ // //tag
514
+ // return checked
515
+ // },
516
+ // select_search(text){
517
+ // //tag
518
+ // if(this.selectStreet.id){
519
+ // let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
520
+ // new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
521
+ // //tag)
522
+ // if(res.data.length>0){
523
+ // this.area=[]
524
+ // res.data.forEach((result)=>{
525
+ // this.area.push({label:result.f_residential_area,value:result})
526
+ // })
527
+ // }
528
+ // })
529
+ // }else{
530
+ // this.area=[]
531
+ // }
532
+ // },
533
+ cameraCallBack(prop, fileName) {
534
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
535
+ //tag
536
+ HostApp.__callback__ = null
537
+ HostApp.__this__ = null
538
+ },
539
+ takePic(prop, title) {
540
+ HostApp.__callback__ = this.cameraCallBack
541
+ HostApp.__this__ = this
542
+ //tag
543
+ let fileName
544
+ if (!this[prop] || this[prop].includes("nopic.png")) {
545
+ fileName = Util.guid() + '-' + prop + '.jpg'
546
+ } else {
547
+ fileName = Util.getFileName(this[prop])
548
+ }
549
+ HostApp._open_a_page({
550
+ type: 'boomerang',
551
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
552
+ param: {
553
+ file: fileName,
554
+ requestCode: 111,
555
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
556
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
557
+ }
558
+ })
559
+ },
560
+ delfile(prop, fileName) {
561
+ if (fileName == Vue.nopic)
562
+ return
563
+ else {
564
+ HostApp.delfile(fileName)
565
+ this[prop] = Vue.nopic
566
+ }
567
+ },
568
+ editUserInfo() {
569
+ // let checked=this.checkVal()
570
+ // if(!checked.ischeck){
571
+ // this.$showMessage(checked.msg)
572
+ // return
573
+ // }
574
+ for (let i = 0; i < this.model.length; i++) {
575
+ this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
576
+ }
577
+ this.$showMessage('确定是否修改上传设备信息?', ['confirm', 'cancel']).then((res) => {
578
+ if (res === 'confirm') {
579
+ this.excessive = true
580
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
581
+ //userinfoms.f_user_name=row.f_user_name
582
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
583
+ userinfoms.f_rent_phone = this.userinfo.baseinfo.base.f_rent_phone
584
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
585
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
586
+ userinfoms.f_operator_record = Vue.user.name
587
+ userinfoms.f_operatorid_record = Vue.user.id
588
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
589
+ userinfoms.f_orgid_record = Vue.user.orgid
590
+ userinfoms.f_orgname_record = Vue.user.orgs
591
+ userinfoms.f_depid_record = Vue.user.depids
592
+ userinfoms.f_depname_record = Vue.user.deps
593
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
594
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
595
+ userinfoms.userfiles = []
596
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
597
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
598
+ //tag)
599
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
600
+ data: {
601
+ userinfo: userinfoms,
602
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
603
+ address: {
604
+ id: this.userinfo_old.addressinfo.id,
605
+ oldid: this.userinfo_old.addressinfo.id,
606
+ f_address: this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
607
+ }
608
+ }
609
+ }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
610
+ //tag+res1.data.status)
611
+ if (res1.data.status == 200) {
612
+ //本次修改信息包含需要审核信息
613
+ if (false) {
614
+ //tag
615
+ let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
616
+ row: {
617
+ f_time: Util.toStandardTimeString(),
618
+ f_modifier: Vue.user.name,//Vue.user.name
619
+ f_modifier_id: Vue.user.id,//Vue.user.id
620
+ f_modify_type: '用户档案',
621
+ f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
622
+ f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
623
+ f_approved: '未审核',
624
+ filialestr: Vue.user.orgid,//Vue.user.orgid
625
+ version: 1,
626
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
627
+ f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
628
+ f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
629
+ f_street: this.userinfo.addressinfo.f_street,
630
+ f_building: this.userinfo.addressinfo.f_building,
631
+ f_unit: this.userinfo.addressinfo.f_unit,
632
+ f_floor: this.userinfo.addressinfo.f_floor,
633
+ f_room: this.userinfo.addressinfo.f_room,
634
+ f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
635
+ f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
636
+ f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
637
+ f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
638
+ f_residential_area: this.userinfo.addressinfo.f_residential_area,
639
+ f_address: this.userinfo.addressinfo.f_address,
640
+ f_pcd: this.userinfo.addressinfo.f_pcd,
641
+ f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
642
+ f_street_id: this.userinfo.addressinfo.f_street_id,
643
+ f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
644
+ f_used_name: this.userinfo.baseinfo.base.f_used_name,
645
+ f_slice_area: this.userinfo.addressinfo.f_slice_area,
646
+ f_remark: this.userinfo.baseinfo.base.f_remark,
647
+ f_source: this.f_source,
648
+ f_meterno_path: this.f_meterno_path,
649
+ f_iscity: this.userinfo.addressinfo.f_iscity,
650
+ f_special: this.userinfo.addressinfo.f_special,
651
+ f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
652
+ changemeterno: this.changemeterno
653
+ },
654
+ tablename: 't_modify_userinfo'
655
+ })
656
+ //tag)
657
+ if (res2.code == 200) {
658
+ this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
659
+ this.enable = true
660
+ this.excessive = false
661
+ } else {
662
+ this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
663
+ this.excessive = false
664
+ }
665
+ } else {
666
+ this.$showMessage("修改用户信息成功!")
667
+ this.enable = true
668
+ this.excessive = false
669
+ }
670
+
671
+ }
672
+ }).catch((msg) => {
673
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
674
+ this.excessive = false
675
+ })
676
+
677
+ }
678
+ })
679
+ },
680
+ imgback(header) {
681
+ if (this.headername == header) {
682
+ return require('../../assets/xiangxia1.png')
683
+ } else {
684
+ return require('../../assets/xiangyou1.png')
685
+ }
686
+ this.headername = header
687
+ },
688
+ selectVal(header) {
689
+ if (this.headername == header) {
690
+ this.headername = ''
691
+ } else {
692
+ this.headername = header
693
+ }
694
+
695
+ },
696
+ // changeNewAddress(){
697
+ // this.userinfo.addressinfo.f_address=this.addressType=='普通地址'?this.getAddress:this.getAddressTS
698
+ // },
699
+ // area_change(){
700
+ // //tag
701
+ // this.userinfo.addressinfo.f_residential_area=this.selectArea.f_residential_area
702
+ // this.userinfo.addressinfo.f_residential_area_id=this.selectArea.id
703
+ // this.userinfo.addressinfo.f_slice_area=this.selectArea.f_slice_area
704
+ // this.changeNewAddress()
705
+ // //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
706
+ // },
707
+ // async street_change(){
708
+ // //tag
709
+ // if(this.selectStreet.id){
710
+ // //如果街道改变--给街道赋值!
711
+ // this.userinfo.addressinfo.f_street=this.selectStreet.f_street
712
+ // this.userinfo.addressinfo.f_street_id=this.selectStreet.id
713
+ // this.userinfo.addressinfo.f_iscity=this.selectStreet.f_iscity
714
+ // //清空当前选中小区的值
715
+ // this.userinfo.addressinfo.f_residential_area=''
716
+ // this.userinfo.addressinfo.f_residential_area_id=''
717
+ // this.userinfo.addressinfo.f_slice_area=''
718
+ // this.selectArea={id:''}
719
+ // this.area=[]
720
+ // let pcdText=` and f_street_id=${this.selectStreet.id}`
721
+ // let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null})
722
+ // ////tag)
723
+ // res.data.forEach((result)=>{
724
+ // this.area.push({label:result.f_residential_area,value:result})
725
+ // })
726
+ // }else{
727
+ // this.area=[]
728
+ // }
729
+ //
730
+ // this.changeNewAddress()
731
+ // },
732
+ // async pcd_change(){
733
+ // //tag
734
+ // if(this.selectPcd.id){
735
+ // //tag
736
+ // //如果省市区改变-重新赋值
737
+ // this.userinfo.addressinfo.f_pcd=this.selectPcd.f_pcd
738
+ // this.userinfo.addressinfo.f_pcd_id=this.selectPcd.id
739
+ // //清空 选中的街道和集收单位
740
+ // this.selectStreet={id:''}
741
+ // this.userinfo.addressinfo.f_street=''
742
+ // this.userinfo.addressinfo.f_street_id=''
743
+ // this.userinfo.addressinfo.f_iscity=''
744
+ // this.selectArea={id:''}
745
+ // this.userinfo.addressinfo.f_residential_area=''
746
+ // this.userinfo.addressinfo.f_residential_area_id=''
747
+ // this.userinfo.addressinfo.f_slice_area=''
748
+ // this.streets=[]
749
+ // let pcdText=`and f_pcd_id=${this.selectPcd.id}`
750
+ // let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
751
+ // streetlist.data.forEach((result)=>{
752
+ // this.streets.push({label:result.f_street,value:result})
753
+ // })
754
+ // }else{
755
+ // this.streets=[]
756
+ // }
757
+ // this.changeNewAddress()
758
+ // },
759
+ // upUserState(){
760
+ // //tag)
761
+ // if(this.userinfo.meterinfo[0].f_table_state=='正常'){
762
+ // let data = {
763
+ // f_userfiles_id: {
764
+ // f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
765
+ // f_table_state: '停用',
766
+ // version: this.userinfo.meterinfo[0].version
767
+ // },
768
+ // f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
769
+ // f_user_id: this.userinfo.meterinfo[0].f_user_id,
770
+ // f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
771
+ // f_user_name: this.userinfo.baseinfo.base.f_user_name,
772
+ // f_comments: '安检时发现问题关闭阀门',
773
+ // f_othereason:'',
774
+ // f_operat_type: '停用',
775
+ // f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
776
+ // f_state: '有效',
777
+ // f_operator: Vue.user.name,//${Vue.$login.f.name}
778
+ // f_operatorid: Vue.user.id,
779
+ // f_orgid: Vue.user.orgid,
780
+ // f_orgname: Vue.user.orgs,
781
+ // f_depid: Vue.user.depids,
782
+ // f_depname: Vue.user.deps,
783
+ // f_zoneid: Vue.user.zoneid,
784
+ // f_zones: Vue.user.zones
785
+ // }
786
+ // new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
787
+ // data, {resolveMsg: null, rejectMsg: null}).then((row) => {
788
+ // this.$showMessage('已成功关阀停气!')
789
+ // this.userinfo.meterinfo[0].f_table_state='停用'
790
+ // })
791
+ // }else{
792
+ // this.$showMessage('该用户已被关阀停用,请勿重复操作!')
793
+ // }
794
+ //
795
+ // },
796
+ addDevices() {
797
+ //Vue.user.name
798
+ let obj = {
799
+ "f_operator": Vue.user.name,
800
+ "f_picture": null,
801
+ "f_pipe_type": null,
802
+ "f_pipeinstall_date": null,
803
+ "f_pipe_connection": null,
804
+ "f_expire_date": null,
805
+ "f_pipeexpire_date": null,
806
+ "f_comments": null,
807
+ "f_operate_date": Util.toStandardTimeString(),
808
+ "f_operatorid": Vue.user.id,
809
+ "f_devices_num": null,
810
+ "f_process_id": null,
811
+ "f_devices_type": null,
812
+ "f_make_date": null,
813
+ "f_input_date": null,
814
+ "f_state": "有效",
815
+ "f_brand": null,
816
+ "f_devices_model": null,
817
+ "f_device_power": null,
818
+ "f_devices_no": null,
819
+ "img": {"content": null, "filename": null}
820
+ }
821
+ this.model.push(obj)
822
+ },
823
+ delDevices(idx) {
824
+ //tag
825
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
826
+ if (res === 'confirm') {
827
+ this.model.splice(idx, 1)
828
+ }
829
+ })
830
+ },
831
+ // async getAreaList(text){
832
+ // if(this.selectStreet.id){
833
+ // this.area=[]
834
+ // let pcdText=text?`and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'`:`and f_street_id=${this.selectStreet.id}`
835
+ // let res= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
836
+ // ////tag)
837
+ // res.data.forEach((result)=>{
838
+ // this.area.push({label:result.f_residential_area,value:result})
839
+ // })
840
+ // //tag
841
+ // this.area.push({label:this.userinfo.addressinfo.f_residential_area,value:{id:this.userinfo.addressinfo.f_residential_area_id,f_residential_area:this.userinfo.addressinfo.f_residential_area}})
842
+ // }else{
843
+ // this.area=[]
844
+ // }
845
+ //
846
+ // },
847
+ // async getStreetList(){
848
+ // if(this.selectPcd.id){
849
+ // //tag
850
+ // this.streets=[]
851
+ // let pcdText=`and f_pcd_id=${this.selectPcd.id}`
852
+ // let streetlist= await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${Vue.user.orgid}' ${pcdText}`}}, {resolveMsg: null, rejectMsg: null})
853
+ // streetlist.data.forEach((result)=>{
854
+ // //如果第一次进来有地址id 就拿下地址区域
855
+ // if(this.selectStreet.id && this.selectStreet.id==result.id){
856
+ // //tag)
857
+ // this.userinfo.addressinfo.f_iscity=result.f_iscity
858
+ // }
859
+ // this.streets.push({label:result.f_street,value:result})
860
+ // })
861
+ // }else{
862
+ // this.streets=[]
863
+ // }
864
+ // },
865
+ // changeAddressType (val) {
866
+ // //tag
867
+ // if(this.addressType=='普通地址'){
868
+ // this.userinfo.addressinfo.f_special=null
869
+ // }else if(this.addressType=='特殊地址'){
870
+ // this.userinfo.addressinfo.f_special=1
871
+ // this.userinfo.addressinfo.f_building=null
872
+ // this.userinfo.addressinfo.f_unit=null
873
+ // this.userinfo.addressinfo.f_floor=null
874
+ // this.userinfo.addressinfo.f_room=null
875
+ // }
876
+ // this.changeNewAddress()
877
+ // }
878
+
879
+ },
880
+ computed: {
881
+ // getAddress(){
882
+ // return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
883
+ // (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
884
+ // (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')+
885
+ // (this.userinfo.addressinfo.f_building?this.userinfo.addressinfo.f_building+(this.userinfo.addressinfo.f_building_suffix?this.userinfo.addressinfo.f_building_suffix:''):'')+
886
+ // (this.userinfo.addressinfo.f_unit?this.userinfo.addressinfo.f_unit+(this.userinfo.addressinfo.f_unit_suffix?this.userinfo.addressinfo.f_unit_suffix:''):'')+
887
+ // (this.userinfo.addressinfo.f_floor?this.userinfo.addressinfo.f_floor+(this.userinfo.addressinfo.f_floor_suffix?this.userinfo.addressinfo.f_floor_suffix:''):'')+
888
+ // (this.userinfo.addressinfo.f_room?this.userinfo.addressinfo.f_room+(this.userinfo.addressinfo.f_room_suffix?this.userinfo.addressinfo.f_room_suffix:''):'')
889
+ // },
890
+ // getAddressTS(){
891
+ // return (this.userinfo.addressinfo.f_pcd?this.userinfo.addressinfo.f_pcd:'')+
892
+ // (this.userinfo.addressinfo.f_street?this.userinfo.addressinfo.f_street:'')+
893
+ // (this.userinfo.addressinfo.f_residential_area?this.userinfo.addressinfo.f_residential_area:'')
894
+ // }
895
+ },
896
+ watch: {
897
+
898
+ /*'selectPcd.id' (val) {
899
+ //tag
900
+ if(this.selectPcd.id){
901
+ this.getStreetList()
902
+ }
903
+ },
904
+ 'selectStreet.id' (val) {
905
+ //tag
906
+ if(this.selectStreet.id){
907
+ this.getAreaList()
908
+ }
909
+ }*/
910
+ },
911
+ async ready() {
912
+
913
+ if (!this.f_userinfo_id) {
914
+ this.$showMessage("未检测到用户!")
915
+ this.enable = true
916
+ return
917
+ }
918
+ try {
919
+ this.devices_types = Vue.$appdata.getParam('设备类型')
920
+ this.wz_types = Vue.$appdata.getParam('安装位置')
921
+ this.excessive = true
922
+ let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
923
+ data: {
924
+ items: "*",
925
+ tablename: "t_pcd",
926
+ orderitem: "id",
927
+ condition: `f_orgid = '${Vue.user.orgid}'`
928
+ }
929
+ }, {resolveMsg: null, rejectMsg: null})
930
+ //tag)
931
+ pcdlist.data.forEach((result) => {
932
+ this.pcds.push({label: result.f_pcd, value: result})
933
+ })
934
+ ////tag)
935
+ let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
936
+ //f_userinfo_code:'12381344',
937
+ f_userinfo_id: this.f_userinfo_id
938
+ }, {resolveMsg: null, rejectMsg: null})
939
+ //tag
940
+ //tag
941
+ this.userinfo = res.data
942
+ this.userinfo_old = JSON.parse(JSON.stringify(res.data))
943
+ this.model = this.userinfo.meterinfo[0].devicesinfo
944
+ this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
945
+ this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
946
+ this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
947
+ this.selectStreet.id = this.userinfo.addressinfo.f_street_id
948
+ this.selectStreet.f_street = this.userinfo.addressinfo.f_street
949
+ await this.getStreetList()
950
+ await this.getAreaList()
951
+ this.excessive = false
952
+ this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
953
+ //this.userinfo.addressinfo.f_special=1
954
+ //tag
955
+ } catch (e) {
956
+ this.excessive = false
957
+ }
958
+ new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, {data: {}}, {
959
+ resolveMsg: null,
960
+ rejectMsg: null
961
+ }).then((addressUnit) => {
962
+ this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
963
+ this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
964
+ this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
965
+ this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
966
+ }).catch((msg) => {
967
+ })
968
+ }
969
+ }
970
+ </script>
971
+ <style lang="less" scoped>
972
+ .butt3 {
973
+ float: right;
974
+ width: 12px;
975
+ margin: 1% 2% 0 0;
976
+ }
977
+
978
+ .rightipt {
979
+ width: 60%;
980
+ float: left;
981
+ margin-left: 5%;
982
+ }
983
+
984
+ .righttxt {
985
+ border: none;
986
+ margin-left: 5px;
987
+ /*border-left: 5px solid #A2C2EB;*/
988
+ float: left;
989
+ width: 25%;
990
+ margin-bottom: 3px;
991
+ text-align: left;
992
+ word-wrap: break-word;
993
+ white-space: normal;
994
+ }
995
+
996
+ .tit1 {
997
+ background-image: url('../../assets/用户姓名.png');
998
+ background-repeat: no-repeat;
999
+ background-position: center;
1000
+ }
1001
+
1002
+ .spanboder {
1003
+ border-bottom: 2px solid #499edf;
1004
+ padding-bottom: 8px
1005
+ }
1006
+
1007
+ #upuserinfo_sel /deep/ ul {
1008
+ width: 100% !important;
1009
+ left: 0 !important;
1010
+ }
1011
+
1012
+ .btn-photo {
1013
+ border: 0;
1014
+ border-radius: 7px;
1015
+ background-color: #7dc1f4;
1016
+ font: 15px PingFang-SC-Bold;
1017
+ height: 20%;
1018
+ }
1019
+
1020
+ .panel-self {
1021
+ border-radius: 10px;
1022
+ border: 1px solid #499EDF;
1023
+ background-color: #F8F8F8;
1024
+ }
1025
+
1026
+ .div-photo {
1027
+ width: auto;
1028
+ height: auto;
1029
+ /* margin-top: 10px; */
1030
+ position: absolute;
1031
+ bottom: 10px;
1032
+ right: 10px;
1033
+ }
1034
+ </style>
1035
+ <style lang="less">
1036
+ #upuserinfo_sel ul {
1037
+ width: 100% !important;
1038
+ left: 0 !important;
1039
+ }
1040
+ </style>