safecheck-client 4.0.1-60 → 4.0.1-62

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.
@@ -1,95 +1,95 @@
1
1
  <style scoped>
2
- .bg {
3
- background-color: blue;
4
- height: 1px;
5
- border: 0;
6
- }
2
+ .bg {
3
+ background-color: blue;
4
+ height: 1px;
5
+ border: 0;
6
+ }
7
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
- }
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
- .search_input {
15
- border: 0;
16
- outline: none;
17
- }
14
+ .search_input {
15
+ border: 0;
16
+ outline: none;
17
+ }
18
18
 
19
- .font {
20
- font: 15px PingFang-SC-Medium;
21
- color: #666666;
22
- }
19
+ .font {
20
+ font: 15px PingFang-SC-Medium;
21
+ color: #666666;
22
+ }
23
23
 
24
- .input-font {
25
- font: 15px PingFang-SC-Medium;
26
- color: #333333;
27
- }
24
+ .input-font {
25
+ font: 15px PingFang-SC-Medium;
26
+ color: #333333;
27
+ }
28
28
 
29
- .btn-font {
30
- font: 600 16px PingFang-SC-Bold;
31
- color: #499EDF;
32
- }
29
+ .btn-font {
30
+ font: 600 16px PingFang-SC-Bold;
31
+ color: #499EDF;
32
+ }
33
33
 
34
- .btn-color {
35
- background-color: #FFFFFF;
36
- border-radius: 10px;
37
- border: 1px solid #499EDF;
38
- }
34
+ .btn-color {
35
+ background-color: #FFFFFF;
36
+ border-radius: 10px;
37
+ border: 1px solid #499EDF;
38
+ }
39
39
 
40
- .app-text {
41
- font-size: 12px;
42
- }
40
+ .app-text {
41
+ font-size: 12px;
42
+ }
43
43
 
44
- .panel-self {
45
- border-radius: 10px;
46
- border: 1px solid #499EDF;
47
- background-color: #F8F8F8;
48
- }
44
+ .panel-self {
45
+ border-radius: 10px;
46
+ border: 1px solid #499EDF;
47
+ background-color: #F8F8F8;
48
+ }
49
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
- }
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
- .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
- }
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
- .button_shrink_top {
67
- width: 35px;
68
- height: 35px;
69
- background-size: 100%;
70
- background-image: url("../../../static/newStyle/stretch_top.png")
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
- .button_shrink_bottom {
74
- width: 35px;
75
- height: 35px;
76
- background-size: 100%;
77
- background-image: url("../../../static/newStyle/stretch_bottom.png")
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
- .button_shrink_left {
81
- width: 35px;
82
- height: 35px;
83
- background-size: 100%;
84
- background-image: url("../../../static/newStyle/stretch_left.png")
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
- .button_shrink_right {
88
- width: 35px;
89
- height: 35px;
90
- background-size: 100%;
91
- background-image: url("../../../static/newStyle/stretch_right.png")
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
- <!--<button type="button" class="btn btn-default" @click="$parent.$parent.$parent.ceshi">确认2</button>-->
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>&times;</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
- import Vue from 'vue'
368
- import {HttpResetClass, PagedList} from 'vue-client'
369
- import * as Util from '../Util'
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
- export default {
372
- title: '无计划安检查询',
373
- data() {
374
- return {
375
- row:{},
376
- showModal: false,
377
- showModal1: false,
378
- showimg: '',
379
- deal: {
380
- result: {},
381
- f_deal_path: '',
382
- f_other_dealpath1: '',
383
- f_other_dealpath2: '',
384
- f_deal_remark: '',
385
- f_dealsign_path: '', //签名
386
- f_dealer: Vue.user.name,
387
- f_dealer_id: Vue.user.id
388
- },
389
- user_types: [
390
- {label: '请选择用户类型', value: ''},
391
- {label: '民用', value: '民用'},
392
- {label: '非民用', value: '非民用'},
393
- ],
394
- f_filialeids: '',
395
- model: new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/AndroidDealWith`, 20, {
396
- condition: 'this.condition',
397
- f_filialeids: `'${Vue.user.orgid}'`,
398
- f_checker_id: `'${Vue.user.id}'`
399
- }),
400
- criteriaShow: false,
401
- isNeedDealSign: this.$appdata.getSingleValue('隐患处理是否需要签名') == 'true',
402
- isCancelLimitGas: this.$appdata.getSingleValue('隐患处理-取消限制购气') == '是',
403
- deletebacklistisselect: false
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
- ready() {
407
- this.selfSearch()
439
+ close2(){
440
+ this.showmaterial = false
441
+ this.selectdata ={}
408
442
  },
409
- methods: {
410
- async deletebacklist() {
411
- ////tag)
412
- let http = new HttpResetClass()
413
- ////tag
414
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
415
- data: {
416
- items: "*",
417
- tablename: "t_userinfo",
418
- condition: `f_userinfo_code = ${this.deal.result.f_userinfo_code}`,
419
- orderitem: "f_userinfo_code"
420
- }
421
- }, {resolveMsg: null, rejectMsg: null})
422
- ////tag)
423
- ////tag
424
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
425
- data: {
426
- "f_operat_type": "取消拉黑",
427
- "f_state": "有效",
428
- "f_user_name": this.deal.result.f_user_name,
429
- "f_comments": '',
430
- "f_operator": Vue.user.name,
431
- "f_operatorid": Vue.user.id,
432
- "f_orgid": Vue.user.orgid,
433
- "f_orgname": Vue.user.orgs,
434
- "f_depid": Vue.user.depids,
435
- "f_depname": Vue.user.deps,
436
- "f_describe": `${Vue.user.name}对用户${this.deal.result.f_user_name}进行取消拉黑`,
437
- "f_userinfo_id": {
438
- "f_userinfo_id": res1.data[0].f_userinfo_id,
439
- "f_user_state": "正常",
440
- "version": res1.data[0].version
441
- },
442
- "f_limit_times":"",
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
- this.delAudioFile('f_dealsign_path', this.deal.f_dealsign_path)
462
- let prop = 'f_dealsign_path'
463
- let idx = 'aofeng'
464
- let fileName
465
- if (!this.deal.f_dealsign_path) {
466
- fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
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
- fileName = Util.getFileName(this.deal.f_dealsign_path)
549
+ this.$showMessage(ress.msg)
469
550
  }
470
- HostApp.__callback__ = this.signCallback
471
- HostApp.__this__ = this
472
- HostApp.getSignature({
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
- //tag
574
- //tag
575
- HostApp._open_a_page({
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
- let condition = "1=1 "
589
- if (this.$refs.paged.$refs.cri.model.f_user_name) {
590
- if (this.$refs.paged.$refs.cri.model.f_user_name.toString().trim()) {
591
- condition += " and tcp.f_user_name like '" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
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
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code) {
595
- if (this.$refs.paged.$refs.cri.model.f_userinfo_code.toString().trim()) {
596
- condition += " and tcp.f_userinfo_code = '" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "'"
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
- if (this.$refs.paged.$refs.cri.model.f_checker_name) {
600
- if (this.$refs.paged.$refs.cri.model.f_checker_name.toString().trim()) {
601
- condition += " and tcp.f_checker_name = '" + this.$refs.paged.$refs.cri.model.f_checker_name + "'"
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
- if (this.$refs.paged.$refs.cri.model.f_address) {
605
- if (this.$refs.paged.$refs.cri.model.f_address.toString().trim()) {
606
- condition += " and tcp.f_address like '%" + this.$refs.paged.$refs.cri.model.f_address + "%'"
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
- if (this.$refs.paged.$refs.cri.model.f_start_date) {
610
- if (this.$refs.paged.$refs.cri.model.f_start_date.toString().trim()) {
611
- condition += " and tdl.f_create_time > '" + this.$refs.paged.$refs.cri.model.f_start_date + "'"
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
- if (this.$refs.paged.$refs.cri.model.f_end_date) {
615
- if (this.$refs.paged.$refs.cri.model.f_end_date.toString().trim()) {
616
- condition += " and tdl.f_create_time < '" + this.$refs.paged.$refs.cri.model.f_end_date + "'"
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
- if (this.$refs.paged.$refs.cri.model.f_user_type) {
620
- if (this.$refs.paged.$refs.cri.model.f_user_type.toString().trim()) {
621
- condition += " and f_user_type = '" + this.$refs.paged.$refs.cri.model.f_user_type + "'"
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
- //tag
626
- this.model.search(condition)
627
- },
658
+ //tag
659
+ this.model.search(condition)
660
+ },
628
661
 
629
- hidden() {
630
- this.criteriaShow = !this.criteriaShow
631
- }
662
+ hidden() {
663
+ this.criteriaShow = !this.criteriaShow
632
664
  }
633
665
  }
666
+ }
634
667
  </script>