safecheck-client 3.0.30-62-t9 → 3.0.30-62-t11

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,1986 +1,1376 @@
1
- <template>
2
- <work-busy :is-busy="excessive"></work-busy>
3
- <div style="height: 100%">
4
- <div class="panel auto">
5
- <div class="panel-heading" @click="selectVal('基本信息')" style="background-color: #ffffff">
6
- <span class="spanboder">
7
- <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">基本信息
8
- <img class="butt3" :src="imgback('基本信息')">
9
- </span>
10
- </div>
11
- <div class="panel-body " id="upuserinfo_sel" v-show="headername == '基本信息'">
12
- <div class="row auto" style="margin: 5px 0">
13
- <label class="righttxt">用户编号:</label>
14
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly />
15
- </div>
16
- <div class="row auto" style="margin: 5px 0">
17
- <label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
18
- v-model="userinfo.baseinfo.base.f_user_name" readonly />
19
- </div>
20
- <div class="row auto" style="margin: 5px 0">
21
- <label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
22
- v-model="userinfo.baseinfo.base.f_user_state" />
23
- </div>
24
- <div class="row auto" style="margin: 5px 0">
25
- <label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
26
- v-model="userinfo.baseinfo.base.f_user_phone" />
27
- </div>
28
- <div class="row auto" style="margin: 5px 0">
29
- <label class="righttxt">备用电话1:</label><input type="text" class="form-control rightipt"
30
- v-model="userphone[0].f_rent_phone" />
31
- </div>
32
- <div class="row auto" style="margin: 5px 0">
33
- <label class="righttxt">备用电话2:</label><input type="text" class="form-control rightipt"
34
- v-model="userphone[1].f_rent_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_rent_name"/>
39
- </div>
40
- <div class="row auto" style="margin: 5px 0">
41
- <label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
42
- v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
43
- </div> -->
44
- <div class="row auto" style="margin: 5px 0">
45
- <label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
46
- v-model="userinfo.baseinfo.base.f_createfile_date" readonly />
47
- </div>
48
- <!-- <div class="row auto" style="margin: 5px 0">
49
- <label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
50
- </div>-->
51
- <div class="row auto" style="margin: 5px 0">
52
- <label class="righttxt">地址类型:</label>
53
- <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
54
- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
55
- id="phone_addressType1" value="普通地址" /><label style="font-weight: normal;padding-left: 2px"
56
- for="phone_addressType1">普通地址</label></div>
57
- <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
58
- id="phone_addressType2" value="特殊地址" /><label style="font-weight: normal;padding-left: 2px"
59
- for="phone_addressType2">特殊地址</label></div>
60
- </div>
61
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
62
- <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
63
- <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
64
- :width="'60%'"
65
- v-model="userinfo.addressinfo.f_iscity"
66
- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
67
- </div>
68
- <div class="row auto" style="margin: 5px 0">
69
- <label class="righttxt">地区类型:</label>
70
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
71
- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
72
- <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
73
- :width="'60%'"
74
- :disabled="true"
75
- v-model="userinfo.addressinfo.f_iscity"
76
- :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
77
- </div>
78
- <div class="row auto" style="margin: 5px 0">
79
- <label class="righttxt">省&ensp;市&ensp;区:</label>
80
- <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
81
- <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
82
- <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
83
- v-model="selectPcd" :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
84
- @change="pcd_change()"></v-select>
85
- </div>
86
- <div class="row auto" style="margin: 5px 0">
87
- <label class="righttxt">街道名称:</label>
88
- <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
89
- <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
90
- v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
91
- @change="street_change()"></v-select>
92
- </div>
93
- <div class="row auto" style="margin: 5px 0">
94
- <label class="righttxt">集收单位:</label>
95
- <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
96
- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
97
- v-model="selectArea" :timeout="500" @select-search="select_search" :options='area' placeholder='请选择集收单位'
98
- close-on-select clear-button value-single @change="area_change()"></v-select>
99
- </div>
100
- <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
101
- <label class="righttxt">集收单位:</label>
102
- &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
103
- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
104
- :width="'60%'"
105
- v-model="selectArea"
106
- @select-search="select_search"
107
- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
108
- </div>-->
109
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
110
- <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
111
- class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
112
- </div>
113
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
114
- <label class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
115
- class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
116
- </div>
117
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
118
- <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
119
- class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
120
- </div>
121
- <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
122
- <label class="righttxt">门&ensp;牌&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
123
- class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
124
- </div>
125
- <div class="row auto" style="margin: 5px 0">
126
- <label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
127
- v-model="userinfo_old.addressinfo.f_address" />
128
- </div>
129
- <div class="row auto" style="margin: 5px 0">
130
- <label class="righttxt">新&ensp;地&ensp;址:</label>
131
- <!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
132
- <textarea :readonly="addressType == '普通地址'" class="form-control rightipt" : style="height: 80px" :disabled="editAddress"
133
- v-model="userinfo.addressinfo.f_address"></textarea>
134
- </div>
135
-
136
- <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
137
- <label class="righttxt">新&ensp;地&ensp;址:</label>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;
138
- <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
139
- </div>-->
140
-
141
- <div class="row auto" style="margin: 5px 0">
142
- <label class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</label><textarea class="form-control rightipt"
143
- style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea>
144
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
145
- </div>
146
- <div class="row auto" style="display: flex;justify-content: center;">
147
- <button class="col-sm-3 btn btn-primary" style="width: max-content" @click="limitClick">限购配置</button>
148
- </div>
149
- </div>
150
- </div>
151
- <div class="panel auto">
152
- <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
153
- <span class="spanboder">
154
- <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
155
- <img class="butt3" :src="imgback('表具信息')">
156
- </span>
157
- </div>
158
- <div class="panel-body " v-show="headername == '表具信息'">
159
- <div class="row auto" style="margin: 5px 0">
160
- <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</label>
161
- <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify != '机表'" class="form-control rightipt"
162
- style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />
163
- <button type="button"
164
- :disabled="!(userinfo.meterinfo[0].f_meter_classify == '机表' || userinfo.meterinfo[0].f_meter_classify == '金额卡表' || userinfo.meterinfo[0].f_meter_classify == '气量卡表')"
165
- name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码
166
- </button>
167
- </div>
168
-
169
- <!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
170
- <div class="auto">
171
- <div class="panel" style="padding: 0px 15px 5px 10px;">
172
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
173
- <div class="row" style="height: 240px;">
174
- <div class="col-sm-4">
175
- <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
176
- </div>
177
- </div>
178
- <div class="row text-right div-photo" :class="style__">
179
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
180
- <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
181
- </div>
182
- </div>
183
- </div>
184
- </div>
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_gas_person" />
189
- </div>
190
- <div class="row auto" style="margin: 5px 0">
191
- <label class="righttxt">通气时间:</label>
192
- <datepicker class="rightipt" :value.sync="userinfo.meterinfo[0].f_gas_date"
193
- v-model="userinfo.meterinfo[0].f_gas_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'"
194
- :show-reset-button="reset">
195
- </datepicker>
196
- </div>
197
- <div class="row auto" style="margin: 5px 0" v-show="showBox">
198
- <label class="righttxt">调&ensp;压&ensp;箱:</label>
199
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_adjustable_id"
200
- v-model="userinfo.meterinfo[0].f_adjustable_id" placeholder='请选择' :width='wid' readonly
201
- :options="boxOptions" close-on-select value-single></v-select>
202
- </div>
203
- <!-- <div class="row auto" style="margin: 5px 0">
204
- <label class="righttxt">是否直通:</label>
205
- <v-select
206
- :value.sync="userinfo.meterinfo[0].f_if_direct"
207
- class="input-font"
208
- style="margin-left: 5%;"
209
- :width="'60%'"
210
- v-model="userinfo.meterinfo[0].f_if_direct"
211
- :options='directOptions'
212
- placeholder='是否直通'
213
- close-on-select
214
- clear-button
215
- value-single>
216
- </v-select>
217
- </div> -->
218
- <!-- <div class="row auto" style="margin: 5px 0">
219
- <label class="righttxt">表&ensp;封&ensp;号:</label>
220
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"/>
221
- </div> -->
222
- <div class="row auto" style="margin: 5px 0">
223
- <label class="righttxt">表&ensp;位&ensp;置:</label>
224
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
225
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
226
- v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly :options="wz_types"
227
- close-on-select value-single></v-select>
228
- </div>
229
- <div class="row auto" style="margin: 5px 0">
230
- <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;向:</label>
231
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
232
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
233
- v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
234
- :options="aroundmeters" close-on-select value-single></v-select>
235
- </div>
236
- <div class="row auto" style="margin: 5px 0">
237
- <label class="righttxt">气表品牌:</label>
238
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasbrand" readonly />
239
- </div>
240
- <div class="row auto" style="margin: 5px 0">
241
- <label class="righttxt">气表型号:</label>
242
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasmodel" readonly />
243
- </div>
244
- <div class="row auto" style="margin: 5px 0">
245
- <label class="righttxt">气表类型:</label>
246
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly />
247
- </div>
248
- <div class="row auto" style="margin: 5px 0">
249
- <label class="righttxt">表前阀状态:</label>
250
- <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
251
- <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_bqf_state"
252
- v-model="userinfo.meterinfo[0].f_bqf_state" placeholder='请选择' :width='wid' readonly :options="bqf_states"
253
- close-on-select value-single></v-select>
254
- </div>
255
- <!-- <div class="row auto" style="margin: 5px 0">
256
- <div style="display: flex;justify-content: center;">
257
- <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
258
- </div>
259
- </div>-->
260
- </div>
261
- </div>
262
- <div class="panel auto">
263
- <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
264
-
265
- <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
266
- class="butt3" :src="imgback('设备信息')"></span>
267
- </div>
268
- <div class="panel-body" v-show="headername == '设备信息'">
269
- <div class="row" v-for="row in model"
270
- style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
271
- <div class="row auto" style="margin: 5px 0">
272
- <label class="righttxt">设备类型:</label>
273
- <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
274
- <v-select class="rightipt" :value.sync="row.f_devices_type" v-model="row.f_devices_type" placeholder='请选择'
275
- :width='wid' readonly :options="devices_types" close-on-select value-single></v-select>
276
- </div>
277
- <div class="row auto" style="margin: 5px 0">
278
- <label class="righttxt">设备品牌:</label>
279
- <input type="text" class="form-control rightipt" v-model="row.f_brand" />
280
- <!-- <v-select class="rightipt" :value.sync="row.f_brand"
281
- v-model="row.f_brand"
282
- placeholder='请选择'
283
- :width='wid'
284
- readonly
285
- :options="deviceBrandOption[row.f_devices_type]"
286
- close-on-select value-single></v-select> -->
287
- </div>
288
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
289
- <label class="righttxt">设备型号:</label>
290
- <input type="text" class="form-control rightipt" v-model="row.f_devices_model" />
291
- </div>
292
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
293
- <label class="righttxt">生产日期:</label>
294
- <!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
295
- <datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
296
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
297
- </datepicker>
298
- </div>
299
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
300
- <label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
301
- v-model="row.f_service_life" />
302
- </div>
303
- <!-- <div class="row auto" style="margin: 5px 0">
304
- <label class="righttxt">到期日期:</label>
305
- &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />&ndash;&gt;
306
- <datepicker class="rightipt"
307
- :value.sync="row.f_expire_date"
308
- v-model="row.f_expire_date"
309
- :disabled-days-of-Week="[]"
310
- :format="'yyyy-MM-dd'"
311
- :show-reset-button="reset" readonly="readonly">
312
- </datepicker>
313
- </div>-->
314
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
315
- <label class="righttxt">安&ensp;装&ensp;人:</label><input type="text" class="form-control rightipt"
316
- v-model="row.f_input_person" />
317
- </div>
318
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
319
- <label class="righttxt">安装日期:</label>
320
- <!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
321
- <datepicker class="rightipt" :value.sync="row.f_input_date" v-model="row.f_input_date"
322
- :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
323
- </datepicker>
324
- </div>
325
- <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
326
- <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
327
- v-model="row.f_devices_num" />
328
- </div>
329
- <div class="row auto" style="margin: 5px 0">
330
- <label class="righttxt">管道类型:</label>
331
- <v-select class="rightipt" :value.sync="row.f_pipe_type"
332
- v-model="row.f_pipe_type"
333
- placeholder='请选择管道类型'
334
- :width='wid'
335
- readonly
336
- :options="pipetypes"
337
- close-on-select value-single></v-select>
338
- </div>
339
- <!--<div class="row auto" style="margin: 5px 0">
340
- <label class="righttxt">设备状态:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
341
- </div>-->
342
- <!--<div class="row auto" style="margin: 5px 0">
343
- <label class="righttxt">购买方式:</label><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
344
- </div>-->
345
- <div style="display: flex;justify-content: center;margin-bottom: 3px"
346
- v-if="$index > this.userinfo_old.devicesinfo.length - 1 || this.userinfo_old.devicesinfo.length == 0">
347
- <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
348
- </div>
349
- </div>
350
- <div style="display: flex;justify-content: space-around;">
351
- <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
352
- </div>
353
- </div>
354
- </div>
355
- <div class="panel auto">
356
- <div class="panel-body">
357
- <div style="display: flex;justify-content: center;">
358
- <button class="col-sm-3 btn btn-primary" :disabled="enable"
359
- @click="isNeedAudit ? editUserInfo() : editUserInfoNoAudit()">{{ isNeedAudit ? '上传审核' : '上传' }}</button>
360
- </div>
361
- </div>
362
- </div>
363
- </div>
364
- <modal :show.sync="limitShow" v-ref="modal" backdrop="false" style="font-size: 15px">
365
- <div slot="modal-header" class="model-header upuserinfo_sel">
366
- <h4 class="modal-title" style="text-align: center ;margin-bottom: 15px;margin-top: 15px">
367
- 限购配置
368
- </h4>
369
- </div>
370
- <div slot="modal-body" class="model-body">
371
- <div class="row auto" style="margin: 5px 0">
372
- <label class="righttxt" style="padding-bottom: 5px">第三方缴费:</label>
373
- <v-select :value.sync="models.f_third_pay" v-model="models.f_third_pay" :options="thirdPays"
374
- :value-single="true" v-valid:f_third_pay='{ required: true }' close-on-select></v-select>
375
- </div>
376
- <div class="row auto" style="margin: 5px 0">
377
- <label class="righttxt" style="padding-bottom: 5px">限制类型</label>
378
- <v-select :value.sync="models.f_limit_style" v-model="models.f_limit_style" :options="limitstyle"
379
- :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
380
- </div>
381
- <div class="row auto" style="margin: 5px 0">
382
- <label class="righttxt" style="padding-bottom: 5px">周期类型</label>
383
- <v-select :value.sync="models.f_time_type" v-model="models.f_time_type" :options="timeTypes"
384
- :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
385
- </div>
386
- <div class="row auto" style="margin: 5px 0">
387
- <label class="righttxt" style="padding-bottom: 5px">周期时长</label>
388
- <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_time_value" />
389
- </div>
390
- <div class="row auto" style="margin: 5px 0">
391
- <label class="righttxt" style="padding-bottom: 5px">限制次数</label>
392
- <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_times" />
393
- </div>
394
- <div class="row auto">
395
- <label class="righttxt" style="padding-bottom: 5px">单次限购</label>
396
- <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_value" />
397
- </div>
398
- <div class="row auto" style="margin: 5px 0">
399
- <label class="righttxt" style="padding-bottom: 5px">支付限制</label>
400
- <v-select :value.sync="models.f_limit_type" v-model="models.f_limit_type" :options="limitTypes"
401
- :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
402
- </div>
403
- <div class="row auto" style="margin: 5px 0">
404
- <label class="righttxt" style="padding-bottom: 5px">执行时间</label>
405
- <datepicker class="rightipt" style="margin-left: 0px" :value.sync="models.f_start_date"
406
- v-model="models.f_start_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset">
407
- </datepicker>
408
- </div>
409
- <div class="row auto" style="margin: 5px 0">
410
- <label class="righttxt" style="padding-bottom: 5px">限制状态</label>
411
- <v-select :value.sync="models.f_status" v-model="models.f_status" :options="fstatus" :value-single="true"
412
- v-valid:f_status='{ required: true }' close-on-select></v-select>
413
- </div>
414
- </div>
415
- <div slot="modal-footer" style="text-align: center" class="modal-footer">
416
- <button type="button" class="btn btn-primary" :disabled="!$v.valid" @click="confirmLimitGas">确认</button>
417
- <button type="button" class="btn btn-default" @click="cancel()">取消</button>
418
- </div>
419
- </modal>
420
- </template>
421
-
422
- <script>
423
- import { HttpResetClass } from 'vue-client'
424
- import * as Util from "../../Util";
425
- import Vue from 'vue'
426
-
427
- export default {
428
- title: '设备查看',
429
- data() {
430
- return {
431
- editAddress:false,
432
- userphone: [],
433
- pipetypes:Vue.$appdata.getParam('管道类型'),
434
- models: {
435
- f_status: '',
436
- f_time_value: '',
437
- f_third_pay: '0',
438
- f_limit_style: '',
439
- f_time_type: '按月',
440
- f_limit_type: '气量',
441
- f_limit_times: '',
442
- f_limit_value: '',
443
- f_start_date: this.$login.toStandardDateString(),
444
- },
445
- thirdPays: [{ label: '支持', value: '1' }, { label: '不支持', value: '0' }],
446
- timeTypes: [{ label: '按月', value: '按月' }, { label: '按日', value: '按日' }],
447
- limitTypes: [{ label: '气量', value: '气量' }, { label: '金额', value: '金额' }],
448
- limitstyle: [{ label: '按次数', value: '按次数' }, { label: '按总量', value: '按总量' }],
449
- fstatus: [{ label: '有效', value: '有效' }, { label: '无效', value: '无效' }],
450
- limitShow: false,
451
- limit_gas: null,
452
- model: [],
453
- show: false,
454
- row: Object,
455
- userinfo: Object,
456
- userinfo_old: Object,
457
- wid: "60%",
458
- aroundmeters: [],
459
- devices_types: [],
460
- pipe_types: [{ label: '橡胶管', value: '橡胶管' }, { label: '波纹管', value: '波纹管' }, { label: '钢管', value: '钢管' }],
461
- wz_types: [],
462
- cityTypes: [{ label: '市区', value: '市区' }, { label: '城镇', value: '城镇' }],
463
- bqf_states: [{ label: '开阀', value: '开阀' }, { label: '关阀', value: '关阀' }],
464
- pcds: [],
465
- streets: [],
466
- update: false,
467
- headername: '',
468
- excessive: false,
469
- area: [],
470
- enable: false,
471
- f_meterno_path: Vue.nopic,
472
- selectArea: { id: '' },
473
- selectPcd: { id: '' },
474
- selectStreet: { id: '' },
475
- changemeterno: false,//是否修改了机表表号
476
- approveChange: false,//是否需要进行信息变更审核
477
- newAddress: '',
478
- addressType: '',
479
- //需要审核的字段
480
- checkField: {
481
- checkUserinfoField: [
482
- 'f_user_name'
483
- ],
484
- checkUserFilesField: [
485
- 'f_meternumber'
486
- ],
487
- checkAddressField: [
488
- 'f_pcd_id',
489
- 'f_street_id',
490
- 'f_residential_area_id',
491
- 'f_building',
492
- 'f_unit',
493
- 'f_floor',
494
- 'f_room',
495
- 'f_slice_area',
496
- 'f_special',
497
- 'f_address'
498
- ],
499
- },
500
- boxOptions: [],
501
- showBox: false,
502
- directOptions: [{ label: '是', value: '是' }, { label: '否', value: '否' }],
503
- deviceBrandOption: {},
504
- isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
505
- }
506
- },
507
- props: {
508
- user: {
509
- type: Object
510
- },
511
- f_userinfo_id: '',
512
- f_source: ''
513
- },
514
- methods: {
515
- limitClick() {
516
- this.limitShow = true
517
- },
518
- cancel() {
519
- this.limitShow = false
520
- },
521
- getLimitGas(val) {
522
- this.limit_gas = val
523
- },
524
- scan() {
525
- HostApp.__this__ = this,
526
- HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
527
- },
528
- getCode() {
529
- var datapa = HostApp.getCode().data;
530
- //tag
531
- this.userinfo.meterinfo[0].f_meternumber = datapa
532
- },
533
- //数据检查
534
- checkVal() {
535
- //检查一些必要信息是否未填
536
- this.approveChange = false
537
- this.changemeterno = false
538
- let checked = { ischeck: true, msg: '' }
539
- //tag
540
- //tag
541
- //tag
542
- if (!this.userinfo.baseinfo.base.f_user_name) {
543
- checked = { ischeck: false, msg: '请输入用户名称!' }
544
- }
545
- if (!this.selectPcd.id) {
546
- checked = { ischeck: false, msg: '请选择省市区!' }
547
- }
548
- if (!this.selectStreet.id) {
549
- checked = { ischeck: false, msg: '请选择街道!' }
550
- }
551
- if (!this.userinfo.addressinfo.f_address) {
552
- checked = { ischeck: false, msg: '新地址不能为空!' }
553
- }
554
- if (this.addressType == '普通地址') {
555
- if (!this.selectArea.id) {
556
- checked = { ischeck: false, msg: '请选择集收单位!' }
557
- }
558
- if (!this.userinfo.addressinfo.f_room) {
559
- checked = { ischeck: false, msg: '新输入门牌号!' }
560
- }
561
- }
562
- if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
563
-
564
- //tag
565
- //tag
566
- if (this.userinfo.meterinfo[0].f_meternumber) {
567
- if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
568
- if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
569
- checked = { ischeck: false, msg: '请拍摄表号照片!' }
570
- } else {
571
- //用来标识当前有修改机表表号,后台需要进行照片上传
572
- this.changemeterno = true
573
- }
574
- }
575
- } else {
576
- checked = { ischeck: false, msg: '请输入表号!' }
577
- }
578
- }
579
- //检查本次修改信息中是否包含需要审核的内容
580
- for (let check in this.checkField) {
581
- //tag
582
- if (typeof check != 'function') {
583
- for (let i = 0; i < this.checkField[check].length; i++) {
584
- //tag
585
- if (check == 'checkUserinfoField') {
586
- //tag
587
- //tag
588
- if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
589
- //tag
590
- this.approveChange = true
591
- }
592
- } else if (check == 'checkUserFilesField') {
593
- //tag
594
- //tag
595
- if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
596
- //tag
597
- this.approveChange = true
598
- }
599
- } else if (check == 'checkAddressField') {
600
- //tag
601
- //tag
602
- if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
603
- //tag
604
- this.approveChange = true
605
- }
606
- }
607
- }
608
- }
609
- <<<<<<< HEAD
610
- //tag
611
- return checked
612
- },
613
- select_search(text) {
614
- //tag
615
- if (this.selectStreet.id) {
616
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
617
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
618
- data: {
619
- items: "*",
620
- tablename: "t_area",
621
- orderitem: "id",
622
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
623
- }
624
- }, { resolveMsg: null, rejectMsg: null }).then((res) => {
625
- //tag)
626
- if (res.data.length > 0) {
627
- this.area = []
628
- res.data.forEach((result) => {
629
- this.area.push({ label: result.f_residential_area, value: result })
630
- })
631
- }
632
- })
633
- } else {
634
- this.area = []
635
- }
636
- },
637
- cameraCallBack(prop, fileName) {
638
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
639
- //tag
640
- HostApp.__callback__ = null
641
- HostApp.__this__ = null
642
- },
643
- takePic(prop, title) {
644
- HostApp.__callback__ = this.cameraCallBack
645
- HostApp.__this__ = this
646
- //tag
647
- let fileName
648
- if (!this[prop] || this[prop].includes("nopic.png")) {
649
- fileName = Util.guid() + '-' + prop + '.jpg'
650
- } else {
651
- fileName = Util.getFileName(this[prop])
652
- }
653
- HostApp._open_a_page({
654
- type: 'boomerang',
655
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
656
- param: {
657
- file: fileName,
658
- requestCode: 111,
659
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
661
- =======
662
- }
663
- //tag
664
- return checked
665
- },
666
- select_search(text) {
667
- //tag
668
- if (this.selectStreet.id) {
669
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
670
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
671
- data: {
672
- items: "*",
673
- tablename: "t_area",
674
- orderitem: "id",
675
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
676
- }
677
- }, { resolveMsg: null, rejectMsg: null }).then((res) => {
678
- //tag)
679
- if (res.data.length > 0) {
680
- this.area = []
681
- res.data.forEach((result) => {
682
- this.area.push({ label: result.f_residential_area, value: result })
683
- })
684
- >>>>>>> v3
685
- }
686
- })
687
- } else {
688
- this.area = []
689
- }
690
- },
691
- cameraCallBack(prop, fileName) {
692
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
693
- //tag
694
- HostApp.__callback__ = null
695
- HostApp.__this__ = null
696
- },
697
- takePic(prop, title) {
698
- HostApp.__callback__ = this.cameraCallBack
699
- HostApp.__this__ = this
700
- //tag
701
- let fileName
702
- if (!this[prop] || this[prop].includes("nopic.png")) {
703
- fileName = Util.guid() + '-' + prop + '.jpg'
704
- } else {
705
- fileName = Util.getFileName(this[prop])
706
- }
707
- HostApp._open_a_page({
708
- type: 'boomerang',
709
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
710
- param: {
711
- file: fileName,
712
- requestCode: 111,
713
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
714
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
715
- }
716
- <<<<<<< HEAD
717
- },
718
- editUserInfoNoAudit() {
719
- let checked = this.checkVal()
720
- if (!checked.ischeck) {
721
- this.$showMessage(checked.msg)
722
- return
723
- }
724
- for (let i = 0; i < this.model.length; i++) {
725
- this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
726
- }
727
- if (this.userphone[0].f_rent_phone) {
728
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
729
- }
730
- this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
731
- if (res === 'confirm') {
732
- this.excessive = true
733
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
734
- // userinfoms.f_user_name=row.f_user_name
735
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
736
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
737
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
738
- userinfoms.f_operator_record = Vue.user.name
739
- userinfoms.f_operatorid_record = Vue.user.id
740
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
741
- userinfoms.f_orgid_record = Vue.user.orgid
742
- userinfoms.f_orgname_record = Vue.user.orgs
743
- userinfoms.f_depid_record = Vue.user.depids
744
- userinfoms.f_depname_record = Vue.user.deps
745
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
746
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
747
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
748
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
749
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
750
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
751
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
752
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
753
- userinfoms.userfiles = []
754
- userinfoms.userphone = this.userphone
755
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
756
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
757
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/filemanage_fileSave`, {
758
- data: {
759
- userinfo: userinfoms,
760
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
761
- address: {
762
- id: this.userinfo_old.addressinfo.id,
763
- oldid: this.userinfo_old.addressinfo.id,
764
- f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
765
- }
766
- }
767
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
768
- if (res1.data.status == 200) {
769
- let data = this.userinfo.addressinfo
770
- data.f_address = this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
771
- //
772
- data.f_operator = Vue.user.name
773
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/address_updateuseraddress`, { data: data }).then((res2) => {
774
- this.$showMessage("修改用户地址信息成功!")
775
- }).catch(error => {
776
- this.$showMessage("修改用户地址信息!")
777
- =======
778
- })
779
- },
780
- delfile(prop, fileName) {
781
- if (fileName == Vue.nopic)
782
- return
783
- else {
784
- HostApp.delfile(fileName)
785
- this[prop] = Vue.nopic
786
- }
787
- },
788
- editUserInfoNoAudit() {
789
- let checked = this.checkVal()
790
- if (!checked.ischeck) {
791
- this.$showMessage(checked.msg)
792
- return
793
- }
794
- for (let i = 0; i < this.model.length; i++) {
795
- this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
796
- }
797
- if (this.userphone[0].f_rent_phone) {
798
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
799
- }
800
- this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
801
- if (res === 'confirm') {
802
- this.excessive = true
803
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
804
- // userinfoms.f_user_name=row.f_user_name
805
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
806
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
807
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
808
- userinfoms.f_operator_record = Vue.user.name
809
- userinfoms.f_operatorid_record = Vue.user.id
810
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
811
- userinfoms.f_orgid_record = Vue.user.orgid
812
- userinfoms.f_orgname_record = Vue.user.orgs
813
- userinfoms.f_depid_record = Vue.user.depids
814
- userinfoms.f_depname_record = Vue.user.deps
815
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
816
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
817
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
818
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
819
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
820
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
821
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
822
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
823
- userinfoms.userfiles = []
824
- userinfoms.userphone = this.userphone
825
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
826
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
827
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
828
- data: {
829
- userinfo: userinfoms,
830
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
831
- address: {
832
- id: this.userinfo_old.addressinfo.id,
833
- oldid: this.userinfo_old.addressinfo.id,
834
- f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
835
- }
836
- }
837
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
838
- if (res1.data.status == 200) {
839
- let data = this.userinfo.addressinfo
840
- data.f_address = this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
841
- //
842
- data.f_operator = Vue.user.name
843
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/address_updateuseraddress`, { data: data }).then((res2) => {
844
- this.$showMessage("修改用户地址信息成功!")
845
- }).catch(error => {
846
- this.$showMessage("修改用户地址信息!")
847
- })
848
- this.$showMessage("修改用户信息成功!")
849
- this.enable = true
850
- this.excessive = false
851
- }
852
- }).catch((msg) => {
853
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
854
- this.excessive = false
855
- })
856
- }
857
- })
858
- },
859
- editUserInfo() {
860
- let checked = this.checkVal()
861
- if (!checked.ischeck) {
862
- this.$showMessage(checked.msg)
863
- return
864
- }
865
-
866
- if (this.userphone[0].f_rent_phone) {
867
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
868
- }
869
-
870
- this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
871
- if (res === 'confirm') {
872
- this.excessive = true
873
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
874
- //userinfoms.f_user_name=row.f_user_name
875
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
876
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
877
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
878
- userinfoms.f_operator_record = Vue.user.name
879
- userinfoms.f_operatorid_record = Vue.user.id
880
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
881
- userinfoms.f_orgid_record = Vue.user.orgid
882
- userinfoms.f_orgname_record = Vue.user.orgs
883
- userinfoms.f_depid_record = Vue.user.depids
884
- userinfoms.f_depname_record = Vue.user.deps
885
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
886
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
887
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
888
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
889
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
890
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
891
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
892
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
893
- userinfoms.userfiles = []
894
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
895
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
896
- userinfoms.userphone = this.userphone
897
- //tag)
898
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
899
- data: {
900
- userinfo: userinfoms,
901
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
902
- address: { id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id }
903
- }
904
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
905
- //tag+res1.data.status)
906
- if (res1.data.status == 200) {
907
- //本次修改信息包含需要审核信息
908
- if (this.approveChange) {
909
- //tag
910
- let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
911
- row: {
912
- f_time: Util.toStandardTimeString(),
913
- f_modifier: Vue.user.name,//Vue.user.name
914
- f_modifier_id: Vue.user.id,//Vue.user.id
915
- f_modify_type: '用户档案',
916
- f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
917
- f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
918
- f_approved: '未审核',
919
- filialestr: Vue.user.orgid,//Vue.user.orgid
920
- version: 1,
921
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
922
- f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
923
- f_street: this.userinfo.addressinfo.f_street,
924
- f_building: this.userinfo.addressinfo.f_building,
925
- f_unit: this.userinfo.addressinfo.f_unit,
926
- f_floor: this.userinfo.addressinfo.f_floor,
927
- f_room: this.userinfo.addressinfo.f_room,
928
- f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
929
- f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
930
- f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
931
- f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
932
- f_residential_area: this.userinfo.addressinfo.f_residential_area,
933
- f_address: this.userinfo.addressinfo.f_address,
934
- f_pcd: this.userinfo.addressinfo.f_pcd,
935
- f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
936
- f_street_id: this.userinfo.addressinfo.f_street_id,
937
- f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
938
- f_used_name: this.userinfo.baseinfo.base.f_used_name,
939
- f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
940
- f_slice_area: this.userinfo.addressinfo.f_slice_area,
941
- f_remark: this.userinfo.baseinfo.base.f_remark,
942
- f_source: this.f_source,
943
- f_meterno_path: this.f_meterno_path,
944
- f_iscity: this.userinfo.addressinfo.f_iscity,
945
- f_special: this.userinfo.addressinfo.f_special,
946
- f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
947
- changemeterno: this.changemeterno
948
- },
949
- tablename: 't_modify_userinfo'
950
- >>>>>>> v3
951
- })
952
- //tag)
953
- if (res2.code == 200) {
954
- this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
955
- this.enable = true
956
- this.excessive = false
957
- } else {
958
- this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
959
- this.excessive = false
960
- }
961
- } else {
962
- this.$showMessage("修改用户信息成功!")
963
- this.enable = true
964
- this.excessive = false
965
- }
966
- <<<<<<< HEAD
967
- }).catch((msg) => {
968
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
969
- this.excessive = false
970
- })
971
- }
972
- })
973
- },
974
- editUserInfo() {
975
- let checked = this.checkVal()
976
- if (!checked.ischeck) {
977
- this.$showMessage(checked.msg)
978
- return
979
- }
980
-
981
- if (this.userphone[0].f_rent_phone) {
982
- this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
983
- }
984
-
985
- this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
986
- if (res === 'confirm') {
987
- this.excessive = true
988
- let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
989
- //userinfoms.f_user_name=row.f_user_name
990
- userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
991
- userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
992
- userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
993
- userinfoms.f_operator_record = Vue.user.name
994
- userinfoms.f_operatorid_record = Vue.user.id
995
- userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
996
- userinfoms.f_orgid_record = Vue.user.orgid
997
- userinfoms.f_orgname_record = Vue.user.orgs
998
- userinfoms.f_depid_record = Vue.user.depids
999
- userinfoms.f_depname_record = Vue.user.deps
1000
- this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
1001
- this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
1002
- this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
1003
- this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
1004
- this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
1005
- this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
1006
- this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
1007
- this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
1008
- userinfoms.userfiles = []
1009
- this.userinfo_old.meterinfo[0].devicesinfo = this.model
1010
- userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
1011
- userinfoms.userphone = this.userphone
1012
- //tag)
1013
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/filemanage_fileSave`, {
1014
- data: {
1015
- userinfo: userinfoms,
1016
- modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
1017
- address: { id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id }
1018
- }
1019
- }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
1020
- //tag+res1.data.status)
1021
- if (res1.data.status == 200) {
1022
- //本次修改信息包含需要审核信息
1023
- if (this.approveChange) {
1024
- //tag
1025
- let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
1026
- row: {
1027
- f_time: Util.toStandardTimeString(),
1028
- f_modifier: Vue.user.name,//Vue.user.name
1029
- f_modifier_id: Vue.user.id,//Vue.user.id
1030
- f_modify_type: '用户档案',
1031
- f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
1032
- f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
1033
- f_approved: '未审核',
1034
- filialestr: Vue.user.orgid,//Vue.user.orgid
1035
- version: 1,
1036
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
1037
- f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
1038
- f_street: this.userinfo.addressinfo.f_street,
1039
- f_building: this.userinfo.addressinfo.f_building,
1040
- f_unit: this.userinfo.addressinfo.f_unit,
1041
- f_floor: this.userinfo.addressinfo.f_floor,
1042
- f_room: this.userinfo.addressinfo.f_room,
1043
- f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
1044
- f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
1045
- f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
1046
- f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
1047
- f_residential_area: this.userinfo.addressinfo.f_residential_area,
1048
- f_address: this.userinfo.addressinfo.f_address,
1049
- f_pcd: this.userinfo.addressinfo.f_pcd,
1050
- f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
1051
- f_street_id: this.userinfo.addressinfo.f_street_id,
1052
- f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
1053
- f_used_name: this.userinfo.baseinfo.base.f_used_name,
1054
- f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
1055
- f_slice_area: this.userinfo.addressinfo.f_slice_area,
1056
- f_remark: this.userinfo.baseinfo.base.f_remark,
1057
- f_source: this.f_source,
1058
- f_meterno_path: this.f_meterno_path,
1059
- f_iscity: this.userinfo.addressinfo.f_iscity,
1060
- f_special: this.userinfo.addressinfo.f_special,
1061
- f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
1062
- changemeterno: this.changemeterno
1063
- },
1064
- tablename: 't_modify_userinfo'
1065
- })
1066
- //tag)
1067
- if (res2.code == 200) {
1068
- this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
1069
- this.enable = true
1070
- this.excessive = false
1071
- } else {
1072
- this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
1073
- this.excessive = false
1074
- }
1075
- } else {
1076
- this.$showMessage("修改用户信息成功!")
1077
- this.enable = true
1078
- this.excessive = false
1079
- }
1080
-
1081
- }
1082
- }).catch((msg) => {
1083
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
1084
- this.excessive = false
1085
- })
1086
-
1087
- }
1088
- })
1089
- },
1090
- imgback(header) {
1091
- if (this.headername == header) {
1092
- return require('../../../assets/xiangxia1.png')
1093
- } else {
1094
- return require('../../../assets/xiangyou1.png')
1095
- =======
1096
-
1097
- }
1098
- }).catch((msg) => {
1099
- this.$showMessage("修改用户信息失败,请检查手机网络状况!")
1100
- this.excessive = false
1101
- })
1102
-
1103
- >>>>>>> v3
1104
- }
1105
- })
1106
- },
1107
- imgback(header) {
1108
- if (this.headername == header) {
1109
- return require('../../../assets/xiangxia1.png')
1110
- } else {
1111
- return require('../../../assets/xiangyou1.png')
1112
- }
1113
- this.headername = header
1114
- },
1115
- selectVal(header) {
1116
- if (this.headername == header) {
1117
- this.headername = ''
1118
- } else {
1119
- this.headername = header
1120
- }
1121
-
1122
- <<<<<<< HEAD
1123
- },
1124
- changeNewAddress() {
1125
- this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
1126
- },
1127
- area_change() {
1128
- //tag
1129
- this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
1130
- this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
1131
- this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
1132
- this.changeNewAddress()
1133
- //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
1134
- },
1135
- async street_change() {
1136
- //tag
1137
- if (this.selectStreet.id) {
1138
- //如果街道改变--给街道赋值!
1139
- this.userinfo.addressinfo.f_street = this.selectStreet.f_street
1140
- this.userinfo.addressinfo.f_street_id = this.selectStreet.id
1141
- this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
1142
- //清空当前选中小区的值
1143
- this.userinfo.addressinfo.f_residential_area = ''
1144
- this.userinfo.addressinfo.f_residential_area_id = ''
1145
- this.userinfo.addressinfo.f_slice_area = ''
1146
- this.selectArea = { id: '' }
1147
- this.area = []
1148
- let pcdText = ` and f_street_id=${this.selectStreet.id}`
1149
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1150
- data: {
1151
- items: "*",
1152
- tablename: "t_area",
1153
- orderitem: "id",
1154
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
1155
- }
1156
- }, { resolveMsg: null, rejectMsg: null })
1157
- ////tag)
1158
- res.data.forEach((result) => {
1159
- this.area.push({ label: result.f_residential_area, value: result })
1160
- })
1161
- } else {
1162
- this.area = []
1163
- }
1164
-
1165
- this.changeNewAddress()
1166
- },
1167
- async pcd_change() {
1168
- //tag
1169
- if (this.selectPcd.id) {
1170
- //tag
1171
- //如果省市区改变-重新赋值
1172
- this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
1173
- this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
1174
- //清空 选中的街道和集收单位
1175
- this.selectStreet = { id: '' }
1176
- this.userinfo.addressinfo.f_street = ''
1177
- this.userinfo.addressinfo.f_street_id = ''
1178
- this.userinfo.addressinfo.f_iscity = ''
1179
- this.selectArea = { id: '' }
1180
- this.userinfo.addressinfo.f_residential_area = ''
1181
- this.userinfo.addressinfo.f_residential_area_id = ''
1182
- this.userinfo.addressinfo.f_slice_area = ''
1183
- this.streets = []
1184
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1185
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1186
- data: {
1187
- items: "*",
1188
- tablename: "t_street",
1189
- orderitem: "id",
1190
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1191
- }
1192
- }, { resolveMsg: null, rejectMsg: null })
1193
- streetlist.data.forEach((result) => {
1194
- this.streets.push({ label: result.f_street, value: result })
1195
- })
1196
- } else {
1197
- this.streets = []
1198
- }
1199
- this.changeNewAddress()
1200
- },
1201
- upUserState() {
1202
- //tag)
1203
- if (this.userinfo.meterinfo[0].f_table_state == '正常') {
1204
- let data = {
1205
- f_userfiles_id: {
1206
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1207
- f_table_state: '停用',
1208
- version: this.userinfo.meterinfo[0].version
1209
- },
1210
- f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
1211
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
1212
- f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
1213
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
1214
- f_comments: '安检时发现问题关闭阀门',
1215
- f_othereason: '',
1216
- f_operat_type: '停用',
1217
- f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
1218
- f_state: '有效',
1219
- f_operator: Vue.user.name,//${Vue.$login.f.name}
1220
- f_operatorid: Vue.user.id,
1221
- f_orgid: Vue.user.orgid,
1222
- f_orgname: Vue.user.orgs,
1223
- f_depid: Vue.user.depids,
1224
- f_depname: Vue.user.deps,
1225
- f_zoneid: Vue.user.zoneid,
1226
- f_zones: Vue.user.zones
1227
- }
1228
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
1229
- data, { resolveMsg: null, rejectMsg: null }).then((row) => {
1230
- this.$showMessage('已成功关阀停气!')
1231
- this.userinfo.meterinfo[0].f_table_state = '停用'
1232
- })
1233
- } else {
1234
- this.$showMessage('该用户已被关阀停用,请勿重复操作!')
1235
- }
1236
-
1237
- },
1238
- addDevices() {
1239
- //Vue.user.name
1240
- let obj = {
1241
- "f_operator": Vue.user.name,
1242
- "f_picture": null,
1243
- "f_pipe_type": null,
1244
- "f_pipeinstall_date": null,
1245
- "f_pipe_connection": null,
1246
- "f_expire_date": null,
1247
- "f_pipeexpire_date": null,
1248
- "f_comments": null,
1249
- "f_operate_date": Util.toStandardTimeString(),
1250
- "f_operatorid": Vue.user.id,
1251
- "f_devices_num": null,
1252
- "f_process_id": null,
1253
- "f_devices_type": null,
1254
- "f_make_date": null,
1255
- "f_input_date": null,
1256
- "f_state": "有效",
1257
- "f_brand": null,
1258
- "f_devices_model": null,
1259
- "f_devices_no": null,
1260
- "img": { "content": null, "filename": null }
1261
- }
1262
- this.model.push(obj)
1263
- },
1264
- delDevices(idx) {
1265
- //tag
1266
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1267
- if (res === 'confirm') {
1268
- this.model.splice(idx, 1)
1269
- =======
1270
- },
1271
- changeNewAddress() {
1272
- this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
1273
- },
1274
- area_change() {
1275
- //tag
1276
- this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
1277
- this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
1278
- this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
1279
- this.changeNewAddress()
1280
- //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
1281
- },
1282
- async street_change() {
1283
- //tag
1284
- if (this.selectStreet.id) {
1285
- //如果街道改变--给街道赋值!
1286
- this.userinfo.addressinfo.f_street = this.selectStreet.f_street
1287
- this.userinfo.addressinfo.f_street_id = this.selectStreet.id
1288
- this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
1289
- //清空当前选中小区的值
1290
- this.userinfo.addressinfo.f_residential_area = ''
1291
- this.userinfo.addressinfo.f_residential_area_id = ''
1292
- this.userinfo.addressinfo.f_slice_area = ''
1293
- this.selectArea = { id: '' }
1294
- this.area = []
1295
- let pcdText = ` and f_street_id=${this.selectStreet.id}`
1296
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1297
- data: {
1298
- items: "*",
1299
- tablename: "t_area",
1300
- orderitem: "id",
1301
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
1302
- >>>>>>> v3
1303
- }
1304
- }, { resolveMsg: null, rejectMsg: null })
1305
- ////tag)
1306
- res.data.forEach((result) => {
1307
- this.area.push({ label: result.f_residential_area, value: result })
1308
- })
1309
- <<<<<<< HEAD
1310
- },
1311
- async getAreaList(text) {
1312
- if (this.selectStreet.id) {
1313
- this.area = []
1314
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1315
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1316
- data: {
1317
- items: "*",
1318
- tablename: "t_area",
1319
- orderitem: "id",
1320
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1321
- }
1322
- }, { resolveMsg: null, rejectMsg: null })
1323
- ////tag)
1324
- res.data.forEach((result) => {
1325
- this.area.push({ label: result.f_residential_area, value: result })
1326
- })
1327
- //tag
1328
- this.area.push({
1329
- label: this.userinfo.addressinfo.f_residential_area,
1330
- value: {
1331
- id: this.userinfo.addressinfo.f_residential_area_id,
1332
- f_residential_area: this.userinfo.addressinfo.f_residential_area
1333
- }
1334
- })
1335
- } else {
1336
- this.area = []
1337
- }
1338
-
1339
- },
1340
- async getStreetList() {
1341
- if (this.selectPcd.id) {
1342
- //tag
1343
- this.streets = []
1344
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1345
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1346
- data: {
1347
- items: "*",
1348
- tablename: "t_street",
1349
- orderitem: "id",
1350
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1351
- }
1352
- }, { resolveMsg: null, rejectMsg: null })
1353
- streetlist.data.forEach((result) => {
1354
- //如果第一次进来有地址id 就拿下地址区域
1355
- if (this.selectStreet.id && this.selectStreet.id == result.id) {
1356
- //tag)
1357
- this.userinfo.addressinfo.f_iscity = result.f_iscity
1358
- }
1359
- this.streets.push({ label: result.f_street, value: result })
1360
- })
1361
- } else {
1362
- this.streets = []
1363
- }
1364
- },
1365
- async confirmLimitGas() {
1366
- this.$dispatch('limit', this.models);
1367
- console.log('提交限购数据', this.models);
1368
- let restrict = {
1369
- f_third_pay: this.models.f_third_pay,
1370
- f_time_type: this.models.f_time_type,
1371
- f_limit_times: this.models.f_limit_times,
1372
- f_time_value: this.models.f_time_value,
1373
- f_limit_type: this.models.f_limit_type,
1374
- f_limit_style: this.models.f_limit_style,
1375
- f_limit_value: this.models.f_limit_value,
1376
- f_limit_amount: this.models.f_limit_amount,
1377
- f_operator: Vue.user.name,
1378
- f_status: this.models.f_status,
1379
- f_start_date: this.$login.toStandardDateString()
1380
- };
1381
- let operInfo = {
1382
- f_operator: Vue.user.name,
1383
- f_operatorid: Vue.user.id,
1384
- f_orgid: Vue.user.orgid,
1385
- f_orgname: Vue.user.orgs,
1386
- f_depid: Vue.user.depids,
1387
- f_depname: Vue.user.deps,
1388
- };
1389
- let user = {
1390
- f_userinfo_id: this.f_userinfo_id,
1391
- f_user_name: this.f_user_name,
1392
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1393
- f_table_state: this.userinfo.meterinfo[0].f_table_state,
1394
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
1395
- };
1396
- let param = {
1397
- restrict,
1398
- user,
1399
- operInfo
1400
- };
1401
- console.log('提交限购数据', JSON.stringify(param));
1402
- let http = new HttpResetClass();
1403
- await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/limitGas`, {
1404
- data: param
1405
- });
1406
- },
1407
- changeAddressType(val) {
1408
- //tag
1409
- if (this.addressType == '普通地址') {
1410
- this.userinfo.addressinfo.f_special = null
1411
- } else if (this.addressType == '特殊地址') {
1412
- this.userinfo.addressinfo.f_special = 1
1413
- this.userinfo.addressinfo.f_building = null
1414
- this.userinfo.addressinfo.f_unit = null
1415
- this.userinfo.addressinfo.f_floor = null
1416
- this.userinfo.addressinfo.f_room = null
1417
- }
1418
- this.changeNewAddress()
1419
- =======
1420
- } else {
1421
- this.area = []
1422
- >>>>>>> v3
1423
- }
1424
-
1425
- this.changeNewAddress()
1426
- },
1427
- async pcd_change() {
1428
- //tag
1429
- if (this.selectPcd.id) {
1430
- //tag
1431
- //如果省市区改变-重新赋值
1432
- this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
1433
- this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
1434
- //清空 选中的街道和集收单位
1435
- this.selectStreet = { id: '' }
1436
- this.userinfo.addressinfo.f_street = ''
1437
- this.userinfo.addressinfo.f_street_id = ''
1438
- this.userinfo.addressinfo.f_iscity = ''
1439
- this.selectArea = { id: '' }
1440
- this.userinfo.addressinfo.f_residential_area = ''
1441
- this.userinfo.addressinfo.f_residential_area_id = ''
1442
- this.userinfo.addressinfo.f_slice_area = ''
1443
- this.streets = []
1444
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1445
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1446
- data: {
1447
- items: "*",
1448
- tablename: "t_street",
1449
- orderitem: "id",
1450
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1451
- }
1452
- }, { resolveMsg: null, rejectMsg: null })
1453
- streetlist.data.forEach((result) => {
1454
- this.streets.push({ label: result.f_street, value: result })
1455
- })
1456
- } else {
1457
- this.streets = []
1458
- }
1459
- this.changeNewAddress()
1460
- },
1461
- upUserState() {
1462
- //tag)
1463
- <<<<<<< HEAD
1464
- //tag)*/
1465
- //this.f_userinfo_id=1102260
1466
- //this.f_userinfo_id=1997541
1467
- if (!this.f_userinfo_id) {
1468
- this.$showMessage("未检测到用户!")
1469
- this.enable = true
1470
- return
1471
- }
1472
- try {
1473
-
1474
- this.devices_types = Vue.$appdata.getParam('设备类型')
1475
- console.log('this.devices_types=', JSON.stringify(this.devices_types))
1476
- for (const devices_type of this.devices_types) {
1477
- console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1478
- this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1479
- }
1480
- console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1481
- this.wz_types = Vue.$appdata.getParam('安装位置')
1482
- this.aroundmeters = Vue.$appdata.getParam('左右表')
1483
-
1484
- ////tag)
1485
- this.excessive = true
1486
- //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1487
-
1488
- let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1489
- data: {
1490
- items: "*",
1491
- tablename: "t_pcd",
1492
- orderitem: "id",
1493
- condition: `f_orgid = '${Vue.user.orgid}'`
1494
- }
1495
- }, { resolveMsg: null, rejectMsg: null })
1496
- //tag)
1497
- pcdlist.data.forEach((result) => {
1498
- this.pcds.push({ label: result.f_pcd, value: result })
1499
- })
1500
- ////tag)
1501
- let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
1502
- //f_userinfo_code:'12381344',
1503
- f_userinfo_id: this.f_userinfo_id
1504
- }, { resolveMsg: null, rejectMsg: null })
1505
- //tag
1506
- //tag
1507
- this.userinfo = res.data
1508
- this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1509
- this.model = this.userinfo.meterinfo[0].devicesinfo
1510
- this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1511
- this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1512
- this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1513
- this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1514
- this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1515
- await this.getStreetList()
1516
- await this.getAreaList()
1517
- this.excessive = false
1518
- this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1519
- //this.userinfo.addressinfo.f_special=1
1520
- //tag
1521
- let userphone = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1522
- data: {
1523
- items: "*",
1524
- tablename: "t_user_phone",
1525
- orderitem: "id",
1526
- condition: `f_userinfo_id = '${this.f_userinfo_id}' and f_state = '有效'`
1527
- }
1528
- }, { resolveMsg: null, rejectMsg: null })
1529
- let tempObj = {
1530
- id: null,
1531
- f_userinfo_id: this.f_userinfo_id,
1532
- f_rent_phone: '',
1533
- =======
1534
- if (this.userinfo.meterinfo[0].f_table_state == '正常') {
1535
- let data = {
1536
- f_userfiles_id: {
1537
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1538
- f_table_state: '停用',
1539
- version: this.userinfo.meterinfo[0].version
1540
- },
1541
- f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
1542
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
1543
- f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
1544
- f_user_name: this.userinfo.baseinfo.base.f_user_name,
1545
- f_comments: '安检时发现问题关闭阀门',
1546
- f_othereason: '',
1547
- f_operat_type: '停用',
1548
- f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
1549
- >>>>>>> v3
1550
- f_state: '有效',
1551
- f_operator: Vue.user.name,//${Vue.$login.f.name}
1552
- f_operatorid: Vue.user.id,
1553
- f_orgid: Vue.user.orgid,
1554
- f_orgname: Vue.user.orgs,
1555
- f_depid: Vue.user.depids,
1556
- f_depname: Vue.user.deps,
1557
- f_zoneid: Vue.user.zoneid,
1558
- f_zones: Vue.user.zones
1559
- }
1560
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
1561
- data, { resolveMsg: null, rejectMsg: null }).then((row) => {
1562
- this.$showMessage('已成功关阀停气!')
1563
- this.userinfo.meterinfo[0].f_table_state = '停用'
1564
- })
1565
- } else {
1566
- this.$showMessage('该用户已被关阀停用,请勿重复操作!')
1567
- }
1568
-
1569
- },
1570
- addDevices() {
1571
- //Vue.user.name
1572
- let obj = {
1573
- "f_operator": Vue.user.name,
1574
- "f_picture": null,
1575
- "f_pipe_type": null,
1576
- "f_pipeinstall_date": null,
1577
- "f_pipe_connection": null,
1578
- "f_expire_date": null,
1579
- "f_pipeexpire_date": null,
1580
- "f_comments": null,
1581
- "f_operate_date": Util.toStandardTimeString(),
1582
- "f_operatorid": Vue.user.id,
1583
- "f_devices_num": null,
1584
- "f_process_id": null,
1585
- "f_devices_type": null,
1586
- "f_make_date": null,
1587
- "f_input_date": null,
1588
- "f_state": "有效",
1589
- "f_brand": null,
1590
- "f_devices_model": null,
1591
- "f_devices_no": null,
1592
- "img": { "content": null, "filename": null }
1593
- }
1594
- this.model.push(obj)
1595
- },
1596
- delDevices(idx) {
1597
- //tag
1598
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1599
- if (res === 'confirm') {
1600
- this.model.splice(idx, 1)
1601
- }
1602
- })
1603
- },
1604
- async getAreaList(text) {
1605
- if (this.selectStreet.id) {
1606
- this.area = []
1607
- let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1608
- let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1609
- data: {
1610
- items: "*",
1611
- tablename: "t_area",
1612
- orderitem: "id",
1613
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1614
- }
1615
- }, { resolveMsg: null, rejectMsg: null })
1616
- ////tag)
1617
- res.data.forEach((result) => {
1618
- this.area.push({ label: result.f_residential_area, value: result })
1619
- })
1620
- //tag
1621
- this.area.push({
1622
- label: this.userinfo.addressinfo.f_residential_area,
1623
- value: {
1624
- id: this.userinfo.addressinfo.f_residential_area_id,
1625
- f_residential_area: this.userinfo.addressinfo.f_residential_area
1626
- }
1627
- })
1628
- } else {
1629
- this.area = []
1630
- }
1631
-
1632
- },
1633
- async getStreetList() {
1634
- if (this.selectPcd.id) {
1635
- //tag
1636
- this.streets = []
1637
- let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1638
- let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1639
- data: {
1640
- items: "*",
1641
- tablename: "t_street",
1642
- orderitem: "id",
1643
- condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1644
- }
1645
- }, { resolveMsg: null, rejectMsg: null })
1646
- streetlist.data.forEach((result) => {
1647
- //如果第一次进来有地址id 就拿下地址区域
1648
- if (this.selectStreet.id && this.selectStreet.id == result.id) {
1649
- //tag)
1650
- this.userinfo.addressinfo.f_iscity = result.f_iscity
1651
- }
1652
- this.streets.push({ label: result.f_street, value: result })
1653
- })
1654
- } else {
1655
- this.streets = []
1656
- }
1657
- },
1658
- async confirmLimitGas() {
1659
- this.$dispatch('limit', this.models);
1660
- console.log('提交限购数据', this.models);
1661
- let restrict = {
1662
- f_third_pay: this.models.f_third_pay,
1663
- f_time_type: this.models.f_time_type,
1664
- f_limit_times: this.models.f_limit_times,
1665
- f_time_value: this.models.f_time_value,
1666
- f_limit_type: this.models.f_limit_type,
1667
- f_limit_style: this.models.f_limit_style,
1668
- f_limit_value: this.models.f_limit_value,
1669
- f_limit_amount: this.models.f_limit_amount,
1670
- f_operator: Vue.user.name,
1671
- f_status: this.models.f_status,
1672
- f_start_date: this.$login.toStandardDateString()
1673
- };
1674
- let operInfo = {
1675
- f_operator: Vue.user.name,
1676
- f_operatorid: Vue.user.id,
1677
- f_orgid: Vue.user.orgid,
1678
- f_orgname: Vue.user.orgs,
1679
- f_depid: Vue.user.depids,
1680
- f_depname: Vue.user.deps,
1681
- };
1682
- let user = {
1683
- f_userinfo_id: this.f_userinfo_id,
1684
- f_user_name: this.f_user_name,
1685
- f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1686
- f_table_state: this.userinfo.meterinfo[0].f_table_state,
1687
- f_user_id: this.userinfo.meterinfo[0].f_user_id,
1688
- };
1689
- let param = {
1690
- restrict,
1691
- user,
1692
- operInfo
1693
- };
1694
- console.log('提交限购数据', JSON.stringify(param));
1695
- let http = new HttpResetClass();
1696
- await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/limitGas`, {
1697
- data: param
1698
- });
1699
- },
1700
- changeAddressType(val) {
1701
- //tag
1702
- if (this.addressType == '普通地址') {
1703
- this.userinfo.addressinfo.f_special = null
1704
- } else if (this.addressType == '特殊地址') {
1705
- this.userinfo.addressinfo.f_special = 1
1706
- this.userinfo.addressinfo.f_building = null
1707
- this.userinfo.addressinfo.f_unit = null
1708
- this.userinfo.addressinfo.f_floor = null
1709
- this.userinfo.addressinfo.f_room = null
1710
- }
1711
- this.changeNewAddress()
1712
- }
1713
-
1714
- },
1715
- computed: {
1716
- getAddress() {
1717
- return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1718
- (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1719
- (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
1720
- (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
1721
- (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
1722
- (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
1723
- (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
1724
- },
1725
- getAddressTS() {
1726
- return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1727
- (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1728
- (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
1729
- }
1730
- },
1731
- watch: {
1732
-
1733
- /*'selectPcd.id' (val) {
1734
- //tag
1735
- if(this.selectPcd.id){
1736
- this.getStreetList()
1737
- }
1738
- },
1739
- 'selectStreet.id' (val) {
1740
- //tag
1741
- if(this.selectStreet.id){
1742
- this.getAreaList()
1743
- }
1744
- }*/
1745
- },
1746
- async ready() {
1747
- console.log(Vue.user);
1748
- console.log()
1749
- this.editAddress = !(Vue.user.r.includes('手机端修改地址'))
1750
- console.log(this.editAddress)
1751
- /*//tag)
1752
- {{)}}
1753
-
1754
- //tag)
1755
- //tag)*/
1756
- //this.f_userinfo_id=1102260
1757
- //this.f_userinfo_id=1997541
1758
- if (!this.f_userinfo_id) {
1759
- this.$showMessage("未检测到用户!")
1760
- this.enable = true
1761
- return
1762
- }
1763
- try {
1764
-
1765
- this.devices_types = Vue.$appdata.getParam('设备类型')
1766
- console.log('this.devices_types=', JSON.stringify(this.devices_types))
1767
- for (const devices_type of this.devices_types) {
1768
- console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1769
- this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1770
- }
1771
- console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1772
- this.wz_types = Vue.$appdata.getParam('安装位置')
1773
- this.aroundmeters = Vue.$appdata.getParam('左右表')
1774
-
1775
- ////tag)
1776
- this.excessive = true
1777
- //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1778
-
1779
- let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1780
- data: {
1781
- items: "*",
1782
- tablename: "t_pcd",
1783
- orderitem: "id",
1784
- condition: `f_orgid = '${Vue.user.orgid}'`
1785
- }
1786
- }, { resolveMsg: null, rejectMsg: null })
1787
- //tag)
1788
- pcdlist.data.forEach((result) => {
1789
- this.pcds.push({ label: result.f_pcd, value: result })
1790
- })
1791
- ////tag)
1792
- let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
1793
- //f_userinfo_code:'12381344',
1794
- f_userinfo_id: this.f_userinfo_id
1795
- }, { resolveMsg: null, rejectMsg: null })
1796
- //tag
1797
- //tag
1798
- this.userinfo = res.data
1799
- if (this.userinfo.meterinfo[0].f_user_type == '民用'){
1800
- this.devices_types = Vue.$appdata.getParam('民用设备类型')
1801
- }
1802
- this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1803
- this.model = this.userinfo.meterinfo[0].devicesinfo
1804
- this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1805
- this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1806
- this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1807
- this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1808
- this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1809
- await this.getStreetList()
1810
- await this.getAreaList()
1811
- this.excessive = false
1812
- this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1813
- //this.userinfo.addressinfo.f_special=1
1814
- //tag
1815
- let userphone = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1816
- data: {
1817
- items: "*",
1818
- tablename: "t_user_phone",
1819
- orderitem: "id",
1820
- condition: `f_userinfo_id = '${this.f_userinfo_id}' and f_state = '有效'`
1821
- }
1822
- }, { resolveMsg: null, rejectMsg: null })
1823
- let tempObj = {
1824
- id: null,
1825
- f_userinfo_id: this.f_userinfo_id,
1826
- f_rent_phone: '',
1827
- f_state: '有效',
1828
- f_orgid: Vue.user.orgid,
1829
- f_orgname: Vue.user.orgs,
1830
- f_depid: Vue.user.depids,
1831
- f_depname: Vue.user.deps,
1832
- f_operatorid: Vue.user.id,
1833
- f_operator: Vue.user.id
1834
- }
1835
- if (userphone.data.length == 0) {
1836
- this.userphone.push(tempObj)
1837
- this.userphone.push(tempObj)
1838
- } else {
1839
- if (userphone.data.length == 1) {
1840
- this.userphone = userphone.data
1841
- this.userphone.push(tempObj)
1842
- } else {
1843
- this.userphone = userphone.data
1844
- }
1845
- }
1846
- } catch (e) {
1847
- this.excessive = false
1848
- this.enable = true
1849
- this.$showMessage('获取用户信息出错,请检查网络状况!')
1850
- }
1851
- new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, { data: {} }, {
1852
- resolveMsg: null,
1853
- rejectMsg: null
1854
- }).then((addressUnit) => {
1855
- //tag
1856
- //tag
1857
- //tag
1858
- //tag
1859
- this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1860
- this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1861
- this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1862
- this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1863
- }).catch((msg) => {
1864
- //tag)
1865
- })
1866
- this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1867
- console.log(this.showBox)
1868
- if (this.showBox) {
1869
- // 获取调压箱
1870
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1871
- resolveMsg: null,
1872
- rejectMsg: null
1873
- }).then((res) => {
1874
- const boxOptions = []
1875
- for (const data of res.data) {
1876
- const one = {
1877
- label: data.f_adjustable_id + data.f_adjustable_name,
1878
- value: Number(data.f_adjustable_id)
1879
- }
1880
- boxOptions.push(one)
1881
- }
1882
- this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1883
- console.log(this.boxOptions)
1884
- }).catch((msg) => {
1885
- //tag)
1886
- })
1887
- <<<<<<< HEAD
1888
- this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1889
- console.log(this.showBox)
1890
- if (this.showBox) {
1891
- // 获取调压箱
1892
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1893
- resolveMsg: null,
1894
- rejectMsg: null
1895
- }).then((res) => {
1896
- const boxOptions = []
1897
- for (const data of res.data) {
1898
- const one = {
1899
- label: data.f_adjustable_id + data.f_adjustable_name,
1900
- value: Number(data.f_adjustable_id)
1901
- }
1902
- boxOptions.push(one)
1903
- }
1904
- this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1905
- console.log(this.boxOptions)
1906
- }).catch((msg) => {
1907
- //tag)
1908
- })
1909
- }
1910
- =======
1911
- >>>>>>> v3
1912
- }
1913
- }
1914
- }
1915
- </script>
1916
- <style lang="less" scoped>
1917
- .butt3 {
1918
- float: right;
1919
- width: 12px;
1920
- margin: 1% 2% 0 0;
1921
- }
1922
-
1923
- .rightipt {
1924
- width: 60%;
1925
- float: left;
1926
- margin-left: 5%;
1927
- }
1928
-
1929
- .righttxt {
1930
- border: none;
1931
- margin-left: 5px;
1932
- /*border-left: 5px solid #A2C2EB;*/
1933
- float: left;
1934
- width: 25%;
1935
- margin-bottom: 3px;
1936
- text-align: left;
1937
- word-wrap: break-word;
1938
- white-space: normal;
1939
- }
1940
-
1941
- .tit1 {
1942
- /*background: #ffffff url('../../../assets/用户姓名.png') no-repeat fixed center;*/
1943
- background-image: url('../../../assets/用户姓名.png');
1944
- background-repeat: no-repeat;
1945
- background-position: center;
1946
- }
1947
-
1948
- .spanboder {
1949
- border-bottom: 2px solid #499edf;
1950
- padding-bottom: 8px
1951
- }
1952
-
1953
- #upuserinfo_sel /deep/ ul {
1954
- width: 100% !important;
1955
- left: 0 !important;
1956
- }
1957
-
1958
- .btn-photo {
1959
- border: 0;
1960
- border-radius: 7px;
1961
- background-color: #7dc1f4;
1962
- font: 15px PingFang-SC-Bold;
1963
- height: 20%;
1964
- }
1965
-
1966
- .panel-self {
1967
- border-radius: 10px;
1968
- border: 1px solid #499EDF;
1969
- background-color: #F8F8F8;
1970
- }
1971
-
1972
- .div-photo {
1973
- width: auto;
1974
- height: auto;
1975
- /* margin-top: 10px; */
1976
- position: absolute;
1977
- bottom: 10px;
1978
- right: 10px;
1979
- }
1980
- </style>
1981
- <style lang="less">
1982
- #upuserinfo_sel ul {
1983
- width: 100% !important;
1984
- left: 0 !important;
1985
- }
1986
- </style>
1
+ <template>
2
+ <work-busy :is-busy="excessive"></work-busy>
3
+ <div style="height: 100%">
4
+ <div class="panel auto">
5
+ <div class="panel-heading" @click="selectVal('基本信息')" style="background-color: #ffffff">
6
+ <span class="spanboder">
7
+ <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">基本信息
8
+ <img class="butt3" :src="imgback('基本信息')">
9
+ </span>
10
+ </div>
11
+ <div class="panel-body " id="upuserinfo_sel" v-show="headername == '基本信息'">
12
+ <div class="row auto" style="margin: 5px 0">
13
+ <label class="righttxt">用户编号:</label>
14
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly />
15
+ </div>
16
+ <div class="row auto" style="margin: 5px 0">
17
+ <label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
18
+ v-model="userinfo.baseinfo.base.f_user_name" readonly />
19
+ </div>
20
+ <div class="row auto" style="margin: 5px 0">
21
+ <label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
22
+ v-model="userinfo.baseinfo.base.f_user_state" />
23
+ </div>
24
+ <div class="row auto" style="margin: 5px 0">
25
+ <label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
26
+ v-model="userinfo.baseinfo.base.f_user_phone" />
27
+ </div>
28
+ <div class="row auto" style="margin: 5px 0">
29
+ <label class="righttxt">备用电话1:</label><input type="text" class="form-control rightipt"
30
+ v-model="userphone[0].f_rent_phone" />
31
+ </div>
32
+ <div class="row auto" style="margin: 5px 0">
33
+ <label class="righttxt">备用电话2:</label><input type="text" class="form-control rightipt"
34
+ v-model="userphone[1].f_rent_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_rent_name"/>
39
+ </div>
40
+ <div class="row auto" style="margin: 5px 0">
41
+ <label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
42
+ v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
43
+ </div> -->
44
+ <div class="row auto" style="margin: 5px 0">
45
+ <label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
46
+ v-model="userinfo.baseinfo.base.f_createfile_date" readonly />
47
+ </div>
48
+ <!-- <div class="row auto" style="margin: 5px 0">
49
+ <label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
50
+ </div>-->
51
+ <div class="row auto" style="margin: 5px 0">
52
+ <label class="righttxt">地址类型:</label>
53
+ <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
54
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
55
+ id="phone_addressType1" value="普通地址" /><label style="font-weight: normal;padding-left: 2px"
56
+ for="phone_addressType1">普通地址</label></div>
57
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType" :disabled="editAddress"
58
+ id="phone_addressType2" value="特殊地址" /><label style="font-weight: normal;padding-left: 2px"
59
+ for="phone_addressType2">特殊地址</label></div>
60
+ </div>
61
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
62
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
63
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
64
+ :width="'60%'"
65
+ v-model="userinfo.addressinfo.f_iscity"
66
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
67
+ </div>
68
+ <div class="row auto" style="margin: 5px 0">
69
+ <label class="righttxt">地区类型:</label>
70
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
71
+ <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
72
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
73
+ :width="'60%'"
74
+ :disabled="true"
75
+ v-model="userinfo.addressinfo.f_iscity"
76
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
77
+ </div>
78
+ <div class="row auto" style="margin: 5px 0">
79
+ <label class="righttxt">省&ensp;市&ensp;区:</label>
80
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
81
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
82
+ <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
83
+ v-model="selectPcd" :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
84
+ @change="pcd_change()"></v-select>
85
+ </div>
86
+ <div class="row auto" style="margin: 5px 0">
87
+ <label class="righttxt">街道名称:</label>
88
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
89
+ <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
90
+ v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
91
+ @change="street_change()"></v-select>
92
+ </div>
93
+ <div class="row auto" style="margin: 5px 0">
94
+ <label class="righttxt">集收单位:</label>
95
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
96
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;" :width="'60%'" :disabled="editAddress"
97
+ v-model="selectArea" :timeout="500" @select-search="select_search" :options='area' placeholder='请选择集收单位'
98
+ close-on-select clear-button value-single @change="area_change()"></v-select>
99
+ </div>
100
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
101
+ <label class="righttxt">集收单位:</label>
102
+ &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
103
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
104
+ :width="'60%'"
105
+ v-model="selectArea"
106
+ @select-search="select_search"
107
+ :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
108
+ </div>-->
109
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
110
+ <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
111
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
112
+ </div>
113
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
114
+ <label class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
115
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
116
+ </div>
117
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
118
+ <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
119
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
120
+ </div>
121
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
122
+ <label class="righttxt">门&ensp;牌&ensp;号:</label><input type="text" @change="changeNewAddress" :disabled="editAddress"
123
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
124
+ </div>
125
+ <div class="row auto" style="margin: 5px 0">
126
+ <label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
127
+ v-model="userinfo_old.addressinfo.f_address" />
128
+ </div>
129
+ <div class="row auto" style="margin: 5px 0">
130
+ <label class="righttxt">新&ensp;地&ensp;址:</label>
131
+ <!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
132
+ <textarea :readonly="addressType == '普通地址'" class="form-control rightipt" : style="height: 80px" :disabled="editAddress"
133
+ v-model="userinfo.addressinfo.f_address"></textarea>
134
+ </div>
135
+
136
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
137
+ <label class="righttxt">新&ensp;地&ensp;址:</label>&lt;!&ndash;<input type="text" class="form-control rightipt" v-model="userinfo.addressinfo.f_address" />&ndash;&gt;
138
+ <textarea class="form-control rightipt" style="height: 80px" v-model="getAddressTS"></textarea>
139
+ </div>-->
140
+
141
+ <div class="row auto" style="margin: 5px 0">
142
+ <label class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</label><textarea class="form-control rightipt"
143
+ style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea>
144
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
145
+ </div>
146
+ <div class="row auto" style="display: flex;justify-content: center;">
147
+ <button class="col-sm-3 btn btn-primary" style="width: max-content" @click="limitClick">限购配置</button>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ <div class="panel auto">
152
+ <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
153
+ <span class="spanboder">
154
+ <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
155
+ <img class="butt3" :src="imgback('表具信息')">
156
+ </span>
157
+ </div>
158
+ <div class="panel-body " v-show="headername == '表具信息'">
159
+ <div class="row auto" style="margin: 5px 0">
160
+ <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</label>
161
+ <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify != '机表'" class="form-control rightipt"
162
+ style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />
163
+ <button type="button"
164
+ :disabled="!(userinfo.meterinfo[0].f_meter_classify == '机表' || userinfo.meterinfo[0].f_meter_classify == '金额卡表' || userinfo.meterinfo[0].f_meter_classify == '气量卡表')"
165
+ name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码
166
+ </button>
167
+ </div>
168
+
169
+ <!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
170
+ <div class="auto">
171
+ <div class="panel" style="padding: 0px 15px 5px 10px;">
172
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
173
+ <div class="row" style="height: 240px;">
174
+ <div class="col-sm-4">
175
+ <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
176
+ </div>
177
+ </div>
178
+ <div class="row text-right div-photo" :class="style__">
179
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
180
+ <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
181
+ </div>
182
+ </div>
183
+ </div>
184
+ </div>
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_gas_person" />
189
+ </div>
190
+ <div class="row auto" style="margin: 5px 0">
191
+ <label class="righttxt">通气时间:</label>
192
+ <datepicker class="rightipt" :value.sync="userinfo.meterinfo[0].f_gas_date"
193
+ v-model="userinfo.meterinfo[0].f_gas_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'"
194
+ :show-reset-button="reset">
195
+ </datepicker>
196
+ </div>
197
+ <div class="row auto" style="margin: 5px 0" v-show="showBox">
198
+ <label class="righttxt">调&ensp;压&ensp;箱:</label>
199
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_adjustable_id"
200
+ v-model="userinfo.meterinfo[0].f_adjustable_id" placeholder='请选择' :width='wid' readonly
201
+ :options="boxOptions" close-on-select value-single></v-select>
202
+ </div>
203
+ <!-- <div class="row auto" style="margin: 5px 0">
204
+ <label class="righttxt">是否直通:</label>
205
+ <v-select
206
+ :value.sync="userinfo.meterinfo[0].f_if_direct"
207
+ class="input-font"
208
+ style="margin-left: 5%;"
209
+ :width="'60%'"
210
+ v-model="userinfo.meterinfo[0].f_if_direct"
211
+ :options='directOptions'
212
+ placeholder='是否直通'
213
+ close-on-select
214
+ clear-button
215
+ value-single>
216
+ </v-select>
217
+ </div> -->
218
+ <!-- <div class="row auto" style="margin: 5px 0">
219
+ <label class="righttxt">表&ensp;封&ensp;号:</label>
220
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"/>
221
+ </div> -->
222
+ <div class="row auto" style="margin: 5px 0">
223
+ <label class="righttxt">表&ensp;位&ensp;置:</label>
224
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
225
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
226
+ v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly :options="wz_types"
227
+ close-on-select value-single></v-select>
228
+ </div>
229
+ <div class="row auto" style="margin: 5px 0">
230
+ <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;向:</label>
231
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
232
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
233
+ v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
234
+ :options="aroundmeters" close-on-select value-single></v-select>
235
+ </div>
236
+ <div class="row auto" style="margin: 5px 0">
237
+ <label class="righttxt">气表品牌:</label>
238
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasbrand" readonly />
239
+ </div>
240
+ <div class="row auto" style="margin: 5px 0">
241
+ <label class="righttxt">气表型号:</label>
242
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].gasmodel" readonly />
243
+ </div>
244
+ <div class="row auto" style="margin: 5px 0">
245
+ <label class="righttxt">气表类型:</label>
246
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly />
247
+ </div>
248
+ <div class="row auto" style="margin: 5px 0">
249
+ <label class="righttxt">表前阀状态:</label>
250
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
251
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_bqf_state"
252
+ v-model="userinfo.meterinfo[0].f_bqf_state" placeholder='请选择' :width='wid' readonly :options="bqf_states"
253
+ close-on-select value-single></v-select>
254
+ </div>
255
+ <!-- <div class="row auto" style="margin: 5px 0">
256
+ <div style="display: flex;justify-content: center;">
257
+ <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary" @click="upUserState()">机表关阀停用</button>
258
+ </div>
259
+ </div>-->
260
+ </div>
261
+ </div>
262
+ <div class="panel auto">
263
+ <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
264
+
265
+ <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
266
+ class="butt3" :src="imgback('设备信息')"></span>
267
+ </div>
268
+ <div class="panel-body" v-show="headername == '设备信息'">
269
+ <div class="row" v-for="row in model"
270
+ style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
271
+ <div class="row auto" style="margin: 5px 0">
272
+ <label class="righttxt">设备类型:</label>
273
+ <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
274
+ <v-select class="rightipt" :value.sync="row.f_devices_type" v-model="row.f_devices_type" placeholder='请选择'
275
+ :width='wid' readonly :options="devices_types" close-on-select value-single></v-select>
276
+ </div>
277
+ <div class="row auto" style="margin: 5px 0">
278
+ <label class="righttxt">设备品牌:</label>
279
+ <input type="text" class="form-control rightipt" v-model="row.f_brand" />
280
+ <!-- <v-select class="rightipt" :value.sync="row.f_brand"
281
+ v-model="row.f_brand"
282
+ placeholder='请选择'
283
+ :width='wid'
284
+ readonly
285
+ :options="deviceBrandOption[row.f_devices_type]"
286
+ close-on-select value-single></v-select> -->
287
+ </div>
288
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
289
+ <label class="righttxt">设备型号:</label>
290
+ <input type="text" class="form-control rightipt" v-model="row.f_devices_model" />
291
+ </div>
292
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
293
+ <label class="righttxt">生产日期:</label>
294
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_make_date" />-->
295
+ <datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
296
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
297
+ </datepicker>
298
+ </div>
299
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
300
+ <label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
301
+ v-model="row.f_service_life" />
302
+ </div>
303
+ <!-- <div class="row auto" style="margin: 5px 0">
304
+ <label class="righttxt">到期日期:</label>
305
+ &lt;!&ndash;<input type="text" class="form-control rightipt" v-model="row.f_expire_date" />&ndash;&gt;
306
+ <datepicker class="rightipt"
307
+ :value.sync="row.f_expire_date"
308
+ v-model="row.f_expire_date"
309
+ :disabled-days-of-Week="[]"
310
+ :format="'yyyy-MM-dd'"
311
+ :show-reset-button="reset" readonly="readonly">
312
+ </datepicker>
313
+ </div>-->
314
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
315
+ <label class="righttxt">安&ensp;装&ensp;人:</label><input type="text" class="form-control rightipt"
316
+ v-model="row.f_input_person" />
317
+ </div>
318
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
319
+ <label class="righttxt">安装日期:</label>
320
+ <!--<input type="text" class="form-control rightipt" v-model="row.f_input_date" />-->
321
+ <datepicker class="rightipt" :value.sync="row.f_input_date" v-model="row.f_input_date"
322
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
323
+ </datepicker>
324
+ </div>
325
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_user_type == '非民用'">
326
+ <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
327
+ v-model="row.f_devices_num" />
328
+ </div>
329
+ <div class="row auto" style="margin: 5px 0">
330
+ <label class="righttxt">管道类型:</label>
331
+ <v-select class="rightipt" :value.sync="row.f_pipe_type"
332
+ v-model="row.f_pipe_type"
333
+ placeholder='请选择管道类型'
334
+ :width='wid'
335
+ readonly
336
+ :options="pipetypes"
337
+ close-on-select value-single></v-select>
338
+ </div>
339
+ <!--<div class="row auto" style="margin: 5px 0">
340
+ <label class="righttxt">设备状态:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
341
+ </div>-->
342
+ <!--<div class="row auto" style="margin: 5px 0">
343
+ <label class="righttxt">购买方式:</label><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
344
+ </div>-->
345
+ <div style="display: flex;justify-content: center;margin-bottom: 3px"
346
+ v-if="$index > this.userinfo_old.devicesinfo.length - 1 || this.userinfo_old.devicesinfo.length == 0">
347
+ <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
348
+ </div>
349
+ </div>
350
+ <div style="display: flex;justify-content: space-around;">
351
+ <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
352
+ </div>
353
+ </div>
354
+ </div>
355
+ <div class="panel auto">
356
+ <div class="panel-body">
357
+ <div style="display: flex;justify-content: center;">
358
+ <button class="col-sm-3 btn btn-primary" :disabled="enable"
359
+ @click="isNeedAudit ? editUserInfo() : editUserInfoNoAudit()">{{ isNeedAudit ? '上传审核' : '上传' }}</button>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+ <modal :show.sync="limitShow" v-ref="modal" backdrop="false" style="font-size: 15px">
365
+ <div slot="modal-header" class="model-header upuserinfo_sel">
366
+ <h4 class="modal-title" style="text-align: center ;margin-bottom: 15px;margin-top: 15px">
367
+ 限购配置
368
+ </h4>
369
+ </div>
370
+ <div slot="modal-body" class="model-body">
371
+ <div class="row auto" style="margin: 5px 0">
372
+ <label class="righttxt" style="padding-bottom: 5px">第三方缴费:</label>
373
+ <v-select :value.sync="models.f_third_pay" v-model="models.f_third_pay" :options="thirdPays"
374
+ :value-single="true" v-valid:f_third_pay='{ required: true }' close-on-select></v-select>
375
+ </div>
376
+ <div class="row auto" style="margin: 5px 0">
377
+ <label class="righttxt" style="padding-bottom: 5px">限制类型</label>
378
+ <v-select :value.sync="models.f_limit_style" v-model="models.f_limit_style" :options="limitstyle"
379
+ :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
380
+ </div>
381
+ <div class="row auto" style="margin: 5px 0">
382
+ <label class="righttxt" style="padding-bottom: 5px">周期类型</label>
383
+ <v-select :value.sync="models.f_time_type" v-model="models.f_time_type" :options="timeTypes"
384
+ :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
385
+ </div>
386
+ <div class="row auto" style="margin: 5px 0">
387
+ <label class="righttxt" style="padding-bottom: 5px">周期时长</label>
388
+ <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_time_value" />
389
+ </div>
390
+ <div class="row auto" style="margin: 5px 0">
391
+ <label class="righttxt" style="padding-bottom: 5px">限制次数</label>
392
+ <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_times" />
393
+ </div>
394
+ <div class="row auto">
395
+ <label class="righttxt" style="padding-bottom: 5px">单次限购</label>
396
+ <input type="number" style="margin-left: 0px" class="form-control rightipt" v-model="models.f_limit_value" />
397
+ </div>
398
+ <div class="row auto" style="margin: 5px 0">
399
+ <label class="righttxt" style="padding-bottom: 5px">支付限制</label>
400
+ <v-select :value.sync="models.f_limit_type" v-model="models.f_limit_type" :options="limitTypes"
401
+ :value-single="true" v-valid:f_limit_type='{ required: true }' close-on-select></v-select>
402
+ </div>
403
+ <div class="row auto" style="margin: 5px 0">
404
+ <label class="righttxt" style="padding-bottom: 5px">执行时间</label>
405
+ <datepicker class="rightipt" style="margin-left: 0px" :value.sync="models.f_start_date"
406
+ v-model="models.f_start_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset">
407
+ </datepicker>
408
+ </div>
409
+ <div class="row auto" style="margin: 5px 0">
410
+ <label class="righttxt" style="padding-bottom: 5px">限制状态</label>
411
+ <v-select :value.sync="models.f_status" v-model="models.f_status" :options="fstatus" :value-single="true"
412
+ v-valid:f_status='{ required: true }' close-on-select></v-select>
413
+ </div>
414
+ </div>
415
+ <div slot="modal-footer" style="text-align: center" class="modal-footer">
416
+ <button type="button" class="btn btn-primary" :disabled="!$v.valid" @click="confirmLimitGas">确认</button>
417
+ <button type="button" class="btn btn-default" @click="cancel()">取消</button>
418
+ </div>
419
+ </modal>
420
+ </template>
421
+
422
+ <script>
423
+ import { HttpResetClass } from 'vue-client'
424
+ import * as Util from "../../Util";
425
+ import Vue from 'vue'
426
+
427
+ export default {
428
+ title: '设备查看',
429
+ data() {
430
+ return {
431
+ editAddress:false,
432
+ userphone: [],
433
+ pipetypes:Vue.$appdata.getParam('管道类型'),
434
+ models: {
435
+ f_status: '',
436
+ f_time_value: '',
437
+ f_third_pay: '0',
438
+ f_limit_style: '',
439
+ f_time_type: '按月',
440
+ f_limit_type: '气量',
441
+ f_limit_times: '',
442
+ f_limit_value: '',
443
+ f_start_date: this.$login.toStandardDateString(),
444
+ },
445
+ thirdPays: [{ label: '支持', value: '1' }, { label: '不支持', value: '0' }],
446
+ timeTypes: [{ label: '按月', value: '按月' }, { label: '按日', value: '按日' }],
447
+ limitTypes: [{ label: '气量', value: '气量' }, { label: '金额', value: '金额' }],
448
+ limitstyle: [{ label: '按次数', value: '按次数' }, { label: '按总量', value: '按总量' }],
449
+ fstatus: [{ label: '有效', value: '有效' }, { label: '无效', value: '无效' }],
450
+ limitShow: false,
451
+ limit_gas: null,
452
+ model: [],
453
+ show: false,
454
+ row: Object,
455
+ userinfo: Object,
456
+ userinfo_old: Object,
457
+ wid: "60%",
458
+ aroundmeters: [],
459
+ devices_types: [],
460
+ pipe_types: [{ label: '橡胶管', value: '橡胶管' }, { label: '波纹管', value: '波纹管' }, { label: '钢管', value: '钢管' }],
461
+ wz_types: [],
462
+ cityTypes: [{ label: '市区', value: '市区' }, { label: '城镇', value: '城镇' }],
463
+ bqf_states: [{ label: '开阀', value: '开阀' }, { label: '关阀', value: '关阀' }],
464
+ pcds: [],
465
+ streets: [],
466
+ update: false,
467
+ headername: '',
468
+ excessive: false,
469
+ area: [],
470
+ enable: false,
471
+ f_meterno_path: Vue.nopic,
472
+ selectArea: { id: '' },
473
+ selectPcd: { id: '' },
474
+ selectStreet: { id: '' },
475
+ changemeterno: false,//是否修改了机表表号
476
+ approveChange: false,//是否需要进行信息变更审核
477
+ newAddress: '',
478
+ addressType: '',
479
+ //需要审核的字段
480
+ checkField: {
481
+ checkUserinfoField: [
482
+ 'f_user_name'
483
+ ],
484
+ checkUserFilesField: [
485
+ 'f_meternumber'
486
+ ],
487
+ checkAddressField: [
488
+ 'f_pcd_id',
489
+ 'f_street_id',
490
+ 'f_residential_area_id',
491
+ 'f_building',
492
+ 'f_unit',
493
+ 'f_floor',
494
+ 'f_room',
495
+ 'f_slice_area',
496
+ 'f_special',
497
+ 'f_address'
498
+ ],
499
+ },
500
+ boxOptions: [],
501
+ showBox: false,
502
+ directOptions: [{ label: '是', value: '是' }, { label: '否', value: '否' }],
503
+ deviceBrandOption: {},
504
+ isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
505
+ }
506
+ },
507
+ props: {
508
+ user: {
509
+ type: Object
510
+ },
511
+ f_userinfo_id: '',
512
+ f_source: ''
513
+ },
514
+ methods: {
515
+ limitClick() {
516
+ this.limitShow = true
517
+ },
518
+ cancel() {
519
+ this.limitShow = false
520
+ },
521
+ getLimitGas(val) {
522
+ this.limit_gas = val
523
+ },
524
+ scan() {
525
+ HostApp.__this__ = this,
526
+ HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
527
+ },
528
+ getCode() {
529
+ var datapa = HostApp.getCode().data;
530
+ //tag
531
+ this.userinfo.meterinfo[0].f_meternumber = datapa
532
+ },
533
+ //数据检查
534
+ checkVal() {
535
+ //检查一些必要信息是否未填
536
+ this.approveChange = false
537
+ this.changemeterno = false
538
+ let checked = { ischeck: true, msg: '' }
539
+ //tag
540
+ //tag
541
+ //tag
542
+ if (!this.userinfo.baseinfo.base.f_user_name) {
543
+ checked = { ischeck: false, msg: '请输入用户名称!' }
544
+ }
545
+ if (!this.selectPcd.id) {
546
+ checked = { ischeck: false, msg: '请选择省市区!' }
547
+ }
548
+ if (!this.selectStreet.id) {
549
+ checked = { ischeck: false, msg: '请选择街道!' }
550
+ }
551
+ if (!this.userinfo.addressinfo.f_address) {
552
+ checked = { ischeck: false, msg: '新地址不能为空!' }
553
+ }
554
+ if (this.addressType == '普通地址') {
555
+ if (!this.selectArea.id) {
556
+ checked = { ischeck: false, msg: '请选择集收单位!' }
557
+ }
558
+ if (!this.userinfo.addressinfo.f_room) {
559
+ checked = { ischeck: false, msg: '新输入门牌号!' }
560
+ }
561
+ }
562
+ if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
563
+
564
+ //tag
565
+ //tag
566
+ if (this.userinfo.meterinfo[0].f_meternumber) {
567
+ if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
568
+ if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
569
+ checked = { ischeck: false, msg: '请拍摄表号照片!' }
570
+ } else {
571
+ //用来标识当前有修改机表表号,后台需要进行照片上传
572
+ this.changemeterno = true
573
+ }
574
+ }
575
+ } else {
576
+ checked = { ischeck: false, msg: '请输入表号!' }
577
+ }
578
+ }
579
+ //检查本次修改信息中是否包含需要审核的内容
580
+ for (let check in this.checkField) {
581
+ //tag
582
+ if (typeof check != 'function') {
583
+ for (let i = 0; i < this.checkField[check].length; i++) {
584
+ //tag
585
+ if (check == 'checkUserinfoField') {
586
+ //tag
587
+ //tag
588
+ if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
589
+ //tag
590
+ this.approveChange = true
591
+ }
592
+ } else if (check == 'checkUserFilesField') {
593
+ //tag
594
+ //tag
595
+ if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
596
+ //tag
597
+ this.approveChange = true
598
+ }
599
+ } else if (check == 'checkAddressField') {
600
+ //tag
601
+ //tag
602
+ if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
603
+ //tag
604
+ this.approveChange = true
605
+ }
606
+ }
607
+ }
608
+ }
609
+ }
610
+ //tag
611
+ return checked
612
+ },
613
+ select_search(text) {
614
+ //tag
615
+ if (this.selectStreet.id) {
616
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
617
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
618
+ data: {
619
+ items: "*",
620
+ tablename: "t_area",
621
+ orderitem: "id",
622
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
623
+ }
624
+ }, { resolveMsg: null, rejectMsg: null }).then((res) => {
625
+ //tag)
626
+ if (res.data.length > 0) {
627
+ this.area = []
628
+ res.data.forEach((result) => {
629
+ this.area.push({ label: result.f_residential_area, value: result })
630
+ })
631
+ }
632
+ })
633
+ } else {
634
+ this.area = []
635
+ }
636
+ },
637
+ cameraCallBack(prop, fileName) {
638
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
639
+ //tag
640
+ HostApp.__callback__ = null
641
+ HostApp.__this__ = null
642
+ },
643
+ takePic(prop, title) {
644
+ HostApp.__callback__ = this.cameraCallBack
645
+ HostApp.__this__ = this
646
+ //tag
647
+ let fileName
648
+ if (!this[prop] || this[prop].includes("nopic.png")) {
649
+ fileName = Util.guid() + '-' + prop + '.jpg'
650
+ } else {
651
+ fileName = Util.getFileName(this[prop])
652
+ }
653
+ HostApp._open_a_page({
654
+ type: 'boomerang',
655
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
656
+ param: {
657
+ file: fileName,
658
+ requestCode: 111,
659
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
660
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
661
+ }
662
+ })
663
+ },
664
+ delfile(prop, fileName) {
665
+ if (fileName == Vue.nopic)
666
+ return
667
+ else {
668
+ HostApp.delfile(fileName)
669
+ this[prop] = Vue.nopic
670
+ }
671
+ },
672
+ editUserInfoNoAudit() {
673
+ let checked = this.checkVal()
674
+ if (!checked.ischeck) {
675
+ this.$showMessage(checked.msg)
676
+ return
677
+ }
678
+ for (let i = 0; i < this.model.length; i++) {
679
+ this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
680
+ }
681
+ if (this.userphone[0].f_rent_phone) {
682
+ this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
683
+ }
684
+ this.$showMessage('确定是否修改上传用户信息?', ['confirm', 'cancel']).then((res) => {
685
+ if (res === 'confirm') {
686
+ this.excessive = true
687
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
688
+ // userinfoms.f_user_name=row.f_user_name
689
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
690
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
691
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
692
+ userinfoms.f_operator_record = Vue.user.name
693
+ userinfoms.f_operatorid_record = Vue.user.id
694
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
695
+ userinfoms.f_orgid_record = Vue.user.orgid
696
+ userinfoms.f_orgname_record = Vue.user.orgs
697
+ userinfoms.f_depid_record = Vue.user.depids
698
+ userinfoms.f_depname_record = Vue.user.deps
699
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
700
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
701
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
702
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
703
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
704
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
705
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
706
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
707
+ userinfoms.userfiles = []
708
+ userinfoms.userphone = this.userphone
709
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
710
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
711
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
712
+ data: {
713
+ userinfo: userinfoms,
714
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
715
+ address: {
716
+ id: this.userinfo_old.addressinfo.id,
717
+ oldid: this.userinfo_old.addressinfo.id,
718
+ f_address: this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
719
+ }
720
+ }
721
+ }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
722
+ if (res1.data.status == 200) {
723
+ let data = this.userinfo.addressinfo
724
+ data.f_address = this.userinfo.addressinfo.f_address ? this.userinfo.addressinfo.f_address : this.userinfo_old.addressinfo.f_address
725
+ //
726
+ data.f_operator = Vue.user.name
727
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/address_updateuseraddress`, { data: data }).then((res2) => {
728
+ this.$showMessage("修改用户地址信息成功!")
729
+ }).catch(error => {
730
+ this.$showMessage("修改用户地址信息!")
731
+ })
732
+ this.$showMessage("修改用户信息成功!")
733
+ this.enable = true
734
+ this.excessive = false
735
+ }
736
+ }).catch((msg) => {
737
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
738
+ this.excessive = false
739
+ })
740
+ }
741
+ })
742
+ },
743
+ editUserInfo() {
744
+ let checked = this.checkVal()
745
+ if (!checked.ischeck) {
746
+ this.$showMessage(checked.msg)
747
+ return
748
+ }
749
+
750
+ if (this.userphone[0].f_rent_phone) {
751
+ this.userinfo.baseinfo.base.f_rent_phone = this.userphone[0].f_rent_phone
752
+ }
753
+
754
+ this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
755
+ if (res === 'confirm') {
756
+ this.excessive = true
757
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
758
+ //userinfoms.f_user_name=row.f_user_name
759
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
760
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
761
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
762
+ userinfoms.f_operator_record = Vue.user.name
763
+ userinfoms.f_operatorid_record = Vue.user.id
764
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
765
+ userinfoms.f_orgid_record = Vue.user.orgid
766
+ userinfoms.f_orgname_record = Vue.user.orgs
767
+ userinfoms.f_depid_record = Vue.user.depids
768
+ userinfoms.f_depname_record = Vue.user.deps
769
+ this.userinfo_old.meterinfo[0].f_gas_person = this.userinfo.meterinfo[0].f_gas_person
770
+ this.userinfo_old.meterinfo[0].f_gas_date = this.userinfo.meterinfo[0].f_gas_date
771
+ this.userinfo_old.meterinfo[0].f_adjustable_id = this.userinfo.meterinfo[0].f_adjustable_id
772
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
773
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
774
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
775
+ this.userinfo_old.meterinfo[0].f_bqf_state = this.userinfo.meterinfo[0].f_bqf_state
776
+ this.userinfo_old.meterinfo[0].f_if_direct = this.userinfo.meterinfo[0].f_if_direct
777
+ userinfoms.userfiles = []
778
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
779
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
780
+ userinfoms.userphone = this.userphone
781
+ //tag)
782
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_fileSave`, {
783
+ data: {
784
+ userinfo: userinfoms,
785
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
786
+ address: { id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id }
787
+ }
788
+ }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
789
+ //tag+res1.data.status)
790
+ if (res1.data.status == 200) {
791
+ //本次修改信息包含需要审核信息
792
+ if (this.approveChange) {
793
+ //tag
794
+ let res2 = this.$androidUtil.bzLogic('safe_upUserinfoApprove', {
795
+ row: {
796
+ f_time: Util.toStandardTimeString(),
797
+ f_modifier: Vue.user.name,//Vue.user.name
798
+ f_modifier_id: Vue.user.id,//Vue.user.id
799
+ f_modify_type: '用户档案',
800
+ f_userinfoid: this.userinfo.baseinfo.base.f_userinfo_id,
801
+ f_userinfo_code: this.userinfo.baseinfo.base.f_userinfo_code,
802
+ f_approved: '未审核',
803
+ filialestr: Vue.user.orgid,//Vue.user.orgid
804
+ version: 1,
805
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
806
+ f_user_phone: this.userinfo.baseinfo.base.f_user_phone,
807
+ f_street: this.userinfo.addressinfo.f_street,
808
+ f_building: this.userinfo.addressinfo.f_building,
809
+ f_unit: this.userinfo.addressinfo.f_unit,
810
+ f_floor: this.userinfo.addressinfo.f_floor,
811
+ f_room: this.userinfo.addressinfo.f_room,
812
+ f_building_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_building_suffix,
813
+ f_unit_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_unit_suffix,
814
+ f_floor_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_floor_suffix,
815
+ f_room_suffix: this.userinfo.addressinfo.f_special == 1 ? null : this.userinfo.addressinfo.f_room_suffix,
816
+ f_residential_area: this.userinfo.addressinfo.f_residential_area,
817
+ f_address: this.userinfo.addressinfo.f_address,
818
+ f_pcd: this.userinfo.addressinfo.f_pcd,
819
+ f_pcd_id: this.userinfo.addressinfo.f_pcd_id,
820
+ f_street_id: this.userinfo.addressinfo.f_street_id,
821
+ f_residential_area_id: this.userinfo.addressinfo.f_residential_area_id,
822
+ f_used_name: this.userinfo.baseinfo.base.f_used_name,
823
+ f_rent_phone: this.userinfo.baseinfo.base.f_rent_phone,
824
+ f_slice_area: this.userinfo.addressinfo.f_slice_area,
825
+ f_remark: this.userinfo.baseinfo.base.f_remark,
826
+ f_source: this.f_source,
827
+ f_meterno_path: this.f_meterno_path,
828
+ f_iscity: this.userinfo.addressinfo.f_iscity,
829
+ f_special: this.userinfo.addressinfo.f_special,
830
+ f_meternumber: this.userinfo.meterinfo[0].f_meternumber,
831
+ changemeterno: this.changemeterno
832
+ },
833
+ tablename: 't_modify_userinfo'
834
+ })
835
+ //tag)
836
+ if (res2.code == 200) {
837
+ this.$showMessage("变更用户信息成功,需要审核的信息已提交审核,等待管理员处理!")
838
+ this.enable = true
839
+ this.excessive = false
840
+ } else {
841
+ this.$showMessage("上传审核信息失败,请检查图片和网络状况是否正常!")
842
+ this.excessive = false
843
+ }
844
+ } else {
845
+ this.$showMessage("修改用户信息成功!")
846
+ this.enable = true
847
+ this.excessive = false
848
+ }
849
+ }
850
+ }).catch((msg) => {
851
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
852
+ this.excessive = false
853
+ })
854
+ }
855
+ })
856
+ },
857
+ imgback(header) {
858
+ if (this.headername == header) {
859
+ return require('../../../assets/xiangxia1.png')
860
+ } else {
861
+ return require('../../../assets/xiangyou1.png')
862
+ }
863
+ this.headername = header
864
+ },
865
+ selectVal(header) {
866
+ if (this.headername == header) {
867
+ this.headername = ''
868
+ } else {
869
+ this.headername = header
870
+ }
871
+ },
872
+ changeNewAddress() {
873
+ this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
874
+ },
875
+ area_change() {
876
+ //tag
877
+ this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
878
+ this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
879
+ this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
880
+ this.changeNewAddress()
881
+ //this.userinfo.addressinfo.f_residential_area=this.f_residential_area.f_residential_area
882
+ },
883
+ async street_change() {
884
+ //tag
885
+ if (this.selectStreet.id) {
886
+ //如果街道改变--给街道赋值!
887
+ this.userinfo.addressinfo.f_street = this.selectStreet.f_street
888
+ this.userinfo.addressinfo.f_street_id = this.selectStreet.id
889
+ this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
890
+ //清空当前选中小区的值
891
+ this.userinfo.addressinfo.f_residential_area = ''
892
+ this.userinfo.addressinfo.f_residential_area_id = ''
893
+ this.userinfo.addressinfo.f_slice_area = ''
894
+ this.selectArea = { id: '' }
895
+ this.area = []
896
+ let pcdText = ` and f_street_id=${this.selectStreet.id}`
897
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
898
+ data: {
899
+ items: "*",
900
+ tablename: "t_area",
901
+ orderitem: "id",
902
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
903
+ }
904
+ }, { resolveMsg: null, rejectMsg: null })
905
+ ////tag)
906
+ res.data.forEach((result) => {
907
+ this.area.push({ label: result.f_residential_area, value: result })
908
+ })
909
+ } else {
910
+ this.area = []
911
+ }
912
+ this.changeNewAddress()
913
+ },
914
+ async pcd_change() {
915
+ //tag
916
+ if (this.selectPcd.id) {
917
+ //tag
918
+ //如果省市区改变-重新赋值
919
+ this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
920
+ this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
921
+ //清空 选中的街道和集收单位
922
+ this.selectStreet = { id: '' }
923
+ this.userinfo.addressinfo.f_street = ''
924
+ this.userinfo.addressinfo.f_street_id = ''
925
+ this.userinfo.addressinfo.f_iscity = ''
926
+ this.selectArea = { id: '' }
927
+ this.userinfo.addressinfo.f_residential_area = ''
928
+ this.userinfo.addressinfo.f_residential_area_id = ''
929
+ this.userinfo.addressinfo.f_slice_area = ''
930
+ this.streets = []
931
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
932
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
933
+ data: {
934
+ items: "*",
935
+ tablename: "t_street",
936
+ orderitem: "id",
937
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
938
+ }
939
+ }, { resolveMsg: null, rejectMsg: null })
940
+ streetlist.data.forEach((result) => {
941
+ this.streets.push({ label: result.f_street, value: result })
942
+ })
943
+ } else {
944
+ this.streets = []
945
+ }
946
+ this.changeNewAddress()
947
+ },
948
+ upUserState() {
949
+ //tag)
950
+ if (this.userinfo.meterinfo[0].f_table_state == '正常') {
951
+ let data = {
952
+ f_userfiles_id: {
953
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
954
+ f_table_state: '停用',
955
+ version: this.userinfo.meterinfo[0].version
956
+ },
957
+ f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
958
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
959
+ f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
960
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
961
+ f_comments: '安检时发现问题关闭阀门',
962
+ f_othereason: '',
963
+ f_operat_type: '停用',
964
+ f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
965
+ f_state: '有效',
966
+ f_operator: Vue.user.name,//${Vue.$login.f.name}
967
+ f_operatorid: Vue.user.id,
968
+ f_orgid: Vue.user.orgid,
969
+ f_orgname: Vue.user.orgs,
970
+ f_depid: Vue.user.depids,
971
+ f_depname: Vue.user.deps,
972
+ f_zoneid: Vue.user.zoneid,
973
+ f_zones: Vue.user.zones
974
+ }
975
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
976
+ data, { resolveMsg: null, rejectMsg: null }).then((row) => {
977
+ this.$showMessage('已成功关阀停气!')
978
+ this.userinfo.meterinfo[0].f_table_state = '停用'
979
+ })
980
+ } else {
981
+ this.$showMessage('该用户已被关阀停用,请勿重复操作!')
982
+ }
983
+
984
+ },
985
+ addDevices() {
986
+ //Vue.user.name
987
+ let obj = {
988
+ "f_operator": Vue.user.name,
989
+ "f_picture": null,
990
+ "f_pipe_type": null,
991
+ "f_pipeinstall_date": null,
992
+ "f_pipe_connection": null,
993
+ "f_expire_date": null,
994
+ "f_pipeexpire_date": null,
995
+ "f_comments": null,
996
+ "f_operate_date": Util.toStandardTimeString(),
997
+ "f_operatorid": Vue.user.id,
998
+ "f_devices_num": null,
999
+ "f_process_id": null,
1000
+ "f_devices_type": null,
1001
+ "f_make_date": null,
1002
+ "f_input_date": null,
1003
+ "f_state": "有效",
1004
+ "f_brand": null,
1005
+ "f_devices_model": null,
1006
+ "f_devices_no": null,
1007
+ "img": { "content": null, "filename": null }
1008
+ }
1009
+ this.model.push(obj)
1010
+ },
1011
+ delDevices(idx) {
1012
+ //tag
1013
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
1014
+ if (res === 'confirm') {
1015
+ this.model.splice(idx, 1)
1016
+ }
1017
+ })
1018
+ },
1019
+ async getAreaList(text) {
1020
+ if (this.selectStreet.id) {
1021
+ this.area = []
1022
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
1023
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1024
+ data: {
1025
+ items: "*",
1026
+ tablename: "t_area",
1027
+ orderitem: "id",
1028
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1029
+ }
1030
+ }, { resolveMsg: null, rejectMsg: null })
1031
+ ////tag)
1032
+ res.data.forEach((result) => {
1033
+ this.area.push({ label: result.f_residential_area, value: result })
1034
+ })
1035
+ //tag
1036
+ this.area.push({
1037
+ label: this.userinfo.addressinfo.f_residential_area,
1038
+ value: {
1039
+ id: this.userinfo.addressinfo.f_residential_area_id,
1040
+ f_residential_area: this.userinfo.addressinfo.f_residential_area
1041
+ }
1042
+ })
1043
+ } else {
1044
+ this.area = []
1045
+ }
1046
+
1047
+ },
1048
+ async getStreetList() {
1049
+ if (this.selectPcd.id) {
1050
+ //tag
1051
+ this.streets = []
1052
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
1053
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1054
+ data: {
1055
+ items: "*",
1056
+ tablename: "t_street",
1057
+ orderitem: "id",
1058
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1059
+ }
1060
+ }, { resolveMsg: null, rejectMsg: null })
1061
+ streetlist.data.forEach((result) => {
1062
+ //如果第一次进来有地址id 就拿下地址区域
1063
+ if (this.selectStreet.id && this.selectStreet.id == result.id) {
1064
+ //tag)
1065
+ this.userinfo.addressinfo.f_iscity = result.f_iscity
1066
+ }
1067
+ this.streets.push({ label: result.f_street, value: result })
1068
+ })
1069
+ } else {
1070
+ this.streets = []
1071
+ }
1072
+ },
1073
+ async confirmLimitGas() {
1074
+ this.$dispatch('limit', this.models);
1075
+ console.log('提交限购数据', this.models);
1076
+ let restrict = {
1077
+ f_third_pay: this.models.f_third_pay,
1078
+ f_time_type: this.models.f_time_type,
1079
+ f_limit_times: this.models.f_limit_times,
1080
+ f_time_value: this.models.f_time_value,
1081
+ f_limit_type: this.models.f_limit_type,
1082
+ f_limit_style: this.models.f_limit_style,
1083
+ f_limit_value: this.models.f_limit_value,
1084
+ f_limit_amount: this.models.f_limit_amount,
1085
+ f_operator: Vue.user.name,
1086
+ f_status: this.models.f_status,
1087
+ f_start_date: this.$login.toStandardDateString()
1088
+ };
1089
+ let operInfo = {
1090
+ f_operator: Vue.user.name,
1091
+ f_operatorid: Vue.user.id,
1092
+ f_orgid: Vue.user.orgid,
1093
+ f_orgname: Vue.user.orgs,
1094
+ f_depid: Vue.user.depids,
1095
+ f_depname: Vue.user.deps,
1096
+ };
1097
+ let user = {
1098
+ f_userinfo_id: this.f_userinfo_id,
1099
+ f_user_name: this.f_user_name,
1100
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
1101
+ f_table_state: this.userinfo.meterinfo[0].f_table_state,
1102
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
1103
+ };
1104
+ let param = {
1105
+ restrict,
1106
+ user,
1107
+ operInfo
1108
+ };
1109
+ console.log('提交限购数据', JSON.stringify(param));
1110
+ let http = new HttpResetClass();
1111
+ await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/limitGas`, {
1112
+ data: param
1113
+ });
1114
+ },
1115
+ changeAddressType(val) {
1116
+ //tag
1117
+ if (this.addressType == '普通地址') {
1118
+ this.userinfo.addressinfo.f_special = null
1119
+ } else if (this.addressType == '特殊地址') {
1120
+ this.userinfo.addressinfo.f_special = 1
1121
+ this.userinfo.addressinfo.f_building = null
1122
+ this.userinfo.addressinfo.f_unit = null
1123
+ this.userinfo.addressinfo.f_floor = null
1124
+ this.userinfo.addressinfo.f_room = null
1125
+ }
1126
+ this.changeNewAddress()
1127
+ }
1128
+
1129
+ },
1130
+ computed: {
1131
+ getAddress() {
1132
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1133
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1134
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
1135
+ (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '') : '') +
1136
+ (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '') : '') +
1137
+ (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '') : '') +
1138
+ (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '') : '')
1139
+ },
1140
+ getAddressTS() {
1141
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
1142
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
1143
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
1144
+ }
1145
+ },
1146
+ watch: {
1147
+
1148
+ /*'selectPcd.id' (val) {
1149
+ //tag
1150
+ if(this.selectPcd.id){
1151
+ this.getStreetList()
1152
+ }
1153
+ },
1154
+ 'selectStreet.id' (val) {
1155
+ //tag
1156
+ if(this.selectStreet.id){
1157
+ this.getAreaList()
1158
+ }
1159
+ }*/
1160
+ },
1161
+ async ready() {
1162
+ console.log(Vue.user);
1163
+ console.log()
1164
+ this.editAddress = !(Vue.user.r.includes('手机端修改地址'))
1165
+ console.log(this.editAddress)
1166
+ /*//tag)
1167
+ {{)}}
1168
+
1169
+ //tag)
1170
+ //tag)*/
1171
+ //this.f_userinfo_id=1102260
1172
+ //this.f_userinfo_id=1997541
1173
+ if (!this.f_userinfo_id) {
1174
+ this.$showMessage("未检测到用户!")
1175
+ this.enable = true
1176
+ return
1177
+ }
1178
+ try {
1179
+
1180
+ this.devices_types = Vue.$appdata.getParam('设备类型')
1181
+ console.log('this.devices_types=', JSON.stringify(this.devices_types))
1182
+ for (const devices_type of this.devices_types) {
1183
+ console.log('Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)=', JSON.stringify(Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`)))
1184
+ this.deviceBrandOption[devices_type.label] = Vue.$appdata.getParam(`档案设备信息-${devices_type.label}品牌`) || []
1185
+ }
1186
+ console.log('this.deviceBrandOption=', JSON.stringify(this.deviceBrandOption))
1187
+ this.wz_types = Vue.$appdata.getParam('安装位置')
1188
+ this.aroundmeters = Vue.$appdata.getParam('左右表')
1189
+
1190
+ ////tag)
1191
+ this.excessive = true
1192
+ //Vue.user.orgid ${this.f_userinfo_id} 10101 ${Vue.user.orgid}
1193
+
1194
+ let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1195
+ data: {
1196
+ items: "*",
1197
+ tablename: "t_pcd",
1198
+ orderitem: "id",
1199
+ condition: `f_orgid = '${Vue.user.orgid}'`
1200
+ }
1201
+ }, { resolveMsg: null, rejectMsg: null })
1202
+ //tag)
1203
+ pcdlist.data.forEach((result) => {
1204
+ this.pcds.push({ label: result.f_pcd, value: result })
1205
+ })
1206
+ ////tag)
1207
+ let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/filemanage_getFilesDetail`, {
1208
+ //f_userinfo_code:'12381344',
1209
+ f_userinfo_id: this.f_userinfo_id
1210
+ }, { resolveMsg: null, rejectMsg: null })
1211
+ //tag
1212
+ //tag
1213
+ this.userinfo = res.data
1214
+ if (this.userinfo.meterinfo[0].f_user_type == '民用'){
1215
+ this.devices_types = Vue.$appdata.getParam('民用设备类型')
1216
+ }
1217
+ this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1218
+ this.model = this.userinfo.meterinfo[0].devicesinfo
1219
+ this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1220
+ this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1221
+ this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
1222
+ this.selectStreet.id = this.userinfo.addressinfo.f_street_id
1223
+ this.selectStreet.f_street = this.userinfo.addressinfo.f_street
1224
+ await this.getStreetList()
1225
+ await this.getAreaList()
1226
+ this.excessive = false
1227
+ this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
1228
+ //this.userinfo.addressinfo.f_special=1
1229
+ //tag
1230
+ let userphone = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1231
+ data: {
1232
+ items: "*",
1233
+ tablename: "t_user_phone",
1234
+ orderitem: "id",
1235
+ condition: `f_userinfo_id = '${this.f_userinfo_id}' and f_state = '有效'`
1236
+ }
1237
+ }, { resolveMsg: null, rejectMsg: null })
1238
+ let tempObj = {
1239
+ id: null,
1240
+ f_userinfo_id: this.f_userinfo_id,
1241
+ f_rent_phone: '',
1242
+ f_state: '有效',
1243
+ f_orgid: Vue.user.orgid,
1244
+ f_orgname: Vue.user.orgs,
1245
+ f_depid: Vue.user.depids,
1246
+ f_depname: Vue.user.deps,
1247
+ f_operatorid: Vue.user.id,
1248
+ f_operator: Vue.user.id
1249
+ }
1250
+ if (userphone.data.length == 0) {
1251
+ this.userphone.push(tempObj)
1252
+ this.userphone.push(tempObj)
1253
+ } else {
1254
+ if (userphone.data.length == 1) {
1255
+ this.userphone = userphone.data
1256
+ this.userphone.push(tempObj)
1257
+ } else {
1258
+ this.userphone = userphone.data
1259
+ }
1260
+ }
1261
+ } catch (e) {
1262
+ this.excessive = false
1263
+ this.enable = true
1264
+ this.$showMessage('获取用户信息出错,请检查网络状况!')
1265
+ }
1266
+ new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, { data: {} }, {
1267
+ resolveMsg: null,
1268
+ rejectMsg: null
1269
+ }).then((addressUnit) => {
1270
+ //tag
1271
+ //tag
1272
+ //tag
1273
+ //tag
1274
+ this.userinfo.addressinfo.f_building_suffix = addressUnit.data.f_building_suffix
1275
+ this.userinfo.addressinfo.f_unit_suffix = addressUnit.data.f_unit_suffix
1276
+ this.userinfo.addressinfo.f_floor_suffix = addressUnit.data.f_floor_suffix
1277
+ this.userinfo.addressinfo.f_room_suffix = addressUnit.data.f_room_suffix
1278
+ }).catch((msg) => {
1279
+ //tag)
1280
+ })
1281
+ this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1282
+ console.log(this.showBox)
1283
+ if (this.showBox) {
1284
+ // 获取调压箱
1285
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1286
+ resolveMsg: null,
1287
+ rejectMsg: null
1288
+ }).then((res) => {
1289
+ const boxOptions = []
1290
+ for (const data of res.data) {
1291
+ const one = {
1292
+ label: data.f_adjustable_id + data.f_adjustable_name,
1293
+ value: Number(data.f_adjustable_id)
1294
+ }
1295
+ boxOptions.push(one)
1296
+ }
1297
+ this.boxOptions = JSON.parse(JSON.stringify(boxOptions))
1298
+ console.log(this.boxOptions)
1299
+ }).catch((msg) => {
1300
+ //tag)
1301
+ })
1302
+ }
1303
+ }
1304
+ }
1305
+ </script>
1306
+ <style lang="less" scoped>
1307
+ .butt3 {
1308
+ float: right;
1309
+ width: 12px;
1310
+ margin: 1% 2% 0 0;
1311
+ }
1312
+
1313
+ .rightipt {
1314
+ width: 60%;
1315
+ float: left;
1316
+ margin-left: 5%;
1317
+ }
1318
+
1319
+ .righttxt {
1320
+ border: none;
1321
+ margin-left: 5px;
1322
+ /*border-left: 5px solid #A2C2EB;*/
1323
+ float: left;
1324
+ width: 25%;
1325
+ margin-bottom: 3px;
1326
+ text-align: left;
1327
+ word-wrap: break-word;
1328
+ white-space: normal;
1329
+ }
1330
+
1331
+ .tit1 {
1332
+ /*background: #ffffff url('../../../assets/用户姓名.png') no-repeat fixed center;*/
1333
+ background-image: url('../../../assets/用户姓名.png');
1334
+ background-repeat: no-repeat;
1335
+ background-position: center;
1336
+ }
1337
+
1338
+ .spanboder {
1339
+ border-bottom: 2px solid #499edf;
1340
+ padding-bottom: 8px
1341
+ }
1342
+
1343
+ #upuserinfo_sel /deep/ ul {
1344
+ width: 100% !important;
1345
+ left: 0 !important;
1346
+ }
1347
+
1348
+ .btn-photo {
1349
+ border: 0;
1350
+ border-radius: 7px;
1351
+ background-color: #7dc1f4;
1352
+ font: 15px PingFang-SC-Bold;
1353
+ height: 20%;
1354
+ }
1355
+
1356
+ .panel-self {
1357
+ border-radius: 10px;
1358
+ border: 1px solid #499EDF;
1359
+ background-color: #F8F8F8;
1360
+ }
1361
+
1362
+ .div-photo {
1363
+ width: auto;
1364
+ height: auto;
1365
+ /* margin-top: 10px; */
1366
+ position: absolute;
1367
+ bottom: 10px;
1368
+ right: 10px;
1369
+ }
1370
+ </style>
1371
+ <style lang="less">
1372
+ #upuserinfo_sel ul {
1373
+ width: 100% !important;
1374
+ left: 0 !important;
1375
+ }
1376
+ </style>