safecheck-client 3.0.33-8 → 3.0.33-80

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 (91) hide show
  1. package/index.html +6 -2
  2. package/package.json +3 -3
  3. package/src/App.vue +31 -31
  4. package/src/components/Util/ImgSelfSafePlus.vue +12 -10
  5. package/src/components/android/CurrentCreate.vue +1 -1
  6. package/src/components/android/SafecheckOrderV.vue +3 -3
  7. package/src/components/paper/PaperList.vue +5 -4
  8. package/src/components/planmanage/PlanManage.vue +3 -2
  9. package/src/components/planmanage/checkPlanList.vue +2 -1
  10. package/src/components/planmanage/checkUserList.vue +34 -2
  11. package/src/components/report/CheckPlanCountChartArea.vue +5 -0
  12. package/src/components/report/HiddenSituation.vue +3 -3
  13. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
  14. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  15. package/src/components/rongcheng/DefectPaper.vue +1 -1
  16. package/src/components/rongcheng/PaperListNPSQ.vue +35 -1
  17. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  18. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  19. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  20. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  21. package/src/filiale/Util.js +5 -0
  22. package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
  23. package/src/filiale/bayan/android/SafecheckOrderV.vue +9 -5
  24. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  25. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  26. package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
  27. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  28. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  29. package/src/filiale/fugou/android.js +2 -1
  30. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  31. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  32. package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
  33. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  34. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
  35. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  36. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  37. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  38. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  39. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  40. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  41. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  42. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  43. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  44. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  45. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  46. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  47. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  48. package/src/filiale/jingyang/pc.js +1 -0
  49. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  50. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  51. package/src/filiale/rongchuang/android.js +1 -0
  52. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  53. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  54. package/src/filiale/rongchuang/pc.js +1 -0
  55. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  56. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  57. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  58. package/src/filiale/weinan/android/SafecheckOrderV.vue +75 -26
  59. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  60. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  61. package/src/filiale/weinan/pc.js +1 -0
  62. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  63. package/src/filiale/wensu/pc/PrintMaterialBill.vue +172 -172
  64. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  65. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +651 -651
  66. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1 -1
  67. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1230 -0
  68. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2832 -2832
  69. package/src/filiale/yangchunboneng/android.js +1 -0
  70. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +28 -1
  71. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1168 -1018
  72. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  73. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  74. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  75. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  76. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  77. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  78. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  79. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  80. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +55 -125
  81. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  82. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  83. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  84. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  85. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  86. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  87. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  88. package/src/filiale/yongzhou/pc.js +4 -0
  89. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  90. package/src/main.js +2 -2
  91. package/src/rongcheng.js +3 -1
@@ -1,4 +1,4 @@
1
- <style scoped>
1
+ <style scoped id="printStyle">
2
2
  .img {
3
3
  border: 1px solid #9773ed;
4
4
  width: auto;
@@ -69,62 +69,8 @@ div {
69
69
  <div class="row">
70
70
  <div class="col-md-5" style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
71
71
  <div style="width: 100%;margin: auto">
72
- <table class="table table-striped table-bordered" style="margin-bottom: 6px">
73
- <thead>
74
- <tr>
75
- <th colspan="6" style="text-align: center">用户基本信息</th>
76
- </tr>
77
- </thead>
78
- <tbody>
79
- <tr>
80
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
81
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}</td>
82
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
83
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
84
- </tr>
85
- <tr>
86
- <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
87
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
88
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
89
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
90
- </tr>
91
- <tr>
92
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
93
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
94
- <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
95
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_area }}</td>
96
- </tr>
97
- <tr>
98
- <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
99
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
100
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
101
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
102
- </tr>
103
- <tr>
104
- <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
105
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
106
- <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
107
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
108
- </tr>
109
- <tr>
110
- <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
111
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
112
- <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
113
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
114
- </tr>
115
- <tr>
116
- <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
117
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
118
- <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
119
- <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
120
- </tr>
121
- <tr>
122
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
123
- <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
124
- </tr>
125
- </tbody>
126
- </table>
127
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
72
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
73
+ v-show="paperdata.f_entry_status=='入户'">
128
74
  <thead>
129
75
  <tr>
130
76
  <th colspan="4" style="text-align: center">用户安检概况</th>
@@ -143,109 +89,101 @@ div {
143
89
  <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">燃气使用:</td>
144
90
  <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
145
91
  </tr>
146
- <tr>
147
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
148
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
149
- paperdata.f_client_evaluation
150
- }}
151
- </td>
152
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
153
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{ ajresult }}</td>
154
- </tr>
155
92
  <tr>
156
93
  <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
157
94
  <td colspan="3"
158
95
  style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
159
- {{ paperdata.f_remarks }}
96
+ {{ paperdata.f_repair_approved_note }}
160
97
  </td>
161
98
  </tr>
99
+ </tbody>
100
+ </table>
101
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
102
+ v-show="paperdata.f_entry_status=='入户'">
103
+ <thead>
104
+ <tr>
105
+ <th style="text-align: center">总体安检照片</th>
106
+ </tr>
107
+ </thead>
108
+ <tbody>
162
109
  <tr>
163
- <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
164
- <td colspan="3"
165
- style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
166
- <span v-for="deviceCollect in deviceCollects">
167
- <span class="li-font">
168
- {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
169
- </span>
170
- <br>
171
- <span v-if="deviceCollect.value == '有隐患'">
172
- <lable>
173
- 隐患:
174
- </lable>
175
- <span class="li-font" v-for="val in deviceCollect.devices">
176
- {{ val }}&nbsp;&nbsp;&nbsp;
177
- </span><br>
178
- </span>
110
+ <td style="margin: auto;text-align: center">
111
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
112
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
113
+ <img-self-plus :list="paperdata.f_overall_imgs " :src="img.f_overall_path" style="float: left"
114
+ width="150"
115
+ height="200"></img-self-plus>
116
+ </div>
117
+ </div>
118
+
179
119
 
180
- </span>
181
120
  </td>
182
- </tr>
183
121
 
122
+ </tr>
184
123
  </tbody>
185
124
  </table>
186
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status!='入户'">
125
+ <table class="table table-striped table-bordered" style="width: 100%"
126
+ v-show="paperdata.f_entry_status=='入户' && (paperdata.f_sign_path || f_user_path) ">
187
127
  <thead>
188
128
  <tr>
189
- <th colspan="4" style="text-align: center">用户安检概况</th>
129
+ <th style="text-align: center">用户签名照片</th>
190
130
  </tr>
191
131
  </thead>
192
132
  <tbody>
193
133
  <tr>
194
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
195
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
196
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
197
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
198
- </tr>
199
- <tr>
200
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
201
- <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
202
- {{ paperdata.f_entry_status }}
134
+ <td style="margin: auto;text-align: center" v-if="paperdata.f_sign_path">
135
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
136
+ <div class="img" style="float: none">
137
+ <img-self-plus :src="'rs/image/file/'+paperdata.f_sign_path" width="200"
138
+ height="200"></img-self-plus>
139
+ </div>
140
+ </div>
203
141
  </td>
204
- <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
205
- <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
206
- {{ dev.lname }}
207
- 查看{{ data.f_entry_status }}照片
208
- </button-link>
142
+ <td style="margin: auto;text-align: center" v-if="f_user_path">
143
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
144
+ <div class="img" style="float: none">
145
+ <img-self-plus :src="'rs/image/file/'+f_user_path"
146
+ width="200"
147
+ height="200"></img-self-plus>
148
+ </div>
149
+ </div>
209
150
  </td>
210
151
  </tr>
211
-
212
152
  </tbody>
213
153
  </table>
214
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
154
+ <table class="table table-striped table-bordered"
155
+ v-show="paperdata.f_entry_status=='入户' && paperdata.f_defect_notified">
215
156
  <thead>
216
157
  <tr>
217
- <th style="text-align: center">总体安检照片</th>
158
+ <th style="text-align: center">安检通知书/隐患整改通知书</th>
218
159
  </tr>
219
160
  </thead>
220
161
  <tbody>
221
162
  <tr>
222
163
  <td style="margin: auto;text-align: center">
223
- <div class="container" style="max-width: 550px;background: #FFFFFF">
224
- <div class="img" v-for="img in paperdata.f_overall_imgs">
225
- <img-self-safe :src="img.f_overall_path" style="float: left" width="150"
226
- height="200"></img-self-safe>
164
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
165
+ <div class="img" style="float: none">
166
+ <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
227
167
  </div>
228
168
  </div>
229
-
230
-
231
169
  </td>
232
-
233
170
  </tr>
234
171
  </tbody>
235
172
  </table>
236
- <table class="table table-striped table-bordered" v-show="paperdata.f_entry_status=='入户'">
173
+ <table class="table table-striped table-bordered"
174
+ v-show="paperdata.f_entry_status=='入户'&& paperdata.f_video_path">
237
175
  <thead>
238
176
  <tr>
239
- <th style="text-align: center">用户签名照片</th>
177
+ <th style="text-align: center">安检视频</th>
240
178
  </tr>
241
179
  </thead>
242
180
  <tbody>
243
181
  <tr>
244
182
  <td style="margin: auto;text-align: center">
245
183
  <div class="container" style="max-width: 500px;background: #FFFFFF">
246
- <div class="img" style="float: none">
247
- <img-self-safe :src="paperdata.f_sign_path" width="486" height="300"></img-self-safe>
248
- </div>
184
+ <video width="320" height="200" controls v-if="paperdata.f_video_path">
185
+ <source :src="paperdata.f_video_path" type="video/mp4">
186
+ </video>
249
187
  </div>
250
188
  </td>
251
189
  </tr>
@@ -275,49 +213,43 @@ div {
275
213
  <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
276
214
  <div class="col-md-6" style="height: 100%;overflow: scroll">
277
215
  <div style="width: 95%;margin-left: 5%">
278
- <table class="table table-striped table-bordered" v-for="config in deviceconfig2">
279
- <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
216
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2" style="margin-top: 35px">
217
+ <thead>
280
218
  <tr>
281
- <th style="text-align: center">{{ config.checkname }}</th>
219
+ <th style="text-align: center">{{ config.f_device_type }}</th>
282
220
  </tr>
283
221
  </thead>
284
- <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
285
- <tr v-for="dev in config.items">
286
- <td v-if="dev.type!='text'">
222
+ <tr v-for="dev in config.f_items">
223
+ <td>
287
224
  <div class="row">
288
225
  <div class="col-md-8" style="text-align: center;">
289
226
  <label>
290
- <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
291
- :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
292
- {{ dev.lname }}
227
+ <button-link type="button" class="btn btn-link"
228
+ :style="'color:black'">
229
+ {{ dev.f_item_name }}
293
230
  </button-link>
294
231
  </label>
295
232
  </div>
296
233
  <div class="col-md-4" style="text-align: center">
297
234
  <label style="font-weight: normal"
298
235
  v-if="dev.type!='picture'">{{
299
- getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
236
+ dev.f_item_lists[0].f_item_value
300
237
  }}</label>
301
238
  <label style="font-weight: normal" v-if="dev.type=='picture'">
302
- <div v-show="getDevicePath(config.checkname,dev.lname)">
239
+ <div v-if="dev.f_path">
303
240
  <button-link style="color: black" type="button" class="btn btn-link"
304
- @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
241
+ @click="showpath('rs/image/file/'+dev.f_path)">查看照片
305
242
  </button-link>
306
243
  </div>
307
- <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
244
+ <div v-else>无照片</div>
308
245
  </label>
309
246
  </div>
310
247
  </div>
311
248
  </td>
312
- <td v-if="dev.type==='text'">
313
- <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
314
- </td>
315
249
  </tr>
316
- </tbody>
317
250
  </table>
318
251
  </div>
319
252
  </div>
320
-
321
253
  </div>
322
254
  </div>
323
255
  </div>
@@ -329,13 +261,13 @@ div {
329
261
  <div class="from-group">
330
262
  <div class="row">
331
263
  <div class="col-md-6">
332
- <img-self-safe v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-safe>
264
+ <img-self-plus v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-plus>
333
265
  </div>
334
266
  <div class="col-md-6">
335
- <img-self-safe v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-safe>
267
+ <img-self-plus v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-plus>
336
268
  </div>
337
269
  <div class="col-md-6" v-for="item in otherDarginShowImgs">
338
- <img-self-safe v-if="item.path" :src="item.path" width="240" height="300"></img-self-safe>
270
+ <img-self-plus v-if="item.path" :src="item.path" width="240" height="300"></img-self-plus>
339
271
  </div>
340
272
  </div>
341
273
  </div>
@@ -352,12 +284,35 @@ div {
352
284
  <div class="from-group">
353
285
  <div class="row">
354
286
  <div class="col-md-6">
355
- <img-self-safe v-if="this.paperdata.f_entry_status=='到访不遇'" :src="showimg3" width="300"
356
- height="400"></img-self-safe>
287
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer_path"
288
+ :src="showimg3"
289
+ width="282"
290
+ height="400"></img-self-plus>
357
291
  </div>
358
292
  <div class="col-md-6">
359
- <img-self-safe v-if="this.paperdata.f_entry_status=='拒检'" :src="showimg4" width="300"
360
- height="400"></img-self-safe>
293
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer1_path"
294
+ :src="showimg5" width="282"
295
+ height="400"></img-self-plus>
296
+ </div>
297
+ <div class="col-md-6">
298
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer2_path"
299
+ :src="showimg6" width="282"
300
+ height="400"></img-self-plus>
301
+ </div>
302
+ <div class="col-md-6">
303
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck_path"
304
+ :src="showimg4" width="282"
305
+ height="400"></img-self-plus>
306
+ </div>
307
+ <div class="col-md-6">
308
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck1_path"
309
+ :src="showimg7" width="282"
310
+ height="400"></img-self-plus>
311
+ </div>
312
+ <div class="col-md-6">
313
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck2_path"
314
+ :src="showimg8" width="282"
315
+ height="400"></img-self-plus>
361
316
  </div>
362
317
  </div>
363
318
  </div>
@@ -383,21 +338,39 @@ div {
383
338
  <button type="button" class="btn btn-success" @click='SpotCheckCancel'>取消</button>
384
339
  </footer>
385
340
  </modal>
341
+ <modal :show.sync="showModel" :width="'50%'" :backdrop="false">
342
+ <div slot="modal-header" class="modal-header">
343
+ <h4 class="modal-title">
344
+ 安检审核备注
345
+ </h4>
346
+ </div>
347
+ <div slot="modal-body" class="modal-body">
348
+ <div class="row">
349
+ <div class="form-group col-sm-4">
350
+ <label class="font_normal_body">审核备注:</label>
351
+ <textarea v-model="message"></textarea>
352
+ </div>
353
+ </div>
354
+ </div>
355
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
356
+ <button class="button_search" style="margin-right: 15px" @click="auditFailOK()">确定</button>
357
+ <button class="button_search" style="margin-right: 15px" @click="auditFailCancel()">取消</button>
358
+ </div>
359
+ </modal>
386
360
  </template>
387
361
 
388
362
  <script>
389
- import ObjConfig from '../../../utils/GerJsonObjectConfig'
363
+ import html2pdf from 'html2pdf.js'
390
364
  import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
391
365
  import Radio from 'vue-client/src/vue-strap/src/radioBtn'
392
366
  import Vue from 'vue'
393
367
  import * as Util from '../../Util'
394
- import {jsonSort} from '../../../utils/LdapHelper'
395
368
  import {HttpResetClass} from "vue-client";
396
369
 
397
370
  let asyncReady = async function (self) {
398
371
  // 获取配置信息
399
372
  try {
400
- let res = await new HttpResetClass().load('post', 'rs/sql/tel_singleTable_OrderBy', {
373
+ let res = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
401
374
  data: {
402
375
  items: 'f_dir',
403
376
  tablename: 't_organization',
@@ -407,38 +380,54 @@ let asyncReady = async function (self) {
407
380
  })/*.then(res=>{*/
408
381
  //tag
409
382
  //tag)
383
+ console.log(res)
410
384
  if (!res.data[0].f_dir) {
411
385
  self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
412
386
  } else {
413
387
  //this.f_dir=res.data[0].f_dir
388
+ let url = self.newConfig == '是' ? '/safecheck/rs/safe_vue' : '/safecheck/rs/vue'
414
389
  try {
415
- let res1 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
416
- resolveMsg: null,
417
- rejectMsg: null
390
+ let res1 = await new HttpResetClass().load('GET', `${url}/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
391
+ resolveMsg: '获取居民配置项成功!',
392
+ rejectMsg: '获取居民配置项出错!'
418
393
  })/*.then(res=>{*/
419
394
  //tag
420
395
  //this.safeConfig["民用配置项"]=Object.assign({},res.data)
396
+ if (!Vue.config.safecheck) {
397
+ Vue.config = {safecheck: {}}
398
+ }
421
399
  Vue.config.safecheck.DevicesConfig = res1.data
400
+ console.log(Vue.config.safecheck.DevicesConfig)
422
401
  /*})*/
423
- let res2 = await new HttpResetClass().load('GET', `/safecheck/rs/vue/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
424
- resolveMsg: null,
425
- rejectMsg: null
402
+ let res2 = await new HttpResetClass().load('GET', `${url}/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
403
+ resolveMsg: '获取非居民配置项成功!',
404
+ rejectMsg: '获取非居民配置项出错!'
426
405
  })/*.then(res=>{*/
427
406
  //tag
428
407
  //this.safeConfig["非民用配置项"]=Object.assign({},res.data)
429
- Vue.config.safecheck.DevicesSetConfig = res2.data
430
- /*}).then(res=> {
431
- })*/
432
-
408
+ Vue.config.safecheck.DevicesSetConfig = {}
433
409
  } catch (e) {
434
-
410
+ self.$showMessage("获取配置文件失败" + e)
411
+ self.loading = false
435
412
  }
436
413
  }
414
+ if (self.data.f_recheck_id) {
415
+ let res3 = await new HttpResetClass().load('post', 'rs/sql/safe_singleTable_OrderBy', {
416
+ data: {
417
+ items: '*',
418
+ tablename: 't_check_paper',
419
+ condition: `id = '${self.data.f_recheck_id}'`,
420
+ orderitem: 'id'
421
+ }
422
+ })
423
+ self.lastCheckData = res3.data[0]
424
+ }
437
425
  } catch (error) {
438
426
  // 忽略704,文件找不到异常R
439
427
  if (error.status !== 704) {
440
428
  throw error
441
429
  }
430
+ this.loading = false
442
431
  }
443
432
  }
444
433
  export default {
@@ -446,17 +435,23 @@ export default {
446
435
  props: ['f_plan_id', 'item', 'role'],
447
436
  data() {
448
437
  return {
438
+ f_user_path: '',
439
+ message: '',
440
+ showButton: false,
441
+ showModel: false,
449
442
  data: {
450
443
  f_devices: [],
451
444
  f_defect_content: ''
452
445
  },
446
+ showPdfDownload: this.$appdata.getSingleValue('安检结果pdf下载') ? this.$appdata.getSingleValue('安检结果pdf下载') : false,
447
+ lastCheckData: {},
453
448
  paperdata: {},
454
449
  picturename: '隐患照片',
455
450
  defectDevice: {},
456
451
  hasDevice: false,
457
452
  deviceCollect: {},
458
453
  deviceCollects: [],
459
- isshow: false,
454
+ isshow: true,
460
455
  ajresult: '',
461
456
  loading: true,
462
457
  imgshow: false,
@@ -467,6 +462,10 @@ export default {
467
462
  showimg2: '',
468
463
  showimg3: '',
469
464
  showimg4: '',
465
+ showimg5: '',
466
+ showimg6: '',
467
+ showimg7: '',
468
+ showimg8: '',
470
469
  hiddenDangerImgNumber: 0, //配置项中隐患照片数
471
470
  otherDarginShowImgs: [],//其他隐患图片
472
471
  startClick: false, //开始安检按钮是否可点击
@@ -482,6 +481,7 @@ export default {
482
481
  configAJ: [],
483
482
  configRQ: [],
484
483
  deviceconfig: {},
484
+ newConfig: '',
485
485
  deviceconfig2: [],
486
486
  f_devices: [],
487
487
  config: {
@@ -489,29 +489,19 @@ export default {
489
489
  "checkmust": true,
490
490
  "index": 1,
491
491
  "items": {
492
- //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
493
- "气表表号": {"index": 1, "type": "string", "readonly": true},
492
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
494
493
  "气表型号": {"index": 2, "type": "string", "readonly": true},
495
494
  "气表品牌": {"index": 3, "type": "string", "readonly": true},
496
- "气表类型": {"index": 4, "type": "string", "readonly": true},
497
- "进气方向": {
498
- "index": 5,
499
- "type": "selector",
500
- "options": [{"data": "左表", "isdefault": false}, {"data": "右表", "isdefault": false}],
501
- "checkmust": true
502
- },
503
- "初始表底": {"index": 6, "type": "number", "isshow": false, "readonly": true},
504
- "上期表读数": {"index": 7, "type": "number", "readonly": true, isshow: false},
505
- "累购气量": {"index": 8, "type": "number", "readonly": true},
506
- "累购金额": {"index": 8, "type": "number", "readonly": true},
507
- "已用气量": {"index": 9, "type": "number", "checkmust": false},//基表数
508
- "已用金额": {"index": 9, "type": "number", "checkmust": false},
509
- "剩余气量": {"index": 10, "type": "number", "checkmust": false},//累购-已用
495
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
496
+ "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
497
+ "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
498
+ "累购气量": {"index": 7, "type": "number", "readonly": true},
499
+ "已用气量": {"index": 8, "type": "number", "checkmust": false},//基表数
500
+ "剩余气量": {"index": 9, "type": "number", "checkmust": false},//累购-已用
510
501
  //显示屏数 --实际剩余气量
511
- "剩余金额": {"index": 10, "type": "number", "checkmust": false},
512
- "气量异常差值": {"index": 11, "type": "number", "readonly": true},
513
- "金额异常差值": {"index": 11, "type": "number", "readonly": true},
514
- "表箱号": {"index": 12, "type": "string", "readonly": true}
502
+ "气量异常差值": {"index": 10, "type": "number", "readonly": true},
503
+ "表箱号": {"index": 11, "type": "string", "readonly": true},
504
+ "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
515
505
  }
516
506
  // 注意,配置项的index必须与上面的固定配置保持'顺序'
517
507
  }
@@ -522,29 +512,19 @@ export default {
522
512
  "checkmust": true,
523
513
  "index": 1,
524
514
  "items": {
525
- //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
526
- "气表表号": {"index": 1, "type": "string", "readonly": true},
515
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
527
516
  "气表型号": {"index": 2, "type": "string", "readonly": true},
528
517
  "气表品牌": {"index": 3, "type": "string", "readonly": true},
529
- "气表类型": {"index": 4, "type": "string", "readonly": true},
530
- "进气方向": {
531
- "index": 5,
532
- "type": "selector",
533
- "options": [{"data": "左表", "isdefault": false}, {"data": "右表", "isdefault": false}],
534
- "checkmust": true
535
- },
536
- "初始表底": {"index": 6, "type": "number", "isshow": false, "readonly": true},
537
- "上期表读数": {"index": 7, "type": "number", "readonly": true, isshow: false},
538
- "累购气量": {"index": 8, "type": "number", "readonly": true},
539
- "累购金额": {"index": 8, "type": "number", "readonly": true},
540
- "已用气量": {"index": 9, "type": "number", "checkmust": false},//基表数
541
- "已用金额": {"index": 9, "type": "number", "checkmust": false},
542
- "剩余气量": {"index": 10, "type": "number", "checkmust": false},//累购-已用
518
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
519
+ "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
520
+ "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
521
+ "累购金额": {"index": 7, "type": "number", "readonly": true},
522
+ "已用金额": {"index": 8, "type": "number", "checkmust": false},
543
523
  //显示屏数 --实际剩余气量
544
- "剩余金额": {"index": 10, "type": "number", "checkmust": false},
545
- "气量异常差值": {"index": 11, "type": "number", "readonly": true},
546
- "金额异常差值": {"index": 11, "type": "number", "readonly": true},
547
- "表箱号": {"index": 12, "type": "string", "readonly": true}
524
+ "剩余金额": {"index": 9, "type": "number", "checkmust": false},
525
+ "金额异常差值": {"index": 10, "type": "number", "readonly": true},
526
+ "表箱号": {"index": 11, "type": "string", "readonly": true},
527
+ "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
548
528
  }
549
529
  }
550
530
  },
@@ -572,7 +552,6 @@ export default {
572
552
  },
573
553
  set(val) {
574
554
  if (this.isStrat) {
575
- //;
576
555
  this.$goto(val, {userinfo: this.data}, 'paper-router')
577
556
  } else {
578
557
  this.$showMessage('未开始安检!')
@@ -612,12 +591,75 @@ export default {
612
591
  this.spotCheckMessage = ''
613
592
  this.showSpotCheckButton = false
614
593
  },
594
+ exportToPDF() {
595
+ const element = document.getElementById('toPdf') // 替换为您要导出的页面元素的ID
596
+ html2pdf(element)
597
+ },
598
+
599
+ showAudit() {
600
+ var audit = this.$appdata.getSingleValue('安检审核');
601
+ if (audit == '是' && (this.item.f_approved == '未审核' || !this.item.f_approved)) {
602
+ this.showButton = true
603
+ }
604
+ },
605
+ //安检审核成功
606
+ auditSuccesss() {
607
+ this.loading = true;
608
+ var reqdata = {
609
+ audit_result: '通过',
610
+ operator: "success",
611
+ audit_time: Util.getNowDate(),
612
+ user_name: this.$login.f.name,
613
+ id: this.item.id,
614
+ f_check_item_id: this.item.f_check_item_id
615
+ }
616
+ new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
617
+ resolveMsg: '安检审核成功!',
618
+ rejectMsg: '安检审核出错!'
619
+ }).then((res) => {
620
+ if (res.data.code == 200) {
621
+ this.loading = false;
622
+ this.$back()
623
+ }
624
+ })
625
+ },
626
+ auditFail() {
627
+ this.showModel = true;
628
+ },
629
+ auditFailOK() {
630
+
631
+ this.loading = true;
632
+ var reqdata = {
633
+ message: this.message,
634
+ audit_result: '不通过',
635
+ operator: "fail",
636
+ audit_time: Util.getNowDate(),
637
+ user_name: this.$login.f.name,
638
+ id: this.item.id,
639
+ f_check_item_id: this.item.f_check_item_id
640
+ }
641
+ new HttpResetClass().load('POST', '/rs/logic/updateAafeAudit', {data: reqdata}, {
642
+ resolveMsg: '安检审核成功!',
643
+ rejectMsg: '安检审核出错!'
644
+ }).then((res) => {
645
+ if (res.data.code == 200) {
646
+ this.loading = false;
647
+ this.message = '';
648
+ this.showModel = false;
649
+ this.$back()
650
+ }
651
+ })
652
+ },
653
+ auditFailCancel() {
654
+ this.showModel = false;
655
+ this.message = '';
656
+ },
657
+
615
658
  devicesCollect() {
616
659
  //tag
617
660
  //tag)
618
661
  //tag)
619
662
  //tag
620
-
621
663
  this.deviceCollects = []
622
664
  let checkResult = '正常'
623
665
  this.result = '正常'
@@ -634,11 +676,15 @@ export default {
634
676
  f_device_type = this.data[device][item].f_device_type
635
677
  }
636
678
  // //tag
679
+ let deviceelse = []
637
680
  let deviceInfos = []
638
681
  for (let i in this.data[device][item].f_items) {
639
682
  let defects = ''
683
+
640
684
  let items = this.data[device][item].f_items[i]
641
- if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox') && items.f_item_value != null && items.f_item_value instanceof Array) {
685
+
686
+
687
+ if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox' || items.type === 'picture') && items.f_item_value != null && items.f_item_value instanceof Array) {
642
688
  for (let i in items.f_item_value) {
643
689
  let f_item_value = items.f_item_value[i]
644
690
 
@@ -646,10 +692,19 @@ export default {
646
692
  //tag)
647
693
  //tag)
648
694
  //tag)
649
- if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
695
+
696
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect == 'true' || items.isdefect == true))) {
697
+ continue
698
+ }
699
+ /*if(items.f_is_defect != true && items.f_is_defect != 'true'){
650
700
  continue
701
+ }*/
702
+ if (items.f_is_defect == 'true' || items.f_is_defect == true) {
703
+ checkResult = '有隐患'
704
+ this.result = '有隐患'
705
+ defects = `${defects}:${items.f_item_value}/`
651
706
  }
652
- let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
707
+ /*let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
653
708
  for (let option in options) {
654
709
  if (options[option].data == f_item_value) {
655
710
  if (options[option].isdefect == 'true' || options[option].isdefect == true) {
@@ -659,16 +714,18 @@ export default {
659
714
  // let level = options[option].level
660
715
  }
661
716
  }
662
- }
717
+ }*/
663
718
  //tag)
664
719
  }
665
720
  if (defects != '') {
666
- deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}`)
721
+ console.log('有隐患items', items)
722
+ deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
667
723
  }
668
- } else if (items.type === 'string' && items.f_is_defect && items.f_item_value[0]) {
724
+ } else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
669
725
  checkResult = '有隐患'
670
726
  this.result = '有隐患'
671
727
  deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
728
+
672
729
  } else if (items.f_item_name == '金额异常差值') {
673
730
  var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
674
731
  //tag
@@ -690,6 +747,17 @@ export default {
690
747
  }
691
748
  }
692
749
  }
750
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
751
+ // console.log('this.config[this.data[device][item].f_device_type]', this.config[this.data[device][item].f_device_type])
752
+ // console.log('this.deviceconfig2', this.deviceconfig2)
753
+ for (let dev in this.deviceconfig2) {
754
+ if (this.deviceconfig2[dev].checkname == this.data[device][item].f_device_type) {
755
+ this.deviceconfig2[dev].items.push({
756
+ lname: items.f_item_name
757
+ })
758
+ }
759
+ }
760
+ }
693
761
  //tag)
694
762
  //tag
695
763
  //tag
@@ -705,6 +773,9 @@ export default {
705
773
  this.$set('deviceCollect.name', f_device_type)
706
774
  this.$set('deviceCollect.value', checkResult)
707
775
  this.$set('deviceCollect.devices', deviceInfos)
776
+ this.$set('deviceCollect.else', deviceelse)
777
+ console.log('deviceCollect.devices', this.deviceCollect.devices)
778
+ console.log('deviceCollect.else', this.deviceCollect.else)
708
779
  //tag)
709
780
  if (this.deviceCollect.name) {
710
781
  //tag
@@ -721,8 +792,13 @@ export default {
721
792
  }
722
793
  this.ajresult = JSON.parse(this.data.f_defect_content).result
723
794
  this.showimg3 = this.data.f_noanswer_path
795
+ this.showimg5 = this.data.f_noanswer1_path
796
+ this.showimg6 = this.data.f_noanswer2_path
724
797
  this.showimg4 = this.data.f_rejectcheck_path
798
+ this.showimg7 = this.data.f_rejectcheck1_path
799
+ this.showimg8 = this.data.f_rejectcheck2_path
725
800
  this.paperdata = this.data
801
+ this.f_user_path = this.paperdata.f_user_pictures ? JSON.parse(this.paperdata.f_user_pictures)[0].f_user_path : ''
726
802
  this.loading = false
727
803
  },
728
804
  imgclose() {
@@ -863,7 +939,8 @@ export default {
863
939
  if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
864
940
  if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
865
941
  for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
866
- aa += this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value + ' '
942
+ let val = this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value
943
+ aa += (val === null ? '空' : val) + ' '
867
944
  }
868
945
  return aa
869
946
  }
@@ -894,7 +971,7 @@ export default {
894
971
  let keyall = Object.keys(this.data)
895
972
  for (let i = 0; i < keyall.length; i++) {
896
973
  //tag)
897
- if (keyall[i].startsWith('device') && keyall[i] != 'deviceundefined') {
974
+ if ((keyall[i].startsWith('f_devices') || keyall[i].startsWith('devices')) && keyall[i] != 'deviceundefined') {
898
975
  this.devicesAll.push(this.data[keyall[i]])
899
976
  //tag
900
977
  }
@@ -1225,106 +1302,18 @@ export default {
1225
1302
  }
1226
1303
  },
1227
1304
  ready() {
1228
- this.putDevices()
1229
- if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检') {
1230
- if (this.role != 'inspect') {
1231
- let that = this
1232
- let id
1233
- if (this.role == 'view') {
1234
- id = this.item.id
1235
- } else if (this.role == 'androidview') {
1236
- id = this.item.f_paper_id
1237
- }
1238
- this.$resetpost(`rs/path/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
1239
- //tag
1240
- if (respanse.data.length != 0) {
1241
- // 包含 其它 特殊处理的数组
1242
- // 对应位置
1243
-
1244
- //tag
1245
-
1246
- that.data = Object.assign(that.data, respanse.data[0])
1247
- if (respanse.data[0].f_devices) {
1248
- for (let da in that.devices) {
1249
- that.$set('data.device' + that.devices[da].n, [])
1250
- }
1251
- respanse.data[0].f_devices.forEach((item) => {
1252
- for (let de in that.devices) {
1253
- if (that.devices[de].device == item.f_device_type) {
1254
- item.f_items.forEach((f_item) => {
1255
- //tag
1256
- //tag
1257
- let itemValues = []
1258
- f_item.f_item_lists.forEach((tempItem) => {
1259
- //tag
1260
- if (tempItem.f_item_value !== 'null') {
1261
- itemValues.push(tempItem.f_item_value)
1262
- }
1263
- })
1264
- f_item.f_item_value = itemValues
1265
- })
1266
- that.data['device' + that.devices[de].n].push({
1267
- f_device_type: item.f_device_type,
1268
- f_items: item.f_items
1269
- })
1270
- }
1271
- }
1272
- })
1273
- }
1274
- Util.replaceFalse(that.data)
1275
- Util.booleanFilter(that.data)
1276
- if (this.role == 'view') {
1277
- Util.ratifyPics(that.data)
1278
- Util.ratifyPics(that.picture)
1279
- } else {
1280
- Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1281
- }
1282
- //tag
1283
- }
1284
- // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1285
- this.isshow = true
1286
- asyncReady(this).then(() => {
1287
- //tag
1288
- //tag)
1289
- if (this.data.f_check_type == '民用') {
1290
- this.deviceconfig = Vue.config.safecheck.DevicesConfig
1291
- if (typeof this.deviceconfig === 'string') {
1292
- this.deviceconfig = JSON.parse(this.deviceconfig)
1293
- }
1294
- //tag)
1295
- } else if (this.data.f_check_type == '非民用') {
1296
- this.deviceconfig = Vue.config.safecheck.DevicesSetConfig
1297
- if (typeof this.deviceconfig === 'string') {
1298
- this.deviceconfig = JSON.parse(this.deviceconfig)
1299
- }
1300
- //tag)
1301
- }
1302
- if (this.data.f_collection_type == '按金额') {
1303
- let aaa = Object.assign({}, this.config2["燃气表"].items, this.deviceconfig["燃气表"].items)
1304
- this.deviceconfig["燃气表"].items = aaa
1305
- //this.deviceconfig["燃气表"]=this.config2["燃气表"]
1306
- //tag)
1307
- } else {
1308
- let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1309
- this.deviceconfig["燃气表"].items = aaa
1310
- //tag)
1311
- }
1312
- this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1313
- this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1314
- this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1315
- this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1316
- this.getDeviceAll()
1317
-
1305
+ setTimeout(() => {
1306
+ this.loading = false;
1307
+ }, 3000)
1308
+ this.$resetpost(`rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.id}'`}}).then((respanse) => {
1309
+ //tag
1310
+ this.paperdata = respanse.data[0]
1311
+ this.paperdata.f_overall_imgs.forEach(item => {
1312
+ item.f_overall_path = 'rs/image/file/' + item.f_overall_path
1313
+ })
1314
+ this.deviceconfig2 = Object.assign(this.data, respanse.data[0].f_devices)
1315
+ })
1318
1316
 
1319
- })
1320
- }
1321
- ).catch(
1322
- (respanse) => {
1323
- //tag
1324
- alert('查找安检单失败')
1325
- })
1326
- }
1327
- }
1328
1317
 
1329
1318
  },
1330
1319
  watch: {