sale-client 3.6.21 → 3.6.23

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.
Files changed (88) hide show
  1. package/build/dev-server.js +1 -1
  2. package/package.json +2 -2
  3. package/src/components/FilesManage/FileUserFiles.vue +1014 -1014
  4. package/src/components/FilesManage/FileUserMerge.vue +203 -203
  5. package/src/components/FilesManage/UserPaperInfoTest.vue +58 -51
  6. package/src/components/FilesManageNew/FileUserFiles.vue +756 -756
  7. package/src/components/FilesManageNew/FileUserMerge.vue +202 -202
  8. package/src/components/charge/business/CardMeterCenter.vue +944 -944
  9. package/src/components/charge/business/IOTMeterCenter.vue +793 -793
  10. package/src/components/charge/business/OtherChargeNew.vue +550 -550
  11. package/src/components/charge/business/machine/MachineMeterCenter.vue +676 -676
  12. package/src/components/charge/gasloss/gasLossOperate.vue +383 -383
  13. package/src/components/newBill/CardMeterCenter.vue +902 -902
  14. package/src/components/newBill/IOTMeterCenter.vue +797 -797
  15. package/src/components/revenue/Common/EticketModal.vue +95 -90
  16. package/src/components/revenue/comprehen/Maintenance/T+MoneyDocking/moneyDocking.vue +202 -202
  17. package/src/components/revenue/comprehen/SpecialUser/BasicLiving/BasicLivingList.vue +280 -280
  18. package/src/filiale/alashan/business/CardMeterCenter.vue +897 -897
  19. package/src/filiale/ancheng/FilesManage/FileUserFiles.vue +1010 -1010
  20. package/src/filiale/ancheng/FilesManageNew/FileUserFiles.vue +763 -763
  21. package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +1019 -1019
  22. package/src/filiale/chengtou/components/OtherChargeNew.vue +549 -549
  23. package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1037 -1037
  24. package/src/filiale/gaomi/components/FilesManage/FileUserFiles.vue +934 -934
  25. package/src/filiale/gehua/CardMeterCenter.vue +898 -898
  26. package/src/filiale/gehua/FileManageNew/FileUserFiles.vue +769 -769
  27. package/src/filiale/gehua/FileUserFiles.vue +1007 -1007
  28. package/src/filiale/gehua/IOTMeterCenter.vue +791 -791
  29. package/src/filiale/gehua/MachineMeterCenter.vue +685 -685
  30. package/src/filiale/gehua/OtherChargeNew.vue +558 -558
  31. package/src/filiale/guangxi/CardMeterCenter.vue +891 -891
  32. package/src/filiale/guangxi/IOTMeterCenter.vue +774 -774
  33. package/src/filiale/guangxi/MachineMeterCenter.vue +622 -622
  34. package/src/filiale/haile/MachineMeterCenter.vue +762 -762
  35. package/src/filiale/huayin/CardMeterCenter.vue +903 -903
  36. package/src/filiale/huayin/FileUserFiles.vue +1007 -1007
  37. package/src/filiale/huayin/IOTMeterCenter.vue +796 -796
  38. package/src/filiale/huayin/MachineMeterCenter.vue +680 -680
  39. package/src/filiale/jingwei/CardMeterCenter.vue +870 -870
  40. package/src/filiale/jingwei/FileUserFiles.vue +905 -905
  41. package/src/filiale/jingwei/ShowCardSellGas.vue +903 -903
  42. package/src/filiale/kelai/CardMeterCenter.vue +934 -934
  43. package/src/filiale/kelai/FileUserFiles.vue +762 -762
  44. package/src/filiale/kelai/IOTMeterCenter.vue +833 -833
  45. package/src/filiale/kelai/MachineMeterCenter.vue +705 -705
  46. package/src/filiale/konggang/FileUserFiles.vue +990 -990
  47. package/src/filiale/liaoyuan/FileUserFiles.vue +844 -844
  48. package/src/filiale/macheng/CardMeterCenter.vue +939 -939
  49. package/src/filiale/macheng/FileUserFiles.vue +930 -930
  50. package/src/filiale/meihekou/FileUserFiles.vue +995 -995
  51. package/src/filiale/ningjin/FileUserFiles.vue +1020 -1020
  52. package/src/filiale/qianneng/OtherChargeNew.vue +544 -544
  53. package/src/filiale/qianneng/eticket/EticketModal.vue +96 -91
  54. package/src/filiale/qianneng/eticket/EticketPrint.vue +377 -376
  55. package/src/filiale/qianneng/eticket/EticketRecordList.vue +309 -289
  56. package/src/filiale/qianneng/machine/MachineMeterCenter.vue +676 -676
  57. package/src/filiale/rizhao/FileUserFiles.vue +984 -984
  58. package/src/filiale/rizhao/IOTMeterCenter.vue +795 -795
  59. package/src/filiale/rongcheng/FileUserFiles.vue +881 -881
  60. package/src/filiale/rongcheng/FilesManageNew/FileUserFiles.vue +732 -732
  61. package/src/filiale/rongcheng/FilesManageNew/FileUserMerge.vue +202 -202
  62. package/src/filiale/shanggao/FileUserFiles.vue +995 -995
  63. package/src/filiale/shangluo/CardMeterCenter.vue +892 -892
  64. package/src/filiale/shangluo/IOTMeterCenter.vue +797 -797
  65. package/src/filiale/shangluo/MachineMeterCenter.vue +734 -734
  66. package/src/filiale/shanxian/OtherChargeNew.vue +561 -561
  67. package/src/filiale/shanxian/components/FilesManage/FileUserFiles.vue +1004 -1004
  68. package/src/filiale/shanxian/components/FilesManageNew/FileUserFiles.vue +756 -756
  69. package/src/filiale/shanxian/components/revenue/CardMeterCenter.vue +944 -944
  70. package/src/filiale/shaoguan/FilesManage/FileUserFiles.vue +881 -881
  71. package/src/filiale/shaoguan/FilesManageNew/FileUserFiles.vue +734 -734
  72. package/src/filiale/shexian/FilesManage/FileUserFiles.vue +991 -991
  73. package/src/filiale/tongchuan/BasicLivingList.vue +253 -253
  74. package/src/filiale/tongchuan/CardMeterCenter.vue +923 -923
  75. package/src/filiale/tongchuan/FileUserFiles.vue +1206 -1206
  76. package/src/filiale/tongchuan/bill/EticketModal.vue +90 -90
  77. package/src/filiale/tongchuan/filemanagenew/FileUserFiles.vue +842 -842
  78. package/src/filiale/wenxi/CardMeterCenter.vue +942 -942
  79. package/src/filiale/wenxi/FileUserFiles.vue +1032 -1032
  80. package/src/filiale/wenxi/IOTMeterCenter.vue +774 -774
  81. package/src/filiale/wuan/FileUserFiles.vue +1006 -1006
  82. package/src/filiale/wuhai/CardMeterCenter.vue +945 -945
  83. package/src/filiale/wuhai/IOTMeterCenter.vue +757 -757
  84. package/src/filiale/yuansheng/CardMeterCenter.vue +950 -950
  85. package/src/filiale/yuansheng/IOTMeterCenter.vue +788 -788
  86. package/src/filiale/zhongsheng/FilesManage/FileUserFiles.vue +1038 -1038
  87. package/src/filiale/zhongyi/FileUserFiles.vue +1020 -1020
  88. package/src/main.js +27 -27
@@ -1,1038 +1,1038 @@
1
- <template>
2
- <div v-show='!isShowDetailInfo' id="file-user-files" class="binary">
3
- <div :class="{'basic-main': !createFile,'binary-left': createFile}" >
4
- <div class="flex" style="flex: 1;">
5
- <div style="flex: 1.2">
6
- <criteria-paged :model="model" v-ref:paged @sort="sort">
7
- <criteria @condition-changed="$parent.selfSearch" partial='criteria' v-ref:criteria>
8
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
- <div class="row">
10
-
11
- <div
12
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
13
- class="form-group"
14
- v-if="$parent.$parent.clientWidth>1600">
15
- <label class="font_normal_body">客户编号</label>
16
- <input class="input_search" condition="f_userinfo_code = '{}'"
17
- placeholder='客户编号'
18
- style="width:60%" type="text" v-model="model.f_userinfo_code">
19
- </div>
20
- <res-select-group v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
21
-
22
- <div
23
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
24
- class="form-group"
25
- v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile">
26
- <label class="font_normal_body">客户编号</label>
27
- <input class="input_search" condition="f_userinfo_code = '{}'"
28
- placeholder='客户编号'
29
- style="width:60%" type="text" v-model="model.f_userinfo_code">
30
- </div>
31
-
32
- <div
33
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
34
- class="form-group" v-if="!$parent.$parent.createFile">
35
- <label class="font_normal_body">客户名称</label>
36
- <input class="input_search" condition="f_user_name like '%{}%'"
37
- placeholder='客户姓名'
38
- style="width:60%" type="text" v-model="model.f_user_name">
39
- </div>
40
- <div
41
- :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
42
- class="form-group button-range">
43
- <!--<button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.showFileInfo()">查看批量状态-->
44
- <!--</button>-->
45
-
46
- <button @click="search(), $parent.$parent.clean()" class="button_search button_spacing"
47
- style="float: right">查询
48
- </button>
49
- <button @click="$parent.$parent.clear()" class="button_clear button_spacing"
50
- style="float: right">清空
51
- </button>
52
- <button @click="$parent.$parent.createnewfile()" class="button_search button_spacing"
53
- style="float: right">单户建档
54
- </button>
55
- <button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.createInfoForFile()">批量建档
56
- </button>
57
- <button @click="$parent.$parent.importFile" class="button_export button_spacing"
58
- style="float: right" v-if="false">导入
59
- </button>
60
- <button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载
61
- </button>
62
- <!-- <button class="button_search" style="width: 90px" @click=" $parent.$parent.selectaddress()">选择地址</button>-->
63
- <button @click="$parent.$parent.xiaohu()"
64
- class="button_delete button_spacing"
65
- style="float: right"
66
- v-if="$parent.$parent.rows && $parent.$parent.rows.length > 1 && this.$login.r.includes('批量销户')">
67
- 批量销户
68
- </button>
69
- <button @click="$parent.$parent.bulkOperations('批量销户', 'batch-cancellation')"
70
- class="button_delete button_spacing"
71
- style="float: right"
72
- v-if="$parent.$parent.rows && $parent.$parent.rows.length === 1 && $parent.$parent.rows[0].f_user_state === '正常'">
73
- 销户
74
- </button>
75
- <button @click="$parent.$parent.bulkOperations('批量启用', 'batch-enable')"
76
- class="button_search button_spacing"
77
- style="float: right"
78
- v-if="$parent.$parent.rows && $parent.$parent.rows.length === 1 && $parent.$parent.rows[0].f_user_state === '销户'">
79
- 启用
80
- </button>
81
- <div
82
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
83
- @click="$parent.$parent.hidden()"
84
- class="button_spacing"
85
- style="float: right"></div>
86
- </div>
87
- </div>
88
- <div class="row" v-if="$parent.$parent.criteriaShow">
89
-
90
- <div
91
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
92
- class="form-group"
93
- v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile">
94
- <label class="font_normal_body">客户编号</label>
95
- <input class="input_search" condition="f_userinfo_code = '{}'"
96
- placeholder='客户编号'
97
- style="width:60%" type="text" v-model="model.f_userinfo_code">
98
- </div>
99
- <res-select-group v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
100
- <res-select-group v-if="$parent.$parent.clientWidth>=1600" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
101
-
102
- <div
103
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
104
- class="form-group" v-if="$parent.$parent.createFile">
105
- <label class="font_normal_body">客户名称</label>
106
- <input class="input_search" condition="f_user_name = '{}'"
107
- placeholder='客户姓名'
108
- style="width:60%" type="text" v-model="model.f_user_name">
109
- </div>
110
- <div
111
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
112
- class="form-group">
113
- <label class="font_normal_body">旧客户号</label>
114
- <input class="input_search" condition="f_olduserinfo_code = '{}'" placeholder='客户编号'
115
- style="width:60%"
116
- type="text"
117
- v-model="model.f_olduserinfo_code">
118
- </div>
119
- <div
120
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
121
- class="form-group">
122
- <label class="font_normal_body">用户类型</label>
123
- <v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
124
- close-on-select condition="f_user_type='{}'"
125
- placeholder='用户类型' v-model="model.f_user_type"></v-select>
126
- </div>
127
- <div
128
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
129
- class="form-group">
130
- <label class="font_normal_body">用气性质</label>
131
- <v-select :options='$parent.$parent.gasproperties' :value.sync="model.f_gasproperties"
132
- close-on-select condition="f_gasproperties='{}'"
133
- placeholder='用气性质' v-model="model.f_gasproperties"></v-select>
134
- </div>
135
- <div
136
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
137
- class="form-group">
138
- <label class="font_normal_body">气表类型</label>
139
- <v-select :options='$parent.$parent.meter_classify' :value.sync="model.f_meter_classify"
140
- close-on-select condition="f_meter_classify='{}'"
141
- placeholder='气表类型' v-model="model.f_meter_classify"></v-select>
142
- </div>
143
- <div class="form-group" :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}">
144
- <label class="font_normal_body">气表品牌</label>
145
- <v-select :value.sync="model.f_meter_brand" multiple
146
- v-model="model.f_meter_brand"
147
- :options='$parent.$parent.meterbrands' placeholder='请选择'
148
- condition="f_meter_brand in {}"
149
- close-on-select></v-select>
150
- </div>
151
- <!-- <div-->
152
- <!-- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"-->
153
- <!-- class="form-group">-->
154
- <!-- <label class="font_normal_body">气表品牌</label>-->
155
- <!-- <v-select :options='$parent.$parent.meter_brand' :value.sync="model.f_meter_brand"-->
156
- <!-- close-on-select condition="f_meter_brand='{}'"-->
157
- <!-- placeholder='气表品牌' v-model="model.f_meter_brand"></v-select>-->
158
- <!-- </div>-->
159
- <div
160
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
161
- class="form-group">
162
- <label class="font_normal_body">客户电话</label>
163
- <input class="input_search" condition="f_user_phone = '{}'" placeholder='客户电话' style="width:60%"
164
- type="text"
165
- v-model="model.f_user_phone">
166
- </div>
167
- <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
168
- class="form-group">
169
- <label class="font_normal_body">片&emsp;&emsp;区</label>
170
- <v-select :value.sync="model.f_slice_area" v-model="model.f_slice_area"
171
- :options='$parent.$parent.area' placeholder='片区/管理站'
172
- condition="f_slice_area in {}" @change="$parent.$parent.areachange"
173
- close-on-select>
174
- </v-select>
175
- </div>
176
- <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
177
- class="form-group">
178
- <label class="font_normal_body">小&emsp;&emsp;区</label>
179
- <v-select :value.sync="model.f_residential_area" condition="f_residential_area in {}"
180
- v-model="model.f_residential_area" style="width: 60%"
181
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
182
- close-on-select>
183
- </v-select>
184
- </div>
185
- <div
186
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
187
- class="form-group">
188
- <label class="font_normal_body">客户地址</label>
189
- <input class="input_search" condition="f_address like '%{}%'" placeholder='客户地址' style="width:60%"
190
- type="text" v-model="model.f_address">
191
- </div>
192
- <div
193
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
194
- class="form-group">
195
- <label class="font_normal_body">客户状态</label>
196
- <v-select :options='$parent.$parent.userstates' :value.sync="model.f_user_state"
197
- close-on-select condition="f_user_state='{}'"
198
- placeholder='客户状态' v-model="model.f_user_state"></v-select>
199
- </div>
200
- <div
201
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
202
- class="form-group">
203
- <label class="font_normal_body">发卡状态</label>
204
- <v-select :options='$parent.$parent.f_whether_hairpin' :value.sync="model.f_whether_hairpin"
205
- close-on-select condition="f_whether_hairpin = '{}'"
206
- placeholder='发卡状态' v-model="model.f_whether_hairpin"></v-select>
207
- </div>
208
- <div
209
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
210
- class="form-group">
211
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
212
- <input class="input_search" condition="f_card_id = '{}'" placeholder='卡号' style="width:60%"
213
- type="text" v-model="model.f_card_id">
214
- </div>
215
- <div
216
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
217
- class="form-group">
218
- <label class="font_normal_body">用&nbsp;&nbsp;气&nbsp;点</label>
219
- <input class="input_search" condition="f_userfiles_address like '%{}%'" placeholder='用气点名称' style="width:60%"
220
- type="text" v-model="model.f_userfiles_address">
221
- </div>
222
- <div
223
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
224
- class="form-group">
225
- <label class="font_normal_body" style="width: auto">天然气证</label>
226
- <v-select :options='$parent.$parent.usegas' :value.sync="model.f_send_usegas_card"
227
- close-on-select condition="f_send_usegas_card='{}'"
228
- placeholder='天然气使用证' v-model="model.f_send_usegas_card"></v-select>
229
- </div>
230
- <div
231
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
232
- class="form-group">
233
- <label class="font_normal_body">调&ensp;压&ensp;箱</label>
234
- <v-select :options='$parent.$parent.adjustables' :search='true'
235
- :value.sync="model.f_adjustable_id"
236
- close-on-select
237
- condition="f_adjustable_id = '{}'" placeholder='调压箱'
238
- v-model='model.f_adjustable_id'></v-select>
239
- </div>
240
- <div
241
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
242
- class="form-group">
243
- <label class="font_normal_body">使用类型</label>
244
- <v-select :options='$parent.$parent.useoptions' :search='true'
245
- :value.sync="model.f_usetype"
246
- close-on-select
247
- condition="f_usetype = '{}'" placeholder='使用类型'
248
- v-model='model.f_usetype'></v-select>
249
- </div>
250
- <div
251
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
252
- class="form-group">
253
- <label class="font_normal_body">用户等级</label>
254
- <v-select :options='$parent.$parent.userlevel' :search='true'
255
- :value.sync="model.userlevel"
256
- close-on-select
257
- condition="f_user_level = '{}'" placeholder='用户等级'
258
- v-model='model.userlevel'></v-select>
259
- </div>
260
- <div
261
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
262
- class="form-group">
263
- <label class="font_normal_body">工业备注</label>
264
- <v-select :options='$parent.$parent.industrycomments' :value.sync="model.f_gongye_type"
265
- close-on-select condition="f_gongye_type='{}'"
266
- placeholder='工业备注' v-model="model.f_gongye_type"></v-select>
267
- </div>
268
- <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
269
- class="form-group">
270
- <label class="font_normal_body" title="建档开始时间">开始时间</label>
271
- <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
272
- class="datepicker"
273
- condition="f_createfile_date >= '{} 00:00:00' "
274
- placeholder="建档开始时间"
275
- style="width:60%"
276
- v-model="model.f_start_date"
277
- ></datepicker>
278
- </div>
279
- <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
280
- class="form-group">
281
- <label class="font_normal_body" title="建档结束时间">结束时间</label>
282
- <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
283
- class="datepicker"
284
- condition="f_createfile_date <= '{} 23:59:59' "
285
- placeholder="建档结束时间"
286
- style="width:60%"
287
- v-model="model.f_end_date"
288
- ></datepicker>
289
- </div>
290
- <div
291
- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
292
- class="form-group">
293
- <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
294
- <input class="input_search" condition="f_meternumber ='{}'" placeholder='表号' style="width:60%"
295
- type="text" v-model="model.f_meternumber">
296
- </div>
297
- </div>
298
- </div>
299
- </criteria>
300
- <data-grid :model="model" class="list_area table_sy" @dblclick="$parent.modifyUser" v-ref:grid partial='list'>
301
- <template partial='head'>
302
- <tr>
303
- <th>
304
- <nobr>序号</nobr>
305
- </th>
306
- <th>
307
- <nobr>客户编号</nobr>
308
- </th>
309
- <th>
310
- <nobr>客户名称</nobr>
311
- </th>
312
- <th>
313
- <nobr>表号</nobr>
314
- </th>
315
- <th>
316
- <nobr>卡号</nobr>
317
- </th>
318
- <th>
319
- <nobr>客户电话</nobr>
320
- </th>
321
- <th v-if="!$parent.$parent.$parent.isOper">
322
- <nobr>地址信息</nobr>
323
- </th>
324
- <th>
325
- <nobr>用户类型</nobr>
326
- </th>
327
- <th>
328
- <nobr>用气性质</nobr>
329
- </th>
330
- <th>
331
- <nobr>气表类型</nobr>
332
- </th>
333
- <th>
334
- <nobr>气表品牌</nobr>
335
- </th>
336
- <th>
337
- <nobr>发卡状态</nobr>
338
- </th>
339
- <th v-if="!$parent.$parent.$parent.createFile">
340
- <nobr>用气点名称</nobr>
341
- </th>
342
- <th v-if="!$parent.$parent.$parent.createFile">
343
- <nobr>状态</nobr>
344
- </th>
345
- <th v-if="!$parent.$parent.$parent.createFile">
346
- <nobr>用户等级</nobr>
347
- </th>
348
- <!--<th>-->
349
- <!--<nobr v-if="this.$login.r.includes('通知单打印')||this.$login.r.includes('流程表打印') ">下载</nobr>-->
350
- <!--</th>-->
351
- <th>
352
- <nobr>操作</nobr>
353
- </th>
354
- </tr>
355
- </template>
356
- <template partial='body'>
357
- <td style="text-align: center;">{{$index + 1}}</td>
358
- <td style="text-align: center;">{{row.f_userinfo_code}}
359
- </td>
360
- <td style="text-align: center;">
361
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_user_name}}</b></a></span>
362
- </td>
363
- <td style="text-align: center;">{{row.f_meternumber}}</td>
364
- <td style="text-align: center;">{{row.f_card_id}}</td>
365
- <td style="text-align: center;">{{row.f_user_phone}}</td>
366
- <td style="text-align: center;" v-if="!$parent.$parent.$parent.isOper">{{row.f_address_detail ? row.f_address + row.f_address_detail :
367
- row.f_address}}
368
- </td>
369
- <td style="text-align: center;">{{row.f_user_type}}</td>
370
- <td style="text-align: center;">{{row.f_gasproperties}}</td>
371
- <td style="text-align: center;">{{row.f_meter_classify}}</td>
372
- <td style="text-align: center;">{{row.f_meter_brand}}</td>
373
- <td style="text-align: center;">{{row.f_whether_hairpin}}</td>
374
- <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_userfiles_address}}</td>
375
- <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_user_state}}</td>
376
- <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_user_level}}</td>
377
- <td style="text-align: center;">
378
- <button type="button" name="button" class="button_search-2 button_spacing width-60"
379
- v-if="row.f_user_state === '正常' || row.f_user_state==='预备'"
380
- @click.stop="$parent.$parent.$parent.modifyUser(row)">修正
381
- </button>
382
- </td>
383
- </template>
384
- </data-grid>
385
- </criteria-paged>
386
- </div>
387
-
388
- <modal v-if="batcan || batenable" :show.sync="batcan || batenable" width="1500px" v-ref:modal large backdrop="false">
389
- <article slot="modal-body" class="modal-body">
390
- <batch-cancellation v-if="batcan" :useraccount="model.rows" @clean="batchClean"
391
- @success="batchSuccess"></batch-cancellation>
392
- <batch-enable v-if="batenable" :useraccount="model.rows" @clean="batchClean"
393
- @success="batchSuccess"></batch-enable>
394
- </article>
395
- <footer slot="modal-footer" class="modal-footer">
396
- </footer>
397
- </modal>
398
-
399
-
400
- </div>
401
- </div>
402
- <div class="binary-right" :style="{width:'70%'}" v-if="createFile">
403
- <div class="auto" style="height: 100%; margin-top: 1%" >
404
- <file-user-general-info :f_filialeid="f_filialeid" :row="row" :areainfo="areainfo"
405
- :haslimit="config.hasLimit" @success="renew" @clean="clean"
406
- :isedit="isedit"
407
- @build-success="buildFileSuccess" v-ref:info></file-user-general-info>
408
- </div>
409
- </div>
410
-
411
- <modal :show.sync="show" width="500px" title="文件导入" v-ref:modal large backdrop="false">
412
- <article slot="modal-body" class="modal-body">
413
- <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
414
- action="rs/file/uploadFile" tagname="导入档案" v-ref:file :headers="headers"></file-upload>
415
- </article>
416
- <footer slot="modal-footer" class="modal-footer">
417
- </footer>
418
- </modal>
419
- <modal :show.sync="batchMeterShow" width="500px" title="文件导入" v-ref:modal large backdrop="false">
420
- <article slot="modal-body" class="modal-body">
421
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
422
- </article>
423
- <footer slot="modal-footer" class="modal-footer">
424
- </footer>
425
- </modal>
426
-
427
- <modal :show.sync="xiaohushow" width="500px" title="批量销户" v-ref:modal large backdrop="false">
428
- <article slot="modal-body" class="modal-body" style="height: 70px">
429
- <div>
430
- <label class="font_normal_body" style="line-height: 20px">销户原因</label>
431
- <input class="input_search"
432
- placeholder='销户原因'
433
- type="text" v-model="xiaohureason">
434
- </div>
435
- </article>
436
- <footer slot="modal-footer" class="modal-footer">
437
- <button class="button_search button_spacing" type="button" @click="batchCancellation()">确认</button>
438
- <button class="button_search button_spacing" type="button" @click="closexiaohu()">取消</button>
439
- </footer>
440
- </modal>
441
- <modal :show.sync="resshow" width="500px" title="建档成功" v-ref:modal large backdrop="false">
442
- <article slot="modal-body" class="modal-body" style="height: 70px">
443
- <div>
444
- <label class="font_normal_body" style="line-height: 20px">客户编号</label>
445
- <input class="input_search" condition="f_userinfo_code = '{}'"
446
- placeholder='客户编号' disabled
447
- type="text" v-model="resdata">
448
- </div>
449
- </article>
450
- <footer slot="modal-footer" class="modal-footer">
451
- <button class="button_search button_spacing" type="button" @click="doCopy()">复制</button>
452
- <button class="button_search button_spacing" type="button" @click="close2()">取消</button>
453
- </footer>
454
- </modal>
455
- <!--<user-flow-sheet :show="printflag" :bill-config='configs' :bill-data='billData' :data='newdata' v-on:toggle="close" @printok="printok" v-ref:printbill></user-flow-sheet>-->
456
-
457
- <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
458
- </div>
459
- <div v-if="isShowDetailInfo">
460
- <user-info-detail-manage-new :f_userinfo_id="rowData.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
461
- </div>
462
- </template>
463
-
464
- <script>
465
- import {PagedList, HttpResetClass} from 'vue-client'
466
- import Vue from 'vue'
467
- import co from 'co'
468
- import axios from 'axios'
469
-
470
- let loadParamGem = async function (self) {
471
- await self.$getConfig(self, 'UserFiles')
472
- self.headers.username = Vue.$login.f.name
473
- self.headers.username = Vue.$login.guid()
474
- await self.$LoadParams.loadParam(self.f_filialeid)
475
- // await self.$LoadParams.loadMeterBook(self.f_filialeid)
476
- // await self.search()
477
- self.initAdjustables()
478
- }
479
-
480
- let addressInfoGen = async function (self, areainfo) {
481
- areainfo.isEdit = false
482
- if (areainfo.file_num > 0 && !areainfo.f_userinfo_id) {
483
- // 完善
484
- // 将表档案信息带入,完善客户信息
485
- let getMetersInfo = await self.$resetpost('rs/logic/sale_getMeterByAddress', {
486
- data: {
487
- f_useraddress_id: areainfo.id
488
- }
489
- }, {resolveMsg: null, rejectMsg: '获取表信息出错'})
490
- areainfo.meter = getMetersInfo.data[0]
491
- }
492
- if (areainfo.file_num > 0 && areainfo.f_userinfo_id) {
493
- // 添加 将客户信息带入
494
- let getUserinfo = await self.$resetpost('rs/sql/saleSingleTable', {
495
- data: {
496
- tablename: 't_userinfo',
497
- condition: `f_userinfo_id = '${areainfo.f_userinfo_id}'`
498
- }
499
- }, {resolveMsg: null, rejectMsg: '获取档案出错'})
500
-
501
- areainfo.user = getUserinfo.data[0]
502
- }
503
- self.bulidFiles(areainfo)
504
- }
505
-
506
- export default {
507
- 'title': '档案信息',
508
- data () {
509
- return {
510
- iswork: false,
511
- isShowDetailInfo: false,
512
- config: {
513
- createType: ['address', 'area'], // 建档方式: address-地址建档 area-小区建档
514
- hasLimit: true
515
- },
516
- model: new PagedList('rs/sql/filemanage_getUserfies', 30, {orderitem: '"f_userinfo_id DESC"'}),
517
- row: null, // 选择一条客户信息,对其进行修改
518
- areainfo: null, // 小区批量建档使用的数据
519
- rows: [], // 客户档案选择一条时,将只显示一条信息,rows用来存放整页的数据
520
- headers: {'username': this.$login.f.name, 'blodid': this.$login.guid()},
521
- contract: [{label: '全部', value: ' is null or f_contract_id is not null'}, {
522
- label: '有',
523
- value: ' is not null'
524
- },
525
- {label: '无', value: ' is null'}],
526
- orderDefault: 'f_createfile_date desc',
527
- orderFields: {
528
- f_userinfo_id: 'no'
529
- },
530
- initres: {
531
- org: [this.$login.f.orgid],
532
- dep: [],
533
- user: []
534
- },
535
- orgcondition: ' and f_orgid = ' + this.$login.f.orgid,
536
- createFile: false,
537
-
538
- curorgid: [this.$login.f.orgid],
539
- f_filialeid: this.$login.f.orgid,
540
-
541
- // 销户启用
542
- batcan: false,
543
- batenable: false,
544
- version: '',
545
- xiaohureason: '',
546
- xiaohushow: false,
547
- inputtores: this.$appdata.getParam('抄表员'),
548
- adjustables: [],
549
-
550
- // 导入组件
551
- show: false,
552
-
553
- // 点击建档或修正时控制列表展示, 防止拥挤
554
- isOper: false,
555
-
556
- criteriaShow: false,
557
- industrycomments: this.$appdata.getParam('工业备注') ? [{
558
- label: '全部',
559
- value: ''
560
- }, ...this.$appdata.getParam('工业备注')] : [],
561
- gasproperties: this.$appdata.getParam('用气性质') ? [{
562
- label: '全部',
563
- value: ''
564
- }, ...this.$appdata.getParam('用气性质')] : [],
565
- user_type: this.$appdata.getParam('用户类型') ? [{
566
- label: '全部',
567
- value: ''
568
- }, ...this.$appdata.getParam('用户类型')] : [],
569
- meter_classify: this.$appdata.getParam('气表类型') ? [{
570
- label: '全部',
571
- value: ''
572
- }, ...this.$appdata.getParam('气表类型')] : [],
573
- meterbrands: [],
574
- f_whether_hairpin: this.$appdata.getParam('发卡状态') ? [{
575
- label: '全部',
576
- value: ''
577
- }, ...this.$appdata.getParam('发卡状态')] : [],
578
- showselectaddress: false,
579
- isedit: false,
580
- clientWidth: document.body.clientWidth,
581
- batchMeterShow: false,
582
- billData: {
583
- url: 'rs/report/userignition',
584
- bill: ''
585
- },
586
- configs: {
587
- hasPrint: false, // 默认打票
588
- hasBillManage: false // 默认不启用发票管理
589
- },
590
- printflag: false,
591
- newdata: {},
592
- resdata: '',
593
- resshow: false,
594
- useoptions: this.$appdata.getParam('使用类型'),
595
- residentialArea: [], //小区
596
- area: [],
597
- areacondition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`,
598
- userlevel: this.$appdata.getParam('用户等级') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')] : []
599
- }
600
- },
601
- ready () {
602
- loadParamGem(this);
603
- this.getaddress();
604
- this.initAreas(this.$login.f.orgid)
605
- },
606
- compiled () {
607
- window.onresize = () => {
608
- return (() => {
609
- this.clientWidth = document.body.clientWidth
610
- })()
611
- }
612
- },
613
- methods: {
614
- async areachange(val){
615
- console.log('片区变了===val:',val,)
616
- console.log('片区变了:',this.$refs.paged.$refs.criteria.model.f_slice_area[0])
617
- this.$refs.paged.$refs.criteria.model.f_residential_area = []
618
- if(this.$refs.paged.$refs.criteria.model.f_slice_area[0]){
619
- this.areacondition = this.areacondition + ` and f_slice_area = '${this.$refs.paged.$refs.criteria.model.f_slice_area[0]}'`
620
- this.getaddress()
621
- this.areacondition = `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
622
- }else{
623
- this.getaddress()
624
- }
625
- },
626
- //获取小区下拉框
627
- async getaddress(){
628
- console.log('开始获取小区')
629
- let temp = {
630
- condition:this.areacondition
631
- }
632
- let HttpReset = new HttpResetClass()
633
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {data: temp},
634
- {resolveMsg: null, rejectMsg: '获取小区失败!'})
635
- console.log('小区',data)
636
- this.residentialArea = []
637
- let house = []
638
- for (let row of data.data){
639
- console.log('开始保存小区')
640
- house.push({label: row.f_residential_area, value: row.f_residential_area})
641
- }
642
- this.residentialArea = house
643
- },
644
- // 初始化片区
645
- async initAreas (val) {
646
- console.log('initAreas:',val)
647
- if (val) {
648
- console.log('this.$login.f.id:',this.$login.f.id)
649
- let http = new HttpResetClass()
650
- let getAllArea = await http.load('POST', '/rs/search', {
651
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
652
- userid: this.$login.f.id
653
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
654
- let arr = getAllArea.data.filter((res) => {
655
- return res.parentid == val
656
- })
657
- console.log('过滤之后的片区', arr)
658
- this.area = []
659
- arr.forEach((res) => {
660
- this.area.push({label: res.name, value: res.name})
661
- })
662
- }
663
- },
664
- getRes (obj) {
665
- console.log("-----------------")
666
- this.orgcondition = obj
667
- if(this.$refs.paged.$refs.criteria.$refs.sel.depresid.length>0){
668
- this.f_filialeid=this.$refs.paged.$refs.criteria.$refs.sel.depresid[0]
669
- }else{
670
- this.f_filialeid=this.$login.f.orgid
671
- }
672
-
673
- },
674
- downloadFiles(){
675
- let downurl='rs/downloadfile/file?filename=批量建档导出Excel模板';
676
- this.$resetget(downurl,{}).then(res=>{
677
- var link = document.createElement('a');
678
- link.target="_blank"
679
- link.href =downurl ;
680
- link.setAttribute("download", "批量建档导出Excel模板.xlsx"); //指定下载后的文件名,防跳转
681
- document.body.appendChild(link);
682
- link.click();
683
- })
684
-
685
-
686
- },
687
- /**
688
- * 退出用户详细信息页面
689
- */
690
- cancel () {
691
- this.isShowDetailInfo = false
692
- },
693
- /**
694
- * 展示用户详细信息
695
- * @param obj 传递的row
696
- */
697
- dealmsg (obj) {
698
- console.log('==================>', obj)
699
- this.isShowDetailInfo = true
700
- this.rowData = obj
701
- },
702
- async doCopy () {
703
- await this.$copyText(this.resdata)
704
- this.resshow = false
705
- this.$showAlert(`内容已复制到剪切板!`, 'success', 2000)
706
- },
707
- close () {
708
- this.printflag = false
709
- this.clean()
710
- },
711
- close2 () {
712
- this.resshow = false
713
- },
714
- closemodal () {
715
- this.batchMeterShow = false
716
- },
717
- createInfoForFile () {
718
- this.batchMeterShow = true
719
- },
720
- hidden () {
721
- this.criteriaShow = !this.criteriaShow
722
- },
723
- search () {
724
- this.$refs.paged.$refs.criteria.search()
725
- },
726
- // selectdata () {
727
- //
728
- // },
729
- modifyUser (row) {
730
- this.isOper = true
731
- this.createFile = true
732
- this.isedit = true
733
- this.row = row
734
- this.areainfo = null
735
- this.row.version = row.version
736
- },
737
- clean () {
738
- this.createFile = false
739
- this.row = null
740
- this.isOper = false
741
- this.areainfo = null
742
- // this.$refs.paged.$refs.grid.select(null)
743
- this.$refs.paged.$refs.grid.model.rows = this.rows
744
- },
745
- createnewfile () {
746
- this.isOper = true
747
- this.createFile = true
748
- this.isedit = false
749
- this.row = null
750
- this.areainfo = null
751
- this.$refs.info.clearinfo()
752
- },
753
- renew () {
754
- this.row = null
755
- this.areainfo = null
756
- this.isOper = false
757
- this.$refs.info.clearinfo()
758
- this.clearCondition()
759
- this.search()
760
- // 建档或修正档案成功刷新地址列表
761
- this.$refs.addressfiles.$refs.paged.$refs.cri.search()
762
- },
763
- clearCondition () {
764
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
765
- this.$refs.paged.$refs.criteria.model[key] = ''
766
- })
767
- },
768
-
769
- bulkOperations (name, type) {
770
- if (name === '批量销户') {
771
- this.batcan = true
772
- this.batenable = false
773
- this.newArea = false
774
- } else if (name === '批量启用') {
775
- this.batenable = true
776
- this.batcan = false
777
- this.newArea = false
778
- }
779
- },
780
- closexiaohu () {
781
- this.xiaohushow = false
782
- },
783
- xiaohu () {
784
- this.xiaohushow = true
785
- },
786
- batchCancellation () {
787
- this.$showMessage('此操作无法还原,是否确定要批量销户?', ['confirm', 'cancel']).then(async (res) => {
788
- if (res === 'confirm') {
789
- var infoIds = []
790
- var count = 0
791
- this.model.rows.forEach((item) => {
792
- item.f_state = '有效'
793
- item.f_user_state = item.f_user_state
794
- item.f_operat_type = '销户'
795
- item.f_operator = Vue.$login.f.name
796
- item.f_operatorid = Vue.$login.f.id
797
- item.f_orgid = Vue.$login.f.orgid
798
- item.f_orgname = Vue.$login.f.orgs
799
- item.f_depid = Vue.$login.f.depids
800
- item.f_depname = Vue.$login.f.deps
801
- item.f_describe = `${Vue.$login.f.name}对${item.f_user_name}进行批量销户`
802
- item.f_comments = this.xiaohureason
803
- infoIds.push(item)
804
- count++
805
- })
806
- await this.$resetpost('rs/logic/saveCancellation', {infoIds: infoIds}, {resolveMsg: null, rejectMsg: '批量销户失败'}).then((res) => {
807
- if(res && res.data){
808
- this.$showMessage(`本次批量销户总计: ${res.data.allnum}户 ,成功: ${res.data.successnum}户 ,失败(已经销户): ${res.data.errornum2} 户,失败(待审核): ${res.data.errornum1}户 `);
809
- }
810
- this.xiaohushow = false
811
- this.close()
812
- this.search()
813
- })
814
- }
815
- })
816
- },
817
- batchSuccess () {
818
- this.clearCondition()
819
- this.batchClean()
820
- },
821
- batchClean () {
822
- this.batcan = false
823
- this.batenable = false
824
- this.newArea = false
825
- this.search()
826
- },
827
- buildFile (row) {
828
- // console.log('我是建档。。。', row)
829
- this.row = row
830
- },
831
- // 小区批量建档
832
- bulidFiles (row) {
833
- this.row = null
834
- this.areainfo = row
835
- // 将列表的数据清空
836
- this.$refs.paged.$refs.grid.model.rows = []
837
- },
838
- // 小区批量建档成功
839
- buildFileSuccess (data) {
840
- // console.log('建档案成功', data)
841
- this.model.rows.unshift(data)
842
- },
843
- selfSearch (args) {
844
- args.condition = `${args.condition} ` + this.orgcondition
845
- this.criteriaShow = false
846
- this.$refs.paged.$refs.grid.$el.scrollTop = 0
847
- this.model.search(args.condition, args.model)
848
- let http = new HttpResetClass()
849
-
850
- this.clean()
851
- },
852
- // printok () {
853
- // console.log("======================")
854
- // //this.$dispatch('success')
855
- // },
856
- sort (field, rule) {
857
- // 将所有排序方式设为不排序,实现相互排斥
858
- for (let key in this.orderFields) {
859
- if (key === field) {
860
- this.orderFields[key] = rule
861
- } else {
862
- this.orderFields[key] = 'no'
863
- }
864
- }
865
- // 如果新规则不排序,还原为默认排序
866
- if (rule === 'no') {
867
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
868
- } else {
869
- this.model.paramSource.orderitem = `'${field} ${rule}'`
870
- }
871
-
872
- this.search()
873
- },
874
-
875
- getLocation (row) {
876
- // 可能会存在添加,完善,建档
877
- addressInfoGen(this, row)
878
- },
879
- areaFiles (row) {
880
- row.isEdit = true
881
- row.f_residential_area_id = row.id
882
- // row.id = null
883
- delete row.id
884
- this.bulidFiles(row)
885
- },
886
- initAdjustables () {
887
- console.log('初始化调压箱', this.$GetSaleParam)
888
- let arr = []
889
- let filter = this.$login.f.orgid
890
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
891
- let temp = {}
892
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
893
- temp.value = `${item.value.id}`
894
- arr.push(temp)
895
- })
896
- this.adjustables = [{label: '全部', value: ''}, ...arr]
897
- // 初始化气表品牌
898
- let brandArr = []
899
- this.$GetSaleParam.getGasbrand().forEach((item) => {
900
- let temp1 = {}
901
- temp1.label = item.label
902
- temp1.value = item.value.f_meter_brand
903
- brandArr.push(temp1)
904
- })
905
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
906
- },
907
- importFile () {
908
- this.show = true
909
- },
910
- clear () {
911
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
912
- this.$refs.paged.$refs.criteria.model[key] = []
913
- })
914
- },
915
- getorg (val) {
916
- this.f_filialeid = val[0]
917
- }
918
- },
919
- computed: {
920
- userstates () {
921
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
922
- },
923
- usegas () {
924
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
925
- },
926
- firestates () {
927
- return [
928
- {label: '全部', value: ''},
929
- {label: '点火', value: '1'},
930
- {label: '未点火', value: '0'}
931
- ]
932
- },
933
- jurisdiction () {
934
- return this.$login.r
935
- }
936
- },
937
- watch: {
938
- // 每次查询将查询到的数据存储起来,供选择操作后的替换
939
- 'model.state' (val) {
940
- if (val === '正确') {
941
- this.rows = this.model.rows
942
- }
943
- },
944
- 'f_filialeid' (val) {
945
- loadParamGem(this)
946
- }
947
- },
948
- events: {
949
- FileUpload: function (file, res) {
950
- let data = {
951
- tablename: 't_userinfo',
952
- filepath: res.path
953
- }
954
- this.$resetpost('rs/logic/import', data, {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
955
- this.close()
956
- this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
957
- this.search()
958
- })
959
- },
960
- 'onFileUpload': async function (file, res) {
961
- if (this.batchMeterShow) {
962
- this.iswork = true
963
- // 当前上传的是批量导入的档案
964
- let param = {
965
- filepath: res.f_downloadpath,
966
- f_operator: this.$login.f.name,
967
- f_operatorid: this.$login.f.id,
968
- f_orgid: this.$login.f.orgid,
969
- f_orgname: this.$login.f.orgs,
970
- f_depid: this.$login.f.depids,
971
- f_depname: this.$login.f.deps
972
- }
973
- let self = this
974
- try {
975
- await axios.post('rs/logic/newSettleFileImport',
976
- {data: param}, {timeout: 10 * 60 * 1000}).then((res) => {
977
- if (res.data) {
978
- self.$showMessage(`本次上传共上传${res.data.totalsum}条数据, 成功${res.data.successnum}条,失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
979
- self.iswork = false
980
- // this.$showAlert('导入成功','success',2000)
981
- }
982
- })
983
- } catch (error) {
984
- if (error.response) {
985
- if (error.response.status == 500) {
986
- this.$showAlert('服务繁忙,请重试!!!', 'danger', 3000)
987
- } else if (error.response.status == 404) {
988
- this.$showAlert('服务运行中,请耐心等待后进行重试!!', 'danger', 3000)
989
- } else {
990
- this.$showAlert(error.response.data, 'danger', 2000)
991
- }
992
- console.log(error.response.data)
993
- console.log(error.response.status)
994
- console.log(error.response.headers)
995
- } else if (error.request) {
996
- console.log(error.request)
997
- this.$showAlert(error.request, 'danger', 2000)
998
- } else {
999
- console.log('Error', error.message)
1000
- this.$showAlert(error.message, 'danger', 2000)
1001
- }
1002
- this.iswork = false
1003
- }
1004
- this.batchMeterShow = false
1005
- // this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
1006
- this.search()
1007
- } else {
1008
- let data = {
1009
- tablename: 't_userinfo',
1010
- filepath: res.f_downloadpath,
1011
- f_operator: this.$login.f.name,
1012
- f_operatorid: this.$login.f.id,
1013
- f_orgid: this.$login.f.orgid,
1014
- f_orgname: this.$login.f.orgs,
1015
- f_depid: this.$login.f.depids,
1016
- f_depname: this.$login.f.deps
1017
- }
1018
- this.$resetpost('rs/logic/sale_userfilesImp', {data: data}, {
1019
- resolveMsg: null,
1020
- rejectMsg: '上传失败'
1021
- }).then((res) => {
1022
- this.show = false
1023
- this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
1024
- this.search()
1025
- })
1026
- }
1027
- },
1028
- 'confirmaddress' (res) {
1029
- console.log('选定地址', res)
1030
- }
1031
- }
1032
- }
1033
- </script>
1034
- <style>
1035
- .nav-tabss ul > li > a {
1036
- padding: 5px 10px;
1037
- }
1038
- </style>
1
+ <template>
2
+ <div v-show='!isShowDetailInfo' id="file-user-files" class="binary">
3
+ <div :class="{'basic-main': !createFile,'binary-left': createFile}" >
4
+ <div class="flex" style="flex: 1;">
5
+ <div style="flex: 1.2">
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria @condition-changed="$parent.selfSearch" partial='criteria' v-ref:criteria>
8
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
+ <div class="row">
10
+
11
+ <div
12
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
13
+ class="form-group"
14
+ v-if="$parent.$parent.clientWidth>1600">
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input class="input_search" condition="f_userinfo_code = '{}'"
17
+ placeholder='客户编号'
18
+ style="width:60%" type="text" v-model="model.f_userinfo_code">
19
+ </div>
20
+ <res-select-group v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
21
+
22
+ <div
23
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
24
+ class="form-group"
25
+ v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.createFile">
26
+ <label class="font_normal_body">客户编号</label>
27
+ <input class="input_search" condition="f_userinfo_code = '{}'"
28
+ placeholder='客户编号'
29
+ style="width:60%" type="text" v-model="model.f_userinfo_code">
30
+ </div>
31
+
32
+ <div
33
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
34
+ class="form-group" v-if="!$parent.$parent.createFile">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input class="input_search" condition="f_user_name like '%{}%'"
37
+ placeholder='客户姓名'
38
+ style="width:60%" type="text" v-model="model.f_user_name">
39
+ </div>
40
+ <div
41
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
42
+ class="form-group button-range">
43
+ <!--<button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.showFileInfo()">查看批量状态-->
44
+ <!--</button>-->
45
+
46
+ <button @click="search(), $parent.$parent.clean()" class="button_search button_spacing"
47
+ style="float: right">查询
48
+ </button>
49
+ <button @click="$parent.$parent.clear()" class="button_clear button_spacing"
50
+ style="float: right">清空
51
+ </button>
52
+ <button @click="$parent.$parent.createnewfile()" class="button_search button_spacing"
53
+ style="float: right">单户建档
54
+ </button>
55
+ <button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.createInfoForFile()">批量建档
56
+ </button>
57
+ <button @click="$parent.$parent.importFile" class="button_export button_spacing"
58
+ style="float: right" v-if="false">导入
59
+ </button>
60
+ <button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载
61
+ </button>
62
+ <!-- <button class="button_search" style="width: 90px" @click=" $parent.$parent.selectaddress()">选择地址</button>-->
63
+ <button @click="$parent.$parent.xiaohu()"
64
+ class="button_delete button_spacing"
65
+ style="float: right"
66
+ v-if="$parent.$parent.rows && $parent.$parent.rows.length > 1 && this.$login.r.includes('批量销户')">
67
+ 批量销户
68
+ </button>
69
+ <button @click="$parent.$parent.bulkOperations('批量销户', 'batch-cancellation')"
70
+ class="button_delete button_spacing"
71
+ style="float: right"
72
+ v-if="$parent.$parent.rows && $parent.$parent.rows.length === 1 && $parent.$parent.rows[0].f_user_state === '正常'">
73
+ 销户
74
+ </button>
75
+ <button @click="$parent.$parent.bulkOperations('批量启用', 'batch-enable')"
76
+ class="button_search button_spacing"
77
+ style="float: right"
78
+ v-if="$parent.$parent.rows && $parent.$parent.rows.length === 1 && $parent.$parent.rows[0].f_user_state === '销户'">
79
+ 启用
80
+ </button>
81
+ <div
82
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
83
+ @click="$parent.$parent.hidden()"
84
+ class="button_spacing"
85
+ style="float: right"></div>
86
+ </div>
87
+ </div>
88
+ <div class="row" v-if="$parent.$parent.criteriaShow">
89
+
90
+ <div
91
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
92
+ class="form-group"
93
+ v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile">
94
+ <label class="font_normal_body">客户编号</label>
95
+ <input class="input_search" condition="f_userinfo_code = '{}'"
96
+ placeholder='客户编号'
97
+ style="width:60%" type="text" v-model="model.f_userinfo_code">
98
+ </div>
99
+ <res-select-group v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
100
+ <res-select-group v-if="$parent.$parent.clientWidth>=1600" :style="$parent.$parent.createFile?'col-sm-4':'col-sm-2'" :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
101
+
102
+ <div
103
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
104
+ class="form-group" v-if="$parent.$parent.createFile">
105
+ <label class="font_normal_body">客户名称</label>
106
+ <input class="input_search" condition="f_user_name like '%{}%'"
107
+ placeholder='客户姓名'
108
+ style="width:60%" type="text" v-model="model.f_user_name">
109
+ </div>
110
+ <div
111
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
112
+ class="form-group">
113
+ <label class="font_normal_body">旧客户号</label>
114
+ <input class="input_search" condition="f_olduserinfo_code = '{}'" placeholder='客户编号'
115
+ style="width:60%"
116
+ type="text"
117
+ v-model="model.f_olduserinfo_code">
118
+ </div>
119
+ <div
120
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
121
+ class="form-group">
122
+ <label class="font_normal_body">用户类型</label>
123
+ <v-select :options='$parent.$parent.user_type' :value.sync="model.f_user_type"
124
+ close-on-select condition="f_user_type='{}'"
125
+ placeholder='用户类型' v-model="model.f_user_type"></v-select>
126
+ </div>
127
+ <div
128
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
129
+ class="form-group">
130
+ <label class="font_normal_body">用气性质</label>
131
+ <v-select :options='$parent.$parent.gasproperties' :value.sync="model.f_gasproperties"
132
+ close-on-select condition="f_gasproperties='{}'"
133
+ placeholder='用气性质' v-model="model.f_gasproperties"></v-select>
134
+ </div>
135
+ <div
136
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
137
+ class="form-group">
138
+ <label class="font_normal_body">气表类型</label>
139
+ <v-select :options='$parent.$parent.meter_classify' :value.sync="model.f_meter_classify"
140
+ close-on-select condition="f_meter_classify='{}'"
141
+ placeholder='气表类型' v-model="model.f_meter_classify"></v-select>
142
+ </div>
143
+ <div class="form-group" :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}">
144
+ <label class="font_normal_body">气表品牌</label>
145
+ <v-select :value.sync="model.f_meter_brand" multiple
146
+ v-model="model.f_meter_brand"
147
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
148
+ condition="f_meter_brand in {}"
149
+ close-on-select></v-select>
150
+ </div>
151
+ <!-- <div-->
152
+ <!-- :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"-->
153
+ <!-- class="form-group">-->
154
+ <!-- <label class="font_normal_body">气表品牌</label>-->
155
+ <!-- <v-select :options='$parent.$parent.meter_brand' :value.sync="model.f_meter_brand"-->
156
+ <!-- close-on-select condition="f_meter_brand='{}'"-->
157
+ <!-- placeholder='气表品牌' v-model="model.f_meter_brand"></v-select>-->
158
+ <!-- </div>-->
159
+ <div
160
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
161
+ class="form-group">
162
+ <label class="font_normal_body">客户电话</label>
163
+ <input class="input_search" condition="f_user_phone = '{}'" placeholder='客户电话' style="width:60%"
164
+ type="text"
165
+ v-model="model.f_user_phone">
166
+ </div>
167
+ <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
168
+ class="form-group">
169
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
170
+ <v-select :value.sync="model.f_slice_area" v-model="model.f_slice_area"
171
+ :options='$parent.$parent.area' placeholder='片区/管理站'
172
+ condition="f_slice_area in {}" @change="$parent.$parent.areachange"
173
+ close-on-select>
174
+ </v-select>
175
+ </div>
176
+ <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
177
+ class="form-group">
178
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
179
+ <v-select :value.sync="model.f_residential_area" condition="f_residential_area in {}"
180
+ v-model="model.f_residential_area" style="width: 60%"
181
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
182
+ close-on-select>
183
+ </v-select>
184
+ </div>
185
+ <div
186
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
187
+ class="form-group">
188
+ <label class="font_normal_body">客户地址</label>
189
+ <input class="input_search" condition="f_address like '%{}%'" placeholder='客户地址' style="width:60%"
190
+ type="text" v-model="model.f_address">
191
+ </div>
192
+ <div
193
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
194
+ class="form-group">
195
+ <label class="font_normal_body">客户状态</label>
196
+ <v-select :options='$parent.$parent.userstates' :value.sync="model.f_user_state"
197
+ close-on-select condition="f_user_state='{}'"
198
+ placeholder='客户状态' v-model="model.f_user_state"></v-select>
199
+ </div>
200
+ <div
201
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
202
+ class="form-group">
203
+ <label class="font_normal_body">发卡状态</label>
204
+ <v-select :options='$parent.$parent.f_whether_hairpin' :value.sync="model.f_whether_hairpin"
205
+ close-on-select condition="f_whether_hairpin = '{}'"
206
+ placeholder='发卡状态' v-model="model.f_whether_hairpin"></v-select>
207
+ </div>
208
+ <div
209
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
210
+ class="form-group">
211
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
212
+ <input class="input_search" condition="f_card_id = '{}'" placeholder='卡号' style="width:60%"
213
+ type="text" v-model="model.f_card_id">
214
+ </div>
215
+ <div
216
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
217
+ class="form-group">
218
+ <label class="font_normal_body">用&nbsp;&nbsp;气&nbsp;点</label>
219
+ <input class="input_search" condition="f_userfiles_address like '%{}%'" placeholder='用气点名称' style="width:60%"
220
+ type="text" v-model="model.f_userfiles_address">
221
+ </div>
222
+ <div
223
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
224
+ class="form-group">
225
+ <label class="font_normal_body" style="width: auto">天然气证</label>
226
+ <v-select :options='$parent.$parent.usegas' :value.sync="model.f_send_usegas_card"
227
+ close-on-select condition="f_send_usegas_card='{}'"
228
+ placeholder='天然气使用证' v-model="model.f_send_usegas_card"></v-select>
229
+ </div>
230
+ <div
231
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
232
+ class="form-group">
233
+ <label class="font_normal_body">调&ensp;压&ensp;箱</label>
234
+ <v-select :options='$parent.$parent.adjustables' :search='true'
235
+ :value.sync="model.f_adjustable_id"
236
+ close-on-select
237
+ condition="f_adjustable_id = '{}'" placeholder='调压箱'
238
+ v-model='model.f_adjustable_id'></v-select>
239
+ </div>
240
+ <div
241
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
242
+ class="form-group">
243
+ <label class="font_normal_body">使用类型</label>
244
+ <v-select :options='$parent.$parent.useoptions' :search='true'
245
+ :value.sync="model.f_usetype"
246
+ close-on-select
247
+ condition="f_usetype = '{}'" placeholder='使用类型'
248
+ v-model='model.f_usetype'></v-select>
249
+ </div>
250
+ <div
251
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
252
+ class="form-group">
253
+ <label class="font_normal_body">用户等级</label>
254
+ <v-select :options='$parent.$parent.userlevel' :search='true'
255
+ :value.sync="model.userlevel"
256
+ close-on-select
257
+ condition="f_user_level = '{}'" placeholder='用户等级'
258
+ v-model='model.userlevel'></v-select>
259
+ </div>
260
+ <div
261
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
262
+ class="form-group">
263
+ <label class="font_normal_body">工业备注</label>
264
+ <v-select :options='$parent.$parent.industrycomments' :value.sync="model.f_gongye_type"
265
+ close-on-select condition="f_gongye_type='{}'"
266
+ placeholder='工业备注' v-model="model.f_gongye_type"></v-select>
267
+ </div>
268
+ <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
269
+ class="form-group">
270
+ <label class="font_normal_body" title="建档开始时间">开始时间</label>
271
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
272
+ class="datepicker"
273
+ condition="f_createfile_date >= '{} 00:00:00' "
274
+ placeholder="建档开始时间"
275
+ style="width:60%"
276
+ v-model="model.f_start_date"
277
+ ></datepicker>
278
+ </div>
279
+ <div :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
280
+ class="form-group">
281
+ <label class="font_normal_body" title="建档结束时间">结束时间</label>
282
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
283
+ class="datepicker"
284
+ condition="f_createfile_date <= '{} 23:59:59' "
285
+ placeholder="建档结束时间"
286
+ style="width:60%"
287
+ v-model="model.f_end_date"
288
+ ></datepicker>
289
+ </div>
290
+ <div
291
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
292
+ class="form-group">
293
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
294
+ <input class="input_search" condition="f_meternumber ='{}'" placeholder='表号' style="width:60%"
295
+ type="text" v-model="model.f_meternumber">
296
+ </div>
297
+ </div>
298
+ </div>
299
+ </criteria>
300
+ <data-grid :model="model" class="list_area table_sy" @dblclick="$parent.modifyUser" v-ref:grid partial='list'>
301
+ <template partial='head'>
302
+ <tr>
303
+ <th>
304
+ <nobr>序号</nobr>
305
+ </th>
306
+ <th>
307
+ <nobr>客户编号</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>客户名称</nobr>
311
+ </th>
312
+ <th>
313
+ <nobr>表号</nobr>
314
+ </th>
315
+ <th>
316
+ <nobr>卡号</nobr>
317
+ </th>
318
+ <th>
319
+ <nobr>客户电话</nobr>
320
+ </th>
321
+ <th v-if="!$parent.$parent.$parent.isOper">
322
+ <nobr>地址信息</nobr>
323
+ </th>
324
+ <th>
325
+ <nobr>用户类型</nobr>
326
+ </th>
327
+ <th>
328
+ <nobr>用气性质</nobr>
329
+ </th>
330
+ <th>
331
+ <nobr>气表类型</nobr>
332
+ </th>
333
+ <th>
334
+ <nobr>气表品牌</nobr>
335
+ </th>
336
+ <th>
337
+ <nobr>发卡状态</nobr>
338
+ </th>
339
+ <th v-if="!$parent.$parent.$parent.createFile">
340
+ <nobr>用气点名称</nobr>
341
+ </th>
342
+ <th v-if="!$parent.$parent.$parent.createFile">
343
+ <nobr>状态</nobr>
344
+ </th>
345
+ <th v-if="!$parent.$parent.$parent.createFile">
346
+ <nobr>用户等级</nobr>
347
+ </th>
348
+ <!--<th>-->
349
+ <!--<nobr v-if="this.$login.r.includes('通知单打印')||this.$login.r.includes('流程表打印') ">下载</nobr>-->
350
+ <!--</th>-->
351
+ <th>
352
+ <nobr>操作</nobr>
353
+ </th>
354
+ </tr>
355
+ </template>
356
+ <template partial='body'>
357
+ <td style="text-align: center;">{{$index + 1}}</td>
358
+ <td style="text-align: center;">{{row.f_userinfo_code}}
359
+ </td>
360
+ <td style="text-align: center;">
361
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_user_name}}</b></a></span>
362
+ </td>
363
+ <td style="text-align: center;">{{row.f_meternumber}}</td>
364
+ <td style="text-align: center;">{{row.f_card_id}}</td>
365
+ <td style="text-align: center;">{{row.f_user_phone}}</td>
366
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.isOper">{{row.f_address_detail ? row.f_address + row.f_address_detail :
367
+ row.f_address}}
368
+ </td>
369
+ <td style="text-align: center;">{{row.f_user_type}}</td>
370
+ <td style="text-align: center;">{{row.f_gasproperties}}</td>
371
+ <td style="text-align: center;">{{row.f_meter_classify}}</td>
372
+ <td style="text-align: center;">{{row.f_meter_brand}}</td>
373
+ <td style="text-align: center;">{{row.f_whether_hairpin}}</td>
374
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_userfiles_address}}</td>
375
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_user_state}}</td>
376
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.createFile">{{row.f_user_level}}</td>
377
+ <td style="text-align: center;">
378
+ <button type="button" name="button" class="button_search-2 button_spacing width-60"
379
+ v-if="row.f_user_state === '正常' || row.f_user_state==='预备'"
380
+ @click.stop="$parent.$parent.$parent.modifyUser(row)">修正
381
+ </button>
382
+ </td>
383
+ </template>
384
+ </data-grid>
385
+ </criteria-paged>
386
+ </div>
387
+
388
+ <modal v-if="batcan || batenable" :show.sync="batcan || batenable" width="1500px" v-ref:modal large backdrop="false">
389
+ <article slot="modal-body" class="modal-body">
390
+ <batch-cancellation v-if="batcan" :useraccount="model.rows" @clean="batchClean"
391
+ @success="batchSuccess"></batch-cancellation>
392
+ <batch-enable v-if="batenable" :useraccount="model.rows" @clean="batchClean"
393
+ @success="batchSuccess"></batch-enable>
394
+ </article>
395
+ <footer slot="modal-footer" class="modal-footer">
396
+ </footer>
397
+ </modal>
398
+
399
+
400
+ </div>
401
+ </div>
402
+ <div class="binary-right" :style="{width:'70%'}" v-if="createFile">
403
+ <div class="auto" style="height: 100%; margin-top: 1%" >
404
+ <file-user-general-info :f_filialeid="f_filialeid" :row="row" :areainfo="areainfo"
405
+ :haslimit="config.hasLimit" @success="renew" @clean="clean"
406
+ :isedit="isedit"
407
+ @build-success="buildFileSuccess" v-ref:info></file-user-general-info>
408
+ </div>
409
+ </div>
410
+
411
+ <modal :show.sync="show" width="500px" title="文件导入" v-ref:modal large backdrop="false">
412
+ <article slot="modal-body" class="modal-body">
413
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
414
+ action="rs/file/uploadFile" tagname="导入档案" v-ref:file :headers="headers"></file-upload>
415
+ </article>
416
+ <footer slot="modal-footer" class="modal-footer">
417
+ </footer>
418
+ </modal>
419
+ <modal :show.sync="batchMeterShow" width="500px" title="文件导入" v-ref:modal large backdrop="false">
420
+ <article slot="modal-body" class="modal-body">
421
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
422
+ </article>
423
+ <footer slot="modal-footer" class="modal-footer">
424
+ </footer>
425
+ </modal>
426
+
427
+ <modal :show.sync="xiaohushow" width="500px" title="批量销户" v-ref:modal large backdrop="false">
428
+ <article slot="modal-body" class="modal-body" style="height: 70px">
429
+ <div>
430
+ <label class="font_normal_body" style="line-height: 20px">销户原因</label>
431
+ <input class="input_search"
432
+ placeholder='销户原因'
433
+ type="text" v-model="xiaohureason">
434
+ </div>
435
+ </article>
436
+ <footer slot="modal-footer" class="modal-footer">
437
+ <button class="button_search button_spacing" type="button" @click="batchCancellation()">确认</button>
438
+ <button class="button_search button_spacing" type="button" @click="closexiaohu()">取消</button>
439
+ </footer>
440
+ </modal>
441
+ <modal :show.sync="resshow" width="500px" title="建档成功" v-ref:modal large backdrop="false">
442
+ <article slot="modal-body" class="modal-body" style="height: 70px">
443
+ <div>
444
+ <label class="font_normal_body" style="line-height: 20px">客户编号</label>
445
+ <input class="input_search" condition="f_userinfo_code = '{}'"
446
+ placeholder='客户编号' disabled
447
+ type="text" v-model="resdata">
448
+ </div>
449
+ </article>
450
+ <footer slot="modal-footer" class="modal-footer">
451
+ <button class="button_search button_spacing" type="button" @click="doCopy()">复制</button>
452
+ <button class="button_search button_spacing" type="button" @click="close2()">取消</button>
453
+ </footer>
454
+ </modal>
455
+ <!--<user-flow-sheet :show="printflag" :bill-config='configs' :bill-data='billData' :data='newdata' v-on:toggle="close" @printok="printok" v-ref:printbill></user-flow-sheet>-->
456
+
457
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
458
+ </div>
459
+ <div v-if="isShowDetailInfo">
460
+ <user-info-detail-manage-new :f_userinfo_id="rowData.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
461
+ </div>
462
+ </template>
463
+
464
+ <script>
465
+ import {PagedList, HttpResetClass} from 'vue-client'
466
+ import Vue from 'vue'
467
+ import co from 'co'
468
+ import axios from 'axios'
469
+
470
+ let loadParamGem = async function (self) {
471
+ await self.$getConfig(self, 'UserFiles')
472
+ self.headers.username = Vue.$login.f.name
473
+ self.headers.username = Vue.$login.guid()
474
+ await self.$LoadParams.loadParam(self.f_filialeid)
475
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
476
+ // await self.search()
477
+ self.initAdjustables()
478
+ }
479
+
480
+ let addressInfoGen = async function (self, areainfo) {
481
+ areainfo.isEdit = false
482
+ if (areainfo.file_num > 0 && !areainfo.f_userinfo_id) {
483
+ // 完善
484
+ // 将表档案信息带入,完善客户信息
485
+ let getMetersInfo = await self.$resetpost('rs/logic/sale_getMeterByAddress', {
486
+ data: {
487
+ f_useraddress_id: areainfo.id
488
+ }
489
+ }, {resolveMsg: null, rejectMsg: '获取表信息出错'})
490
+ areainfo.meter = getMetersInfo.data[0]
491
+ }
492
+ if (areainfo.file_num > 0 && areainfo.f_userinfo_id) {
493
+ // 添加 将客户信息带入
494
+ let getUserinfo = await self.$resetpost('rs/sql/saleSingleTable', {
495
+ data: {
496
+ tablename: 't_userinfo',
497
+ condition: `f_userinfo_id = '${areainfo.f_userinfo_id}'`
498
+ }
499
+ }, {resolveMsg: null, rejectMsg: '获取档案出错'})
500
+
501
+ areainfo.user = getUserinfo.data[0]
502
+ }
503
+ self.bulidFiles(areainfo)
504
+ }
505
+
506
+ export default {
507
+ 'title': '档案信息',
508
+ data () {
509
+ return {
510
+ iswork: false,
511
+ isShowDetailInfo: false,
512
+ config: {
513
+ createType: ['address', 'area'], // 建档方式: address-地址建档 area-小区建档
514
+ hasLimit: true
515
+ },
516
+ model: new PagedList('rs/sql/filemanage_getUserfies', 30, {orderitem: '"f_userinfo_id DESC"'}),
517
+ row: null, // 选择一条客户信息,对其进行修改
518
+ areainfo: null, // 小区批量建档使用的数据
519
+ rows: [], // 客户档案选择一条时,将只显示一条信息,rows用来存放整页的数据
520
+ headers: {'username': this.$login.f.name, 'blodid': this.$login.guid()},
521
+ contract: [{label: '全部', value: ' is null or f_contract_id is not null'}, {
522
+ label: '有',
523
+ value: ' is not null'
524
+ },
525
+ {label: '无', value: ' is null'}],
526
+ orderDefault: 'f_createfile_date desc',
527
+ orderFields: {
528
+ f_userinfo_id: 'no'
529
+ },
530
+ initres: {
531
+ org: [this.$login.f.orgid],
532
+ dep: [],
533
+ user: []
534
+ },
535
+ orgcondition: ' and f_orgid = ' + this.$login.f.orgid,
536
+ createFile: false,
537
+
538
+ curorgid: [this.$login.f.orgid],
539
+ f_filialeid: this.$login.f.orgid,
540
+
541
+ // 销户启用
542
+ batcan: false,
543
+ batenable: false,
544
+ version: '',
545
+ xiaohureason: '',
546
+ xiaohushow: false,
547
+ inputtores: this.$appdata.getParam('抄表员'),
548
+ adjustables: [],
549
+
550
+ // 导入组件
551
+ show: false,
552
+
553
+ // 点击建档或修正时控制列表展示, 防止拥挤
554
+ isOper: false,
555
+
556
+ criteriaShow: false,
557
+ industrycomments: this.$appdata.getParam('工业备注') ? [{
558
+ label: '全部',
559
+ value: ''
560
+ }, ...this.$appdata.getParam('工业备注')] : [],
561
+ gasproperties: this.$appdata.getParam('用气性质') ? [{
562
+ label: '全部',
563
+ value: ''
564
+ }, ...this.$appdata.getParam('用气性质')] : [],
565
+ user_type: this.$appdata.getParam('用户类型') ? [{
566
+ label: '全部',
567
+ value: ''
568
+ }, ...this.$appdata.getParam('用户类型')] : [],
569
+ meter_classify: this.$appdata.getParam('气表类型') ? [{
570
+ label: '全部',
571
+ value: ''
572
+ }, ...this.$appdata.getParam('气表类型')] : [],
573
+ meterbrands: [],
574
+ f_whether_hairpin: this.$appdata.getParam('发卡状态') ? [{
575
+ label: '全部',
576
+ value: ''
577
+ }, ...this.$appdata.getParam('发卡状态')] : [],
578
+ showselectaddress: false,
579
+ isedit: false,
580
+ clientWidth: document.body.clientWidth,
581
+ batchMeterShow: false,
582
+ billData: {
583
+ url: 'rs/report/userignition',
584
+ bill: ''
585
+ },
586
+ configs: {
587
+ hasPrint: false, // 默认打票
588
+ hasBillManage: false // 默认不启用发票管理
589
+ },
590
+ printflag: false,
591
+ newdata: {},
592
+ resdata: '',
593
+ resshow: false,
594
+ useoptions: this.$appdata.getParam('使用类型'),
595
+ residentialArea: [], //小区
596
+ area: [],
597
+ areacondition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`,
598
+ userlevel: this.$appdata.getParam('用户等级') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')] : []
599
+ }
600
+ },
601
+ ready () {
602
+ loadParamGem(this);
603
+ this.getaddress();
604
+ this.initAreas(this.$login.f.orgid)
605
+ },
606
+ compiled () {
607
+ window.onresize = () => {
608
+ return (() => {
609
+ this.clientWidth = document.body.clientWidth
610
+ })()
611
+ }
612
+ },
613
+ methods: {
614
+ async areachange(val){
615
+ console.log('片区变了===val:',val,)
616
+ console.log('片区变了:',this.$refs.paged.$refs.criteria.model.f_slice_area[0])
617
+ this.$refs.paged.$refs.criteria.model.f_residential_area = []
618
+ if(this.$refs.paged.$refs.criteria.model.f_slice_area[0]){
619
+ this.areacondition = this.areacondition + ` and f_slice_area = '${this.$refs.paged.$refs.criteria.model.f_slice_area[0]}'`
620
+ this.getaddress()
621
+ this.areacondition = `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
622
+ }else{
623
+ this.getaddress()
624
+ }
625
+ },
626
+ //获取小区下拉框
627
+ async getaddress(){
628
+ console.log('开始获取小区')
629
+ let temp = {
630
+ condition:this.areacondition
631
+ }
632
+ let HttpReset = new HttpResetClass()
633
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {data: temp},
634
+ {resolveMsg: null, rejectMsg: '获取小区失败!'})
635
+ console.log('小区',data)
636
+ this.residentialArea = []
637
+ let house = []
638
+ for (let row of data.data){
639
+ console.log('开始保存小区')
640
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
641
+ }
642
+ this.residentialArea = house
643
+ },
644
+ // 初始化片区
645
+ async initAreas (val) {
646
+ console.log('initAreas:',val)
647
+ if (val) {
648
+ console.log('this.$login.f.id:',this.$login.f.id)
649
+ let http = new HttpResetClass()
650
+ let getAllArea = await http.load('POST', '/rs/search', {
651
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
652
+ userid: this.$login.f.id
653
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
654
+ let arr = getAllArea.data.filter((res) => {
655
+ return res.parentid == val
656
+ })
657
+ console.log('过滤之后的片区', arr)
658
+ this.area = []
659
+ arr.forEach((res) => {
660
+ this.area.push({label: res.name, value: res.name})
661
+ })
662
+ }
663
+ },
664
+ getRes (obj) {
665
+ console.log("-----------------")
666
+ this.orgcondition = obj
667
+ if(this.$refs.paged.$refs.criteria.$refs.sel.depresid.length>0){
668
+ this.f_filialeid=this.$refs.paged.$refs.criteria.$refs.sel.depresid[0]
669
+ }else{
670
+ this.f_filialeid=this.$login.f.orgid
671
+ }
672
+
673
+ },
674
+ downloadFiles(){
675
+ let downurl='rs/downloadfile/file?filename=批量建档导出Excel模板';
676
+ this.$resetget(downurl,{}).then(res=>{
677
+ var link = document.createElement('a');
678
+ link.target="_blank"
679
+ link.href =downurl ;
680
+ link.setAttribute("download", "批量建档导出Excel模板.xlsx"); //指定下载后的文件名,防跳转
681
+ document.body.appendChild(link);
682
+ link.click();
683
+ })
684
+
685
+
686
+ },
687
+ /**
688
+ * 退出用户详细信息页面
689
+ */
690
+ cancel () {
691
+ this.isShowDetailInfo = false
692
+ },
693
+ /**
694
+ * 展示用户详细信息
695
+ * @param obj 传递的row
696
+ */
697
+ dealmsg (obj) {
698
+ console.log('==================>', obj)
699
+ this.isShowDetailInfo = true
700
+ this.rowData = obj
701
+ },
702
+ async doCopy () {
703
+ await this.$copyText(this.resdata)
704
+ this.resshow = false
705
+ this.$showAlert(`内容已复制到剪切板!`, 'success', 2000)
706
+ },
707
+ close () {
708
+ this.printflag = false
709
+ this.clean()
710
+ },
711
+ close2 () {
712
+ this.resshow = false
713
+ },
714
+ closemodal () {
715
+ this.batchMeterShow = false
716
+ },
717
+ createInfoForFile () {
718
+ this.batchMeterShow = true
719
+ },
720
+ hidden () {
721
+ this.criteriaShow = !this.criteriaShow
722
+ },
723
+ search () {
724
+ this.$refs.paged.$refs.criteria.search()
725
+ },
726
+ // selectdata () {
727
+ //
728
+ // },
729
+ modifyUser (row) {
730
+ this.isOper = true
731
+ this.createFile = true
732
+ this.isedit = true
733
+ this.row = row
734
+ this.areainfo = null
735
+ this.row.version = row.version
736
+ },
737
+ clean () {
738
+ this.createFile = false
739
+ this.row = null
740
+ this.isOper = false
741
+ this.areainfo = null
742
+ // this.$refs.paged.$refs.grid.select(null)
743
+ this.$refs.paged.$refs.grid.model.rows = this.rows
744
+ },
745
+ createnewfile () {
746
+ this.isOper = true
747
+ this.createFile = true
748
+ this.isedit = false
749
+ this.row = null
750
+ this.areainfo = null
751
+ this.$refs.info.clearinfo()
752
+ },
753
+ renew () {
754
+ this.row = null
755
+ this.areainfo = null
756
+ this.isOper = false
757
+ this.$refs.info.clearinfo()
758
+ this.clearCondition()
759
+ this.search()
760
+ // 建档或修正档案成功刷新地址列表
761
+ this.$refs.addressfiles.$refs.paged.$refs.cri.search()
762
+ },
763
+ clearCondition () {
764
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
765
+ this.$refs.paged.$refs.criteria.model[key] = ''
766
+ })
767
+ },
768
+
769
+ bulkOperations (name, type) {
770
+ if (name === '批量销户') {
771
+ this.batcan = true
772
+ this.batenable = false
773
+ this.newArea = false
774
+ } else if (name === '批量启用') {
775
+ this.batenable = true
776
+ this.batcan = false
777
+ this.newArea = false
778
+ }
779
+ },
780
+ closexiaohu () {
781
+ this.xiaohushow = false
782
+ },
783
+ xiaohu () {
784
+ this.xiaohushow = true
785
+ },
786
+ batchCancellation () {
787
+ this.$showMessage('此操作无法还原,是否确定要批量销户?', ['confirm', 'cancel']).then(async (res) => {
788
+ if (res === 'confirm') {
789
+ var infoIds = []
790
+ var count = 0
791
+ this.model.rows.forEach((item) => {
792
+ item.f_state = '有效'
793
+ item.f_user_state = item.f_user_state
794
+ item.f_operat_type = '销户'
795
+ item.f_operator = Vue.$login.f.name
796
+ item.f_operatorid = Vue.$login.f.id
797
+ item.f_orgid = Vue.$login.f.orgid
798
+ item.f_orgname = Vue.$login.f.orgs
799
+ item.f_depid = Vue.$login.f.depids
800
+ item.f_depname = Vue.$login.f.deps
801
+ item.f_describe = `${Vue.$login.f.name}对${item.f_user_name}进行批量销户`
802
+ item.f_comments = this.xiaohureason
803
+ infoIds.push(item)
804
+ count++
805
+ })
806
+ await this.$resetpost('rs/logic/saveCancellation', {infoIds: infoIds}, {resolveMsg: null, rejectMsg: '批量销户失败'}).then((res) => {
807
+ if(res && res.data){
808
+ this.$showMessage(`本次批量销户总计: ${res.data.allnum}户 ,成功: ${res.data.successnum}户 ,失败(已经销户): ${res.data.errornum2} 户,失败(待审核): ${res.data.errornum1}户 `);
809
+ }
810
+ this.xiaohushow = false
811
+ this.close()
812
+ this.search()
813
+ })
814
+ }
815
+ })
816
+ },
817
+ batchSuccess () {
818
+ this.clearCondition()
819
+ this.batchClean()
820
+ },
821
+ batchClean () {
822
+ this.batcan = false
823
+ this.batenable = false
824
+ this.newArea = false
825
+ this.search()
826
+ },
827
+ buildFile (row) {
828
+ // console.log('我是建档。。。', row)
829
+ this.row = row
830
+ },
831
+ // 小区批量建档
832
+ bulidFiles (row) {
833
+ this.row = null
834
+ this.areainfo = row
835
+ // 将列表的数据清空
836
+ this.$refs.paged.$refs.grid.model.rows = []
837
+ },
838
+ // 小区批量建档成功
839
+ buildFileSuccess (data) {
840
+ // console.log('建档案成功', data)
841
+ this.model.rows.unshift(data)
842
+ },
843
+ selfSearch (args) {
844
+ args.condition = `${args.condition} ` + this.orgcondition
845
+ this.criteriaShow = false
846
+ this.$refs.paged.$refs.grid.$el.scrollTop = 0
847
+ this.model.search(args.condition, args.model)
848
+ let http = new HttpResetClass()
849
+
850
+ this.clean()
851
+ },
852
+ // printok () {
853
+ // console.log("======================")
854
+ // //this.$dispatch('success')
855
+ // },
856
+ sort (field, rule) {
857
+ // 将所有排序方式设为不排序,实现相互排斥
858
+ for (let key in this.orderFields) {
859
+ if (key === field) {
860
+ this.orderFields[key] = rule
861
+ } else {
862
+ this.orderFields[key] = 'no'
863
+ }
864
+ }
865
+ // 如果新规则不排序,还原为默认排序
866
+ if (rule === 'no') {
867
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
868
+ } else {
869
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
870
+ }
871
+
872
+ this.search()
873
+ },
874
+
875
+ getLocation (row) {
876
+ // 可能会存在添加,完善,建档
877
+ addressInfoGen(this, row)
878
+ },
879
+ areaFiles (row) {
880
+ row.isEdit = true
881
+ row.f_residential_area_id = row.id
882
+ // row.id = null
883
+ delete row.id
884
+ this.bulidFiles(row)
885
+ },
886
+ initAdjustables () {
887
+ console.log('初始化调压箱', this.$GetSaleParam)
888
+ let arr = []
889
+ let filter = this.$login.f.orgid
890
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
891
+ let temp = {}
892
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
893
+ temp.value = `${item.value.id}`
894
+ arr.push(temp)
895
+ })
896
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
897
+ // 初始化气表品牌
898
+ let brandArr = []
899
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
900
+ let temp1 = {}
901
+ temp1.label = item.label
902
+ temp1.value = item.value.f_meter_brand
903
+ brandArr.push(temp1)
904
+ })
905
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
906
+ },
907
+ importFile () {
908
+ this.show = true
909
+ },
910
+ clear () {
911
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
912
+ this.$refs.paged.$refs.criteria.model[key] = []
913
+ })
914
+ },
915
+ getorg (val) {
916
+ this.f_filialeid = val[0]
917
+ }
918
+ },
919
+ computed: {
920
+ userstates () {
921
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
922
+ },
923
+ usegas () {
924
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
925
+ },
926
+ firestates () {
927
+ return [
928
+ {label: '全部', value: ''},
929
+ {label: '点火', value: '1'},
930
+ {label: '未点火', value: '0'}
931
+ ]
932
+ },
933
+ jurisdiction () {
934
+ return this.$login.r
935
+ }
936
+ },
937
+ watch: {
938
+ // 每次查询将查询到的数据存储起来,供选择操作后的替换
939
+ 'model.state' (val) {
940
+ if (val === '正确') {
941
+ this.rows = this.model.rows
942
+ }
943
+ },
944
+ 'f_filialeid' (val) {
945
+ loadParamGem(this)
946
+ }
947
+ },
948
+ events: {
949
+ FileUpload: function (file, res) {
950
+ let data = {
951
+ tablename: 't_userinfo',
952
+ filepath: res.path
953
+ }
954
+ this.$resetpost('rs/logic/import', data, {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
955
+ this.close()
956
+ this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
957
+ this.search()
958
+ })
959
+ },
960
+ 'onFileUpload': async function (file, res) {
961
+ if (this.batchMeterShow) {
962
+ this.iswork = true
963
+ // 当前上传的是批量导入的档案
964
+ let param = {
965
+ filepath: res.f_downloadpath,
966
+ f_operator: this.$login.f.name,
967
+ f_operatorid: this.$login.f.id,
968
+ f_orgid: this.$login.f.orgid,
969
+ f_orgname: this.$login.f.orgs,
970
+ f_depid: this.$login.f.depids,
971
+ f_depname: this.$login.f.deps
972
+ }
973
+ let self = this
974
+ try {
975
+ await axios.post('rs/logic/newSettleFileImport',
976
+ {data: param}, {timeout: 10 * 60 * 1000}).then((res) => {
977
+ if (res.data) {
978
+ self.$showMessage(`本次上传共上传${res.data.totalsum}条数据, 成功${res.data.successnum}条,失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
979
+ self.iswork = false
980
+ // this.$showAlert('导入成功','success',2000)
981
+ }
982
+ })
983
+ } catch (error) {
984
+ if (error.response) {
985
+ if (error.response.status == 500) {
986
+ this.$showAlert('服务繁忙,请重试!!!', 'danger', 3000)
987
+ } else if (error.response.status == 404) {
988
+ this.$showAlert('服务运行中,请耐心等待后进行重试!!', 'danger', 3000)
989
+ } else {
990
+ this.$showAlert(error.response.data, 'danger', 2000)
991
+ }
992
+ console.log(error.response.data)
993
+ console.log(error.response.status)
994
+ console.log(error.response.headers)
995
+ } else if (error.request) {
996
+ console.log(error.request)
997
+ this.$showAlert(error.request, 'danger', 2000)
998
+ } else {
999
+ console.log('Error', error.message)
1000
+ this.$showAlert(error.message, 'danger', 2000)
1001
+ }
1002
+ this.iswork = false
1003
+ }
1004
+ this.batchMeterShow = false
1005
+ // this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
1006
+ this.search()
1007
+ } else {
1008
+ let data = {
1009
+ tablename: 't_userinfo',
1010
+ filepath: res.f_downloadpath,
1011
+ f_operator: this.$login.f.name,
1012
+ f_operatorid: this.$login.f.id,
1013
+ f_orgid: this.$login.f.orgid,
1014
+ f_orgname: this.$login.f.orgs,
1015
+ f_depid: this.$login.f.depids,
1016
+ f_depname: this.$login.f.deps
1017
+ }
1018
+ this.$resetpost('rs/logic/sale_userfilesImp', {data: data}, {
1019
+ resolveMsg: null,
1020
+ rejectMsg: '上传失败'
1021
+ }).then((res) => {
1022
+ this.show = false
1023
+ this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
1024
+ this.search()
1025
+ })
1026
+ }
1027
+ },
1028
+ 'confirmaddress' (res) {
1029
+ console.log('选定地址', res)
1030
+ }
1031
+ }
1032
+ }
1033
+ </script>
1034
+ <style>
1035
+ .nav-tabss ul > li > a {
1036
+ padding: 5px 10px;
1037
+ }
1038
+ </style>