manage-client 3.2.65-aode → 3.2.66-aode

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 (69) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/ArchivesManage.vue +3 -0
  24. package/src/components/sale/filesquery/ChangeUserQuery.vue +394 -0
  25. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  26. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  27. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  28. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  29. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  30. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  31. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  32. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  33. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  34. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  35. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  36. package/src/components/sale/report/aode/DayReportList.vue +516 -516
  37. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  38. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  39. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  40. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  41. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  42. package/src/components/sale/report/aode/iot/ReportQuery.vue +387 -387
  43. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  44. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  45. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  46. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  47. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  48. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  49. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  50. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  51. package/src/components/webmeter/DrillData/NewUserGasAll.vue +564 -564
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  53. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  54. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  55. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  56. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  57. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  58. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  59. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  60. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  61. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  62. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  63. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  64. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  65. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  66. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  67. package/src/components/webmeter/report/ReportList.vue +211 -211
  68. package/src/main.js +56 -56
  69. package/src/saleManage.js +4 -0
@@ -1,506 +1,506 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex" v-if="!showinfo">
5
-
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
12
- <res-select :initresid="$parent.$parent.orgid"
13
- style="width:60%"
14
- @res-select="$parent.$parent.getRes"
15
- restype='organization'>
16
- </res-select>
17
- </div>
18
- <div class="col-sm-2 form-group">
19
- <label class="font_normal_body">客户编号</label>
20
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
21
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
22
- </div>
23
- <div class="col-sm-2 form-group">
24
- <label for="startDate" class="font_normal_body">开始日期</label>
25
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
26
- v-model="model.startDate"
27
- :value.sync="model.startDate"
28
- :format="'yyyy-MM-dd'"
29
- :show-reset-button="true"
30
- condition="f_open_date >= '{} 00:00:00'">
31
- </datepicker>
32
- </div>
33
- <div class="col-sm-2 form-group">
34
- <label for="endDate" class="font_normal_body">结束日期</label>
35
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
36
- v-model="model.endDate"
37
- :value.sync="model.endDate"
38
- :format="'yyyy-MM-dd'"
39
- :show-reset-button="true"
40
- condition="f_open_date <= '{} 23:59:59'">
41
- </datepicker>
42
- </div>
43
-
44
- <div class="span" style="float:right;">
45
- <button class="button_search button_spacing" @click="search()">查询</button>
46
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
47
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
48
-
49
- <export-excel-plus :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
50
- :field="$parent.$parent.getfield"
51
- sqlurl="rs/logic/exportfileplus" sql-name="newAccountQuery" :template-name="$parent.$parent.getName"
52
- :choose-col="true"></export-excel-plus>
53
-
54
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
55
- </div>
56
- </div>
57
- <div class="row" v-show="$parent.$parent.criteriaShow">
58
- <div class="col-sm-2 form-group">
59
- <label class="font_normal_body">客户名称</label>
60
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
61
- condition="f_user_name like '%{}%'" placeholder="客户名称">
62
- </div>
63
- <div class="col-sm-2 form-group">
64
- <label class="font_normal_body">用气性质</label>
65
- <v-select :value.sync="model.f_gasproperties" :multiple="true"
66
- v-model="model.f_gasproperties"
67
- :options='$parent.$parent.newuseroptiones' placeholder='请选择'
68
- condition=" f_gasproperties in {}"
69
- close-on-select></v-select>
70
- </div>
71
- <div class="col-sm-2">
72
- <label class="font_normal_body">气表分类</label>
73
- <v-select :value.sync="model.f_meter_classify"
74
- v-model="model.f_meter_classify"
75
- :options='$parent.$parent.metertypes' placeholder='请选择'
76
- condition="f_meter_classify = '{}'"
77
- close-on-select></v-select>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">气表品牌</label>
81
- <v-select :value.sync="model.f_meter_brand"
82
- v-model="model.f_meter_brand"
83
- :options='$parent.$parent.meterbrands' placeholder='请选择'
84
- condition="f_meter_brand = '{}'"
85
- close-on-select></v-select>
86
- </div>
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">用户状态</label>
89
- <v-select :value.sync="model.f_user_state"
90
- v-model="model.f_user_state"
91
- :options='$parent.$parent.getusertypes' placeholder='请选择'
92
- condition="f_user_state = '{}'"
93
- close-on-select></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">表具状态</label>
97
- <v-select :value.sync="model.f_table_state"
98
- v-model="model.f_table_state"
99
- :options='$parent.$parent.gettabletypes' placeholder='请选择'
100
- condition="f_table_state = '{}'"
101
- close-on-select></v-select>
102
- </div>
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">是否黑名单</label>
105
- <v-select :value.sync="model.f_user_back"
106
- v-model="model.f_user_back"
107
- :options='$parent.$parent.backstates' placeholder='请选择'
108
- condition="f_user_back = '{}'"
109
- close-on-select></v-select>
110
- </div>
111
- <div class="col-sm-2 form-group">
112
- <label class="font_normal_body">是否置换</label>
113
- <v-select :value.sync="model.f_substite"
114
- v-model="model.f_substite"
115
- :options='$parent.$parent.backstates' placeholder='请选择'
116
- condition="f_substite = '{}'"
117
- close-on-select></v-select>
118
- </div>
119
- <div class="col-sm-2 form-group">
120
- <label class="font_normal_body">是否已缴费</label>
121
- <v-select :value.sync="model.sellnum"
122
- v-model="model.sellnum"
123
- :options='$parent.$parent.sellnumoptions' placeholder='请选择'
124
- condition=" {} "
125
- close-on-select></v-select>
126
- </div>
127
- <div class="col-sm-4 form-group">
128
- <label class="font_normal_body">客户地址</label>
129
- <input type="text" style="width:80%" class="input_search" v-model="model.f_address"
130
- condition="f_address like '%{}%' " placeholder="客户地址">
131
- </div>
132
- </div>
133
-
134
- </div>
135
- </criteria>
136
-
137
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
138
- <template partial='head'>
139
- <tr>
140
- <th>
141
- <nobr>客户编号</nobr>
142
- </th>
143
- <th>
144
- <nobr>客户名称</nobr>
145
- </th>
146
- <th>
147
- <nobr>用户状态</nobr>
148
- </th>
149
- <th>
150
- <nobr>表具状态</nobr>
151
- </th>
152
- <th>
153
- <nobr>客户地址</nobr>
154
- </th>
155
- <th>
156
- <nobr>客户电话</nobr>
157
- </th>
158
- <th>
159
- <nobr>身份证号</nobr>
160
- </th>
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>
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
- <th>
186
- <nobr>气表类型</nobr>
187
- </th>
188
- <th>
189
- <nobr>气表品牌</nobr>
190
- </th>
191
- <th>
192
- <nobr>是否有壁挂炉</nobr>
193
- </th>
194
- <th>
195
- <nobr>是否有热水器</nobr>
196
- </th>
197
- <th>
198
- <nobr>是否黑名单</nobr>
199
- </th>
200
- <th>
201
- <nobr>是否置换</nobr>
202
- </th>
203
- <th>
204
- <nobr>最后一次安检时间</nobr>
205
- </th>
206
- <th>
207
- <nobr>销户人</nobr>
208
- </th>
209
- <th>
210
- <nobr>销户时间</nobr>
211
- </th>
212
- <th>
213
- <nobr>销户原因</nobr>
214
- </th>
215
- <th>
216
- <nobr>所属公司</nobr>
217
- </th>
218
- </tr>
219
- </template>
220
- <template partial='body'>
221
- <td style="text-align: center;">
222
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
223
- </td>
224
- <td style="text-align: center;">
225
- <nobr>{{row.f_user_name}}</nobr>
226
- </td>
227
- <td style="text-align: center;">
228
- <nobr>{{row.f_user_state}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.f_table_state}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_address}}</nobr>
235
- </td>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_user_phone}}</nobr>
238
- </td>
239
- <td style="text-align: center;">
240
- <nobr>{{row.f_idnumber}}</nobr>
241
- </td>
242
- <td style="text-align: center;">
243
- <nobr>{{row.f_price_name}}</nobr>
244
- </td>
245
- <td style="text-align: center;">
246
- <nobr>{{row.f_open_date}}</nobr>
247
- </td>
248
- <td style="text-align: center;">
249
- <nobr>{{row.f_createfile_person}}</nobr>
250
- </td>
251
- <td style="text-align: center;">
252
- <nobr>{{row.f_meternumber}}</nobr>
253
- </td>
254
- <td style="text-align: center;">
255
- <nobr>{{row.f_gas_person}}</nobr>
256
- </td>
257
- <td style="text-align: center;">
258
- <nobr>{{row.f_gas_date}}</nobr>
259
- </td>
260
- <td style="text-align: center;">
261
- <nobr>{{row.f_gasproperties}}</nobr>
262
- </td>
263
- <td style="text-align: center;">
264
- <nobr>{{row.f_total_gas}}</nobr>
265
- </td>
266
- <td style="text-align: center;">
267
- <nobr>{{row.f_meter_type}}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{row.f_meter_brand}}</nobr>
271
- </td>
272
- <td style="text-align: center;">
273
- <nobr>{{row.isbgl}}</nobr>
274
- </td>
275
- <td style="text-align: center;">
276
- <nobr>{{row.ishot}}</nobr>
277
- </td>
278
- <td style="text-align: center;">
279
- <nobr>{{row.f_user_back}}</nobr>
280
- </td>
281
- <td style="text-align: center;">
282
- <nobr>{{row.f_substite}}</nobr>
283
- </td>
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_check_time}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_canceloperator}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_canceltime}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_cancelreason}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_orgname}}</nobr>
298
- </td>
299
- </template>
300
- <template partial='foot'></template>
301
- </data-grid>
302
- </criteria-paged>
303
- </div>
304
- <div v-if="showinfo">
305
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
306
- </div>
307
- </div>
308
- </div>
309
- </template>
310
-
311
- <script>
312
- import {PagedList} from 'vue-client'
313
- import defaultPrint from '../config/DefaultPrint'
314
- import exportConfig from '../config/exportConfig'
315
- import plugins from '../../../plugins/GetLoginInfoService'
316
- import * as Util from '../../../stores/Util'
317
- let readySomething = async function (self) {
318
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
319
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
320
- // await self.$refs.paged.$refs.cri.search()
321
- await self.$MagLoadParams.loadParam()
322
- self.initParams()
323
-
324
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
325
- }
326
- export default {
327
- title: '开户统计',
328
- data() {
329
- return {
330
- data: {},
331
- orgid:[this.$login.f.orgid],
332
- model: new PagedList('rs/sql/newAccountQuery', 20),
333
- f_orgid: this.$login.f.orgid,
334
- criteriaShow: false,
335
- modelval: [],
336
- printshow: false,
337
- all: false,
338
- fields: {},
339
- thead: '',
340
- tfoot: '',
341
- orgCondtionStr: '(' + this.$login.f.orgid + ')',
342
- // orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
343
- meterbrands: [],
344
- showinfo:false,
345
- rowdata:{},
346
- //合计数据
347
- sumsmodel: {},
348
- newuseroptiones:[{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
349
- selectfields:[],
350
- metertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
351
- backstates:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
352
- gaspropertyTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
353
- getusertypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
354
- gettabletypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')],
355
- sellnumoptions:[{label: '全部', value: ''},{label:'是',value:'sellnum>0'},{label:'否',value:'sellnum=0'}]
356
- }
357
- },
358
- props:['selectorg'],
359
- ready() {
360
- if(this.selectorg != null && this.selectorg != null != ''){
361
- this.initres.org=[]
362
- this.initres.org.push(this.selectorg);
363
- }
364
- readySomething(this).then(() => {
365
- this.$emit('ready')
366
- }).catch((error) => {
367
- this.$emit('error', error)
368
- })
369
- for(var item in exportConfig.NewAccountConfig){
370
- this.selectfields.push(item)
371
- }
372
- },
373
- methods: {
374
- cancel() {
375
- this.showinfo = false
376
- },
377
- getRes (obj) {
378
- this.orgCondtionStr = plugins.convertToIn(obj)
379
- },
380
-
381
- selfSearch(args) {
382
- if (this.orgCondtionStr)
383
- args.condition = `${args.condition}` + 'and f_filialeid in ' + this.orgCondtionStr
384
- else
385
- args.condition = `${args.condition}` + 'and f_filialeid in ' + '(' + this.$login.f.orgid + ')'
386
- this.model.search(args.condition, args.model)
387
- },
388
- showmsg(obj){
389
- this.rowdata=obj
390
- this.showinfo=true
391
- },
392
- initParams() {
393
- // 初始化气表品牌
394
- let brandArr = []
395
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
396
- let temp = {}
397
- temp.label = item.label
398
- temp.value = item.value.f_meter_brand
399
- brandArr.push(temp)
400
- })
401
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
402
- },
403
-
404
- clear() {
405
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
406
- this.$refs.paged.$refs.cri.model[key] = ''
407
- })
408
- },
409
- show() {
410
- this.criteriaShow = true
411
- },
412
- hidden() {
413
- this.criteriaShow = !this.criteriaShow
414
- },
415
- dealmsg(val) {
416
- console.log('---------------dealmsg')
417
- this.rowdata=val
418
- this.show=true
419
- val.model = this.model.model
420
- this.$dispatch('deal-msg', val)
421
- },
422
- stamp() {
423
- this.all = false
424
- //默认选择要打印的列
425
- this.modelval = defaultPrint.config
426
- this.fields = this.getfield
427
- console.log('所有打印字段', this.fields)
428
- this.printshow = true
429
- this.put()
430
- },
431
- put() {
432
- // 对Modelval进行排序
433
- this.sortModelval()
434
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
435
- for (let key of this.modelval) {
436
- this.thead += '<th>' + this.fields[key] + '</th>'
437
- }
438
- this.thead += '</tr>'
439
- },
440
- print() {
441
- this.$refs.print.PrintAsFile()
442
- this.printshow = false
443
- },
444
- close() {
445
- this.printshow = false
446
- this.all = false
447
- },
448
- // 对选择的列进行排序
449
- sortModelval() {
450
- let sortModel = []
451
- Object.keys(this.fields).forEach((key) => {
452
- if (this.modelval.includes(key)) {
453
- sortModel.push(key)
454
- }
455
- })
456
- this.modelval = sortModel
457
- console.log('选择的打印的字段', this.modelval)
458
- },
459
- async updateParams() {
460
- await this.$MagLoadParams.loadParam(this.f_filialeid)
461
- this.initParams()
462
- }
463
- },
464
- watch: {
465
- 'all'(val) {
466
- if (val) {
467
- this.modelval = this.bodyData
468
- } else {
469
- this.modelval = defaultPrint.config
470
- this.put()
471
- }
472
- },
473
- 'modelval.length'() {
474
- this.put()
475
- },
476
- 'orgCondtionStr'(val) {
477
- let res = val.match(/'(.*?)'/)
478
- console.log('正则提取:',res && res[1])
479
- if (res) {
480
- this.selectorg = res[1]
481
- }
482
- }
483
-
484
- },
485
- computed: {
486
- getCondition () {
487
- var con = ""
488
- if (this.orgCondtionStr) {
489
- con = `${this.$refs.paged.$refs.cri.condition} and f_filialeid in ${this.orgCondtionStr}`
490
- }
491
- else {
492
- con = `${this.$refs.paged.$refs.cri.condition}and f_filialeid in ('${this.$login.f.orgid}' )`
493
- }
494
- return {
495
- condition: con
496
- }
497
- },
498
- getName() {
499
- return '开户查询导出'+ Util.guid()
500
- },
501
- getfield() {
502
- return exportConfig.NewAccountConfig
503
- }
504
- }
505
- }
506
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" v-if="!showinfo">
5
+
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司</label>
12
+ <res-select :initresid="$parent.$parent.orgid"
13
+ style="width:60%"
14
+ @res-select="$parent.$parent.getRes"
15
+ restype='organization'>
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2 form-group">
19
+ <label class="font_normal_body">客户编号</label>
20
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
21
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
22
+ </div>
23
+ <div class="col-sm-2 form-group">
24
+ <label for="startDate" class="font_normal_body">开始日期</label>
25
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
26
+ v-model="model.startDate"
27
+ :value.sync="model.startDate"
28
+ :format="'yyyy-MM-dd'"
29
+ :show-reset-button="true"
30
+ condition="f_open_date >= '{} 00:00:00'">
31
+ </datepicker>
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label for="endDate" class="font_normal_body">结束日期</label>
35
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
36
+ v-model="model.endDate"
37
+ :value.sync="model.endDate"
38
+ :format="'yyyy-MM-dd'"
39
+ :show-reset-button="true"
40
+ condition="f_open_date <= '{} 23:59:59'">
41
+ </datepicker>
42
+ </div>
43
+
44
+ <div class="span" style="float:right;">
45
+ <button class="button_search button_spacing" @click="search()">查询</button>
46
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
47
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
48
+
49
+ <export-excel-plus :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
50
+ :field="$parent.$parent.getfield"
51
+ sqlurl="rs/logic/exportfileplus" sql-name="newAccountQuery" :template-name="$parent.$parent.getName"
52
+ :choose-col="true"></export-excel-plus>
53
+
54
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
55
+ </div>
56
+ </div>
57
+ <div class="row" v-show="$parent.$parent.criteriaShow">
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">客户名称</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
61
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">用气性质</label>
65
+ <v-select :value.sync="model.f_gasproperties" :multiple="true"
66
+ v-model="model.f_gasproperties"
67
+ :options='$parent.$parent.newuseroptiones' placeholder='请选择'
68
+ condition=" f_gasproperties in {}"
69
+ close-on-select></v-select>
70
+ </div>
71
+ <div class="col-sm-2">
72
+ <label class="font_normal_body">气表分类</label>
73
+ <v-select :value.sync="model.f_meter_classify"
74
+ v-model="model.f_meter_classify"
75
+ :options='$parent.$parent.metertypes' placeholder='请选择'
76
+ condition="f_meter_classify = '{}'"
77
+ close-on-select></v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">气表品牌</label>
81
+ <v-select :value.sync="model.f_meter_brand"
82
+ v-model="model.f_meter_brand"
83
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
84
+ condition="f_meter_brand = '{}'"
85
+ close-on-select></v-select>
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">用户状态</label>
89
+ <v-select :value.sync="model.f_user_state"
90
+ v-model="model.f_user_state"
91
+ :options='$parent.$parent.getusertypes' placeholder='请选择'
92
+ condition="f_user_state = '{}'"
93
+ close-on-select></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">表具状态</label>
97
+ <v-select :value.sync="model.f_table_state"
98
+ v-model="model.f_table_state"
99
+ :options='$parent.$parent.gettabletypes' placeholder='请选择'
100
+ condition="f_table_state = '{}'"
101
+ close-on-select></v-select>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">是否黑名单</label>
105
+ <v-select :value.sync="model.f_user_back"
106
+ v-model="model.f_user_back"
107
+ :options='$parent.$parent.backstates' placeholder='请选择'
108
+ condition="f_user_back = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">是否置换</label>
113
+ <v-select :value.sync="model.f_substite"
114
+ v-model="model.f_substite"
115
+ :options='$parent.$parent.backstates' placeholder='请选择'
116
+ condition="f_substite = '{}'"
117
+ close-on-select></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">是否已缴费</label>
121
+ <v-select :value.sync="model.sellnum"
122
+ v-model="model.sellnum"
123
+ :options='$parent.$parent.sellnumoptions' placeholder='请选择'
124
+ condition=" {} "
125
+ close-on-select></v-select>
126
+ </div>
127
+ <div class="col-sm-4 form-group">
128
+ <label class="font_normal_body">客户地址</label>
129
+ <input type="text" style="width:80%" class="input_search" v-model="model.f_address"
130
+ condition="f_address like '%{}%' " placeholder="客户地址">
131
+ </div>
132
+ </div>
133
+
134
+ </div>
135
+ </criteria>
136
+
137
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
138
+ <template partial='head'>
139
+ <tr>
140
+ <th>
141
+ <nobr>客户编号</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>客户名称</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>用户状态</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>表具状态</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>客户地址</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>客户电话</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>身份证号</nobr>
160
+ </th>
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>
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
+ <th>
186
+ <nobr>气表类型</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>气表品牌</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>是否有壁挂炉</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>是否有热水器</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>是否黑名单</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>是否置换</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>最后一次安检时间</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>销户人</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>销户时间</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>销户原因</nobr>
214
+ </th>
215
+ <th>
216
+ <nobr>所属公司</nobr>
217
+ </th>
218
+ </tr>
219
+ </template>
220
+ <template partial='body'>
221
+ <td style="text-align: center;">
222
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_user_name}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_user_state}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_table_state}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_address}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_user_phone}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_idnumber}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_price_name}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.f_open_date}}</nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_createfile_person}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_meternumber}}</nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.f_gas_person}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_gas_date}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_gasproperties}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_total_gas}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_meter_type}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_meter_brand}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.isbgl}}</nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr>{{row.ishot}}</nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.f_user_back}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.f_substite}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_check_time}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_canceloperator}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_canceltime}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_cancelreason}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_orgname}}</nobr>
298
+ </td>
299
+ </template>
300
+ <template partial='foot'></template>
301
+ </data-grid>
302
+ </criteria-paged>
303
+ </div>
304
+ <div v-if="showinfo">
305
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
306
+ </div>
307
+ </div>
308
+ </div>
309
+ </template>
310
+
311
+ <script>
312
+ import {PagedList} from 'vue-client'
313
+ import defaultPrint from '../config/DefaultPrint'
314
+ import exportConfig from '../config/exportConfig'
315
+ import plugins from '../../../plugins/GetLoginInfoService'
316
+ import * as Util from '../../../stores/Util'
317
+ let readySomething = async function (self) {
318
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
319
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
320
+ // await self.$refs.paged.$refs.cri.search()
321
+ await self.$MagLoadParams.loadParam()
322
+ self.initParams()
323
+
324
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
325
+ }
326
+ export default {
327
+ title: '开户统计',
328
+ data() {
329
+ return {
330
+ data: {},
331
+ orgid:[this.$login.f.orgid],
332
+ model: new PagedList('rs/sql/newAccountQuery', 20),
333
+ f_orgid: this.$login.f.orgid,
334
+ criteriaShow: false,
335
+ modelval: [],
336
+ printshow: false,
337
+ all: false,
338
+ fields: {},
339
+ thead: '',
340
+ tfoot: '',
341
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
342
+ // orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
343
+ meterbrands: [],
344
+ showinfo:false,
345
+ rowdata:{},
346
+ //合计数据
347
+ sumsmodel: {},
348
+ newuseroptiones:[{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
349
+ selectfields:[],
350
+ metertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
351
+ backstates:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
352
+ gaspropertyTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
353
+ getusertypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
354
+ gettabletypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')],
355
+ sellnumoptions:[{label: '全部', value: ''},{label:'是',value:'sellnum>0'},{label:'否',value:'sellnum=0'}]
356
+ }
357
+ },
358
+ props:['selectorg'],
359
+ ready() {
360
+ if(this.selectorg != null && this.selectorg != null != ''){
361
+ this.initres.org=[]
362
+ this.initres.org.push(this.selectorg);
363
+ }
364
+ readySomething(this).then(() => {
365
+ this.$emit('ready')
366
+ }).catch((error) => {
367
+ this.$emit('error', error)
368
+ })
369
+ for(var item in exportConfig.NewAccountConfig){
370
+ this.selectfields.push(item)
371
+ }
372
+ },
373
+ methods: {
374
+ cancel() {
375
+ this.showinfo = false
376
+ },
377
+ getRes (obj) {
378
+ this.orgCondtionStr = plugins.convertToIn(obj)
379
+ },
380
+
381
+ selfSearch(args) {
382
+ if (this.orgCondtionStr)
383
+ args.condition = `${args.condition}` + 'and f_filialeid in ' + this.orgCondtionStr
384
+ else
385
+ args.condition = `${args.condition}` + 'and f_filialeid in ' + '(' + this.$login.f.orgid + ')'
386
+ this.model.search(args.condition, args.model)
387
+ },
388
+ showmsg(obj){
389
+ this.rowdata=obj
390
+ this.showinfo=true
391
+ },
392
+ initParams() {
393
+ // 初始化气表品牌
394
+ let brandArr = []
395
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
396
+ let temp = {}
397
+ temp.label = item.label
398
+ temp.value = item.value.f_meter_brand
399
+ brandArr.push(temp)
400
+ })
401
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
402
+ },
403
+
404
+ clear() {
405
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
406
+ this.$refs.paged.$refs.cri.model[key] = ''
407
+ })
408
+ },
409
+ show() {
410
+ this.criteriaShow = true
411
+ },
412
+ hidden() {
413
+ this.criteriaShow = !this.criteriaShow
414
+ },
415
+ dealmsg(val) {
416
+ console.log('---------------dealmsg')
417
+ this.rowdata=val
418
+ this.show=true
419
+ val.model = this.model.model
420
+ this.$dispatch('deal-msg', val)
421
+ },
422
+ stamp() {
423
+ this.all = false
424
+ //默认选择要打印的列
425
+ this.modelval = defaultPrint.config
426
+ this.fields = this.getfield
427
+ console.log('所有打印字段', this.fields)
428
+ this.printshow = true
429
+ this.put()
430
+ },
431
+ put() {
432
+ // 对Modelval进行排序
433
+ this.sortModelval()
434
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
435
+ for (let key of this.modelval) {
436
+ this.thead += '<th>' + this.fields[key] + '</th>'
437
+ }
438
+ this.thead += '</tr>'
439
+ },
440
+ print() {
441
+ this.$refs.print.PrintAsFile()
442
+ this.printshow = false
443
+ },
444
+ close() {
445
+ this.printshow = false
446
+ this.all = false
447
+ },
448
+ // 对选择的列进行排序
449
+ sortModelval() {
450
+ let sortModel = []
451
+ Object.keys(this.fields).forEach((key) => {
452
+ if (this.modelval.includes(key)) {
453
+ sortModel.push(key)
454
+ }
455
+ })
456
+ this.modelval = sortModel
457
+ console.log('选择的打印的字段', this.modelval)
458
+ },
459
+ async updateParams() {
460
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
461
+ this.initParams()
462
+ }
463
+ },
464
+ watch: {
465
+ 'all'(val) {
466
+ if (val) {
467
+ this.modelval = this.bodyData
468
+ } else {
469
+ this.modelval = defaultPrint.config
470
+ this.put()
471
+ }
472
+ },
473
+ 'modelval.length'() {
474
+ this.put()
475
+ },
476
+ 'orgCondtionStr'(val) {
477
+ let res = val.match(/'(.*?)'/)
478
+ console.log('正则提取:',res && res[1])
479
+ if (res) {
480
+ this.selectorg = res[1]
481
+ }
482
+ }
483
+
484
+ },
485
+ computed: {
486
+ getCondition () {
487
+ var con = ""
488
+ if (this.orgCondtionStr) {
489
+ con = `${this.$refs.paged.$refs.cri.condition} and f_filialeid in ${this.orgCondtionStr}`
490
+ }
491
+ else {
492
+ con = `${this.$refs.paged.$refs.cri.condition}and f_filialeid in ('${this.$login.f.orgid}' )`
493
+ }
494
+ return {
495
+ condition: con
496
+ }
497
+ },
498
+ getName() {
499
+ return '开户查询导出'+ Util.guid()
500
+ },
501
+ getfield() {
502
+ return exportConfig.NewAccountConfig
503
+ }
504
+ }
505
+ }
506
+ </script>