apply-clients 4.1.66 → 4.1.70

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.
@@ -1,5 +1,24 @@
1
1
  <template>
2
2
  <div class="col-sm-12" style="margin: 20px 0px;">
3
+ <div class="auto" style="overflow:auto;margin: 15px 0 0 15px;">
4
+ <div class="form-inline auto col-sm-12">
5
+ <div class="row col-sm-12">
6
+ <div class="form-group col-sm-3">
7
+ <label class=" control-label" >客户姓名</label>
8
+ <input type="text" class="input_search" placeholder='客户姓名' v-model="query.f_user_name">
9
+ </div>
10
+ <div class="form-group col-sm-3">
11
+ <label class=" control-label" >客户电话</label>
12
+ <input type="text" class="input_search" placeholder='客户电话' v-model="query.f_user_phone">
13
+ </div>
14
+ <div class="form-group col-sm-5" >
15
+ <!-- <button class="button_search button_spacing" @click="search()">查询</button>-->
16
+ <button type="button" class="btn btn-default" @click="search()">查询</button>
17
+ <button type="button" class="btn btn-default" @click="clear()">清空</button>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </div>
3
22
  <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
4
23
  <template partial='head'>
5
24
  <tr>
@@ -10,7 +29,7 @@
10
29
  <th class="textNoLineBreak">街道</th>
11
30
  <th class="textNoLineBreak">小区</th>
12
31
  <th class="textNoLineBreak">详细地址</th>
13
- <th class="textNoLineBreak">地址状态</th>
32
+ <th class="textNoLineBreak">用户状态</th>
14
33
  <th class="textNoLineBreak">客户编号</th>
15
34
  <th class="textNoLineBreak">用户姓名</th>
16
35
  <th class="textNoLineBreak">电话</th>
@@ -18,24 +37,28 @@
18
37
  <th class="textNoLineBreak">证件号码</th>
19
38
  <th class="textNoLineBreak">时间</th>
20
39
  <th v-if="$parent.$parent.showremark" class="textNoLineBreak">退回理由</th>
40
+ <th v-if="$parent.$parent.signReason" class="textNoLineBreak">标记原因</th>
21
41
  <th class="textNoLineBreak">
22
42
  <button v-if="$parent.$parent.showback"type="button" class="btn btn-info head-but"
23
43
  @click="$parent.$parent.unpass()">退回</button>
44
+ <button v-if="$parent.$parent.void"type="button" class="btn btn-info head-but"
45
+ @click="$parent.$parent.voidFunction()">标记</button>
24
46
  <button v-if="$parent.$parent.showcover"type="button" class="btn btn-info head-but"
25
47
  @click="$parent.$parent.pass()">恢复</button>
26
- <button v-if="$parent.$parent.showfiling"type="button" class="btn btn-info head-but"
27
- @click="$parent.$parent.filing()">建档不合格</button>
48
+ <!-- <button v-if="$parent.$parent.showfiling"type="button" class="btn btn-info head-but"-->
49
+ <!-- @click="$parent.$parent.filing()">建档不合格</button>-->
28
50
  <button v-if="$parent.$parent.showhina" type="button" class="btn btn-info head-but"
29
51
  :disabled="$parent.$parent.mark === 1"
30
52
  @click="$parent.$parent.showFileModal()">导入</button>
31
53
  <a v-if="$parent.$parent.showhina" type="button" class="btn btn-info head-but"
32
- href="/apply/download/excel/批量导入.xlsx" download>模板下载</a>
33
- <export-excel :data="$parent.$parent.getCondition"
34
- :field="$parent.$parent.getfield"
35
- sqlurl="rs/logic/applyExportfile"
36
- sql-name="getAddresAndUserinfoAndUserfiles"
37
- template-name='信息导出'
38
- :choose-col="true"></export-excel>
54
+ href="/apply/download/excel/中盛地址批量导入.xlsx" download>模板下载</a>
55
+ <!-- <export-excel :data="$parent.$parent.getCondition"-->
56
+ <!-- :field="$parent.$parent.getfield"-->
57
+ <!-- sqlurl="rs/logic/applyExportfile"-->
58
+ <!-- sql-name="getAddressAanUserinfo"-->
59
+ <!-- template-name='花名册导出'-->
60
+ <!-- btn-name="花名册导出"-->
61
+ <!-- :choose-col="true"></export-excel>-->
39
62
 
40
63
  </th>
41
64
  </tr>
@@ -67,7 +90,7 @@
67
90
  <nobr>{{row.f_address}}</nobr>
68
91
  </td>
69
92
  <td style="text-align: center;" @click="$parent.$parent.selectOne(row)">
70
- <nobr>{{row.f_address_state}}</nobr>
93
+ <nobr>{{row.f_user_state}}</nobr>
71
94
  </td>
72
95
  <td style="text-align: center;" @click="$parent.$parent.selectOne(row)">
73
96
  <nobr>{{row.f_userinfo_code}}</nobr>
@@ -92,10 +115,13 @@
92
115
 
93
116
  <button class="button_new button_spacing" @click.prevent="$parent.$parent.backremark(row)">退回原因</button>
94
117
  </td>
118
+ <td v-if="$parent.$parent.signReason" style="text-align: center;">
119
+ <button class="button_new button_spacing" @click.prevent="$parent.$parent.signremark(row)">标记原因</button>
120
+ </td>
95
121
  <td style="text-align: center;">
96
122
  <button v-if="$parent.$parent.showclean" class="button_new button_spacing" style="width: max-content" @click.prevent="$parent.$parent.cleanupload(row)">删除</button>
97
123
  <button v-if="$parent.$parent.showrecover" class="button_new button_spacing" style="width: max-content" @click.prevent="$parent.$parent.recoverupload(row)">恢复</button>
98
- <button v-if="$parent.$parent.showfire" class="button_new button_spacing" style="width: max-content" @click.prevent="$parent.$parent.fire(row)">点火</button>
124
+ <!-- <button v-if="$parent.$parent.showfire" class="button_new button_spacing" style="width: max-content" @click.prevent="$parent.$parent.fire(row)">点火</button>-->
99
125
  </td>
100
126
  </tr>
101
127
  </template>
@@ -123,6 +149,29 @@
123
149
  <button type="button" class="btn btn-default" @click='cancel()'>取消</button>
124
150
  </footer>
125
151
  </modal>
152
+ <!-- 标记原因 -->
153
+ <modal :show.sync="signReasonPage" v-ref:modal large backdrop="false">
154
+ <header slot="modal-header" class="modal-header">
155
+ <h3 style="color:black" class="modal-title">标记原因</h3>
156
+ </header>
157
+ <article slot="modal-body" class="modal-body">
158
+ <div class="auto">
159
+ <form class="form-horizontal">
160
+ <div class="row">
161
+ <div class="col-sm-12 form-group form-input-group" >
162
+ <label class="control-label">原因</label>
163
+ <textarea class="form-control" v-model=f_comments placeholder="请添加原因" :disabled="!signReasonPage"></textarea>
164
+ </div>
165
+ </div>
166
+ </form>
167
+ </div>
168
+ </article>
169
+ <footer slot="modal-footer" class="modal-footer">
170
+ <button type="button" class="btn btn-success" @click='confirmPage()'>确定</button>
171
+ <button type="button" class="btn btn-default" @click='cancelPage()'>取消</button>
172
+ </footer>
173
+ </modal>
174
+
126
175
  <modal v-if="showUserFile" :show.sync="showUserFile" v-ref:modal :backdrop="false" title="点火信息">
127
176
  <header slot="modal-header" class="modal-header">
128
177
  <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
@@ -641,18 +690,22 @@ export default {
641
690
  model: {
642
691
  data: null
643
692
  },
693
+ query: {},//查询数据
644
694
  selectedData:[],
645
695
  showselect:false, //checkbox按钮
646
696
  showclean:false, //删除
647
697
  showrecover:false, //恢复
648
698
  showUserFile:false, //点火信息表
649
699
  showback:false,//退回
700
+ void:false,//作废
650
701
  showfiling:false,//退回
651
702
  showcover:false,//恢复退回数据
652
703
  showbackremark:false,//退回界面
704
+ signReasonPage: false,//标记原因界面
653
705
  f_comments:'',
654
706
  showhina:true, //导入
655
707
  showremark:false,
708
+ signReason: false,//标记原因
656
709
  showfire:false, //点火按钮
657
710
  userinfo:{},
658
711
  showreason:false,
@@ -660,22 +713,31 @@ export default {
660
713
  all:[],
661
714
  remark:'',
662
715
  getfield: {
663
- 'f_apply_num': '报建编号',
664
- 'f_contract_number': '合同编号',
665
- 'f_apply_type': '报建类型',
666
- 'f_charge_money': '收费金额',
667
- 'f_payment_method': '付款方式',
668
- 'f_charge_collectors': '收费人员',
669
- 'f_charge_date': '收费日期',
670
- 'f_charging_status': '状态',
671
- 'f_address': '地址'
672
- }
716
+ "f_pcd": "省市区",
717
+ "f_street": "街道",
718
+ "f_slice_area": "片区/管理站",
719
+ "f_residential_area": "小区",
720
+ "f_special": "地址类型",
721
+ "f_building": "楼号",
722
+ "f_unit": "单元号",
723
+ "f_floor": "楼层",
724
+ "f_room": "门牌号",
725
+ "f_address": "地址",
726
+ "f_user_name": "用户姓名/单位名称",
727
+ "f_user_phone": "电话",
728
+ "f_credentials": "证件类型",
729
+ "f_idnumber": "证件号码",
730
+ "f_people_num": "人口数"
731
+ },
732
+ condition: "1 = 1"
673
733
  }
674
734
  },
675
735
  ready () {
676
- if(this.selectdata.defname==='竣工验收'||this.selectdata.defname==='营业厅建档'||this.selectdata.f_apply_type==='验收退回'&&this.selectdata.f_apply_type!=='工商户报建')
736
+ if(this.selectdata.f_apply_type!=='工商户报建')
677
737
  {
678
738
  this.showselect=true
739
+ this.void = true
740
+ this.signReason = true
679
741
  }
680
742
  if(this.selectdata.defname==='报建登记')
681
743
  {
@@ -718,6 +780,24 @@ export default {
718
780
  console.log(this.model)
719
781
  console.log(this.selectedData)
720
782
  },
783
+ voidFunction() {
784
+ let data = {
785
+ userData: this.selectedData,
786
+ userType: "标记"
787
+ }
788
+ this.$showMessage('确认标记吗?', ['confirm', 'cancel']).then(
789
+ (response) => {
790
+ if (response === 'confirm') {
791
+ this.$resetpost('rs/logic/updateUserState', {data: data}, {resolveMsg: '标记成功', rejectMsg: '标记失败'})
792
+ .then((res) => {
793
+ // this.$showMessage("作废成功!")
794
+ this.search()
795
+ })
796
+ } else if (response === 'cancel') {
797
+ this.$dispatch('cancel')
798
+ }
799
+ })
800
+ },
721
801
  async unpass() {
722
802
  console.log("1342244", this.selectedData[0].f_user_state)
723
803
  for (let i = 0; i < this.selectedData.length; i++) {
@@ -726,7 +806,7 @@ export default {
726
806
  }
727
807
  let http = new HttpResetClass()
728
808
  http.load('POST', 'rs/logic/batchcheck', {data:data}, {resolveMsg: null, rejectMsg: null})
729
- }
809
+ }
730
810
 
731
811
  console.log("13ef44", this.selectdata.f_process_id)
732
812
  let http = new HttpResetClass()
@@ -742,7 +822,7 @@ export default {
742
822
  http.load('POST', 'rs/logic/recoverson', {process:son.data[0].f_process_id}, {resolveMsg: null, rejectMsg: null})
743
823
  this.$dispatch('search')
744
824
  }
745
- else {
825
+ else {
746
826
  let data = {
747
827
  start_activity: this.$workflow_vue.start_activity,
748
828
  model: this.selectdata,
@@ -788,12 +868,14 @@ else {
788
868
  //查父流程是否关闭
789
869
  for(let i=0;i<resparent.data.length;i++) {
790
870
  if (resparent.data[i].defname === '竣工验收' && resparent.data[i].state === '结束')
791
- await http.load('POST', 'rs/logic/parentprocess', {data: resparent.data[i].processid}, {
871
+ // let http2 = new HttpResetClass()
872
+ await http.load('POST', 'rs/logic/parentprocess', {data: {processid: resparent.data[i].processid, defname: resparent.data[i].defname}}, {
792
873
  resolveMsg: null,
793
874
  rejectMsg: null
794
875
  })
795
876
  if (resparent.data[i].defname === '营业厅建档' && resparent.data[i].state === '结束')
796
- await http.load('POST', 'rs/logic/parentprocess', {data: resparent.data[i].processid}, {
877
+ // let http3 = new HttpResetClass()
878
+ await http.load('POST', 'rs/logic/parentprocess', {data: {processid: resparent.data[i].processid, defname: resparent.data[i].defname}}, {
797
879
  resolveMsg: null,
798
880
  rejectMsg: null
799
881
  })
@@ -890,7 +972,23 @@ else {
890
972
  }
891
973
  this.showFile = !this.showFile
892
974
  },
975
+ async clear() {
976
+ this.query = {}
977
+ this.condition = "1 = 1"
978
+ },
979
+ conditionData() {
980
+ if (this.query.f_user_name && !this.query.f_user_phone) {
981
+ this.condition = "f_user_name = '" + this.query.f_user_name + "'"
982
+ }
983
+ if (this.query.f_user_phone && !this.query.f_user_name) {
984
+ this.condition = "f_user_phone = '" + this.query.f_user_phone + "'"
985
+ }
986
+ if (this.query.f_user_name && this.query.f_user_phone) {
987
+ this.condition = "f_user_name = '" + this.query.f_user_name + "'" + " and f_user_phone = '" + this.query.f_user_phone + "'"
988
+ }
989
+ },
893
990
  async search () {
991
+ this.conditionData()
894
992
  console.log("selectdata.f2")
895
993
  console.log(this.selectdata)
896
994
  if(this.selectdata.showDefnames){
@@ -900,7 +998,7 @@ else {
900
998
  this.showclean=false
901
999
  let http = new HttpResetClass()
902
1000
  let data = {
903
- condition: " 1=1",
1001
+ condition: this.condition,
904
1002
  f_filialeid: this.$login.f.orgid,
905
1003
  f_process_id: this.selectdata.f_process_id,
906
1004
  state:'销户'
@@ -916,7 +1014,7 @@ else {
916
1014
  {
917
1015
  let http = new HttpResetClass()
918
1016
  let data = {
919
- condition: " 1=1",
1017
+ condition: this.condition,
920
1018
  f_filialeid: this.$login.f.orgid,
921
1019
  f_process_id: this.selectdata.f_process_id,
922
1020
  }
@@ -950,6 +1048,11 @@ else {
950
1048
  }
951
1049
  }
952
1050
  },
1051
+ //标记原因
1052
+ signremark(row) {
1053
+ this.signReasonPage = true
1054
+ this.remark = row
1055
+ },
953
1056
  async backremark(row){
954
1057
  this.showbackremark=true
955
1058
  this.remark=row
@@ -981,9 +1084,27 @@ else {
981
1084
  })
982
1085
  this.cancel()
983
1086
  },
1087
+ async confirmPage() {
1088
+ // 保存此备注信息
1089
+ console.log("备注信息:",this.f_comments,"用户id:",this.remark.f_userinfo_id)
1090
+ let http = new HttpResetClass()
1091
+ let data = {
1092
+ userType: "原因",
1093
+ f_comments: this.f_comments,
1094
+ f_userinfo_id: this.remark.f_userinfo_id
1095
+ }
1096
+ await http.load('POST', 'rs/logic/updateUserState', {data: data}, {
1097
+ resolveMsg: '添加成功',
1098
+ rejectMsg: '添加错误'
1099
+ })
1100
+ this.cancelPage()
1101
+ },
984
1102
  cancel() {
985
1103
  this.showbackremark = false;
986
1104
  },
1105
+ cancelPage() {
1106
+ this.signReasonPage = false
1107
+ },
987
1108
  // 关闭文件上传对话框
988
1109
  closeFile() {
989
1110
  this.showFile = false
@@ -1086,12 +1207,12 @@ else {
1086
1207
 
1087
1208
  },
1088
1209
  getCondition () {
1089
- return {
1090
- condition: this.$refs.cp.$refs.cri.condition,
1091
- data: {
1092
- orgid: this.$login.f.orgid
1093
- }
1210
+ let data = {
1211
+ condition: " 1=1",
1212
+ f_filialeid: this.$login.f.orgid,
1213
+ f_process_id: this.selectdata.f_process_id,
1094
1214
  }
1215
+ return data
1095
1216
  }
1096
1217
  },
1097
1218
  watch: {