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