safecheck-client 3.0.39-57 → 3.0.39-59

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