apply-clients 3.1.53 → 3.1.54

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.1.53",
3
+ "version": "3.1.54",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -684,9 +684,8 @@
684
684
  },
685
685
  // 根据小区名称获取合同编号
686
686
  async getContractNumber() {
687
- console.log("进来了没有1")
688
687
  if (this.selectdata.defname == '申请登记') {
689
-
688
+ console.log("获取合同编号")
690
689
  for (let i = 0; i < this.show_data.fields.length; i++) {
691
690
  // console.log("进来了没有2")
692
691
  // console.log("选择框的名称:" + this.show_data.fields[i].label + "---小区名称的长度:" + this.show_data.fields[i].value.length)
@@ -874,9 +873,111 @@
874
873
 
875
874
  this.$dispatch('selfsearch')
876
875
 
876
+ },
877
+ // 获取片区
878
+ async getPcd () {
879
+ let data = {
880
+ tablename: 't_pcd',
881
+ condition: `f_filialeid = '${this.$login.f.orgid}'`
882
+ }
883
+ let http = new HttpResetClass()
884
+ let res = await http.load(
885
+ 'POST',
886
+ `rs/sql/applysingleTable`,
887
+ {data: data},
888
+ {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
889
+ )
890
+
891
+ let pcd = res.data.map(item => {
892
+ return {
893
+ label: item.f_pcd,
894
+ value: item.f_pcd
895
+ }
896
+ })
897
+ for (const item of this.show_data.fields) {
898
+ if (item.label === '片区') {
899
+ item.options = pcd
900
+ }
901
+ }
902
+ },
903
+ // 获取街道
904
+ async getStreet (){
905
+ let http = new HttpResetClass()
906
+ let condition = "f_filialeid = " + this.$login.f.orgid
907
+ let res = await http.load('POST','rs/logic/apply_queryArea',{data:{condition:condition}}, {resolveMsg: null, rejectMsg: null})
908
+ let street = res.data.queryStreet.map(item=>{
909
+ return {
910
+ label: item.f_street,
911
+ value: item.f_street
912
+ }
913
+ })
914
+ for (const item of this.show_data.fields) {
915
+ if (item.label === '街道') {
916
+ item.options = street
917
+ }
918
+ }
877
919
  }
878
920
  },
879
921
  events: {
922
+ async 'updateArea' (index) {
923
+ if (this.show_data.fields[index].value === '新小区') {
924
+ console.log("测试小区",index)
925
+ for (const item of this.show_data.fields) {
926
+ if (item.label === '小区') {
927
+ item.value = ''
928
+ item.hidden = true
929
+ }
930
+ if (item.label === '小区名称') {
931
+ item.value = ''
932
+ item.hidden = false
933
+ }
934
+ }
935
+ } else {
936
+ for (const item of this.show_data.fields) {
937
+ if (item.label === '小区名称') {
938
+ item.value = ''
939
+ item.hidden = true
940
+ }
941
+ if (item.label === '小区') {
942
+ item.value = ''
943
+ item.hidden = false
944
+ }
945
+ }
946
+ }
947
+ },
948
+ 'confirmBuildFiles'(index){
949
+ if (this.show_data.fields[index].value === '否') {
950
+ for (const item of this.show_data.buttons){
951
+ if (item.button_name === '提交') {
952
+ item.disabled = true
953
+ }
954
+ }
955
+ }
956
+ },
957
+ 'buildArea'(){
958
+ if(this.show_data.f_area_type === '新小区'){
959
+ // this.getPcd()
960
+ this.getStreet()
961
+ for (const item of this.show_data.fields) {
962
+ if (item.label === '县/区') {
963
+ item.required = true
964
+ item.hidden = false
965
+ }
966
+ if (item.label === '街道') {
967
+ item.required = true
968
+ item.hidden = false
969
+ }
970
+ if (item.label === '片区') {
971
+ item.required = true
972
+ item.hidden = false
973
+ }
974
+ if (item.label === '小区名称') {
975
+ item.required = true
976
+ item.hidden = false
977
+ }
978
+ }
979
+ }
980
+ },
880
981
  test(i, j){
881
982
  console.log('删除')
882
983
  console.log(i + '-----' +j)
@@ -981,6 +1082,7 @@
981
1082
  this.$refs.service_show.data.fields[index].label === '县/区' ||
982
1083
  this.$refs.service_show.data.fields[index].label === '街道' ||
983
1084
  this.$refs.service_show.data.fields[index].label === '小区' ||
1085
+ this.$refs.service_show.data.fields[index].label === '小区名称' ||
984
1086
  this.$refs.service_show.data.fields[index].label === '楼号' ||
985
1087
  this.$refs.service_show.data.fields[index].label === '单元号' ||
986
1088
  this.$refs.service_show.data.fields[index].label === '楼层' ||
@@ -998,7 +1100,7 @@
998
1100
  if (this.$refs.service_show.data.fields[i].label === '街道' && this.$refs.service_show.data.fields[i].value) {
999
1101
  address += this.$refs.service_show.data.fields[i].value
1000
1102
  }
1001
- if (this.$refs.service_show.data.fields[i].label === '小区' && this.$refs.service_show.data.fields[i].value) {
1103
+ if ((this.$refs.service_show.data.fields[i].label === '小区名称' || this.$refs.service_show.data.fields[i].label === '小区') && this.$refs.service_show.data.fields[i].value) {
1002
1104
  address += this.$refs.service_show.data.fields[i].value
1003
1105
  }
1004
1106
  if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
@@ -1497,10 +1497,14 @@
1497
1497
  this.load();
1498
1498
  this.closeFile();
1499
1499
  let mm = '';
1500
- for(var i=0;i<res.data.msg.length;i++){
1500
+ for(let i = 0; i < res.data.msg.length; i++){
1501
1501
  mm+= `${res.data.msg[i].msg}`
1502
1502
  }
1503
- let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm}`
1503
+ let worry = '';
1504
+ for(let j = 0; j < res.data.worry.length; j++){
1505
+ worry += `${res.data.worry[j].msg}`
1506
+ }
1507
+ let msg = `共导入${res.data.alllength}条,失败${res.data.errorlen}条,失败信息:${mm},提醒:${worry}`
1504
1508
  if (res.data.code == 500) {
1505
1509
  this.iswork=false;
1506
1510
  msg = res.data.msg
@@ -366,6 +366,9 @@
366
366
  created () {
367
367
  // 初始化数据
368
368
  this.initializtion()
369
+ if (this.data.readyEvent) {
370
+ this.$dispatch(this.data.readyEvent)
371
+ }
369
372
  },
370
373
  methods: {
371
374
  // 按钮模态框确定
@@ -483,6 +486,10 @@
483
486
  check (index) {
484
487
  // 是否禁用按钮
485
488
  this.disableButton()
489
+ if (this.data.fields[index].onchange) {
490
+ console.log("当前onchange",this.data.fields[index].onchange)
491
+ this.$dispatch(this.data.fields[index].onchange, index)
492
+ }
486
493
 
487
494
  this.$dispatch('check', index)
488
495
  // 如果有错误信息提示走错误信息判断处理