sale-client 3.6.460 → 3.6.461

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