manage-client 3.2.122 → 3.2.125

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.
@@ -0,0 +1,480 @@
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
+ <criteria-paged :model="model" v-ref:paged >
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-inline auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
+ </div>
39
+
40
+
41
+ <div class="span" style="float:right;">
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <export-excel :data="$parent.$parent.getCondition"
45
+ :field="$parent.$parent.getfield"
46
+ :footer="$parent.$parent.footer"
47
+ :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile"
49
+ sql-name="MonthGasQuery"
50
+ template-name='月用气导出'
51
+ :choose-col="true"></export-excel>
52
+
53
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
54
+ :defaultfield="$parent.$parent.defaultfield"
55
+ titletable="月用气导出"
56
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
57
+ <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>
58
+ </div>
59
+ </div>
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户名称</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
64
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">客户地址</label>
68
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
69
+ condition="f_address like '%{}%'" placeholder='客户地址'>
70
+ </div>
71
+
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
74
+ <v-select :value.sync="model.f_user_type"
75
+ @change="$parent.$parent.userTypeChange()"
76
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
77
+ condition="f_user_type = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
80
+
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">用气性质</label>
83
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
84
+ :options='$parent.$parent.f_gasproperties' placeholder='请选择'
85
+ multiple
86
+ condition="f_gasproperties in {}"
87
+ ></v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">状态</label>
91
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
92
+ :options='$parent.$parent.f_state' placeholder='请选择'
93
+ multiple
94
+ :search="false"
95
+ condition="f_state in {} "
96
+ close-on-select></v-select>
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
100
+ <v-select :value.sync="model.f_meter_style"
101
+ multiple
102
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
103
+ condition="f_meter_style in {}"
104
+ ></v-select>
105
+ </div>
106
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
107
+
108
+ </div>
109
+ </div>
110
+ </criteria>
111
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
112
+ <template partial='head'>
113
+ <tr>
114
+ <th><nobr>客户编号</nobr></th>
115
+ <th><nobr>客户名称</nobr></th>
116
+ <th><nobr>档案编号</nobr></th>
117
+ <th><nobr>一月</nobr></th>
118
+ <th><nobr>二月</nobr></th>
119
+ <th><nobr>三月</nobr></th>
120
+ <th><nobr>四月</nobr></th>
121
+ <th><nobr>五月</nobr></th>
122
+ <th><nobr>六月</nobr></th>
123
+ <th><nobr>七月</nobr></th>
124
+ <th><nobr>八月</nobr></th>
125
+ <th><nobr>九月</nobr></th>
126
+ <th><nobr>十月</nobr></th>
127
+ <th><nobr>十一月</nobr></th>
128
+ <th><nobr>十二月</nobr></th>
129
+ <th><nobr>累计气量</nobr></th>
130
+ <th><nobr>累计金额</nobr></th>
131
+ <th><nobr>月平均气量</nobr></th>
132
+ <th><nobr>往年月平均气量</nobr></th>
133
+ <th><nobr>气表类型</nobr></th>
134
+ </tr>
135
+ </template>
136
+ <template partial='body'>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.code}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.username}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
145
+ </td>
146
+ <td style="text-align: center;">
147
+ <nobr>{{row.jan}}</nobr>
148
+ </td>
149
+ <td style="text-align: center;">
150
+ <nobr>{{row.feb}}</nobr>
151
+ </td>
152
+ <td style="text-align: center;">
153
+ <nobr>{{row.mar}}</nobr>
154
+ </td>
155
+ <td style="text-align: center;">
156
+ <nobr>{{row.apr}}</nobr>
157
+ </td>
158
+ <td style="text-align: center;">
159
+ <nobr>{{row.may}}</nobr>
160
+ </td>
161
+ <td style="text-align: center;">
162
+ <nobr>{{row.jun}}</nobr>
163
+ </td>
164
+ <td style="text-align: center;">
165
+ <nobr>{{row.jul}}</nobr>
166
+ </td>
167
+ <td style="text-align: center;">
168
+ <nobr>{{row.jug}}</nobr>
169
+ </td>
170
+ <td style="text-align: center;">
171
+ <nobr>{{row.sep}}</nobr>
172
+ </td>
173
+ <td style="text-align: center;">
174
+ <nobr>{{row.oct}}</nobr>
175
+ </td>
176
+ <td style="text-align: center;">
177
+ <nobr>{{row.nov}}</nobr>
178
+ </td>
179
+ <td style="text-align: center;">
180
+ <nobr>{{row.dec}}</nobr>
181
+ </td>
182
+ <td style="text-align: center;">
183
+ <nobr>{{row.sum_oughtamount}}</nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <nobr>{{row.f_oughtfee}}</nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{row.avg_oughtamount}}</nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{row.avg_qunianoughtamount}}</nobr>
193
+ </td>
194
+ <td style="text-align: center;">
195
+ <nobr>{{row.f_meter_style}}</nobr>
196
+ </td>
197
+ </template>
198
+ <template partial='foot'></template>
199
+ </data-grid>
200
+ </criteria-paged>
201
+ <table class="table-hover">
202
+ <tr style="position: relative" class="table-bordered">
203
+ <td
204
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
205
+ 汇总信息
206
+ </td>
207
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
208
+ 1月合计:&emsp;{{sumsmodel.jan}}
209
+ </td>
210
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
211
+ 2月合计:&emsp;{{sumsmodel.feb}}
212
+ </td>
213
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
214
+ 3月合计:&emsp;{{sumsmodel.mar}}
215
+ </td>
216
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
217
+ 4月合计:&emsp;{{sumsmodel.apr}}
218
+ </td>
219
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
220
+ 5月合计:&emsp;{{sumsmodel.may}}
221
+ </td>
222
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
223
+ 6月合计:&emsp;{{sumsmodel.jun}}
224
+ </td>
225
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
226
+ 7月合计:&emsp;{{sumsmodel.jul}}
227
+ </td>
228
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
229
+ 8月合计:&emsp;{{sumsmodel.jug}}
230
+ </td>
231
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
232
+ 9月合计:&emsp;{{sumsmodel.sep}}
233
+ </td>
234
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
235
+ 10月合计:&emsp;{{sumsmodel.oct}}
236
+ </td>
237
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
238
+ 11月合计:&emsp;{{sumsmodel.nov}}
239
+ </td>
240
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
241
+ 12月合计:&emsp;{{sumsmodel.dec}}
242
+ </td>
243
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
244
+ 累计用气量合计:&emsp;{{sumsmodel.sum_oughtamount}}
245
+ </td>
246
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
247
+ 累计金额合计:&emsp;{{sumsmodel.f_oughtfee}}
248
+ </td>
249
+ </tr>
250
+ </table>
251
+ </div>
252
+ <div v-if="show">
253
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ </template>
258
+ <script>
259
+ import { PagedList } from 'vue-client'
260
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
261
+ import exportConfig from '../../components/sale/config/exportConfig.js'
262
+ let readySomething = async function(self) {
263
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
264
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
265
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
266
+ await self.$MagLoadParams.loadParam()
267
+ self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
268
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
269
+ }
270
+ export default {
271
+ title: '月用气查询',
272
+ name: 'MonthGasQuery',
273
+ data () {
274
+ return {
275
+ model: new PagedList('rs/sql/MonthGasQuery', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
276
+ jan: 0,
277
+ feb: 0,
278
+ mar: 0,
279
+ apr: 0,
280
+ may: 0,
281
+ jun: 0,
282
+ jul: 0,
283
+ jug: 0,
284
+ sep: 0,
285
+ oct: 0,
286
+ nov: 0,
287
+ dec: 0,
288
+ sum_oughtamount: 0,
289
+ f_oughtfee: 0
290
+ }),
291
+ initres: {
292
+ org:[this.$login.f.orgid],
293
+ dep:[],
294
+ user:[],
295
+ },
296
+ other: [],
297
+ footer: [],
298
+ f_gasproperties:[],
299
+ show:false,
300
+ rowdata:{},
301
+ criteriaShow: false,
302
+ orgCondtionStr: '',
303
+ modelval: [],
304
+ printshow: false,
305
+ all: false,
306
+ fields: {},
307
+ thead: '',
308
+ tfoot: '',
309
+ defaultfield: [],
310
+ config: {
311
+ defaultPrint: ['f_oughtfee', 'avg_oughtamount']
312
+ },
313
+ smallareas:[{label: '全部',value: ''}], //区域
314
+ //合计数据
315
+ sumsmodel: {},
316
+ f_filialeid: this.$login.f.f_orgid,
317
+ f_orgid: this.$login.f.orgid,
318
+ f_depid: this.$login.f.depids,
319
+ f_operatorid: this.$login.f.id
320
+ }
321
+ },
322
+ ready () {
323
+ readySomething(this)
324
+ },
325
+ methods: {
326
+ getotherfooter() {
327
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
328
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
329
+ this.other = [];
330
+ this.footer = [];
331
+ // let exportdata = this.getCondition;
332
+ let otherInData = [];
333
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
334
+ let footerData = [], exportfield = this.getfield;
335
+ footerData.push("合计");
336
+ let self = this;
337
+ for (var field in self.sumsmodel) {
338
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
339
+ }
340
+ this.footer.push(footerData);
341
+ this.other.push(otherInData);
342
+ },
343
+ userTypeChange () {
344
+ this.f_gasproperties=[]
345
+ if(this.$refs.paged.$refs.cri.model !==null) {
346
+ this.$refs.paged.$refs.cri.model.f_gasproperties=[]
347
+
348
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
349
+ this.f_gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
350
+ }
351
+ else{
352
+ this.f_gasproperties =[{label: '全部', value: ''}]
353
+ }
354
+ },
355
+ search(){
356
+ this.$refs.paged.$refs.cri.search()
357
+ },
358
+ cancel() {
359
+ this.show = false
360
+ },
361
+ selfSearch(args) {
362
+ args.condition = `${args.condition} ` + this.orgCondtionStr
363
+ // let f_orgstr = this.orgCondtionStr + 'and f_orgid = ' + this.f_orgid
364
+ // args.condition = `${args.condition} ` + f_orgstr
365
+ this.model.search(args.condition, args.model)
366
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
367
+ },
368
+ clear() {
369
+ //清空部门和人员
370
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
371
+ //部门和人员变为全选
372
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
373
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
374
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
375
+ this.$refs.paged.$refs.cri.model[key] = []
376
+ })
377
+ },
378
+ show() {
379
+ this.criteriaShow = true
380
+ },
381
+ hidden() {
382
+ this.criteriaShow = !this.criteriaShow
383
+ },
384
+ showmsg(obj){
385
+ this.rowdata=obj
386
+ this.show=true
387
+ },
388
+ getRes(condition,obj) {
389
+ this.orgCondtionStr = condition
390
+ this.orgname = obj.orgnames[0]
391
+ this.depname = obj.depnames[0]
392
+ },
393
+ put() {
394
+ // 对Modelval进行排序
395
+ this.sortModelval()
396
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
397
+ for (let key of this.modelval) {
398
+ this.thead += '<th>' + this.fields[key] + '</th>'
399
+ }
400
+ this.thead += '</tr>'
401
+ },
402
+ print() {
403
+ this.$refs.print.PrintAsFile()
404
+ this.printshow = false
405
+ },
406
+ dealmsg(val) {
407
+ this.rowdata=val
408
+ this.show=true
409
+ val.model = this.model.model
410
+ this.$dispatch('deal-msg', val)
411
+ },
412
+ close() {
413
+ this.printshow = false
414
+ this.all = false
415
+ },
416
+ // 对选择的列进行排序
417
+ sortModelval() {
418
+ let sortModel = []
419
+ Object.keys(this.fields).forEach((key) => {
420
+ if (this.modelval.includes(key)) {
421
+ sortModel.push(key)
422
+ }
423
+ })
424
+ this.modelval = sortModel
425
+ console.log('选择的打印的字段', this.modelval)
426
+ }
427
+ },
428
+ computed: {
429
+ getCondition() {
430
+ return {
431
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
432
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
433
+ endDate: this.$refs.paged.$refs.cri.model.endDate
434
+ }
435
+ },
436
+ getfield() {
437
+ return exportConfig.monthGasConfig
438
+ },
439
+ usertypes() {
440
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
441
+ },
442
+ f_state() {
443
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
444
+ },
445
+ metertypes() {
446
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
447
+ },
448
+ },
449
+ events: {
450
+
451
+ },
452
+ watch: {
453
+ 'all'(val) {
454
+ if (val) {
455
+ this.modelval = this.bodyData
456
+ } else {
457
+ this.modelval = defaultPrint.config
458
+ this.put()
459
+ }
460
+ },
461
+ 'modelval.length'() {
462
+ this.put()
463
+ },
464
+ sumsmodel: {
465
+ handler: function (val) {
466
+ this.getotherfooter();
467
+ },
468
+ deep: true
469
+ }
470
+ }
471
+ }
472
+ </script>
473
+ <style>
474
+ .datapanel {
475
+ color: #333;
476
+ background-color: white;
477
+ padding: 10px 20px;
478
+ border-radius:15px;
479
+ }
480
+ </style>
@@ -5,6 +5,8 @@ let specialComp = {
5
5
  'meter-query': (resolve) => { require(['./MeterQuery'], resolve) },
6
6
  'record-info-query': (resolve) => { require(['./RecordInfoQuery'], resolve) },
7
7
  'sell-people-query': (resolve) => { require(['./SellPeopleQuery'], resolve) },
8
+ // 月用气状况
9
+ 'month-gas-query': (resolve) => { require(['./MonthGasQuery'], resolve) },
8
10
  }
9
11
  exports.specialComp = specialComp
10
12
 
@@ -3,7 +3,7 @@
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex">
5
5
  <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria-paged :model="model" v-ref:paged>
7
7
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
8
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
9
  <div class="row">
@@ -266,7 +266,7 @@
266
266
  <template partial='head'>
267
267
  <tr>
268
268
  <th>
269
- <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
269
+ <nobr>客户编号</nobr>
270
270
  </th>
271
271
  <th>
272
272
  <nobr>客户名称</nobr>
@@ -281,7 +281,7 @@
281
281
  <nobr>身份证号</nobr>
282
282
  </th>
283
283
  <th>
284
- <data-order field="f_address" name="客户地址" :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
284
+ <nobr>客户地址</nobr>
285
285
  </th>
286
286
  <th>
287
287
  <nobr>表册片区</nobr>
@@ -325,10 +325,10 @@
325
325
  <nobr>通气人</nobr>
326
326
  </th>
327
327
  <th>
328
- <data-order field="f_gas_date" name="通气时间" :order.sync="$parent.$parent.$parent.orderFields.f_gas_date"></data-order>
328
+ <nobr>通气时间</nobr>
329
329
  </th>
330
330
  <th>
331
- <data-order field="f_input_date" name="建表时间" :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
331
+ <nobr>建表时间</nobr>
332
332
  </th>
333
333
  <th>
334
334
  <nobr>气表状态</nobr>
@@ -512,7 +512,7 @@
512
512
  isSingleUser: null,
513
513
  other:[],
514
514
  footer:[],
515
- model: new PagedList('rs/sql/meterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_user_id,f_table_state desc'`}, {f_balance_amount: 0}),
515
+ model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0}),
516
516
  criteriaShow: false,
517
517
  orgCondtionStr: '',
518
518
 
@@ -520,11 +520,6 @@
520
520
  printshow: false,
521
521
  all: false,
522
522
  fields: {},
523
- //排序
524
- orderitem:'f_user_id,f_table_state desc',
525
- orderFields: {
526
- f_userinfo_id: 'no'
527
- },
528
523
  thead: '',
529
524
  tfoot: '',
530
525
  initres: {
@@ -772,24 +767,6 @@
772
767
  })
773
768
  }
774
769
  },
775
- sort (field, rule) {
776
- // 将所有排序方式设为不排序,实现相互排斥
777
- for (let key in this.orderFields) {
778
- if (key === field) {
779
- this.orderFields[key] = rule
780
- } else {
781
- this.orderFields[key] = 'no'
782
- }
783
- }
784
- // 如果新规则不排序,还原为默认排序
785
- if (rule === 'no') {
786
- this.model.paramSource.orderitem = `'${this.orderitem}'`
787
- } else {
788
- this.model.paramSource.orderitem = `'${field} ${rule}'`
789
- }
790
-
791
- this.search()
792
- },
793
770
  async getpcd(){
794
771
  let HttpReset = new HttpResetClass()
795
772
  console.log('开始获取区域')
@@ -863,7 +840,7 @@
863
840
  }
864
841
  this.updateParams()
865
842
  }
866
- }
843
+ },
867
844
  },
868
845
  computed: {
869
846
  authArr () {
@@ -899,7 +876,7 @@
899
876
  }
900
877
  },
901
878
  getCondition() {
902
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,orderitem:this.orderitem}
879
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
903
880
  },
904
881
  getfield() {
905
882
  let data = {}