safecheck-client 4.0.0-53 → 4.0.0-55

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 (29) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/NewDefectList/DefectListNew.vue +663 -663
  4. package/src/components/Util/SafecheckUpload.vue +281 -281
  5. package/src/components/android/AndroidDefectDetails.vue +725 -725
  6. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  7. package/src/components/android/SafecheckDevices.vue +1339 -1340
  8. package/src/components/pc/AddToCheckBook.vue +237 -237
  9. package/src/components/pc/CheckBook.vue +303 -303
  10. package/src/components/pc/CheckBookArea.vue +146 -146
  11. package/src/components/pc/CheckBookCompany.vue +144 -144
  12. package/src/components/pc/CheckBookDetails.vue +161 -161
  13. package/src/components/pc/CheckBookEntry.vue +60 -60
  14. package/src/components/pc/CheckBookList.vue +366 -366
  15. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  16. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  17. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  18. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  19. package/src/components/pc/CheckBookUser.vue +333 -333
  20. package/src/components/pc/DefectDeal.vue +1007 -1007
  21. package/src/filiale/meihekou/android/AreaPlan.vue +569 -569
  22. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  23. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  24. package/src/filiale/meihekou/android/CurrentCreate.vue +1087 -1087
  25. package/src/filiale/meihekou/android/MeterReading.vue +106 -106
  26. package/src/filiale/meihekou/android/SafecheckOrderV.vue +1954 -1903
  27. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +787 -787
  28. package/src/filiale/meihekou/android.js +19 -19
  29. package/src/filiale/meihekou/pc.js +12 -12
@@ -1,725 +1,725 @@
1
- <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
7
-
8
- .app-row {
9
- background-color: white;
10
- padding: 10px 10px 0 10px;
11
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
- }
13
-
14
- .search_input {
15
- border: 0;
16
- outline: none;
17
- }
18
-
19
- .font {
20
- font: 15px PingFang-SC-Medium;
21
- color: #666666;
22
- }
23
-
24
- .input-font {
25
- font: 15px PingFang-SC-Medium;
26
- color: #333333;
27
- }
28
-
29
- .btn-font {
30
- font: 600 16px PingFang-SC-Bold;
31
- color: #499EDF;
32
- }
33
-
34
- .btn-color {
35
- background-color: #FFFFFF;
36
- border-radius: 10px;
37
- border: 1px solid #499EDF;
38
- }
39
-
40
- .app-text {
41
- font-size: 12px;
42
- }
43
-
44
- .panel-self {
45
- border-radius: 10px;
46
- border: 1px solid #499EDF;
47
- background-color: #F8F8F8;
48
- }
49
-
50
- .yybtn-color {
51
- background-color: #499edf;
52
- border-radius: 4px;
53
- border: 1px solid #499EDF;
54
- color: #FFFFFF;
55
- font: 14px PingFang-SC-Bold;
56
- }
57
-
58
- .qxbtn-color {
59
- background-color: #FFFFFF;
60
- border-radius: 4px;
61
- color: #499edf;
62
- font: 14px PingFang-SC-Bold;
63
- border: 1px solid #499EDF;
64
- }
65
-
66
- .button_shrink_top {
67
- width: 35px;
68
- height: 35px;
69
- background-size: 100%;
70
- background-image: url("../../../static/newStyle/stretch_top.png")
71
- }
72
-
73
- .button_shrink_bottom {
74
- width: 35px;
75
- height: 35px;
76
- background-size: 100%;
77
- background-image: url("../../../static/newStyle/stretch_bottom.png")
78
- }
79
-
80
- .button_shrink_left {
81
- width: 35px;
82
- height: 35px;
83
- background-size: 100%;
84
- background-image: url("../../../static/newStyle/stretch_left.png")
85
- }
86
-
87
- .button_shrink_right {
88
- width: 35px;
89
- height: 35px;
90
- background-size: 100%;
91
- background-image: url("../../../static/newStyle/stretch_right.png")
92
- }
93
- </style>
94
- <template>
95
- <div style="height: auto;width: 100%">
96
- <criteria-paged :model="model" v-ref:paged>
97
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
98
- <div partial>
99
- <form>
100
- <div class="row app-row">
101
- <div class="col-xs-4">
102
- <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
103
- <label class="font text-left">用户姓名:</label>
104
- </div>
105
- <div class="col-xs-8">
106
- <input class="search_input input-font" v-model=model.f_user_name
107
- condition="tcp.f_user_name like '%{}%'"/>
108
- </div>
109
- </div>
110
- <div class="row app-row">
111
- <div class="col-xs-4">
112
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
113
- <label for="f_userinfo_code" class="font text-left">用户编号:</label>
114
- </div>
115
- <div class="col-xs-8">
116
- <input id="f_userinfo_code" class="search_input input-font"
117
- v-model=model.f_userinfo_code condition="tcp.f_userinfo_code like '%{}%'"/>
118
- </div>
119
- </div>
120
- <div class="row app-row">
121
- <div class="col-xs-4">
122
- <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
123
- <label for="f_userinfo_code" class="font text-left">安检人员:</label>
124
- </div>
125
- <div class="col-xs-8">
126
- <input id="f_userinfo_code" class="search_input input-font"
127
- v-model=model.f_checker_name condition="tcp.f_checker_name like '%{}%'"/>
128
- </div>
129
- </div>
130
- <div class="row app-row">
131
- <div class="col-xs-4">
132
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
133
- <label class="font text-left">用户地址:</label>
134
- </div>
135
- <div class="col-xs-8">
136
- <input class="search_input input-font"
137
- v-model=model.f_address condition="tcp.f_address like '%{}%'"/>
138
- </div>
139
- </div>
140
- <div class="row app-row">
141
- <div class="col-xs-4">
142
- <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
143
- <label for="f_state" class="font text-left">起始时间:</label>
144
- </div>
145
- <datepicker id="f_start_date"
146
- placeholder='起始时间'
147
- :value.sync="model.f_start_date"
148
- :disabled-days-of-Week="[]"
149
- v-model="model.f_start_date"
150
- class="input-font col-xs-8"
151
- :format="'yyyy-MM-dd 00:00:00'"
152
- :show-reset-button="reset" readonly="readonly">
153
- </datepicker>
154
- </div>
155
- <div class="row app-row">
156
- <div class="col-xs-4">
157
- <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
158
- <label for="f_state" class="font text-left">结束时间:</label>
159
- </div>
160
- <datepicker id="f_end_date"
161
- placeholder='结束时间'
162
- :value.sync="model.f_end_date"
163
- :disabled-days-of-Week="[]"
164
- v-model="model.f_end_date"
165
- class="input-font col-xs-8"
166
- :format="'yyyy-MM-dd 23:59:00'"
167
- :show-reset-button="reset" readonly="readonly">
168
- </datepicker>
169
- </div>
170
- <div class="row app-row">
171
- <div class="col-xs-4">
172
- <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
173
- <label for="f_user_type" class="font text-left">用户类型:</label>
174
- </div>
175
- <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
176
- :width="'60%'"
177
- :options='$parent.$parent.user_types' placeholder='请选择用户类型'
178
- v-model="model.f_user_type" condition="f_user_type = '{}'" close-on-select
179
- clear-button></v-select>
180
- </div>
181
-
182
- <div class="row app-row">
183
- <div class="col-xs-4">
184
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
185
- <label class="font text-left">处理人:</label>
186
- </div>
187
- <div class="col-xs-8">
188
- <input class="search_input input-font"
189
- v-model=model.f_repairman condition="f_repairman like '%{}%'"/>
190
- </div>
191
- </div>
192
- <div class="row app-row">
193
- <div class="col-xs-4">
194
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
195
- <label class="font text-left">处理时间:</label>
196
- </div>
197
- <div class="col-xs-8">
198
- <datepicker id="startDate" placeholder="处理开始日期"
199
- style="width: 60%!important;"
200
- v-model="model.sq_startDate"
201
- :value.sync="model.sq_startDate"
202
- :format="'yyyy-MM-dd 00:00:00'"
203
- :show-reset-button="true"
204
- condition="f_repair_date >= '{}'">
205
- </datepicker>
206
- </div>
207
- </div>
208
- <div class="row app-row">
209
- <div class="col-xs-4">
210
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
211
- <label class="font text-left">处理时间:</label>
212
- </div>
213
- <div class="col-xs-8">
214
- <datepicker id="endDate" placeholder="处理结束日期"
215
- style="width: 60%!important;"
216
- v-model="model.sq_endDate"
217
- :value.sync="model.sq_endDate"
218
- :format="'yyyy-MM-dd 23:59:59'"
219
- :show-reset-button="true"
220
- condition="f_repair_date<= '{}'">
221
- </datepicker>
222
- </div>
223
- </div>
224
- <div class="row app-row">
225
- <div class="col-xs-4">
226
- <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
227
- <label class="font text-left">处理状态:</label>
228
- </div>
229
- <div class="col-xs-8">
230
- <v-select :value.sync="model.is_repair" class="input-font"
231
- :options='$parent.$parent.is_repairs' placeholder='处理状态' :value-single="true"
232
- v-model="is_repair" close-on-select clear-button></v-select>
233
- </div>
234
- </div>
235
- <div class="row text-center" style="margin-top: 20px;">
236
- <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
237
- @click="$parent.$parent.selfSearch">查询
238
- </button>
239
- <div style="float: right;margin-right: 3% " class="button_spacing"
240
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
241
- @click="$parent.$parent.hidden()"></div>
242
- </div>
243
- <div style="height:30px;"></div>
244
- </form>
245
- </div>
246
- </criteria>
247
- <list :model="model" partial='list'>
248
- <div partial>
249
- <div class="auto app-text" style="margin-top: 5px;">
250
- <div class="panel" style="padding: 10px 10px 5px 10px;">
251
- <div class="panel-body panel-self">
252
- <div class="col-xs-12">
253
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
254
- <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
255
- </div>
256
- <div class="col-xs-12">
257
- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
258
- <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
259
- </div>
260
- <div class="col-xs-12">
261
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
262
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
263
- </div>
264
- <div class="col-xs-12">
265
- <p class="panel-title text-left font" style="width: 23%;float: left"><b>安检时间:</b></p>
266
- <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_offsite_time }}</p>
267
- </div>
268
- <div class="col-xs-12">
269
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
270
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
271
- </div>
272
- <div class="col-xs-12">
273
- <p class="panel-title text-left font" style="width: 21%;float: left"><b>所属安检:</b></p>
274
- <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
275
- </div>
276
- <div class="col-xs-12">
277
- <p class="panel-title col-xs-5 text-left font"><b>检&ensp;查&ensp;项:</b></p>
278
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_device_type }}</p>
279
- </div>
280
- <div class="col-xs-12">
281
- <p class="panel-title col-xs-5 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
282
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_name }}</p>
283
- </div>
284
- <div class="col-xs-12">
285
- <p class="panel-title col-xs-5 text-left font"><b>隐患原因:</b></p>
286
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_value }}</p>
287
- </div>
288
- <div class="col-xs-12">
289
- <p class="panel-title col-xs-5 text-left font"><b>处理人:</b></p>
290
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repairman }}</p>
291
- </div>
292
- <div class="col-xs-12">
293
- <p class="panel-title col-xs-5 text-left font"><b>处理时间:</b></p>
294
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date }}</p>
295
- </div>
296
- <div class="col-xs-12">
297
- <p class="panel-title col-xs-5 text-left font"><b>处理状态:</b></p>
298
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date == '****-**-** **:**:**' ? '未处理' : '已处理' }}</p>
299
- </div>
300
- <div class="col-xs-12">
301
- <p class="panel-title col-xs-5 text-left font"><b>备注:</b></p>
302
- <p class="panel-title col-xs-7 text-left input-font">{{ row.f_comments }}</p>
303
- </div>
304
- <div class="col-xs-12">
305
- <button type="button" name="button" class="btn btn-primary"
306
- style="background-color:#499edf;float: right"
307
- @click="$parent.$parent.$parent.openshowModal(row)">查看
308
- </button>
309
- <!-- <button type="button" name="button" class="btn btn-primary"-->
310
- <!-- style="background-color:#499edf;float: right;margin-right:10px;"-->
311
- <!-- @click="$parent.$parent.$parent.openshowModal1(row)">处理-->
312
- <!-- </button>-->
313
- <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
314
- </div>
315
- </div>
316
- </div>
317
- </div>
318
- </div>
319
- </list>
320
- </criteria-paged>
321
- </div>
322
- <modal :show.sync="showModal">
323
- <div slot="modal-header" class="modal-header">
324
- <h4 class="modal-title">
325
- 隐患照片
326
- </h4>
327
- </div>
328
- <div slot="modal-body" class="modal-body">
329
- <div class="from-group">
330
- <div class="row">
331
- <div class="col-md-6">
332
- <img-self v-if="row.f_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_path" width="300" height="400"></img-self>
333
- <img-self v-if="row.f_p1_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p1_path" width="300" height="400"></img-self>
334
- <img-self v-if="row.f_p2_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p2_path" width="300" height="400"></img-self>
335
- </div>
336
- </div>
337
- </div>
338
- </div>
339
- <div slot="modal-footer" class="modal-footer">
340
- <button type="button" class="btn btn-default" @click="closeshowModal">确认</button>
341
- </div>
342
- </modal>
343
- <modal :show.sync="showModal1">
344
- <div slot="modal-header" class="modal-header">
345
- <h4 class="modal-title">
346
- 处理结果
347
- </h4>
348
- </div>
349
- <div slot="modal-body" class="modal-body">
350
- <div class="row" style="margin-bottom: 10px">
351
- <p class="panel-title col-xs-3 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
352
- <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_name }}</p>
353
- </div>
354
- <div class="row" style="margin-bottom: 10px">
355
- <p class="panel-title col-xs-3 text-left font"><b>隐患原因:</b></p>
356
- <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_value }}</p>
357
- </div>
358
- <div class="form-group col-sm-12">
359
- <div class="auto">
360
- <div class="panel" style="padding: 10px 10px 5px 10px;">
361
- <div class="panel-body panel-self"
362
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
363
- <img-self :src="deal.f_deal_path" alt="整改照片" :width="140" :height="170" capture="camera"
364
- type="file"></img-self>
365
- <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
366
- <img src="../../assets/remove.png" @click="delfile('f_deal_path', deal.f_deal_path)"></img>
367
- <button type="button" name="button" class="btn btn-primary btn-photo"
368
- @click="takePic('f_deal_path','整改照片')">拍照
369
- </button>
370
- </div>
371
- </div>
372
- <div class="panel-body panel-self"
373
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
374
- <img-self :src="deal.f_other_dealpath1" alt="整改照片" :width="140" :height="170" capture="camera"
375
- type="file"></img-self>
376
- <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
377
- <img src="../../assets/remove.png" @click="delfile('f_other_dealpath1', deal.f_other_dealpath1)"></img>
378
- <button type="button" name="button" class="btn btn-primary btn-photo"
379
- @click="takePic('f_other_dealpath1','整改照片')">拍照
380
- </button>
381
- </div>
382
- </div>
383
- <div class="panel-body panel-self"
384
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
385
- <img-self :src="deal.f_other_dealpath2" alt="整改照片" :width="140" :height="170" capture="camera"
386
- type="file"></img-self>
387
- <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
388
- <img src="../../assets/remove.png" @click="delfile('f_other_dealpath2', deal.f_other_dealpath2)"></img>
389
- <button type="button" name="button" class="btn btn-primary btn-photo"
390
- @click="takePic('f_other_dealpath2','整改照片')">拍照
391
- </button>
392
- </div>
393
- </div>
394
- </div>
395
- </div>
396
- </div>
397
- <div class="form-group col-sm-12" v-if="isNeedDealSign">
398
- <p class="panel-title text-left font" style="text-align: center">用户签名:</p>
399
- <div class="auto">
400
- <div class="panel" style="padding: 10px 10px 5px 10px;">
401
- <div class="panel-body panel-self"
402
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
403
- <img :src="deal.f_dealsign_path" :width="200" :height="150"/>
404
- <div class="row text-right div-photo" style="height: 50px;margin-top: 60px">
405
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
406
- </div>
407
- </div>
408
- </div>
409
- </div>
410
- </div>
411
- <div class="row">
412
- <div class="col-xs-2">
413
- <p class="panel-title text-left font" style="text-align: center">处理结果</p>
414
- </div>
415
- <div class="col-xs-9">
416
- <textarea class="input-font " v-model=deal.f_deal_remark style="width: 100%"></textarea>
417
- </div>
418
- </div>
419
- <div v-if="isCancelLimitGas" style="display: flex;align-items: end;height: 30px;gap: 10px;padding-left: 16px;">
420
- <input type="checkbox" v-model="deletebacklistisselect"/>
421
- <div style="height: 18px">取消限制该用户购气</div>
422
- </div>
423
- </div>
424
- <div slot="modal-footer" class="modal-footer">
425
- <button type="button" class="btn btn-default" @click="commitDealDefect">确认</button>
426
- <button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
427
- </div>
428
- </modal>
429
- </template>
430
-
431
- <script>
432
- import Vue from 'vue'
433
- import {HttpResetClass, PagedList} from 'vue-client'
434
- import * as Util from '../Util'
435
-
436
- export default {
437
- title: '隐患明细',
438
- data() {
439
- return {
440
- row:{},
441
- is_repairs:[{label: '请选择', value: ''},
442
- {label: '已处理', value: '已处理'},
443
- {label: '未处理', value: '未处理'}],
444
- showModal: false,
445
- showModal1: false,
446
- showimg: '',
447
- deal: {
448
- result: {},
449
- f_deal_path: '',
450
- f_other_dealpath1: '',
451
- f_other_dealpath2: '',
452
- f_deal_remark: '',
453
- f_dealsign_path: '', //签名
454
- f_dealer: Vue.user.name,
455
- f_dealer_id: Vue.user.id
456
- },
457
- user_types: [
458
- {label: '请选择用户类型', value: ''},
459
- {label: '民用', value: '民用'},
460
- {label: '非民用', value: '非民用'}
461
- ],
462
- f_filialeids: '',
463
- model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/defectDetails`, 20, {
464
- condition: 'this.condition',
465
- f_filialeids: `('${Vue.user.orgid}')`,
466
- f_checker_id: `'${Vue.user.id}'`
467
- }),
468
- criteriaShow: false,
469
- isNeedDealSign: this.$appdata.getSingleValue('隐患处理是否需要签名') == 'true',
470
- isCancelLimitGas: this.$appdata.getSingleValue('隐患处理-取消限制购气') == '是',
471
- deletebacklistisselect: false
472
- }
473
- },
474
- ready() {
475
- this.selfSearch()
476
- },
477
- methods: {
478
- async deletebacklist() {
479
- ////tag)
480
- let http = new HttpResetClass()
481
- ////tag
482
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
483
- data: {
484
- items: "*",
485
- tablename: "t_userinfo",
486
- condition: `f_userinfo_code = ${this.deal.result.f_userinfo_code}`,
487
- orderitem: "f_userinfo_code"
488
- }
489
- }, {resolveMsg: null, rejectMsg: null})
490
- ////tag)
491
- ////tag
492
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
493
- data: {
494
- "f_operat_type": "取消拉黑",
495
- "f_state": "有效",
496
- "f_user_name": this.deal.result.f_user_name,
497
- "f_comments": '',
498
- "f_operator": Vue.user.name,
499
- "f_operatorid": Vue.user.id,
500
- "f_orgid": Vue.user.orgid,
501
- "f_orgname": Vue.user.orgs,
502
- "f_depid": Vue.user.depids,
503
- "f_depname": Vue.user.deps,
504
- "f_describe": `${Vue.user.name}对用户${this.deal.result.f_user_name}进行取消拉黑`,
505
- "f_userinfo_id": {
506
- "f_userinfo_id": res1.data[0].f_userinfo_id,
507
- "f_user_state": "正常",
508
- "version": res1.data[0].version
509
- },
510
- "f_limit_times":"",
511
- "f_limit_value":""
512
- }
513
- }, {resolveMsg: null, rejectMsg: null})
514
- },
515
- // 签名回调
516
- signCallback(prop, fileName) {
517
- console.log("签名回调地址" + fileName)
518
- // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
519
- HostApp.__this__.$set('deal.f_dealsign_path', fileName)
520
- HostApp.__callback__ = null
521
- HostApp.__this__ = null
522
- },
523
- // 用户签名
524
- sign() {
525
- if (!this.deal.f_deal_path) {
526
- this.$showMessage('请先拍摄处理后照片!!!')
527
- return
528
- }
529
- this.delAudioFile('f_dealsign_path', this.deal.f_dealsign_path)
530
- let prop = 'f_dealsign_path'
531
- let idx = 'aofeng'
532
- let fileName
533
- if (!this.deal.f_dealsign_path) {
534
- fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
535
- } else {
536
- fileName = Util.getFileName(this.deal.f_dealsign_path)
537
- }
538
- HostApp.__callback__ = this.signCallback
539
- HostApp.__this__ = this
540
- HostApp.getSignature({
541
- file: fileName,
542
- requestCode: 111,
543
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
544
- })
545
- },
546
- delAudioFile(prop, fileName) {
547
- if (!fileName)
548
- return
549
- else {
550
- HostApp.delfile(fileName)
551
- this.deal[prop] = null
552
- }
553
- },
554
- commitDealDefect() {
555
- //tag
556
- //tag)
557
- // if (!this.deal.f_deal_path) {
558
- // this.$showMessage('处理后照片必须上传')
559
- // return
560
- // }
561
- if (this.isNeedDealSign && !this.deal.f_dealsign_path) {
562
- this.$showMessage('签名必须上传')
563
- return
564
- }
565
- if (this.deletebacklistisselect){
566
- this.deletebacklist()
567
- }
568
- this.deal.f_other_dealpath = this.deal.f_deal_path
569
- HostApp.__this__ = this
570
- HostApp.logicWithHint({
571
- 'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
572
- 'data': this.deal, 'backresult': 1
573
- })
574
- },
575
- commitCallBack(jo) {
576
- //tag
577
- //tag)
578
- if (jo.state == 'ok') {
579
- let ress = JSON.parse(jo.result)
580
- if (ress.code == 200) {
581
- this.$showMessage(ress.msg)
582
- this.closeshowModal1()
583
- } else {
584
- this.$showMessage(ress.msg)
585
- }
586
- } else {
587
- this.$showMessage('本地服务调用失败')
588
- }
589
- },
590
- delfile(prop, fileName) {
591
- if (fileName == Vue.nopic)
592
- return
593
- else {
594
- HostApp.delfile(fileName)
595
- this.deal[prop] = Vue.nopic
596
- }
597
- },
598
- openshowModal(val) {
599
- this.row = val
600
- this.showModal = true
601
- },
602
- closeshowModal() {
603
- this.showimg = ''
604
- this.showModal = false
605
- },
606
- openshowModal1(val) {
607
- this.deal.result = val
608
- //tag
609
- //tag
610
- this.deletebacklistisselect = false
611
- this.showModal1 = true
612
- },
613
- closeshowModal1() {
614
- this.deal = {
615
- result: {},
616
- f_deal_path: '',
617
- f_other_dealpath1: '',
618
- f_other_dealpath2: '',
619
- f_deal_remark: '',
620
- f_dealsign_path: '', //签名
621
- f_dealer: Vue.user.name,
622
- f_dealer_id: Vue.user.id
623
- }
624
- this.showModal1 = false
625
- this.selfSearch()
626
- },
627
- cameraCallBack(prop, fileName) {
628
- HostApp.__this__.$set( 'deal.'+prop+'', fileName)
629
- HostApp.__callback__ = null
630
- HostApp.__this__ = null
631
- },
632
- takePic(prop, title) {
633
- HostApp.__callback__ = this.cameraCallBack
634
- HostApp.__this__ = this
635
- let fileName
636
- if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
637
- fileName = Util.guid() + '-' + prop + '.jpg'
638
- } else {
639
- fileName = Util.getFileName(this.deal[prop])
640
- }
641
- //tag
642
- //tag
643
- HostApp._open_a_page({
644
- type: 'boomerang',
645
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
646
- param: {
647
- file: fileName,
648
- requestCode: 111,
649
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
650
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
651
- }
652
- })
653
- },
654
- selfSearch() {
655
-
656
- let condition = "1=1 "
657
- if (this.$refs.paged.$refs.cri.model.f_user_name) {
658
- if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
659
- condition += " and f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
660
- }
661
- }
662
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
663
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
664
- condition += " and f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
665
- }
666
- }
667
- if (this.$refs.paged.$refs.cri.model.f_checker_name) {
668
- if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
669
- condition += " and f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
670
- }
671
- }
672
- if (this.$refs.paged.$refs.cri.model.f_address) {
673
- if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
674
- condition += " and f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
675
- }
676
- }
677
- if (this.$refs.paged.$refs.cri.model.f_start_date) {
678
- if (this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()) {
679
- condition += " and f_offsite_time > '" + this.$refs.paged.$refs.cri.model.f_start_date + "'"
680
- }
681
- }
682
- if (this.$refs.paged.$refs.cri.model.f_end_date) {
683
- if (this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()) {
684
- condition += " and f_offsite_time < '" + this.$refs.paged.$refs.cri.model.f_end_date + "'"
685
- }
686
- }
687
- if (this.$refs.paged.$refs.cri.model.f_user_type) {
688
- if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
689
- condition += " and f_check_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
690
- }
691
- }
692
- if (this.$refs.paged.$refs.cri.model.f_repairman) {
693
- if (this.$refs.paged.$refs.cri.model.f_repairman.toString().trim()) {
694
- condition += " and f_repairman like '%" + this.$refs.paged.$refs.cri.model.f_repairman + "%'"
695
- }
696
- }
697
- if (this.$refs.paged.$refs.cri.model.sq_endDate) {
698
- if (this.$refs.paged.$refs.cri.model.sq_endDate.toString().trim()) {
699
- condition += " and f_repair_date <= '" + this.$refs.paged.$refs.cri.model.sq_endDate + "'"
700
- }
701
- }
702
- if (this.$refs.paged.$refs.cri.model.sq_startDate) {
703
- if (this.$refs.paged.$refs.cri.model.sq_startDate.toString().trim()) {
704
- condition += " and f_repair_date >= '" + this.$refs.paged.$refs.cri.model.sq_startDate + "'"
705
- }
706
- }
707
- if (this.$refs.paged.$refs.cri.model.is_repair) {
708
- if (this.$refs.paged.$refs.cri.model.is_repair == '已处理') {
709
- condition += " and f_repair_date != '****-**-** **:**:**'"
710
- }else if (this.$refs.paged.$refs.cri.model.is_repair == '未处理'){
711
- condition += " and f_repair_date = '****-**-** **:**:**'"
712
- }
713
- }
714
-
715
-
716
- //tag
717
- this.model.search(condition)
718
- },
719
-
720
- hidden() {
721
- this.criteriaShow = !this.criteriaShow
722
- }
723
- }
724
- }
725
- </script>
1
+ <style scoped>
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
+
8
+ .app-row {
9
+ background-color: white;
10
+ padding: 10px 10px 0 10px;
11
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
12
+ }
13
+
14
+ .search_input {
15
+ border: 0;
16
+ outline: none;
17
+ }
18
+
19
+ .font {
20
+ font: 15px PingFang-SC-Medium;
21
+ color: #666666;
22
+ }
23
+
24
+ .input-font {
25
+ font: 15px PingFang-SC-Medium;
26
+ color: #333333;
27
+ }
28
+
29
+ .btn-font {
30
+ font: 600 16px PingFang-SC-Bold;
31
+ color: #499EDF;
32
+ }
33
+
34
+ .btn-color {
35
+ background-color: #FFFFFF;
36
+ border-radius: 10px;
37
+ border: 1px solid #499EDF;
38
+ }
39
+
40
+ .app-text {
41
+ font-size: 12px;
42
+ }
43
+
44
+ .panel-self {
45
+ border-radius: 10px;
46
+ border: 1px solid #499EDF;
47
+ background-color: #F8F8F8;
48
+ }
49
+
50
+ .yybtn-color {
51
+ background-color: #499edf;
52
+ border-radius: 4px;
53
+ border: 1px solid #499EDF;
54
+ color: #FFFFFF;
55
+ font: 14px PingFang-SC-Bold;
56
+ }
57
+
58
+ .qxbtn-color {
59
+ background-color: #FFFFFF;
60
+ border-radius: 4px;
61
+ color: #499edf;
62
+ font: 14px PingFang-SC-Bold;
63
+ border: 1px solid #499EDF;
64
+ }
65
+
66
+ .button_shrink_top {
67
+ width: 35px;
68
+ height: 35px;
69
+ background-size: 100%;
70
+ background-image: url("../../../static/newStyle/stretch_top.png")
71
+ }
72
+
73
+ .button_shrink_bottom {
74
+ width: 35px;
75
+ height: 35px;
76
+ background-size: 100%;
77
+ background-image: url("../../../static/newStyle/stretch_bottom.png")
78
+ }
79
+
80
+ .button_shrink_left {
81
+ width: 35px;
82
+ height: 35px;
83
+ background-size: 100%;
84
+ background-image: url("../../../static/newStyle/stretch_left.png")
85
+ }
86
+
87
+ .button_shrink_right {
88
+ width: 35px;
89
+ height: 35px;
90
+ background-size: 100%;
91
+ background-image: url("../../../static/newStyle/stretch_right.png")
92
+ }
93
+ </style>
94
+ <template>
95
+ <div style="height: auto;width: 100%">
96
+ <criteria-paged :model="model" v-ref:paged>
97
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
98
+ <div partial>
99
+ <form>
100
+ <div class="row app-row">
101
+ <div class="col-xs-4">
102
+ <img src="../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
103
+ <label class="font text-left">用户姓名:</label>
104
+ </div>
105
+ <div class="col-xs-8">
106
+ <input class="search_input input-font" v-model=model.f_user_name
107
+ condition="tcp.f_user_name like '%{}%'"/>
108
+ </div>
109
+ </div>
110
+ <div class="row app-row">
111
+ <div class="col-xs-4">
112
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
113
+ <label for="f_userinfo_code" class="font text-left">用户编号:</label>
114
+ </div>
115
+ <div class="col-xs-8">
116
+ <input id="f_userinfo_code" class="search_input input-font"
117
+ v-model=model.f_userinfo_code condition="tcp.f_userinfo_code like '%{}%'"/>
118
+ </div>
119
+ </div>
120
+ <div class="row app-row">
121
+ <div class="col-xs-4">
122
+ <img src="../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
123
+ <label for="f_userinfo_code" class="font text-left">安检人员:</label>
124
+ </div>
125
+ <div class="col-xs-8">
126
+ <input id="f_userinfo_code" class="search_input input-font"
127
+ v-model=model.f_checker_name condition="tcp.f_checker_name like '%{}%'"/>
128
+ </div>
129
+ </div>
130
+ <div class="row app-row">
131
+ <div class="col-xs-4">
132
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
133
+ <label class="font text-left">用户地址:</label>
134
+ </div>
135
+ <div class="col-xs-8">
136
+ <input class="search_input input-font"
137
+ v-model=model.f_address condition="tcp.f_address like '%{}%'"/>
138
+ </div>
139
+ </div>
140
+ <div class="row app-row">
141
+ <div class="col-xs-4">
142
+ <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
143
+ <label for="f_state" class="font text-left">起始时间:</label>
144
+ </div>
145
+ <datepicker id="f_start_date"
146
+ placeholder='起始时间'
147
+ :value.sync="model.f_start_date"
148
+ :disabled-days-of-Week="[]"
149
+ v-model="model.f_start_date"
150
+ class="input-font col-xs-8"
151
+ :format="'yyyy-MM-dd 00:00:00'"
152
+ :show-reset-button="reset" readonly="readonly">
153
+ </datepicker>
154
+ </div>
155
+ <div class="row app-row">
156
+ <div class="col-xs-4">
157
+ <img src="../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
158
+ <label for="f_state" class="font text-left">结束时间:</label>
159
+ </div>
160
+ <datepicker id="f_end_date"
161
+ placeholder='结束时间'
162
+ :value.sync="model.f_end_date"
163
+ :disabled-days-of-Week="[]"
164
+ v-model="model.f_end_date"
165
+ class="input-font col-xs-8"
166
+ :format="'yyyy-MM-dd 23:59:00'"
167
+ :show-reset-button="reset" readonly="readonly">
168
+ </datepicker>
169
+ </div>
170
+ <div class="row app-row">
171
+ <div class="col-xs-4">
172
+ <img src="../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
173
+ <label for="f_user_type" class="font text-left">用户类型:</label>
174
+ </div>
175
+ <v-select id="f_user_type" :value.sync="model.f_user_type" class="input-font"
176
+ :width="'60%'"
177
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型'
178
+ v-model="model.f_user_type" condition="f_user_type = '{}'" close-on-select
179
+ clear-button></v-select>
180
+ </div>
181
+
182
+ <div class="row app-row">
183
+ <div class="col-xs-4">
184
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
185
+ <label class="font text-left">处理人:</label>
186
+ </div>
187
+ <div class="col-xs-8">
188
+ <input class="search_input input-font"
189
+ v-model=model.f_repairman condition="f_repairman like '%{}%'"/>
190
+ </div>
191
+ </div>
192
+ <div class="row app-row">
193
+ <div class="col-xs-4">
194
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
195
+ <label class="font text-left">处理时间:</label>
196
+ </div>
197
+ <div class="col-xs-8">
198
+ <datepicker id="startDate" placeholder="处理开始日期"
199
+ style="width: 60%!important;"
200
+ v-model="model.sq_startDate"
201
+ :value.sync="model.sq_startDate"
202
+ :format="'yyyy-MM-dd 00:00:00'"
203
+ :show-reset-button="true"
204
+ condition="f_repair_date >= '{}'">
205
+ </datepicker>
206
+ </div>
207
+ </div>
208
+ <div class="row app-row">
209
+ <div class="col-xs-4">
210
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
211
+ <label class="font text-left">处理时间:</label>
212
+ </div>
213
+ <div class="col-xs-8">
214
+ <datepicker id="endDate" placeholder="处理结束日期"
215
+ style="width: 60%!important;"
216
+ v-model="model.sq_endDate"
217
+ :value.sync="model.sq_endDate"
218
+ :format="'yyyy-MM-dd 23:59:59'"
219
+ :show-reset-button="true"
220
+ condition="f_repair_date<= '{}'">
221
+ </datepicker>
222
+ </div>
223
+ </div>
224
+ <div class="row app-row">
225
+ <div class="col-xs-4">
226
+ <img src="../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
227
+ <label class="font text-left">处理状态:</label>
228
+ </div>
229
+ <div class="col-xs-8">
230
+ <v-select :value.sync="model.is_repair" class="input-font"
231
+ :options='$parent.$parent.is_repairs' placeholder='处理状态' :value-single="true"
232
+ v-model="is_repair" close-on-select clear-button></v-select>
233
+ </div>
234
+ </div>
235
+ <div class="row text-center" style="margin-top: 20px;">
236
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 25%;"
237
+ @click="$parent.$parent.selfSearch">查询
238
+ </button>
239
+ <div style="float: right;margin-right: 3% " class="button_spacing"
240
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
241
+ @click="$parent.$parent.hidden()"></div>
242
+ </div>
243
+ <div style="height:30px;"></div>
244
+ </form>
245
+ </div>
246
+ </criteria>
247
+ <list :model="model" partial='list'>
248
+ <div partial>
249
+ <div class="auto app-text" style="margin-top: 5px;">
250
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
251
+ <div class="panel-body panel-self">
252
+ <div class="col-xs-12">
253
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户编号:</b></p>
254
+ <p class="panel-title col-xs-5 text-left input-font" style="width: 74%">{{ row.f_userinfo_code }}</p>
255
+ </div>
256
+ <div class="col-xs-12">
257
+ <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
258
+ <p class="panel-title col-xs-7 text-left input-font" style="width: 79%">{{ row.f_user_name }}</p>
259
+ </div>
260
+ <div class="col-xs-12">
261
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>用户电话:</b></p>
262
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_user_phone }}</p>
263
+ </div>
264
+ <div class="col-xs-12">
265
+ <p class="panel-title text-left font" style="width: 23%;float: left"><b>安检时间:</b></p>
266
+ <p class="panel-title text-left input-font" style="width: 77%">{{ row.f_offsite_time }}</p>
267
+ </div>
268
+ <div class="col-xs-12">
269
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
270
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_address }}</p>
271
+ </div>
272
+ <div class="col-xs-12">
273
+ <p class="panel-title text-left font" style="width: 21%;float: left"><b>所属安检:</b></p>
274
+ <p class="panel-title text-left input-font" style="width: 79%">{{ row.f_checker_name }}</p>
275
+ </div>
276
+ <div class="col-xs-12">
277
+ <p class="panel-title col-xs-5 text-left font"><b>检&ensp;查&ensp;项:</b></p>
278
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_device_type }}</p>
279
+ </div>
280
+ <div class="col-xs-12">
281
+ <p class="panel-title col-xs-5 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
282
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_name }}</p>
283
+ </div>
284
+ <div class="col-xs-12">
285
+ <p class="panel-title col-xs-5 text-left font"><b>隐患原因:</b></p>
286
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_item_value }}</p>
287
+ </div>
288
+ <div class="col-xs-12">
289
+ <p class="panel-title col-xs-5 text-left font"><b>处理人:</b></p>
290
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repairman }}</p>
291
+ </div>
292
+ <div class="col-xs-12">
293
+ <p class="panel-title col-xs-5 text-left font"><b>处理时间:</b></p>
294
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date }}</p>
295
+ </div>
296
+ <div class="col-xs-12">
297
+ <p class="panel-title col-xs-5 text-left font"><b>处理状态:</b></p>
298
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_repair_date == '****-**-** **:**:**' ? '未处理' : '已处理' }}</p>
299
+ </div>
300
+ <div class="col-xs-12">
301
+ <p class="panel-title col-xs-5 text-left font"><b>备注:</b></p>
302
+ <p class="panel-title col-xs-7 text-left input-font">{{ row.f_comments }}</p>
303
+ </div>
304
+ <!-- <div class="col-xs-12">-->
305
+ <!-- <button type="button" name="button" class="btn btn-primary"-->
306
+ <!-- style="background-color:#499edf;float: right"-->
307
+ <!-- @click="$parent.$parent.$parent.openshowModal(row)">查看-->
308
+ <!-- </button>-->
309
+ <!-- <button type="button" name="button" class="btn btn-primary"-->
310
+ <!-- style="background-color:#499edf;float: right;margin-right:10px;"-->
311
+ <!-- @click="$parent.$parent.$parent.openshowModal1(row)">处理-->
312
+ <!-- </button>-->
313
+ <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
314
+ <!-- </div>-->
315
+ </div>
316
+ </div>
317
+ </div>
318
+ </div>
319
+ </list>
320
+ </criteria-paged>
321
+ </div>
322
+ <modal :show.sync="showModal">
323
+ <div slot="modal-header" class="modal-header">
324
+ <h4 class="modal-title">
325
+ 隐患照片
326
+ </h4>
327
+ </div>
328
+ <div slot="modal-body" class="modal-body">
329
+ <div class="from-group">
330
+ <div class="row">
331
+ <div class="col-md-6">
332
+ <img-self v-if="row.f_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_path" width="300" height="400"></img-self>
333
+ <img-self v-if="row.f_p1_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p1_path" width="300" height="400"></img-self>
334
+ <img-self v-if="row.f_p2_path" :src="`${this.$androidUtil.getProxyUrl()}/rs/image/file/`+row.f_p2_path" width="300" height="400"></img-self>
335
+ </div>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ <div slot="modal-footer" class="modal-footer">
340
+ <button type="button" class="btn btn-default" @click="closeshowModal">确认</button>
341
+ </div>
342
+ </modal>
343
+ <modal :show.sync="showModal1">
344
+ <div slot="modal-header" class="modal-header">
345
+ <h4 class="modal-title">
346
+ 处理结果
347
+ </h4>
348
+ </div>
349
+ <div slot="modal-body" class="modal-body">
350
+ <div class="row" style="margin-bottom: 10px">
351
+ <p class="panel-title col-xs-3 text-left font"><b>隐&ensp;患&ensp;项:</b></p>
352
+ <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_name }}</p>
353
+ </div>
354
+ <div class="row" style="margin-bottom: 10px">
355
+ <p class="panel-title col-xs-3 text-left font"><b>隐患原因:</b></p>
356
+ <p class="panel-title col-xs-9 text-left input-font">{{ deal.result.f_item_value }}</p>
357
+ </div>
358
+ <div class="form-group col-sm-12">
359
+ <div class="auto">
360
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
361
+ <div class="panel-body panel-self"
362
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
363
+ <img-self :src="deal.f_deal_path" alt="整改照片" :width="140" :height="170" capture="camera"
364
+ type="file"></img-self>
365
+ <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
366
+ <img src="../../assets/remove.png" @click="delfile('f_deal_path', deal.f_deal_path)"></img>
367
+ <button type="button" name="button" class="btn btn-primary btn-photo"
368
+ @click="takePic('f_deal_path','整改照片')">拍照
369
+ </button>
370
+ </div>
371
+ </div>
372
+ <div class="panel-body panel-self"
373
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
374
+ <img-self :src="deal.f_other_dealpath1" alt="整改照片" :width="140" :height="170" capture="camera"
375
+ type="file"></img-self>
376
+ <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
377
+ <img src="../../assets/remove.png" @click="delfile('f_other_dealpath1', deal.f_other_dealpath1)"></img>
378
+ <button type="button" name="button" class="btn btn-primary btn-photo"
379
+ @click="takePic('f_other_dealpath1','整改照片')">拍照
380
+ </button>
381
+ </div>
382
+ </div>
383
+ <div class="panel-body panel-self"
384
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
385
+ <img-self :src="deal.f_other_dealpath2" alt="整改照片" :width="140" :height="170" capture="camera"
386
+ type="file"></img-self>
387
+ <div class="row text-right div-photo" style="height: 50px;margin-top: -30px">
388
+ <img src="../../assets/remove.png" @click="delfile('f_other_dealpath2', deal.f_other_dealpath2)"></img>
389
+ <button type="button" name="button" class="btn btn-primary btn-photo"
390
+ @click="takePic('f_other_dealpath2','整改照片')">拍照
391
+ </button>
392
+ </div>
393
+ </div>
394
+ </div>
395
+ </div>
396
+ </div>
397
+ <div class="form-group col-sm-12" v-if="isNeedDealSign">
398
+ <p class="panel-title text-left font" style="text-align: center">用户签名:</p>
399
+ <div class="auto">
400
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
401
+ <div class="panel-body panel-self"
402
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
403
+ <img :src="deal.f_dealsign_path" :width="200" :height="150"/>
404
+ <div class="row text-right div-photo" style="height: 50px;margin-top: 60px">
405
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
406
+ </div>
407
+ </div>
408
+ </div>
409
+ </div>
410
+ </div>
411
+ <div class="row">
412
+ <div class="col-xs-2">
413
+ <p class="panel-title text-left font" style="text-align: center">处理结果</p>
414
+ </div>
415
+ <div class="col-xs-9">
416
+ <textarea class="input-font " v-model=deal.f_deal_remark style="width: 100%"></textarea>
417
+ </div>
418
+ </div>
419
+ <div v-if="isCancelLimitGas" style="display: flex;align-items: end;height: 30px;gap: 10px;padding-left: 16px;">
420
+ <input type="checkbox" v-model="deletebacklistisselect"/>
421
+ <div style="height: 18px">取消限制该用户购气</div>
422
+ </div>
423
+ </div>
424
+ <div slot="modal-footer" class="modal-footer">
425
+ <button type="button" class="btn btn-default" @click="commitDealDefect">确认</button>
426
+ <button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
427
+ </div>
428
+ </modal>
429
+ </template>
430
+
431
+ <script>
432
+ import Vue from 'vue'
433
+ import {HttpResetClass, PagedList} from 'vue-client'
434
+ import * as Util from '../Util'
435
+
436
+ export default {
437
+ title: '隐患明细',
438
+ data() {
439
+ return {
440
+ row:{},
441
+ is_repairs:[{label: '请选择', value: ''},
442
+ {label: '已处理', value: '已处理'},
443
+ {label: '未处理', value: '未处理'}],
444
+ showModal: false,
445
+ showModal1: false,
446
+ showimg: '',
447
+ deal: {
448
+ result: {},
449
+ f_deal_path: '',
450
+ f_other_dealpath1: '',
451
+ f_other_dealpath2: '',
452
+ f_deal_remark: '',
453
+ f_dealsign_path: '', //签名
454
+ f_dealer: Vue.user.name,
455
+ f_dealer_id: Vue.user.id
456
+ },
457
+ user_types: [
458
+ {label: '请选择用户类型', value: ''},
459
+ {label: '民用', value: '民用'},
460
+ {label: '非民用', value: '非民用'}
461
+ ],
462
+ f_filialeids: '',
463
+ model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/defectDetails`, 20, {
464
+ condition: 'this.condition',
465
+ f_filialeids: `('${Vue.user.orgid}')`,
466
+ f_checker_id: `'${Vue.user.id}'`
467
+ }),
468
+ criteriaShow: false,
469
+ isNeedDealSign: this.$appdata.getSingleValue('隐患处理是否需要签名') == 'true',
470
+ isCancelLimitGas: this.$appdata.getSingleValue('隐患处理-取消限制购气') == '是',
471
+ deletebacklistisselect: false
472
+ }
473
+ },
474
+ ready() {
475
+ this.selfSearch()
476
+ },
477
+ methods: {
478
+ async deletebacklist() {
479
+ ////tag)
480
+ let http = new HttpResetClass()
481
+ ////tag
482
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
483
+ data: {
484
+ items: "*",
485
+ tablename: "t_userinfo",
486
+ condition: `f_userinfo_code = ${this.deal.result.f_userinfo_code}`,
487
+ orderitem: "f_userinfo_code"
488
+ }
489
+ }, {resolveMsg: null, rejectMsg: null})
490
+ ////tag)
491
+ ////tag
492
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
493
+ data: {
494
+ "f_operat_type": "取消拉黑",
495
+ "f_state": "有效",
496
+ "f_user_name": this.deal.result.f_user_name,
497
+ "f_comments": '',
498
+ "f_operator": Vue.user.name,
499
+ "f_operatorid": Vue.user.id,
500
+ "f_orgid": Vue.user.orgid,
501
+ "f_orgname": Vue.user.orgs,
502
+ "f_depid": Vue.user.depids,
503
+ "f_depname": Vue.user.deps,
504
+ "f_describe": `${Vue.user.name}对用户${this.deal.result.f_user_name}进行取消拉黑`,
505
+ "f_userinfo_id": {
506
+ "f_userinfo_id": res1.data[0].f_userinfo_id,
507
+ "f_user_state": "正常",
508
+ "version": res1.data[0].version
509
+ },
510
+ "f_limit_times":"",
511
+ "f_limit_value":""
512
+ }
513
+ }, {resolveMsg: null, rejectMsg: null})
514
+ },
515
+ // 签名回调
516
+ signCallback(prop, fileName) {
517
+ console.log("签名回调地址" + fileName)
518
+ // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
519
+ HostApp.__this__.$set('deal.f_dealsign_path', fileName)
520
+ HostApp.__callback__ = null
521
+ HostApp.__this__ = null
522
+ },
523
+ // 用户签名
524
+ sign() {
525
+ if (!this.deal.f_deal_path) {
526
+ this.$showMessage('请先拍摄处理后照片!!!')
527
+ return
528
+ }
529
+ this.delAudioFile('f_dealsign_path', this.deal.f_dealsign_path)
530
+ let prop = 'f_dealsign_path'
531
+ let idx = 'aofeng'
532
+ let fileName
533
+ if (!this.deal.f_dealsign_path) {
534
+ fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
535
+ } else {
536
+ fileName = Util.getFileName(this.deal.f_dealsign_path)
537
+ }
538
+ HostApp.__callback__ = this.signCallback
539
+ HostApp.__this__ = this
540
+ HostApp.getSignature({
541
+ file: fileName,
542
+ requestCode: 111,
543
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
544
+ })
545
+ },
546
+ delAudioFile(prop, fileName) {
547
+ if (!fileName)
548
+ return
549
+ else {
550
+ HostApp.delfile(fileName)
551
+ this.deal[prop] = null
552
+ }
553
+ },
554
+ commitDealDefect() {
555
+ //tag
556
+ //tag)
557
+ // if (!this.deal.f_deal_path) {
558
+ // this.$showMessage('处理后照片必须上传')
559
+ // return
560
+ // }
561
+ if (this.isNeedDealSign && !this.deal.f_dealsign_path) {
562
+ this.$showMessage('签名必须上传')
563
+ return
564
+ }
565
+ if (this.deletebacklistisselect){
566
+ this.deletebacklist()
567
+ }
568
+ this.deal.f_other_dealpath = this.deal.f_deal_path
569
+ HostApp.__this__ = this
570
+ HostApp.logicWithHint({
571
+ 'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
572
+ 'data': this.deal, 'backresult': 1
573
+ })
574
+ },
575
+ commitCallBack(jo) {
576
+ //tag
577
+ //tag)
578
+ if (jo.state == 'ok') {
579
+ let ress = JSON.parse(jo.result)
580
+ if (ress.code == 200) {
581
+ this.$showMessage(ress.msg)
582
+ this.closeshowModal1()
583
+ } else {
584
+ this.$showMessage(ress.msg)
585
+ }
586
+ } else {
587
+ this.$showMessage('本地服务调用失败')
588
+ }
589
+ },
590
+ delfile(prop, fileName) {
591
+ if (fileName == Vue.nopic)
592
+ return
593
+ else {
594
+ HostApp.delfile(fileName)
595
+ this.deal[prop] = Vue.nopic
596
+ }
597
+ },
598
+ openshowModal(val) {
599
+ this.row = val
600
+ this.showModal = true
601
+ },
602
+ closeshowModal() {
603
+ this.showimg = ''
604
+ this.showModal = false
605
+ },
606
+ openshowModal1(val) {
607
+ this.deal.result = val
608
+ //tag
609
+ //tag
610
+ this.deletebacklistisselect = false
611
+ this.showModal1 = true
612
+ },
613
+ closeshowModal1() {
614
+ this.deal = {
615
+ result: {},
616
+ f_deal_path: '',
617
+ f_other_dealpath1: '',
618
+ f_other_dealpath2: '',
619
+ f_deal_remark: '',
620
+ f_dealsign_path: '', //签名
621
+ f_dealer: Vue.user.name,
622
+ f_dealer_id: Vue.user.id
623
+ }
624
+ this.showModal1 = false
625
+ this.selfSearch()
626
+ },
627
+ cameraCallBack(prop, fileName) {
628
+ HostApp.__this__.$set( 'deal.'+prop+'', fileName)
629
+ HostApp.__callback__ = null
630
+ HostApp.__this__ = null
631
+ },
632
+ takePic(prop, title) {
633
+ HostApp.__callback__ = this.cameraCallBack
634
+ HostApp.__this__ = this
635
+ let fileName
636
+ if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
637
+ fileName = Util.guid() + '-' + prop + '.jpg'
638
+ } else {
639
+ fileName = Util.getFileName(this.deal[prop])
640
+ }
641
+ //tag
642
+ //tag
643
+ HostApp._open_a_page({
644
+ type: 'boomerang',
645
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
646
+ param: {
647
+ file: fileName,
648
+ requestCode: 111,
649
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
650
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
651
+ }
652
+ })
653
+ },
654
+ selfSearch() {
655
+
656
+ let condition = "1=1 "
657
+ if (this.$refs.paged.$refs.cri.model.f_user_name) {
658
+ if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
659
+ condition += " and f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
660
+ }
661
+ }
662
+ if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
663
+ if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
664
+ condition += " and f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
665
+ }
666
+ }
667
+ if (this.$refs.paged.$refs.cri.model.f_checker_name) {
668
+ if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
669
+ condition += " and f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
670
+ }
671
+ }
672
+ if (this.$refs.paged.$refs.cri.model.f_address) {
673
+ if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
674
+ condition += " and f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
675
+ }
676
+ }
677
+ if (this.$refs.paged.$refs.cri.model.f_start_date) {
678
+ if (this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()) {
679
+ condition += " and f_offsite_time > '" + this.$refs.paged.$refs.cri.model.f_start_date + "'"
680
+ }
681
+ }
682
+ if (this.$refs.paged.$refs.cri.model.f_end_date) {
683
+ if (this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()) {
684
+ condition += " and f_offsite_time < '" + this.$refs.paged.$refs.cri.model.f_end_date + "'"
685
+ }
686
+ }
687
+ if (this.$refs.paged.$refs.cri.model.f_user_type) {
688
+ if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
689
+ condition += " and f_check_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
690
+ }
691
+ }
692
+ if (this.$refs.paged.$refs.cri.model.f_repairman) {
693
+ if (this.$refs.paged.$refs.cri.model.f_repairman.toString().trim()) {
694
+ condition += " and f_repairman like '%" + this.$refs.paged.$refs.cri.model.f_repairman + "%'"
695
+ }
696
+ }
697
+ if (this.$refs.paged.$refs.cri.model.sq_endDate) {
698
+ if (this.$refs.paged.$refs.cri.model.sq_endDate.toString().trim()) {
699
+ condition += " and f_repair_date <= '" + this.$refs.paged.$refs.cri.model.sq_endDate + "'"
700
+ }
701
+ }
702
+ if (this.$refs.paged.$refs.cri.model.sq_startDate) {
703
+ if (this.$refs.paged.$refs.cri.model.sq_startDate.toString().trim()) {
704
+ condition += " and f_repair_date >= '" + this.$refs.paged.$refs.cri.model.sq_startDate + "'"
705
+ }
706
+ }
707
+ if (this.$refs.paged.$refs.cri.model.is_repair) {
708
+ if (this.$refs.paged.$refs.cri.model.is_repair == '已处理') {
709
+ condition += " and f_repair_date != '****-**-** **:**:**'"
710
+ }else if (this.$refs.paged.$refs.cri.model.is_repair == '未处理'){
711
+ condition += " and f_repair_date = '****-**-** **:**:**'"
712
+ }
713
+ }
714
+
715
+
716
+ //tag
717
+ this.model.search(condition)
718
+ },
719
+
720
+ hidden() {
721
+ this.criteriaShow = !this.criteriaShow
722
+ }
723
+ }
724
+ }
725
+ </script>