telephone-clients 3.0.103-9 → 3.0.103-90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +5 -3
  3. package/src/assets//345/210/240/351/231/244.png +0 -0
  4. package/src/components/Util/RightTreeSafe.vue +2 -2
  5. package/src/components/Util/RightTreeSafeDep.vue +350 -0
  6. package/src/components/android/AddMyTask.vue +7 -0
  7. package/src/components/pc/NewRepairPaper.vue +2 -2
  8. package/src/components/pc/RepairsWork.vue +19 -0
  9. package/src/components/pc/RoleSelectorDep.vue +158 -0
  10. package/src/components/pc/TelFindUser.vue +1 -1
  11. package/src/components/pc/TelListener.vue +47 -16
  12. package/src/components/pc/WorkCenter.vue +1 -1
  13. package/src/components/pc/WorkCenterList.vue +1 -1
  14. package/src/components/pc/WorkHistory.vue +14 -2
  15. package/src/components/pc/WorkListAllNew.vue +1 -1
  16. package/src/components/pc/WorkListNew.vue +9 -3
  17. package/src/components/telreport/RepairsDetailsReport.vue +98 -0
  18. package/src/components/telreport/TableFaultReport.vue +96 -0
  19. package/src/components/telreport/Traffic.vue +3 -3
  20. package/src/components/temp/ChangemeterInfo.vue +4 -16
  21. package/src/components/temp/DeviceInfo.vue +2 -4
  22. package/src/components/temp/InfoTable.vue +5 -2
  23. package/src/components/temp/OldRepairList.vue +100 -0
  24. package/src/components/temp/RepairList.vue +2 -2
  25. package/src/components/weinan/RecordList.vue +2 -2
  26. package/src/components/weinan/SiteSend.vue +2 -2
  27. package/src/components/weinan/SiteSendWeixiu.vue +7 -16
  28. package/src/components/weinan/StandWorkWeixiu.vue +1 -1
  29. package/src/components/weinan/WorkList.vue +73 -0
  30. package/src/components/weinan/WorkListAll.vue +90 -14
  31. package/src/components/weinan/WorkListWeixiu.vue +1 -1
  32. package/src/components/workorder/CompletedRepair.vue +269 -183
  33. package/src/components/workorder/FaultAll.vue +9 -9
  34. package/src/components/workorder/PhoneUpDetail.vue +3 -0
  35. package/src/components/workorder/RepairDetails.vue +12 -2
  36. package/src/components/workorder/RepairFirstV.vue +1 -1
  37. package/src/filiale/kelai/android/AppTakePic.vue +143 -0
  38. package/src/filiale/kelai/android/PhoneVentilationLeave.vue +176 -0
  39. package/src/filiale/kelai/pc/WorkCenterList.vue +20 -3
  40. package/src/filiale/kelai/pc/WorkListAllNew.vue +47 -9
  41. package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -0
  42. package/src/filiale/kelai/telephone.js +9 -8
  43. package/src/filiale/kelai/telephoneAndroid.js +3 -1
  44. package/src/filiale/qianneng/android/FaultAll.vue +1 -1
  45. package/src/filiale/qianneng/android/TemporarySingle.vue +25 -0
  46. package/src/filiale/qianneng/pc/MaterialDetailed.vue +10 -0
  47. package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -0
  48. package/src/filiale/qianneng/pc/NewRepairPaper.vue +4 -4
  49. package/src/filiale/qianneng/pc/RepairsWork.vue +12 -2
  50. package/src/filiale/qianneng/pc/WorkHistory.vue +2 -2
  51. package/src/filiale/qianneng/pc/WorkListAllNew.vue +53 -5
  52. package/src/filiale/qianneng/pc/changetable.vue +273 -0
  53. package/src/filiale/qianneng/telephone.js +2 -0
  54. package/src/filiale/rizhao/pc/DispatchMan.vue +3 -3
  55. package/src/filiale/rizhao/pc/DispatchWork.vue +3 -3
  56. package/src/filiale/rizhao/pc/Traffic.vue +3 -3
  57. package/src/filiale/rizhao/pc/WorkListAllNew.vue +8 -3
  58. package/src/filiale/rongcheng/CliWorkListAll.vue +442 -407
  59. package/src/filiale/rongcheng/FaultAll.vue +3 -3
  60. package/src/filiale/rongcheng/RepairOrderV.vue +1445 -0
  61. package/src/filiale/rongcheng/telephoneAndroid.js +3 -1
  62. package/src/filiale/shanxian/android/RepairFirstV.vue +5 -1
  63. package/src/filiale/shanxian/pc/RepairsWork.vue +826 -0
  64. package/src/filiale/shanxian/telephone.js +2 -1
  65. package/src/filiale/shexian/android/AddMyTask.vue +7 -0
  66. package/src/filiale/shexian/android/CompletedRepair.vue +280 -0
  67. package/src/filiale/shexian/android/FaultAll.vue +16 -0
  68. package/src/filiale/shexian/android/Outlay.vue +182 -165
  69. package/src/filiale/shexian/android/RepairFirstV.vue +16 -2
  70. package/src/filiale/shexian/android/RepairInfo.vue +1 -0
  71. package/src/filiale/shexian/pc/TelByOrderManCount.vue +10 -2
  72. package/src/filiale/shexian/pc/WorkList.vue +25 -1
  73. package/src/filiale/shexian/pc/WorkListAllNew.vue +21 -15
  74. package/src/filiale/shexian/telephoneAndroid.js +3 -0
  75. package/src/filiale/tongchuan/android/TicketDetails.vue +3 -0
  76. package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +2 -2
  77. package/src/filiale/wenxi/android/FailureShow.vue +61 -0
  78. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1047 -0
  79. package/src/filiale/wenxi/android/RepairInfo.vue +158 -74
  80. package/src/filiale/wenxi/android/RepairOrderV.vue +1 -9
  81. package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -0
  82. package/src/filiale/wenxi/android/ZHihuanFirst.vue +502 -0
  83. package/src/filiale/wenxi/pc/DistributeWork.vue +107 -121
  84. package/src/filiale/wenxi/pc/FailureEdit.vue +1 -1
  85. package/src/filiale/wenxi/pc/GasWork.vue +747 -0
  86. package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -0
  87. package/src/filiale/wenxi/pc/RepairsWork.vue +15 -0
  88. package/src/filiale/wenxi/pc/TelFindUser.vue +213 -116
  89. package/src/filiale/wenxi/pc/WorkListAll.vue +5 -2
  90. package/src/filiale/wenxi/telephone.js +4 -6
  91. package/src/filiale/wenxi/telephoneAndroid.js +4 -1
  92. package/src/filiale/yuncheng/pc/TelFindUser.vue +302 -0
  93. package/src/filiale/yuncheng/telephone.js +12 -0
  94. package/src/filiale/zhongsheng/android/FaultAll.vue +741 -0
  95. package/src/filiale/zhongsheng/android/RepairUserInfo.vue +241 -214
  96. package/src/filiale/zhongsheng/telephoneAndroid.js +2 -1
  97. package/src/telephone.js +10 -0
  98. package/src/weinan.js +6 -0
@@ -0,0 +1,1047 @@
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
+ <labe class="righttxt">用户编号:</labe>
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
+ <labe class="righttxt">用户名称:</labe>
18
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_name" readonly/>
19
+ </div>
20
+ <div class="row auto" style="margin: 5px 0">
21
+ <labe class="righttxt">用户状态:</labe>
22
+ <!-- <v-select :value.sync="userinfo.baseinfo.base.f_user_state" class="input-font" style="margin-left: 5%;"-->
23
+ <!-- :width="'60%'"-->
24
+ <!-- v-model="userinfo.baseinfo.base.f_user_state"-->
25
+ <!-- :options='userTypes' placeholder='用户状态' close-on-select clear-button value-single></v-select>-->
26
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_state" readonly/>
27
+ </div>
28
+ <div class="row auto" style="margin: 5px 0">
29
+ <labe class="righttxt">用户电话:</labe>
30
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_user_phone"/>
31
+ </div>
32
+ <div class="row auto" style="margin: 5px 0">
33
+ <labe class="righttxt">合同日期:</labe>
34
+ <datepicker class="rightipt"
35
+ :value.sync="userinfo.baseinfo.base.f_contractdate"
36
+ v-model="userinfo.baseinfo.base.f_contractdate"
37
+ :disabled-days-of-Week="[]"
38
+ :format="'yyyy-MM-dd 00:00:00'"
39
+ :show-reset-button="reset" readonly="readonly"
40
+ >
41
+ </datepicker>
42
+ <!-- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_contractdate" />-->
43
+ </div>
44
+ <div class="row auto" style="margin: 5px 0">
45
+ <labe class="righttxt">租户姓名:</labe>
46
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_rent_name"/>
47
+ </div>
48
+ <div class="row auto" style="margin: 5px 0">
49
+ <labe class="righttxt">租户电话:</labe>
50
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
51
+ </div>
52
+ <div class="row auto" style="margin: 5px 0">
53
+ <labe class="righttxt">地址类型:</labe>
54
+ <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
55
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
56
+ id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px"
57
+ for="phone_addressType1">普通地址</label></div>
58
+ <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
59
+ id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px"
60
+ for="phone_addressType2">特殊地址</label></div>
61
+ </div>
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_pcd" />-->
64
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
65
+ :width="'60%'"
66
+ v-model="userinfo.addressinfo.f_iscity"
67
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single @change="area_change()"></v-select>-->
68
+ </div>
69
+ <div class="row auto" style="margin: 5px 0">
70
+ <labe class="righttxt">地区类型:</labe>
71
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
72
+ <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
73
+ <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
74
+ :width="'60%'"
75
+ :disabled="true"
76
+ v-model="userinfo.addressinfo.f_iscity"
77
+ :options='cityTypes' placeholder='地区类型' close-on-select clear-button value-single ></v-select>-->
78
+ </div>
79
+ <div class="row auto" style="margin: 5px 0">
80
+ <labe class="righttxt">省&ensp;市&ensp;区:</labe>
81
+ <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
82
+ <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
83
+ <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;"
84
+ :width="'60%'"
85
+ v-model="selectPcd"
86
+ :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
87
+ @change="pcd_change()"></v-select>
88
+ </div>
89
+ <div class="row auto" style="margin: 5px 0">
90
+ <labe class="righttxt">街道名称:</labe>
91
+ <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
92
+ <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;"
93
+ :width="'60%'"
94
+ v-model="selectStreet"
95
+ :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
96
+ @change="street_change()"></v-select>
97
+ </div>
98
+ <div class="row auto" style="margin: 5px 0">
99
+ <labe class="righttxt">集收单位:</labe>
100
+ <input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area"/>
101
+ <!-- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"-->
102
+ <!-- :width="'60%'"-->
103
+ <!-- v-model="selectArea"-->
104
+ <!-- :timeout="500"-->
105
+ <!-- @select-search="select_search"-->
106
+ <!-- readonly-->
107
+ <!-- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_change()"></v-select>-->
108
+ </div>
109
+ <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
110
+ <labe class="righttxt">集收单位:</labe>
111
+ &lt;!&ndash;<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />&ndash;&gt;
112
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
113
+ :width="'60%'"
114
+ v-model="selectArea"
115
+ @select-search="select_search"
116
+ :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
117
+ </div>-->
118
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址' ">
119
+ <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</labe>
120
+ <input type="text" @change="changeNewAddress" class="form-control rightipt"
121
+ v-model="userinfo.addressinfo.f_building"/>
122
+ </div>
123
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址' ">
124
+ <labe class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</labe>
125
+ <input type="text" @change="changeNewAddress" class="form-control rightipt"
126
+ v-model="userinfo.addressinfo.f_unit"/>
127
+ </div>
128
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址' ">
129
+ <labe class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</labe>
130
+ <input type="text" @change="changeNewAddress" class="form-control rightipt"
131
+ v-model="userinfo.addressinfo.f_floor"/>
132
+ </div>
133
+ <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址' ">
134
+ <labe class="righttxt">门&ensp;牌&ensp;号:</labe>
135
+ <input type="text" @change="changeNewAddress" class="form-control rightipt"
136
+ v-model="userinfo.addressinfo.f_room"/>
137
+ </div>
138
+ <div class="row auto" style="margin: 5px 0">
139
+ <labe class="righttxt">详细地址:</labe>
140
+ <input type="text" class="form-control rightipt" v-model="userinfo_old.addressinfo.f_address"/>
141
+ </div>
142
+ <div class="row auto" style="margin: 5px 0">
143
+ <labe class="righttxt">新&ensp;地&ensp;址:</labe>
144
+ <!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
145
+ <textarea readonly class="form-control rightipt" style="height: 80px"
146
+ v-model="userinfo.addressinfo.f_address"></textarea>
147
+ </div>
148
+ <div class="row auto" style="margin: 5px 0">
149
+ <labe class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</labe>
150
+ <textarea class="form-control rightipt" style="height: 150px"
151
+ v-model="userinfo.baseinfo.base.f_remark"></textarea>
152
+ <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
153
+ </div>
154
+ </div>
155
+ </div>
156
+ <div class="panel auto">
157
+ <div class="panel-heading" @click="selectVal('表具信息')" style="background-color: #ffffff">
158
+ <span class="spanboder">
159
+ <img src="../../../assets/person.png" style="width: 22px;margin-right: 8px;">表具信息
160
+ <img class="butt3" :src="imgback('表具信息')">
161
+ </span>
162
+ </div>
163
+ <div class="panel-body " v-show="headername=='表具信息'">
164
+ <div class="row auto" style="margin: 5px 0">
165
+ <labe class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</labe>
166
+ <input type="text"
167
+ :readonly="userinfo.meterinfo[0].f_table_state != '待开通'"
168
+ class="form-control rightipt"
169
+ style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber"/>
170
+ <button type="button"
171
+ :disabled="userinfo.meterinfo[0].f_table_state != '待开通'"
172
+ name="button"
173
+ class="btn btn-primary" style="width: 15%" @click="scan">扫码
174
+ </button>
175
+ </div>
176
+
177
+ <!--<div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_meter_classify=='机表'">
178
+ <div class="auto">
179
+ <div class="panel" style="padding: 0px 15px 5px 10px;">
180
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
181
+ <div class="row" style="height: 240px;">
182
+ <div class="col-sm-4">
183
+ <img-self :src="f_meterno_path" alt="表号照片" width="150" height="200"></img-self>
184
+ </div>
185
+ </div>
186
+ <div class="row text-right div-photo" :class="style__">
187
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_meterno_path', '表号照片')">拍照</button>
188
+ <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_meterno_path', this.f_meterno_path)" style="width: 25%;"></img>
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </div>
193
+ </div>-->
194
+ <div class="row auto" style="margin: 5px 0">
195
+ <labe class="righttxt">表&ensp;封&ensp;号:</labe>
196
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"
197
+ :readonly="userinfo.meterinfo[0].f_table_state != '待开通'"/>
198
+ </div>
199
+ <div class="row auto" style="margin: 5px 0">
200
+ <labe class="righttxt">表&ensp;位&ensp;置:</labe>
201
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
202
+ v-model="userinfo.meterinfo[0].f_position"
203
+ placeholder='请选择'
204
+ :width='wid'
205
+ readonly
206
+ :options="wz_types"
207
+ close-on-select value-single></v-select>
208
+ </div>
209
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_table_state == '待开通'">
210
+ <labe class="righttxt">表&ensp;品&ensp;牌:</labe>
211
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_gasbrand"
212
+ v-model="userinfo.meterinfo[0].f_gasbrand"
213
+ placeholder='请选择'
214
+ :width='wid'
215
+ readonly
216
+ :options="gasbrands"
217
+ close-on-select value-single></v-select>
218
+ </div>
219
+ <div class="row auto" style="margin: 5px 0" v-if="userinfo.meterinfo[0].f_table_state == '待开通'">
220
+ <labe class="righttxt">气表型号:</labe>
221
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_gasmodel"
222
+ v-model="userinfo.meterinfo[0].f_gasmodel"
223
+ placeholder='请选择'
224
+ :width='wid'
225
+ readonly
226
+ :disabled="gasmodels.length == 0"
227
+ :options="gasmodels"
228
+ close-on-select value-single></v-select>
229
+ </div>
230
+ <div class="row auto" style="margin: 5px 0">
231
+ <labe class="righttxt">初始底数:</labe>
232
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_base"/>
233
+ </div>
234
+ <div class="row auto" style="margin: 5px 0">
235
+ <labe class="righttxt">左&ensp;右&ensp;表:</labe>
236
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
237
+ v-model="userinfo.meterinfo[0].f_aroundmeter"
238
+ placeholder='请选择'
239
+ :width='wid'
240
+ readonly
241
+ :options="aroundmeters"
242
+ close-on-select value-single></v-select>
243
+ </div>
244
+ <div class="row auto" style="margin: 5px 0">
245
+ <labe class="righttxt">气表类型:</labe>
246
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_meter_classify"
247
+ v-model="userinfo.meterinfo[0].f_meter_classify"
248
+ placeholder='请选择'
249
+ :width='wid'
250
+ readonly
251
+ :disabled="true"
252
+ :options="meter_classifys"
253
+ close-on-select value-single></v-select>
254
+ </div>
255
+ <div class="row auto" style="margin: 5px 0">
256
+ <div style="display: flex;justify-content: center;">
257
+ <button v-if="userinfo.meterinfo[0].f_meter_classify=='机表'" class="col-sm-3 btn btn-primary"
258
+ @click="upUserState()">机表关阀停用
259
+ </button>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ <div class="panel auto">
265
+ <div class="panel-heading" @click="selectVal('设备信息')" style="background-color: #ffffff">
266
+ <span class="spanboder"><img src="../../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
267
+ class="butt3" :src="imgback('设备信息')"></span>
268
+ </div>
269
+ <div class="panel-body" v-show="headername=='设备信息'">
270
+ <div class="row" v-for="row in model"
271
+ style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
272
+ <div class="row auto" style="margin: 5px 0">
273
+ <labe class="righttxt">设备类型:</labe>
274
+ <v-select class="rightipt" :value.sync="row.f_devices_type"
275
+ v-model="row.f_devices_type"
276
+ placeholder='请选择'
277
+ :width='wid'
278
+ readonly
279
+ :options="devices_types"
280
+ close-on-select value-single></v-select>
281
+ </div>
282
+ <div class="row auto" style="margin: 5px 0">
283
+ <labe class="righttxt">设备品牌:</labe>
284
+ <input type="text" class="form-control rightipt" v-model="row.f_brand"/>
285
+ </div>
286
+ <div class="row auto" style="margin: 5px 0">
287
+ <labe class="righttxt">设备型号:</labe>
288
+ <input type="text" class="form-control rightipt" v-model="row.f_devices_model"/>
289
+ </div>
290
+ <div class="row auto" style="margin: 5px 0">
291
+ <labe class="righttxt">生产日期:</labe>
292
+ <datepicker class="rightipt"
293
+ :value.sync="row.f_make_date"
294
+ v-model="row.f_make_date"
295
+ :disabled-days-of-Week="[]"
296
+ :format="'yyyy-MM-dd'"
297
+ :show-reset-button="reset" readonly="readonly">
298
+ </datepicker>
299
+ </div>
300
+ <div class="row auto" style="margin: 5px 0">
301
+ <labe class="righttxt">使用年限:</labe>
302
+ <input type="number" class="form-control rightipt" v-model="row.f_service_life"/>
303
+ </div>
304
+ <div class="row auto" style="margin: 5px 0">
305
+ <labe class="righttxt">到期日期:</labe>
306
+ <datepicker class="rightipt"
307
+ :value.sync="row.f_expire_date"
308
+ v-model="row.f_expire_date"
309
+ :disabled-days-of-Week="[]"
310
+ :format="'yyyy-MM-dd'"
311
+ :show-reset-button="reset" readonly="readonly">
312
+ </datepicker>
313
+ </div>
314
+ <div class="row auto" style="margin: 5px 0">
315
+ <labe class="righttxt">安&ensp;装&ensp;人:</labe>
316
+ <input type="text" class="form-control rightipt" v-model="row.f_input_person"/>
317
+ </div>
318
+ <div class="row auto" style="margin: 5px 0">
319
+ <labe class="righttxt">安装日期:</labe>
320
+ <datepicker class="rightipt"
321
+ :value.sync="row.f_input_date"
322
+ v-model="row.f_input_date"
323
+ :disabled-days-of-Week="[]"
324
+ :format="'yyyy-MM-dd'"
325
+ :show-reset-button="reset" readonly="readonly">
326
+ </datepicker>
327
+ </div>
328
+ <div class="row auto" style="margin: 5px 0">
329
+ <labe class="righttxt">设备数量:</labe>
330
+ <input type="number" class="form-control rightipt" v-model="row.f_devices_num"/>
331
+ </div>
332
+ <div class="row auto" style="margin: 5px 0">
333
+ <labe class="righttxt">有无不锈钢波纹管:</labe>
334
+ <v-select class="rightipt" :value.sync="row.f_pipe_type"
335
+ v-model="row.f_pipe_type"
336
+ placeholder='请选择'
337
+ :width='wid'
338
+ readonly
339
+ :options="pipetypes"
340
+ close-on-select value-single></v-select>
341
+ </div>
342
+ <div class="row auto" style="margin: 5px 0">
343
+ <labe class="righttxt">波纹管数量:</labe>
344
+ <input type="text" class="form-control rightipt" v-model="row.f_pipe_num"/>
345
+ </div>
346
+ <div class="row auto" style="margin: 5px 0">
347
+ <labe class="righttxt">管道安装日期:</labe>
348
+ <datepicker class="rightipt"
349
+ :value.sync="row.f_pipeinstall_date"
350
+ v-model="row.f_pipeinstall_date"
351
+ :disabled-days-of-Week="[]"
352
+ :format="'yyyy-MM-dd'"
353
+ :show-reset-button="reset" readonly="readonly">
354
+ </datepicker>
355
+ </div>
356
+ <div class="row auto" style="margin: 5px 0">
357
+ <labe class="righttxt">管道到期日期:</labe>
358
+ <datepicker class="rightipt"
359
+ :value.sync="row.f_pipeexpire_date"
360
+ v-model="row.f_pipeexpire_date"
361
+ :disabled-days-of-Week="[]"
362
+ :format="'yyyy-MM-dd'"
363
+ :show-reset-button="reset" readonly="readonly">
364
+ </datepicker>
365
+ </div>
366
+ <div class="row auto" style="margin: 5px 0">
367
+ <labe class="righttxt">有无自闭阀:</labe>
368
+ <v-select class="rightipt" :value.sync="row.f_is_zibifa"
369
+ v-model="row.f_is_zibifa"
370
+ placeholder='请选择'
371
+ :width='wid'
372
+ :options="is_zibifa"
373
+ close-on-select value-single></v-select>
374
+ </div>
375
+ <div class="row auto" style="margin: 5px 0">
376
+ <labe class="righttxt">自闭阀数量:</labe>
377
+ <input type="text" class="form-control rightipt" v-model="row.f_zibifa_num"/>
378
+ </div>
379
+ <!--<div class="row auto" style="margin: 5px 0">
380
+ <labe class="righttxt">管道类型:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_pipe_type" />
381
+ </div>-->
382
+ <!--<div class="row auto" style="margin: 5px 0">
383
+ <labe class="righttxt">设备状态:</labe><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
384
+ </div>-->
385
+ <!--<div class="row auto" style="margin: 5px 0">
386
+ <labe class="righttxt">购买方式:</labe><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
387
+ </div>-->
388
+ <div style="display: flex;justify-content: center;margin-bottom: 3px"
389
+ v-if="$index>this.userinfo_old.devicesinfo.length-1 || this.userinfo_old.devicesinfo.length==0">
390
+ <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
391
+ </div>
392
+ </div>
393
+ <div style="display: flex;justify-content: space-around;">
394
+ <button class="col-sm-3 btn btn-primary" @click="addDevices($index)">新增设备</button>
395
+ </div>
396
+ </div>
397
+ </div>
398
+ <div class="panel auto">
399
+ <div class="panel-body">
400
+ <div style="display: flex;justify-content: center;">
401
+ <button class="col-sm-3 btn btn-primary" :disabled="enable" @click="editUserInfo()">上传</button>
402
+ </div>
403
+ </div>
404
+ </div>
405
+ </div>
406
+ </template>
407
+
408
+ <script>
409
+ import {HttpResetClass} from 'vue-client'
410
+ import * as Util from "../../../components/Util";
411
+ import Vue from 'vue'
412
+
413
+ export default {
414
+ title: '设备查看',
415
+ data() {
416
+ return {
417
+ model: [],
418
+ show: false,
419
+ row: Object,
420
+ userinfo: Object,
421
+ userinfo_old: Object,
422
+ wid: "60%",
423
+ devices_types: [],
424
+ gasbrands: [],
425
+ gasbrand: [],
426
+ gasmodels: [],
427
+ gasmodel: [],
428
+ meter_classifys: this.$appdata.getParam('气表类型'),
429
+ pipe_types: this.$appdata.getParam('管道类型'),
430
+ pipetypes: [{label: '有', value: '不锈钢波纹管'}, {label: '无', value: ''}],
431
+ wz_types: [],
432
+ cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
433
+ aroundmeters: this.$appdata.getParam('左右表'),
434
+ is_zibifa: this.$appdata.getParam('有无自闭阀'),
435
+ pcds: [],
436
+ userTypes: Vue.$appdata.getParam('用户状态'),
437
+ streets: [],
438
+ update: false,
439
+ headername: '基本信息',
440
+ excessive: false,
441
+ area: [],
442
+ enable: false,
443
+ f_meterno_path: Vue.nopic,
444
+ selectArea: {id: ''},
445
+ selectPcd: {id: ''},
446
+ selectStreet: {id: ''},
447
+ changemeterno: false,//是否修改了机表表号
448
+ approveChange: false,//是否需要进行信息变更审核
449
+ newAddress: '',
450
+ addressType: '',
451
+ //需要审核的字段
452
+ checkField: {
453
+ checkUserinfoField: [
454
+ 'f_user_name'
455
+ ],
456
+ checkUserFilesField: [
457
+ 'f_meternumber'
458
+ ],
459
+ checkAddressField: [
460
+ 'f_pcd_id',
461
+ 'f_street_id',
462
+ 'f_residential_area_id',
463
+ 'f_building',
464
+ 'f_unit',
465
+ 'f_floor',
466
+ 'f_room',
467
+ 'f_slice_area',
468
+ 'f_special',
469
+ 'f_address'
470
+ ],
471
+ }
472
+ }
473
+ },
474
+ props: {
475
+ user: {
476
+ type: Object
477
+ },
478
+ f_userinfo_id: '',
479
+ f_source: ''
480
+ },
481
+ methods: {
482
+ scan() {
483
+ HostApp.__this__ = this,
484
+ HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
485
+ },
486
+ getCode() {
487
+ var datapa = HostApp.getCode().data;
488
+ this.userinfo.meterinfo[0].f_meternumber = datapa
489
+ },
490
+ checkVal() {
491
+ this.approveChange = false
492
+ this.changemeterno = false
493
+ let checked = {ischeck: true, msg: ''}
494
+ if (!this.userinfo.baseinfo.base.f_user_name) {
495
+ checked = {ischeck: false, msg: '请输入用户名称!'}
496
+ }
497
+ if (!this.selectPcd.id) {
498
+ checked = {ischeck: false, msg: '请选择省市区!'}
499
+ }
500
+ if (!this.selectStreet.id) {
501
+ checked = {ischeck: false, msg: '请选择街道!'}
502
+ }
503
+ if (!this.userinfo.addressinfo.f_address) {
504
+ checked = {ischeck: false, msg: '新地址不能为空!'}
505
+ }
506
+ if (this.addressType == '普通地址') {
507
+ if (!this.selectArea.id) {
508
+ checked = {ischeck: false, msg: '请选择集收单位!'}
509
+ }
510
+ if (!this.userinfo.addressinfo.f_room) {
511
+ checked = {ischeck: false, msg: '新输入门牌号!'}
512
+ }
513
+ }
514
+ if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
515
+ if (this.userinfo.meterinfo[0].f_meternumber) {
516
+ if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
517
+ if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
518
+ checked = {ischeck: false, msg: '请拍摄表号照片!'}
519
+ } else {
520
+ this.changemeterno = true
521
+ }
522
+ }
523
+ } else {
524
+ checked = {ischeck: false, msg: '请输入表号!'}
525
+ }
526
+ }
527
+ for (let check in this.checkField) {
528
+ if (typeof check != 'function') {
529
+ for (let i = 0; i < this.checkField[check].length; i++) {
530
+ if (check == 'checkUserinfoField') {
531
+ if (this.userinfo.baseinfo.base[this.checkField[check][i]] != this.userinfo_old.baseinfo.base[this.checkField[check][i]]) {
532
+ this.approveChange = true
533
+ }
534
+ } else if (check == 'checkUserFilesField') {
535
+ if (this.userinfo.meterinfo[0][this.checkField[check][i]] != this.userinfo_old.meterinfo[0][this.checkField[check][i]]) {
536
+ this.approveChange = true
537
+ }
538
+ } else if (check == 'checkAddressField') {
539
+ if (this.userinfo.addressinfo[this.checkField[check][i]] != this.userinfo_old.addressinfo[this.checkField[check][i]]) {
540
+ this.approveChange = true
541
+ }
542
+ }
543
+ }
544
+ }
545
+ }
546
+ return checked
547
+ },
548
+ select_search(text) {
549
+ if (this.selectStreet.id) {
550
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
551
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
552
+ data: {
553
+ items: "*",
554
+ tablename: "t_area",
555
+ orderitem: "id",
556
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
557
+ }
558
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
559
+ if (res.data.length > 0) {
560
+ this.area = []
561
+ res.data.forEach((result) => {
562
+ this.area.push({label: result.f_residential_area, value: result})
563
+ })
564
+ }
565
+ })
566
+ } else {
567
+ this.area = []
568
+ }
569
+ },
570
+ cameraCallBack(prop, fileName) {
571
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
572
+ //tag
573
+ HostApp.__callback__ = null
574
+ HostApp.__this__ = null
575
+ },
576
+ takePic(prop, title) {
577
+ HostApp.__callback__ = this.cameraCallBack
578
+ HostApp.__this__ = this
579
+ let fileName
580
+ if (!this[prop] || this[prop].includes("nopic.png")) {
581
+ fileName = Util.guid() + '-' + prop + '.jpg'
582
+ } else {
583
+ fileName = Util.getFileName(this[prop])
584
+ }
585
+ HostApp._open_a_page({
586
+ type: 'boomerang',
587
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
588
+ param: {
589
+ file: fileName,
590
+ requestCode: 111,
591
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
592
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
593
+ }
594
+ })
595
+ },
596
+ delfile(prop, fileName) {
597
+ if (fileName == Vue.nopic)
598
+ return
599
+ else {
600
+ HostApp.delfile(fileName)
601
+ this[prop] = Vue.nopic
602
+ }
603
+ },
604
+ editUserInfo() {
605
+ for (let i = 0; i < this.model.length; i++) {
606
+ this.model[i].f_user_id = this.userinfo.meterinfo[0].f_user_id
607
+ }
608
+ this.$showMessage('确定是否修改上传审核用户信息?', ['confirm', 'cancel']).then((res) => {
609
+ if (res === 'confirm') {
610
+ this.excessive = true
611
+ let userinfoms = Object.assign({}, this.userinfo_old.baseinfo.base)
612
+ userinfoms.f_user_phone = this.userinfo.baseinfo.base.f_user_phone
613
+ userinfoms.f_rent_name = this.userinfo.baseinfo.base.f_rent_name
614
+ userinfoms.f_zuhu_phone = this.userinfo.baseinfo.base.f_zuhu_phone
615
+ userinfoms.f_user_state = this.userinfo.baseinfo.base.f_user_state
616
+ userinfoms.f_operator_record = Vue.user.name
617
+ userinfoms.f_operatorid_record = Vue.user.id
618
+ userinfoms.f_remark = this.userinfo.baseinfo.base.f_remark
619
+ userinfoms.f_orgid_record = Vue.user.orgid
620
+ userinfoms.f_orgname_record = Vue.user.orgs
621
+ userinfoms.f_depid_record = Vue.user.depids
622
+ userinfoms.f_depname_record = Vue.user.deps
623
+ userinfoms.f_contractdate = this.userinfo.baseinfo.base.f_contractdate
624
+ userinfoms.f_contract_date = this.userinfo.baseinfo.base.f_contractdate
625
+ this.userinfo_old.meterinfo[0].f_metertitles = this.userinfo.meterinfo[0].f_metertitles
626
+ this.userinfo_old.meterinfo[0].f_table_state = this.userinfo.meterinfo[0].f_table_state
627
+ this.userinfo_old.meterinfo[0].f_position = this.userinfo.meterinfo[0].f_position
628
+ this.userinfo_old.meterinfo[0].f_meternumber = this.userinfo.meterinfo[0].f_meternumber
629
+ this.userinfo_old.meterinfo[0].f_meter_base = this.userinfo.meterinfo[0].f_meter_base
630
+ this.userinfo_old.meterinfo[0].f_aroundmeter = this.userinfo.meterinfo[0].f_aroundmeter
631
+ this.userinfo_old.meterinfo[0].f_meter_classify = this.userinfo.meterinfo[0].f_meter_classify
632
+ this.userinfo_old.meterinfo[0].f_gasbrand_id = this.userinfo.meterinfo[0].f_gasbrand_id
633
+ this.userinfo_old.meterinfo[0].f_gasmodel_id = this.userinfo.meterinfo[0].f_gasmodel_id
634
+ userinfoms.userfiles = []
635
+ this.userinfo_old.meterinfo[0].devicesinfo = this.model
636
+ userinfoms.userfiles.push(this.userinfo_old.meterinfo[0])
637
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_fileSave`, {
638
+ data: {
639
+ userinfo: userinfoms,
640
+ modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
641
+ address: {
642
+ id: this.userinfo_old.addressinfo.id,
643
+ oldid: this.userinfo_old.addressinfo.id,
644
+ f_address: this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
645
+ }
646
+ }
647
+ }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
648
+ if (res1.data.status == 200) {
649
+ let data = this.userinfo.addressinfo
650
+ data.f_address = this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
651
+ data.f_operator = Vue.user.name
652
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {data: data}).then((res2) => {
653
+ this.$showMessage("修改用户地址信息成功!")
654
+ }).catch(error => {
655
+ this.$showMessage("修改用户地址信息!")
656
+ })
657
+ this.$showMessage("修改用户信息成功!")
658
+ this.enable = true
659
+ this.excessive = false
660
+ }
661
+ }).catch((msg) => {
662
+ this.$showMessage("修改用户信息失败,请检查手机网络状况!")
663
+ this.excessive = false
664
+ })
665
+ }
666
+ })
667
+ },
668
+ imgback(header) {
669
+ if (this.headername == header) {
670
+ return require('../../../assets/xiangxia1.png')
671
+ } else {
672
+ return require('../../../assets/xiangyou1.png')
673
+ }
674
+ this.headername = header
675
+ },
676
+ selectVal(header) {
677
+ if (this.headername == header) {
678
+ this.headername = ''
679
+ } else {
680
+ this.headername = header
681
+ }
682
+ },
683
+ changeNewAddress() {
684
+ this.userinfo.addressinfo.f_address = this.addressType == '普通地址' ? this.getAddress : this.getAddressTS
685
+ },
686
+ area_change() {
687
+ this.userinfo.addressinfo.f_residential_area = this.selectArea.f_residential_area
688
+ this.userinfo.addressinfo.f_residential_area_id = this.selectArea.id
689
+ this.userinfo.addressinfo.f_slice_area = this.selectArea.f_slice_area
690
+ this.changeNewAddress()
691
+ },
692
+ async street_change() {
693
+ if (this.selectStreet.id) {
694
+ this.userinfo.addressinfo.f_street = this.selectStreet.f_street
695
+ this.userinfo.addressinfo.f_street_id = this.selectStreet.id
696
+ this.userinfo.addressinfo.f_iscity = this.selectStreet.f_iscity
697
+ this.userinfo.addressinfo.f_residential_area = ''
698
+ this.userinfo.addressinfo.f_residential_area_id = ''
699
+ this.userinfo.addressinfo.f_slice_area = ''
700
+ this.selectArea = {id: ''}
701
+ this.area = []
702
+ let pcdText = ` and f_street_id=${this.selectStreet.id}`
703
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
704
+ data: {
705
+ items: "*",
706
+ tablename: "t_area",
707
+ orderitem: "id",
708
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
709
+ }
710
+ }, {resolveMsg: null, rejectMsg: null})
711
+ res.data.forEach((result) => {
712
+ this.area.push({label: result.f_residential_area, value: result})
713
+ })
714
+ } else {
715
+ this.area = []
716
+ }
717
+ this.changeNewAddress()
718
+ },
719
+ async pcd_change() {
720
+ if (this.selectPcd.id) {
721
+ this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
722
+ this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
723
+ this.selectStreet = {id: ''}
724
+ this.userinfo.addressinfo.f_street = ''
725
+ this.userinfo.addressinfo.f_street_id = ''
726
+ this.userinfo.addressinfo.f_iscity = ''
727
+ this.selectArea = {id: ''}
728
+ this.userinfo.addressinfo.f_residential_area = ''
729
+ this.userinfo.addressinfo.f_residential_area_id = ''
730
+ this.userinfo.addressinfo.f_slice_area = ''
731
+ this.streets = []
732
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
733
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
734
+ data: {
735
+ items: "*",
736
+ tablename: "t_street",
737
+ orderitem: "id",
738
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
739
+ }
740
+ }, {resolveMsg: null, rejectMsg: null})
741
+ streetlist.data.forEach((result) => {
742
+ this.streets.push({label: result.f_street, value: result})
743
+ })
744
+ } else {
745
+ this.streets = []
746
+ }
747
+ this.changeNewAddress()
748
+ },
749
+ upUserState() {
750
+ if (this.userinfo.meterinfo[0].f_table_state == '正常') {
751
+ let data = {
752
+ f_userfiles_id: {
753
+ f_userfiles_id: this.userinfo.meterinfo[0].f_userfiles_id,
754
+ f_table_state: '停用',
755
+ version: this.userinfo.meterinfo[0].version
756
+ },
757
+ f_userfile_id: this.userinfo.meterinfo[0].f_userfiles_id,
758
+ f_user_id: this.userinfo.meterinfo[0].f_user_id,
759
+ f_userinfo_id: this.userinfo.meterinfo[0].f_userinfo_id,
760
+ f_user_name: this.userinfo.baseinfo.base.f_user_name,
761
+ f_comments: '安检时发现问题关闭阀门',
762
+ f_othereason: '',
763
+ f_operat_type: '停用',
764
+ f_describe: `${Vue.user.name}对客户${this.userinfo.baseinfo.base.f_user_name}进行表具停用操作`,
765
+ f_state: '有效',
766
+ f_operator: Vue.user.name,
767
+ f_operatorid: Vue.user.id,
768
+ f_orgid: Vue.user.orgid,
769
+ f_orgname: Vue.user.orgs,
770
+ f_depid: Vue.user.depids,
771
+ f_depname: Vue.user.deps,
772
+ f_zoneid: Vue.user.zoneid,
773
+ f_zones: Vue.user.zones
774
+ }
775
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
776
+ data, {resolveMsg: null, rejectMsg: null}).then((row) => {
777
+ this.$showMessage('已成功关阀停气!')
778
+ this.userinfo.meterinfo[0].f_table_state = '停用'
779
+ })
780
+ } else {
781
+ this.$showMessage('该用户已被关阀停用,请勿重复操作!')
782
+ }
783
+
784
+ },
785
+ addDevices() {
786
+ let obj = {
787
+ "f_operator": Vue.user.name,
788
+ "f_picture": null,
789
+ "f_pipe_type": null,
790
+ "f_pipeinstall_date": null,
791
+ "f_pipe_connection": null,
792
+ "f_expire_date": null,
793
+ "f_pipeexpire_date": null,
794
+ "f_comments": null,
795
+ "f_operate_date": Util.toStandardTimeString(),
796
+ "f_operatorid": Vue.user.id,
797
+ "f_devices_num": null,
798
+ "f_process_id": null,
799
+ "f_devices_type": null,
800
+ "f_make_date": null,
801
+ "f_input_date": null,
802
+ "f_state": "有效",
803
+ "f_brand": null,
804
+ "f_devices_model": null,
805
+ "f_devices_no": null,
806
+ "img": {"content": null, "filename": null}
807
+ }
808
+ this.model.push(obj)
809
+ },
810
+ delDevices(idx) {
811
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
812
+ if (res === 'confirm') {
813
+ this.model.splice(idx, 1)
814
+ }
815
+ })
816
+ },
817
+ async getAreaList(text) {
818
+ if (this.selectStreet.id) {
819
+ this.area = []
820
+ let pcdText = text ? `and f_street_id=${this.selectStreet.id} and f_residential_area like '%${text}%'` : `and f_street_id=${this.selectStreet.id}`
821
+ let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
822
+ data: {
823
+ items: "*",
824
+ tablename: "t_area",
825
+ orderitem: "id",
826
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
827
+ }
828
+ }, {resolveMsg: null, rejectMsg: null})
829
+ res.data.forEach((result) => {
830
+ this.area.push({label: result.f_residential_area, value: result})
831
+ })
832
+ this.area.push({
833
+ label: this.userinfo.addressinfo.f_residential_area,
834
+ value: {
835
+ id: this.userinfo.addressinfo.f_residential_area_id,
836
+ f_residential_area: this.userinfo.addressinfo.f_residential_area
837
+ }
838
+ })
839
+ } else {
840
+ this.area = []
841
+ }
842
+ },
843
+ async getStreetList() {
844
+ if (this.selectPcd.id) {
845
+ this.streets = []
846
+ let pcdText = `and f_pcd_id=${this.selectPcd.id}`
847
+ let streetlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
848
+ data: {
849
+ items: "*",
850
+ tablename: "t_street",
851
+ orderitem: "id",
852
+ condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
853
+ }
854
+ }, {resolveMsg: null, rejectMsg: null})
855
+ streetlist.data.forEach((result) => {
856
+ if (this.selectStreet.id && this.selectStreet.id == result.id) {
857
+ this.userinfo.addressinfo.f_iscity = result.f_iscity
858
+ }
859
+ this.streets.push({label: result.f_street, value: result})
860
+ })
861
+ } else {
862
+ this.streets = []
863
+ }
864
+ },
865
+ changeAddressType(val) {
866
+ if (this.addressType == '普通地址') {
867
+ this.userinfo.addressinfo.f_special = null
868
+ } else if (this.addressType == '特殊地址') {
869
+ this.userinfo.addressinfo.f_special = 1
870
+ this.userinfo.addressinfo.f_building = null
871
+ this.userinfo.addressinfo.f_unit = null
872
+ this.userinfo.addressinfo.f_floor = null
873
+ this.userinfo.addressinfo.f_room = null
874
+ }
875
+ this.changeNewAddress()
876
+ }
877
+ },
878
+ computed: {
879
+ getAddress() {
880
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
881
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
882
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '') +
883
+ (this.userinfo.addressinfo.f_building ? this.userinfo.addressinfo.f_building + (this.userinfo.addressinfo.f_building_suffix ? this.userinfo.addressinfo.f_building_suffix : '-') : '') +
884
+ (this.userinfo.addressinfo.f_unit ? this.userinfo.addressinfo.f_unit + (this.userinfo.addressinfo.f_unit_suffix ? this.userinfo.addressinfo.f_unit_suffix : '-') : '') +
885
+ (this.userinfo.addressinfo.f_floor ? this.userinfo.addressinfo.f_floor + (this.userinfo.addressinfo.f_floor_suffix ? this.userinfo.addressinfo.f_floor_suffix : '-') : '') +
886
+ (this.userinfo.addressinfo.f_room ? this.userinfo.addressinfo.f_room + (this.userinfo.addressinfo.f_room_suffix ? this.userinfo.addressinfo.f_room_suffix : '-') : '')
887
+ },
888
+ getAddressTS() {
889
+ return (this.userinfo.addressinfo.f_pcd ? this.userinfo.addressinfo.f_pcd : '') +
890
+ (this.userinfo.addressinfo.f_street ? this.userinfo.addressinfo.f_street : '') +
891
+ (this.userinfo.addressinfo.f_residential_area ? this.userinfo.addressinfo.f_residential_area : '')
892
+ }
893
+ },
894
+ watch: {
895
+ 'userinfo.meterinfo[0].f_gasbrand'(val) {
896
+ this.gasmodels = []
897
+ if (!val) {
898
+ return
899
+ }
900
+ this.userinfo.meterinfo[0].f_gasbrand_id = this.gasbrand.find(item => item.f_meter_brand == val).id
901
+ this.userinfo.meterinfo[0].f_meter_classify = this.gasbrand.find(item => item.f_meter_brand == val).f_meter_type
902
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
903
+ data: {
904
+ items: "*",
905
+ tablename: "t_gasmodel",
906
+ orderitem: "1",
907
+ condition: ` f_gasbrand_id = '${this.userinfo.meterinfo[0].f_gasbrand_id}'`
908
+ }
909
+ }, {resolveMsg: null, rejectMsg: null}).then(response => {
910
+ this.gasmodel = response.data
911
+ response.data.forEach(item => {
912
+ this.gasmodels.push({label: item.f_meter_style, value: item.f_meter_style})
913
+ })
914
+ })
915
+ },
916
+ 'userinfo.meterinfo[0].f_gasmodel'(val) {
917
+ if (!val) {
918
+ return
919
+ }
920
+ this.userinfo.meterinfo[0].f_gasmodel_id = this.gasmodel.find(item => item.f_meter_style == val && item.f_gasbrand_id == this.userinfo.meterinfo[0].f_gasbrand_id).id
921
+ },
922
+ },
923
+ async ready() {
924
+ if (!this.f_userinfo_id) {
925
+ this.$showMessage("未检测到用户!")
926
+ this.enable = true
927
+ return
928
+ }
929
+ try {
930
+ this.devices_types = Vue.$appdata.getParam('设备类型')
931
+ this.wz_types = Vue.$appdata.getParam('安装位置')
932
+ this.excessive = true
933
+ let pcdlist = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
934
+ data: {
935
+ items: "*",
936
+ tablename: "t_pcd",
937
+ orderitem: "id",
938
+ condition: `f_orgid = '${Vue.user.orgid}'`
939
+ }
940
+ }, {resolveMsg: null, rejectMsg: null})
941
+
942
+ let gasbrand = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
943
+ data: {
944
+ items: "*",
945
+ tablename: "t_gasbrand",
946
+ orderitem: "1",
947
+ condition: ` 1=1`
948
+ }
949
+ }, {resolveMsg: null, rejectMsg: null})
950
+ this.gasbrand = gasbrand.data
951
+ gasbrand.data.forEach(item => {
952
+ this.gasbrands.push({label: item.f_meter_brand, value: item.f_meter_brand})
953
+ })
954
+ pcdlist.data.forEach((result) => {
955
+ this.pcds.push({label: result.f_pcd, value: result})
956
+ })
957
+ let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
958
+ f_userinfo_id: this.f_userinfo_id
959
+ }, {resolveMsg: null, rejectMsg: null})
960
+ this.userinfo = res.data
961
+ this.userinfo_old = JSON.parse(JSON.stringify(res.data))
962
+ this.model = this.userinfo.meterinfo[0].devicesinfo
963
+ this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
964
+ this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
965
+ this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
966
+ this.selectStreet.id = this.userinfo.addressinfo.f_street_id
967
+ this.selectStreet.f_street = this.userinfo.addressinfo.f_street
968
+ await this.getStreetList()
969
+ await this.getAreaList()
970
+ this.excessive = false
971
+ this.addressType = this.userinfo.addressinfo.f_special == 1 ? '特殊地址' : '普通地址'
972
+ } catch (e) {
973
+ this.excessive = false
974
+ this.enable = true
975
+ this.$showMessage('获取用户信息出错,请检查网络状况!')
976
+ }
977
+ }
978
+ }
979
+ </script>
980
+ <style lang="less" scoped>
981
+ .butt3 {
982
+ float: right;
983
+ width: 12px;
984
+ margin: 1% 2% 0 0;
985
+ }
986
+
987
+ .rightipt {
988
+ width: 60%;
989
+ float: left;
990
+ margin-left: 5%;
991
+ }
992
+
993
+ .righttxt {
994
+ border: none;
995
+ margin-left: 5px;
996
+ float: left;
997
+ width: 25%;
998
+ margin-bottom: 3px;
999
+ text-align: left;
1000
+ word-wrap: break-word;
1001
+ white-space: normal;
1002
+ }
1003
+
1004
+ .tit1 {
1005
+ background-image: url('../../../assets/用户姓名.png');
1006
+ background-repeat: no-repeat;
1007
+ background-position: center;
1008
+ }
1009
+
1010
+ .spanboder {
1011
+ border-bottom: 2px solid #499edf;
1012
+ padding-bottom: 8px
1013
+ }
1014
+
1015
+ #upuserinfo_sel /deep/ ul {
1016
+ width: 100% !important;
1017
+ left: 0 !important;
1018
+ }
1019
+
1020
+ .btn-photo {
1021
+ border: 0;
1022
+ border-radius: 7px;
1023
+ background-color: #7dc1f4;
1024
+ font: 15px PingFang-SC-Bold;
1025
+ height: 20%;
1026
+ }
1027
+
1028
+ .panel-self {
1029
+ border-radius: 10px;
1030
+ border: 1px solid #499EDF;
1031
+ background-color: #F8F8F8;
1032
+ }
1033
+
1034
+ .div-photo {
1035
+ width: auto;
1036
+ height: auto;
1037
+ position: absolute;
1038
+ bottom: 10px;
1039
+ right: 10px;
1040
+ }
1041
+ </style>
1042
+ <style lang="less">
1043
+ #upuserinfo_sel ul {
1044
+ width: 100% !important;
1045
+ left: 0 !important;
1046
+ }
1047
+ </style>