safecheck-client 3.0.39-35 → 3.0.39-37

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