apply-clients 4.1.61 → 4.1.65
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 +3 -2
- package/src/App.vue +20 -20
- package/src/components/product/Function/InstallInfoSelect.vue +282 -281
- package/src/components/product/Function/StopApplyCrrdList.vue +176 -176
- package/src/components/product/Process/ExplorationSelect.vue +6 -7
- package/src/components/product/Process/ExplorationUser.vue +134 -134
- package/src/components/product/Process/Processes/InstallationDetails.vue +110 -72
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +944 -120
- package/src/components/product/Process/Service/ServiceControl.vue +48 -32
- package/src/components/product/ServiceView.vue +51 -45
- package/src/components/product/Supervisory/SupervisoryList.vue +208 -208
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<show-back-reason :selectdata="show_data"></show-back-reason>
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
|
-
<service-view v-ref:serviceview :data="show_data"
|
|
7
|
+
<service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
|
|
8
8
|
|
|
9
9
|
</template>
|
|
10
10
|
<script>
|
|
@@ -30,23 +30,20 @@ Date.prototype.Format = function (fmt) {
|
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
32
|
title: '报建流程业务控制层',
|
|
33
|
-
props: ['selectdata'
|
|
33
|
+
props: ['selectdata'],
|
|
34
34
|
data() {
|
|
35
35
|
return {
|
|
36
36
|
data: null, // 数据库数据,json配置文件数据的数据集合
|
|
37
37
|
json_datas: null, // Json配置文件集合
|
|
38
38
|
showview: false, // 控制显示service-view组件
|
|
39
39
|
show_data: null, // 给view层显示的数据
|
|
40
|
-
selecteddd:[]
|
|
41
40
|
}
|
|
41
|
+
|
|
42
42
|
},
|
|
43
43
|
created () {
|
|
44
44
|
this.refurbish()
|
|
45
45
|
},
|
|
46
46
|
ready(){
|
|
47
|
-
this.data.selectedd=this.selectedData
|
|
48
|
-
console.log("sleect")
|
|
49
|
-
console.log(this.data.selectedd)
|
|
50
47
|
},
|
|
51
48
|
methods: {
|
|
52
49
|
// 组件初始化操作
|
|
@@ -230,6 +227,7 @@ export default {
|
|
|
230
227
|
})
|
|
231
228
|
// 初始化加载
|
|
232
229
|
// ========================= 中盛 =================================
|
|
230
|
+
|
|
233
231
|
if (this.selectdata.defname === '报建登记') {
|
|
234
232
|
let http = new HttpResetClass()
|
|
235
233
|
let condition = "f_filialeid = " + this.$login.f.orgid
|
|
@@ -294,6 +292,7 @@ export default {
|
|
|
294
292
|
}
|
|
295
293
|
}
|
|
296
294
|
}
|
|
295
|
+
|
|
297
296
|
},
|
|
298
297
|
// 初始化fields值
|
|
299
298
|
initializeFields() {
|
|
@@ -421,7 +420,6 @@ export default {
|
|
|
421
420
|
this.$dispatch('breakControl', this.data)
|
|
422
421
|
return
|
|
423
422
|
}
|
|
424
|
-
|
|
425
423
|
// 提交前置
|
|
426
424
|
try {
|
|
427
425
|
model = await this.buttonBefore(model)
|
|
@@ -429,20 +427,19 @@ export default {
|
|
|
429
427
|
this.$showAlert(e, 'warning', 3000)
|
|
430
428
|
return
|
|
431
429
|
}
|
|
432
|
-
|
|
433
430
|
let http = new HttpResetClass()
|
|
434
431
|
let requestData = {
|
|
435
432
|
tables: this.data.tables,
|
|
436
433
|
start_activity: this.$workflow_vue.start_activity,
|
|
437
434
|
model: model,
|
|
438
435
|
loginUser: this.$login.f,
|
|
439
|
-
|
|
436
|
+
workflow_gxmlfilename: this.$workflow_vue.workflow_xmlfilename
|
|
440
437
|
}
|
|
438
|
+
console.log("gwfwe",this.selectdata)
|
|
441
439
|
// 下发,提交,保存,退回通用业务后台处理logic
|
|
442
440
|
let url = 'rs/logic/ApplyProductService'
|
|
443
441
|
let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
|
|
444
|
-
|
|
445
|
-
if (res.data.code == 200) {
|
|
442
|
+
if (res.data.code === 200) {
|
|
446
443
|
this.$dispatch('search')
|
|
447
444
|
} else {
|
|
448
445
|
if (res.data.msg) {
|
|
@@ -460,6 +457,15 @@ export default {
|
|
|
460
457
|
console.log('失去焦点')
|
|
461
458
|
// ========================= 武安 =================================
|
|
462
459
|
if (this.show_data.defname === '报建登记'){
|
|
460
|
+
if (this.show_data.fields[index].label === '是否具备安装条件') {
|
|
461
|
+
for (const button of this.show_data.buttons) {
|
|
462
|
+
if (this.show_data.fields[index].value === '否'&& button.button_name === '退回') {
|
|
463
|
+
button.hidden = false
|
|
464
|
+
}else {
|
|
465
|
+
button.hidden = true
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
463
469
|
if (this.show_data.fields[index].label === '地址类型'){
|
|
464
470
|
this.addressType()
|
|
465
471
|
}
|
|
@@ -614,6 +620,7 @@ export default {
|
|
|
614
620
|
this.setLabelValue('地址', f_address)
|
|
615
621
|
}
|
|
616
622
|
}
|
|
623
|
+
|
|
617
624
|
if (this.show_data.defname === '竣工验收') {
|
|
618
625
|
if (this.show_data.fields[index].label === '验收是否合格'){
|
|
619
626
|
for (const button of this.show_data.buttons) {
|
|
@@ -625,6 +632,20 @@ export default {
|
|
|
625
632
|
}
|
|
626
633
|
}
|
|
627
634
|
}
|
|
635
|
+
if (this.show_data.defname === '报建登记'&&this.show_data.f_apply_type==='工商户报建') {
|
|
636
|
+
|
|
637
|
+
console.log("13f", this.selectdata.onetomany)
|
|
638
|
+
for (const button of this.show_data.buttons) {
|
|
639
|
+
if (this.selectdata.onetomany&& button.button_name === '提交') {
|
|
640
|
+
console.log("1f")
|
|
641
|
+
button.disable = true
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
button.disable = false
|
|
645
|
+
console.log("2f")
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
628
649
|
if (this.show_data.defname === '营业厅建档'){
|
|
629
650
|
let http = new HttpResetClass()
|
|
630
651
|
let data = {
|
|
@@ -645,6 +666,7 @@ export default {
|
|
|
645
666
|
}
|
|
646
667
|
}
|
|
647
668
|
if(this.show_data.defname === '现场勘察') {
|
|
669
|
+
console.log("this.shdata",this.show_data)
|
|
648
670
|
if (this.show_data.fields[index].label === '是否具备安装条件') {
|
|
649
671
|
for (const button of this.show_data.buttons) {
|
|
650
672
|
if (this.show_data.fields[index].value === '否'&& button.button_name === '退回') {
|
|
@@ -677,27 +699,21 @@ export default {
|
|
|
677
699
|
}
|
|
678
700
|
if (this.show_data.defname === '合同签订') {
|
|
679
701
|
if (this.show_data.fields[index].label === '合同编号') {
|
|
680
|
-
this.show_data.fields[index].value
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
// }
|
|
696
|
-
// }
|
|
697
|
-
// this.show_data.fields[index].value = null
|
|
698
|
-
// this.$showAlert('合同编号已存在!!!', 'warning', 3000)
|
|
699
|
-
// }
|
|
700
|
-
// }
|
|
702
|
+
if (!isEmpty(this.show_data.fields[index].value)) {
|
|
703
|
+
let http = new HttpResetClass()
|
|
704
|
+
let data = {
|
|
705
|
+
tablename: 't_apply',
|
|
706
|
+
condition: `f_contract_number='${this.show_data.fields[index].value}'`
|
|
707
|
+
}
|
|
708
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
709
|
+
resolveMsg: null,
|
|
710
|
+
rejectMsg: '合同编号查重失败'
|
|
711
|
+
})
|
|
712
|
+
if (res.data.length > 0) {
|
|
713
|
+
this.show_data.fields[index].value = null
|
|
714
|
+
this.$showAlert('合同编号已存在!!!', 'warning', 3000)
|
|
715
|
+
}
|
|
716
|
+
}
|
|
701
717
|
}
|
|
702
718
|
if (this.show_data.fields[index].label === '单价(户)') {
|
|
703
719
|
let http = new HttpResetClass()
|
|
@@ -316,7 +316,6 @@
|
|
|
316
316
|
<button type="button" class="btn btn-primary" :disabled="disable_button_but" @click='confirm_but_modal()'>确认</button>
|
|
317
317
|
</footer>
|
|
318
318
|
</modal>
|
|
319
|
-
|
|
320
319
|
</div>
|
|
321
320
|
</template>
|
|
322
321
|
<script>
|
|
@@ -351,7 +350,7 @@
|
|
|
351
350
|
default: true
|
|
352
351
|
}
|
|
353
352
|
},
|
|
354
|
-
data
|
|
353
|
+
data() {
|
|
355
354
|
return {
|
|
356
355
|
model: {}, // 公司等属性
|
|
357
356
|
disable_button: true, // 控制按钮禁用
|
|
@@ -362,23 +361,18 @@
|
|
|
362
361
|
modeltitle: null, // 模态框标题
|
|
363
362
|
modalSize: null, // 模态框大小
|
|
364
363
|
showbutmodal: false,
|
|
365
|
-
showcheck:false,
|
|
366
|
-
back: ''
|
|
364
|
+
showcheck: false,
|
|
365
|
+
back: '',
|
|
367
366
|
}
|
|
368
|
-
|
|
369
367
|
},
|
|
370
|
-
ready(){
|
|
371
|
-
console.log(this.selectedData)
|
|
368
|
+
ready() {
|
|
372
369
|
console.log("7777777")
|
|
373
|
-
console.log(this.data
|
|
370
|
+
console.log(this.data)
|
|
374
371
|
},
|
|
375
372
|
watch: {
|
|
376
|
-
deep: true
|
|
377
|
-
},
|
|
378
|
-
computed: {
|
|
379
|
-
|
|
373
|
+
deep: true,
|
|
380
374
|
},
|
|
381
|
-
created
|
|
375
|
+
created() {
|
|
382
376
|
// 初始化数据
|
|
383
377
|
this.initializtion()
|
|
384
378
|
this.$dispatch('initializtionView')
|
|
@@ -400,6 +394,7 @@
|
|
|
400
394
|
this.disable_button = true
|
|
401
395
|
console.log("this.data")
|
|
402
396
|
console.log(this.data)
|
|
397
|
+
console.log(button)
|
|
403
398
|
// 组织model.fields数据
|
|
404
399
|
for (const item of this.data.fields) {
|
|
405
400
|
// checkbox特殊处理
|
|
@@ -428,7 +423,7 @@
|
|
|
428
423
|
this.model.title = this.data.title
|
|
429
424
|
this.model.fields = this.data.fields
|
|
430
425
|
this.model.onetomany = this.data.onetomany
|
|
431
|
-
if(this.data.defname === '通气点火') {
|
|
426
|
+
if (this.data.defname === '通气点火') {
|
|
432
427
|
if (this.data.processname === '工商户报建流程' || this.data.processname === '开发商集体报建流程') {
|
|
433
428
|
let http = new HttpResetClass()
|
|
434
429
|
let condition = `f_blobid = '${this.data.f_process_id}'`
|
|
@@ -437,31 +432,47 @@
|
|
|
437
432
|
tablename: 't_files',
|
|
438
433
|
condition: condition
|
|
439
434
|
}
|
|
440
|
-
},
|
|
435
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
441
436
|
console.log("res_________________")
|
|
442
437
|
console.log(res)
|
|
443
|
-
if (
|
|
438
|
+
if (res.data.length === 0) {
|
|
444
439
|
this.$showMessage("未上传图纸")
|
|
445
440
|
}
|
|
446
441
|
}
|
|
447
442
|
}
|
|
448
|
-
if(this.data.defname === '
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
443
|
+
// if (this.data.defname === '合同签订') {
|
|
444
|
+
// console.log("ddddd",this.data)
|
|
445
|
+
// }
|
|
446
|
+
// if (this.data.defname === '竣工验收') {
|
|
447
|
+
// // if (this.data.processname !== '工商户报建流程') {
|
|
448
|
+
// // let t=this.selecteddd
|
|
449
|
+
// // let diff = this.all.filter(function (val) {
|
|
450
|
+
// // return t.indexOf(val) === -1
|
|
451
|
+
// // })
|
|
452
|
+
// // console.log("diff", diff)
|
|
453
|
+
// // for(let index = 0;index < diff.length; index++){
|
|
454
|
+
// // let data = {
|
|
455
|
+
// // code:diff[index].f_userinfo_code
|
|
456
|
+
// // }
|
|
457
|
+
// // console.log("code", data.code)
|
|
458
|
+
// // let http = new HttpResetClass()
|
|
459
|
+
// // http.load('POST', 'rs/logic/batchcheck', {data:data}, {resolveMsg: null, rejectMsg: null})
|
|
460
|
+
// //
|
|
461
|
+
// // }
|
|
462
|
+
// // }
|
|
463
|
+
// }
|
|
453
464
|
if (button.button_name === '退回') {
|
|
454
465
|
this.showbutmodal = true
|
|
455
466
|
} else if (button.button_name === '下发') {
|
|
456
467
|
this.showbutmodal = true
|
|
457
|
-
}
|
|
468
|
+
} else if (button.button_name === '验收') {
|
|
458
469
|
this.showbutmodal = true
|
|
459
|
-
}else {
|
|
470
|
+
} else {
|
|
460
471
|
this.$dispatch('button', this.model)
|
|
461
472
|
}
|
|
462
473
|
},
|
|
463
474
|
// 初始化数据
|
|
464
|
-
initializtion
|
|
475
|
+
initializtion() {
|
|
465
476
|
// 是否禁用按钮
|
|
466
477
|
this.disableButton()
|
|
467
478
|
|
|
@@ -493,10 +504,8 @@
|
|
|
493
504
|
this.model.f_operator = this.$login.f.name
|
|
494
505
|
}
|
|
495
506
|
},
|
|
496
|
-
|
|
497
|
-
|
|
498
507
|
// 是否禁用按钮
|
|
499
|
-
disableButton
|
|
508
|
+
disableButton() {
|
|
500
509
|
let fields = this.data.fields
|
|
501
510
|
|
|
502
511
|
let flag = false
|
|
@@ -527,7 +536,7 @@
|
|
|
527
536
|
this.disable_button = flag
|
|
528
537
|
},
|
|
529
538
|
// 失去焦点触发,无论值是否发生变化
|
|
530
|
-
onblur
|
|
539
|
+
onblur(index) {
|
|
531
540
|
// 是否禁用按钮
|
|
532
541
|
this.disableButton()
|
|
533
542
|
|
|
@@ -539,7 +548,7 @@
|
|
|
539
548
|
}
|
|
540
549
|
},
|
|
541
550
|
// 失去焦点且值最终发生变化触发
|
|
542
|
-
onchange
|
|
551
|
+
onchange(index) {
|
|
543
552
|
// 是否禁用按钮
|
|
544
553
|
this.disableButton()
|
|
545
554
|
|
|
@@ -558,7 +567,7 @@
|
|
|
558
567
|
this.$dispatch('error_check', index)
|
|
559
568
|
}
|
|
560
569
|
},
|
|
561
|
-
oninput
|
|
570
|
+
oninput(index) {
|
|
562
571
|
// 是否禁用按钮
|
|
563
572
|
this.disableButton()
|
|
564
573
|
|
|
@@ -570,7 +579,7 @@
|
|
|
570
579
|
}
|
|
571
580
|
},
|
|
572
581
|
// 模态框确认按钮
|
|
573
|
-
confirm_modal
|
|
582
|
+
confirm_modal(title) {
|
|
574
583
|
if (title === '新增') {
|
|
575
584
|
if (this.data.onetomany[this.onetomany_index].addEvent === 'default' || !this.data.onetomany[this.onetomany_index].addEvent) {
|
|
576
585
|
this.$dispatch('onetomanyadd', this.onetomany_index)
|
|
@@ -588,7 +597,7 @@
|
|
|
588
597
|
this.closemodal()
|
|
589
598
|
},
|
|
590
599
|
// 删除
|
|
591
|
-
delete
|
|
600
|
+
delete(i, j) {
|
|
592
601
|
this.$showMessage((this.data.onetomany[i].deleteMessage === 'default' || !this.data.onetomany[i].deleteMessage) ? '您确定要删除这条记录吗?' : this.data.onetomany[i].deleteMessage, ['confirm']).then((res) => {
|
|
593
602
|
if (res === 'confirm') {
|
|
594
603
|
if (this.data.onetomany[i].deleteEvent === 'default' || !this.data.onetomany[i].deleteEvent) {
|
|
@@ -600,7 +609,7 @@
|
|
|
600
609
|
})
|
|
601
610
|
},
|
|
602
611
|
// 修改
|
|
603
|
-
update
|
|
612
|
+
update(i, j) {
|
|
604
613
|
let onetomany = this.data.onetomany[i]
|
|
605
614
|
let item = this.data.onetomany[i].rows[j]
|
|
606
615
|
let count = 0
|
|
@@ -620,12 +629,12 @@
|
|
|
620
629
|
this.onetomany_index = i
|
|
621
630
|
this.update_onetomany_index = j
|
|
622
631
|
|
|
623
|
-
this.$dispatch('openUpdateModel',i,j)
|
|
632
|
+
this.$dispatch('openUpdateModel', i, j)
|
|
624
633
|
|
|
625
634
|
this.show = true
|
|
626
635
|
},
|
|
627
636
|
// 添加
|
|
628
|
-
add
|
|
637
|
+
add(index) {
|
|
629
638
|
let count = 0
|
|
630
639
|
for (const item of this.data.onetomany[index].fields) {
|
|
631
640
|
if (item.type === 'datepicker') {
|
|
@@ -643,13 +652,13 @@
|
|
|
643
652
|
this.modalSize = this.data.onetomany[index].modalSize
|
|
644
653
|
this.onetomany_index = index
|
|
645
654
|
|
|
646
|
-
this.$dispatch('openAddModel',index)
|
|
655
|
+
this.$dispatch('openAddModel', index)
|
|
647
656
|
|
|
648
657
|
this.show = true
|
|
649
658
|
},
|
|
650
659
|
// 关闭模态框
|
|
651
|
-
closemodal
|
|
652
|
-
if (val === 'but'){
|
|
660
|
+
closemodal(val) {
|
|
661
|
+
if (val === 'but') {
|
|
653
662
|
this.disableButton()
|
|
654
663
|
this.showbutmodal = false
|
|
655
664
|
return
|
|
@@ -665,7 +674,7 @@
|
|
|
665
674
|
this.modalSize = null
|
|
666
675
|
},
|
|
667
676
|
// 是否禁用模态框按钮
|
|
668
|
-
disableModalButton
|
|
677
|
+
disableModalButton() {
|
|
669
678
|
let fields = this.data.onetomany[this.onetomany_index].fields
|
|
670
679
|
|
|
671
680
|
let flag = false
|
|
@@ -691,23 +700,20 @@
|
|
|
691
700
|
this.disable_button_onetomany = flag
|
|
692
701
|
},
|
|
693
702
|
// 监听模态框属性失去焦点
|
|
694
|
-
onchange_modal
|
|
703
|
+
onchange_modal(index) {
|
|
695
704
|
this.disableModalButton()
|
|
696
705
|
this.$dispatch('onchange_modal', this.onetomany_index, index)
|
|
697
706
|
},
|
|
698
707
|
// 监听模态框属性失去焦点
|
|
699
|
-
onblur_modal
|
|
708
|
+
onblur_modal(index) {
|
|
700
709
|
this.disableModalButton()
|
|
701
710
|
this.$dispatch('onblur_modal', this.onetomany_index, index)
|
|
702
711
|
},
|
|
703
712
|
// input输入属性值发生变化监听
|
|
704
|
-
oninput_modal
|
|
713
|
+
oninput_modal(index) {
|
|
705
714
|
this.disableModalButton()
|
|
706
715
|
this.$dispatch('oninput_modal', this.onetomany_index, index)
|
|
707
716
|
}
|
|
708
|
-
},
|
|
709
|
-
events: {
|
|
710
|
-
|
|
711
717
|
}
|
|
712
718
|
}
|
|
713
719
|
</script>
|