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