sale-client 4.2.70 → 4.2.71

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 (98) hide show
  1. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.2.1/gc.properties +0 -0
  4. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  6. package/.gradle/vcs-1/gc.properties +0 -0
  7. package/build/dev-server.js +36 -58
  8. package/index.html +2 -7
  9. package/package.json +1 -1
  10. package/src/App.vue +1 -1
  11. package/src/components/FilesManage/addressts/FileUserFilests.vue +671 -0
  12. package/src/components/FilesManage/ncUserinfoList.vue +315 -0
  13. package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +107 -0
  14. package/src/components/SendCard/SendCardData.vue +208 -0
  15. package/src/components/accounts/accountAdd.vue +276 -0
  16. package/src/components/accounts/accountsList.vue +183 -0
  17. package/src/components/accounts/accountsManage.vue +87 -0
  18. package/src/components/common/chargeinfo/chargeinfo.vue +55 -0
  19. package/src/components/common/userinfo_detail/config/exportConfig.js +85 -0
  20. package/src/components/ncarchives/ncArchivesAdd.vue +468 -0
  21. package/src/components/ncarchives/ncArchivesList.vue +159 -0
  22. package/src/components/ncarchives/ncUserfilesList.vue +373 -0
  23. package/src/components/ncarchives/ncarchivesmanage.vue +80 -0
  24. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  25. package/src/components/revenue/IOTArrears/arrears.vue +323 -0
  26. package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +369 -0
  27. package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +59 -0
  28. package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +59 -0
  29. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +73 -0
  30. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +73 -0
  31. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +199 -0
  32. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +24 -0
  33. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +24 -0
  34. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +185 -0
  35. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +185 -0
  36. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  37. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +356 -0
  38. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +148 -0
  39. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  40. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +136 -0
  41. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  42. package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +65 -0
  43. package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +483 -0
  44. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +279 -0
  45. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +265 -0
  46. package/src/components/thirdapply/thirdAdd.vue +289 -0
  47. package/src/components/thirdapply/thirdList.vue +162 -0
  48. package/src/components/thirdapply/thirdManage.vue +74 -0
  49. package/src/components/webMeter/InstructQuery.vue +414 -0
  50. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  51. package/src/components/webMeter/ParamSet/ParamSet.vue +556 -0
  52. package/src/components/webMeter/ParamSet/ParamSetForm.vue +296 -0
  53. package/src/components/webMeter/WebUserHand.vue +483 -0
  54. package/src/components/webMeter/instructionView/NewQueryInstruct.vue +509 -0
  55. package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +48 -0
  56. package/src/components/webMeter/webManage/NewMeterList.vue +461 -0
  57. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  58. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  59. package/src/filiale/bayan/StockListmain.vue +543 -543
  60. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
  61. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
  62. package/src/filiale/bazhong/sale.js +8 -8
  63. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  64. package/src/filiale/jinhuang/WebHand.vue +1026 -1026
  65. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  66. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  67. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  68. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  69. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  70. package/src/filiale/ronghao/CardService.js +2144 -2144
  71. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  72. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  73. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  74. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  75. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  76. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  77. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  78. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  79. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  80. package/src/filiale/ronghao/Upload.vue +654 -654
  81. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  82. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  83. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  84. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  85. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  86. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  87. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  88. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  89. package/src/filiale/ronghao/specificInformation.vue +537 -537
  90. package/src/filiale/yangchun/ChargeList.vue +954 -954
  91. package/src/filiale/yuncheng/FileManageService.js +469 -469
  92. package/src/filiale/yuncheng/IndustryCommerceHand.vue +5 -0
  93. package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +38 -0
  94. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  95. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  96. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  97. package/src/plugins/FileManageServicets.js +214 -0
  98. package/src/plugins/GetImg.js +53 -0
@@ -0,0 +1,671 @@
1
+ <template>
2
+ <div id="file-user-files" class="binary">
3
+ <div :class="{'basic-main': !createFile,'binary-left': createFile}" >
4
+ <div class="flex" style="flex: 1;">
5
+ <div style="flex: 1.2">
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria @condition-changed="$parent.selfSearch" partial='criteria' v-ref:criteria>
8
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
9
+ <div class="row">
10
+ <div
11
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
12
+ class="form-group">
13
+ <label class="font_normal_body">组织机构</label>
14
+ <res-select
15
+ :initresid='$parent.$parent.curorgid'
16
+ @res-select="$parent.$parent.getorg"
17
+ is-mul="false"
18
+ restype='organization'
19
+ >
20
+ </res-select>
21
+ </div>
22
+ <div
23
+ :class="{'col-sm-2':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
24
+ class="form-group"
25
+ v-if="$parent.$parent.clientWidth>1600">
26
+ <label class="font_normal_body">客户编号</label>
27
+ <input class="input_search" condition="f_userinfo_code = '{}'"
28
+ placeholder='客户编号'
29
+ style="width:60%" type="text" v-model="model.f_userinfo_code">
30
+ </div>
31
+ <div
32
+ :class="{'col-sm-2':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
33
+ class="form-group"
34
+ v-if="$parent.$parent.clientWidth<=1600&&!$parent.$parent.createFile">
35
+ <label class="font_normal_body">客户编号</label>
36
+ <input class="input_search" condition="f_userinfo_code = '{}'"
37
+ placeholder='客户编号'
38
+ style="width:60%" type="text" v-model="model.f_userinfo_code">
39
+ </div>
40
+ <div
41
+ :class="{'col-sm-2':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
42
+ class="form-group" v-if="!$parent.$parent.createFile">
43
+ <label class="font_normal_body">客户名称</label>
44
+ <input class="input_search" condition="f_user_name like '%{}%'"
45
+ placeholder='客户姓名'
46
+ style="width:60%" type="text" v-model="model.f_user_name">
47
+ </div>
48
+ <div
49
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
50
+ class="form-group button-range">
51
+ <button v-show="$parent.$parent.downloadfileshow" class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.createInfoForFile()">批量建档
52
+ </button>
53
+ <button class="button_search button_spacing right" style="width: 80px" @click="$parent.$parent.downloadFiles()">模板下载
54
+ </button>
55
+ <button @click="$parent.$parent.createnewfile()" class="button_search button_spacing"
56
+ style="float: right">单户建档
57
+ </button>
58
+ <button @click="search(), $parent.$parent.clean()" class="button_search button_spacing"
59
+ style="float: right">查询
60
+ </button>
61
+ <button @click="$parent.$parent.clear()" class="button_clear button_spacing"
62
+ style="float: right">清空
63
+ </button>
64
+ <button @click="$parent.$parent.importFile" class="button_export button_spacing"
65
+ style="float: right" v-if="false">导入
66
+ </button>
67
+ <!-- <button class="button_search" style="width: 90px" @click=" $parent.$parent.selectaddress()">选择地址</button>-->
68
+ <button @click="$parent.$parent.bulkOperations('批量销户', 'batch-cancellation')"
69
+ class="button_search button_spacing"
70
+ style="float: right"
71
+ v-if="$parent.$parent.rows && $parent.$parent.rows.length === 1 && $parent.$parent.rows[0].f_user_state === '正常'">
72
+ 销户
73
+ </button>
74
+ <button @click="$parent.$parent.bulkOperations('批量启用', 'batch-enable')"
75
+ class="button_search button_spacing"
76
+ style="float: right"
77
+ v-if="$parent.$parent.rows && $parent.$parent.rows.length === 1 && $parent.$parent.rows[0].f_user_state === '销户'">
78
+ 启用
79
+ </button>
80
+ <div
81
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
82
+ @click="$parent.$parent.hidden()"
83
+ class="button_spacing"
84
+ style="float: right"></div>
85
+ </div>
86
+ </div>
87
+ <div class="row" v-if="$parent.$parent.criteriaShow">
88
+ <div
89
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
90
+ class="form-group"
91
+ v-if="$parent.$parent.clientWidth<1600&&$parent.$parent.createFile">
92
+ <label class="font_normal_body">客户编号</label>
93
+ <input class="input_search" condition="f_userinfo_code = '{}'"
94
+ placeholder='客户编号'
95
+ style="width:60%" type="text" v-model="model.f_userinfo_code">
96
+ </div>
97
+ <div
98
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
99
+ class="form-group" v-if="$parent.$parent.createFile">
100
+ <label class="font_normal_body">客户名称</label>
101
+ <input class="input_search" condition="f_user_name like '%{}%'"
102
+ placeholder='客户姓名'
103
+ style="width:60%" type="text" v-model="model.f_user_name">
104
+ </div>
105
+ <div
106
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
107
+ class="form-group">
108
+ <label class="font_normal_body">旧客户号</label>
109
+ <input class="input_search" condition="f_olduserinfo_code = '{}'" placeholder='客户编号'
110
+ style="width:60%"
111
+ type="text"
112
+ v-model="model.f_olduserinfo_code">
113
+ </div>
114
+ <div
115
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
116
+ class="form-group">
117
+ <label class="font_normal_body">用气性质</label>
118
+ <v-select :options='$parent.$parent.gasproperties' :value.sync="model.f_gasproperties"
119
+ close-on-select condition="f_gasproperties='{}'"
120
+ placeholder='用气性质' v-model="model.f_gasproperties"></v-select>
121
+ </div>
122
+ <div
123
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
124
+ class="form-group">
125
+ <label class="font_normal_body">客户电话</label>
126
+ <input class="input_search" condition="f_user_phone = '{}'" placeholder='客户电话' style="width:60%"
127
+ type="text"
128
+ v-model="model.f_user_phone">
129
+ </div>
130
+ <div
131
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
132
+ class="form-group">
133
+ <label class="font_normal_body">客户地址</label>
134
+ <input class="input_search" condition="f_address like '%{}%'" placeholder='客户地址' style="width:60%"
135
+ type="text" v-model="model.f_address">
136
+ </div>
137
+ <div
138
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
139
+ class="form-group">
140
+ <label class="font_normal_body">客户状态</label>
141
+ <v-select :options='$parent.$parent.userstates' :value.sync="model.f_user_state"
142
+ close-on-select condition="f_user_state='{}'"
143
+ placeholder='客户状态' v-model="model.f_user_state"></v-select>
144
+ </div>
145
+ <div
146
+ :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
147
+ class="form-group">
148
+ <label class="font_normal_body">调&ensp;压&ensp;箱</label>
149
+ <v-select :options='$parent.$parent.adjustables' :search='true'
150
+ :value.sync="model.f_adjustable_id"
151
+ close-on-select
152
+ condition="f_adjustable_id = '{}'" placeholder='调压箱'
153
+ v-model='model.f_adjustable_id'></v-select>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </criteria>
158
+ <data-grid :model="model" class="list_area table_sy" v-ref:grid partial='list'>
159
+ <template partial='head'>
160
+ <tr>
161
+ <th>
162
+ <nobr>序号</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>客户编号</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>客户名称</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>客户电话</nobr>
172
+ </th>
173
+ <th v-if="!$parent.$parent.$parent.isOper">
174
+ <nobr>地址信息</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>状态</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>用户等级</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>操作</nobr>
184
+ </th>
185
+ </tr>
186
+ </template>
187
+ <template partial='body'>
188
+ <td style="text-align: center;">{{$index + 1}}</td>
189
+ <td style="text-align: center;">{{row.f_userinfo_code}}</td>
190
+ <td style="text-align: center;">{{row.f_user_name}}</td>
191
+ <td style="text-align: center;">{{row.f_user_phone}}</td>
192
+ <td style="text-align: center;" v-if="!$parent.$parent.$parent.isOper">{{row.f_address_detail ? row.f_address + row.f_address_detail :
193
+ row.f_address}}
194
+ </td>
195
+ <td style="text-align: center;">{{row.f_user_state}}</td>
196
+ <td style="text-align: center;">{{row.f_user_level==null||row.f_user_level==''?'无':row.f_user_level}}</td>
197
+ <td style="text-align: center;">
198
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_user_state === '正常' || row.f_user_state === '预备'"
199
+ @click.stop="$parent.$parent.$parent.modifyUser(row)">修正
200
+ </button>
201
+ </td>
202
+ </template>
203
+ </data-grid>
204
+ </criteria-paged>
205
+ </div>
206
+ <div v-if="batcan || batenable">
207
+ <batch-cancellationts v-if="batcan" :useraccount="model.rows" @clean="batchClean"
208
+ @success="batchSuccess"></batch-cancellationts>
209
+ <batch-enablets v-if="batenable" :useraccount="model.rows" @clean="batchClean"
210
+ @success="batchSuccess"></batch-enablets>
211
+ </div>
212
+ </div>
213
+ </div>
214
+ <div class="binary-right" :style="{width:'70%'}" v-if="createFile">
215
+ <div class="auto" style="height: 100%; margin-top: 1%" >
216
+ <file-user-general-info-ts v-ref:newinfo :f_filialeid="f_filialeid" :row="row" :areainfo="areainfo"
217
+ :haslimit="config.hasLimit" @success="renew" @clean="clean"
218
+ :isedit.sync="isedit"
219
+ @build-success="buildFileSuccess"></file-user-general-info-ts>
220
+ </div>
221
+ </div>
222
+
223
+ <modal :show.sync="show" width="500px" title="文件导入" v-ref:modal large backdrop="false">
224
+ <article slot="modal-body" class="modal-body">
225
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
226
+ action="rs/file/uploadFile" tagname="导入档案" v-ref:file :headers="headers"></file-upload>
227
+ </article>
228
+ <footer slot="modal-footer" class="modal-footer">
229
+ </footer>
230
+ </modal>
231
+ <modal :show.sync="batchMeterShow" width="500px" title="文件导入" v-ref:modal large backdrop="false">
232
+ <article slot="modal-body" class="modal-body text-center">
233
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" style="margin-left:50px;padding-top:10px;text-align:center!important" action="rs/file/uploadFile" tagname="确定" multiple v-ref:upfile></file-upload>
234
+ </article>
235
+ <footer slot="modal-footer" class="modal-footer">
236
+ </footer>
237
+ </modal>
238
+
239
+ </div>
240
+ </template>
241
+
242
+ <script>
243
+
244
+ import {PagedList, HttpResetClass} from 'vue-client'
245
+ import Vue from 'vue'
246
+ import axios from 'axios'
247
+
248
+ let loadParamGem = async function (self) {
249
+ await self.$getConfig(self, 'UserFiles')
250
+ self.headers.username = Vue.$login.f.name
251
+ self.headers.username = Vue.$login.guid()
252
+ await self.$LoadParams.loadParam(self.f_filialeid)
253
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
254
+ // await self.search()
255
+ self.initAdjustables()
256
+ }
257
+
258
+ let addressInfoGen = async function (self, areainfo) {
259
+ areainfo.isEdit = false
260
+ if (areainfo.file_num > 0 && !areainfo.f_userinfo_id) {
261
+ // 完善
262
+ // 将表档案信息带入,完善客户信息
263
+ let getMetersInfo = await self.$resetpost('rs/logic/sale_getMeterByAddress', {
264
+ data: {
265
+ f_useraddress_id: areainfo.id
266
+ }
267
+ }, {resolveMsg: null, rejectMsg: '获取表信息出错'})
268
+ areainfo.meter = getMetersInfo.data[0]
269
+ }
270
+ if (areainfo.file_num > 0 && areainfo.f_userinfo_id) {
271
+ // 添加 将客户信息带入
272
+ let getUserinfo = await self.$resetpost('rs/sql/saleSingleTable', {
273
+ data: {
274
+ tablename: 't_userinfo',
275
+ condition: `f_userinfo_id = '${areainfo.f_userinfo_id}'`
276
+ }
277
+ }, {resolveMsg: null, rejectMsg: '获取档案出错'})
278
+
279
+ areainfo.user = getUserinfo.data[0]
280
+ }
281
+ self.bulidFiles(areainfo)
282
+ }
283
+
284
+ export default {
285
+ 'title': '档案信息(未整合用户)',
286
+ data() {
287
+ return {
288
+ initStyle:"col-sm-3 form-group",
289
+ batchMeterShow:false,
290
+ config: {
291
+ createType: ['address', 'area'], // 建档方式: address-地址建档 area-小区建档
292
+ hasLimit: true
293
+ },
294
+ model: new PagedList('rs/sql/filemanage_getUserfies_ts', 30, {orderitem: '"f_userinfo_id DESC"'}),
295
+ row: null, // 选择一条客户信息,对其进行修改
296
+ areainfo: null, // 小区批量建档使用的数据
297
+ rows: [], // 客户档案选择一条时,将只显示一条信息,rows用来存放整页的数据
298
+ headers: {'username': this.$login.f.name, 'blodid': this.$login.guid()},
299
+ contract: [{label: '全部', value: ' is null or f_contract_id is not null'}, {
300
+ label: '有',
301
+ value: ' is not null'
302
+ },
303
+ {label: '无', value: ' is null'}],
304
+ orderDefault: 'f_createfile_date desc',
305
+ orderFields: {
306
+ f_userinfo_id: 'no'
307
+ },
308
+ downloadfileshow: false,
309
+ initresinput:{
310
+ org:[this.$login.f.orgid],
311
+ dep:[this.$login.f.depids],
312
+ user:[this.$login.f.id],
313
+ },
314
+ createFile: false,
315
+
316
+ curorgid: [this.$login.f.orgid],
317
+ f_filialeid: this.$login.f.orgid,
318
+
319
+ // 销户启用
320
+ batcan: false,
321
+ batenable: false,
322
+
323
+ inputtores: this.$appdata.getParam('抄表员'),
324
+ adjustables: [],
325
+
326
+ // 导入组件
327
+ show: false,
328
+
329
+ // 点击建档或修正时控制列表展示, 防止拥挤
330
+ isOper: false,
331
+
332
+ criteriaShow: false,
333
+
334
+ gasproperties: this.$appdata.getParam('用气性质') ? [{
335
+ label: '全部',
336
+ value: ''
337
+ }, ...this.$appdata.getParam('用气性质')] : [],
338
+
339
+ showselectaddress: false,
340
+ isedit: false,
341
+ clientWidth: document.body.clientWidth,
342
+ inputid:{
343
+ org:'',
344
+ dep:'',
345
+ use:''
346
+ },
347
+ inputname:{
348
+ org:'',
349
+ dep:'',
350
+ use:''
351
+ }
352
+ }
353
+ },
354
+ ready () {
355
+ loadParamGem(this)
356
+ this.downloadfileshow = true
357
+ },
358
+ compiled() {
359
+ window.onresize = () => {
360
+ return (() => {
361
+ this.clientWidth = document.body.clientWidth
362
+ })();
363
+ };
364
+ },
365
+ methods: {
366
+ getareainput(res){
367
+ },
368
+ getdepinput(res){
369
+ },
370
+ downloadFiles(){
371
+ let downurl='rs/downloadfile/file?filename=批量建档导入Excel模板';
372
+ this.$resetget(downurl,{}).then(res=>{
373
+ var link = document.createElement('a');
374
+ link.target="_blank"
375
+ link.href =downurl ;
376
+ link.setAttribute("download", "批量建档导入Excel模板.xlsx"); //指定下载后的文件名,防跳转
377
+ document.body.appendChild(link);
378
+ link.click();
379
+ })
380
+ },
381
+ createInfoForFile(){
382
+ this.batchMeterShow = true;
383
+ },
384
+ hidden() {
385
+ this.criteriaShow = !this.criteriaShow
386
+ },
387
+ search() {
388
+ this.$refs.paged.$refs.criteria.search()
389
+ },
390
+ modifyUser(row) {
391
+ this.isOper = true
392
+ this.createFile = true
393
+ this.isedit = true
394
+ this.row = row
395
+ this.areainfo = null
396
+ },
397
+ clean() {
398
+ this.createFile = false
399
+ this.row = null
400
+ this.isOper = false
401
+ this.areainfo = null
402
+ this.$refs.paged.$refs.grid.select(null)
403
+ this.$refs.paged.$refs.grid.model.rows = this.rows
404
+ },
405
+ createnewfile () {
406
+ this.isOper = true
407
+ this.createFile = true
408
+ this.isedit = false
409
+ this.row = null
410
+ this.areainfo = null
411
+ if(this.$refs.newinfo){
412
+ this.$refs.newinfo.clearinfo();
413
+ }
414
+ },
415
+ renew() {
416
+ this.row = null
417
+ this.areainfo = null
418
+ this.isOper = false
419
+ this.$refs.newinfo.clearinfo()
420
+ this.clearCondition()
421
+ this.search()
422
+ //建档或修正档案成功刷新地址列表
423
+ this.$refs.addressfiles.$refs.paged.$refs.cri.search()
424
+ },
425
+ clearCondition() {
426
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
427
+ this.$refs.paged.$refs.criteria.model[key] = ''
428
+ })
429
+ },
430
+
431
+ bulkOperations(name, type) {
432
+ if (name === '批量销户') {
433
+ this.batcan = true
434
+ this.batenable = false
435
+ this.newArea = false
436
+ } else if (name === '批量启用') {
437
+ this.batenable = true
438
+ this.batcan = false
439
+ this.newArea = false
440
+ }
441
+ },
442
+ batchSuccess() {
443
+ this.clearCondition()
444
+ this.batchClean()
445
+ },
446
+ batchClean() {
447
+ this.batcan = false
448
+ this.batenable = false
449
+ this.newArea = false
450
+ this.search()
451
+ },
452
+ buildFile(row) {
453
+ // console.log('我是建档。。。', row)
454
+ this.row = row
455
+ },
456
+ // 小区批量建档
457
+ bulidFiles(row) {
458
+ this.row = null
459
+ this.areainfo = row
460
+ // 将列表的数据清空
461
+ this.$refs.paged.$refs.grid.model.rows = []
462
+ },
463
+ // 小区批量建档成功
464
+ buildFileSuccess(data) {
465
+ // console.log('建档案成功', data)
466
+ this.model.rows.unshift(data)
467
+ },
468
+ selfSearch(args) {
469
+ console.log('开始查询档案', this.f_filialeid)
470
+ if (!this.f_filialeid) {
471
+ this.f_filialeid = this.$login.f.orgid
472
+ }
473
+ args.condition = `${args.condition} and f_filialeid = '${this.f_filialeid}'`
474
+ this.criteriaShow = false
475
+ this.$refs.paged.$refs.grid.$el.scrollTop = 0
476
+ this.model.search(args.condition, args.model)
477
+ this.clean()
478
+ },
479
+ sort(field, rule) {
480
+ // 将所有排序方式设为不排序,实现相互排斥
481
+ for (let key in this.orderFields) {
482
+ if (key === field) {
483
+ this.orderFields[key] = rule
484
+ } else {
485
+ this.orderFields[key] = 'no'
486
+ }
487
+ }
488
+ // 如果新规则不排序,还原为默认排序
489
+ if (rule === 'no') {
490
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
491
+ } else {
492
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
493
+ }
494
+
495
+ this.search()
496
+ },
497
+
498
+ getLocation(row) {
499
+ // 可能会存在添加,完善,建档
500
+ console.log('进入', row)
501
+
502
+ addressInfoGen(this, row)
503
+
504
+ },
505
+ areaFiles(row) {
506
+ row.isEdit = true
507
+ row.f_residential_area_id = row.id
508
+ // row.id = null
509
+ delete row.id
510
+ this.bulidFiles(row)
511
+ },
512
+
513
+ initAdjustables() {
514
+ console.log('初始化调压箱', this.$GetSaleParam)
515
+ let arr = []
516
+ let filter = this.$login.f.orgid
517
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
518
+ let temp = {}
519
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
520
+ temp.value = `${item.value.id}`
521
+ arr.push(temp)
522
+ })
523
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
524
+ },
525
+ importFile() {
526
+ this.show = true
527
+ },
528
+ clear() {
529
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
530
+ this.$refs.paged.$refs.criteria.model[key] = []
531
+ })
532
+ },
533
+ getorg(val) {
534
+ this.f_filialeid = val[0]
535
+ }
536
+ },
537
+ computed: {
538
+ userstates() {
539
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
540
+ },
541
+ areas() {
542
+ let rs = []
543
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
544
+ let temp = {
545
+ label: this.$login.f.f_allArea[i].label,
546
+ value: this.$login.f.f_allArea[i].label
547
+ }
548
+ rs.push(temp)
549
+ }
550
+ return [{label: '全部', value: ''}, ...rs]
551
+ },
552
+ firestates() {
553
+ return [
554
+ {label: '全部', value: ''},
555
+ {label: '点火', value: '1'},
556
+ {label: '未点火', value: '0'}
557
+ ]
558
+ },
559
+ jurisdiction() {
560
+ return this.$login.r
561
+ }
562
+ },
563
+ watch: {
564
+ // 每次查询将查询到的数据存储起来,供选择操作后的替换
565
+ 'model.state'(val) {
566
+ if (val === '正确') {
567
+ this.rows = this.model.rows
568
+ }
569
+ },
570
+ 'f_filialeid'(val) {
571
+ loadParamGem(this)
572
+ }
573
+ },
574
+ events: {
575
+ FileUpload: function (file, res) {
576
+ let data = {
577
+ tablename: 't_userinfo',
578
+ filepath: res.path
579
+ }
580
+ this.$resetpost('rs/logic/import', data, {resolveMsg: null, rejectMsg: '上传失败'}).then((res) => {
581
+ this.close()
582
+ this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
583
+ this.search()
584
+ })
585
+ },
586
+ 'onFileUpload': async function (file, res) {
587
+ if (this.batchMeterShow) {
588
+ this.iswork = true
589
+ // 当前上传的是批量导入的档案
590
+ let param = {
591
+ filepath: res.f_downloadpath,
592
+ f_operator: this.$login.f.name,
593
+ f_operatorid: this.$login.f.id,
594
+ f_orgid: this.$login.f.orgid,
595
+ f_orgname: this.$login.f.orgs,
596
+ f_depid: this.$login.f.depids,
597
+ f_depname: this.$login.f.deps
598
+ }
599
+ let self = this
600
+ try {
601
+ await axios.post('rs/logic/newSettleFileImport_ts',
602
+ {data: param}, {timeout: 10 * 60 * 1000}).then((res) => {
603
+ if (res.data) {
604
+ self.$showMessage(`本次上传共上传${res.data.totalsum}条数据, 成功${res.data.successnum}条,失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
605
+ self.iswork = false
606
+ console.log(self.$refs.upfile)
607
+ console.log(self.$refs.upfile.myFiles)
608
+ self.$refs.upfile.myFiles = []
609
+ document.getElementById("useraddressUploadFile").value=null
610
+ console.log()
611
+ // this.$showAlert('导入成功','success',2000)
612
+ }
613
+ })
614
+ } catch (error) {
615
+ if (error.response) {
616
+ if (error.response.status == 500) {
617
+ this.$refs.upfile.myFiles = []
618
+ document.getElementById("useraddressUploadFile").value=null
619
+ this.$showAlert('服务繁忙,请重试!!!', 'danger', 3000)
620
+ } else if (error.response.status == 404) {
621
+ this.$showAlert('服务运行中,请耐心等待后进行重试!!', 'danger', 3000)
622
+ } else {
623
+ this.$showAlert(error.response.data, 'danger', 2000)
624
+ }
625
+ console.log(error.response.data)
626
+ console.log(error.response.status)
627
+ console.log(error.response.headers)
628
+ } else if (error.request) {
629
+ console.log(error.request)
630
+ this.$showAlert(error.request, 'danger', 2000)
631
+ } else {
632
+ console.log('Error', error.message)
633
+ this.$showAlert(error.message, 'danger', 2000)
634
+ }
635
+ this.iswork = false
636
+ }
637
+ this.batchMeterShow = false
638
+ // this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
639
+ this.search()
640
+ } else {
641
+ let data = {
642
+ tablename: 't_userinfo',
643
+ filepath: res.f_downloadpath,
644
+ f_operator: this.$login.f.name,
645
+ f_operatorid: this.$login.f.id,
646
+ f_orgid: this.$login.f.orgid,
647
+ f_orgname: this.$login.f.orgs,
648
+ f_depid: this.$login.f.depids,
649
+ f_depname: this.$login.f.deps
650
+ }
651
+ this.$resetpost('rs/logic/sale_userfilesImp', {data: data}, {
652
+ resolveMsg: null,
653
+ rejectMsg: '上传失败'
654
+ }).then((res) => {
655
+ this.show = false
656
+ this.$showAlert(`一共上传${res.data.total}条数据, 成功${res.data.successnum}条`, 'success', 2000)
657
+ this.search()
658
+ })
659
+ }
660
+ },
661
+ 'confirmaddress' (res) {
662
+ console.log('选定地址', res)
663
+ }
664
+ }
665
+ }
666
+ </script>
667
+ <style>
668
+ .nav-tabss ul > li > a {
669
+ padding: 5px 10px;
670
+ }
671
+ </style>