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,436 +1,436 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
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
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
- <div class="col-sm-2 form-group">
12
- <label class="font_normal_body">客户编号</label>
13
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
14
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
15
- </div>
16
- <div class="col-sm-2 form-group">
17
- <label class="font_normal_body">客户名称</label>
18
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
19
- condition="f_user_name like '%{}%'" placeholder="客户名称">
20
- </div>
21
- <div class="col-sm-2 form-group">
22
- <label for="startDate" class="font_normal_body">开始日期</label>
23
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
- v-model="model.startDate"
25
- :value.sync="model.startDate"
26
- :format="'yyyy-MM-dd HH:mm:ss'"
27
- :show-reset-button="true"
28
- condition="f_operate_date >= '{}'">
29
- </datepicker>
30
- </div>
31
- <div class="col-sm-2 form-group">
32
- <label for="endDate" class="font_normal_body">结束日期</label>
33
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
- v-model="model.endDate"
35
- :value.sync="model.endDate"
36
- :format="'yyyy-MM-dd HH:mm:ss'"
37
- :show-reset-button="true"
38
- condition="f_operate_date <= '{}'">
39
- </datepicker>
40
- </div>
41
- <div class="col-sm-2 form-group">
42
- <label class="font_normal_body">客户类型</label>
43
- <v-select :value.sync="model.f_user_type"
44
- @change="$parent.$parent.userTypeChange()"
45
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
46
- condition="f_user_type = '{}'"
47
- close-on-select></v-select>
48
- </div>
49
- <div class="col-sm-2 form-group">
50
- <label class="font_normal_body">用气性质</label>
51
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
52
- :options='$parent.$parent.gasproperties' placeholder='请选择'
53
- condition="f_gasproperties = '{}'"
54
- close-on-select></v-select>
55
- </div>
56
- <div class="span" style="float:right;">
57
- <button class="button_search button_spacing" @click="search()">查询</button>
58
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
59
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
60
-
61
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
62
- :field="$parent.$parent.getfield"
63
- :defaultselect="$parent.$parent.selectfields"
64
- sqlurl="rs/logic/exportfile" sql-name="fillCardQuery" template-name='补卡查询导出'
65
- :choose-col="true"></export-excel>
66
-
67
- <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>
68
- </div>
69
- </div>
70
-
71
- <div class="row" v-show="$parent.$parent.criteriaShow">
72
-
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">客户地址</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
76
- condition="f_address like '%{}%'" placeholder='客户地址'>
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">补卡类型</label>
80
- <v-select :value.sync="model. f_type"
81
- v-model="model. f_type"
82
- :options='$parent.$parent.fillCardTypes' placeholder='请选择'
83
- condition=" f_type = '{}'"
84
- close-on-select></v-select>
85
- </div>
86
-
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
89
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
90
- condition="f_card_id like '%{}%'" placeholder='卡号'>
91
- </div>
92
- <div class="col-sm-2 form-group">
93
- <label class="font_normal_body">气表品牌</label>
94
- <v-select :value.sync="model.f_meter_brand"
95
- v-model="model.f_meter_brand"
96
- :options='$parent.$parent.meterbrands' placeholder='请选择'
97
- condition="f_meter_brand = '{}'"
98
- close-on-select></v-select>
99
- </div>
100
- <div class="col-sm-2 form-group">
101
- <label class="font_normal_body">补卡状态</label>
102
- <v-select :value.sync="model.f_state"
103
- v-model="model.f_state"
104
- :options='$parent.$parent.chargeState' placeholder='请选择'
105
- condition="f_state = '{}'"
106
- close-on-select></v-select>
107
- </div>
108
- </div>
109
-
110
- </div>
111
- </criteria>
112
-
113
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
114
- <template partial='head'>
115
- <tr>
116
- <th>
117
- <nobr>客户编号</nobr>
118
- </th>
119
- <th>
120
- <nobr>客户名称</nobr>
121
- </th>
122
- <th>
123
- <nobr>客户地址</nobr>
124
- </th>
125
- <th>
126
- <nobr>用户类型</nobr>
127
- </th>
128
- <th>
129
- <nobr>用气性质</nobr>
130
- </th>
131
- <th>
132
- <nobr>卡号</nobr>
133
- </th>
134
- <th>
135
- <nobr>气表品牌</nobr>
136
- </th>
137
- <th>
138
- <nobr>补卡类型</nobr>
139
- </th>
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
- </tr>
159
- </template>
160
- <template partial='body'>
161
- <td style="text-align: center;">
162
- <nobr>
163
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
164
- </td>
165
- <td style="text-align: center;">
166
- <nobr>{{row.f_user_name}}</nobr>
167
- </td>
168
- <td style="text-align: center;">
169
- <nobr>{{row.f_address}}</nobr>
170
- </td>
171
- <td style="text-align: center;">
172
- <nobr>{{row.f_user_type}}</nobr>
173
- </td>
174
- <td style="text-align: center;">
175
- <nobr>{{row.f_gasproperties}}</nobr>
176
- </td>
177
- <td style="text-align: center;">
178
- <nobr>{{row.f_card_id}}</nobr>
179
- </td>
180
- <td style="text-align: center;">
181
- <nobr>{{row.f_meter_brand}}</nobr>
182
- </td>
183
- <td style="text-align: center;">
184
- <nobr>{{row. f_type}}</nobr>
185
- </td>
186
- <td style="text-align: center;">
187
- <nobr>{{row.f_comments}}</nobr>
188
- </td>
189
- <td style="text-align: center;">
190
- <nobr>{{row.f_cardfees}}</nobr>
191
- </td>
192
- <td style="text-align: center;">
193
- <nobr>{{row.f_operate_date}}</nobr>
194
- </td>
195
- <td style="text-align: center;">
196
- <nobr>{{row.f_operator}}</nobr>
197
- </td>
198
- <td style="text-align: center;">
199
- <nobr>{{row.f_depname}}</nobr>
200
- </td>
201
- <td style="text-align: center;">
202
- <nobr>{{row.f_orgname}}</nobr>
203
- </td>
204
- </template>
205
- <template partial='foot'></template>
206
- </data-grid>
207
-
208
- </criteria-paged>
209
-
210
- <table class="table-hover">
211
- <tr style="position: relative" class="table-bordered">
212
- <td
213
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
214
- 汇总信息
215
- </td>
216
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
217
- 卡费合计:&emsp;{{sumsmodel.f_cardfees}}
218
- </td>
219
- </tr>
220
- </table>
221
- </div>
222
- <div v-if="show">
223
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
224
- </div>
225
- </div>
226
- </div>
227
- </template>
228
-
229
- <script>
230
- import {PagedList} from 'vue-client'
231
- import defaultPrint from '../config/DefaultPrint'
232
- import exportConfig from '../config/exportConfig'
233
-
234
- let readySomething = async function (self) {
235
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
236
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
237
- // await self.$refs.paged.$refs.cri.search()
238
- await self.$MagLoadParams.loadParam()
239
- self.initParams()
240
-
241
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
242
- }
243
- export default {
244
- data() {
245
- return {
246
- selectfields:[],
247
- data: {},
248
- model: new PagedList('rs/sql/fillCardQuery', 20, {}, {f_cardfees: 0}),
249
- criteriaShow: false,
250
- headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补卡类型", "表编号", "卡号", "气表品牌", "气表状态", "卡费", "补卡日期", "人员", "部门", "公司"],
251
- bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", " f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_cardfees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
252
-
253
- orgCondtionStr: '',
254
- initres: {
255
- org:[this.$login.f.orgid],
256
- dep:[],
257
- user:[],
258
- },
259
- modelval: [],
260
- printshow: false,
261
- all: false,
262
- fields: {},
263
- thead: '',
264
- tfoot: '',
265
- gasproperties:[],
266
- meterbrands: [],
267
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
268
-
269
- show:false,
270
- rowdata:{},
271
- //合计数据
272
- sumsmodel: {}
273
- }
274
- },
275
- props:['selectorg'],
276
- ready() {
277
- if(this.selectorg != null && this.selectorg != null != ''){
278
- this.initres.org=[]
279
- this.initres.org.push(this.selectorg);
280
- }
281
- readySomething(this).then(() => {
282
- this.$emit('ready')
283
- }).catch((error) => {
284
- this.$emit('error', error)
285
- })
286
- for(var item in exportConfig.dataReportConfig){
287
- this.selectfields.push(item)
288
- }
289
- },
290
- methods: {
291
- userTypeChange () {
292
- this.gasproperties=[]
293
- if(this.$refs.paged.$refs.cri.model !==null) {
294
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
295
-
296
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
297
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
298
- // this.gasproperties.push({label: '全部', value: ''})
299
- }
300
- else{
301
- this.gasproperties =[{label: '全部', value: ''}]
302
- }
303
- },
304
- search(){
305
- this.$refs.paged.$refs.cri.search()
306
- },
307
- cancel() {
308
- this.show = false
309
- },
310
- selfSearch(args) {
311
- args.condition = `${args.condition}` + this.orgCondtionStr
312
- this.model.search(args.condition, args.model)
313
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
314
- },
315
-
316
- initParams() {
317
- // 初始化气表品牌
318
- let brandArr = []
319
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
320
- let temp = {}
321
- temp.label = item.label
322
- temp.value = item.value.f_meter_brand
323
- brandArr.push(temp)
324
- })
325
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
326
- },
327
-
328
- clear() {
329
- //清空部门和人员
330
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
331
- //部门和人员变为全选
332
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
333
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
334
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
335
- this.$refs.paged.$refs.cri.model[key] = ''
336
- })
337
- },
338
- show() {
339
- this.criteriaShow = true
340
- },
341
- hidden() {
342
- this.criteriaShow = !this.criteriaShow
343
- },
344
- getRes(condition) {
345
- this.orgCondtionStr = condition
346
- },
347
- dealmsg(val) {
348
- console.log('---------------dealmsg')
349
- this.rowdata=val
350
- this.show=true
351
- val.model = this.model.model
352
- this.$dispatch('deal-msg', val)
353
- },
354
- stamp() {
355
- this.all = false
356
- //默认选择要打印的列
357
- this.modelval = defaultPrint.config
358
- this.fields = this.getfield
359
- console.log('所有打印字段', this.fields)
360
- this.printshow = true
361
- this.put()
362
- },
363
- put() {
364
- // 对Modelval进行排序
365
- this.sortModelval()
366
- this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
367
- for (let key of this.modelval) {
368
- this.thead += '<th>' + this.fields[key] + '</th>'
369
- }
370
- this.thead += '</tr>'
371
- },
372
- print() {
373
- this.$refs.print.PrintAsFile()
374
- this.printshow = false
375
- },
376
- close() {
377
- this.printshow = false
378
- this.all = false
379
- },
380
- // 对选择的列进行排序
381
- sortModelval() {
382
- let sortModel = []
383
- Object.keys(this.fields).forEach((key) => {
384
- if (this.modelval.includes(key)) {
385
- sortModel.push(key)
386
- }
387
- })
388
- this.modelval = sortModel
389
- console.log('选择的打印的字段', this.modelval)
390
- },
391
- async updateParams() {
392
- await this.$MagLoadParams.loadParam(this.f_filialeid)
393
- this.initParams()
394
- },
395
- },
396
- watch: {
397
- 'all'(val) {
398
- if (val) {
399
- this.modelval = this.bodyData
400
- } else {
401
- this.modelval = defaultPrint.config
402
- this.put()
403
- }
404
- },
405
- 'modelval.length'() {
406
- this.put()
407
- },
408
- 'orgCondtionStr'(val) {
409
- let res = val.match(/'(.*?)'/)
410
- console.log('正则提取:',res && res[1])
411
- if (res) {
412
- this.selectorg = res[1]
413
- this.f_filialeid = res[1]
414
- this.updateParams()
415
- }
416
- }
417
- },
418
- computed: {
419
- getCondition() {
420
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
421
- },
422
- getfield() {
423
- return exportConfig.fillcardConfig
424
- },
425
- usertypes() {
426
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
427
- },
428
- fillCardTypes() {
429
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡类型')]
430
- },
431
- chargeState() {
432
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡状态')]
433
- },
434
- }
435
- }
436
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
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
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
+ <div class="col-sm-2 form-group">
12
+ <label class="font_normal_body">客户编号</label>
13
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
14
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
15
+ </div>
16
+ <div class="col-sm-2 form-group">
17
+ <label class="font_normal_body">客户名称</label>
18
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
19
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="startDate" class="font_normal_body">开始日期</label>
23
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
24
+ v-model="model.startDate"
25
+ :value.sync="model.startDate"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true"
28
+ condition="f_operate_date >= '{}'">
29
+ </datepicker>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label for="endDate" class="font_normal_body">结束日期</label>
33
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
34
+ v-model="model.endDate"
35
+ :value.sync="model.endDate"
36
+ :format="'yyyy-MM-dd HH:mm:ss'"
37
+ :show-reset-button="true"
38
+ condition="f_operate_date <= '{}'">
39
+ </datepicker>
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">客户类型</label>
43
+ <v-select :value.sync="model.f_user_type"
44
+ @change="$parent.$parent.userTypeChange()"
45
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
46
+ condition="f_user_type = '{}'"
47
+ close-on-select></v-select>
48
+ </div>
49
+ <div class="col-sm-2 form-group">
50
+ <label class="font_normal_body">用气性质</label>
51
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
52
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
53
+ condition="f_gasproperties = '{}'"
54
+ close-on-select></v-select>
55
+ </div>
56
+ <div class="span" style="float:right;">
57
+ <button class="button_search button_spacing" @click="search()">查询</button>
58
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
59
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
60
+
61
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
62
+ :field="$parent.$parent.getfield"
63
+ :defaultselect="$parent.$parent.selectfields"
64
+ sqlurl="rs/logic/exportfile" sql-name="fillCardQuery" template-name='补卡查询导出'
65
+ :choose-col="true"></export-excel>
66
+
67
+ <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>
68
+ </div>
69
+ </div>
70
+
71
+ <div class="row" v-show="$parent.$parent.criteriaShow">
72
+
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">客户地址</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
76
+ condition="f_address like '%{}%'" placeholder='客户地址'>
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">补卡类型</label>
80
+ <v-select :value.sync="model. f_type"
81
+ v-model="model. f_type"
82
+ :options='$parent.$parent.fillCardTypes' placeholder='请选择'
83
+ condition=" f_type = '{}'"
84
+ close-on-select></v-select>
85
+ </div>
86
+
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;卡号&nbsp;&nbsp;&nbsp;</label>
89
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
90
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
91
+ </div>
92
+ <div class="col-sm-2 form-group">
93
+ <label class="font_normal_body">气表品牌</label>
94
+ <v-select :value.sync="model.f_meter_brand"
95
+ v-model="model.f_meter_brand"
96
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
97
+ condition="f_meter_brand = '{}'"
98
+ close-on-select></v-select>
99
+ </div>
100
+ <div class="col-sm-2 form-group">
101
+ <label class="font_normal_body">补卡状态</label>
102
+ <v-select :value.sync="model.f_state"
103
+ v-model="model.f_state"
104
+ :options='$parent.$parent.chargeState' placeholder='请选择'
105
+ condition="f_state = '{}'"
106
+ close-on-select></v-select>
107
+ </div>
108
+ </div>
109
+
110
+ </div>
111
+ </criteria>
112
+
113
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
114
+ <template partial='head'>
115
+ <tr>
116
+ <th>
117
+ <nobr>客户编号</nobr>
118
+ </th>
119
+ <th>
120
+ <nobr>客户名称</nobr>
121
+ </th>
122
+ <th>
123
+ <nobr>客户地址</nobr>
124
+ </th>
125
+ <th>
126
+ <nobr>用户类型</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>用气性质</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>卡号</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>气表品牌</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>补卡类型</nobr>
139
+ </th>
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
+ </tr>
159
+ </template>
160
+ <template partial='body'>
161
+ <td style="text-align: center;">
162
+ <nobr>
163
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.f_user_name}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_address}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_user_type}}</nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr>{{row.f_gasproperties}}</nobr>
176
+ </td>
177
+ <td style="text-align: center;">
178
+ <nobr>{{row.f_card_id}}</nobr>
179
+ </td>
180
+ <td style="text-align: center;">
181
+ <nobr>{{row.f_meter_brand}}</nobr>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <nobr>{{row. f_type}}</nobr>
185
+ </td>
186
+ <td style="text-align: center;">
187
+ <nobr>{{row.f_comments}}</nobr>
188
+ </td>
189
+ <td style="text-align: center;">
190
+ <nobr>{{row.f_cardfees}}</nobr>
191
+ </td>
192
+ <td style="text-align: center;">
193
+ <nobr>{{row.f_operate_date}}</nobr>
194
+ </td>
195
+ <td style="text-align: center;">
196
+ <nobr>{{row.f_operator}}</nobr>
197
+ </td>
198
+ <td style="text-align: center;">
199
+ <nobr>{{row.f_depname}}</nobr>
200
+ </td>
201
+ <td style="text-align: center;">
202
+ <nobr>{{row.f_orgname}}</nobr>
203
+ </td>
204
+ </template>
205
+ <template partial='foot'></template>
206
+ </data-grid>
207
+
208
+ </criteria-paged>
209
+
210
+ <table class="table-hover">
211
+ <tr style="position: relative" class="table-bordered">
212
+ <td
213
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
214
+ 汇总信息
215
+ </td>
216
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
217
+ 卡费合计:&emsp;{{sumsmodel.f_cardfees}}
218
+ </td>
219
+ </tr>
220
+ </table>
221
+ </div>
222
+ <div v-if="show">
223
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </template>
228
+
229
+ <script>
230
+ import {PagedList} from 'vue-client'
231
+ import defaultPrint from '../config/DefaultPrint'
232
+ import exportConfig from '../config/exportConfig'
233
+
234
+ let readySomething = async function (self) {
235
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
236
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
237
+ // await self.$refs.paged.$refs.cri.search()
238
+ await self.$MagLoadParams.loadParam()
239
+ self.initParams()
240
+
241
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
242
+ }
243
+ export default {
244
+ data() {
245
+ return {
246
+ selectfields:[],
247
+ data: {},
248
+ model: new PagedList('rs/sql/fillCardQuery', 20, {}, {f_cardfees: 0}),
249
+ criteriaShow: false,
250
+ headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补卡类型", "表编号", "卡号", "气表品牌", "气表状态", "卡费", "补卡日期", "人员", "部门", "公司"],
251
+ bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", " f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_cardfees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
252
+
253
+ orgCondtionStr: '',
254
+ initres: {
255
+ org:[this.$login.f.orgid],
256
+ dep:[],
257
+ user:[],
258
+ },
259
+ modelval: [],
260
+ printshow: false,
261
+ all: false,
262
+ fields: {},
263
+ thead: '',
264
+ tfoot: '',
265
+ gasproperties:[],
266
+ meterbrands: [],
267
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
268
+
269
+ show:false,
270
+ rowdata:{},
271
+ //合计数据
272
+ sumsmodel: {}
273
+ }
274
+ },
275
+ props:['selectorg'],
276
+ ready() {
277
+ if(this.selectorg != null && this.selectorg != null != ''){
278
+ this.initres.org=[]
279
+ this.initres.org.push(this.selectorg);
280
+ }
281
+ readySomething(this).then(() => {
282
+ this.$emit('ready')
283
+ }).catch((error) => {
284
+ this.$emit('error', error)
285
+ })
286
+ for(var item in exportConfig.dataReportConfig){
287
+ this.selectfields.push(item)
288
+ }
289
+ },
290
+ methods: {
291
+ userTypeChange () {
292
+ this.gasproperties=[]
293
+ if(this.$refs.paged.$refs.cri.model !==null) {
294
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
295
+
296
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
297
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
298
+ // this.gasproperties.push({label: '全部', value: ''})
299
+ }
300
+ else{
301
+ this.gasproperties =[{label: '全部', value: ''}]
302
+ }
303
+ },
304
+ search(){
305
+ this.$refs.paged.$refs.cri.search()
306
+ },
307
+ cancel() {
308
+ this.show = false
309
+ },
310
+ selfSearch(args) {
311
+ args.condition = `${args.condition}` + this.orgCondtionStr
312
+ this.model.search(args.condition, args.model)
313
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
314
+ },
315
+
316
+ initParams() {
317
+ // 初始化气表品牌
318
+ let brandArr = []
319
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
320
+ let temp = {}
321
+ temp.label = item.label
322
+ temp.value = item.value.f_meter_brand
323
+ brandArr.push(temp)
324
+ })
325
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
326
+ },
327
+
328
+ clear() {
329
+ //清空部门和人员
330
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
331
+ //部门和人员变为全选
332
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
333
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
334
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
335
+ this.$refs.paged.$refs.cri.model[key] = ''
336
+ })
337
+ },
338
+ show() {
339
+ this.criteriaShow = true
340
+ },
341
+ hidden() {
342
+ this.criteriaShow = !this.criteriaShow
343
+ },
344
+ getRes(condition) {
345
+ this.orgCondtionStr = condition
346
+ },
347
+ dealmsg(val) {
348
+ console.log('---------------dealmsg')
349
+ this.rowdata=val
350
+ this.show=true
351
+ val.model = this.model.model
352
+ this.$dispatch('deal-msg', val)
353
+ },
354
+ stamp() {
355
+ this.all = false
356
+ //默认选择要打印的列
357
+ this.modelval = defaultPrint.config
358
+ this.fields = this.getfield
359
+ console.log('所有打印字段', this.fields)
360
+ this.printshow = true
361
+ this.put()
362
+ },
363
+ put() {
364
+ // 对Modelval进行排序
365
+ this.sortModelval()
366
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
367
+ for (let key of this.modelval) {
368
+ this.thead += '<th>' + this.fields[key] + '</th>'
369
+ }
370
+ this.thead += '</tr>'
371
+ },
372
+ print() {
373
+ this.$refs.print.PrintAsFile()
374
+ this.printshow = false
375
+ },
376
+ close() {
377
+ this.printshow = false
378
+ this.all = false
379
+ },
380
+ // 对选择的列进行排序
381
+ sortModelval() {
382
+ let sortModel = []
383
+ Object.keys(this.fields).forEach((key) => {
384
+ if (this.modelval.includes(key)) {
385
+ sortModel.push(key)
386
+ }
387
+ })
388
+ this.modelval = sortModel
389
+ console.log('选择的打印的字段', this.modelval)
390
+ },
391
+ async updateParams() {
392
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
393
+ this.initParams()
394
+ },
395
+ },
396
+ watch: {
397
+ 'all'(val) {
398
+ if (val) {
399
+ this.modelval = this.bodyData
400
+ } else {
401
+ this.modelval = defaultPrint.config
402
+ this.put()
403
+ }
404
+ },
405
+ 'modelval.length'() {
406
+ this.put()
407
+ },
408
+ 'orgCondtionStr'(val) {
409
+ let res = val.match(/'(.*?)'/)
410
+ console.log('正则提取:',res && res[1])
411
+ if (res) {
412
+ this.selectorg = res[1]
413
+ this.f_filialeid = res[1]
414
+ this.updateParams()
415
+ }
416
+ }
417
+ },
418
+ computed: {
419
+ getCondition() {
420
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
421
+ },
422
+ getfield() {
423
+ return exportConfig.fillcardConfig
424
+ },
425
+ usertypes() {
426
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
427
+ },
428
+ fillCardTypes() {
429
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡类型')]
430
+ },
431
+ chargeState() {
432
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡状态')]
433
+ },
434
+ }
435
+ }
436
+ </script>