safecheck-client 4.0.2-65 → 4.0.2-66

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