safecheck-client 3.0.39-78 → 3.0.39-79

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