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