manage-client 3.2.108 → 3.2.111

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,632 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
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
+
11
+ <div class="col-sm-2 form-group">
12
+ <label for="startDate" class="font_normal_body">操作日期</label>
13
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
14
+ v-model="model.startDate"
15
+ :value.sync="model.startDate"
16
+ :format="'yyyy-MM-dd HH:mm:ss'"
17
+ :show-reset-button="true"
18
+ condition="f_charge_date >= '{}'">
19
+ </datepicker>
20
+ </div>
21
+ <div class="col-sm-2 form-group">
22
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
23
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
24
+ v-model="model.endDate"
25
+ :value.sync="model.endDate"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true"
28
+ condition="f_charge_date <= '{}'">
29
+ </datepicker>
30
+ </div>
31
+
32
+ <div class="col-sm-2 form-group">
33
+ <label class="font_normal_body">客户编号</label>
34
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
35
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
36
+ </div>
37
+ <div class="col-sm-2 form-group">
38
+ <label class="font_normal_body">缴&nbsp;费&nbsp;人&nbsp;</label>
39
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_charge_person"
40
+ condition="f_charge_person like '%{}%'" placeholder="缴费人">
41
+ </div>
42
+ <div class="span" style="float:right;">
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+
46
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
+ sqlurl="rs/logic/exportfile" sql-name="gaslossQuery" template-name='气损收费导出'
49
+ :choose-col="true"></export-excel>
50
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
+ :defaultfield="$parent.$parent.defaultfield" print-name="气损收费打印"
52
+ titletable="气损收费打印"
53
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
+
55
+ <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>
56
+ </div>
57
+ </div>
58
+ <div class="row" v-show="$parent.$parent.criteriaShow">
59
+ <res-select-group :show-component="['company','operator']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body" title="参数:气损分类">气损分类</label>
62
+ <v-select :value.sync="model.f_type" multiple
63
+ v-model="model.f_type"
64
+ :options='$parent.$parent.gaslosstypes' placeholder='请选择'
65
+ condition="f_type in {}"
66
+ close-on-select></v-select>
67
+ </div>
68
+ <div class="col-sm-2 form-group">
69
+ <label class="font_normal_body" title="参数:气损类型">气损类型</label>
70
+ <v-select :value.sync="model.f_loss_type" multiple
71
+ v-model="model.f_loss_type"
72
+ :options='model.f_type?this.$appdata.getParam(model.f_type):[]'
73
+ placeholder='请选择'
74
+ condition="f_loss_type in {}"
75
+ close-on-select></v-select>
76
+ </div>
77
+ <div class="col-sm-2 form-group">
78
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
79
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_charge_address"
80
+ condition="f_charge_address like '%{}%'" placeholder="缴费人地址">
81
+ </div>
82
+ <div class="col-sm-2 form-group">
83
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
84
+ <v-select :value.sync="model.f_payment" multiple
85
+ v-model="model.f_payment"
86
+ :options='$parent.$parent.payment' placeholder='请选择'
87
+ condition="f_payment in {}"
88
+ close-on-select></v-select>
89
+ </div>
90
+
91
+ </div>
92
+ </div>
93
+ </criteria>
94
+
95
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
96
+ <template partial='head'>
97
+ <tr>
98
+ <th>
99
+ <!--<nobr>客户编号</nobr>-->
100
+ <data-order field="f_userinfo_code" name="客户编号" :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
101
+ </th>
102
+ <th>
103
+ <nobr>缴费人</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>联系方式</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>缴费人地址</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>气损分类</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>气损类型</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>数量</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>单价</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>金额</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>付款方式</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>打印格式</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>流水号</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>支付单号</nobr>
137
+ </th>
138
+ <th>
139
+ <nobr>详情</nobr>
140
+ </th>
141
+ <th>
142
+ <!--<nobr>缴费日期</nobr>-->
143
+ <data-order field="f_charge_date" name="缴费日期" :order.sync="$parent.$parent.$parent.orderFields.f_charge_date"></data-order>
144
+ </th>
145
+
146
+ <th>
147
+ <nobr>操作人</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>部门</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>公司</nobr>
154
+ </th>
155
+ <!-- <th><nobr>附件</nobr></th>-->
156
+ </tr>
157
+ </template>
158
+ <template partial='body'>
159
+ <td style="text-align: center;">
160
+ <nobr>{{row.f_userinfo_code}}</nobr>
161
+ </td>
162
+ <td style="text-align: center;">
163
+ <nobr>{{row.f_charge_person}}</nobr>
164
+ </td>
165
+ <td style="text-align: center;">
166
+ <nobr>{{row.f_charge_phone}}</nobr>
167
+ </td>
168
+ <td style="text-align: center;">
169
+ <nobr>{{row.f_charge_address}}</nobr>
170
+ </td>
171
+ <td style="text-align: center;">
172
+ <nobr>{{row.f_type}}</nobr>
173
+ </td>
174
+ <td style="text-align: center;">
175
+ <nobr>{{row.f_loss_type}}</nobr>
176
+ </td>
177
+ <td style="text-align: center;">
178
+ <nobr>{{row.f_number}}</nobr>
179
+ </td>
180
+ <td style="text-align: center;">
181
+ <nobr>{{row.f_unitprice}}</nobr>
182
+ </td>
183
+ <td style="text-align: center;">
184
+ <nobr>{{row.f_collection}}</nobr>
185
+ </td>
186
+
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_payment}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_bill_style}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_serial_id}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_pay_id}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.detail}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_charge_date}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_operator}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_depname}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_orgname}}</nobr>
213
+ </td>
214
+ <!-- <td style="text-align: center;"><nobr>-->
215
+ <!-- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>-->
216
+ <!-- </nobr></td>-->
217
+ </template>
218
+ <template partial='foot'></template>
219
+ </data-grid>
220
+ </criteria-paged>
221
+
222
+ <table class="table-hover">
223
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
224
+ <td
225
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
226
+ 汇总信息
227
+ </td>
228
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
229
+ 金额合计:&emsp;{{sumsmodel.f_collection}}
230
+ </td>
231
+
232
+ </tr>
233
+ </table>
234
+ </div>
235
+ </div>
236
+ <div class="flex" v-if="show">
237
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
238
+ </div>
239
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
240
+ <article slot="modal-body">
241
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="气损收费" :isremark="false" style="width:auto" ></upload>
242
+ </article>
243
+ <footer slot="modal-footer" class="modal-footer">
244
+ </footer>
245
+ </modal>
246
+
247
+
248
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
249
+ <header slot="modal-header" class="modal-header">
250
+ 反盘导入
251
+ </header>
252
+ <article slot="modal-body" class="modal-body">
253
+ <div class="progress" style="margin: 20px" >
254
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
255
+ {{percent}}%
256
+ </div>
257
+ </div>
258
+ </article>
259
+ <footer slot="modal-footer" class="modal-footer">
260
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
261
+ </footer>
262
+ </modal>
263
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
264
+ </div>
265
+ </template>
266
+
267
+ <script>
268
+ import {PagedList, HttpResetClass} from 'vue-client'
269
+ import defaultPrint from '../../components/sale/config/DefaultPrint'
270
+ import exportConfig from '../../components/sale/config/exportConfig'
271
+ import axios from 'axios'
272
+
273
+ let readySomething = async function (self) {
274
+
275
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
276
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
277
+ await self.$getConfig(self, 'GasLossQuery')
278
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
279
+ console.log('开始查询')
280
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
281
+ }
282
+ export default {
283
+ props:['data'],
284
+ title: '气损收费查询',
285
+ data() {
286
+ return {
287
+ iswork:false,
288
+ other:[],
289
+ footer:[],
290
+ data: {},
291
+ model: new PagedList('rs/sql/gaslossQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_userinfo_code desc'`}, {
292
+ f_collection: 0
293
+ }),
294
+ initres: {
295
+ org:[this.$login.f.orgid],
296
+ dep:[],
297
+ user:[],
298
+ },
299
+ show:false,
300
+ rowdata:{},
301
+ criteriaShow: false,
302
+
303
+ orgCondtionStr: '',
304
+ modelval: [],
305
+
306
+ inputtouPerson: [],
307
+ meterbrands: [],
308
+ printshow: false,
309
+ f_filialeid: this.$login.f.f_orgid,
310
+ all: false,
311
+ fields: {},
312
+ //排序
313
+ orderitem:'f_userinfo_code desc',
314
+ orderFields: {
315
+ f_userinfo_code: 'no'
316
+ },
317
+ thead: '',
318
+ tfoot: '',
319
+ showupload:false,
320
+ selected:{},
321
+
322
+ // 下拉框
323
+
324
+ //合计数据
325
+ sumsmodel: {},
326
+ defaultfield: [],
327
+ config: {
328
+ defaultPrint: ['f_userinfo_code', 'f_charge_person', 'f_charge_phone', 'f_charge_address', 'f_collection']
329
+ },
330
+ prices: [],
331
+ meterbooks:[{label: '全部',value: ''}], //抄表册
332
+ tempfalg :false,
333
+ lastorgstr:'',
334
+ allorgid:[],
335
+ inputtores:[{label: '全部',value: ''}], //抄表员
336
+ //表册片区
337
+ bookSlice:[{label: '全部',value: ''}],
338
+ imgshow:false,
339
+ imgfilename:'',
340
+ percent:0,
341
+ progressShow:false,
342
+ uuida:'',
343
+ timer:'',
344
+ }
345
+ },
346
+ ready() {
347
+ readySomething(this).then(() => {
348
+ this.$emit('ready')
349
+ }).catch((error) => {
350
+ this.$emit('error', error)
351
+ })
352
+ },
353
+ methods: {
354
+ getuuid(){
355
+ let uuidA = '';
356
+ var s = [];
357
+ var hexDigits = '0123456789abcdef';
358
+ for (var i = 0; i < 36; i++) {
359
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
360
+ }
361
+ s[14] = '4';
362
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
363
+ s[8] = s[13] = s[18] = s[23] = '-';
364
+ uuidA = s.join('');
365
+ this.uuida = uuidA;
366
+ },
367
+ progressclose(){
368
+ this.progressShow = false;
369
+ if(this.timer != null){
370
+ clearInterval(this.timer);
371
+ }
372
+ },
373
+
374
+ view(row){
375
+ this.showupload = true
376
+ this.selected= row
377
+ },
378
+ imgclose(){
379
+ this.imgshow = false
380
+ },
381
+ imgShow(val){
382
+ this.imgfilename = `rs/image/file/`+val
383
+ this.imgshow = true
384
+ },
385
+ getotherfooter(){
386
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
387
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
388
+ this.other=[];
389
+ this.footer=[];
390
+ let exportdata = this.getCondition;
391
+ let otherInData=[];
392
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
393
+ let footerData=[],exportfield=this.getfield;
394
+ footerData.push("合计");
395
+ let self = this;
396
+ for(var field in self.sumsmodel){
397
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
398
+ }
399
+ this.footer.push(footerData);
400
+ this.other.push(otherInData);
401
+ },
402
+
403
+ Fileinput(){
404
+ this.batchmoneyShow=true;
405
+ },
406
+ search(){
407
+ this.$refs.paged.$refs.cri.search()
408
+ },
409
+ cancel() {
410
+ this.show = false
411
+ },
412
+ selfSearch(args) {
413
+ if (this.data) {
414
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
415
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
416
+ }
417
+ args.condition = `${args.condition} ` + this.orgCondtionStr
418
+ this.model.search(args.condition, args.model)
419
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
420
+ },
421
+ clear() {
422
+ //清空部门和人员
423
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
424
+ //部门和人员变为全选
425
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
426
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
427
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
428
+ this.$refs.paged.$refs.cri.model[key] = []
429
+ })
430
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
431
+ },
432
+ show() {
433
+ this.criteriaShow = true
434
+ },
435
+ hidden() {
436
+ this.criteriaShow = !this.criteriaShow
437
+ },
438
+ async getRes(condition,obj) {
439
+ this.orgCondtionStr = condition
440
+
441
+ },
442
+ stamp() {
443
+ this.all = false
444
+ //默认选择要打印的列
445
+ this.modelval = defaultPrint.config
446
+ this.fields = this.getfield
447
+ this.printshow = true
448
+ this.put()
449
+ },
450
+ put() {
451
+ // 对Modelval进行排序
452
+ this.sortModelval()
453
+ this.thead = `<tr><th colspan=${this.modelval.length}>气损收费统计报表</th></tr><tr>`
454
+ for (let key of this.modelval) {
455
+ this.thead += '<th>' + this.fields[key] + '</th>'
456
+ }
457
+ this.thead += '</tr>'
458
+ },
459
+ print() {
460
+ this.$refs.print.PrintAsFile()
461
+ this.printshow = false
462
+ },
463
+ dealmsg(val) {
464
+ this.rowdata=val
465
+ this.show=true
466
+ val.model = this.model.model
467
+ this.$dispatch('deal-msg', val)
468
+ },
469
+ close() {
470
+ this.printshow = false
471
+ this.all = false
472
+ },
473
+
474
+
475
+ // 对选择的列进行排序
476
+ sortModelval() {
477
+ let sortModel = []
478
+ Object.keys(this.fields).forEach((key) => {
479
+ if (this.modelval.includes(key)) {
480
+ sortModel.push(key)
481
+ }
482
+ })
483
+ this.modelval = sortModel
484
+ },
485
+ sort (field, rule) {
486
+ // 将所有排序方式设为不排序,实现相互排斥
487
+ for (let key in this.orderFields) {
488
+ if (key === field) {
489
+ this.orderFields[key] = rule
490
+ } else {
491
+ this.orderFields[key] = 'no'
492
+ }
493
+ }
494
+ // 如果新规则不排序,还原为默认排序
495
+ if (rule === 'no') {
496
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
497
+ } else {
498
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
499
+ }
500
+
501
+ this.search()
502
+ }
503
+ },
504
+ watch: {
505
+ 'model.rows'(val) {
506
+ if(val.length === 0){
507
+ this.sumsmodel = {}
508
+ }
509
+ },
510
+ async 'orgCondtionStr'(val) {
511
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
512
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
513
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
514
+ this.meterbooks = [{label: '全部',value: ''}];
515
+ if(this.lastorgstr != val){
516
+ this.tempfalg = true;
517
+ this.lastorgstr = val;
518
+ }
519
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
520
+ this.tempfalg = false;
521
+ let a = val.substring(val.indexOf("(")+2)
522
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
523
+ }
524
+ let res = val.match(/'(.*?)'/)
525
+ console.log('正则提取:',res && res[1])
526
+ if (res) {
527
+ this.f_filialeid = res[1]
528
+ if(res.input !=null){
529
+ let resorgid = res.input.substring(res.input.indexOf("'"));
530
+ if(resorgid!= null && resorgid!=''){
531
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
532
+ // resorgid = resorgid.replaceAll("'","");
533
+ resorgid = resorgid.replace(/'/g,"");
534
+ this.allorgid = resorgid.split(",")
535
+ }
536
+ }
537
+ // this.updateParams()
538
+ }
539
+ },
540
+ 'all'(val) {
541
+ if (val) {
542
+ this.modelval = this.bodyData
543
+ } else {
544
+ this.modelval = defaultPrint.config
545
+ this.put()
546
+ }
547
+ },
548
+ 'modelval.length'() {
549
+ this.put()
550
+ },
551
+ sumsmodel:{
552
+ handler: function(val) {
553
+ this.getotherfooter();
554
+ },
555
+ deep: true
556
+ }
557
+ },
558
+ computed: {
559
+
560
+ getCondition() {
561
+ return {
562
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
563
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
564
+ orderitem: this.orderitem,
565
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
566
+ },
567
+ getfield() {
568
+ return exportConfig.gaslossConfig
569
+ },
570
+ payment() {
571
+ return [{label: '全部', value: ''},...this.$appdata.getParam('付款方式查询')]
572
+ },
573
+ gaslosstypes() {
574
+ return [{label: '全部', value: ''},...this.$appdata.getParam('气损分类')]
575
+ }
576
+
577
+ },
578
+ events:{
579
+ 'onFileUpload': async function (file, res) {
580
+ if (this.batchmoneyShow) {
581
+ this.percent = 0;
582
+ this.getuuid();
583
+ let param = {
584
+ filepath: res.f_downloadpath,
585
+ f_operator: this.$login.f.name,
586
+ f_operatorid: this.$login.f.id,
587
+ f_orgid: this.$login.f.orgid,
588
+ f_orgname: this.$login.f.orgs,
589
+ f_depid: this.$login.f.depids,
590
+ f_depname: this.$login.f.deps,
591
+ uuid: this.uuida
592
+ }
593
+ this.batchmoneyShow=false;
594
+ try{
595
+ await this.$resetpost('rs/logic/SumSettleFileImport',{data: param},{resolveMsg: null, rejectMsg: null},1000).then((res)=>{
596
+ if(res.data){
597
+ }
598
+ })
599
+ }catch(error){}
600
+ let getparam = {
601
+ uuid: this.uuida
602
+ }
603
+ let self = this;
604
+ this.progressShow=true;
605
+ this.timer = setInterval(function(){
606
+ self.$resetpost('/rs/logic/getBatchOperaPro',{data:getparam},{resolveMsg: null, rejectMsg: null}, 0).then((res)=>{
607
+ if(res.data ){
608
+ if(res.data.speed){
609
+ if(res.data.speed>= 100){
610
+ clearInterval(self.timer);
611
+ if(res.data.speed){
612
+ self.percent = 99;
613
+ }
614
+ setTimeout(()=>{
615
+ self.percent = 100;
616
+ self.progressclose();
617
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
618
+ },600);
619
+ }else{
620
+ self.percent = res.data.speed
621
+ }
622
+ }else{
623
+ self.percent=0;
624
+ }
625
+ }
626
+ });
627
+ },3000);
628
+ }
629
+ }
630
+ }
631
+ }
632
+ </script>
@@ -845,6 +845,7 @@
845
845
  }
846
846
  },
847
847
  ready() {
848
+ this.$refs.paged.$refs.cri.model.f_meter_state=['已抄表']
848
849
  this.getaddress()
849
850
  readySomething(this).then(() => {
850
851
  this.$emit('ready')
@@ -4,12 +4,12 @@ let specialComp = {
4
4
  'arrears-query': (resolve) => { require(['./ArrearsQuery'], resolve) },
5
5
  'charge-query': (resolve) => { require(['./ChargeQuery'], resolve) },
6
6
  'handplan-query': (resolve) => { require(['./HandplanQuery'], resolve) },
7
+ 'gasloss-query': (resolve) => { require(['./GasLossQuery'], resolve) },
7
8
  // 表具查询
8
9
  'meter-query': (resolve) => { require(['./MeterQuery'], resolve) },
9
10
  // 用户查询
10
11
  'user-query': (resolve) => { require(['./UserQuery'], resolve) },
11
12
  'business-manage': (resolve) => { require(['./BusinessManage'], resolve) }
12
-
13
13
  }
14
14
  exports.specialComp = specialComp
15
15
 
@@ -363,7 +363,7 @@
363
363
  pcdslist:[],
364
364
  other:[],
365
365
  footer:[],
366
- model: new PagedList('rs/sql/deviceQuery', 20),
366
+ model: new PagedList('rs/sql/deviceQuery', 20, {orderitem: '"f_operate_date DESC"'}),
367
367
  criteriaShow: false,
368
368
  orgCondtionStr: '',
369
369
  modelval: [],
@@ -305,7 +305,7 @@
305
305
  data: {},
306
306
  other:[],
307
307
  footer:[],
308
- model: new PagedList('rs/sql/fillGasQuery', 20, {}, {f_pregas: 0,f_preamount: 0,hushu:0}),
308
+ model: new PagedList('rs/sql/fillGasQuery', 20, {orderitem: '"f_operate_date DESC"'}, {f_pregas: 0,f_preamount: 0,hushu:0}),
309
309
  criteriaShow: false,
310
310
  headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补气类型", "表编号", "卡号", "气表品牌", "气表状态", "补气量", "补气日期", "操作员", "部门", "公司"],
311
311
  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_fillgas", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
@@ -205,7 +205,7 @@
205
205
  footer:[],
206
206
  meterbrands: [],
207
207
  pricenames: [],
208
- model: new PagedList('rs/sql/pricechangequery', 20),
208
+ model: new PagedList('rs/sql/pricechangequery', 20, {orderitem: '"f_operate_date DESC"'}),
209
209
  criteriaShow: false,
210
210
  orgCondtionStr: '',
211
211
  modelval: [],