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