safecheck-client 3.0.39-59 → 3.0.39-60

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 (242) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.trae/.ignore +0 -0
  4. package/.vscode/settings.json +3 -0
  5. package/android.html +18 -18
  6. package/config/dev.env.js +6 -6
  7. package/config/index.js +38 -38
  8. package/config/prod.env.js +3 -3
  9. package/config/test.env.js +6 -6
  10. package/docs/AppBase.md +22 -22
  11. package/docs/Busy.md +14 -14
  12. package/docs/CriteriaPaged.md +47 -47
  13. package/docs/DataGrid.md +54 -54
  14. package/docs/DataModel.md +22 -22
  15. package/docs/Dynamic.md +42 -42
  16. package/docs/GetParams.md +11 -11
  17. package/docs/HttpBusy.md +13 -13
  18. package/docs/HttpStore.md +29 -29
  19. package/docs/MessageBox.md +28 -28
  20. package/docs/PagedList.md +29 -29
  21. package/docs/Pager.md +21 -21
  22. package/docs/Project.md +23 -23
  23. package/docs/Route.md +105 -105
  24. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  25. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  26. package/docs/Task.md +46 -46
  27. package/docs/TreeList.md +28 -28
  28. package/docs/TreeMixin.md +18 -18
  29. package/docs/all.md +10 -10
  30. package/docs/list.md +42 -42
  31. package/docs/partial.md +75 -75
  32. package/docs/selector.md +82 -82
  33. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  34. 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
  35. 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
  36. 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
  37. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  38. package/examples/AddressList/App.vue +13 -13
  39. package/examples/AddressList/index.html +11 -11
  40. package/examples/DispatchList/App.vue +10 -10
  41. package/examples/DispatchList/BaseTree.vue +13 -13
  42. package/examples/DispatchList/Init.vue +22 -22
  43. package/examples/DispatchList/Test.vue +20 -20
  44. package/examples/DispatchList/index.html +11 -11
  45. package/examples/DispatchList/main.js +18 -18
  46. package/home.html +16 -16
  47. package/package.json +134 -134
  48. package/publish.bat +7 -7
  49. package/release.bat +5 -5
  50. package/src/Widget.vue +13 -13
  51. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  52. package/src/android-bootstrap/less/.csscomb.json +304 -304
  53. package/src/android-bootstrap/less/.csslintrc +19 -19
  54. package/src/android-bootstrap/less/alerts.less +73 -73
  55. package/src/android-bootstrap/less/badges.less +66 -66
  56. package/src/android-bootstrap/less/bootstrap.less +56 -56
  57. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  58. package/src/android-bootstrap/less/button-groups.less +247 -247
  59. package/src/android-bootstrap/less/buttons.less +173 -173
  60. package/src/android-bootstrap/less/carousel.less +269 -269
  61. package/src/android-bootstrap/less/close.less +34 -34
  62. package/src/android-bootstrap/less/code.less +69 -69
  63. package/src/android-bootstrap/less/component-animations.less +33 -33
  64. package/src/android-bootstrap/less/grid.less +84 -84
  65. package/src/android-bootstrap/less/input-groups.less +167 -167
  66. package/src/android-bootstrap/less/jumbotron.less +52 -52
  67. package/src/android-bootstrap/less/labels.less +64 -64
  68. package/src/android-bootstrap/less/list-group.less +141 -141
  69. package/src/android-bootstrap/less/media.less +66 -66
  70. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  71. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  72. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  73. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  74. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  75. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  76. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  77. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  78. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  79. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  80. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  81. package/src/android-bootstrap/less/mixins/image.less +33 -33
  82. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  83. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  84. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  85. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  86. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  87. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  88. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  89. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  90. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  91. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  92. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  93. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  94. package/src/android-bootstrap/less/mixins/size.less +10 -10
  95. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  96. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  97. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  98. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  99. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  100. package/src/android-bootstrap/less/mixins.less +40 -40
  101. package/src/android-bootstrap/less/modals.less +151 -151
  102. package/src/android-bootstrap/less/navbar.less +660 -660
  103. package/src/android-bootstrap/less/navs.less +290 -290
  104. package/src/android-bootstrap/less/normalize.less +424 -424
  105. package/src/android-bootstrap/less/pager.less +76 -76
  106. package/src/android-bootstrap/less/pagination.less +89 -89
  107. package/src/android-bootstrap/less/panels.less +274 -274
  108. package/src/android-bootstrap/less/popovers.less +131 -131
  109. package/src/android-bootstrap/less/print.less +101 -101
  110. package/src/android-bootstrap/less/progress-bars.less +87 -87
  111. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  112. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  113. package/src/android-bootstrap/less/scaffolding.less +161 -161
  114. package/src/android-bootstrap/less/tables.less +262 -262
  115. package/src/android-bootstrap/less/theme.less +291 -291
  116. package/src/android-bootstrap/less/thumbnails.less +36 -36
  117. package/src/android-bootstrap/less/tooltip.less +102 -102
  118. package/src/android-bootstrap/less/type.less +303 -303
  119. package/src/android-bootstrap/less/utilities.less +55 -55
  120. package/src/android-bootstrap/less/variables.less +896 -896
  121. package/src/android-bootstrap/less/wells.less +29 -29
  122. package/src/bootstrap/less/.csscomb.json +304 -304
  123. package/src/bootstrap/less/.csslintrc +19 -19
  124. package/src/bootstrap/less/alerts.less +73 -73
  125. package/src/bootstrap/less/badges.less +66 -66
  126. package/src/bootstrap/less/breadcrumbs.less +26 -26
  127. package/src/bootstrap/less/button-groups.less +247 -247
  128. package/src/bootstrap/less/buttons.less +172 -172
  129. package/src/bootstrap/less/carousel.less +269 -269
  130. package/src/bootstrap/less/close.less +34 -34
  131. package/src/bootstrap/less/code.less +69 -69
  132. package/src/bootstrap/less/component-animations.less +33 -33
  133. package/src/bootstrap/less/dropdowns.less +216 -216
  134. package/src/bootstrap/less/grid.less +84 -84
  135. package/src/bootstrap/less/input-groups.less +167 -167
  136. package/src/bootstrap/less/jumbotron.less +52 -52
  137. package/src/bootstrap/less/labels.less +64 -64
  138. package/src/bootstrap/less/list-group.less +141 -141
  139. package/src/bootstrap/less/media.less +66 -66
  140. package/src/bootstrap/less/mixins/alerts.less +14 -14
  141. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  142. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  143. package/src/bootstrap/less/mixins/buttons.less +69 -69
  144. package/src/bootstrap/less/mixins/center-block.less +7 -7
  145. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  146. package/src/bootstrap/less/mixins/forms.less +90 -90
  147. package/src/bootstrap/less/mixins/gradients.less +59 -59
  148. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  149. package/src/bootstrap/less/mixins/grid.less +122 -122
  150. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  151. package/src/bootstrap/less/mixins/image.less +33 -33
  152. package/src/bootstrap/less/mixins/labels.less +12 -12
  153. package/src/bootstrap/less/mixins/list-group.less +30 -30
  154. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  155. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  156. package/src/bootstrap/less/mixins/opacity.less +8 -8
  157. package/src/bootstrap/less/mixins/pagination.less +24 -24
  158. package/src/bootstrap/less/mixins/panels.less +24 -24
  159. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  160. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  161. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  162. package/src/bootstrap/less/mixins/resize.less +6 -6
  163. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  164. package/src/bootstrap/less/mixins/size.less +10 -10
  165. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  166. package/src/bootstrap/less/mixins/table-row.less +44 -44
  167. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  168. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  169. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  170. package/src/bootstrap/less/mixins.less +40 -40
  171. package/src/bootstrap/less/modals.less +151 -151
  172. package/src/bootstrap/less/navbar.less +660 -660
  173. package/src/bootstrap/less/normalize.less +424 -424
  174. package/src/bootstrap/less/pagination.less +89 -89
  175. package/src/bootstrap/less/panels.less +275 -275
  176. package/src/bootstrap/less/popovers.less +131 -131
  177. package/src/bootstrap/less/print.less +101 -101
  178. package/src/bootstrap/less/progress-bars.less +87 -87
  179. package/src/bootstrap/less/responsive-embed.less +35 -35
  180. package/src/bootstrap/less/responsive-utilities.less +194 -194
  181. package/src/bootstrap/less/scaffolding.less +161 -161
  182. package/src/bootstrap/less/theme.less +291 -291
  183. package/src/bootstrap/less/thumbnails.less +36 -36
  184. package/src/bootstrap/less/tooltip.less +102 -102
  185. package/src/bootstrap/less/type.less +303 -303
  186. package/src/bootstrap/less/utilities.less +55 -55
  187. package/src/bootstrap/less/wells.less +29 -29
  188. package/src/components/FileUpload.vue +696 -696
  189. package/src/components/Hello.vue +39 -39
  190. package/src/components/LeftTree.vue +27 -27
  191. package/src/components/android/AttendanceTally.vue +116 -116
  192. package/src/components/android/Blank.vue +10 -10
  193. package/src/components/android/CheckUnplanPage.vue +56 -56
  194. package/src/components/android/Checker.vue +12 -12
  195. package/src/components/android/CheckerAnnual.vue +81 -81
  196. package/src/components/android/CheckerAvarta.vue +82 -82
  197. package/src/components/android/EquipmentInspection.vue +348 -348
  198. package/src/components/android/FootprintMap.vue +120 -120
  199. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  200. package/src/components/android/MasterMain.vue +77 -77
  201. package/src/components/android/Menu.vue +132 -132
  202. package/src/components/android/PaperAlarm.vue +85 -85
  203. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  204. package/src/components/android/PlumberAnnual.vue +83 -83
  205. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  206. package/src/components/android/PlumberMonthly.vue +84 -84
  207. package/src/components/android/PostMap.vue +83 -83
  208. package/src/components/android/QueryCheckHistory.vue +122 -122
  209. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  210. package/src/components/android/RepairMain.vue +60 -60
  211. package/src/components/android/Repairman.vue +12 -12
  212. package/src/components/android/StationMaster.vue +12 -12
  213. package/src/components/defects/DefectModal.vue +101 -101
  214. package/src/components/defects/DevicesAndItem.vue +39 -39
  215. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  216. package/src/components/notice/NoticeForm.vue +100 -100
  217. package/src/components/notice/NoticeIssue.vue +20 -20
  218. package/src/components/paper/PicViewer.vue +18 -18
  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/PhoneUpUserinfo.vue +1254 -1254
  224. package/src/components/userfile/MeterFile.vue +145 -145
  225. package/src/components/userfile/MeterModify.vue +46 -46
  226. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  227. package/src/filiale/dexin/android/SafecheckOrderVTemp.vue +1255 -1255
  228. package/src/filiale/yangchunboneng/android/AndiroidSecurityAudit.vue +2 -1
  229. package/src/plugins/LoadData.js +10 -10
  230. package/src/plugins/LoadParams.js +24 -24
  231. package/src/rongcheng-android.js +207 -207
  232. package/src/stores/wxconfig.js +10 -10
  233. package/src/utils/getNowDate.js +33 -33
  234. package/test/e2e/custom-assertions/elementCount.js +26 -26
  235. package/test/e2e/nightwatch.conf.js +40 -40
  236. package/test/e2e/runner.js +30 -30
  237. package/test/e2e/specs/test.js +13 -13
  238. package/test/unit/.eslintrc +5 -5
  239. package/test/unit/TestUtil.js +62 -62
  240. package/test/unit/context.html +20 -20
  241. package/test/unit/index.js +13 -13
  242. package/src/filiale/rongchuang/android/CurrentCreate.vue +0 -1055
@@ -1,1254 +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
- 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>
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>