safecheck-client 4.0.1-8 → 4.0.1-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.
- package/.trae/.ignore +0 -0
- package/.vscode/settings.json +3 -0
- package/package.json +5 -5
- package/src/assets//350/255/246/345/221/212 (3).png +0 -0
- package/src/assets//350/255/246/345/221/212 (4).png +0 -0
- package/src/assets//350/255/246/345/221/212 (5).png +0 -0
- package/src/components/NewDefectList/DefectListNew.vue +22 -3
- package/src/components/Util/RightTreeSafeDep.vue +12 -0
- package/src/components/android/AndroidDefectDeal.vue +356 -323
- package/src/components/android/AndroidDefectDetails.vue +3 -3
- package/src/components/android/AppInstallationMaterial.vue +865 -0
- package/src/components/android/DailyworkloadQuery.vue +2 -1
- package/src/components/android/NewCheckpaperAndroid.vue +22 -48
- package/src/components/android/SafecheckOrderV.vue +6 -0
- package/src/components/android/SwitchValve.vue +1 -1
- package/src/components/checkplan/CheckDetail.vue +1 -1
- package/src/components/map/SecurityCheckCoordinates.vue +361 -0
- package/src/components/paper/PaperList.vue +5 -0
- package/src/components/pc/DefectDeal.vue +2 -1
- package/src/components/pc/DefectMaterialLook.vue +98 -0
- package/src/components/pc/PaperDefectMain.vue +26 -1
- package/src/components/pc/RoleSelectorDep.vue +9 -2
- package/src/components/planmanage/PlanManage.vue +1 -0
- package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
- package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
- package/src/components/querycheckpaper/CheckSearchUser.vue +6 -1
- package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
- package/src/filiale/jinhong/pc/CheckBookList.vue +12 -7
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
- package/src/filiale/jinhong/pc/PaperList.vue +56 -47
- package/src/filiale/jinhong/pc/PlanManage.vue +2 -0
- package/src/filiale/jinhong/pc/checkPlanList.vue +2 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +766 -742
- package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
- package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
- package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
- package/src/filiale/libo/android.js +14 -0
- package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
- package/src/filiale/libo/pc.js +12 -0
- package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
- package/src/filiale/meihekou/android/MeterReading.vue +9 -5
- package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
- package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2446 -2427
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
- package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
- package/src/filiale/meihekou/pc/PaperList.vue +1205 -0
- package/src/filiale/meihekou/pc.js +2 -0
- package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
- package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
- package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
- package/src/filiale/taiyuan/android/AddPlanItem.vue +456 -0
- package/src/filiale/taiyuan/android/AreaPlan.vue +565 -0
- package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
- package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1253 -0
- package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -0
- package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +784 -0
- package/src/filiale/taiyuan/android.js +15 -0
- package/src/filiale/taiyuan/pc/DefectDeal.vue +1034 -0
- package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
- package/src/filiale/taiyuan/pc/PaperList.vue +795 -0
- package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
- package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
- package/src/filiale/taiyuan/pc.js +16 -0
- package/src/filiale/tianke/android/CurrentCreate.vue +3 -3
- package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
- package/src/filiale/xinkang/android/AddPlanItem.vue +244 -196
- package/src/filiale/xinkang/android/AndroidDefectDeal.vue +1 -0
- package/src/filiale/xinkang/android/SafecheckDevices.vue +52 -22
- package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
- package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
- package/src/filiale/xinkang/pc/CheckSearchUser.vue +12 -12
- package/src/filiale/xinkang/pc/NewCheckpaper.vue +57 -72
- package/src/filiale/xinkang/pc/PaperList.vue +25 -10
- package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
- package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
- package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
- package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
- package/src/filiale/yunchengminsheng/pc.js +1 -0
- package/src/main.js +33 -33
- package/src/safecheck-android.js +4 -0
- package/src/safecheck.js +6 -0
@@ -1,95 +1,95 @@
|
|
1
1
|
<style scoped>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
.bg {
|
3
|
+
background-color: blue;
|
4
|
+
height: 1px;
|
5
|
+
border: 0;
|
6
|
+
}
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
.search_input {
|
15
|
+
border: 0;
|
16
|
+
outline: none;
|
17
|
+
}
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
.font {
|
20
|
+
font: 15px PingFang-SC-Medium;
|
21
|
+
color: #666666;
|
22
|
+
}
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
.input-font {
|
25
|
+
font: 15px PingFang-SC-Medium;
|
26
|
+
color: #333333;
|
27
|
+
}
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
.btn-font {
|
30
|
+
font: 600 16px PingFang-SC-Bold;
|
31
|
+
color: #499EDF;
|
32
|
+
}
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
.btn-color {
|
35
|
+
background-color: #FFFFFF;
|
36
|
+
border-radius: 10px;
|
37
|
+
border: 1px solid #499EDF;
|
38
|
+
}
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
.app-text {
|
41
|
+
font-size: 12px;
|
42
|
+
}
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
44
|
+
.panel-self {
|
45
|
+
border-radius: 10px;
|
46
|
+
border: 1px solid #499EDF;
|
47
|
+
background-color: #F8F8F8;
|
48
|
+
}
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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
65
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
72
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
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
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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
86
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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
93
|
</style>
|
94
94
|
<template>
|
95
95
|
<div style="height: auto;width: 100%">
|
@@ -245,7 +245,11 @@
|
|
245
245
|
style="background-color:#499edf;float: right;margin-right:10px;"
|
246
246
|
@click="$parent.$parent.$parent.openshowModal1(row)">处理
|
247
247
|
</button>
|
248
|
-
|
248
|
+
<button type="button" name="button" class="btn btn-primary"
|
249
|
+
v-if="$parent.$parent.$parent.canlook"
|
250
|
+
style="background-color:#499edf;float: right"
|
251
|
+
@click="$parent.$parent.$parent.showmateria(row)">添加材料
|
252
|
+
</button>
|
249
253
|
</div>
|
250
254
|
</div>
|
251
255
|
</div>
|
@@ -361,274 +365,303 @@
|
|
361
365
|
<button type="button" class="btn btn-default" @click="closeshowModal1">取消</button>
|
362
366
|
</div>
|
363
367
|
</modal>
|
368
|
+
<modal :show.sync="showmaterial" backdrop="false" style="overflow: scroll;height: 100%">
|
369
|
+
<header slot="modal-header" class="modal-header text-center">
|
370
|
+
<button type="button" class="close" @click="close2"><span>×</span></button>
|
371
|
+
<h4 class="modal-title">添加材料</h4>
|
372
|
+
</header>
|
373
|
+
<article slot="modal-body">
|
374
|
+
<appinstallation-material v-if="showmaterial" :selectdata = "selectdata"></appinstallation-material>
|
375
|
+
</article>
|
376
|
+
<footer slot="modal-footer"></footer>
|
377
|
+
</modal>
|
364
378
|
</template>
|
365
379
|
|
366
380
|
<script>
|
367
|
-
|
368
|
-
|
369
|
-
|
381
|
+
import Vue from 'vue'
|
382
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
383
|
+
import * as Util from '../Util'
|
384
|
+
import AppInstallationMaterial from './AppInstallationMaterial'
|
370
385
|
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
386
|
+
export default {
|
387
|
+
components: {
|
388
|
+
'appinstallation-material': AppInstallationMaterial
|
389
|
+
},
|
390
|
+
title: '无计划安检查询',
|
391
|
+
data() {
|
392
|
+
return {
|
393
|
+
row:{},
|
394
|
+
showModal: false,
|
395
|
+
showModal1: false,
|
396
|
+
showimg: '',
|
397
|
+
deal: {
|
398
|
+
result: {},
|
399
|
+
f_deal_path: '',
|
400
|
+
f_other_dealpath1: '',
|
401
|
+
f_other_dealpath2: '',
|
402
|
+
f_deal_remark: '',
|
403
|
+
f_dealsign_path: '', //签名
|
404
|
+
f_dealer: Vue.user.name,
|
405
|
+
f_dealer_id: Vue.user.id
|
406
|
+
},
|
407
|
+
user_types: [
|
408
|
+
{label: '请选择用户类型', value: ''},
|
409
|
+
{label: '民用', value: '民用'},
|
410
|
+
{label: '非民用', value: '非民用'},
|
411
|
+
],
|
412
|
+
f_filialeids: '',
|
413
|
+
model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/AndroidDealWith`, 20, {
|
414
|
+
condition: 'this.condition',
|
415
|
+
f_filialeids: `'${Vue.user.orgid}'`,
|
416
|
+
f_checker_id: `'${Vue.user.id}'`
|
417
|
+
}),
|
418
|
+
criteriaShow: false,
|
419
|
+
isNeedDealSign: this.$appdata.getSingleValue('隐患处理是否需要签名') == 'true',
|
420
|
+
isCancelLimitGas: this.$appdata.getSingleValue('隐患处理-取消限制购气') == '是',
|
421
|
+
canlook: this.$appdata.getSingleValue('隐患处理添加材料')?true:false,
|
422
|
+
deletebacklistisselect: false,
|
423
|
+
selectdata:{},
|
424
|
+
showmaterial:false
|
425
|
+
}
|
426
|
+
},
|
427
|
+
ready() {
|
428
|
+
this.selfSearch()
|
429
|
+
},
|
430
|
+
methods: {
|
431
|
+
showmateria(row){
|
432
|
+
debugger
|
433
|
+
this.selectdata = {
|
434
|
+
f_process_id :row.device_id,
|
435
|
+
model:row
|
404
436
|
}
|
437
|
+
this.showmaterial = true
|
405
438
|
},
|
406
|
-
|
407
|
-
this.
|
439
|
+
close2(){
|
440
|
+
this.showmaterial = false
|
441
|
+
this.selectdata ={}
|
408
442
|
},
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
"f_userinfo_id":
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
"f_limit_value":""
|
444
|
-
}
|
445
|
-
}, {resolveMsg: null, rejectMsg: null})
|
446
|
-
},
|
447
|
-
// 签名回调
|
448
|
-
signCallback(prop, fileName) {
|
449
|
-
console.log("签名回调地址" + fileName)
|
450
|
-
// HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
|
451
|
-
HostApp.__this__.$set('deal.f_dealsign_path', fileName)
|
452
|
-
HostApp.__callback__ = null
|
453
|
-
HostApp.__this__ = null
|
454
|
-
},
|
455
|
-
// 用户签名
|
456
|
-
sign() {
|
457
|
-
if (!this.deal.f_deal_path) {
|
458
|
-
this.$showMessage('请先拍摄处理后照片!!!')
|
459
|
-
return
|
443
|
+
async deletebacklist() {
|
444
|
+
////tag)
|
445
|
+
let http = new HttpResetClass()
|
446
|
+
////tag
|
447
|
+
let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
448
|
+
data: {
|
449
|
+
items: "*",
|
450
|
+
tablename: "t_userinfo",
|
451
|
+
condition: `f_userinfo_code = ${this.deal.result.f_userinfo_code}`,
|
452
|
+
orderitem: "f_userinfo_code"
|
453
|
+
}
|
454
|
+
}, {resolveMsg: null, rejectMsg: null})
|
455
|
+
////tag)
|
456
|
+
////tag
|
457
|
+
let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/backlistOperate`, {
|
458
|
+
data: {
|
459
|
+
"f_operat_type": "取消拉黑",
|
460
|
+
"f_state": "有效",
|
461
|
+
"f_user_name": this.deal.result.f_user_name,
|
462
|
+
"f_comments": '',
|
463
|
+
"f_operator": Vue.user.name,
|
464
|
+
"f_operatorid": Vue.user.id,
|
465
|
+
"f_orgid": Vue.user.orgid,
|
466
|
+
"f_orgname": Vue.user.orgs,
|
467
|
+
"f_depid": Vue.user.depids,
|
468
|
+
"f_depname": Vue.user.deps,
|
469
|
+
"f_describe": `${Vue.user.name}对用户${this.deal.result.f_user_name}进行取消拉黑`,
|
470
|
+
"f_userinfo_id": {
|
471
|
+
"f_userinfo_id": res1.data[0].f_userinfo_id,
|
472
|
+
"f_user_state": "正常",
|
473
|
+
"version": res1.data[0].version
|
474
|
+
},
|
475
|
+
"f_limit_times":"",
|
476
|
+
"f_limit_value":""
|
460
477
|
}
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
478
|
+
}, {resolveMsg: null, rejectMsg: null})
|
479
|
+
},
|
480
|
+
// 签名回调
|
481
|
+
signCallback(prop, fileName) {
|
482
|
+
console.log("签名回调地址" + fileName)
|
483
|
+
// HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
|
484
|
+
HostApp.__this__.$set('deal.f_dealsign_path', fileName)
|
485
|
+
HostApp.__callback__ = null
|
486
|
+
HostApp.__this__ = null
|
487
|
+
},
|
488
|
+
// 用户签名
|
489
|
+
sign() {
|
490
|
+
if (!this.deal.f_deal_path) {
|
491
|
+
this.$showMessage('请先拍摄处理后照片!!!')
|
492
|
+
return
|
493
|
+
}
|
494
|
+
this.delAudioFile('f_dealsign_path', this.deal.f_dealsign_path)
|
495
|
+
let prop = 'f_dealsign_path'
|
496
|
+
let idx = 'aofeng'
|
497
|
+
let fileName
|
498
|
+
if (!this.deal.f_dealsign_path) {
|
499
|
+
fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
500
|
+
} else {
|
501
|
+
fileName = Util.getFileName(this.deal.f_dealsign_path)
|
502
|
+
}
|
503
|
+
HostApp.__callback__ = this.signCallback
|
504
|
+
HostApp.__this__ = this
|
505
|
+
HostApp.getSignature({
|
506
|
+
file: fileName,
|
507
|
+
requestCode: 111,
|
508
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
509
|
+
})
|
510
|
+
},
|
511
|
+
delAudioFile(prop, fileName) {
|
512
|
+
if (!fileName)
|
513
|
+
return
|
514
|
+
else {
|
515
|
+
HostApp.delfile(fileName)
|
516
|
+
this.deal[prop] = null
|
517
|
+
}
|
518
|
+
},
|
519
|
+
commitDealDefect() {
|
520
|
+
//tag
|
521
|
+
//tag)
|
522
|
+
// if (!this.deal.f_deal_path) {
|
523
|
+
// this.$showMessage('处理后照片必须上传')
|
524
|
+
// return
|
525
|
+
// }
|
526
|
+
if (this.isNeedDealSign && !this.deal.f_dealsign_path) {
|
527
|
+
this.$showMessage('签名必须上传')
|
528
|
+
return
|
529
|
+
}
|
530
|
+
if (this.deletebacklistisselect){
|
531
|
+
this.deletebacklist()
|
532
|
+
}
|
533
|
+
this.deal.f_other_dealpath = this.deal.f_deal_path
|
534
|
+
HostApp.__this__ = this
|
535
|
+
HostApp.logicWithHint({
|
536
|
+
'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
537
|
+
'data': this.deal, 'backresult': 1
|
538
|
+
})
|
539
|
+
},
|
540
|
+
commitCallBack(jo) {
|
541
|
+
//tag
|
542
|
+
//tag)
|
543
|
+
if (jo.state == 'ok') {
|
544
|
+
let ress = JSON.parse(jo.result)
|
545
|
+
if (ress.code == 200) {
|
546
|
+
this.$showMessage(ress.msg)
|
547
|
+
this.closeshowModal1()
|
467
548
|
} else {
|
468
|
-
|
549
|
+
this.$showMessage(ress.msg)
|
469
550
|
}
|
470
|
-
|
471
|
-
|
472
|
-
|
551
|
+
} else {
|
552
|
+
this.$showMessage('本地服务调用失败')
|
553
|
+
}
|
554
|
+
},
|
555
|
+
delfile(prop, fileName) {
|
556
|
+
if (fileName == Vue.nopic)
|
557
|
+
return
|
558
|
+
else {
|
559
|
+
HostApp.delfile(fileName)
|
560
|
+
this.deal[prop] = Vue.nopic
|
561
|
+
}
|
562
|
+
},
|
563
|
+
openshowModal(val) {
|
564
|
+
this.row = val
|
565
|
+
this.showModal = true
|
566
|
+
},
|
567
|
+
closeshowModal() {
|
568
|
+
this.showimg = ''
|
569
|
+
this.showModal = false
|
570
|
+
},
|
571
|
+
openshowModal1(val) {
|
572
|
+
this.deal.result = val
|
573
|
+
//tag
|
574
|
+
//tag
|
575
|
+
this.deletebacklistisselect = false
|
576
|
+
this.showModal1 = true
|
577
|
+
},
|
578
|
+
closeshowModal1() {
|
579
|
+
this.deal = {
|
580
|
+
result: {},
|
581
|
+
f_deal_path: '',
|
582
|
+
f_other_dealpath1: '',
|
583
|
+
f_other_dealpath2: '',
|
584
|
+
f_deal_remark: '',
|
585
|
+
f_dealsign_path: '', //签名
|
586
|
+
f_dealer: Vue.user.name,
|
587
|
+
f_dealer_id: Vue.user.id
|
588
|
+
}
|
589
|
+
this.showModal1 = false
|
590
|
+
this.selfSearch()
|
591
|
+
},
|
592
|
+
cameraCallBack(prop, fileName) {
|
593
|
+
HostApp.__this__.$set( 'deal.'+prop+'', fileName)
|
594
|
+
HostApp.__callback__ = null
|
595
|
+
HostApp.__this__ = null
|
596
|
+
},
|
597
|
+
takePic(prop, title) {
|
598
|
+
HostApp.__callback__ = this.cameraCallBack
|
599
|
+
HostApp.__this__ = this
|
600
|
+
let fileName
|
601
|
+
if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
|
602
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
603
|
+
} else {
|
604
|
+
fileName = Util.getFileName(this.deal[prop])
|
605
|
+
}
|
606
|
+
//tag
|
607
|
+
//tag
|
608
|
+
HostApp._open_a_page({
|
609
|
+
type: 'boomerang',
|
610
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
611
|
+
param: {
|
473
612
|
file: fileName,
|
474
613
|
requestCode: 111,
|
475
|
-
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
476
|
-
|
477
|
-
},
|
478
|
-
delAudioFile(prop, fileName) {
|
479
|
-
if (!fileName)
|
480
|
-
return
|
481
|
-
else {
|
482
|
-
HostApp.delfile(fileName)
|
483
|
-
this.deal[prop] = null
|
484
|
-
}
|
485
|
-
},
|
486
|
-
commitDealDefect() {
|
487
|
-
//tag
|
488
|
-
//tag)
|
489
|
-
// if (!this.deal.f_deal_path) {
|
490
|
-
// this.$showMessage('处理后照片必须上传')
|
491
|
-
// return
|
492
|
-
// }
|
493
|
-
if (this.isNeedDealSign && !this.deal.f_dealsign_path) {
|
494
|
-
this.$showMessage('签名必须上传')
|
495
|
-
return
|
496
|
-
}
|
497
|
-
if (this.deletebacklistisselect){
|
498
|
-
this.deletebacklist()
|
499
|
-
}
|
500
|
-
this.deal.f_other_dealpath = this.deal.f_deal_path
|
501
|
-
HostApp.__this__ = this
|
502
|
-
HostApp.logicWithHint({
|
503
|
-
'logic': 'safe_dealWithDefect', 'callback': 'javascript: HostApp.__this__.commitCallBack()',
|
504
|
-
'data': this.deal, 'backresult': 1
|
505
|
-
})
|
506
|
-
},
|
507
|
-
commitCallBack(jo) {
|
508
|
-
//tag
|
509
|
-
//tag)
|
510
|
-
if (jo.state == 'ok') {
|
511
|
-
let ress = JSON.parse(jo.result)
|
512
|
-
if (ress.code == 200) {
|
513
|
-
this.$showMessage(ress.msg)
|
514
|
-
this.closeshowModal1()
|
515
|
-
} else {
|
516
|
-
this.$showMessage(ress.msg)
|
517
|
-
}
|
518
|
-
} else {
|
519
|
-
this.$showMessage('本地服务调用失败')
|
520
|
-
}
|
521
|
-
},
|
522
|
-
delfile(prop, fileName) {
|
523
|
-
if (fileName == Vue.nopic)
|
524
|
-
return
|
525
|
-
else {
|
526
|
-
HostApp.delfile(fileName)
|
527
|
-
this.deal[prop] = Vue.nopic
|
528
|
-
}
|
529
|
-
},
|
530
|
-
openshowModal(val) {
|
531
|
-
this.row = val
|
532
|
-
this.showModal = true
|
533
|
-
},
|
534
|
-
closeshowModal() {
|
535
|
-
this.showimg = ''
|
536
|
-
this.showModal = false
|
537
|
-
},
|
538
|
-
openshowModal1(val) {
|
539
|
-
this.deal.result = val
|
540
|
-
//tag
|
541
|
-
//tag
|
542
|
-
this.deletebacklistisselect = false
|
543
|
-
this.showModal1 = true
|
544
|
-
},
|
545
|
-
closeshowModal1() {
|
546
|
-
this.deal = {
|
547
|
-
result: {},
|
548
|
-
f_deal_path: '',
|
549
|
-
f_other_dealpath1: '',
|
550
|
-
f_other_dealpath2: '',
|
551
|
-
f_deal_remark: '',
|
552
|
-
f_dealsign_path: '', //签名
|
553
|
-
f_dealer: Vue.user.name,
|
554
|
-
f_dealer_id: Vue.user.id
|
555
|
-
}
|
556
|
-
this.showModal1 = false
|
557
|
-
this.selfSearch()
|
558
|
-
},
|
559
|
-
cameraCallBack(prop, fileName) {
|
560
|
-
HostApp.__this__.$set( 'deal.'+prop+'', fileName)
|
561
|
-
HostApp.__callback__ = null
|
562
|
-
HostApp.__this__ = null
|
563
|
-
},
|
564
|
-
takePic(prop, title) {
|
565
|
-
HostApp.__callback__ = this.cameraCallBack
|
566
|
-
HostApp.__this__ = this
|
567
|
-
let fileName
|
568
|
-
if (!this.deal[prop] || this.deal[prop].includes("nopic.png")) {
|
569
|
-
fileName = Util.guid() + '-' + prop + '.jpg'
|
570
|
-
} else {
|
571
|
-
fileName = Util.getFileName(this.deal[prop])
|
614
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
615
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
572
616
|
}
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
type: 'boomerang',
|
577
|
-
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
578
|
-
param: {
|
579
|
-
file: fileName,
|
580
|
-
requestCode: 111,
|
581
|
-
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
582
|
-
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
583
|
-
}
|
584
|
-
})
|
585
|
-
},
|
586
|
-
selfSearch() {
|
617
|
+
})
|
618
|
+
},
|
619
|
+
selfSearch() {
|
587
620
|
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
}
|
621
|
+
let condition = "1=1 "
|
622
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name) {
|
623
|
+
if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
|
624
|
+
condition += " and tcp.f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
|
593
625
|
}
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
626
|
+
}
|
627
|
+
if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
|
628
|
+
if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
|
629
|
+
condition += " and tcp.f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
|
598
630
|
}
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
631
|
+
}
|
632
|
+
if (this.$refs.paged.$refs.cri.model.f_checker_name) {
|
633
|
+
if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
|
634
|
+
condition += " and tcp.f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
|
603
635
|
}
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
636
|
+
}
|
637
|
+
if (this.$refs.paged.$refs.cri.model.f_address) {
|
638
|
+
if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
|
639
|
+
condition += " and tcp.f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
|
608
640
|
}
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
641
|
+
}
|
642
|
+
if (this.$refs.paged.$refs.cri.model.f_start_date) {
|
643
|
+
if (this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()) {
|
644
|
+
condition += " and tdl.f_create_time > '" + this.$refs.paged.$refs.cri.model.f_start_date + "'"
|
613
645
|
}
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
646
|
+
}
|
647
|
+
if (this.$refs.paged.$refs.cri.model.f_end_date) {
|
648
|
+
if (this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()) {
|
649
|
+
condition += " and tdl.f_create_time < '" + this.$refs.paged.$refs.cri.model.f_end_date + "'"
|
618
650
|
}
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
651
|
+
}
|
652
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type) {
|
653
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
|
654
|
+
condition += " and f_user_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
|
623
655
|
}
|
656
|
+
}
|
624
657
|
|
625
|
-
|
626
|
-
|
627
|
-
|
658
|
+
//tag
|
659
|
+
this.model.search(condition)
|
660
|
+
},
|
628
661
|
|
629
|
-
|
630
|
-
|
631
|
-
}
|
662
|
+
hidden() {
|
663
|
+
this.criteriaShow = !this.criteriaShow
|
632
664
|
}
|
633
665
|
}
|
666
|
+
}
|
634
667
|
</script>
|