safecheck-client 3.0.33-53 → 3.0.33-54

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.
@@ -1,1191 +1,1202 @@
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>
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
+ const nowTime = new Date().getTime()
1058
+ const adventTimeLimit = nowTime + advent_time
1059
+ const advent = this.model
1060
+ .filter(item => {
1061
+ const expireTime = new Date(item.f_expire_date).getTime()
1062
+ return expireTime >= nowTime && expireTime <= adventTimeLimit
1063
+ })
1064
+ .map(item => {
1065
+ const expireTime = new Date(item.f_expire_date).getTime()
1066
+ const daysLeft = Math.round((expireTime - nowTime) / (1000 * 60 * 60 * 24))
1067
+ return `${item.f_devices_type}设备还有${daysLeft >= 0 ? daysLeft : 0}天超期`
1068
+ })
1069
+ .join(',')
1070
+ if (overdue && advent) {
1071
+ this.$showMessage(`${overdue}设备已过期,${advent}`)
1072
+ } else if (advent) {
1073
+ this.$showMessage(`${advent}`)
1074
+ } else if (overdue) {
1075
+ this.$showMessage(`${overdue}设备已过期`)
1076
+ }
1077
+ this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1078
+ this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1079
+ this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1080
+ this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1081
+ this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1082
+ await this.getStreetList()
1083
+ await this.getAreaList()
1084
+ this.excessive = false
1085
+ this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1086
+ //this.userinfo.addressinfo.f_special=1
1087
+ //tag
1088
+ } catch (e) {
1089
+ this.excessive = false
1090
+ this.enable = true
1091
+ this.$showMessage('获取用户信息出错,请检查网络状况!')
1092
+ }
1093
+ new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, { data: {} }, {
1094
+ resolveMsg: null,
1095
+ rejectMsg: null
1096
+ }).then((addressUnit) => {
1097
+ //tag
1098
+ //tag
1099
+ //tag
1100
+ //tag
1101
+ this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1102
+ this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1103
+ this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1104
+ this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1105
+ }).catch((msg) => {
1106
+ //tag)
1107
+ })
1108
+ this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1109
+ console.log(this.showBox)
1110
+ if (this.showBox) {
1111
+ // 获取调压箱
1112
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1113
+ resolveMsg: null,
1114
+ rejectMsg: null
1115
+ }).then((res) => {
1116
+ const boxOptions = []
1117
+ for (const data of res.data) {
1118
+ const one = {
1119
+ label: data.f_adjustable_id + data.f_adjustable_name,
1120
+ value: Number(data.f_adjustable_id)
1121
+ }
1122
+ boxOptions.push(one)
1123
+ }
1124
+ this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1125
+ console.log(this.boxOptions)
1126
+ }).catch((msg) => {
1127
+ //tag)
1128
+ })
1129
+ }
1130
+ }
1131
+ }
1132
+ </script>
1133
+ <style lang="less" scoped>
1134
+ .butt3 {
1135
+ float: right;
1136
+ width: 12px;
1137
+ margin: 1% 2% 0 0;
1138
+ }
1139
+
1140
+ .rightipt {
1141
+ width: 60%;
1142
+ float: left;
1143
+ margin-left: 5%;
1144
+ }
1145
+
1146
+ .righttxt {
1147
+ border: none;
1148
+ margin-left: 5px;
1149
+ /*border-left: 5px solid #A2C2EB;*/
1150
+ float: left;
1151
+ width: 25%;
1152
+ margin-bottom: 3px;
1153
+ text-align: left;
1154
+ word-wrap: break-word;
1155
+ white-space: normal;
1156
+ }
1157
+
1158
+ .tit1 {
1159
+ background-image: url('../../assets/用户姓名.png');
1160
+ background-repeat: no-repeat;
1161
+ background-position: center;
1162
+ }
1163
+
1164
+ .spanboder {
1165
+ border-bottom: 2px solid #499edf;
1166
+ padding-bottom: 8px
1167
+ }
1168
+
1169
+ #upuserinfo_sel /deep/ ul {
1170
+ width: 100% !important;
1171
+ left: 0 !important;
1172
+ }
1173
+
1174
+ .btn-photo {
1175
+ border: 0;
1176
+ border-radius: 7px;
1177
+ background-color: #7dc1f4;
1178
+ font: 15px PingFang-SC-Bold;
1179
+ height: 20%;
1180
+ }
1181
+
1182
+ .panel-self {
1183
+ border-radius: 10px;
1184
+ border: 1px solid #499EDF;
1185
+ background-color: #F8F8F8;
1186
+ }
1187
+
1188
+ .div-photo {
1189
+ width: auto;
1190
+ height: auto;
1191
+ /* margin-top: 10px; */
1192
+ position: absolute;
1193
+ bottom: 10px;
1194
+ right: 10px;
1195
+ }
1196
+ </style>
1197
+ <style lang="less">
1198
+ #upuserinfo_sel ul {
1199
+ width: 100% !important;
1200
+ left: 0 !important;
1201
+ }
1202
+ </style>