apply-clients 3.4.2-FuGu-17 → 3.4.2-FuGu-20

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.2-FuGu-17",
3
+ "version": "3.4.2-FuGu-20",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -478,13 +478,11 @@ export default {
478
478
  }
479
479
  }))
480
480
  },
481
- async 'streetChange' (index) {
481
+ async streetChange () {
482
482
  if (isEmpty(this.show_data.f_street)) {
483
483
  return
484
484
  }
485
485
 
486
- this.setLabelValue('小区', null)
487
-
488
486
  let data = {
489
487
  tablename: 't_area',
490
488
  condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
@@ -504,31 +502,6 @@ export default {
504
502
  }
505
503
  }))
506
504
  },
507
- // 搜索小区
508
- async 'searchArea' (area, index) {
509
- let data = {
510
- tablename: 't_area',
511
- condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
512
- }
513
- let http = new HttpResetClass()
514
- let res = await http.load(
515
- 'POST',
516
- `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
517
- {data: data},
518
- {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
519
- )
520
-
521
- if (res.data.length === 0) {
522
- return
523
- }
524
-
525
- this.setLabelOptions('小区', res.data.map(item => {
526
- return {
527
- label: item.f_residential_area,
528
- value: item.f_residential_area
529
- }
530
- }))
531
- },
532
505
  // 缴费前置
533
506
  chargeBefore () {
534
507
  if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
@@ -653,6 +626,96 @@ export default {
653
626
  }
654
627
  }
655
628
  },
629
+ // 区县失去焦点
630
+ async 'pcdChange' (index) {
631
+ if (isEmpty(this.show_data.f_pcd)) {
632
+ return
633
+ }
634
+
635
+ this.setLabelValue('街道', null)
636
+ this.setLabelValue('小区', null)
637
+
638
+
639
+
640
+ let data = {
641
+ tablename: 't_street',
642
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
643
+ }
644
+ let f_address_type = this.getLableValue('地址类型')
645
+
646
+ if (f_address_type === '民用市区') {
647
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
648
+ }
649
+ if (f_address_type === '民用乡镇') {
650
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
651
+ }
652
+
653
+ let http = new HttpResetClass()
654
+ let res = await http.load(
655
+ 'POST',
656
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
657
+ {data: data},
658
+ {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
659
+ )
660
+
661
+ this.setLabelOptions('街道', res.data.map(item => {
662
+ return {
663
+ label: item.f_street,
664
+ value: item.f_street
665
+ }
666
+ }))
667
+ },
668
+ async 'streetChange' (index) {
669
+ if (isEmpty(this.show_data.f_street)) {
670
+ return
671
+ }
672
+
673
+ this.setLabelValue('小区', null)
674
+
675
+ let data = {
676
+ tablename: 't_area',
677
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
678
+ }
679
+ let http = new HttpResetClass()
680
+ let res = await http.load(
681
+ 'POST',
682
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
683
+ {data: data},
684
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
685
+ )
686
+
687
+ this.setLabelOptions('小区', res.data.map(item => {
688
+ return {
689
+ label: item.f_residential_area,
690
+ value: item.f_residential_area
691
+ }
692
+ }))
693
+ },
694
+ // 搜索小区
695
+ async 'searchArea' (area, index) {
696
+ let data = {
697
+ tablename: 't_area',
698
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
699
+ }
700
+ let http = new HttpResetClass()
701
+ let res = await http.load(
702
+ 'POST',
703
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
704
+ {data: data},
705
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
706
+ )
707
+
708
+ if (res.data.length === 0) {
709
+ return
710
+ }
711
+
712
+ this.setLabelOptions('小区', res.data.map(item => {
713
+ return {
714
+ label: item.f_residential_area,
715
+ value: item.f_residential_area
716
+ }
717
+ }))
718
+ },
656
719
  // 打开模态框获取材料
657
720
  async 'getMaterialName' (index) {
658
721
  let data = {