safecheck-client 3.0.39-8 → 3.0.39-80

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