manage-client 3.2.68-aode → 3.2.69-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.
@@ -1,553 +1,553 @@
1
- <template>
2
- <div v-if="!listpage" @keyup.enter="search">
3
- <criteria-paged :model="model" v-ref:paged @sort="sort">
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <res-select-group :style="$parent.$parent.style" :
8
- initres="$parent.$parent.initres"
9
- @re-res="$parent.$parent.getRes"
10
- :mul="false"
11
- :show-component="['company','department','operator']"
12
- :style="$parent.$parent.style"
13
- v-ref:sel></res-select-group>
14
- <div :class="$parent.$parent.style" >
15
- <label class="font_normal_body">片&emsp;&emsp;区</label>
16
- <v-select :value.sync="model.slice_area" v-model="model.slice_area"
17
- :value-single="true"
18
- :options='$parent.$parent.sliceArea' placeholder='片区/管理站'
19
- close-on-select v-ref:slice>
20
- </v-select>
21
- </div>
22
- <div :class="$parent.$parent.style" >
23
- <label for="startDate" class="font_normal_body">开始日期</label>
24
- <datepicker placeholder="开始日期" style="width:60%"
25
- v-model="model.f_startDate"
26
- :value.sync="model.f_startDate"
27
- :format="'yyyy-MM-dd HH:mm:ss'"
28
- class="datepicker"
29
- :show-reset-button="true"
30
- class="select"
31
- >
32
- </datepicker>
33
- </div>
34
- <div :class="$parent.$parent.style" >
35
- <label for="endDate" class="font_normal_body">结束日期</label>
36
- <datepicker placeholder="结束日期" style="width:60%"
37
- v-model="model.f_endDate"
38
- :value.sync="model.f_endDate"
39
- :format="'yyyy-MM-dd HH:mm:ss'"
40
- class="datepicker"
41
- :show-reset-button="true"
42
- class="select"
43
- >
44
- </datepicker>
45
- </div>
46
- <div :class="$parent.$parent.style">
47
- <label class="font_normal_body">用气性质</label>
48
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
49
- :options='$parent.$parent.useroptions' placeholder='请选择'
50
- condition="f_gasproperties = '{}'"
51
- close-on-select></v-select>
52
- </div>
53
- <div :class="$parent.$parent.style">
54
- <label class="font_normal_body">操作类型</label>
55
- <v-select :value.sync="model.f_type" v-model="model.f_type"
56
- :options='$parent.$parent.operates' placeholder='请选择'
57
- condition="f_type = '{}'"
58
- close-on-select></v-select>
59
- </div>
60
- <div :class="$parent.$parent.style">
61
- <label class="font_normal_body">操作状态</label>
62
- <v-select :value.sync="model.f_state" v-model="model.f_state"
63
- :options='$parent.$parent.stateoptions' placeholder='请选择'
64
- condition="f_state = '{}'"
65
- close-on-select></v-select>
66
- </div>
67
- <div :class="$parent.$parent.style">
68
- <label class="font_normal_body">包含APP</label>
69
- <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
70
- :options='$parent.$parent.hasapps' placeholder='请选择'
71
- condition=" {} "
72
- close-on-select></v-select>
73
- </div>
74
-
75
- <div class="button-range" style="float:right;margin-top:10px">
76
- <button class="button_search button_spacing" @click="search()">查询</button>
77
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
78
- <export-excel :data="$parent.$parent.getCondition" v-ref:exportexcel
79
- :field="$parent.$parent.getfield"
80
- :defaultselect="$parent.$parent.selectfields"
81
- sqlurl="rs/logic/exportfile" sql-name="aode_dayReport" template-name='日清单' :choose-col="true"
82
- class="button_export button_spacing"></export-excel>
83
- <day-report-list-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></day-report-list-print>
84
- <!-- <button v-if="$parent.$parent.pushncshow && $parent.$parent.pushncshow2 " class="button_search button_spacing" @click="$parent.$parent.showpushconfirm()">交账</button>-->
85
- <div style="float: right" class="button_spacing" :class="{'button_shrink_left':$parent.$parent.criteriaShow,'button_shrink_right':!$parent.$parent.criteriaShow}" @click="$parent.$parent.show()"></div>
86
- </div>
87
-
88
- </div>
89
- </div>
90
- </criteria>
91
- <data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" v-ref:grid >
92
- <template partial='head'>
93
- <tr>
94
- <th>
95
- <data-order field="f_userinfo_code" name="客户编号"></data-order>
96
- <!--<nobr>客户编号</nobr>-->
97
- </th>
98
- <th><data-order field="f_user_name" name="客户姓名"></data-order>
99
- <!--<nobr>客户姓名</nobr>-->
100
- </th>
101
- <th><nobr>地址</nobr></th>
102
- <th>
103
- <data-order field="f_user_type" name="客户类型"></data-order>
104
- </th>
105
- <th>
106
- <data-order field="f_user_type" name="用气性质"></data-order>
107
- </th>
108
- <th>
109
- <data-order field="f_meter_brand" name="气表厂家"></data-order>
110
- </th>
111
- <th><data-order field="f_operate_date" name="操作时间"></data-order>
112
- <!--<nobr>操作时间</nobr>-->
113
- </th>
114
- <th><data-order field="f_operate_date" name="操作状态"></data-order>
115
- <!--<nobr>操作时间</nobr>-->
116
- </th>
117
- <th>
118
- <data-order field="f_stair1price" name="1单价"></data-order>
119
- </th>
120
- <th>
121
- <data-order field="f_stair1amount" name="1气量"></data-order>
122
- </th>
123
- <th>
124
- <data-order field="f_stair2price" name="2单价"></data-order>
125
- </th>
126
- <th>
127
- <data-order field="f_stair2amount" name="2气量"></data-order>
128
- </th>
129
- <th>
130
- <data-order field="f_stair3price" name="3单价"></data-order>
131
- </th>
132
- <th>
133
- <data-order field="f_stair3amount" name="3气量"></data-order>
134
- </th>
135
- <th>
136
- <data-order field="f_pregas" name="气量"></data-order>
137
- </th>
138
- <th>
139
- <data-order field="f_preamount" name="应收金额"></data-order>
140
- </th>
141
- <th>
142
- <data-order field="f_collection" name="实收金额"></data-order>
143
- </th>
144
- <th><nobr>上期余额</nobr></th>
145
- <th><nobr>本期余额</nobr></th>
146
- <th>
147
- <data-order field="f_payment" name="付款方式"></data-order>
148
- </th>
149
- <th>
150
- <data-order field="f_type" name="类型"></data-order>
151
- </th>
152
- <th><nobr>收费类型</nobr></th>
153
- <th>
154
- <data-order field="f_operator" name="操作员"></data-order>
155
- </th>
156
- <th><nobr>备注</nobr></th>
157
-
158
- </tr>
159
- </template>
160
- <template partial='body' >
161
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
162
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
163
- </nobr> </td>
164
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
165
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
166
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
167
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_gasproperties}}</nobr></td>
168
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_meter_brand}}</nobr></td>
169
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operate_date}}</nobr></td>
170
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
171
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1price}}</nobr></td>
172
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1amount}}</nobr></td>
173
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2price}}</nobr></td>
174
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2amount}}</nobr></td>
175
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3price}}</nobr></td>
176
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3amount}}</nobr></td>
177
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
178
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
179
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
180
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_balance}}</nobr></td>
181
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_curbalance}}</nobr></td>
182
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
183
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
184
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_real_type}}</nobr></td>
185
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operator}}</nobr></td>
186
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_comments}}</nobr></td>
187
- </template>
188
- </data-grid>
189
- </criteria-paged>
190
- </div>
191
- <modal v-if="pushconfirmflag" :show.sync="pushconfirmflag" :width="1300" title="交账数据确认" v-ref:modal large backdrop="false">
192
- <article slot="modal-body" class="modal-body" style="height: 600px;padding: 0!important;">
193
- <push-confirm-manage :searchcondition.sync="searchCondition" v-if="pushconfirmflag" :orgiddepid="orgCondtionStr" :model.sync="model" v-ref:pushmanage ></push-confirm-manage>
194
- </article>
195
- <footer slot="modal-footer" class="modal-footer" style="margin-top:60px;">
196
- <button v-show="footershow && footershow3" type="button" class="button_search button_spacing" @click='pushncdata'>确认</button>
197
- <button type="button" class="button_clear button_spacing" @click='closeCode'>取消</button>
198
- </footer>
199
- </modal>
200
- <div v-if="listpage">
201
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
202
- </div>
203
- </template>
204
-
205
- <script>
206
-
207
- import {HttpResetClass, PagedList} from 'vue-client'
208
- import exportConfig from '../../config/exportConfig'
209
- import DayReportSummary from "./DayReportSummary";
210
- import getLodop from '../../../../plugins/LodopFuncs'
211
-
212
- export default {
213
- components: {DayReportSummary},
214
- title: '日报表',
215
- props: {
216
- style: {
217
- type: String,
218
- default: 'col-sm-2 form-group'
219
- },
220
- },
221
- data() {
222
- return {
223
- orderDefault: "'f_operate_date'",
224
- orderFields: {
225
- f_userinfo_code: 'no'
226
- },
227
- initres: {
228
- org:[this.$login.f.orgid],
229
- dep:[this.$login.f.depids],
230
- user:[this.$login.f.id]
231
- },
232
- sliceArea: [],
233
- model: new PagedList('rs/sql/aode_dayReport', 30, {orderitem: "'f_operate_date'"},{
234
- f_pregas: 0,
235
- f_collection: 0,
236
- f_count_open: 0,
237
- f_pregas_open: 0,
238
- f_collection_open: 0,
239
- f_count_zg: 0,
240
- f_pregas_zg: 0,
241
- f_collection_zg: 0,
242
- f_count_bk: 0,
243
- f_pregas_bk: 0,
244
- f_collection_bk: 0,
245
- f_count_zjbf:0,
246
- f_collection_zjbf:0,
247
- f_count_ysk:0,
248
- f_collection_ysk:0,
249
- f_count_iotbf:0,
250
- f_collection_iotbf:0,
251
- f_count_iotkf:0,
252
- f_collection_iotkf:0,
253
- f_count_bq: 0,
254
- f_pregas_bq: 0,
255
- f_collection_bq: 0,
256
- f_count_hb: 0,
257
- f_pregas_hb: 0,
258
- f_collection_hb: 0,
259
- f_count_cz: 0,
260
- f_pregas_cz: 0,
261
- f_collection_cz: 0,
262
- f_sum_count:0,
263
- f_shouru_gas:0,
264
- f_shouru_fee:0,
265
- f_yingshou_fee:0,
266
- f_usebenqi_fee:0,
267
- f_benqi_fee:0,
268
- f_sumgtwx:0,
269
- f_sumcwsf:0,
270
- f_sumxjjf:0,
271
- f_sumzfb:0,
272
- f_sumpos:0,
273
- f_sumwxjf:0,
274
- f_sumqp:0,
275
- f_sumyysk:0,
276
- f_sumjjbq:0,
277
- f_sumbtk:0
278
- }),
279
- listpage:false,
280
- rowdata: {},
281
- orgCondtionStr: '',
282
- userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
283
- count: 0,
284
- sumsmodel: {},
285
- printshow: false,
286
- all: false,
287
- orgname: '',
288
- depname: '',
289
- operaname:'',
290
- criteriaShow: false,
291
- operates: [{label: '全部', value: ''},...this.$appdata.getParam('日清单操作类型')],
292
- stateoptions:[{label: '全部', value: ''}, {label: '有效', value: "有效"},{label: '撤销', value: "撤销"},{label: '无效', value: "无效"},{label: '冲正', value: "冲正"}],
293
- hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "f_operator != '悦生活'"},{label: '不包含POS', value: "len(f_voucher_number)<1"},{label: 'POS', value: "f_voucher_number!=''"}],
294
- useroptions:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
295
- selectfields:[],
296
- pushncshow:false,
297
- pushncshow2:false,
298
- searchCondition:{},
299
- pushconfirmflag: false,
300
- footershow:true,
301
- footershow3:false,
302
- }
303
- },
304
- ready() {
305
- if(this.$login.r.includes('收费推送')){
306
- this.pushncshow = true;
307
- }
308
- this.initAreas(this.$login.f.orgid)
309
- this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
310
- this.$refs.paged.$refs.cri.model.f_hasapp = [`f_operator != '悦生活'`]
311
- this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
312
- this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
313
- for(var item in exportConfig.dataReportConfig){
314
- this.selectfields.push(item)
315
- }
316
- // this.search()
317
- },
318
- methods: {
319
- // 初始化片区
320
- async initAreas (val) {
321
- if (val) {
322
- let http = new HttpResetClass()
323
- let getAllArea = await http.load('POST', '/rs/search', {
324
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
325
- userid: this.$login.f.id
326
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
327
- let arr = getAllArea.data.filter((res) => {
328
- return res.parentid == val
329
- })
330
- console.log('过滤之后的片区', arr)
331
- this.sliceArea = [{label: '全部', value: ''}]
332
- arr.forEach((res) => {
333
- this.sliceArea.push({label: res.name, value: res.name})
334
- })
335
- }
336
- },
337
- //推送数据
338
- pushncdata(){
339
- this.$refs.pushmanage.pushncdata();
340
- },
341
- //关闭推送确认窗口
342
- closeCode(){
343
- this.$refs.pushmanage.newmodel = {};
344
- this.$refs.pushmanage.showmone = false;
345
- this.pushconfirmflag = false;
346
- },
347
- //显示交账页面
348
- showpushconfirm(){
349
- this.search();
350
- if(this.searchCondition.condition!=null && this.searchCondition.condition!='' && this.searchCondition.condition.includes("f_gasproperties") || this.searchCondition.condition.includes("f_type") ){
351
- //this.$showMessage("交账失败,本次交账未保存,只能交账一天的数据,请确认交账时间后重新交账!!");
352
- this.$showMessage("交账失败,本次交账未保存,请取消用气性质或操作类型选项,当前时间段内只允许交账一次!!");
353
- return;
354
- }
355
- if(this.searchCondition.condition!=null && this.searchCondition.condition!='' && !this.searchCondition.condition.includes("f_state")){
356
- this.$showAlert('请选择操作状态为有效进行交账!!','warning',2000);
357
- return;
358
- }
359
- this.$showMessage("请进行一次查询后进行交账,",['confirm','cancel']).then(res=>{
360
- if(res == 'confirm'){
361
- this.pushconfirm();
362
- }
363
- })
364
- },
365
- pushconfirm(){
366
- this.pushconfirmflag = true;
367
- },
368
- showmsg(obj){
369
- this.criteriaShow = false
370
- this.$emit('close')
371
- this.rowdata=obj
372
- this.listpage=true
373
- },
374
- cancel() {
375
- this.listpage = false
376
- },
377
- search() {
378
- this.$refs.paged.$refs.cri.search()
379
- },
380
- async selfSearch(args) {
381
- let f_orgstr = this.orgCondtionStr
382
- if (!this.orgCondtionStr) {
383
- f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
384
- }
385
- args.condition = `${args.condition} ` + f_orgstr
386
- let condvalue = '1=1'
387
- if (this.$refs.paged.$refs.cri.model.slice_area) {
388
- condvalue = condvalue + ` and isnull(ss.f_zones,u3.f_slice_area) = '${this.$refs.paged.$refs.cri.model.slice_area}'`
389
- }
390
- this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate
391
- this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate
392
-
393
- //推送条件: 需要 选择公司,部门
394
- if(this.depname != null && this.depname != '' ){
395
- this.pushncshow2 = true;
396
- }else{
397
- this.pushncshow2= false;
398
- }
399
- this.searchCondition = this.getCondition;
400
- await this.model.search(args.condition, args.model,condvalue)
401
-
402
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
403
- console.log('计算合计。', this.sumsmodel)
404
- if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
405
- for (let key in this.sumsmodel) {
406
- this.sumsmodel[key] = 0;
407
- }
408
- }
409
- this.$dispatch('getdata', this.sumsmodel)
410
- },
411
- getRes(condition, obj) {
412
- //判断最新组织和存储组织不同时,清空已经选择人员
413
- if(obj.depnames[0] != this.depname){
414
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
415
- }
416
- this.orgCondtionStr = condition;
417
- this.orgname = obj.orgnames[0];
418
- this.depname = obj.depnames[0];
419
- if(obj.operatornames.length>0){
420
- this.operaname =obj.operatornames[0];
421
- }else{
422
- this.operaname='';
423
- }
424
- //当未选中组织时不可进行推送
425
- if(this.depname == null || this.depname == '' ){
426
- this.pushncshow2 = false;
427
- }else{
428
- this.pushncshow2 = true;
429
- }
430
- },
431
- clear() {
432
- //清空部门和人员
433
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = [];
434
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = [];
435
- //部门和人员变为全选
436
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false;
437
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false;
438
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
439
- this.$refs.paged.$refs.cri.model[key] = '';
440
- })
441
- this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()+' 00:00:00';
442
- this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+ ' 23:59:59';
443
- },
444
- close() {
445
- this.printshow = false
446
- },
447
- getfield() {
448
-
449
- return exportConfig.dataReportConfig
450
- },
451
- show() {
452
- this.pushncshow2 = !this.pushncshow2;
453
- this.criteriaShow = !this.criteriaShow
454
- if (this.criteriaShow) {
455
- this.$emit('show')
456
- } else {
457
- this.$emit('close')
458
- }
459
- },
460
- /*sort(field, rule) {
461
- console.log('sort...')
462
-
463
- },*/
464
- sort (field, rule) {
465
- // 将所有排序方式设为不排序,实现相互排斥
466
- for (let key in this.orderFields) {
467
- if (key === field) {
468
- this.orderFields[key] = rule
469
- } else {
470
- this.orderFields[key] = 'no'
471
- }
472
- }
473
- // 如果新规则不排序,还原为默认排序
474
- if (rule === 'no') {
475
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
476
- } else {
477
- this.model.paramSource.orderitem = `'${field} ${rule}'`
478
- }
479
-
480
- this.search()
481
- },
482
- },
483
- events:{
484
- 'showtogglefooter'(){
485
- this.footershow=true;
486
- },
487
- 'hiddentogglefooter'(){
488
- this.footershow=false
489
- },
490
- 'confirmcolse'(){
491
- this.pushconfirmflag = false;
492
- },
493
- 'openbutton'(){
494
- this.footershow3=true;
495
- },
496
- 'closebutton'(){
497
- this.footershow3=false;
498
- }
499
- },
500
- computed: {
501
- getCondition() {
502
-
503
- return {
504
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
505
- startDate: this.$refs.paged.$refs.cri.model.f_startDate,
506
- endDate: this.$refs.paged.$refs.cri.model.f_endDate,
507
- orderitem: this.model.paramSource.orderitem.split("'")[1].split("'")[0]
508
- }
509
- },
510
- getfield() {
511
- //设置默认值
512
-
513
- return exportConfig.daydataReportConfig
514
- },
515
- gasproperties() {
516
- console.log("xxx");
517
- console.log(this.$appdata.getParam('用气性质'));
518
- console.log(this);
519
- let options = this.$appdata.getParam('用气性质')
520
- let resultoptions = [];
521
- if(options.length>0){
522
- resultoptions.push({label: ' 全部 ', value: ''})
523
- options.forEach((item)=>{
524
- console.log(item)
525
- resultoptions.push(item)
526
- })
527
- }
528
- console.log(resultoptions);
529
- return resultoptions;
530
- //return [{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')]
531
- }
532
- },
533
- watch:{
534
- 'pushncshow2'(val){
535
- if(val){
536
- this.search();
537
- }
538
- }
539
- }
540
- }
541
-
542
- </script>
543
-
544
- <style scoped>
545
-
546
- .col {
547
- width: 300px;
548
- overflow: hidden;
549
- text-overflow: ellipsis;
550
- white-space: nowrap;
551
- }
552
-
553
- </style>
1
+ <template>
2
+ <div v-if="!listpage" @keyup.enter="search">
3
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <res-select-group :style="$parent.$parent.style" :
8
+ initres="$parent.$parent.initres"
9
+ @re-res="$parent.$parent.getRes"
10
+ :mul="false"
11
+ :show-component="['company','department','operator']"
12
+ :style="$parent.$parent.style"
13
+ v-ref:sel></res-select-group>
14
+ <div :class="$parent.$parent.style" >
15
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
16
+ <v-select :value.sync="model.slice_area" v-model="model.slice_area"
17
+ :value-single="true"
18
+ :options='$parent.$parent.sliceArea' placeholder='片区/管理站'
19
+ close-on-select v-ref:slice>
20
+ </v-select>
21
+ </div>
22
+ <div :class="$parent.$parent.style" >
23
+ <label for="startDate" class="font_normal_body">开始日期</label>
24
+ <datepicker placeholder="开始日期" style="width:60%"
25
+ v-model="model.f_startDate"
26
+ :value.sync="model.f_startDate"
27
+ :format="'yyyy-MM-dd HH:mm:ss'"
28
+ class="datepicker"
29
+ :show-reset-button="true"
30
+ class="select"
31
+ >
32
+ </datepicker>
33
+ </div>
34
+ <div :class="$parent.$parent.style" >
35
+ <label for="endDate" class="font_normal_body">结束日期</label>
36
+ <datepicker placeholder="结束日期" style="width:60%"
37
+ v-model="model.f_endDate"
38
+ :value.sync="model.f_endDate"
39
+ :format="'yyyy-MM-dd HH:mm:ss'"
40
+ class="datepicker"
41
+ :show-reset-button="true"
42
+ class="select"
43
+ >
44
+ </datepicker>
45
+ </div>
46
+ <div :class="$parent.$parent.style">
47
+ <label class="font_normal_body">用气性质</label>
48
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
49
+ :options='$parent.$parent.useroptions' placeholder='请选择'
50
+ condition="f_gasproperties = '{}'"
51
+ close-on-select></v-select>
52
+ </div>
53
+ <div :class="$parent.$parent.style">
54
+ <label class="font_normal_body">操作类型</label>
55
+ <v-select :value.sync="model.f_type" v-model="model.f_type"
56
+ :options='$parent.$parent.operates' placeholder='请选择'
57
+ condition="f_type = '{}'"
58
+ close-on-select></v-select>
59
+ </div>
60
+ <div :class="$parent.$parent.style">
61
+ <label class="font_normal_body">操作状态</label>
62
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
63
+ :options='$parent.$parent.stateoptions' placeholder='请选择'
64
+ condition="f_state = '{}'"
65
+ close-on-select></v-select>
66
+ </div>
67
+ <div :class="$parent.$parent.style">
68
+ <label class="font_normal_body">包含APP</label>
69
+ <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
70
+ :options='$parent.$parent.hasapps' placeholder='请选择'
71
+ condition=" {} "
72
+ close-on-select></v-select>
73
+ </div>
74
+
75
+ <div class="button-range" style="float:right;margin-top:10px">
76
+ <button class="button_search button_spacing" @click="search()">查询</button>
77
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
78
+ <export-excel :data="$parent.$parent.getCondition" v-ref:exportexcel
79
+ :field="$parent.$parent.getfield"
80
+ :defaultselect="$parent.$parent.selectfields"
81
+ sqlurl="rs/logic/exportfile" sql-name="aode_dayReport" template-name='日清单' :choose-col="true"
82
+ class="button_export button_spacing"></export-excel>
83
+ <day-report-list-print :countmodel="{sumsmodel:$parent.$parent.sumsmodel,model:$parent.$parent.model,orgname:$parent.$parent.orgname,depname:$parent.$parent.depname}"></day-report-list-print>
84
+ <!-- <button v-if="$parent.$parent.pushncshow && $parent.$parent.pushncshow2 " class="button_search button_spacing" @click="$parent.$parent.showpushconfirm()">交账</button>-->
85
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_left':$parent.$parent.criteriaShow,'button_shrink_right':!$parent.$parent.criteriaShow}" @click="$parent.$parent.show()"></div>
86
+ </div>
87
+
88
+ </div>
89
+ </div>
90
+ </criteria>
91
+ <data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" v-ref:grid >
92
+ <template partial='head'>
93
+ <tr>
94
+ <th>
95
+ <data-order field="f_userinfo_code" name="客户编号"></data-order>
96
+ <!--<nobr>客户编号</nobr>-->
97
+ </th>
98
+ <th><data-order field="f_user_name" name="客户姓名"></data-order>
99
+ <!--<nobr>客户姓名</nobr>-->
100
+ </th>
101
+ <th><nobr>地址</nobr></th>
102
+ <th>
103
+ <data-order field="f_user_type" name="客户类型"></data-order>
104
+ </th>
105
+ <th>
106
+ <data-order field="f_user_type" name="用气性质"></data-order>
107
+ </th>
108
+ <th>
109
+ <data-order field="f_meter_brand" name="气表厂家"></data-order>
110
+ </th>
111
+ <th><data-order field="f_operate_date" name="操作时间"></data-order>
112
+ <!--<nobr>操作时间</nobr>-->
113
+ </th>
114
+ <th><data-order field="f_operate_date" name="操作状态"></data-order>
115
+ <!--<nobr>操作时间</nobr>-->
116
+ </th>
117
+ <th>
118
+ <data-order field="f_stair1price" name="1单价"></data-order>
119
+ </th>
120
+ <th>
121
+ <data-order field="f_stair1amount" name="1气量"></data-order>
122
+ </th>
123
+ <th>
124
+ <data-order field="f_stair2price" name="2单价"></data-order>
125
+ </th>
126
+ <th>
127
+ <data-order field="f_stair2amount" name="2气量"></data-order>
128
+ </th>
129
+ <th>
130
+ <data-order field="f_stair3price" name="3单价"></data-order>
131
+ </th>
132
+ <th>
133
+ <data-order field="f_stair3amount" name="3气量"></data-order>
134
+ </th>
135
+ <th>
136
+ <data-order field="f_pregas" name="气量"></data-order>
137
+ </th>
138
+ <th>
139
+ <data-order field="f_preamount" name="应收金额"></data-order>
140
+ </th>
141
+ <th>
142
+ <data-order field="f_collection" name="实收金额"></data-order>
143
+ </th>
144
+ <th><nobr>上期余额</nobr></th>
145
+ <th><nobr>本期余额</nobr></th>
146
+ <th>
147
+ <data-order field="f_payment" name="付款方式"></data-order>
148
+ </th>
149
+ <th>
150
+ <data-order field="f_type" name="类型"></data-order>
151
+ </th>
152
+ <th><nobr>收费类型</nobr></th>
153
+ <th>
154
+ <data-order field="f_operator" name="操作员"></data-order>
155
+ </th>
156
+ <th><nobr>备注</nobr></th>
157
+
158
+ </tr>
159
+ </template>
160
+ <template partial='body' >
161
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
162
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
163
+ </nobr> </td>
164
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
165
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
166
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
167
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_gasproperties}}</nobr></td>
168
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_meter_brand}}</nobr></td>
169
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operate_date}}</nobr></td>
170
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
171
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1price}}</nobr></td>
172
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1amount}}</nobr></td>
173
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2price}}</nobr></td>
174
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2amount}}</nobr></td>
175
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3price}}</nobr></td>
176
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3amount}}</nobr></td>
177
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
178
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
179
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
180
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_balance}}</nobr></td>
181
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_curbalance}}</nobr></td>
182
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
183
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
184
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_real_type}}</nobr></td>
185
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operator}}</nobr></td>
186
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_comments}}</nobr></td>
187
+ </template>
188
+ </data-grid>
189
+ </criteria-paged>
190
+ </div>
191
+ <modal v-if="pushconfirmflag" :show.sync="pushconfirmflag" :width="1300" title="交账数据确认" v-ref:modal large backdrop="false">
192
+ <article slot="modal-body" class="modal-body" style="height: 600px;padding: 0!important;">
193
+ <push-confirm-manage :searchcondition.sync="searchCondition" v-if="pushconfirmflag" :orgiddepid="orgCondtionStr" :model.sync="model" v-ref:pushmanage ></push-confirm-manage>
194
+ </article>
195
+ <footer slot="modal-footer" class="modal-footer" style="margin-top:60px;">
196
+ <button v-show="footershow && footershow3" type="button" class="button_search button_spacing" @click='pushncdata'>确认</button>
197
+ <button type="button" class="button_clear button_spacing" @click='closeCode'>取消</button>
198
+ </footer>
199
+ </modal>
200
+ <div v-if="listpage">
201
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
202
+ </div>
203
+ </template>
204
+
205
+ <script>
206
+
207
+ import {HttpResetClass, PagedList} from 'vue-client'
208
+ import exportConfig from '../../config/exportConfig'
209
+ import DayReportSummary from "./DayReportSummary";
210
+ import getLodop from '../../../../plugins/LodopFuncs'
211
+
212
+ export default {
213
+ components: {DayReportSummary},
214
+ title: '日报表',
215
+ props: {
216
+ style: {
217
+ type: String,
218
+ default: 'col-sm-2 form-group'
219
+ },
220
+ },
221
+ data() {
222
+ return {
223
+ orderDefault: "'f_operate_date'",
224
+ orderFields: {
225
+ f_userinfo_code: 'no'
226
+ },
227
+ initres: {
228
+ org:[this.$login.f.orgid],
229
+ dep:[this.$login.f.depids],
230
+ user:[this.$login.f.id]
231
+ },
232
+ sliceArea: [],
233
+ model: new PagedList('rs/sql/aode_dayReport', 30, {orderitem: "'f_operate_date'"},{
234
+ f_pregas: 0,
235
+ f_collection: 0,
236
+ f_count_open: 0,
237
+ f_pregas_open: 0,
238
+ f_collection_open: 0,
239
+ f_count_zg: 0,
240
+ f_pregas_zg: 0,
241
+ f_collection_zg: 0,
242
+ f_count_bk: 0,
243
+ f_pregas_bk: 0,
244
+ f_collection_bk: 0,
245
+ f_count_zjbf:0,
246
+ f_collection_zjbf:0,
247
+ f_count_ysk:0,
248
+ f_collection_ysk:0,
249
+ f_count_iotbf:0,
250
+ f_collection_iotbf:0,
251
+ f_count_iotkf:0,
252
+ f_collection_iotkf:0,
253
+ f_count_bq: 0,
254
+ f_pregas_bq: 0,
255
+ f_collection_bq: 0,
256
+ f_count_hb: 0,
257
+ f_pregas_hb: 0,
258
+ f_collection_hb: 0,
259
+ f_count_cz: 0,
260
+ f_pregas_cz: 0,
261
+ f_collection_cz: 0,
262
+ f_sum_count:0,
263
+ f_shouru_gas:0,
264
+ f_shouru_fee:0,
265
+ f_yingshou_fee:0,
266
+ f_usebenqi_fee:0,
267
+ f_benqi_fee:0,
268
+ f_sumgtwx:0,
269
+ f_sumcwsf:0,
270
+ f_sumxjjf:0,
271
+ f_sumzfb:0,
272
+ f_sumpos:0,
273
+ f_sumwxjf:0,
274
+ f_sumqp:0,
275
+ f_sumyysk:0,
276
+ f_sumjjbq:0,
277
+ f_sumbtk:0
278
+ }),
279
+ listpage:false,
280
+ rowdata: {},
281
+ orgCondtionStr: '',
282
+ userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
283
+ count: 0,
284
+ sumsmodel: {},
285
+ printshow: false,
286
+ all: false,
287
+ orgname: '',
288
+ depname: '',
289
+ operaname:'',
290
+ criteriaShow: false,
291
+ operates: [{label: '全部', value: ''},...this.$appdata.getParam('日清单操作类型')],
292
+ stateoptions:[{label: '全部', value: ''}, {label: '有效', value: "有效"},{label: '撤销', value: "撤销"},{label: '无效', value: "无效"},{label: '冲正', value: "冲正"}],
293
+ hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "f_operator != '悦生活'"},{label: '不包含POS', value: "len(f_voucher_number)<1"},{label: 'POS', value: "f_voucher_number!=''"}],
294
+ useroptions:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
295
+ selectfields:[],
296
+ pushncshow:false,
297
+ pushncshow2:false,
298
+ searchCondition:{},
299
+ pushconfirmflag: false,
300
+ footershow:true,
301
+ footershow3:false,
302
+ }
303
+ },
304
+ ready() {
305
+ if(this.$login.r.includes('收费推送')){
306
+ this.pushncshow = true;
307
+ }
308
+ this.initAreas(this.$login.f.orgid)
309
+ this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
310
+ this.$refs.paged.$refs.cri.model.f_hasapp = [`f_operator != '悦生活'`]
311
+ this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
312
+ this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
313
+ for(var item in exportConfig.dataReportConfig){
314
+ this.selectfields.push(item)
315
+ }
316
+ // this.search()
317
+ },
318
+ methods: {
319
+ // 初始化片区
320
+ async initAreas (val) {
321
+ if (val) {
322
+ let http = new HttpResetClass()
323
+ let getAllArea = await http.load('POST', '/rs/search', {
324
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
325
+ userid: this.$login.f.id
326
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
327
+ let arr = getAllArea.data.filter((res) => {
328
+ return res.parentid == val
329
+ })
330
+ console.log('过滤之后的片区', arr)
331
+ this.sliceArea = [{label: '全部', value: ''}]
332
+ arr.forEach((res) => {
333
+ this.sliceArea.push({label: res.name, value: res.name})
334
+ })
335
+ }
336
+ },
337
+ //推送数据
338
+ pushncdata(){
339
+ this.$refs.pushmanage.pushncdata();
340
+ },
341
+ //关闭推送确认窗口
342
+ closeCode(){
343
+ this.$refs.pushmanage.newmodel = {};
344
+ this.$refs.pushmanage.showmone = false;
345
+ this.pushconfirmflag = false;
346
+ },
347
+ //显示交账页面
348
+ showpushconfirm(){
349
+ this.search();
350
+ if(this.searchCondition.condition!=null && this.searchCondition.condition!='' && this.searchCondition.condition.includes("f_gasproperties") || this.searchCondition.condition.includes("f_type") ){
351
+ //this.$showMessage("交账失败,本次交账未保存,只能交账一天的数据,请确认交账时间后重新交账!!");
352
+ this.$showMessage("交账失败,本次交账未保存,请取消用气性质或操作类型选项,当前时间段内只允许交账一次!!");
353
+ return;
354
+ }
355
+ if(this.searchCondition.condition!=null && this.searchCondition.condition!='' && !this.searchCondition.condition.includes("f_state")){
356
+ this.$showAlert('请选择操作状态为有效进行交账!!','warning',2000);
357
+ return;
358
+ }
359
+ this.$showMessage("请进行一次查询后进行交账,",['confirm','cancel']).then(res=>{
360
+ if(res == 'confirm'){
361
+ this.pushconfirm();
362
+ }
363
+ })
364
+ },
365
+ pushconfirm(){
366
+ this.pushconfirmflag = true;
367
+ },
368
+ showmsg(obj){
369
+ this.criteriaShow = false
370
+ this.$emit('close')
371
+ this.rowdata=obj
372
+ this.listpage=true
373
+ },
374
+ cancel() {
375
+ this.listpage = false
376
+ },
377
+ search() {
378
+ this.$refs.paged.$refs.cri.search()
379
+ },
380
+ async selfSearch(args) {
381
+ let f_orgstr = this.orgCondtionStr
382
+ if (!this.orgCondtionStr) {
383
+ f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
384
+ }
385
+ args.condition = `${args.condition} ` + f_orgstr
386
+ let condvalue = '1=1'
387
+ if (this.$refs.paged.$refs.cri.model.slice_area) {
388
+ condvalue = condvalue + ` and isnull(ss.f_zones,u3.f_slice_area) = '${this.$refs.paged.$refs.cri.model.slice_area}'`
389
+ }
390
+ this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate
391
+ this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate
392
+
393
+ //推送条件: 需要 选择公司,部门
394
+ if(this.depname != null && this.depname != '' ){
395
+ this.pushncshow2 = true;
396
+ }else{
397
+ this.pushncshow2= false;
398
+ }
399
+ this.searchCondition = this.getCondition;
400
+ await this.model.search(args.condition, args.model,condvalue)
401
+
402
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
403
+ console.log('计算合计。', this.sumsmodel)
404
+ if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
405
+ for (let key in this.sumsmodel) {
406
+ this.sumsmodel[key] = 0;
407
+ }
408
+ }
409
+ this.$dispatch('getdata', this.sumsmodel)
410
+ },
411
+ getRes(condition, obj) {
412
+ //判断最新组织和存储组织不同时,清空已经选择人员
413
+ if(obj.depnames[0] != this.depname){
414
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
415
+ }
416
+ this.orgCondtionStr = condition;
417
+ this.orgname = obj.orgnames[0];
418
+ this.depname = obj.depnames[0];
419
+ if(obj.operatornames.length>0){
420
+ this.operaname =obj.operatornames[0];
421
+ }else{
422
+ this.operaname='';
423
+ }
424
+ //当未选中组织时不可进行推送
425
+ if(this.depname == null || this.depname == '' ){
426
+ this.pushncshow2 = false;
427
+ }else{
428
+ this.pushncshow2 = true;
429
+ }
430
+ },
431
+ clear() {
432
+ //清空部门和人员
433
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = [];
434
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = [];
435
+ //部门和人员变为全选
436
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false;
437
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false;
438
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
439
+ this.$refs.paged.$refs.cri.model[key] = '';
440
+ })
441
+ this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()+' 00:00:00';
442
+ this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+ ' 23:59:59';
443
+ },
444
+ close() {
445
+ this.printshow = false
446
+ },
447
+ getfield() {
448
+
449
+ return exportConfig.dataReportConfig
450
+ },
451
+ show() {
452
+ this.pushncshow2 = !this.pushncshow2;
453
+ this.criteriaShow = !this.criteriaShow
454
+ if (this.criteriaShow) {
455
+ this.$emit('show')
456
+ } else {
457
+ this.$emit('close')
458
+ }
459
+ },
460
+ /*sort(field, rule) {
461
+ console.log('sort...')
462
+
463
+ },*/
464
+ sort (field, rule) {
465
+ // 将所有排序方式设为不排序,实现相互排斥
466
+ for (let key in this.orderFields) {
467
+ if (key === field) {
468
+ this.orderFields[key] = rule
469
+ } else {
470
+ this.orderFields[key] = 'no'
471
+ }
472
+ }
473
+ // 如果新规则不排序,还原为默认排序
474
+ if (rule === 'no') {
475
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
476
+ } else {
477
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
478
+ }
479
+
480
+ this.search()
481
+ },
482
+ },
483
+ events:{
484
+ 'showtogglefooter'(){
485
+ this.footershow=true;
486
+ },
487
+ 'hiddentogglefooter'(){
488
+ this.footershow=false
489
+ },
490
+ 'confirmcolse'(){
491
+ this.pushconfirmflag = false;
492
+ },
493
+ 'openbutton'(){
494
+ this.footershow3=true;
495
+ },
496
+ 'closebutton'(){
497
+ this.footershow3=false;
498
+ }
499
+ },
500
+ computed: {
501
+ getCondition() {
502
+
503
+ return {
504
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
505
+ startDate: this.$refs.paged.$refs.cri.model.f_startDate,
506
+ endDate: this.$refs.paged.$refs.cri.model.f_endDate,
507
+ orderitem: this.model.paramSource.orderitem.split("'")[1].split("'")[0]
508
+ }
509
+ },
510
+ getfield() {
511
+ //设置默认值
512
+
513
+ return exportConfig.daydataReportConfig
514
+ },
515
+ gasproperties() {
516
+ console.log("xxx");
517
+ console.log(this.$appdata.getParam('用气性质'));
518
+ console.log(this);
519
+ let options = this.$appdata.getParam('用气性质')
520
+ let resultoptions = [];
521
+ if(options.length>0){
522
+ resultoptions.push({label: ' 全部 ', value: ''})
523
+ options.forEach((item)=>{
524
+ console.log(item)
525
+ resultoptions.push(item)
526
+ })
527
+ }
528
+ console.log(resultoptions);
529
+ return resultoptions;
530
+ //return [{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')]
531
+ }
532
+ },
533
+ watch:{
534
+ 'pushncshow2'(val){
535
+ if(val){
536
+ this.search();
537
+ }
538
+ }
539
+ }
540
+ }
541
+
542
+ </script>
543
+
544
+ <style scoped>
545
+
546
+ .col {
547
+ width: 300px;
548
+ overflow: hidden;
549
+ text-overflow: ellipsis;
550
+ white-space: nowrap;
551
+ }
552
+
553
+ </style>