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