safecheck-client 4.0.0-65 → 4.0.0-67
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/package.json +132 -132
- package/src/components/NewDefectList/DefectListNew.vue +11 -11
- package/src/components/NewDefectList/DefectPaperNew.vue +44 -44
- package/src/components/android/Insurance/PhoneInsurancePurchaseDetail.vue +280 -280
- package/src/components/paper/PaperList.vue +342 -342
- package/src/components/planmanage/PlanManage.vue +819 -819
- package/src/components/planmanage/checkUserList.vue +346 -346
- package/src/components/querycheckpaper/CheckSearchUser.vue +68 -68
- package/src/components/report/CheckPlanAreaList.vue +266 -266
- package/src/filiale/jinhong/android/CurrentCreate.vue +1192 -0
- package/src/filiale/jinhong/android.js +2 -1
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +511 -0
- package/src/filiale/jinhong/pc/CheckSearchUser.vue +1094 -0
- package/src/filiale/jinhong/pc/DefectListNew.vue +663 -0
- package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -0
- package/src/filiale/jinhong/pc/PaperList.vue +823 -0
- package/src/filiale/jinhong/pc/PlanManage.vue +891 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +776 -0
- package/src/filiale/jinhong/pc.js +11 -0
- package/src/filiale/meihekou/android/PhoneInsurancePurchaseDetail.vue +293 -293
- package/src/filiale/meihekou/android.js +20 -20
- package/src/main.js +1 -1
@@ -235,7 +235,7 @@
|
|
235
235
|
:show-rest-button="reset"
|
236
236
|
:value.sync="model.f_start_time"
|
237
237
|
v-model="model.f_start_time"
|
238
|
-
|
238
|
+
>
|
239
239
|
</datepicker>
|
240
240
|
</div>
|
241
241
|
<div class="form-group col-sm-4" >
|
@@ -248,7 +248,7 @@
|
|
248
248
|
:show-rest-button="reset"
|
249
249
|
:value.sync="model.f_end_time"
|
250
250
|
v-model="model.f_end_time"
|
251
|
-
|
251
|
+
>
|
252
252
|
</datepicker>
|
253
253
|
</div>
|
254
254
|
<div class="form-group col-sm-4">
|
@@ -396,378 +396,378 @@
|
|
396
396
|
</template>
|
397
397
|
|
398
398
|
<script>
|
399
|
-
|
400
|
-
|
401
|
-
|
399
|
+
import {HttpResetClass, PagedList} from "vue-client";
|
400
|
+
import * as Util from "../Util";
|
401
|
+
import Vue from "vue";
|
402
402
|
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
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
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
403
|
+
export default {
|
404
|
+
name: "PlanManage",
|
405
|
+
title: '计划管理',
|
406
|
+
data() {
|
407
|
+
return {
|
408
|
+
model:new PagedList('/api/af-safecheck/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
|
409
|
+
"orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
|
410
|
+
"f_usertype": "''",
|
411
|
+
"month": "''",
|
412
|
+
"SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
|
413
|
+
"SafeCheckCQ": "''",
|
414
|
+
"startday":"''",
|
415
|
+
"endday":"''"}),
|
416
|
+
a:'1',
|
417
|
+
opt:[{label:"测试",value:"测试"}],
|
418
|
+
showCondtion:false,
|
419
|
+
userTypes:[],//用户类型
|
420
|
+
userStates:[],//用户状态
|
421
|
+
gasproperties:[],//用气性质
|
422
|
+
meter_classifys:[],//气表类型
|
423
|
+
hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
|
424
|
+
yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
|
425
|
+
entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
|
426
|
+
sliceArea:[],
|
427
|
+
meterbooks:[],
|
428
|
+
hasCheckBooks:'否',
|
429
|
+
checkBooks:[],
|
430
|
+
cbc:[],
|
431
|
+
areaList:[],
|
432
|
+
checkAll:false,
|
433
|
+
checkes:[],
|
434
|
+
excelUserCondtion:false,
|
435
|
+
uploadCodeCondition:'',
|
436
|
+
streets:[]
|
437
|
+
}
|
438
|
+
},
|
439
|
+
props:["selectplan","userlogin"],
|
440
|
+
ready(){
|
441
|
+
this.$refs.paged.$refs.criteria.model.f_user_state='正常'
|
442
|
+
this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
|
443
|
+
// this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
|
444
|
+
//this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
|
445
|
+
this.getCheckBook()
|
446
|
+
this.setConList()
|
447
|
+
this.loadpage()
|
448
448
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
})
|
449
|
+
},
|
450
|
+
methods: {
|
451
|
+
getCheckBook(){
|
452
|
+
this.checkBooks=[]
|
453
|
+
new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
454
|
+
data: {
|
455
|
+
items: 'id,f_check_book_name,f_check_book_type',
|
456
|
+
tablename: 't_check_book',
|
457
|
+
condition: `f_orgid = '${this.userlogin.orgid}'`,
|
458
|
+
orderitem: 'id desc'
|
459
|
+
}
|
460
|
+
}, {resolveMsg: null, rejectMsg: null}).then(res => {
|
461
|
+
this.checkBooks.push({label: '全部', value: ''})
|
462
|
+
res.data.forEach(ress => {
|
463
|
+
this.checkBooks.push({
|
464
|
+
label: ress.f_check_book_name,
|
465
|
+
value: `${ress.id}-${ress.f_check_book_type}`
|
467
466
|
})
|
468
467
|
})
|
469
|
-
}
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
468
|
+
})
|
469
|
+
},
|
470
|
+
loadpage(){
|
471
|
+
this.select_search()
|
472
|
+
this.select_street()
|
473
|
+
this.Mreadibook()
|
474
|
+
this.getSliceArea()
|
475
|
+
},
|
476
|
+
cancel(){
|
477
|
+
this.showCondtion=false
|
478
|
+
this.excelUserCondtion=false
|
479
|
+
},
|
480
|
+
//清空用户编号
|
481
|
+
clearUserInfoId(){
|
482
|
+
this.uploadCodeCondition=''
|
483
|
+
Vue.showMessage("已清空用户编号")
|
484
|
+
},
|
485
|
+
showUploadCodeCondition(){
|
486
|
+
this.excelUserCondtion=true
|
487
|
+
},
|
488
|
+
selfSearch (args) {
|
489
|
+
//tag)
|
490
|
+
args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
|
491
|
+
/*if(args.model.f_hasHousehold=='已入户'){
|
492
|
+
args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
|
493
|
+
}else if(args.model.f_hasHousehold=='未入户'){
|
494
|
+
args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
|
495
|
+
}*/
|
496
496
|
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
497
|
+
if (args.model.f_last_check_state == '未检') {
|
498
|
+
let nocheckcon = 'and ( ui.f_last_check_date is null '
|
499
|
+
if(args.model.f_start_time){
|
500
|
+
nocheckcon += ` or ui.f_last_check_date <='${args.model.f_start_time} 00:00:00' `
|
501
|
+
}
|
502
|
+
if(args.model.f_end_time){
|
503
|
+
nocheckcon += ` or ui.f_last_check_date >='${args.model.f_end_time} 23:59:59' `
|
504
|
+
}
|
505
|
+
nocheckcon += ')'
|
506
|
+
args.condition += nocheckcon
|
507
|
+
}else{
|
508
|
+
if(args.model.f_last_check_state){
|
509
|
+
args.condition += ` and ui.f_last_check_state = '${args.model.f_last_check_state}'`
|
510
|
+
}
|
511
|
+
if(args.model.f_start_time){
|
512
|
+
args.condition += ` and ui.f_last_check_date >='${args.model.f_start_time} 00:00:00' `
|
513
|
+
}
|
514
|
+
if(args.model.f_end_time){
|
515
|
+
args.condition += ` and ui.f_last_check_date <='${args.model.f_end_time} 23:59:59' `
|
516
|
+
}
|
517
|
+
}
|
518
|
+
|
519
|
+
if(args.model.checkBook){
|
520
|
+
let arr=args.model.checkBook.split('-')
|
521
|
+
if(arr[1] == '用户'){
|
522
|
+
args.condition +=` and ua.f_check_book_id='${arr[0]}'`
|
507
523
|
}else{
|
508
|
-
|
509
|
-
args.condition += ` and ui.f_last_check_state = '${args.model.f_last_check_state}'`
|
510
|
-
}
|
511
|
-
if(args.model.f_start_time){
|
512
|
-
args.condition += ` and ui.f_last_check_date >='${args.model.f_start_time} 00:00:00' `
|
513
|
-
}
|
514
|
-
if(args.model.f_end_time){
|
515
|
-
args.condition += ` and ui.f_last_check_date <='${args.model.f_end_time} 23:59:59' `
|
516
|
-
}
|
524
|
+
args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
|
517
525
|
}
|
526
|
+
}
|
527
|
+
if(this.uploadCodeCondition){
|
528
|
+
args.condition +=` and ${this.uploadCodeCondition}`
|
529
|
+
}
|
530
|
+
this.cancel()
|
531
|
+
this.checkes=[]
|
532
|
+
this.checkAll=false
|
533
|
+
this.model.search(args.condition, args.model, args.condValue)
|
534
|
+
},
|
535
|
+
showUserCondition(){
|
536
|
+
this.showCondtion=true
|
537
|
+
},
|
538
|
+
setConList(){
|
539
|
+
this.userTypes=this.$appdata.getParam('用户类型') ? [{
|
540
|
+
label: '全部',
|
541
|
+
value: ''
|
542
|
+
}, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
|
518
543
|
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
544
|
+
this.userStates=this.$appdata.getParam('安检用户状态') ? [{
|
545
|
+
label: '全部',
|
546
|
+
value: ''
|
547
|
+
},...this.$appdata.getParam('安检用户状态')] : [{label: '全部', value: ''}]
|
548
|
+
this.gasproperties=this.$appdata.getParam('用气性质') ? [{
|
549
|
+
label: '全部',
|
550
|
+
value: ''
|
551
|
+
}, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
|
552
|
+
this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
|
553
|
+
label: '全部',
|
554
|
+
value: ''
|
555
|
+
}, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
|
556
|
+
},
|
557
|
+
select_search(text){
|
558
|
+
//tag
|
559
|
+
let pcdText=text?` and f_residential_area like '%${text}%'`:''
|
560
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
561
|
+
//tag)
|
562
|
+
if(res.data.length>0){
|
563
|
+
this.areaList=[]
|
564
|
+
this.areaList.push({label:"全部",value:""})
|
565
|
+
res.data.forEach((result)=>{
|
566
|
+
this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
|
567
|
+
})
|
526
568
|
}
|
527
|
-
|
528
|
-
|
569
|
+
//tag)
|
570
|
+
})
|
571
|
+
},
|
572
|
+
select_street(){
|
573
|
+
//tag
|
574
|
+
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"id,f_street",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}'`}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
575
|
+
//tag)
|
576
|
+
if(res.data.length>0){
|
577
|
+
this.streets=[]
|
578
|
+
this.streets.push({label:"全部",value:""})
|
579
|
+
res.data.forEach((result)=>{
|
580
|
+
this.streets.push({label:result.f_street,value:result.id})
|
581
|
+
})
|
529
582
|
}
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
}, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
|
552
|
-
this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
|
553
|
-
label: '全部',
|
554
|
-
value: ''
|
555
|
-
}, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
|
556
|
-
},
|
557
|
-
select_search(text){
|
558
|
-
//tag
|
559
|
-
let pcdText=text?` and f_residential_area like '%${text}%'`:''
|
560
|
-
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
561
|
-
//tag)
|
562
|
-
if(res.data.length>0){
|
563
|
-
this.areaList=[]
|
564
|
-
this.areaList.push({label:"全部",value:""})
|
565
|
-
res.data.forEach((result)=>{
|
566
|
-
this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
|
567
|
-
})
|
568
|
-
}
|
569
|
-
//tag)
|
570
|
-
})
|
571
|
-
},
|
572
|
-
select_street(){
|
573
|
-
//tag
|
574
|
-
new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data:{items:"id,f_street",tablename:"t_street",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}'`}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
|
575
|
-
//tag)
|
576
|
-
if(res.data.length>0){
|
577
|
-
this.streets=[]
|
578
|
-
this.streets.push({label:"全部",value:""})
|
579
|
-
res.data.forEach((result)=>{
|
580
|
-
this.streets.push({label:result.f_street,value:result.id})
|
581
|
-
})
|
583
|
+
})
|
584
|
+
},
|
585
|
+
//获取抄表册
|
586
|
+
async Mreadibook(){
|
587
|
+
this.cbc=[]
|
588
|
+
this.sliceArea=[]
|
589
|
+
let http = new HttpResetClass()
|
590
|
+
let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
|
591
|
+
{data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
|
592
|
+
{resolveMsg: null, rejectMsg: '获取失败!!!'})
|
593
|
+
this.cbc = [{label: '全部', value: ''}]
|
594
|
+
//tag
|
595
|
+
//tag)
|
596
|
+
//tag
|
597
|
+
this.meterbooks=[]
|
598
|
+
this.meterbooks=getMeterReadingBooks.data.meterbooks
|
599
|
+
this.meterbooks.forEach((res) => {
|
600
|
+
this.cbc.push({label: res.f_book_name, value: res.id})
|
601
|
+
/*if(res.f_book_slice_area){
|
602
|
+
if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
|
603
|
+
this.sliceArea.push(res.f_book_slice_area)
|
582
604
|
}
|
583
|
-
}
|
584
|
-
}
|
585
|
-
|
586
|
-
|
605
|
+
}*/
|
606
|
+
})
|
607
|
+
|
608
|
+
},
|
609
|
+
//片区获取
|
610
|
+
async getSliceArea() {
|
611
|
+
let http = new HttpResetClass()
|
612
|
+
let getAllArea = await http.load('POST', '/rs/search', {
|
613
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
614
|
+
userid: this.userlogin.id
|
615
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
616
|
+
this.sliceArea = [{label: '全部', value: ''}]
|
617
|
+
//tag
|
618
|
+
//tag
|
619
|
+
//tag
|
620
|
+
getAllArea.data.forEach((res) => {
|
621
|
+
if(res.parentid==this.userlogin.orgid){
|
622
|
+
this.sliceArea.push({label:res.name,value:res.name})
|
623
|
+
}
|
624
|
+
})
|
625
|
+
//tag
|
626
|
+
},
|
627
|
+
//片区改变-对应抄表册下拉重新赋值
|
628
|
+
slice_areaChange(value) {
|
629
|
+
//tag
|
630
|
+
if(!value){
|
587
631
|
this.cbc=[]
|
588
|
-
this.sliceArea=[]
|
589
|
-
let http = new HttpResetClass()
|
590
|
-
let getMeterReadingBooks = await http.load('POST','api/af-safecheck/logic/getMeterBooksData',
|
591
|
-
{data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
|
592
|
-
{resolveMsg: null, rejectMsg: '获取失败!!!'})
|
593
|
-
this.cbc = [{label: '全部', value: ''}]
|
594
|
-
//tag
|
595
|
-
//tag)
|
596
|
-
//tag
|
597
|
-
this.meterbooks=[]
|
598
|
-
this.meterbooks=getMeterReadingBooks.data.meterbooks
|
599
632
|
this.meterbooks.forEach((res) => {
|
600
633
|
this.cbc.push({label: res.f_book_name, value: res.id})
|
601
|
-
/*if(res.f_book_slice_area){
|
602
|
-
if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
|
603
|
-
this.sliceArea.push(res.f_book_slice_area)
|
604
|
-
}
|
605
|
-
}*/
|
606
634
|
})
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
let getAllArea = await http.load('POST', '/rs/search', {
|
613
|
-
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
614
|
-
userid: this.userlogin.id
|
615
|
-
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
616
|
-
this.sliceArea = [{label: '全部', value: ''}]
|
617
|
-
//tag
|
618
|
-
//tag
|
619
|
-
//tag
|
620
|
-
getAllArea.data.forEach((res) => {
|
621
|
-
if(res.parentid==this.userlogin.orgid){
|
622
|
-
this.sliceArea.push({label:res.name,value:res.name})
|
635
|
+
}else{
|
636
|
+
this.cbc=[]
|
637
|
+
this.meterbooks.forEach((res) => {
|
638
|
+
if(res.f_book_slice_area==value){
|
639
|
+
this.cbc.push({label: res.f_book_name, value: res.id})
|
623
640
|
}
|
624
641
|
})
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
return
|
674
|
-
}
|
675
|
-
if(this.selectplan && this.selectplan.id){
|
676
|
-
this.$parent.isSend=true
|
677
|
-
try{
|
678
|
-
let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/AddCheckPlanItem", {
|
679
|
-
data:{
|
680
|
-
f_operator:this.userlogin.name,
|
681
|
-
f_plan_id:this.selectplan.id,
|
682
|
-
f_safecheck_type:this.selectplan.f_safecheck_type,
|
683
|
-
f_filialeid:this.userlogin.orgid,
|
684
|
-
f_subscribe_date:'',
|
685
|
-
condition:this.model.condition,
|
686
|
-
switchCheckAll:true,
|
687
|
-
checkAll:this.checkAll,
|
688
|
-
param:this.checkes,
|
689
|
-
columnName: "ua.id"
|
690
|
-
}
|
691
|
-
}, {resolveMsg: null, rejectMsg: null})
|
692
|
-
//tag+"---"+res.data.result.length)
|
693
|
-
this.$parent.isSend=false
|
694
|
-
if(res.data.code==200){
|
695
|
-
//alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
|
696
|
-
this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
|
697
|
-
this.$parent.refresh()
|
698
|
-
}else{
|
699
|
-
this.$showMessage("添加失败!")
|
642
|
+
}
|
643
|
+
},
|
644
|
+
isChecked(v) {
|
645
|
+
// 如果全选,不在的按选中算,否则,在的按选中算
|
646
|
+
if (this.checkAll) {
|
647
|
+
return this.checkes.indexOf(v) == -1
|
648
|
+
} else {
|
649
|
+
return this.checkes.indexOf(v) != -1
|
650
|
+
}
|
651
|
+
},
|
652
|
+
setCheckAll() {
|
653
|
+
this.checkAll=this.checkAll?false:true;
|
654
|
+
// 全选改变后,清空选中数据
|
655
|
+
this.checkes = []
|
656
|
+
},
|
657
|
+
setCheckes(id) {
|
658
|
+
let index=this.checkes.indexOf(id)
|
659
|
+
if(index<0){
|
660
|
+
this.checkes.push(id)
|
661
|
+
}else{
|
662
|
+
this.checkes.splice(index,1)
|
663
|
+
}
|
664
|
+
},
|
665
|
+
//将客户信息拖至计划中
|
666
|
+
async dragtoPlanItem() {
|
667
|
+
if(this.model.rows.length==0){
|
668
|
+
Vue.showMessage("未检测到列表中有用户!")
|
669
|
+
return
|
670
|
+
}
|
671
|
+
if(!this.checkAll && this.checkes.length==0){
|
672
|
+
Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
|
673
|
+
return
|
674
|
+
}
|
675
|
+
if(this.selectplan && this.selectplan.id){
|
676
|
+
this.$parent.isSend=true
|
677
|
+
try{
|
678
|
+
let res=await new HttpResetClass().load("POST", "/api/af-safecheck/logic/AddCheckPlanItem", {
|
679
|
+
data:{
|
680
|
+
f_operator:this.userlogin.name,
|
681
|
+
f_plan_id:this.selectplan.id,
|
682
|
+
f_safecheck_type:this.selectplan.f_safecheck_type,
|
683
|
+
f_filialeid:this.userlogin.orgid,
|
684
|
+
f_subscribe_date:'',
|
685
|
+
condition:this.model.condition,
|
686
|
+
switchCheckAll:true,
|
687
|
+
checkAll:this.checkAll,
|
688
|
+
param:this.checkes,
|
689
|
+
columnName: "ua.id"
|
700
690
|
}
|
701
|
-
}
|
691
|
+
}, {resolveMsg: null, rejectMsg: null})
|
692
|
+
//tag+"---"+res.data.result.length)
|
693
|
+
this.$parent.isSend=false
|
694
|
+
if(res.data.code==200){
|
695
|
+
//alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
|
696
|
+
this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
|
697
|
+
this.$parent.refresh()
|
698
|
+
}else{
|
702
699
|
this.$showMessage("添加失败!")
|
703
700
|
}
|
704
|
-
}
|
705
|
-
this.$
|
706
|
-
this.$showMessage("请先打开一个计划再进行操作")
|
701
|
+
}catch (e) {
|
702
|
+
this.$showMessage("添加失败!")
|
707
703
|
}
|
704
|
+
}else{
|
705
|
+
this.$parent.isSend=false
|
706
|
+
this.$showMessage("请先打开一个计划再进行操作")
|
708
707
|
}
|
708
|
+
}
|
709
|
+
},
|
710
|
+
events: {
|
711
|
+
onFileUpload: function (file, res) {
|
712
|
+
//tag)
|
713
|
+
//tag)
|
714
|
+
let data = {
|
715
|
+
filepath: res.f_downloadpath
|
716
|
+
}
|
717
|
+
new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
|
718
|
+
resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
|
719
|
+
rejectMsg: '导入失败'
|
720
|
+
}).then((res) => {
|
721
|
+
this.uploadCodeCondition=res.data.condition
|
722
|
+
this.excelUserCondtion = false
|
723
|
+
})
|
709
724
|
},
|
710
|
-
events: {
|
711
|
-
onFileUpload: function (file, res) {
|
712
|
-
//tag)
|
713
|
-
//tag)
|
714
|
-
let data = {
|
715
|
-
filepath: res.f_downloadpath
|
716
|
-
}
|
717
|
-
new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
|
718
|
-
resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
|
719
|
-
rejectMsg: '导入失败'
|
720
|
-
}).then((res) => {
|
721
|
-
this.uploadCodeCondition=res.data.condition
|
722
|
-
this.excelUserCondtion = false
|
723
|
-
})
|
724
|
-
},
|
725
725
|
|
726
|
-
}
|
727
726
|
}
|
727
|
+
}
|
728
728
|
</script>
|
729
729
|
|
730
730
|
<style scoped>
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
731
|
+
.safe-planfont{
|
732
|
+
font-family: MicrosoftYaHei;
|
733
|
+
font-size: 15px;
|
734
|
+
font-weight: normal;
|
735
|
+
font-stretch: normal;
|
736
|
+
letter-spacing: 2px;
|
737
|
+
color: #333333;
|
738
|
+
line-height: 25px;
|
739
|
+
}
|
740
|
+
.safe-bodyfont{
|
741
|
+
font-family: MicrosoftYaHei;
|
742
|
+
font-size: 14px;
|
743
|
+
font-weight: normal;
|
744
|
+
font-stretch: normal;
|
745
|
+
letter-spacing: 0px;
|
746
|
+
color: #999999;
|
747
|
+
line-height: 30px;
|
748
|
+
}
|
749
|
+
.safe-leftplan{
|
750
|
+
height:auto;
|
751
|
+
border-bottom:1px solid #ececec;
|
752
|
+
padding: 10px 5px
|
753
|
+
}
|
754
|
+
.leftplan-center{
|
755
|
+
border-top:1px solid #ececec;
|
756
|
+
border-bottom:1px solid #ececec;
|
757
|
+
}
|
758
|
+
.safe_p{
|
759
|
+
white-space: nowrap;
|
760
|
+
overflow: hidden;
|
761
|
+
text-overflow: ellipsis;
|
762
|
+
}
|
763
|
+
.safe-div-p{
|
764
|
+
color: #4792de;
|
765
|
+
text-align: end;
|
766
|
+
padding: 8px 15px;
|
767
|
+
}
|
768
768
|
</style>
|
769
769
|
<style lang="less">
|
770
|
-
|
771
|
-
|
772
|
-
|
770
|
+
.upuserinfo_sel ul{
|
771
|
+
width: 150% !important;
|
772
|
+
}
|
773
773
|
</style>
|