manage-client 3.2.79-aode → 3.2.80-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 (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,506 +1,512 @@
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
+ <th>
219
+ <nobr>所属公司</nobr>
220
+ </th>
221
+ </tr>
222
+ </template>
223
+ <template partial='body'>
224
+ <td style="text-align: center;">
225
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_user_name}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_user_state}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_table_state}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_address}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_user_phone}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_idnumber}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.f_price_name}}</nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_open_date}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_createfile_person}}</nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.f_meternumber}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_gas_person}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_gas_date}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_gasproperties}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_total_gas}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_meter_type}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_meter_brand}}</nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr>{{row.f_aroundmeter}}</nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.isbgl}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.ishot}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_user_back}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_substite}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_check_time}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_canceloperator}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_canceltime}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_cancelreason}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_orgname}}</nobr>
304
+ </td>
305
+ </template>
306
+ <template partial='foot'></template>
307
+ </data-grid>
308
+ </criteria-paged>
309
+ </div>
310
+ <div v-if="showinfo">
311
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
312
+ </div>
313
+ </div>
314
+ </div>
315
+ </template>
316
+
317
+ <script>
318
+ import {PagedList} from 'vue-client'
319
+ import defaultPrint from '../config/DefaultPrint'
320
+ import exportConfig from '../config/exportConfig'
321
+ import plugins from '../../../plugins/GetLoginInfoService'
322
+ import * as Util from '../../../stores/Util'
323
+ let readySomething = async function (self) {
324
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
325
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
326
+ // await self.$refs.paged.$refs.cri.search()
327
+ await self.$MagLoadParams.loadParam()
328
+ self.initParams()
329
+
330
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
331
+ }
332
+ export default {
333
+ title: '开户统计',
334
+ data() {
335
+ return {
336
+ data: {},
337
+ orgid:[this.$login.f.orgid],
338
+ model: new PagedList('rs/sql/newAccountQuery', 20),
339
+ f_orgid: this.$login.f.orgid,
340
+ criteriaShow: false,
341
+ modelval: [],
342
+ printshow: false,
343
+ all: false,
344
+ fields: {},
345
+ thead: '',
346
+ tfoot: '',
347
+ orgCondtionStr: '(' + this.$login.f.orgid + ')',
348
+ // orgCondtionStr: ` and f_orgid = '${this.$login.f.orgid}'`,
349
+ meterbrands: [],
350
+ showinfo:false,
351
+ rowdata:{},
352
+ //合计数据
353
+ sumsmodel: {},
354
+ newuseroptiones:[{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
355
+ selectfields:[],
356
+ metertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
357
+ backstates:[{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}],
358
+ gaspropertyTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')],
359
+ getusertypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
360
+ gettabletypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')],
361
+ sellnumoptions:[{label: '全部', value: ''},{label:'是',value:'sellnum>0'},{label:'否',value:'sellnum=0'}]
362
+ }
363
+ },
364
+ props:['selectorg'],
365
+ ready() {
366
+ if(this.selectorg != null && this.selectorg != null != ''){
367
+ this.initres.org=[]
368
+ this.initres.org.push(this.selectorg);
369
+ }
370
+ readySomething(this).then(() => {
371
+ this.$emit('ready')
372
+ }).catch((error) => {
373
+ this.$emit('error', error)
374
+ })
375
+ for(var item in exportConfig.NewAccountConfig){
376
+ this.selectfields.push(item)
377
+ }
378
+ },
379
+ methods: {
380
+ cancel() {
381
+ this.showinfo = false
382
+ },
383
+ getRes (obj) {
384
+ this.orgCondtionStr = plugins.convertToIn(obj)
385
+ },
386
+
387
+ selfSearch(args) {
388
+ if (this.orgCondtionStr)
389
+ args.condition = `${args.condition}` + 'and f_filialeid in ' + this.orgCondtionStr
390
+ else
391
+ args.condition = `${args.condition}` + 'and f_filialeid in ' + '(' + this.$login.f.orgid + ')'
392
+ this.model.search(args.condition, args.model)
393
+ },
394
+ showmsg(obj){
395
+ this.rowdata=obj
396
+ this.showinfo=true
397
+ },
398
+ initParams() {
399
+ // 初始化气表品牌
400
+ let brandArr = []
401
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
402
+ let temp = {}
403
+ temp.label = item.label
404
+ temp.value = item.value.f_meter_brand
405
+ brandArr.push(temp)
406
+ })
407
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
408
+ },
409
+
410
+ clear() {
411
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
412
+ this.$refs.paged.$refs.cri.model[key] = ''
413
+ })
414
+ },
415
+ show() {
416
+ this.criteriaShow = true
417
+ },
418
+ hidden() {
419
+ this.criteriaShow = !this.criteriaShow
420
+ },
421
+ dealmsg(val) {
422
+ console.log('---------------dealmsg')
423
+ this.rowdata=val
424
+ this.show=true
425
+ val.model = this.model.model
426
+ this.$dispatch('deal-msg', val)
427
+ },
428
+ stamp() {
429
+ this.all = false
430
+ //默认选择要打印的列
431
+ this.modelval = defaultPrint.config
432
+ this.fields = this.getfield
433
+ console.log('所有打印字段', this.fields)
434
+ this.printshow = true
435
+ this.put()
436
+ },
437
+ put() {
438
+ // 对Modelval进行排序
439
+ this.sortModelval()
440
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
441
+ for (let key of this.modelval) {
442
+ this.thead += '<th>' + this.fields[key] + '</th>'
443
+ }
444
+ this.thead += '</tr>'
445
+ },
446
+ print() {
447
+ this.$refs.print.PrintAsFile()
448
+ this.printshow = false
449
+ },
450
+ close() {
451
+ this.printshow = false
452
+ this.all = false
453
+ },
454
+ // 对选择的列进行排序
455
+ sortModelval() {
456
+ let sortModel = []
457
+ Object.keys(this.fields).forEach((key) => {
458
+ if (this.modelval.includes(key)) {
459
+ sortModel.push(key)
460
+ }
461
+ })
462
+ this.modelval = sortModel
463
+ console.log('选择的打印的字段', this.modelval)
464
+ },
465
+ async updateParams() {
466
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
467
+ this.initParams()
468
+ }
469
+ },
470
+ watch: {
471
+ 'all'(val) {
472
+ if (val) {
473
+ this.modelval = this.bodyData
474
+ } else {
475
+ this.modelval = defaultPrint.config
476
+ this.put()
477
+ }
478
+ },
479
+ 'modelval.length'() {
480
+ this.put()
481
+ },
482
+ 'orgCondtionStr'(val) {
483
+ let res = val.match(/'(.*?)'/)
484
+ console.log('正则提取:',res && res[1])
485
+ if (res) {
486
+ this.selectorg = res[1]
487
+ }
488
+ }
489
+
490
+ },
491
+ computed: {
492
+ getCondition () {
493
+ var con = ""
494
+ if (this.orgCondtionStr) {
495
+ con = `${this.$refs.paged.$refs.cri.condition} and f_filialeid in ${this.orgCondtionStr}`
496
+ }
497
+ else {
498
+ con = `${this.$refs.paged.$refs.cri.condition}and f_filialeid in ('${this.$login.f.orgid}' )`
499
+ }
500
+ return {
501
+ condition: con
502
+ }
503
+ },
504
+ getName() {
505
+ return '开户查询导出'+ Util.guid()
506
+ },
507
+ getfield() {
508
+ return exportConfig.NewAccountConfig
509
+ }
510
+ }
511
+ }
512
+ </script>