apply-clients 3.3.17 → 3.3.21

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.17",
3
+ "version": "3.3.21",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -186,7 +186,7 @@
186
186
  </article>
187
187
  <footer slot="modal-footer" class="modal-footer">
188
188
  <!-- 去除一户多表 -->
189
- <button type="button" class="btn btn-primary" @click="addUserFile">添加表具</button>
189
+ <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
190
190
  <button type="button" class="btn btn-primary" @click="saveUserFile">确认</button>
191
191
  </footer>
192
192
  </modal>
@@ -238,7 +238,7 @@
238
238
  <footer slot="modal-footer" class="modal-footer">
239
239
  <template v-if="mark !== 1">
240
240
  <!-- 去除一户多表 -->
241
- <button type="button" class="btn btn-primary" @click="addUserFile">添加表具</button>
241
+ <button type="button" class="btn btn-primary" @click="addUserFile" v-if="false">添加表具</button>
242
242
  <button type="button" class="btn btn-primary" @click="saveUserFile" :disabled="!$v.valid">确认</button>
243
243
  </template>
244
244
  </footer>
@@ -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: {
@@ -499,6 +586,7 @@ export default {
499
586
  {resolveMsg: null, rejectMsg: '公司查询失败!!!'}
500
587
  )
501
588
  this.show_data.f_dev_id = res.data[0].id
589
+ this.show_data.f_dev_code = res.data[0].f_dev_code
502
590
  this.setLabelValue('法人名称', res.data[0].f_legal_person)
503
591
  this.setLabelValue('身份证', res.data[0].f_idnumber)
504
592
  this.setLabelValue('营业执照', res.data[0].f_license_num)
@@ -844,65 +932,23 @@ export default {
844
932
  }
845
933
  }
846
934
  },
935
+ // 团购转散户初始化
936
+ 'apply2ReadyEvent' () {
937
+ if (this.show_data.f_apply_source === '线下发起') {
938
+ this.addressInitialization()
939
+ this.hideLabels('用户编号')
940
+ this.electiveLabels('用户编号')
941
+ this.showLabels('片区', '地址类型')
942
+ this.requiredLabels('片区', '地址类型')
943
+ }
944
+ if (this.show_data.f_apply_source === '自动发起') {
945
+ this.hideLabels('片区', '地址类型')
946
+ this.electiveLabels('片区', '地址类型',)
947
+ }
948
+ },
847
949
  // 申请节点初始化
848
950
  '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
- }
951
+ this.addressInitialization()
906
952
  },
907
953
  // ===========================================
908
954
  async 'button'() {
@@ -932,7 +978,7 @@ export default {
932
978
  },
933
979
  // 失去焦点出触发事件
934
980
  'onchange' (index) {
935
- if (this.show_data.defname === '报装申请') {
981
+ if (this.show_data.defname === '报装申请' || this.show_data.defname === '信息确认') {
936
982
  if (
937
983
  this.show_data.fields[index].label === '区/县' ||
938
984
  this.show_data.fields[index].label === '街道/乡镇' ||