safecheck-client 3.0.30-62-t10 → 3.0.30-62-t12

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 (246) hide show
  1. package/examples/SafePlan/comp.js +1527 -1527
  2. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  3. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  4. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  5. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  6. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  7. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  8. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  9. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  10. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  11. package/package.json +1 -1
  12. package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
  13. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  14. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  15. package/src/components/checkplan/CheckDetail.vue +205 -205
  16. package/src/components/checkplan/SelectCheckPlan.vue +311 -311
  17. package/src/components/createcheckplan/PlanUersList.vue +137 -137
  18. package/src/components/defect/DefectPaper.vue +764 -764
  19. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  20. package/src/components/inspections/InspectionList.vue +476 -476
  21. package/src/components/inspections/InspectionLists.vue +478 -478
  22. package/src/components/inspections/InspectionListss.vue +477 -477
  23. package/src/components/noplan/NoPlanSearchUser.vue +300 -300
  24. package/src/components/olddata/OldPaperList.vue +340 -340
  25. package/src/components/paper/PaperList.vue +790 -790
  26. package/src/components/paper/filialeCheckInfo.vue +111 -111
  27. package/src/components/pc/CheckNoDetail.vue +209 -209
  28. package/src/components/pc/DefectDeal.vue +997 -997
  29. package/src/components/pc/NewCheckpaper.vue +16 -60
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +879 -866
  32. package/src/components/pc/PaperEdit.vue +151 -151
  33. package/src/components/pc/PaperVisitMain.vue +179 -179
  34. package/src/components/pc/SafeVisitHistory.vue +208 -208
  35. package/src/components/pc/SafecheckDeviceList.vue +260 -260
  36. package/src/components/pc/SecurityCheckLedger.vue +133 -133
  37. package/src/components/pc/SelectCheckNoPlan.vue +278 -278
  38. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
  39. package/src/components/planmanage/checkPlanList.vue +369 -369
  40. package/src/components/planmanage/checkUserList.vue +773 -773
  41. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  42. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  43. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  44. package/src/components/report/CheckPlanAreaList.vue +505 -505
  45. package/src/components/report/CheckPlanUserList.vue +216 -216
  46. package/src/components/report/NoCheckplanSafecheck.vue +212 -212
  47. package/src/components/rongcheng/CheckSearchArea.vue +703 -703
  48. package/src/components/rongcheng/CheckSearchUser.vue +936 -936
  49. package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
  50. package/src/components/rongcheng/CheckUserList.vue +205 -205
  51. package/src/components/rongcheng/DefectPaper.vue +676 -676
  52. package/src/components/rongcheng/PaperListAJ.vue +434 -434
  53. package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
  54. package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
  55. package/src/components/rongcheng/PaperListSQ.vue +444 -444
  56. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
  57. package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
  58. package/src/components/safecheckNew/PaperList.vue +785 -785
  59. package/src/components/shaoguan/DefectPaper.vue +217 -217
  60. package/src/components/shaoguan/PaperList.vue +466 -466
  61. package/src/components/userfile/UserInfoAudit.vue +316 -316
  62. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  63. package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
  64. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  65. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
  66. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  67. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  68. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
  69. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  70. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
  71. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  72. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  73. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  74. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  75. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  76. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1376 -1376
  77. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  78. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  79. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  80. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  81. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  82. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  83. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  84. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  85. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  86. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  87. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  88. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  89. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  90. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  91. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  92. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  93. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  94. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  95. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  96. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  97. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  98. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  99. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  100. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  101. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  102. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  103. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  104. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  105. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  106. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  107. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  108. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  109. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  110. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  111. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  112. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  113. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  114. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  115. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  116. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  117. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  118. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  119. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  120. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  121. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  122. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  123. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  124. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  125. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  126. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  127. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  128. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  129. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  130. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  131. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  132. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  133. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  134. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  135. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  136. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  137. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  138. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  139. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  140. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  141. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  142. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  143. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  144. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  145. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  146. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
  147. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  148. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  149. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  150. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  151. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  152. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  153. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  154. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  155. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  156. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  157. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  158. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  159. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  160. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  161. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  162. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  163. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  164. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  165. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  166. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  167. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  168. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  169. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  170. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  171. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  172. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  173. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  174. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  175. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  176. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  177. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  178. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  179. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  180. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  181. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  182. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  183. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  184. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  185. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  186. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  187. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  188. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  189. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  190. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  191. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  192. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  193. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  194. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  195. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  196. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  197. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  198. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  199. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  200. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  201. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  202. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  203. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  204. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  205. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  206. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  207. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  208. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  209. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  210. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  211. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  212. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  213. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  214. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  215. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  216. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  217. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  218. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  219. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  220. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  221. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  222. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  223. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  224. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  225. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  226. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  227. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  228. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  229. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  230. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  231. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  232. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  233. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  234. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  235. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  236. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  237. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  238. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  239. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  240. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  241. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  242. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  243. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  244. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  245. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  246. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,1376 +1,1376 @@
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
- <label class="righttxt">用户编号:</label>
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
- <label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
18
- v-model="userinfo.baseinfo.base.f_user_name" readonly />
19
- </div>
20
- <div class="row auto" style="margin: 5px 0">
21
- <label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
22
- v-model="userinfo.baseinfo.base.f_user_state" />
23
- </div>
24
- <div class="row auto" style="margin: 5px 0">
25
- <label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
26
- v-model="userinfo.baseinfo.base.f_user_phone" />
27
- </div>
28
- <div class="row auto" style="margin: 5px 0">
29
- <label class="righttxt">备用电话1:</label><input type="text" class="form-control rightipt"
30
- v-model="userphone[0].f_rent_phone" />
31
- </div>
32
- <div class="row auto" style="margin: 5px 0">
33
- <label class="righttxt">备用电话2:</label><input type="text" class="form-control rightipt"
34
- v-model="userphone[1].f_rent_phone" />
35
- </div>
36
- <!-- <div class="row auto" style="margin: 5px 0">
37
- <label class="righttxt">租户姓名:</label><input type="text" class="form-control rightipt"
38
- v-model="userinfo.baseinfo.base.f_rent_name"/>
39
- </div>
40
- <div class="row auto" style="margin: 5px 0">
41
- <label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
42
- v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
43
- </div> -->
44
- <div class="row auto" style="margin: 5px 0">
45
- <label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
46
- v-model="userinfo.baseinfo.base.f_createfile_date" readonly />
47
- </div>
48
- <!-- <div class="row auto" style="margin: 5px 0">
49
- <label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
50
- </div>-->
51
- <div class="row auto" style="margin: 5px 0">
52
- <label class="righttxt">地址类型:</label>
53
- <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
54
- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
55
- id="phone_addressType1" value="普通地址" /><label style="font-weight: normal;padding-left: 2px"
56
- for="phone_addressType1">普通地址</label></div>
57
- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
58
- id="phone_addressType2" value="特殊地址" /><label style="font-weight: normal;padding-left: 2px"
59
- for="phone_addressType2">特殊地址</label></div>
60
- </div>
61
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
62
- <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
63
- <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
64
- :width="'60%'"
65
- v-model="userinfo.addressinfo.f_iscity"
66
- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
67
- </div>
68
- <div class="row auto" style="margin: 5px 0">
69
- <label class="righttxt">地区类型:</label>
70
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
71
- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
72
- <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
73
- :width="'60%'"
74
- :disabled="true"
75
- v-model="userinfo.addressinfo.f_iscity"
76
- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
77
- </div>
78
- <div class="row auto" style="margin: 5px 0">
79
- <label class="righttxt">省&ensp;市&ensp;区:</label>
80
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
81
- <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
82
- <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
83
- v-model="selectPcd" :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
84
- @change="pcd_change()"></v-select>
85
- </div>
86
- <div class="row auto" style="margin: 5px 0">
87
- <label class="righttxt">街道名称:</label>
88
- <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
89
- <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
90
- v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
91
- @change="street_change()"></v-select>
92
- </div>
93
- <div class="row auto" style="margin: 5px 0">
94
- <label class="righttxt">集收单位:</label>
95
- <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
96
- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
97
- v-model="selectArea" :timeout="500" @select-search="select_search" :options='area' placeholder='请选择集收单位'
98
- close-on-select clear-button value-single @change="area_change()"></v-select>
99
- </div>
100
- <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
101
- <label class="righttxt">集收单位:</label>
102
- &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
103
- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
104
- :width="'60%'"
105
- v-model="selectArea"
106
- @select-search="select_search"
107
- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
108
- </div>-->
109
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
110
- <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
111
- class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
112
- </div>
113
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
114
- <label class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
115
- class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
116
- </div>
117
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
118
- <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
119
- class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
120
- </div>
121
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
122
- <label class="righttxt">门&ensp;牌&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
123
- class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
124
- </div>
125
- <div class="row auto" style="margin: 5px 0">
126
- <label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
127
- v-model="userinfo_old.addressinfo.f_address" />
128
- </div>
129
- <div class="row auto" style="margin: 5px 0">
130
- <label class="righttxt">新&ensp;地&ensp;址:</label>
131
- <!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
132
- <textarea :readonly="addressType == '普通地址'" class="form-control rightipt" : style="height: 80px" :disabled="editAddress"
133
- v-model="userinfo.addressinfo.f_address"></textarea>
134
- </div>
135
-
136
- <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
137
- <label class="righttxt">新&ensp;地&ensp;址:</label>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;
138
- <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
139
- </div>-->
140
-
141
- <div class="row auto" style="margin: 5px 0">
142
- <label class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</label><textarea class="form-control rightipt"
143
- style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea>
144
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
145
- </div>
146
- <div class="row auto" style="display: flex;justify-content: center;">
147
- <button class="col-sm-3 btn btn-primary" style="width: max-content" @click="limitClick">限购配置</button>
148
- </div>
149
- </div>
150
- </div>
151
- <div class="panel auto">
152
- <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
153
- <span class="spanboder">
154
- <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
155
- <img class="butt3" :src="imgback('表具信息')">
156
- </span>
157
- </div>
158
- <div class="panel-body " v-show="headername == '表具信息'">
159
- <div class="row auto" style="margin: 5px 0">
160
- <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</label>
161
- <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify != '机表'" class="form-control rightipt"
162
- style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />
163
- <button type="button"
164
- :disabled="!(userinfo.meterinfo[0].f_meter_classify == '机表' || userinfo.meterinfo[0].f_meter_classify == '金额卡表' || userinfo.meterinfo[0].f_meter_classify == '气量卡表')"
165
- name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码
166
- </button>
167
- </div>
168
-
169
- <!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
170
- <div class="auto">
171
- <div class="panel" style="padding: 0px 15px 5px 10px;">
172
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
173
- <div class="row" style="height: 240px;">
174
- <div class="col-sm-4">
175
- <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
176
- </div>
177
- </div>
178
- <div class="row text-right div-photo" :class="style__">
179
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
180
- <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
181
- </div>
182
- </div>
183
- </div>
184
- </div>
185
- </div>-->
186
- <div class="row auto" style="margin: 5px 0">
187
- <label class="righttxt">通&ensp;气&ensp;人:</label>
188
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_gas_person" />
189
- </div>
190
- <div class="row auto" style="margin: 5px 0">
191
- <label class="righttxt">通气时间:</label>
192
- <datepicker class="rightipt" :value.sync="userinfo.meterinfo[0].f_gas_date"
193
- v-model="userinfo.meterinfo[0].f_gas_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'"
194
- :show-reset-button="reset">
195
- </datepicker>
196
- </div>
197
- <div class="row auto" style="margin: 5px 0" v-show="showBox">
198
- <label class="righttxt">调&ensp;压&ensp;箱:</label>
199
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_adjustable_id"
200
- v-model="userinfo.meterinfo[0].f_adjustable_id" placeholder='请选择' :width='wid' readonly
201
- :options="boxOptions" close-on-select value-single></v-select>
202
- </div>
203
- <!-- <div class="row auto" style="margin: 5px 0">
204
- <label class="righttxt">是否直通:</label>
205
- <v-select
206
- :value.sync="userinfo.meterinfo[0].f_if_direct"
207
- class="input-font"
208
- style="margin-left: 5%;"
209
- :width="'60%'"
210
- v-model="userinfo.meterinfo[0].f_if_direct"
211
- :options='directOptions'
212
- placeholder='是否直通'
213
- close-on-select
214
- clear-button
215
- value-single>
216
- </v-select>
217
- </div> -->
218
- <!-- <div class="row auto" style="margin: 5px 0">
219
- <label class="righttxt">表&ensp;封&ensp;号:</label>
220
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"/>
221
- </div> -->
222
- <div class="row auto" style="margin: 5px 0">
223
- <label class="righttxt">表&ensp;位&ensp;置:</label>
224
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
225
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
226
- v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly :options="wz_types"
227
- close-on-select value-single></v-select>
228
- </div>
229
- <div class="row auto" style="margin: 5px 0">
230
- <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;向:</label>
231
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
232
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
233
- v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
234
- :options="aroundmeters" close-on-select value-single></v-select>
235
- </div>
236
- <div class="row auto" style="margin: 5px 0">
237
- <label class="righttxt">气表品牌:</label>
238
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasbrand" readonly />
239
- </div>
240
- <div class="row auto" style="margin: 5px 0">
241
- <label class="righttxt">气表型号:</label>
242
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasmodel" readonly />
243
- </div>
244
- <div class="row auto" style="margin: 5px 0">
245
- <label class="righttxt">气表类型:</label>
246
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly />
247
- </div>
248
- <div class="row auto" style="margin: 5px 0">
249
- <label class="righttxt">表前阀状态:</label>
250
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
251
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_bqf_state"
252
- v-model="userinfo.meterinfo[0].f_bqf_state" placeholder='请选择' :width='wid' readonly :options="bqf_states"
253
- close-on-select value-single></v-select>
254
- </div>
255
- <!-- <div class="row auto" style="margin: 5px 0">
256
- <div style="display: flex;justify-content: center;">
257
- <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
258
- </div>
259
- </div>-->
260
- </div>
261
- </div>
262
- <div class="panel auto">
263
- <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
264
-
265
- <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
266
- class="butt3" :src="imgback('设备信息')"></span>
267
- </div>
268
- <div class="panel-body" v-show="headername == '设备信息'">
269
- <div class="row" v-for="row in model"
270
- style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
271
- <div class="row auto" style="margin: 5px 0">
272
- <label class="righttxt">设备类型:</label>
273
- <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
274
- <v-select class="rightipt" :value.sync="row.f_devices_type" v-model="row.f_devices_type" placeholder='请选择'
275
- :width='wid' readonly :options="devices_types" close-on-select value-single></v-select>
276
- </div>
277
- <div class="row auto" style="margin: 5px 0">
278
- <label class="righttxt">设备品牌:</label>
279
- <input type="text" class="form-control rightipt" v-model="row.f_brand" />
280
- <!-- <v-select class="rightipt" :value.sync="row.f_brand"
281
- v-model="row.f_brand"
282
- placeholder='请选择'
283
- :width='wid'
284
- readonly
285
- :options="deviceBrandOption[row.f_devices_type]"
286
- close-on-select value-single></v-select> -->
287
- </div>
288
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
289
- <label class="righttxt">设备型号:</label>
290
- <input type="text" class="form-control rightipt" v-model="row.f_devices_model" />
291
- </div>
292
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
293
- <label class="righttxt">生产日期:</label>
294
- <!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
295
- <datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
296
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
297
- </datepicker>
298
- </div>
299
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
300
- <label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
301
- v-model="row.f_service_life" />
302
- </div>
303
- <!-- <div class="row auto" style="margin: 5px 0">
304
- <label class="righttxt">到期日期:</label>
305
- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />&ndash;&gt;
306
- <datepicker class="rightipt"
307
- :value.sync="row.f_expire_date"
308
- v-model="row.f_expire_date"
309
- :disabled-days-of-Week="[]"
310
- :format="'yyyy-MM-dd'"
311
- :show-reset-button="reset" readonly="readonly">
312
- </datepicker>
313
- </div>-->
314
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
315
- <label class="righttxt">安&ensp;装&ensp;人:</label><input type="text" class="form-control rightipt"
316
- v-model="row.f_input_person" />
317
- </div>
318
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
319
- <label class="righttxt">安装日期:</label>
320
- <!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
321
- <datepicker class="rightipt" :value.sync="row.f_input_date" v-model="row.f_input_date"
322
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
323
- </datepicker>
324
- </div>
325
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
326
- <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
327
- v-model="row.f_devices_num" />
328
- </div>
329
- <div class="row auto" style="margin: 5px 0">
330
- <label class="righttxt">管道类型:</label>
331
- <v-select class="rightipt" :value.sync="row.f_pipe_type"
332
- v-model="row.f_pipe_type"
333
- placeholder='请选择管道类型'
334
- :width='wid'
335
- readonly
336
- :options="pipetypes"
337
- close-on-select value-single></v-select>
338
- </div>
339
- <!--<div class="row auto" style="margin: 5px 0">
340
- <label class="righttxt">设备状态:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
341
- </div>-->
342
- <!--<div class="row auto" style="margin: 5px 0">
343
- <label class="righttxt">购买方式:</label><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
344
- </div>-->
345
- <div style="display: flex;justify-content: center;margin-bottom: 3px"
346
- v-if="$index > this.userinfo_old.devicesinfo.length - 1 || this.userinfo_old.devicesinfo.length == 0">
347
- <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
348
- </div>
349
- </div>
350
- <div style="display: flex;justify-content: space-around;">
351
- <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
352
- </div>
353
- </div>
354
- </div>
355
- <div class="panel auto">
356
- <div class="panel-body">
357
- <div style="display: flex;justify-content: center;">
358
- <button class="col-sm-3 btn btn-primary" :disabled="enable"
359
- @click="isNeedAudit ? editUserInfo() : editUserInfoNoAudit()">{{ isNeedAudit ? '上传审核' : '上传' }}</button>
360
- </div>
361
- </div>
362
- </div>
363
- </div>
364
- <modal :show.sync="limitShow" v-ref="modal" backdrop="false" style="font-size: 15px">
365
- <div slot="modal-header" class="model-header upuserinfo_sel">
366
- <h4 class="modal-title" style="text-align: center ;margin-bottom: 15px;margin-top: 15px">
367
- 限购配置
368
- </h4>
369
- </div>
370
- <div slot="modal-body" class="model-body">
371
- <div class="row auto" style="margin: 5px 0">
372
- <label class="righttxt" style="padding-bottom: 5px">第三方缴费:</label>
373
- <v-select :value.sync="models.f_third_pay" v-model="models.f_third_pay" :options="thirdPays"
374
- :value-single="true" v-valid:f_third_pay='{ required: true }' close-on-select></v-select>
375
- </div>
376
- <div class="row auto" style="margin: 5px 0">
377
- <label class="righttxt" style="padding-bottom: 5px">限制类型</label>
378
- <v-select :value.sync="models.f_limit_style" v-model="models.f_limit_style" :options="limitstyle"
379
- :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
380
- </div>
381
- <div class="row auto" style="margin: 5px 0">
382
- <label class="righttxt" style="padding-bottom: 5px">周期类型</label>
383
- <v-select :value.sync="models.f_time_type" v-model="models.f_time_type" :options="timeTypes"
384
- :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
385
- </div>
386
- <div class="row auto" style="margin: 5px 0">
387
- <label class="righttxt" style="padding-bottom: 5px">周期时长</label>
388
- <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_time_value" />
389
- </div>
390
- <div class="row auto" style="margin: 5px 0">
391
- <label class="righttxt" style="padding-bottom: 5px">限制次数</label>
392
- <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_times" />
393
- </div>
394
- <div class="row auto">
395
- <label class="righttxt" style="padding-bottom: 5px">单次限购</label>
396
- <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_value" />
397
- </div>
398
- <div class="row auto" style="margin: 5px 0">
399
- <label class="righttxt" style="padding-bottom: 5px">支付限制</label>
400
- <v-select :value.sync="models.f_limit_type" v-model="models.f_limit_type" :options="limitTypes"
401
- :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
402
- </div>
403
- <div class="row auto" style="margin: 5px 0">
404
- <label class="righttxt" style="padding-bottom: 5px">执行时间</label>
405
- <datepicker class="rightipt" style="margin-left: 0px" :value.sync="models.f_start_date"
406
- v-model="models.f_start_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset">
407
- </datepicker>
408
- </div>
409
- <div class="row auto" style="margin: 5px 0">
410
- <label class="righttxt" style="padding-bottom: 5px">限制状态</label>
411
- <v-select :value.sync="models.f_status" v-model="models.f_status" :options="fstatus" :value-single="true"
412
- v-valid:f_status='{ required: true }' close-on-select></v-select>
413
- </div>
414
- </div>
415
- <div slot="modal-footer" style="text-align: center" class="modal-footer">
416
- <button type="button" class="btn btn-primary" :disabled="!$v.valid" @click="confirmLimitGas">确认</button>
417
- <button type="button" class="btn btn-default" @click="cancel()">取消</button>
418
- </div>
419
- </modal>
420
- </template>
421
-
422
- <script>
423
- import { HttpResetClass } from 'vue-client'
424
- import * as Util from "../../Util";
425
- import Vue from 'vue'
426
-
427
- export default {
428
- title: '设备查看',
429
- data() {
430
- return {
431
- editAddress:false,
432
- userphone: [],
433
- pipetypes:Vue.$appdata.getParam('管道类型'),
434
- models: {
435
- f_status: '',
436
- f_time_value: '',
437
- f_third_pay: '0',
438
- f_limit_style: '',
439
- f_time_type: '按月',
440
- f_limit_type: '气量',
441
- f_limit_times: '',
442
- f_limit_value: '',
443
- f_start_date: this.$login.toStandardDateString(),
444
- },
445
- thirdPays: [{ label: '支持', value: '1' }, { label: '不支持', value: '0' }],
446
- timeTypes: [{ label: '按月', value: '按月' }, { label: '按日', value: '按日' }],
447
- limitTypes: [{ label: '气量', value: '气量' }, { label: '金额', value: '金额' }],
448
- limitstyle: [{ label: '按次数', value: '按次数' }, { label: '按总量', value: '按总量' }],
449
- fstatus: [{ label: '有效', value: '有效' }, { label: '无效', value: '无效' }],
450
- limitShow: false,
451
- limit_gas: null,
452
- model: [],
453
- show: false,
454
- row: Object,
455
- userinfo: Object,
456
- userinfo_old: Object,
457
- wid: "60%",
458
- aroundmeters: [],
459
- devices_types: [],
460
- pipe_types: [{ label: '橡胶管', value: '橡胶管' }, { label: '波纹管', value: '波纹管' }, { label: '钢管', value: '钢管' }],
461
- wz_types: [],
462
- cityTypes: [{ label: '市区', value: '市区' }, { label: '城镇', value: '城镇' }],
463
- bqf_states: [{ label: '开阀', value: '开阀' }, { label: '关阀', value: '关阀' }],
464
- pcds: [],
465
- streets: [],
466
- update: false,
467
- headername: '',
468
- excessive: false,
469
- area: [],
470
- enable: false,
471
- f_meterno_path: Vue.nopic,
472
- selectArea: { id: '' },
473
- selectPcd: { id: '' },
474
- selectStreet: { id: '' },
475
- changemeterno: false,//是否修改了机表表号
476
- approveChange: false,//是否需要进行信息变更审核
477
- newAddress: '',
478
- addressType: '',
479
- //需要审核的字段
480
- checkField: {
481
- checkUserinfoField: [
482
- 'f_user_name'
483
- ],
484
- checkUserFilesField: [
485
- 'f_meternumber'
486
- ],
487
- checkAddressField: [
488
- 'f_pcd_id',
489
- 'f_street_id',
490
- 'f_residential_area_id',
491
- 'f_building',
492
- 'f_unit',
493
- 'f_floor',
494
- 'f_room',
495
- 'f_slice_area',
496
- 'f_special',
497
- 'f_address'
498
- ],
499
- },
500
- boxOptions: [],
501
- showBox: false,
502
- directOptions: [{ label: '是', value: '是' }, { label: '否', value: '否' }],
503
- deviceBrandOption: {},
504
- isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
505
- }
506
- },
507
- props: {
508
- user: {
509
- type: Object
510
- },
511
- f_userinfo_id: '',
512
- f_source: ''
513
- },
514
- methods: {
515
- limitClick() {
516
- this.limitShow = true
517
- },
518
- cancel() {
519
- this.limitShow = false
520
- },
521
- getLimitGas(val) {
522
- this.limit_gas = val
523
- },
524
- scan() {
525
- HostApp.__this__ = this,
526
- HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
527
- },
528
- getCode() {
529
- var datapa = HostApp.getCode().data;
530
- //tag
531
- this.userinfo.meterinfo[0].f_meternumber = datapa
532
- },
533
- //数据检查
534
- checkVal() {
535
- //检查一些必要信息是否未填
536
- this.approveChange = false
537
- this.changemeterno = false
538
- let checked = { ischeck: true, msg: '' }
539
- //tag
540
- //tag
541
- //tag
542
- if (!this.userinfo.baseinfo.base.f_user_name) {
543
- checked = { ischeck: false, msg: '请输入用户名称!' }
544
- }
545
- if (!this.selectPcd.id) {
546
- checked = { ischeck: false, msg: '请选择省市区!' }
547
- }
548
- if (!this.selectStreet.id) {
549
- checked = { ischeck: false, msg: '请选择街道!' }
550
- }
551
- if (!this.userinfo.addressinfo.f_address) {
552
- checked = { ischeck: false, msg: '新地址不能为空!' }
553
- }
554
- if (this.addressType == '普通地址') {
555
- if (!this.selectArea.id) {
556
- checked = { ischeck: false, msg: '请选择集收单位!' }
557
- }
558
- if (!this.userinfo.addressinfo.f_room) {
559
- checked = { ischeck: false, msg: '新输入门牌号!' }
560
- }
561
- }
562
- if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
563
-
564
- //tag
565
- //tag
566
- if (this.userinfo.meterinfo[0].f_meternumber) {
567
- if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
568
- if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
569
- checked = { ischeck: false, msg: '请拍摄表号照片!' }
570
- } else {
571
- //用来标识当前有修改机表表号,后台需要进行照片上传
572
- this.changemeterno = true
573
- }
574
- }
575
- } else {
576
- checked = { ischeck: false, msg: '请输入表号!' }
577
- }
578
- }
579
- //检查本次修改信息中是否包含需要审核的内容
580
- for (let check in this.checkField) {
581
- //tag
582
- if (typeof check != 'function') {
583
- for (let i = 0; i < this.checkField[check].length; i++) {
584
- //tag
585
- if (check == 'checkUserinfoField') {
586
- //tag
587
- //tag
588
- if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
589
- //tag
590
- this.approveChange = true
591
- }
592
- } else if (check == 'checkUserFilesField') {
593
- //tag
594
- //tag
595
- if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
596
- //tag
597
- this.approveChange = true
598
- }
599
- } else if (check == 'checkAddressField') {
600
- //tag
601
- //tag
602
- if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
603
- //tag
604
- this.approveChange = true
605
- }
606
- }
607
- }
608
- }
609
- }
610
- //tag
611
- return checked
612
- },
613
- select_search(text) {
614
- //tag
615
- if (this.selectStreet.id) {
616
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
617
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
618
- data: {
619
- items: "*",
620
- tablename: "t_area",
621
- orderitem: "id",
622
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
623
- }
624
- }, { resolveMsg: null, rejectMsg: null }).then((res) => {
625
- //tag)
626
- if (res.data.length > 0) {
627
- this.area = []
628
- res.data.forEach((result) => {
629
- this.area.push({ label: result.f_residential_area, value: result })
630
- })
631
- }
632
- })
633
- } else {
634
- this.area = []
635
- }
636
- },
637
- cameraCallBack(prop, fileName) {
638
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
639
- //tag
640
- HostApp.__callback__ = null
641
- HostApp.__this__ = null
642
- },
643
- takePic(prop, title) {
644
- HostApp.__callback__ = this.cameraCallBack
645
- HostApp.__this__ = this
646
- //tag
647
- let fileName
648
- if (!this[prop] || this[prop].includes("nopic.png")) {
649
- fileName = Util.guid() + '-' + prop + '.jpg'
650
- } else {
651
- fileName = Util.getFileName(this[prop])
652
- }
653
- HostApp._open_a_page({
654
- type: 'boomerang',
655
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
656
- param: {
657
- file: fileName,
658
- requestCode: 111,
659
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
661
- }
662
- })
663
- },
664
- delfile(prop, fileName) {
665
- if (fileName == Vue.nopic)
666
- return
667
- else {
668
- HostApp.delfile(fileName)
669
- this[prop] = Vue.nopic
670
- }
671
- },
672
- editUserInfoNoAudit() {
673
- let checked = this.checkVal()
674
- if (!checked.ischeck) {
675
- this.$showMessage(checked.msg)
676
- return
677
- }
678
- for (let i = 0; i < this.model.length; i++) {
679
- this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
680
- }
681
- if (this.userphone[0].f_rent_phone) {
682
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
683
- }
684
- this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
685
- if (res === 'confirm') {
686
- this.excessive = true
687
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
688
- // userinfoms.f_user_name=row.f_user_name
689
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
690
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
691
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
692
- userinfoms.f_operator_record = Vue.user.name
693
- userinfoms.f_operatorid_record = Vue.user.id
694
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
695
- userinfoms.f_orgid_record = Vue.user.orgid
696
- userinfoms.f_orgname_record = Vue.user.orgs
697
- userinfoms.f_depid_record = Vue.user.depids
698
- userinfoms.f_depname_record = Vue.user.deps
699
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
700
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
701
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
702
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
703
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
704
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
705
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
706
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
707
- userinfoms.userfiles = []
708
- userinfoms.userphone = this.userphone
709
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
710
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
711
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
712
- data: {
713
- userinfo: userinfoms,
714
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
715
- address: {
716
- id: this.userinfo_old.addressinfo.id,
717
- oldid: this.userinfo_old.addressinfo.id,
718
- f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
719
- }
720
- }
721
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
722
- if (res1.data.status == 200) {
723
- let data = this.userinfo.addressinfo
724
- data.f_address = this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
725
- //
726
- data.f_operator = Vue.user.name
727
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/address_updateuseraddress`, { data: data }).then((res2) => {
728
- this.$showMessage("修改用户地址信息成功!")
729
- }).catch(error => {
730
- this.$showMessage("修改用户地址信息!")
731
- })
732
- this.$showMessage("修改用户信息成功!")
733
- this.enable = true
734
- this.excessive = false
735
- }
736
- }).catch((msg) => {
737
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
738
- this.excessive = false
739
- })
740
- }
741
- })
742
- },
743
- editUserInfo() {
744
- let checked = this.checkVal()
745
- if (!checked.ischeck) {
746
- this.$showMessage(checked.msg)
747
- return
748
- }
749
-
750
- if (this.userphone[0].f_rent_phone) {
751
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
752
- }
753
-
754
- this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
755
- if (res === 'confirm') {
756
- this.excessive = true
757
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
758
- //userinfoms.f_user_name=row.f_user_name
759
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
760
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
761
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
762
- userinfoms.f_operator_record = Vue.user.name
763
- userinfoms.f_operatorid_record = Vue.user.id
764
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
765
- userinfoms.f_orgid_record = Vue.user.orgid
766
- userinfoms.f_orgname_record = Vue.user.orgs
767
- userinfoms.f_depid_record = Vue.user.depids
768
- userinfoms.f_depname_record = Vue.user.deps
769
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
770
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
771
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
772
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
773
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
774
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
775
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
776
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
777
- userinfoms.userfiles = []
778
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
779
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
780
- userinfoms.userphone = this.userphone
781
- //tag)
782
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
783
- data: {
784
- userinfo: userinfoms,
785
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
786
- address: { id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id }
787
- }
788
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
789
- //tag+res1.data.status)
790
- if (res1.data.status == 200) {
791
- //本次修改信息包含需要审核信息
792
- if (this.approveChange) {
793
- //tag
794
- let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
795
- row: {
796
- f_time: Util.toStandardTimeString(),
797
- f_modifier: Vue.user.name,//Vue.user.name
798
- f_modifier_id: Vue.user.id,//Vue.user.id
799
- f_modify_type: '用户档案',
800
- f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
801
- f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
802
- f_approved: '未审核',
803
- filialestr: Vue.user.orgid,//Vue.user.orgid
804
- version: 1,
805
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
806
- f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
807
- f_street: this.userinfo.addressinfo.f_street,
808
- f_building: this.userinfo.addressinfo.f_building,
809
- f_unit: this.userinfo.addressinfo.f_unit,
810
- f_floor: this.userinfo.addressinfo.f_floor,
811
- f_room: this.userinfo.addressinfo.f_room,
812
- f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
813
- f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
814
- f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
815
- f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
816
- f_residential_area: this.userinfo.addressinfo.f_residential_area,
817
- f_address: this.userinfo.addressinfo.f_address,
818
- f_pcd: this.userinfo.addressinfo.f_pcd,
819
- f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
820
- f_street_id: this.userinfo.addressinfo.f_street_id,
821
- f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
822
- f_used_name: this.userinfo.baseinfo.base.f_used_name,
823
- f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
824
- f_slice_area: this.userinfo.addressinfo.f_slice_area,
825
- f_remark: this.userinfo.baseinfo.base.f_remark,
826
- f_source: this.f_source,
827
- f_meterno_path: this.f_meterno_path,
828
- f_iscity: this.userinfo.addressinfo.f_iscity,
829
- f_special: this.userinfo.addressinfo.f_special,
830
- f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
831
- changemeterno: this.changemeterno
832
- },
833
- tablename: 't_modify_userinfo'
834
- })
835
- //tag)
836
- if (res2.code == 200) {
837
- this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
838
- this.enable = true
839
- this.excessive = false
840
- } else {
841
- this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
842
- this.excessive = false
843
- }
844
- } else {
845
- this.$showMessage("修改用户信息成功!")
846
- this.enable = true
847
- this.excessive = false
848
- }
849
- }
850
- }).catch((msg) => {
851
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
852
- this.excessive = false
853
- })
854
- }
855
- })
856
- },
857
- imgback(header) {
858
- if (this.headername == header) {
859
- return require('../../../assets/xiangxia1.png')
860
- } else {
861
- return require('../../../assets/xiangyou1.png')
862
- }
863
- this.headername = header
864
- },
865
- selectVal(header) {
866
- if (this.headername == header) {
867
- this.headername = ''
868
- } else {
869
- this.headername = header
870
- }
871
- },
872
- changeNewAddress() {
873
- this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
874
- },
875
- area_change() {
876
- //tag
877
- this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
878
- this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
879
- this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
880
- this.changeNewAddress()
881
- //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
882
- },
883
- async street_change() {
884
- //tag
885
- if (this.selectStreet.id) {
886
- //如果街道改变--给街道赋值!
887
- this.userinfo.addressinfo.f_street = this.selectStreet.f_street
888
- this.userinfo.addressinfo.f_street_id = this.selectStreet.id
889
- this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
890
- //清空当前选中小区的值
891
- this.userinfo.addressinfo.f_residential_area = ''
892
- this.userinfo.addressinfo.f_residential_area_id = ''
893
- this.userinfo.addressinfo.f_slice_area = ''
894
- this.selectArea = { id: '' }
895
- this.area = []
896
- let pcdText = ` and f_street_id=${this.selectStreet.id}`
897
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
898
- data: {
899
- items: "*",
900
- tablename: "t_area",
901
- orderitem: "id",
902
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
903
- }
904
- }, { resolveMsg: null, rejectMsg: null })
905
- ////tag)
906
- res.data.forEach((result) => {
907
- this.area.push({ label: result.f_residential_area, value: result })
908
- })
909
- } else {
910
- this.area = []
911
- }
912
- this.changeNewAddress()
913
- },
914
- async pcd_change() {
915
- //tag
916
- if (this.selectPcd.id) {
917
- //tag
918
- //如果省市区改变-重新赋值
919
- this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
920
- this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
921
- //清空 选中的街道和集收单位
922
- this.selectStreet = { id: '' }
923
- this.userinfo.addressinfo.f_street = ''
924
- this.userinfo.addressinfo.f_street_id = ''
925
- this.userinfo.addressinfo.f_iscity = ''
926
- this.selectArea = { id: '' }
927
- this.userinfo.addressinfo.f_residential_area = ''
928
- this.userinfo.addressinfo.f_residential_area_id = ''
929
- this.userinfo.addressinfo.f_slice_area = ''
930
- this.streets = []
931
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
932
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
933
- data: {
934
- items: "*",
935
- tablename: "t_street",
936
- orderitem: "id",
937
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
938
- }
939
- }, { resolveMsg: null, rejectMsg: null })
940
- streetlist.data.forEach((result) => {
941
- this.streets.push({ label: result.f_street, value: result })
942
- })
943
- } else {
944
- this.streets = []
945
- }
946
- this.changeNewAddress()
947
- },
948
- upUserState() {
949
- //tag)
950
- if (this.userinfo.meterinfo[0].f_table_state == '正常') {
951
- let data = {
952
- f_userfiles_id: {
953
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
954
- f_table_state: '停用',
955
- version: this.userinfo.meterinfo[0].version
956
- },
957
- f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
958
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
959
- f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
960
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
961
- f_comments: '安检时发现问题关闭阀门',
962
- f_othereason: '',
963
- f_operat_type: '停用',
964
- f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
965
- f_state: '有效',
966
- f_operator: Vue.user.name,//${Vue.$login.f.name}
967
- f_operatorid: Vue.user.id,
968
- f_orgid: Vue.user.orgid,
969
- f_orgname: Vue.user.orgs,
970
- f_depid: Vue.user.depids,
971
- f_depname: Vue.user.deps,
972
- f_zoneid: Vue.user.zoneid,
973
- f_zones: Vue.user.zones
974
- }
975
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
976
- data, { resolveMsg: null, rejectMsg: null }).then((row) => {
977
- this.$showMessage('已成功关阀停气!')
978
- this.userinfo.meterinfo[0].f_table_state = '停用'
979
- })
980
- } else {
981
- this.$showMessage('该用户已被关阀停用,请勿重复操作!')
982
- }
983
-
984
- },
985
- addDevices() {
986
- //Vue.user.name
987
- let obj = {
988
- "f_operator": Vue.user.name,
989
- "f_picture": null,
990
- "f_pipe_type": null,
991
- "f_pipeinstall_date": null,
992
- "f_pipe_connection": null,
993
- "f_expire_date": null,
994
- "f_pipeexpire_date": null,
995
- "f_comments": null,
996
- "f_operate_date": Util.toStandardTimeString(),
997
- "f_operatorid": Vue.user.id,
998
- "f_devices_num": null,
999
- "f_process_id": null,
1000
- "f_devices_type": null,
1001
- "f_make_date": null,
1002
- "f_input_date": null,
1003
- "f_state": "有效",
1004
- "f_brand": null,
1005
- "f_devices_model": null,
1006
- "f_devices_no": null,
1007
- "img": { "content": null, "filename": null }
1008
- }
1009
- this.model.push(obj)
1010
- },
1011
- delDevices(idx) {
1012
- //tag
1013
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1014
- if (res === 'confirm') {
1015
- this.model.splice(idx, 1)
1016
- }
1017
- })
1018
- },
1019
- async getAreaList(text) {
1020
- if (this.selectStreet.id) {
1021
- this.area = []
1022
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1023
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1024
- data: {
1025
- items: "*",
1026
- tablename: "t_area",
1027
- orderitem: "id",
1028
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1029
- }
1030
- }, { resolveMsg: null, rejectMsg: null })
1031
- ////tag)
1032
- res.data.forEach((result) => {
1033
- this.area.push({ label: result.f_residential_area, value: result })
1034
- })
1035
- //tag
1036
- this.area.push({
1037
- label: this.userinfo.addressinfo.f_residential_area,
1038
- value: {
1039
- id: this.userinfo.addressinfo.f_residential_area_id,
1040
- f_residential_area: this.userinfo.addressinfo.f_residential_area
1041
- }
1042
- })
1043
- } else {
1044
- this.area = []
1045
- }
1046
-
1047
- },
1048
- async getStreetList() {
1049
- if (this.selectPcd.id) {
1050
- //tag
1051
- this.streets = []
1052
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1053
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1054
- data: {
1055
- items: "*",
1056
- tablename: "t_street",
1057
- orderitem: "id",
1058
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1059
- }
1060
- }, { resolveMsg: null, rejectMsg: null })
1061
- streetlist.data.forEach((result) => {
1062
- //如果第一次进来有地址id 就拿下地址区域
1063
- if (this.selectStreet.id && this.selectStreet.id == result.id) {
1064
- //tag)
1065
- this.userinfo.addressinfo.f_iscity = result.f_iscity
1066
- }
1067
- this.streets.push({ label: result.f_street, value: result })
1068
- })
1069
- } else {
1070
- this.streets = []
1071
- }
1072
- },
1073
- async confirmLimitGas() {
1074
- this.$dispatch('limit', this.models);
1075
- console.log('提交限购数据', this.models);
1076
- let restrict = {
1077
- f_third_pay: this.models.f_third_pay,
1078
- f_time_type: this.models.f_time_type,
1079
- f_limit_times: this.models.f_limit_times,
1080
- f_time_value: this.models.f_time_value,
1081
- f_limit_type: this.models.f_limit_type,
1082
- f_limit_style: this.models.f_limit_style,
1083
- f_limit_value: this.models.f_limit_value,
1084
- f_limit_amount: this.models.f_limit_amount,
1085
- f_operator: Vue.user.name,
1086
- f_status: this.models.f_status,
1087
- f_start_date: this.$login.toStandardDateString()
1088
- };
1089
- let operInfo = {
1090
- f_operator: Vue.user.name,
1091
- f_operatorid: Vue.user.id,
1092
- f_orgid: Vue.user.orgid,
1093
- f_orgname: Vue.user.orgs,
1094
- f_depid: Vue.user.depids,
1095
- f_depname: Vue.user.deps,
1096
- };
1097
- let user = {
1098
- f_userinfo_id: this.f_userinfo_id,
1099
- f_user_name: this.f_user_name,
1100
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1101
- f_table_state: this.userinfo.meterinfo[0].f_table_state,
1102
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
1103
- };
1104
- let param = {
1105
- restrict,
1106
- user,
1107
- operInfo
1108
- };
1109
- console.log('提交限购数据', JSON.stringify(param));
1110
- let http = new HttpResetClass();
1111
- await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/limitGas`, {
1112
- data: param
1113
- });
1114
- },
1115
- changeAddressType(val) {
1116
- //tag
1117
- if (this.addressType == '普通地址') {
1118
- this.userinfo.addressinfo.f_special = null
1119
- } else if (this.addressType == '特殊地址') {
1120
- this.userinfo.addressinfo.f_special = 1
1121
- this.userinfo.addressinfo.f_building = null
1122
- this.userinfo.addressinfo.f_unit = null
1123
- this.userinfo.addressinfo.f_floor = null
1124
- this.userinfo.addressinfo.f_room = null
1125
- }
1126
- this.changeNewAddress()
1127
- }
1128
-
1129
- },
1130
- computed: {
1131
- getAddress() {
1132
- return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1133
- (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1134
- (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
1135
- (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
1136
- (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
1137
- (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
1138
- (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
1139
- },
1140
- getAddressTS() {
1141
- return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1142
- (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1143
- (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
1144
- }
1145
- },
1146
- watch: {
1147
-
1148
- /*'selectPcd.id' (val) {
1149
- //tag
1150
- if(this.selectPcd.id){
1151
- this.getStreetList()
1152
- }
1153
- },
1154
- 'selectStreet.id' (val) {
1155
- //tag
1156
- if(this.selectStreet.id){
1157
- this.getAreaList()
1158
- }
1159
- }*/
1160
- },
1161
- async ready() {
1162
- console.log(Vue.user);
1163
- console.log()
1164
- this.editAddress = !(Vue.user.r.includes('手机端修改地址'))
1165
- console.log(this.editAddress)
1166
- /*//tag)
1167
- {{)}}
1168
-
1169
- //tag)
1170
- //tag)*/
1171
- //this.f_userinfo_id=1102260
1172
- //this.f_userinfo_id=1997541
1173
- if (!this.f_userinfo_id) {
1174
- this.$showMessage("未检测到用户!")
1175
- this.enable = true
1176
- return
1177
- }
1178
- try {
1179
-
1180
- this.devices_types = Vue.$appdata.getParam('设备类型')
1181
- console.log('this.devices_types=', JSON.stringify(this.devices_types))
1182
- for (const devices_type of this.devices_types) {
1183
- console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1184
- this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1185
- }
1186
- console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1187
- this.wz_types = Vue.$appdata.getParam('安装位置')
1188
- this.aroundmeters = Vue.$appdata.getParam('左右表')
1189
-
1190
- ////tag)
1191
- this.excessive = true
1192
- //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1193
-
1194
- let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1195
- data: {
1196
- items: "*",
1197
- tablename: "t_pcd",
1198
- orderitem: "id",
1199
- condition: `f_orgid = '${Vue.user.orgid}'`
1200
- }
1201
- }, { resolveMsg: null, rejectMsg: null })
1202
- //tag)
1203
- pcdlist.data.forEach((result) => {
1204
- this.pcds.push({ label: result.f_pcd, value: result })
1205
- })
1206
- ////tag)
1207
- let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
1208
- //f_userinfo_code:'12381344',
1209
- f_userinfo_id: this.f_userinfo_id
1210
- }, { resolveMsg: null, rejectMsg: null })
1211
- //tag
1212
- //tag
1213
- this.userinfo = res.data
1214
- if (this.userinfo.meterinfo[0].f_user_type == '民用'){
1215
- this.devices_types = Vue.$appdata.getParam('民用设备类型')
1216
- }
1217
- this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1218
- this.model = this.userinfo.meterinfo[0].devicesinfo
1219
- this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1220
- this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1221
- this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1222
- this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1223
- this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1224
- await this.getStreetList()
1225
- await this.getAreaList()
1226
- this.excessive = false
1227
- this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1228
- //this.userinfo.addressinfo.f_special=1
1229
- //tag
1230
- let userphone = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1231
- data: {
1232
- items: "*",
1233
- tablename: "t_user_phone",
1234
- orderitem: "id",
1235
- condition: `f_userinfo_id = '${this.f_userinfo_id}' and f_state = '有效'`
1236
- }
1237
- }, { resolveMsg: null, rejectMsg: null })
1238
- let tempObj = {
1239
- id: null,
1240
- f_userinfo_id: this.f_userinfo_id,
1241
- f_rent_phone: '',
1242
- f_state: '有效',
1243
- f_orgid: Vue.user.orgid,
1244
- f_orgname: Vue.user.orgs,
1245
- f_depid: Vue.user.depids,
1246
- f_depname: Vue.user.deps,
1247
- f_operatorid: Vue.user.id,
1248
- f_operator: Vue.user.id
1249
- }
1250
- if (userphone.data.length == 0) {
1251
- this.userphone.push(tempObj)
1252
- this.userphone.push(tempObj)
1253
- } else {
1254
- if (userphone.data.length == 1) {
1255
- this.userphone = userphone.data
1256
- this.userphone.push(tempObj)
1257
- } else {
1258
- this.userphone = userphone.data
1259
- }
1260
- }
1261
- } catch (e) {
1262
- this.excessive = false
1263
- this.enable = true
1264
- this.$showMessage('获取用户信息出错,请检查网络状况!')
1265
- }
1266
- new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, { data: {} }, {
1267
- resolveMsg: null,
1268
- rejectMsg: null
1269
- }).then((addressUnit) => {
1270
- //tag
1271
- //tag
1272
- //tag
1273
- //tag
1274
- this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1275
- this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1276
- this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1277
- this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1278
- }).catch((msg) => {
1279
- //tag)
1280
- })
1281
- this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1282
- console.log(this.showBox)
1283
- if (this.showBox) {
1284
- // 获取调压箱
1285
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1286
- resolveMsg: null,
1287
- rejectMsg: null
1288
- }).then((res) => {
1289
- const boxOptions = []
1290
- for (const data of res.data) {
1291
- const one = {
1292
- label: data.f_adjustable_id + data.f_adjustable_name,
1293
- value: Number(data.f_adjustable_id)
1294
- }
1295
- boxOptions.push(one)
1296
- }
1297
- this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1298
- console.log(this.boxOptions)
1299
- }).catch((msg) => {
1300
- //tag)
1301
- })
1302
- }
1303
- }
1304
- }
1305
- </script>
1306
- <style lang="less" scoped>
1307
- .butt3 {
1308
- float: right;
1309
- width: 12px;
1310
- margin: 1% 2% 0 0;
1311
- }
1312
-
1313
- .rightipt {
1314
- width: 60%;
1315
- float: left;
1316
- margin-left: 5%;
1317
- }
1318
-
1319
- .righttxt {
1320
- border: none;
1321
- margin-left: 5px;
1322
- /*border-left: 5px solid #A2C2EB;*/
1323
- float: left;
1324
- width: 25%;
1325
- margin-bottom: 3px;
1326
- text-align: left;
1327
- word-wrap: break-word;
1328
- white-space: normal;
1329
- }
1330
-
1331
- .tit1 {
1332
- /*background: #ffffff url('../../../assets/用户姓名.png') no-repeat fixed center;*/
1333
- background-image: url('../../../assets/用户姓名.png');
1334
- background-repeat: no-repeat;
1335
- background-position: center;
1336
- }
1337
-
1338
- .spanboder {
1339
- border-bottom: 2px solid #499edf;
1340
- padding-bottom: 8px
1341
- }
1342
-
1343
- #upuserinfo_sel /deep/ ul {
1344
- width: 100% !important;
1345
- left: 0 !important;
1346
- }
1347
-
1348
- .btn-photo {
1349
- border: 0;
1350
- border-radius: 7px;
1351
- background-color: #7dc1f4;
1352
- font: 15px PingFang-SC-Bold;
1353
- height: 20%;
1354
- }
1355
-
1356
- .panel-self {
1357
- border-radius: 10px;
1358
- border: 1px solid #499EDF;
1359
- background-color: #F8F8F8;
1360
- }
1361
-
1362
- .div-photo {
1363
- width: auto;
1364
- height: auto;
1365
- /* margin-top: 10px; */
1366
- position: absolute;
1367
- bottom: 10px;
1368
- right: 10px;
1369
- }
1370
- </style>
1371
- <style lang="less">
1372
- #upuserinfo_sel ul {
1373
- width: 100% !important;
1374
- left: 0 !important;
1375
- }
1376
- </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
+ <label class="righttxt">用户编号:</label>
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
+ <label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
18
+ v-model="userinfo.baseinfo.base.f_user_name" readonly />
19
+ </div>
20
+ <div class="row auto" style="margin: 5px 0">
21
+ <label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
22
+ v-model="userinfo.baseinfo.base.f_user_state" />
23
+ </div>
24
+ <div class="row auto" style="margin: 5px 0">
25
+ <label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
26
+ v-model="userinfo.baseinfo.base.f_user_phone" />
27
+ </div>
28
+ <div class="row auto" style="margin: 5px 0">
29
+ <label class="righttxt">备用电话1:</label><input type="text" class="form-control rightipt"
30
+ v-model="userphone[0].f_rent_phone" />
31
+ </div>
32
+ <div class="row auto" style="margin: 5px 0">
33
+ <label class="righttxt">备用电话2:</label><input type="text" class="form-control rightipt"
34
+ v-model="userphone[1].f_rent_phone" />
35
+ </div>
36
+ <!-- <div class="row auto" style="margin: 5px 0">
37
+ <label class="righttxt">租户姓名:</label><input type="text" class="form-control rightipt"
38
+ v-model="userinfo.baseinfo.base.f_rent_name"/>
39
+ </div>
40
+ <div class="row auto" style="margin: 5px 0">
41
+ <label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
42
+ v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
43
+ </div> -->
44
+ <div class="row auto" style="margin: 5px 0">
45
+ <label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
46
+ v-model="userinfo.baseinfo.base.f_createfile_date" readonly />
47
+ </div>
48
+ <!-- <div class="row auto" style="margin: 5px 0">
49
+ <label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
50
+ </div>-->
51
+ <div class="row auto" style="margin: 5px 0">
52
+ <label class="righttxt">地址类型:</label>
53
+ <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
54
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
55
+ id="phone_addressType1" value="普通地址" /><label style="font-weight: normal;padding-left: 2px"
56
+ for="phone_addressType1">普通地址</label></div>
57
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
58
+ id="phone_addressType2" value="特殊地址" /><label style="font-weight: normal;padding-left: 2px"
59
+ for="phone_addressType2">特殊地址</label></div>
60
+ </div>
61
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
62
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
63
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
64
+ :width="'60%'"
65
+ v-model="userinfo.addressinfo.f_iscity"
66
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
67
+ </div>
68
+ <div class="row auto" style="margin: 5px 0">
69
+ <label class="righttxt">地区类型:</label>
70
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
71
+ <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
72
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
73
+ :width="'60%'"
74
+ :disabled="true"
75
+ v-model="userinfo.addressinfo.f_iscity"
76
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
77
+ </div>
78
+ <div class="row auto" style="margin: 5px 0">
79
+ <label class="righttxt">省&ensp;市&ensp;区:</label>
80
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
81
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
82
+ <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
83
+ v-model="selectPcd" :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
84
+ @change="pcd_change()"></v-select>
85
+ </div>
86
+ <div class="row auto" style="margin: 5px 0">
87
+ <label class="righttxt">街道名称:</label>
88
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
89
+ <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
90
+ v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
91
+ @change="street_change()"></v-select>
92
+ </div>
93
+ <div class="row auto" style="margin: 5px 0">
94
+ <label class="righttxt">集收单位:</label>
95
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
96
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
97
+ v-model="selectArea" :timeout="500" @select-search="select_search" :options='area' placeholder='请选择集收单位'
98
+ close-on-select clear-button value-single @change="area_change()"></v-select>
99
+ </div>
100
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
101
+ <label class="righttxt">集收单位:</label>
102
+ &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
103
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
104
+ :width="'60%'"
105
+ v-model="selectArea"
106
+ @select-search="select_search"
107
+ :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
108
+ </div>-->
109
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
110
+ <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
111
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
112
+ </div>
113
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
114
+ <label class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
115
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
116
+ </div>
117
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
118
+ <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
119
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
120
+ </div>
121
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
122
+ <label class="righttxt">门&ensp;牌&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
123
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
124
+ </div>
125
+ <div class="row auto" style="margin: 5px 0">
126
+ <label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
127
+ v-model="userinfo_old.addressinfo.f_address" />
128
+ </div>
129
+ <div class="row auto" style="margin: 5px 0">
130
+ <label class="righttxt">新&ensp;地&ensp;址:</label>
131
+ <!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
132
+ <textarea :readonly="addressType == '普通地址'" class="form-control rightipt" : style="height: 80px" :disabled="editAddress"
133
+ v-model="userinfo.addressinfo.f_address"></textarea>
134
+ </div>
135
+
136
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
137
+ <label class="righttxt">新&ensp;地&ensp;址:</label>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;
138
+ <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
139
+ </div>-->
140
+
141
+ <div class="row auto" style="margin: 5px 0">
142
+ <label class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</label><textarea class="form-control rightipt"
143
+ style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea>
144
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
145
+ </div>
146
+ <div class="row auto" style="display: flex;justify-content: center;">
147
+ <button class="col-sm-3 btn btn-primary" style="width: max-content" @click="limitClick">限购配置</button>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ <div class="panel auto">
152
+ <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
153
+ <span class="spanboder">
154
+ <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
155
+ <img class="butt3" :src="imgback('表具信息')">
156
+ </span>
157
+ </div>
158
+ <div class="panel-body " v-show="headername == '表具信息'">
159
+ <div class="row auto" style="margin: 5px 0">
160
+ <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</label>
161
+ <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify != '机表'" class="form-control rightipt"
162
+ style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />
163
+ <button type="button"
164
+ :disabled="!(userinfo.meterinfo[0].f_meter_classify == '机表' || userinfo.meterinfo[0].f_meter_classify == '金额卡表' || userinfo.meterinfo[0].f_meter_classify == '气量卡表')"
165
+ name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码
166
+ </button>
167
+ </div>
168
+
169
+ <!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
170
+ <div class="auto">
171
+ <div class="panel" style="padding: 0px 15px 5px 10px;">
172
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
173
+ <div class="row" style="height: 240px;">
174
+ <div class="col-sm-4">
175
+ <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
176
+ </div>
177
+ </div>
178
+ <div class="row text-right div-photo" :class="style__">
179
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
180
+ <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
181
+ </div>
182
+ </div>
183
+ </div>
184
+ </div>
185
+ </div>-->
186
+ <div class="row auto" style="margin: 5px 0">
187
+ <label class="righttxt">通&ensp;气&ensp;人:</label>
188
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_gas_person" />
189
+ </div>
190
+ <div class="row auto" style="margin: 5px 0">
191
+ <label class="righttxt">通气时间:</label>
192
+ <datepicker class="rightipt" :value.sync="userinfo.meterinfo[0].f_gas_date"
193
+ v-model="userinfo.meterinfo[0].f_gas_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'"
194
+ :show-reset-button="reset">
195
+ </datepicker>
196
+ </div>
197
+ <div class="row auto" style="margin: 5px 0" v-show="showBox">
198
+ <label class="righttxt">调&ensp;压&ensp;箱:</label>
199
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_adjustable_id"
200
+ v-model="userinfo.meterinfo[0].f_adjustable_id" placeholder='请选择' :width='wid' readonly
201
+ :options="boxOptions" close-on-select value-single></v-select>
202
+ </div>
203
+ <!-- <div class="row auto" style="margin: 5px 0">
204
+ <label class="righttxt">是否直通:</label>
205
+ <v-select
206
+ :value.sync="userinfo.meterinfo[0].f_if_direct"
207
+ class="input-font"
208
+ style="margin-left: 5%;"
209
+ :width="'60%'"
210
+ v-model="userinfo.meterinfo[0].f_if_direct"
211
+ :options='directOptions'
212
+ placeholder='是否直通'
213
+ close-on-select
214
+ clear-button
215
+ value-single>
216
+ </v-select>
217
+ </div> -->
218
+ <!-- <div class="row auto" style="margin: 5px 0">
219
+ <label class="righttxt">表&ensp;封&ensp;号:</label>
220
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"/>
221
+ </div> -->
222
+ <div class="row auto" style="margin: 5px 0">
223
+ <label class="righttxt">表&ensp;位&ensp;置:</label>
224
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
225
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
226
+ v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly :options="wz_types"
227
+ close-on-select value-single></v-select>
228
+ </div>
229
+ <div class="row auto" style="margin: 5px 0">
230
+ <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;向:</label>
231
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
232
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
233
+ v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
234
+ :options="aroundmeters" close-on-select value-single></v-select>
235
+ </div>
236
+ <div class="row auto" style="margin: 5px 0">
237
+ <label class="righttxt">气表品牌:</label>
238
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasbrand" readonly />
239
+ </div>
240
+ <div class="row auto" style="margin: 5px 0">
241
+ <label class="righttxt">气表型号:</label>
242
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasmodel" readonly />
243
+ </div>
244
+ <div class="row auto" style="margin: 5px 0">
245
+ <label class="righttxt">气表类型:</label>
246
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly />
247
+ </div>
248
+ <div class="row auto" style="margin: 5px 0">
249
+ <label class="righttxt">表前阀状态:</label>
250
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
251
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_bqf_state"
252
+ v-model="userinfo.meterinfo[0].f_bqf_state" placeholder='请选择' :width='wid' readonly :options="bqf_states"
253
+ close-on-select value-single></v-select>
254
+ </div>
255
+ <!-- <div class="row auto" style="margin: 5px 0">
256
+ <div style="display: flex;justify-content: center;">
257
+ <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
258
+ </div>
259
+ </div>-->
260
+ </div>
261
+ </div>
262
+ <div class="panel auto">
263
+ <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
264
+
265
+ <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
266
+ class="butt3" :src="imgback('设备信息')"></span>
267
+ </div>
268
+ <div class="panel-body" v-show="headername == '设备信息'">
269
+ <div class="row" v-for="row in model"
270
+ style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
271
+ <div class="row auto" style="margin: 5px 0">
272
+ <label class="righttxt">设备类型:</label>
273
+ <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
274
+ <v-select class="rightipt" :value.sync="row.f_devices_type" v-model="row.f_devices_type" placeholder='请选择'
275
+ :width='wid' readonly :options="devices_types" close-on-select value-single></v-select>
276
+ </div>
277
+ <div class="row auto" style="margin: 5px 0">
278
+ <label class="righttxt">设备品牌:</label>
279
+ <input type="text" class="form-control rightipt" v-model="row.f_brand" />
280
+ <!-- <v-select class="rightipt" :value.sync="row.f_brand"
281
+ v-model="row.f_brand"
282
+ placeholder='请选择'
283
+ :width='wid'
284
+ readonly
285
+ :options="deviceBrandOption[row.f_devices_type]"
286
+ close-on-select value-single></v-select> -->
287
+ </div>
288
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
289
+ <label class="righttxt">设备型号:</label>
290
+ <input type="text" class="form-control rightipt" v-model="row.f_devices_model" />
291
+ </div>
292
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
293
+ <label class="righttxt">生产日期:</label>
294
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
295
+ <datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
296
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
297
+ </datepicker>
298
+ </div>
299
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
300
+ <label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
301
+ v-model="row.f_service_life" />
302
+ </div>
303
+ <!-- <div class="row auto" style="margin: 5px 0">
304
+ <label class="righttxt">到期日期:</label>
305
+ &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />&ndash;&gt;
306
+ <datepicker class="rightipt"
307
+ :value.sync="row.f_expire_date"
308
+ v-model="row.f_expire_date"
309
+ :disabled-days-of-Week="[]"
310
+ :format="'yyyy-MM-dd'"
311
+ :show-reset-button="reset" readonly="readonly">
312
+ </datepicker>
313
+ </div>-->
314
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
315
+ <label class="righttxt">安&ensp;装&ensp;人:</label><input type="text" class="form-control rightipt"
316
+ v-model="row.f_input_person" />
317
+ </div>
318
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
319
+ <label class="righttxt">安装日期:</label>
320
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
321
+ <datepicker class="rightipt" :value.sync="row.f_input_date" v-model="row.f_input_date"
322
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
323
+ </datepicker>
324
+ </div>
325
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
326
+ <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
327
+ v-model="row.f_devices_num" />
328
+ </div>
329
+ <div class="row auto" style="margin: 5px 0">
330
+ <label class="righttxt">管道类型:</label>
331
+ <v-select class="rightipt" :value.sync="row.f_pipe_type"
332
+ v-model="row.f_pipe_type"
333
+ placeholder='请选择管道类型'
334
+ :width='wid'
335
+ readonly
336
+ :options="pipetypes"
337
+ close-on-select value-single></v-select>
338
+ </div>
339
+ <!--<div class="row auto" style="margin: 5px 0">
340
+ <label class="righttxt">设备状态:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
341
+ </div>-->
342
+ <!--<div class="row auto" style="margin: 5px 0">
343
+ <label class="righttxt">购买方式:</label><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
344
+ </div>-->
345
+ <div style="display: flex;justify-content: center;margin-bottom: 3px"
346
+ v-if="$index > this.userinfo_old.devicesinfo.length - 1 || this.userinfo_old.devicesinfo.length == 0">
347
+ <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
348
+ </div>
349
+ </div>
350
+ <div style="display: flex;justify-content: space-around;">
351
+ <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
352
+ </div>
353
+ </div>
354
+ </div>
355
+ <div class="panel auto">
356
+ <div class="panel-body">
357
+ <div style="display: flex;justify-content: center;">
358
+ <button class="col-sm-3 btn btn-primary" :disabled="enable"
359
+ @click="isNeedAudit ? editUserInfo() : editUserInfoNoAudit()">{{ isNeedAudit ? '上传审核' : '上传' }}</button>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+ <modal :show.sync="limitShow" v-ref="modal" backdrop="false" style="font-size: 15px">
365
+ <div slot="modal-header" class="model-header upuserinfo_sel">
366
+ <h4 class="modal-title" style="text-align: center ;margin-bottom: 15px;margin-top: 15px">
367
+ 限购配置
368
+ </h4>
369
+ </div>
370
+ <div slot="modal-body" class="model-body">
371
+ <div class="row auto" style="margin: 5px 0">
372
+ <label class="righttxt" style="padding-bottom: 5px">第三方缴费:</label>
373
+ <v-select :value.sync="models.f_third_pay" v-model="models.f_third_pay" :options="thirdPays"
374
+ :value-single="true" v-valid:f_third_pay='{ required: true }' close-on-select></v-select>
375
+ </div>
376
+ <div class="row auto" style="margin: 5px 0">
377
+ <label class="righttxt" style="padding-bottom: 5px">限制类型</label>
378
+ <v-select :value.sync="models.f_limit_style" v-model="models.f_limit_style" :options="limitstyle"
379
+ :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
380
+ </div>
381
+ <div class="row auto" style="margin: 5px 0">
382
+ <label class="righttxt" style="padding-bottom: 5px">周期类型</label>
383
+ <v-select :value.sync="models.f_time_type" v-model="models.f_time_type" :options="timeTypes"
384
+ :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
385
+ </div>
386
+ <div class="row auto" style="margin: 5px 0">
387
+ <label class="righttxt" style="padding-bottom: 5px">周期时长</label>
388
+ <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_time_value" />
389
+ </div>
390
+ <div class="row auto" style="margin: 5px 0">
391
+ <label class="righttxt" style="padding-bottom: 5px">限制次数</label>
392
+ <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_times" />
393
+ </div>
394
+ <div class="row auto">
395
+ <label class="righttxt" style="padding-bottom: 5px">单次限购</label>
396
+ <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_value" />
397
+ </div>
398
+ <div class="row auto" style="margin: 5px 0">
399
+ <label class="righttxt" style="padding-bottom: 5px">支付限制</label>
400
+ <v-select :value.sync="models.f_limit_type" v-model="models.f_limit_type" :options="limitTypes"
401
+ :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
402
+ </div>
403
+ <div class="row auto" style="margin: 5px 0">
404
+ <label class="righttxt" style="padding-bottom: 5px">执行时间</label>
405
+ <datepicker class="rightipt" style="margin-left: 0px" :value.sync="models.f_start_date"
406
+ v-model="models.f_start_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset">
407
+ </datepicker>
408
+ </div>
409
+ <div class="row auto" style="margin: 5px 0">
410
+ <label class="righttxt" style="padding-bottom: 5px">限制状态</label>
411
+ <v-select :value.sync="models.f_status" v-model="models.f_status" :options="fstatus" :value-single="true"
412
+ v-valid:f_status='{ required: true }' close-on-select></v-select>
413
+ </div>
414
+ </div>
415
+ <div slot="modal-footer" style="text-align: center" class="modal-footer">
416
+ <button type="button" class="btn btn-primary" :disabled="!$v.valid" @click="confirmLimitGas">确认</button>
417
+ <button type="button" class="btn btn-default" @click="cancel()">取消</button>
418
+ </div>
419
+ </modal>
420
+ </template>
421
+
422
+ <script>
423
+ import { HttpResetClass } from 'vue-client'
424
+ import * as Util from "../../Util";
425
+ import Vue from 'vue'
426
+
427
+ export default {
428
+ title: '设备查看',
429
+ data() {
430
+ return {
431
+ editAddress:false,
432
+ userphone: [],
433
+ pipetypes:Vue.$appdata.getParam('管道类型'),
434
+ models: {
435
+ f_status: '',
436
+ f_time_value: '',
437
+ f_third_pay: '0',
438
+ f_limit_style: '',
439
+ f_time_type: '按月',
440
+ f_limit_type: '气量',
441
+ f_limit_times: '',
442
+ f_limit_value: '',
443
+ f_start_date: this.$login.toStandardDateString(),
444
+ },
445
+ thirdPays: [{ label: '支持', value: '1' }, { label: '不支持', value: '0' }],
446
+ timeTypes: [{ label: '按月', value: '按月' }, { label: '按日', value: '按日' }],
447
+ limitTypes: [{ label: '气量', value: '气量' }, { label: '金额', value: '金额' }],
448
+ limitstyle: [{ label: '按次数', value: '按次数' }, { label: '按总量', value: '按总量' }],
449
+ fstatus: [{ label: '有效', value: '有效' }, { label: '无效', value: '无效' }],
450
+ limitShow: false,
451
+ limit_gas: null,
452
+ model: [],
453
+ show: false,
454
+ row: Object,
455
+ userinfo: Object,
456
+ userinfo_old: Object,
457
+ wid: "60%",
458
+ aroundmeters: [],
459
+ devices_types: [],
460
+ pipe_types: [{ label: '橡胶管', value: '橡胶管' }, { label: '波纹管', value: '波纹管' }, { label: '钢管', value: '钢管' }],
461
+ wz_types: [],
462
+ cityTypes: [{ label: '市区', value: '市区' }, { label: '城镇', value: '城镇' }],
463
+ bqf_states: [{ label: '开阀', value: '开阀' }, { label: '关阀', value: '关阀' }],
464
+ pcds: [],
465
+ streets: [],
466
+ update: false,
467
+ headername: '',
468
+ excessive: false,
469
+ area: [],
470
+ enable: false,
471
+ f_meterno_path: Vue.nopic,
472
+ selectArea: { id: '' },
473
+ selectPcd: { id: '' },
474
+ selectStreet: { id: '' },
475
+ changemeterno: false,//是否修改了机表表号
476
+ approveChange: false,//是否需要进行信息变更审核
477
+ newAddress: '',
478
+ addressType: '',
479
+ //需要审核的字段
480
+ checkField: {
481
+ checkUserinfoField: [
482
+ 'f_user_name'
483
+ ],
484
+ checkUserFilesField: [
485
+ 'f_meternumber'
486
+ ],
487
+ checkAddressField: [
488
+ 'f_pcd_id',
489
+ 'f_street_id',
490
+ 'f_residential_area_id',
491
+ 'f_building',
492
+ 'f_unit',
493
+ 'f_floor',
494
+ 'f_room',
495
+ 'f_slice_area',
496
+ 'f_special',
497
+ 'f_address'
498
+ ],
499
+ },
500
+ boxOptions: [],
501
+ showBox: false,
502
+ directOptions: [{ label: '是', value: '是' }, { label: '否', value: '否' }],
503
+ deviceBrandOption: {},
504
+ isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
505
+ }
506
+ },
507
+ props: {
508
+ user: {
509
+ type: Object
510
+ },
511
+ f_userinfo_id: '',
512
+ f_source: ''
513
+ },
514
+ methods: {
515
+ limitClick() {
516
+ this.limitShow = true
517
+ },
518
+ cancel() {
519
+ this.limitShow = false
520
+ },
521
+ getLimitGas(val) {
522
+ this.limit_gas = val
523
+ },
524
+ scan() {
525
+ HostApp.__this__ = this,
526
+ HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
527
+ },
528
+ getCode() {
529
+ var datapa = HostApp.getCode().data;
530
+ //tag
531
+ this.userinfo.meterinfo[0].f_meternumber = datapa
532
+ },
533
+ //数据检查
534
+ checkVal() {
535
+ //检查一些必要信息是否未填
536
+ this.approveChange = false
537
+ this.changemeterno = false
538
+ let checked = { ischeck: true, msg: '' }
539
+ //tag
540
+ //tag
541
+ //tag
542
+ if (!this.userinfo.baseinfo.base.f_user_name) {
543
+ checked = { ischeck: false, msg: '请输入用户名称!' }
544
+ }
545
+ if (!this.selectPcd.id) {
546
+ checked = { ischeck: false, msg: '请选择省市区!' }
547
+ }
548
+ if (!this.selectStreet.id) {
549
+ checked = { ischeck: false, msg: '请选择街道!' }
550
+ }
551
+ if (!this.userinfo.addressinfo.f_address) {
552
+ checked = { ischeck: false, msg: '新地址不能为空!' }
553
+ }
554
+ if (this.addressType == '普通地址') {
555
+ if (!this.selectArea.id) {
556
+ checked = { ischeck: false, msg: '请选择集收单位!' }
557
+ }
558
+ if (!this.userinfo.addressinfo.f_room) {
559
+ checked = { ischeck: false, msg: '新输入门牌号!' }
560
+ }
561
+ }
562
+ if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
563
+
564
+ //tag
565
+ //tag
566
+ if (this.userinfo.meterinfo[0].f_meternumber) {
567
+ if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
568
+ if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
569
+ checked = { ischeck: false, msg: '请拍摄表号照片!' }
570
+ } else {
571
+ //用来标识当前有修改机表表号,后台需要进行照片上传
572
+ this.changemeterno = true
573
+ }
574
+ }
575
+ } else {
576
+ checked = { ischeck: false, msg: '请输入表号!' }
577
+ }
578
+ }
579
+ //检查本次修改信息中是否包含需要审核的内容
580
+ for (let check in this.checkField) {
581
+ //tag
582
+ if (typeof check != 'function') {
583
+ for (let i = 0; i < this.checkField[check].length; i++) {
584
+ //tag
585
+ if (check == 'checkUserinfoField') {
586
+ //tag
587
+ //tag
588
+ if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
589
+ //tag
590
+ this.approveChange = true
591
+ }
592
+ } else if (check == 'checkUserFilesField') {
593
+ //tag
594
+ //tag
595
+ if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
596
+ //tag
597
+ this.approveChange = true
598
+ }
599
+ } else if (check == 'checkAddressField') {
600
+ //tag
601
+ //tag
602
+ if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
603
+ //tag
604
+ this.approveChange = true
605
+ }
606
+ }
607
+ }
608
+ }
609
+ }
610
+ //tag
611
+ return checked
612
+ },
613
+ select_search(text) {
614
+ //tag
615
+ if (this.selectStreet.id) {
616
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
617
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
618
+ data: {
619
+ items: "*",
620
+ tablename: "t_area",
621
+ orderitem: "id",
622
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
623
+ }
624
+ }, { resolveMsg: null, rejectMsg: null }).then((res) => {
625
+ //tag)
626
+ if (res.data.length > 0) {
627
+ this.area = []
628
+ res.data.forEach((result) => {
629
+ this.area.push({ label: result.f_residential_area, value: result })
630
+ })
631
+ }
632
+ })
633
+ } else {
634
+ this.area = []
635
+ }
636
+ },
637
+ cameraCallBack(prop, fileName) {
638
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
639
+ //tag
640
+ HostApp.__callback__ = null
641
+ HostApp.__this__ = null
642
+ },
643
+ takePic(prop, title) {
644
+ HostApp.__callback__ = this.cameraCallBack
645
+ HostApp.__this__ = this
646
+ //tag
647
+ let fileName
648
+ if (!this[prop] || this[prop].includes("nopic.png")) {
649
+ fileName = Util.guid() + '-' + prop + '.jpg'
650
+ } else {
651
+ fileName = Util.getFileName(this[prop])
652
+ }
653
+ HostApp._open_a_page({
654
+ type: 'boomerang',
655
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
656
+ param: {
657
+ file: fileName,
658
+ requestCode: 111,
659
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
661
+ }
662
+ })
663
+ },
664
+ delfile(prop, fileName) {
665
+ if (fileName == Vue.nopic)
666
+ return
667
+ else {
668
+ HostApp.delfile(fileName)
669
+ this[prop] = Vue.nopic
670
+ }
671
+ },
672
+ editUserInfoNoAudit() {
673
+ let checked = this.checkVal()
674
+ if (!checked.ischeck) {
675
+ this.$showMessage(checked.msg)
676
+ return
677
+ }
678
+ for (let i = 0; i < this.model.length; i++) {
679
+ this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
680
+ }
681
+ if (this.userphone[0].f_rent_phone) {
682
+ this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
683
+ }
684
+ this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
685
+ if (res === 'confirm') {
686
+ this.excessive = true
687
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
688
+ // userinfoms.f_user_name=row.f_user_name
689
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
690
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
691
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
692
+ userinfoms.f_operator_record = Vue.user.name
693
+ userinfoms.f_operatorid_record = Vue.user.id
694
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
695
+ userinfoms.f_orgid_record = Vue.user.orgid
696
+ userinfoms.f_orgname_record = Vue.user.orgs
697
+ userinfoms.f_depid_record = Vue.user.depids
698
+ userinfoms.f_depname_record = Vue.user.deps
699
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
700
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
701
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
702
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
703
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
704
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
705
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
706
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
707
+ userinfoms.userfiles = []
708
+ userinfoms.userphone = this.userphone
709
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
710
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
711
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
712
+ data: {
713
+ userinfo: userinfoms,
714
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
715
+ address: {
716
+ id: this.userinfo_old.addressinfo.id,
717
+ oldid: this.userinfo_old.addressinfo.id,
718
+ f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
719
+ }
720
+ }
721
+ }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
722
+ if (res1.data.status == 200) {
723
+ let data = this.userinfo.addressinfo
724
+ data.f_address = this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
725
+ //
726
+ data.f_operator = Vue.user.name
727
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/address_updateuseraddress`, { data: data }).then((res2) => {
728
+ this.$showMessage("修改用户地址信息成功!")
729
+ }).catch(error => {
730
+ this.$showMessage("修改用户地址信息!")
731
+ })
732
+ this.$showMessage("修改用户信息成功!")
733
+ this.enable = true
734
+ this.excessive = false
735
+ }
736
+ }).catch((msg) => {
737
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
738
+ this.excessive = false
739
+ })
740
+ }
741
+ })
742
+ },
743
+ editUserInfo() {
744
+ let checked = this.checkVal()
745
+ if (!checked.ischeck) {
746
+ this.$showMessage(checked.msg)
747
+ return
748
+ }
749
+
750
+ if (this.userphone[0].f_rent_phone) {
751
+ this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
752
+ }
753
+
754
+ this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
755
+ if (res === 'confirm') {
756
+ this.excessive = true
757
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
758
+ //userinfoms.f_user_name=row.f_user_name
759
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
760
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
761
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
762
+ userinfoms.f_operator_record = Vue.user.name
763
+ userinfoms.f_operatorid_record = Vue.user.id
764
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
765
+ userinfoms.f_orgid_record = Vue.user.orgid
766
+ userinfoms.f_orgname_record = Vue.user.orgs
767
+ userinfoms.f_depid_record = Vue.user.depids
768
+ userinfoms.f_depname_record = Vue.user.deps
769
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
770
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
771
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
772
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
773
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
774
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
775
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
776
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
777
+ userinfoms.userfiles = []
778
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
779
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
780
+ userinfoms.userphone = this.userphone
781
+ //tag)
782
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
783
+ data: {
784
+ userinfo: userinfoms,
785
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
786
+ address: { id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id }
787
+ }
788
+ }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
789
+ //tag+res1.data.status)
790
+ if (res1.data.status == 200) {
791
+ //本次修改信息包含需要审核信息
792
+ if (this.approveChange) {
793
+ //tag
794
+ let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
795
+ row: {
796
+ f_time: Util.toStandardTimeString(),
797
+ f_modifier: Vue.user.name,//Vue.user.name
798
+ f_modifier_id: Vue.user.id,//Vue.user.id
799
+ f_modify_type: '用户档案',
800
+ f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
801
+ f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
802
+ f_approved: '未审核',
803
+ filialestr: Vue.user.orgid,//Vue.user.orgid
804
+ version: 1,
805
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
806
+ f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
807
+ f_street: this.userinfo.addressinfo.f_street,
808
+ f_building: this.userinfo.addressinfo.f_building,
809
+ f_unit: this.userinfo.addressinfo.f_unit,
810
+ f_floor: this.userinfo.addressinfo.f_floor,
811
+ f_room: this.userinfo.addressinfo.f_room,
812
+ f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
813
+ f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
814
+ f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
815
+ f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
816
+ f_residential_area: this.userinfo.addressinfo.f_residential_area,
817
+ f_address: this.userinfo.addressinfo.f_address,
818
+ f_pcd: this.userinfo.addressinfo.f_pcd,
819
+ f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
820
+ f_street_id: this.userinfo.addressinfo.f_street_id,
821
+ f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
822
+ f_used_name: this.userinfo.baseinfo.base.f_used_name,
823
+ f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
824
+ f_slice_area: this.userinfo.addressinfo.f_slice_area,
825
+ f_remark: this.userinfo.baseinfo.base.f_remark,
826
+ f_source: this.f_source,
827
+ f_meterno_path: this.f_meterno_path,
828
+ f_iscity: this.userinfo.addressinfo.f_iscity,
829
+ f_special: this.userinfo.addressinfo.f_special,
830
+ f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
831
+ changemeterno: this.changemeterno
832
+ },
833
+ tablename: 't_modify_userinfo'
834
+ })
835
+ //tag)
836
+ if (res2.code == 200) {
837
+ this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
838
+ this.enable = true
839
+ this.excessive = false
840
+ } else {
841
+ this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
842
+ this.excessive = false
843
+ }
844
+ } else {
845
+ this.$showMessage("修改用户信息成功!")
846
+ this.enable = true
847
+ this.excessive = false
848
+ }
849
+ }
850
+ }).catch((msg) => {
851
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
852
+ this.excessive = false
853
+ })
854
+ }
855
+ })
856
+ },
857
+ imgback(header) {
858
+ if (this.headername == header) {
859
+ return require('../../../assets/xiangxia1.png')
860
+ } else {
861
+ return require('../../../assets/xiangyou1.png')
862
+ }
863
+ this.headername = header
864
+ },
865
+ selectVal(header) {
866
+ if (this.headername == header) {
867
+ this.headername = ''
868
+ } else {
869
+ this.headername = header
870
+ }
871
+ },
872
+ changeNewAddress() {
873
+ this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
874
+ },
875
+ area_change() {
876
+ //tag
877
+ this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
878
+ this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
879
+ this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
880
+ this.changeNewAddress()
881
+ //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
882
+ },
883
+ async street_change() {
884
+ //tag
885
+ if (this.selectStreet.id) {
886
+ //如果街道改变--给街道赋值!
887
+ this.userinfo.addressinfo.f_street = this.selectStreet.f_street
888
+ this.userinfo.addressinfo.f_street_id = this.selectStreet.id
889
+ this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
890
+ //清空当前选中小区的值
891
+ this.userinfo.addressinfo.f_residential_area = ''
892
+ this.userinfo.addressinfo.f_residential_area_id = ''
893
+ this.userinfo.addressinfo.f_slice_area = ''
894
+ this.selectArea = { id: '' }
895
+ this.area = []
896
+ let pcdText = ` and f_street_id=${this.selectStreet.id}`
897
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
898
+ data: {
899
+ items: "*",
900
+ tablename: "t_area",
901
+ orderitem: "id",
902
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
903
+ }
904
+ }, { resolveMsg: null, rejectMsg: null })
905
+ ////tag)
906
+ res.data.forEach((result) => {
907
+ this.area.push({ label: result.f_residential_area, value: result })
908
+ })
909
+ } else {
910
+ this.area = []
911
+ }
912
+ this.changeNewAddress()
913
+ },
914
+ async pcd_change() {
915
+ //tag
916
+ if (this.selectPcd.id) {
917
+ //tag
918
+ //如果省市区改变-重新赋值
919
+ this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
920
+ this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
921
+ //清空 选中的街道和集收单位
922
+ this.selectStreet = { id: '' }
923
+ this.userinfo.addressinfo.f_street = ''
924
+ this.userinfo.addressinfo.f_street_id = ''
925
+ this.userinfo.addressinfo.f_iscity = ''
926
+ this.selectArea = { id: '' }
927
+ this.userinfo.addressinfo.f_residential_area = ''
928
+ this.userinfo.addressinfo.f_residential_area_id = ''
929
+ this.userinfo.addressinfo.f_slice_area = ''
930
+ this.streets = []
931
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
932
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
933
+ data: {
934
+ items: "*",
935
+ tablename: "t_street",
936
+ orderitem: "id",
937
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
938
+ }
939
+ }, { resolveMsg: null, rejectMsg: null })
940
+ streetlist.data.forEach((result) => {
941
+ this.streets.push({ label: result.f_street, value: result })
942
+ })
943
+ } else {
944
+ this.streets = []
945
+ }
946
+ this.changeNewAddress()
947
+ },
948
+ upUserState() {
949
+ //tag)
950
+ if (this.userinfo.meterinfo[0].f_table_state == '正常') {
951
+ let data = {
952
+ f_userfiles_id: {
953
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
954
+ f_table_state: '停用',
955
+ version: this.userinfo.meterinfo[0].version
956
+ },
957
+ f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
958
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
959
+ f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
960
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
961
+ f_comments: '安检时发现问题关闭阀门',
962
+ f_othereason: '',
963
+ f_operat_type: '停用',
964
+ f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
965
+ f_state: '有效',
966
+ f_operator: Vue.user.name,//${Vue.$login.f.name}
967
+ f_operatorid: Vue.user.id,
968
+ f_orgid: Vue.user.orgid,
969
+ f_orgname: Vue.user.orgs,
970
+ f_depid: Vue.user.depids,
971
+ f_depname: Vue.user.deps,
972
+ f_zoneid: Vue.user.zoneid,
973
+ f_zones: Vue.user.zones
974
+ }
975
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
976
+ data, { resolveMsg: null, rejectMsg: null }).then((row) => {
977
+ this.$showMessage('已成功关阀停气!')
978
+ this.userinfo.meterinfo[0].f_table_state = '停用'
979
+ })
980
+ } else {
981
+ this.$showMessage('该用户已被关阀停用,请勿重复操作!')
982
+ }
983
+
984
+ },
985
+ addDevices() {
986
+ //Vue.user.name
987
+ let obj = {
988
+ "f_operator": Vue.user.name,
989
+ "f_picture": null,
990
+ "f_pipe_type": null,
991
+ "f_pipeinstall_date": null,
992
+ "f_pipe_connection": null,
993
+ "f_expire_date": null,
994
+ "f_pipeexpire_date": null,
995
+ "f_comments": null,
996
+ "f_operate_date": Util.toStandardTimeString(),
997
+ "f_operatorid": Vue.user.id,
998
+ "f_devices_num": null,
999
+ "f_process_id": null,
1000
+ "f_devices_type": null,
1001
+ "f_make_date": null,
1002
+ "f_input_date": null,
1003
+ "f_state": "有效",
1004
+ "f_brand": null,
1005
+ "f_devices_model": null,
1006
+ "f_devices_no": null,
1007
+ "img": { "content": null, "filename": null }
1008
+ }
1009
+ this.model.push(obj)
1010
+ },
1011
+ delDevices(idx) {
1012
+ //tag
1013
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1014
+ if (res === 'confirm') {
1015
+ this.model.splice(idx, 1)
1016
+ }
1017
+ })
1018
+ },
1019
+ async getAreaList(text) {
1020
+ if (this.selectStreet.id) {
1021
+ this.area = []
1022
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1023
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1024
+ data: {
1025
+ items: "*",
1026
+ tablename: "t_area",
1027
+ orderitem: "id",
1028
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1029
+ }
1030
+ }, { resolveMsg: null, rejectMsg: null })
1031
+ ////tag)
1032
+ res.data.forEach((result) => {
1033
+ this.area.push({ label: result.f_residential_area, value: result })
1034
+ })
1035
+ //tag
1036
+ this.area.push({
1037
+ label: this.userinfo.addressinfo.f_residential_area,
1038
+ value: {
1039
+ id: this.userinfo.addressinfo.f_residential_area_id,
1040
+ f_residential_area: this.userinfo.addressinfo.f_residential_area
1041
+ }
1042
+ })
1043
+ } else {
1044
+ this.area = []
1045
+ }
1046
+
1047
+ },
1048
+ async getStreetList() {
1049
+ if (this.selectPcd.id) {
1050
+ //tag
1051
+ this.streets = []
1052
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1053
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1054
+ data: {
1055
+ items: "*",
1056
+ tablename: "t_street",
1057
+ orderitem: "id",
1058
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1059
+ }
1060
+ }, { resolveMsg: null, rejectMsg: null })
1061
+ streetlist.data.forEach((result) => {
1062
+ //如果第一次进来有地址id 就拿下地址区域
1063
+ if (this.selectStreet.id && this.selectStreet.id == result.id) {
1064
+ //tag)
1065
+ this.userinfo.addressinfo.f_iscity = result.f_iscity
1066
+ }
1067
+ this.streets.push({ label: result.f_street, value: result })
1068
+ })
1069
+ } else {
1070
+ this.streets = []
1071
+ }
1072
+ },
1073
+ async confirmLimitGas() {
1074
+ this.$dispatch('limit', this.models);
1075
+ console.log('提交限购数据', this.models);
1076
+ let restrict = {
1077
+ f_third_pay: this.models.f_third_pay,
1078
+ f_time_type: this.models.f_time_type,
1079
+ f_limit_times: this.models.f_limit_times,
1080
+ f_time_value: this.models.f_time_value,
1081
+ f_limit_type: this.models.f_limit_type,
1082
+ f_limit_style: this.models.f_limit_style,
1083
+ f_limit_value: this.models.f_limit_value,
1084
+ f_limit_amount: this.models.f_limit_amount,
1085
+ f_operator: Vue.user.name,
1086
+ f_status: this.models.f_status,
1087
+ f_start_date: this.$login.toStandardDateString()
1088
+ };
1089
+ let operInfo = {
1090
+ f_operator: Vue.user.name,
1091
+ f_operatorid: Vue.user.id,
1092
+ f_orgid: Vue.user.orgid,
1093
+ f_orgname: Vue.user.orgs,
1094
+ f_depid: Vue.user.depids,
1095
+ f_depname: Vue.user.deps,
1096
+ };
1097
+ let user = {
1098
+ f_userinfo_id: this.f_userinfo_id,
1099
+ f_user_name: this.f_user_name,
1100
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1101
+ f_table_state: this.userinfo.meterinfo[0].f_table_state,
1102
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
1103
+ };
1104
+ let param = {
1105
+ restrict,
1106
+ user,
1107
+ operInfo
1108
+ };
1109
+ console.log('提交限购数据', JSON.stringify(param));
1110
+ let http = new HttpResetClass();
1111
+ await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/limitGas`, {
1112
+ data: param
1113
+ });
1114
+ },
1115
+ changeAddressType(val) {
1116
+ //tag
1117
+ if (this.addressType == '普通地址') {
1118
+ this.userinfo.addressinfo.f_special = null
1119
+ } else if (this.addressType == '特殊地址') {
1120
+ this.userinfo.addressinfo.f_special = 1
1121
+ this.userinfo.addressinfo.f_building = null
1122
+ this.userinfo.addressinfo.f_unit = null
1123
+ this.userinfo.addressinfo.f_floor = null
1124
+ this.userinfo.addressinfo.f_room = null
1125
+ }
1126
+ this.changeNewAddress()
1127
+ }
1128
+
1129
+ },
1130
+ computed: {
1131
+ getAddress() {
1132
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1133
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1134
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
1135
+ (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
1136
+ (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
1137
+ (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
1138
+ (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
1139
+ },
1140
+ getAddressTS() {
1141
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1142
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1143
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
1144
+ }
1145
+ },
1146
+ watch: {
1147
+
1148
+ /*'selectPcd.id' (val) {
1149
+ //tag
1150
+ if(this.selectPcd.id){
1151
+ this.getStreetList()
1152
+ }
1153
+ },
1154
+ 'selectStreet.id' (val) {
1155
+ //tag
1156
+ if(this.selectStreet.id){
1157
+ this.getAreaList()
1158
+ }
1159
+ }*/
1160
+ },
1161
+ async ready() {
1162
+ console.log(Vue.user);
1163
+ console.log()
1164
+ this.editAddress = !(Vue.user.r.includes('手机端修改地址'))
1165
+ console.log(this.editAddress)
1166
+ /*//tag)
1167
+ {{)}}
1168
+
1169
+ //tag)
1170
+ //tag)*/
1171
+ //this.f_userinfo_id=1102260
1172
+ //this.f_userinfo_id=1997541
1173
+ if (!this.f_userinfo_id) {
1174
+ this.$showMessage("未检测到用户!")
1175
+ this.enable = true
1176
+ return
1177
+ }
1178
+ try {
1179
+
1180
+ this.devices_types = Vue.$appdata.getParam('设备类型')
1181
+ console.log('this.devices_types=', JSON.stringify(this.devices_types))
1182
+ for (const devices_type of this.devices_types) {
1183
+ console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1184
+ this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1185
+ }
1186
+ console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1187
+ this.wz_types = Vue.$appdata.getParam('安装位置')
1188
+ this.aroundmeters = Vue.$appdata.getParam('左右表')
1189
+
1190
+ ////tag)
1191
+ this.excessive = true
1192
+ //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1193
+
1194
+ let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1195
+ data: {
1196
+ items: "*",
1197
+ tablename: "t_pcd",
1198
+ orderitem: "id",
1199
+ condition: `f_orgid = '${Vue.user.orgid}'`
1200
+ }
1201
+ }, { resolveMsg: null, rejectMsg: null })
1202
+ //tag)
1203
+ pcdlist.data.forEach((result) => {
1204
+ this.pcds.push({ label: result.f_pcd, value: result })
1205
+ })
1206
+ ////tag)
1207
+ let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
1208
+ //f_userinfo_code:'12381344',
1209
+ f_userinfo_id: this.f_userinfo_id
1210
+ }, { resolveMsg: null, rejectMsg: null })
1211
+ //tag
1212
+ //tag
1213
+ this.userinfo = res.data
1214
+ if (this.userinfo.meterinfo[0].f_user_type == '民用'){
1215
+ this.devices_types = Vue.$appdata.getParam('民用设备类型')
1216
+ }
1217
+ this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1218
+ this.model = this.userinfo.meterinfo[0].devicesinfo
1219
+ this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1220
+ this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1221
+ this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1222
+ this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1223
+ this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1224
+ await this.getStreetList()
1225
+ await this.getAreaList()
1226
+ this.excessive = false
1227
+ this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1228
+ //this.userinfo.addressinfo.f_special=1
1229
+ //tag
1230
+ let userphone = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1231
+ data: {
1232
+ items: "*",
1233
+ tablename: "t_user_phone",
1234
+ orderitem: "id",
1235
+ condition: `f_userinfo_id = '${this.f_userinfo_id}' and f_state = '有效'`
1236
+ }
1237
+ }, { resolveMsg: null, rejectMsg: null })
1238
+ let tempObj = {
1239
+ id: null,
1240
+ f_userinfo_id: this.f_userinfo_id,
1241
+ f_rent_phone: '',
1242
+ f_state: '有效',
1243
+ f_orgid: Vue.user.orgid,
1244
+ f_orgname: Vue.user.orgs,
1245
+ f_depid: Vue.user.depids,
1246
+ f_depname: Vue.user.deps,
1247
+ f_operatorid: Vue.user.id,
1248
+ f_operator: Vue.user.id
1249
+ }
1250
+ if (userphone.data.length == 0) {
1251
+ this.userphone.push(tempObj)
1252
+ this.userphone.push(tempObj)
1253
+ } else {
1254
+ if (userphone.data.length == 1) {
1255
+ this.userphone = userphone.data
1256
+ this.userphone.push(tempObj)
1257
+ } else {
1258
+ this.userphone = userphone.data
1259
+ }
1260
+ }
1261
+ } catch (e) {
1262
+ this.excessive = false
1263
+ this.enable = true
1264
+ this.$showMessage('获取用户信息出错,请检查网络状况!')
1265
+ }
1266
+ new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, { data: {} }, {
1267
+ resolveMsg: null,
1268
+ rejectMsg: null
1269
+ }).then((addressUnit) => {
1270
+ //tag
1271
+ //tag
1272
+ //tag
1273
+ //tag
1274
+ this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1275
+ this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1276
+ this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1277
+ this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1278
+ }).catch((msg) => {
1279
+ //tag)
1280
+ })
1281
+ this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1282
+ console.log(this.showBox)
1283
+ if (this.showBox) {
1284
+ // 获取调压箱
1285
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1286
+ resolveMsg: null,
1287
+ rejectMsg: null
1288
+ }).then((res) => {
1289
+ const boxOptions = []
1290
+ for (const data of res.data) {
1291
+ const one = {
1292
+ label: data.f_adjustable_id + data.f_adjustable_name,
1293
+ value: Number(data.f_adjustable_id)
1294
+ }
1295
+ boxOptions.push(one)
1296
+ }
1297
+ this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1298
+ console.log(this.boxOptions)
1299
+ }).catch((msg) => {
1300
+ //tag)
1301
+ })
1302
+ }
1303
+ }
1304
+ }
1305
+ </script>
1306
+ <style lang="less" scoped>
1307
+ .butt3 {
1308
+ float: right;
1309
+ width: 12px;
1310
+ margin: 1% 2% 0 0;
1311
+ }
1312
+
1313
+ .rightipt {
1314
+ width: 60%;
1315
+ float: left;
1316
+ margin-left: 5%;
1317
+ }
1318
+
1319
+ .righttxt {
1320
+ border: none;
1321
+ margin-left: 5px;
1322
+ /*border-left: 5px solid #A2C2EB;*/
1323
+ float: left;
1324
+ width: 25%;
1325
+ margin-bottom: 3px;
1326
+ text-align: left;
1327
+ word-wrap: break-word;
1328
+ white-space: normal;
1329
+ }
1330
+
1331
+ .tit1 {
1332
+ /*background: #ffffff url('../../../assets/用户姓名.png') no-repeat fixed center;*/
1333
+ background-image: url('../../../assets/用户姓名.png');
1334
+ background-repeat: no-repeat;
1335
+ background-position: center;
1336
+ }
1337
+
1338
+ .spanboder {
1339
+ border-bottom: 2px solid #499edf;
1340
+ padding-bottom: 8px
1341
+ }
1342
+
1343
+ #upuserinfo_sel /deep/ ul {
1344
+ width: 100% !important;
1345
+ left: 0 !important;
1346
+ }
1347
+
1348
+ .btn-photo {
1349
+ border: 0;
1350
+ border-radius: 7px;
1351
+ background-color: #7dc1f4;
1352
+ font: 15px PingFang-SC-Bold;
1353
+ height: 20%;
1354
+ }
1355
+
1356
+ .panel-self {
1357
+ border-radius: 10px;
1358
+ border: 1px solid #499EDF;
1359
+ background-color: #F8F8F8;
1360
+ }
1361
+
1362
+ .div-photo {
1363
+ width: auto;
1364
+ height: auto;
1365
+ /* margin-top: 10px; */
1366
+ position: absolute;
1367
+ bottom: 10px;
1368
+ right: 10px;
1369
+ }
1370
+ </style>
1371
+ <style lang="less">
1372
+ #upuserinfo_sel ul {
1373
+ width: 100% !important;
1374
+ left: 0 !important;
1375
+ }
1376
+ </style>