sale-client 3.5.21 → 3.5.24

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