apply-clients 3.3.18 → 3.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.18",
3
+ "version": "3.3.19",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -33,7 +33,7 @@
33
33
  width: 150px;
34
34
  height: 150px;
35
35
  /*opacity: 0.5;*/
36
- /*z-index: -1;*/
36
+ z-index: -1;
37
37
  }
38
38
  </style>
39
39
  <div id="print">
@@ -52,7 +52,7 @@
52
52
  </tr>
53
53
  <tr>
54
54
  <td style="width: 17%">用户姓名</td>
55
- <td colspan="2" style="width: 33%">{{ charge.f_user_name }}</td>
55
+ <td colspan="2" style="width: 33%">{{ selectdata.f_user_name }}</td>
56
56
  <td style="width: 17%">用户编号</td>
57
57
  <td colspan="2" style="width: 33%">{{ selectdata.f_userinfo_code }}</td>
58
58
  </tr>
@@ -88,7 +88,7 @@
88
88
  </td>
89
89
  </tr>
90
90
  </table>
91
- <img class="seal" border="0" :src="src" transcolor="#FFFFFF" alt="">
91
+ <img class="seal" border="0" :src="src" alt="">
92
92
  </div>
93
93
 
94
94
  <print-element v-show="false" v-ref:print id='print' styleid='style'
@@ -328,6 +328,34 @@ export default {
328
328
  }
329
329
  }
330
330
  },
331
+ showLabels(...labels) {
332
+ for (const item of this.show_data.fields) {
333
+ if (labels.includes(item.label)) {
334
+ item.hidden = false
335
+ }
336
+ }
337
+ },
338
+ hideLabels(...labels) {
339
+ for (const item of this.show_data.fields) {
340
+ if (labels.includes(item.label)) {
341
+ item.hidden = true
342
+ }
343
+ }
344
+ },
345
+ requiredLabels(...labels) {
346
+ for (const item of this.show_data.fields) {
347
+ if (labels.includes(item.label)) {
348
+ item.required = true
349
+ }
350
+ }
351
+ },
352
+ electiveLabels(...labels) {
353
+ for (const item of this.show_data.fields) {
354
+ if (labels.includes(item.label)) {
355
+ item.required = false
356
+ }
357
+ }
358
+ },
331
359
  async checkDuplicate(index) {
332
360
  let http = new HttpResetClass()
333
361
  let data = {
@@ -465,6 +493,65 @@ export default {
465
493
  value: item
466
494
  }
467
495
  })
496
+ },
497
+ addressInitialization () {
498
+ this.$getConfig(this, 'UserAddress')
499
+
500
+ let f_address_type = this.show_data.f_address_type
501
+
502
+ for (const item of this.show_data.fields) {
503
+ if (f_address_type === '民用市区') {
504
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
505
+ item.hidden = false
506
+ item.required = true
507
+ }
508
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
509
+ item.hidden = false
510
+ item.required = false
511
+ }
512
+ if (item.label === '地址') {
513
+ item.readonly = true
514
+ }
515
+ }
516
+ if (f_address_type === '民用乡镇') {
517
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
518
+ item.hidden = false
519
+ item.required = true
520
+ }
521
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
522
+ item.hidden = false
523
+ item.required = false
524
+ }
525
+ if (item.label === '楼层') {
526
+ item.hidden = true
527
+ item.required = false
528
+ }
529
+ if (item.label === '地址') {
530
+ item.readonly = true
531
+ }
532
+ }
533
+ if (f_address_type === '特殊地址') {
534
+ if (item.label === '区/县' || item.label === '街道/乡镇') {
535
+ item.hidden = false
536
+ item.required = true
537
+ }
538
+ if (item.label === '集收单位') {
539
+ item.hidden = false
540
+ item.required = false
541
+ }
542
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
543
+ item.hidden = true
544
+ item.required = false
545
+ }
546
+ if (item.label === '地址') {
547
+ item.readonly = false
548
+ }
549
+ }
550
+
551
+ if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
552
+ item.hidden = true
553
+ }
554
+ }
468
555
  }
469
556
  },
470
557
  events: {
@@ -844,65 +931,21 @@ export default {
844
931
  }
845
932
  }
846
933
  },
934
+ // 团购转散户初始化
935
+ 'apply2ReadyEvent' () {
936
+ if (this.show_data.f_apply_source === '线下发起') {
937
+ this.addressInitialization()
938
+ this.hideLabels('用户编号')
939
+ this.electiveLabels('用户编号')
940
+ }
941
+ if (this.show_data.f_apply_source === '自动发起') {
942
+ this.hideLabels('片区', '地址类型')
943
+ this.electiveLabels('片区', '地址类型',)
944
+ }
945
+ },
847
946
  // 申请节点初始化
848
947
  'applyReadyEvent' () {
849
- this.$getConfig(this, 'UserAddress')
850
-
851
- let f_address_type = this.show_data.f_address_type
852
-
853
- for (const item of this.show_data.fields) {
854
- if (f_address_type === '民用市区') {
855
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
856
- item.hidden = false
857
- item.required = true
858
- }
859
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
860
- item.hidden = false
861
- item.required = false
862
- }
863
- if (item.label === '地址') {
864
- item.readonly = true
865
- }
866
- }
867
- if (f_address_type === '民用乡镇') {
868
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
869
- item.hidden = false
870
- item.required = true
871
- }
872
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
873
- item.hidden = false
874
- item.required = false
875
- }
876
- if (item.label === '楼层') {
877
- item.hidden = true
878
- item.required = false
879
- }
880
- if (item.label === '地址') {
881
- item.readonly = true
882
- }
883
- }
884
- if (f_address_type === '特殊地址') {
885
- if (item.label === '区/县' || item.label === '街道/乡镇') {
886
- item.hidden = false
887
- item.required = true
888
- }
889
- if (item.label === '集收单位') {
890
- item.hidden = false
891
- item.required = false
892
- }
893
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
894
- item.hidden = true
895
- item.required = false
896
- }
897
- if (item.label === '地址') {
898
- item.readonly = false
899
- }
900
- }
901
-
902
- if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
903
- item.hidden = true
904
- }
905
- }
948
+ this.addressInitialization()
906
949
  },
907
950
  // ===========================================
908
951
  async 'button'() {
@@ -932,7 +975,7 @@ export default {
932
975
  },
933
976
  // 失去焦点出触发事件
934
977
  'onchange' (index) {
935
- if (this.show_data.defname === '报装申请') {
978
+ if (this.show_data.defname === '报装申请' || this.show_data.defname === '信息确认') {
936
979
  if (
937
980
  this.show_data.fields[index].label === '区/县' ||
938
981
  this.show_data.fields[index].label === '街道/乡镇' ||