safecheck-client 3.0.30-8 → 3.0.30-80

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