apply-clients 3.4.2-FuGu-29 → 3.4.2-FuGu-30
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
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
<app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
|
|
6
6
|
</panel>
|
|
7
7
|
<panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
|
|
8
|
-
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true"
|
|
8
|
+
<app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true"
|
|
9
|
+
:istype="true"></app-take-pic>
|
|
9
10
|
</panel>
|
|
10
11
|
</accordion>
|
|
11
12
|
</div>
|
|
@@ -34,7 +35,7 @@ Date.prototype.Format = function (fmt) {
|
|
|
34
35
|
export default {
|
|
35
36
|
title: '报建流程业务控制层',
|
|
36
37
|
props: ['selectdata'],
|
|
37
|
-
data
|
|
38
|
+
data() {
|
|
38
39
|
return {
|
|
39
40
|
json_datas: null,
|
|
40
41
|
data: null,
|
|
@@ -43,7 +44,7 @@ export default {
|
|
|
43
44
|
config: {}
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
|
-
ready
|
|
47
|
+
ready() {
|
|
47
48
|
this.refurbish()
|
|
48
49
|
},
|
|
49
50
|
methods: {
|
|
@@ -291,14 +292,14 @@ export default {
|
|
|
291
292
|
})
|
|
292
293
|
if (this.show_data.f_apply_source === '微信公众号' && this.show_data.defname === '现场勘察') {
|
|
293
294
|
for (const item of this.show_data.fields) {
|
|
294
|
-
if (item.label==='预约地址' || item.label==='地址类型' || item.label==='片区' || item.label==='区/县' || item.label==='街道' || item.label==='小区') {
|
|
295
|
+
if (item.label === '预约地址' || item.label === '地址类型' || item.label === '片区' || item.label === '区/县' || item.label === '街道' || item.label === '小区') {
|
|
295
296
|
item.hidden = false
|
|
296
297
|
item.required = true
|
|
297
298
|
}
|
|
298
|
-
if (item.label==='区/县' && item.value !== null && item.value !==''){
|
|
299
|
+
if (item.label === '区/县' && item.value !== null && item.value !== '') {
|
|
299
300
|
this.pcdChange()
|
|
300
301
|
}
|
|
301
|
-
if (item.label==='街道' && item.value !== null && item.value !==''){
|
|
302
|
+
if (item.label === '街道' && item.value !== null && item.value !== '') {
|
|
302
303
|
this.streetChange()
|
|
303
304
|
}
|
|
304
305
|
}
|
|
@@ -377,7 +378,7 @@ export default {
|
|
|
377
378
|
this.$showMessage(`${this.show_data.fields[index].label}已存在!!!`)
|
|
378
379
|
}
|
|
379
380
|
},
|
|
380
|
-
async breakControl
|
|
381
|
+
async breakControl() {
|
|
381
382
|
if (this.show_data.id) {
|
|
382
383
|
let data = {
|
|
383
384
|
condition: `u.id = ${this.show_data.id}`,
|
|
@@ -403,7 +404,7 @@ export default {
|
|
|
403
404
|
this.refurbish()
|
|
404
405
|
},
|
|
405
406
|
// 获取片区
|
|
406
|
-
async getSliceArea
|
|
407
|
+
async getSliceArea() {
|
|
407
408
|
let data = {
|
|
408
409
|
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
409
410
|
userid: Vue.user.id
|
|
@@ -425,7 +426,7 @@ export default {
|
|
|
425
426
|
})
|
|
426
427
|
},
|
|
427
428
|
// 获取区县
|
|
428
|
-
async getPcd
|
|
429
|
+
async getPcd() {
|
|
429
430
|
let data = {
|
|
430
431
|
tablename: 't_pcd',
|
|
431
432
|
condition: `f_filialeid = '${Vue.user.orgid}'`
|
|
@@ -445,7 +446,7 @@ export default {
|
|
|
445
446
|
}
|
|
446
447
|
})
|
|
447
448
|
},
|
|
448
|
-
async pcdChange
|
|
449
|
+
async pcdChange() {
|
|
449
450
|
if (isEmpty(this.show_data.f_pcd)) {
|
|
450
451
|
return
|
|
451
452
|
}
|
|
@@ -478,7 +479,7 @@ export default {
|
|
|
478
479
|
}
|
|
479
480
|
}))
|
|
480
481
|
},
|
|
481
|
-
async streetChange
|
|
482
|
+
async streetChange() {
|
|
482
483
|
if (isEmpty(this.show_data.f_street)) {
|
|
483
484
|
return
|
|
484
485
|
}
|
|
@@ -503,7 +504,7 @@ export default {
|
|
|
503
504
|
}))
|
|
504
505
|
},
|
|
505
506
|
// 缴费前置
|
|
506
|
-
chargeBefore
|
|
507
|
+
chargeBefore() {
|
|
507
508
|
if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
|
|
508
509
|
this.$showMessage("费用未结清!!!")
|
|
509
510
|
throw null
|
|
@@ -511,7 +512,7 @@ export default {
|
|
|
511
512
|
},
|
|
512
513
|
|
|
513
514
|
// 施工前置
|
|
514
|
-
async constructionBefore
|
|
515
|
+
async constructionBefore() {
|
|
515
516
|
let http = new HttpResetClass()
|
|
516
517
|
let data = {
|
|
517
518
|
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_table_state = '待开通'`
|
|
@@ -529,7 +530,7 @@ export default {
|
|
|
529
530
|
throw `还有${res.data[0].num}户未安装,无法提交`
|
|
530
531
|
}
|
|
531
532
|
},
|
|
532
|
-
changePipeBuild
|
|
533
|
+
changePipeBuild() {
|
|
533
534
|
if (this.selectdata.f_process_dep === '工程部') {
|
|
534
535
|
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
535
536
|
}
|
|
@@ -538,7 +539,7 @@ export default {
|
|
|
538
539
|
}
|
|
539
540
|
return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
|
|
540
541
|
},
|
|
541
|
-
async getPrice
|
|
542
|
+
async getPrice(f_price_id) {
|
|
542
543
|
console.log('=======================')
|
|
543
544
|
console.log(f_price_id)
|
|
544
545
|
|
|
@@ -565,7 +566,7 @@ export default {
|
|
|
565
566
|
})
|
|
566
567
|
},
|
|
567
568
|
// 获取施工负责人
|
|
568
|
-
async getWorker
|
|
569
|
+
async getWorker() {
|
|
569
570
|
let data = {
|
|
570
571
|
source: 'this.getParentByType($organization$).getChildByName($安装员$).getChildren()',
|
|
571
572
|
userid: Vue.user.id
|
|
@@ -587,33 +588,35 @@ export default {
|
|
|
587
588
|
})
|
|
588
589
|
},
|
|
589
590
|
async addressCheck() {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
591
|
+
if (this.show_data.defname === '申请登记' || (this.show_data.f_apply_source === '微信公众号' && this.show_data.defname === '现场勘察')) {
|
|
592
|
+
let data = {
|
|
593
|
+
tablename: 't_user_address',
|
|
594
|
+
condition: `f_address_state != '作废' and f_orgid = '${Vue.user.orgid}' and f_address = '${this.show_data.f_address}' `
|
|
595
|
+
}
|
|
596
|
+
let http = new HttpResetClass()
|
|
597
|
+
let res = await http.load(
|
|
598
|
+
'POST',
|
|
599
|
+
`${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
|
|
600
|
+
{data: data},
|
|
601
|
+
{resolveMsg: null, rejectMsg: '地址查询失败!!!'}
|
|
602
|
+
)
|
|
603
|
+
if (res.data.length > 0) {
|
|
604
|
+
this.$showMessage('地址已存在,请修改后提交!!!')
|
|
605
|
+
throw null
|
|
606
|
+
}
|
|
604
607
|
}
|
|
605
608
|
},
|
|
606
609
|
},
|
|
607
610
|
events: {
|
|
608
|
-
'breakControl'
|
|
611
|
+
'breakControl'() {
|
|
609
612
|
this.breakControl()
|
|
610
613
|
},
|
|
611
614
|
// 检查重复
|
|
612
|
-
'checkRepeat'
|
|
615
|
+
'checkRepeat'(index) {
|
|
613
616
|
this.checkDuplicate(index)
|
|
614
617
|
},
|
|
615
618
|
// 选择材料
|
|
616
|
-
async materialNameChenge
|
|
619
|
+
async materialNameChenge(index, fieldIndex) {
|
|
617
620
|
let material = this.show_data.onetomany[index].fields[fieldIndex].value
|
|
618
621
|
|
|
619
622
|
this.show_data.onetomany[index].fields.forEach(item => {
|
|
@@ -622,7 +625,7 @@ export default {
|
|
|
622
625
|
}
|
|
623
626
|
})
|
|
624
627
|
},
|
|
625
|
-
'addressTypeChange'
|
|
628
|
+
'addressTypeChange'(index) {
|
|
626
629
|
this.setLabelValue('街道', null)
|
|
627
630
|
this.setLabelValue('小区', null)
|
|
628
631
|
let f_address_type = this.show_data.fields[index].value
|
|
@@ -667,7 +670,7 @@ export default {
|
|
|
667
670
|
}
|
|
668
671
|
},
|
|
669
672
|
// 区县失去焦点
|
|
670
|
-
async 'pcdChange'
|
|
673
|
+
async 'pcdChange'(index) {
|
|
671
674
|
if (isEmpty(this.show_data.f_pcd)) {
|
|
672
675
|
return
|
|
673
676
|
}
|
|
@@ -676,7 +679,6 @@ export default {
|
|
|
676
679
|
this.setLabelValue('小区', null)
|
|
677
680
|
|
|
678
681
|
|
|
679
|
-
|
|
680
682
|
let data = {
|
|
681
683
|
tablename: 't_street',
|
|
682
684
|
condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
|
|
@@ -705,7 +707,7 @@ export default {
|
|
|
705
707
|
}
|
|
706
708
|
}))
|
|
707
709
|
},
|
|
708
|
-
async 'streetChange'
|
|
710
|
+
async 'streetChange'(index) {
|
|
709
711
|
if (isEmpty(this.show_data.f_street)) {
|
|
710
712
|
return
|
|
711
713
|
}
|
|
@@ -732,7 +734,7 @@ export default {
|
|
|
732
734
|
}))
|
|
733
735
|
},
|
|
734
736
|
// 搜索小区
|
|
735
|
-
async 'searchArea'
|
|
737
|
+
async 'searchArea'(area, index) {
|
|
736
738
|
let data = {
|
|
737
739
|
tablename: 't_area',
|
|
738
740
|
condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
|
|
@@ -757,7 +759,7 @@ export default {
|
|
|
757
759
|
}))
|
|
758
760
|
},
|
|
759
761
|
// 打开模态框获取材料
|
|
760
|
-
async 'getMaterialName'
|
|
762
|
+
async 'getMaterialName'(index) {
|
|
761
763
|
let data = {
|
|
762
764
|
condition: `1=1`
|
|
763
765
|
}
|
|
@@ -781,7 +783,7 @@ export default {
|
|
|
781
783
|
})
|
|
782
784
|
},
|
|
783
785
|
// 选择气价
|
|
784
|
-
'priceChange'
|
|
786
|
+
'priceChange'(index) {
|
|
785
787
|
if (isEmpty(this.show_data.stairPrice)) {
|
|
786
788
|
return
|
|
787
789
|
}
|
|
@@ -797,7 +799,7 @@ export default {
|
|
|
797
799
|
this.show_data.f_price_name = stairPrice.f_price_name
|
|
798
800
|
},
|
|
799
801
|
// 是否购买保险
|
|
800
|
-
isInsureChange
|
|
802
|
+
isInsureChange(index) {
|
|
801
803
|
let f_is_insure = this.getLableValue('是否购买保险')
|
|
802
804
|
for (const item of this.show_data.fields) {
|
|
803
805
|
if (f_is_insure === '是') {
|
|
@@ -817,7 +819,7 @@ export default {
|
|
|
817
819
|
}
|
|
818
820
|
},
|
|
819
821
|
// 通气点火初始化
|
|
820
|
-
async 'gasReadyEvent'
|
|
822
|
+
async 'gasReadyEvent'() {
|
|
821
823
|
if (!isEmpty(this.show_data.f_price_id)) {
|
|
822
824
|
let priceList = await this.getPrice(this.show_data.f_price_id)
|
|
823
825
|
this.setLabelValue('气价名称', priceList[0].value)
|
|
@@ -879,7 +881,7 @@ export default {
|
|
|
879
881
|
}
|
|
880
882
|
},
|
|
881
883
|
// 合同金额失去焦点
|
|
882
|
-
async 'contractMoneyChange'
|
|
884
|
+
async 'contractMoneyChange'(index) {
|
|
883
885
|
let data = {
|
|
884
886
|
operator: '+',
|
|
885
887
|
num1: this.show_data.f_contract_money || 0,
|
|
@@ -923,7 +925,7 @@ export default {
|
|
|
923
925
|
this.$dispatch('confirm')
|
|
924
926
|
},
|
|
925
927
|
// 失去焦点出触发事件
|
|
926
|
-
'onchange'
|
|
928
|
+
'onchange'(index) {
|
|
927
929
|
if (this.show_data.defname === '申请登记' || (this.show_data.defname === '现场勘察' && this.show_data.f_apply_source === '微信公众号')) {
|
|
928
930
|
if (
|
|
929
931
|
this.show_data.fields[index].label === '片区' ||
|
|
@@ -952,18 +954,21 @@ export default {
|
|
|
952
954
|
}
|
|
953
955
|
}
|
|
954
956
|
},
|
|
955
|
-
'onblur'
|
|
956
|
-
'oninput' (index) {},
|
|
957
|
-
'initializtionView' () {},
|
|
958
|
-
async 'onchangeModal' (index, fieldIndex) {
|
|
957
|
+
'onblur'(index) {
|
|
959
958
|
},
|
|
960
|
-
|
|
959
|
+
'oninput'(index) {
|
|
960
|
+
},
|
|
961
|
+
'initializtionView'() {
|
|
962
|
+
},
|
|
963
|
+
async 'onchangeModal'(index, fieldIndex) {
|
|
964
|
+
},
|
|
965
|
+
async 'onblurModal'(index, fieldIndex) {
|
|
961
966
|
|
|
962
967
|
},
|
|
963
|
-
async 'oninputModal'
|
|
968
|
+
async 'oninputModal'(index, fieldIndex) {
|
|
964
969
|
|
|
965
970
|
},
|
|
966
|
-
async 'onetomanydelete'
|
|
971
|
+
async 'onetomanydelete'(index, rowIndex) {
|
|
967
972
|
|
|
968
973
|
let http = new HttpResetClass()
|
|
969
974
|
|
|
@@ -979,7 +984,7 @@ export default {
|
|
|
979
984
|
)
|
|
980
985
|
this.breakControl()
|
|
981
986
|
},
|
|
982
|
-
async 'onetomanyupdate'
|
|
987
|
+
async 'onetomanyupdate'(index, rowIndex) {
|
|
983
988
|
let data = this.show_data.onetomany[index].rows[rowIndex]
|
|
984
989
|
|
|
985
990
|
this.show_data.onetomany[index].fields.forEach(item => {
|
|
@@ -995,9 +1000,9 @@ export default {
|
|
|
995
1000
|
)
|
|
996
1001
|
this.breakControl()
|
|
997
1002
|
},
|
|
998
|
-
async 'onetomanyadd'
|
|
1003
|
+
async 'onetomanyadd'(index) {
|
|
999
1004
|
let data = {
|
|
1000
|
-
f_process_id
|
|
1005
|
+
f_process_id: this.show_data.f_process_id,
|
|
1001
1006
|
f_operator_id: Vue.user.id,
|
|
1002
1007
|
f_operator: Vue.user.name,
|
|
1003
1008
|
f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
@@ -1017,18 +1022,17 @@ export default {
|
|
|
1017
1022
|
)
|
|
1018
1023
|
this.breakControl()
|
|
1019
1024
|
},
|
|
1020
|
-
'onbutchange'
|
|
1025
|
+
'onbutchange'(index) {
|
|
1021
1026
|
|
|
1022
1027
|
},
|
|
1023
|
-
'onbutblur'
|
|
1028
|
+
'onbutblur'(index) {
|
|
1024
1029
|
|
|
1025
1030
|
},
|
|
1026
|
-
'onbutinput'
|
|
1031
|
+
'onbutinput'(index) {
|
|
1027
1032
|
|
|
1028
1033
|
}
|
|
1029
1034
|
},
|
|
1030
|
-
watch: {
|
|
1031
|
-
}
|
|
1035
|
+
watch: {}
|
|
1032
1036
|
}
|
|
1033
1037
|
</script>
|
|
1034
1038
|
<style scoped>
|
|
@@ -473,21 +473,23 @@ export default {
|
|
|
473
473
|
}
|
|
474
474
|
},
|
|
475
475
|
async addressCheck() {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
476
|
+
if (this.show_data.defname === '申请登记' || (this.show_data.f_apply_source === '微信公众号' && this.show_data.defname === '现场勘察')) {
|
|
477
|
+
let data = {
|
|
478
|
+
tablename: 't_user_address',
|
|
479
|
+
condition: `f_address_state != '作废' and f_orgid = '${this.$login.f.orgid}' and f_address = '${this.show_data.f_address}' `
|
|
480
|
+
}
|
|
481
|
+
let http = new HttpResetClass()
|
|
482
|
+
let res = await http.load(
|
|
483
|
+
'POST',
|
|
484
|
+
`rs/sql/singleTable`,
|
|
485
|
+
{data: data},
|
|
486
|
+
{resolveMsg: null, rejectMsg: '地址查询失败!!!'}
|
|
487
|
+
)
|
|
488
|
+
console.log("当前信息查看", res.data)
|
|
489
|
+
if (res.data.length > 0) {
|
|
490
|
+
this.$showMessage('地址已存在,请修改后提交!!!')
|
|
491
|
+
throw null
|
|
492
|
+
}
|
|
491
493
|
}
|
|
492
494
|
},
|
|
493
495
|
// 施工前置
|