apply-clients 3.4.2-FuGu-16 → 3.4.2-FuGu-19

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.
@@ -6,10 +6,10 @@ var proxyMiddleware = require('http-proxy-middleware')
6
6
  var app = express()
7
7
  var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
- // var ldap = 'http://121.36.79.201:8400'
10
- // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://192.168.50.4:8400'
12
- var applyinstall = 'http://127.0.0.1:8082'
9
+ var ldap = 'http://124.70.12.19:8400'
10
+ var applyinstall = 'http://124.70.12.19:8400'
11
+ // var ldap = 'http://192.168.50.4:8400'
12
+ // var applyinstall = 'http://127.0.0.1:8082'
13
13
 
14
14
  var proxyTable = {
15
15
  '/rs/logic/getSaleInitData': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.2-FuGu-16",
3
+ "version": "3.4.2-FuGu-19",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -282,27 +282,27 @@ export default {
282
282
  })
283
283
  }
284
284
  }
285
- if (this.selectdata.f_apply_source === '微信公众号' && this.selectdata.defname === '现场勘察') {
286
- for (const item of this.selectdata.fields) {
285
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
286
+ let temp = JSON.parse(JSON.stringify(this.selectdata))
287
+
288
+ this.show_data = temp
289
+ this.$nextTick(() => {
290
+ this.showview = true
291
+ })
292
+ if (this.show_data.f_apply_source === '微信公众号' && this.show_data.defname === '现场勘察') {
293
+ for (const item of this.show_data.fields) {
287
294
  if (item.label==='预约地址' || item.label==='地址类型' || item.label==='片区' || item.label==='区/县' || item.label==='街道' || item.label==='小区') {
288
295
  item.hidden = false
289
296
  item.required = true
290
297
  }
291
- if (item.label==='区/县' && item.value){
292
- this.pcdChange
298
+ if (item.label==='区/县' && item.value !== null && item.value !==''){
299
+ this.pcdChange()
293
300
  }
294
- if (item.label==='街道' && item.value){
295
- this.streetChange
301
+ if (item.label==='街道' && item.value !== null && item.value !==''){
302
+ this.streetChange()
296
303
  }
297
304
  }
298
305
  }
299
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
300
- let temp = JSON.parse(JSON.stringify(this.selectdata))
301
-
302
- this.show_data = temp
303
- this.$nextTick(() => {
304
- this.showview = true
305
- })
306
306
  },
307
307
  // 金额转大写
308
308
  smalltoBIG(n) {
@@ -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 = '${this.$login.f.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 = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
648
+ }
649
+ if (f_address_type === '民用乡镇') {
650
+ data.condition = `f_filialeid = '${this.$login.f.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 = {
@@ -261,27 +261,27 @@ export default {
261
261
  }
262
262
  }
263
263
 
264
- if (this.selectdata.f_apply_source === '微信公众号' && this.selectdata.defname === '现场勘察') {
265
- for (const item of this.selectdata.fields) {
264
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
265
+ let temp = JSON.parse(JSON.stringify(this.selectdata))
266
+
267
+ this.show_data = temp
268
+ this.$nextTick(() => {
269
+ this.showview = true
270
+ })
271
+ if (this.show_data.f_apply_source === '微信公众号' && this.show_data.defname === '现场勘察') {
272
+ for (const item of this.show_data.fields) {
266
273
  if (item.label==='预约地址' || item.label==='地址类型' || item.label==='片区' || item.label==='区/县' || item.label==='街道' || item.label==='小区') {
267
274
  item.hidden = false
268
275
  item.required = true
269
276
  }
270
- if (item.label==='区/县' && item.value){
271
- this.pcdChange
277
+ if (item.label==='区/县' && item.value !== null && item.value !==''){
278
+ this.pcdChange()
272
279
  }
273
- if (item.label==='街道' && item.value){
274
- this.streetChange
280
+ if (item.label==='街道' && item.value !== null && item.value !==''){
281
+ this.streetChange()
275
282
  }
276
283
  }
277
284
  }
278
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
279
- let temp = JSON.parse(JSON.stringify(this.selectdata))
280
-
281
- this.show_data = temp
282
- this.$nextTick(() => {
283
- this.showview = true
284
- })
285
285
  },
286
286
  // 金额转大写
287
287
  smalltoBIG(n) {
@@ -615,7 +615,12 @@ export default {
615
615
  }))
616
616
  },
617
617
  async pcdChange () {
618
- if (isEmpty(this.show_data.f_pcd)) {
618
+
619
+ if (isEmpty(this.show_data)) {
620
+ if (!isEmpty(this.selectdata.f_pcd)) {
621
+ this.show_data.f_pcd = this.selectdata.f_pcd
622
+ }
623
+ } if (isEmpty(this.show_data.f_pcd)) {
619
624
  return
620
625
  }
621
626