manage-client 3.2.67-aode → 3.2.68-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 (65) hide show
  1. package/build/dev-server.js +5 -2
  2. package/build/webpack.base.conf.js +79 -79
  3. package/client.iml +14 -14
  4. package/package.json +1 -1
  5. package/src/Util.js +383 -383
  6. package/src/components/MeterManage/MeterList.vue +336 -336
  7. package/src/components/WebReport/UserGasAll.vue +214 -214
  8. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  9. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  10. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  11. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  12. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  13. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  14. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  15. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  16. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  17. package/src/components/sale/businessquery/NewAccountQuery.vue +506 -506
  18. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  19. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  20. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  21. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  22. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  23. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  24. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  25. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  26. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  27. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  28. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  29. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  30. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  31. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  32. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  33. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  34. package/src/components/sale/report/aode/DayReportList.vue +41 -4
  35. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  36. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  37. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  38. package/src/components/sale/report/aode/YearByUserType.vue +342 -342
  39. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  40. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  41. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  42. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  43. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  44. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  45. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  46. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  47. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  48. package/src/components/webmeter/DrillData/NewUserGasAll.vue +568 -568
  49. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  50. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  51. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  52. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  53. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  54. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  55. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  56. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  57. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  58. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  59. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +492 -492
  60. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  61. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  62. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  63. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  64. package/src/components/webmeter/report/ReportList.vue +211 -211
  65. package/src/main.js +56 -56
@@ -1,497 +1,497 @@
1
- <template>
2
- <div v-show="!listpageshow" @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" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" :style="$parent.$parent.style" v-ref:sel></res-select-group>
8
- <!-- <div :class="$parent.$parent.style" >-->
9
- <!-- <label for="startDate" class="font_normal_body">开始日期</label>-->
10
- <!-- <datepicker placeholder="开始日期" style="width:60%"-->
11
- <!-- v-model="model.f_startDate"-->
12
- <!-- :value.sync="model.f_startDate"-->
13
- <!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
14
- <!-- class="datepicker"-->
15
- <!-- :show-reset-button="true"-->
16
- <!-- class="select"-->
17
- <!-- >-->
18
- <!-- </datepicker>-->
19
- <!-- </div>-->
20
- <!-- <div :class="$parent.$parent.style" >-->
21
- <!-- <label for="endDate" class="font_normal_body">结束日期</label>-->
22
- <!-- <datepicker placeholder="结束日期" style="width:60%"-->
23
- <!-- v-model="model.f_endDate"-->
24
- <!-- :value.sync="model.f_endDate"-->
25
- <!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
26
- <!-- class="datepicker"-->
27
- <!-- :show-reset-button="true"-->
28
- <!-- class="select"-->
29
- <!-- >-->
30
- <!-- </datepicker>-->
31
- <!-- </div>-->
32
- <div :class="$parent.$parent.style">
33
- <label class="font_normal_body">用气性质</label>
34
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
35
- :options='$parent.$parent.useroptions' placeholder='请选择'
36
- condition="f_gasproperties = '{}'"
37
- close-on-select></v-select>
38
- </div>
39
- <div :class="$parent.$parent.style">
40
- <label class="font_normal_body">操作类型</label>
41
- <v-select :value.sync="model.f_type" v-model="model.f_type"
42
- :options='$parent.$parent.operates' placeholder='请选择'
43
- condition="f_type = '{}'"
44
- close-on-select></v-select>
45
- </div>
46
- <div v-show="false" :class="$parent.$parent.style">
47
- <label class="font_normal_body">操作状态</label>
48
- <v-select :value.sync="model.f_state" v-model="model.f_state"
49
- :options='$parent.$parent.stateoptions' placeholder='请选择'
50
- condition="f_state != '{}'"
51
- close-on-select></v-select>
52
- </div>
53
- <div v-show="false" :class="$parent.$parent.style">
54
- <label class="font_normal_body">包含APP</label>
55
- <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
56
- :options='$parent.$parent.hasapps' placeholder='请选择'
57
- condition="f_operator {} "
58
- close-on-select></v-select>
59
- </div>
60
-
61
- <div class="button-range" style="float:right;margin-top:10px">
62
- <button class="button_search button_spacing" @click="search()">查询</button>
63
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
64
- <!-- <export-excel :data="$parent.$parent.getCondition" v-ref:exportexcel-->
65
- <!-- :field="$parent.$parent.getfield"-->
66
- <!-- :defaultselect="$parent.$parent.selectfields"-->
67
- <!-- sqlurl="rs/logic/exportfile" sql-name="aode_dayReport" template-name='日清单' :choose-col="true"-->
68
- <!-- class="button_export button_spacing"></export-excel>-->
69
- <!-- <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>-->
70
- <button v-if="$parent.$parent.pushncshow && $parent.$parent.pushncshow2 " class="button_search button_spacing" @click="$parent.$parent.showpushconfirm()">交账</button>
71
- <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>
72
- </div>
73
-
74
- </div>
75
- </div>
76
- </criteria>
77
- <data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" v-ref:grid >
78
- <template partial='head'>
79
- <tr>
80
- <th>
81
- <data-order field="f_userinfo_code" name="客户编号"></data-order>
82
- <!--<nobr>客户编号</nobr>-->
83
- </th>
84
- <th><data-order field="f_user_name" name="客户姓名"></data-order>
85
- <!--<nobr>客户姓名</nobr>-->
86
- </th>
87
- <th><nobr>地址</nobr></th>
88
- <th>
89
- <data-order field="f_meter_brand" name="气表厂家"></data-order>
90
- </th>
91
- <th><data-order field="f_operate_date" name="操作时间"></data-order>
92
- <!--<nobr>操作时间</nobr>-->
93
- </th>
94
- <th><data-order field="f_operate_date" name="操作状态"></data-order>
95
- <!--<nobr>操作时间</nobr>-->
96
- </th>
97
- <th>
98
- <data-order field="f_stair1price" name="1单价"></data-order>
99
- </th>
100
- <th>
101
- <data-order field="f_stair1amount" name="1气量"></data-order>
102
- </th>
103
- <th>
104
- <data-order field="f_stair2price" name="2单价"></data-order>
105
- </th>
106
- <th>
107
- <data-order field="f_stair2amount" name="2气量"></data-order>
108
- </th>
109
- <th>
110
- <data-order field="f_stair3price" name="3单价"></data-order>
111
- </th>
112
- <th>
113
- <data-order field="f_stair3amount" name="3气量"></data-order>
114
- </th>
115
- <th>
116
- <data-order field="f_pregas" name="气量"></data-order>
117
- </th>
118
- <th>
119
- <data-order field="f_preamount" name="应收金额"></data-order>
120
- </th>
121
- <th>
122
- <data-order field="f_collection" name="实收金额"></data-order>
123
- </th>
124
- <th><nobr>上期余额</nobr></th>
125
- <th><nobr>本期余额</nobr></th>
126
- <th>
127
- <data-order field="f_payment" name="付款方式"></data-order>
128
- </th>
129
- <th>
130
- <data-order field="f_type" name="收费类型"></data-order>
131
- </th>
132
- <th>
133
- <data-order field="f_operator" name="操作员"></data-order>
134
- </th>
135
- <th>
136
- <data-order field="f_user_type" name="客户类型"></data-order>
137
- </th>
138
- <th><nobr>备注</nobr></th>
139
-
140
- </tr>
141
- </template>
142
- <template partial='body' >
143
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
144
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
145
- </nobr> </td>
146
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
147
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
148
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_meter_brand}}</nobr></td>
149
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operate_date}}</nobr></td>
150
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
151
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1price}}</nobr></td>
152
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1amount}}</nobr></td>
153
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2price}}</nobr></td>
154
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2amount}}</nobr></td>
155
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3price}}</nobr></td>
156
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3amount}}</nobr></td>
157
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
158
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
159
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
160
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_balance}}</nobr></td>
161
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_curbalance}}</nobr></td>
162
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
163
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
164
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operator}}</nobr></td>
165
- <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
166
- <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_comments}}</nobr></td>
167
- </template>
168
- </data-grid>
169
- </criteria-paged>
170
- </div>
171
- <div v-if="pushconfirmflag" >
172
- <push-confirm-manage :searchcondition.sync="searchCondition" @closemodel="closeCode" :orgiddepid="orgCondtionStr" :model.sync="model" v-ref:pushmanage ></push-confirm-manage>
173
- </div>
174
- <div v-if="listpage">
175
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
176
- </div>
177
- </template>
178
-
179
- <script>
180
-
181
- import { PagedList } from 'vue-client'
182
- import exportConfig from '../../config/exportConfig'
183
- import DayReportSummary from "./NCpushSummary";
184
- import getLodop from '../../../../plugins/LodopFuncs'
185
-
186
- export default {
187
- components: {DayReportSummary},
188
- title: '收费记录查询',
189
- props: {
190
- style: {
191
- type: String,
192
- default: 'col-sm-2 form-group'
193
- },
194
- },
195
- data() {
196
- return {
197
- orderDefault: "'f_operate_date'",
198
- orderFields: {
199
- f_userinfo_code: 'no'
200
- },
201
- initres: {
202
- org:[this.$login.f.orgid],
203
- dep:[this.$login.f.depids],
204
- user:[this.$login.f.id]
205
- },
206
- model: new PagedList('rs/sql/nopushdayReport', 30, {},{
207
- f_pregas: 0,
208
- f_collection: 0,
209
- f_count_open: 0,
210
- f_pregas_open: 0,
211
- f_collection_open: 0,
212
- f_count_zg: 0,
213
- f_pregas_zg: 0,
214
- f_collection_zg: 0,
215
- f_count_bk: 0,
216
- f_pregas_bk: 0,
217
- f_collection_bk: 0,
218
- f_count_othercharge:0,
219
- f_collection_othercharge:0,
220
- f_count_zjbf:0,
221
- f_collection_zjbf:0,
222
- f_count_bq: 0,
223
- f_pregas_bq: 0,
224
- f_collection_bq: 0,
225
- f_count_hb: 0,
226
- f_pregas_hb: 0,
227
- f_collection_hb: 0,
228
- f_count_cz: 0,
229
- f_pregas_cz: 0,
230
- f_collection_cz: 0,
231
- f_sum_count:0,
232
- f_shouru_gas:0,
233
- f_shouru_fee:0,
234
- f_yingshou_fee:0,
235
- f_usebenqi_fee:0,
236
- f_benqi_fee:0,
237
- f_sumgtwx:0,
238
- f_sumcwsf:0,
239
- f_sumxjjf:0,
240
- f_sumzfb:0,
241
- f_sumpos:0,
242
- f_sumwxjf:0,
243
- f_sumqp:0,
244
- f_sumyysk:0,
245
- f_sumjjbq:0,
246
- f_sumbtk:0,
247
- f_count_ysk:0,
248
- f_collection_ysk:0,
249
- }),
250
- listpage:false,
251
- rowdata: {},
252
- orgCondtionStr: '',
253
- userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
254
- count: 0,
255
- sumsmodel: {},
256
- printshow: false,
257
- all: false,
258
- orgname: '',
259
- depname: '',
260
- operaname:'',
261
- criteriaShow: false,
262
- operates: [{label: '全部', value: ''},...this.$appdata.getParam('日清单操作类型')],
263
- stateoptions:[{label: '全部', value: ''}, {label: '有效', value: "有效"},{label: '撤销', value: "撤销"},{label: '无效', value: "无效"},{label: '冲正', value: "冲正"}],
264
- hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
265
- useroptions:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
266
- selectfields:[],
267
- pushncshow:false,
268
- pushncshow2:false,
269
- searchCondition:{},
270
- pushconfirmflag: false,
271
- footershow:true,
272
- footershow3:false,
273
- listpageshow:false,
274
- }
275
- },
276
- ready() {
277
- if(this.$login.r.includes('收费推送')){
278
- this.pushncshow = true;
279
- }
280
- this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
281
- this.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
282
- this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
283
- this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
284
- this.$refs.paged.$refs.cri.model.f_state = ['无效'];
285
- for(var item in exportConfig.dataReportConfig){
286
- this.selectfields.push(item)
287
- }
288
- // this.search()
289
- },
290
- methods: {
291
- //关闭推送确认窗口
292
- closeCode(){
293
- this.$refs.pushmanage.newmodel = {};
294
- this.$refs.pushmanage.showmone = false;
295
- this.pushconfirmflag = false;
296
- this.listpageshow = false;
297
- },
298
- //显示交账页面
299
- showpushconfirm(){
300
- this.criteriaShow = false
301
- this.$emit('close')
302
- this.search();
303
- if(this.searchCondition.condition!=null && this.searchCondition.condition!='' && this.searchCondition.condition.includes("f_gasproperties") || this.searchCondition.condition.includes("f_type") ){
304
- //this.$showMessage("交账失败,本次交账未保存,只能交账一天的数据,请确认交账时间后重新交账!!");
305
- this.$showMessage("交账失败,本次交账未保存,请取消用气性质或操作类型选项!!");
306
- return;
307
- }
308
- this.$showMessage("本次交账内容查询完毕,如果继续交账请点击确认。",['confirm','cancel']).then(res=>{
309
- if(res == 'confirm'){
310
- this.pushconfirm();
311
- }
312
- })
313
- },
314
- //推送页面显示
315
- pushconfirm(){
316
- this.pushconfirmflag = true;
317
- this.listpageshow=true
318
- },
319
- showmsg(obj){
320
- this.criteriaShow = false
321
- this.$emit('close')
322
- this.rowdata=obj
323
- this.listpage=true
324
- this.listpageshow = true
325
- },
326
- cancel() {
327
- this.listpage = false
328
- this.listpageshow = false;
329
- },
330
- search() {
331
- this.$refs.paged.$refs.cri.search()
332
- },
333
- async selfSearch(args) {
334
- let f_orgstr = this.orgCondtionStr
335
- if (!this.orgCondtionStr) {
336
- f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
337
- }
338
- args.condition = `${args.condition} ` + f_orgstr
339
-
340
- //this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate
341
- //this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate
342
-
343
- //推送条件: 需要 选择公司,部门
344
- if( this.orgCondtionStr.includes("f_operatorid ") ){
345
- this.pushncshow2 = true;
346
- }else{
347
- this.pushncshow2= false;
348
- }
349
- this.searchCondition = this.getCondition;
350
- //人员加载出来后再查询
351
- if(this.operaname){
352
- await this.model.search(args.condition, args.model)
353
- }
354
-
355
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
356
- console.log('计算合计。', this.sumsmodel)
357
- if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
358
- for (let key in this.sumsmodel) {
359
- this.sumsmodel[key] = 0;
360
- }
361
- }
362
- this.$dispatch('getdata', this.sumsmodel)
363
- },
364
- getRes(condition, obj) {
365
- //判断最新组织和存储组织不同时,清空已经选择人员
366
- if(obj.depnames[0] != this.depname){
367
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
368
- }
369
- this.orgCondtionStr = condition;
370
- this.orgname = obj.orgnames[0];
371
- this.depname = obj.depnames[0];
372
- if(obj.operatornames.length>0){
373
- this.operaname =obj.operatornames[0];
374
- }else{
375
- this.operaname='';
376
- }
377
- //当未选中人员时不可进行推送
378
- if( this.orgCondtionStr.includes("f_operatorid ") ){
379
- this.pushncshow2 = true;
380
- }else{
381
- this.pushncshow2 = false;
382
- }
383
- },
384
- clear() {
385
- //清空部门和人员
386
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = [];
387
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = [];
388
- //部门和人员变为全选
389
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false;
390
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false;
391
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
392
- this.$refs.paged.$refs.cri.model[key] = '';
393
- })
394
- //this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()+' 00:00:00';
395
- //this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+ ' 23:59:59';
396
- },
397
- close() {
398
- this.printshow = false
399
- },
400
- getfield() {
401
-
402
- return exportConfig.dataReportConfig
403
- },
404
- show() {
405
- this.pushncshow2 = !this.pushncshow2;
406
- this.criteriaShow = !this.criteriaShow
407
- if (this.criteriaShow) {
408
- this.$emit('show')
409
- } else {
410
- this.$emit('close')
411
- }
412
- },
413
- /*sort(field, rule) {
414
- console.log('sort...')
415
-
416
- },*/
417
- sort (field, rule) {
418
- // 将所有排序方式设为不排序,实现相互排斥
419
- for (let key in this.orderFields) {
420
- if (key === field) {
421
- this.orderFields[key] = rule
422
- } else {
423
- this.orderFields[key] = 'no'
424
- }
425
- }
426
- // 如果新规则不排序,还原为默认排序
427
- if (rule === 'no') {
428
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
429
- } else {
430
- this.model.paramSource.orderitem = `'${field} ${rule}'`
431
- }
432
-
433
- this.search()
434
- },
435
- },
436
- events:{
437
- 'showtogglefooter'(){
438
- this.footershow=true;
439
- },
440
- 'hiddentogglefooter'(){
441
- this.footershow=false
442
- },
443
- 'confirmcolse'(){
444
- this.pushconfirmflag = false;
445
- },
446
- 'openbutton'(){
447
- this.footershow3=true;
448
- },
449
- 'closebutton'(){
450
- this.footershow3=false;
451
- }
452
- },
453
- computed: {
454
- getCondition() {
455
- return {
456
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
457
- }
458
- },
459
- gasproperties() {
460
- console.log("xxx");
461
- console.log(this.$appdata.getParam('用气性质'));
462
- console.log(this);
463
- let options = this.$appdata.getParam('用气性质')
464
- let resultoptions = [];
465
- if(options.length>0){
466
- resultoptions.push({label: ' 全部 ', value: ''})
467
- options.forEach((item)=>{
468
- console.log(item)
469
- resultoptions.push(item)
470
- })
471
- }
472
- console.log(resultoptions);
473
- return resultoptions;
474
- //return [{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')]
475
- }
476
- },
477
- watch:{
478
- 'pushncshow2'(val){
479
- if(val){
480
- this.search();
481
- }
482
- }
483
- }
484
- }
485
-
486
- </script>
487
-
488
- <style scoped>
489
-
490
- .col {
491
- width: 300px;
492
- overflow: hidden;
493
- text-overflow: ellipsis;
494
- white-space: nowrap;
495
- }
496
-
497
- </style>
1
+ <template>
2
+ <div v-show="!listpageshow" @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" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :mul="false" :style="$parent.$parent.style" v-ref:sel></res-select-group>
8
+ <!-- <div :class="$parent.$parent.style" >-->
9
+ <!-- <label for="startDate" class="font_normal_body">开始日期</label>-->
10
+ <!-- <datepicker placeholder="开始日期" style="width:60%"-->
11
+ <!-- v-model="model.f_startDate"-->
12
+ <!-- :value.sync="model.f_startDate"-->
13
+ <!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
14
+ <!-- class="datepicker"-->
15
+ <!-- :show-reset-button="true"-->
16
+ <!-- class="select"-->
17
+ <!-- >-->
18
+ <!-- </datepicker>-->
19
+ <!-- </div>-->
20
+ <!-- <div :class="$parent.$parent.style" >-->
21
+ <!-- <label for="endDate" class="font_normal_body">结束日期</label>-->
22
+ <!-- <datepicker placeholder="结束日期" style="width:60%"-->
23
+ <!-- v-model="model.f_endDate"-->
24
+ <!-- :value.sync="model.f_endDate"-->
25
+ <!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
26
+ <!-- class="datepicker"-->
27
+ <!-- :show-reset-button="true"-->
28
+ <!-- class="select"-->
29
+ <!-- >-->
30
+ <!-- </datepicker>-->
31
+ <!-- </div>-->
32
+ <div :class="$parent.$parent.style">
33
+ <label class="font_normal_body">用气性质</label>
34
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
35
+ :options='$parent.$parent.useroptions' placeholder='请选择'
36
+ condition="f_gasproperties = '{}'"
37
+ close-on-select></v-select>
38
+ </div>
39
+ <div :class="$parent.$parent.style">
40
+ <label class="font_normal_body">操作类型</label>
41
+ <v-select :value.sync="model.f_type" v-model="model.f_type"
42
+ :options='$parent.$parent.operates' placeholder='请选择'
43
+ condition="f_type = '{}'"
44
+ close-on-select></v-select>
45
+ </div>
46
+ <div v-show="false" :class="$parent.$parent.style">
47
+ <label class="font_normal_body">操作状态</label>
48
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
49
+ :options='$parent.$parent.stateoptions' placeholder='请选择'
50
+ condition="f_state != '{}'"
51
+ close-on-select></v-select>
52
+ </div>
53
+ <div v-show="false" :class="$parent.$parent.style">
54
+ <label class="font_normal_body">包含APP</label>
55
+ <v-select :value.sync="model.f_hasapp" v-model="model.f_hasapp"
56
+ :options='$parent.$parent.hasapps' placeholder='请选择'
57
+ condition="f_operator {} "
58
+ close-on-select></v-select>
59
+ </div>
60
+
61
+ <div class="button-range" style="float:right;margin-top:10px">
62
+ <button class="button_search button_spacing" @click="search()">查询</button>
63
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
64
+ <!-- <export-excel :data="$parent.$parent.getCondition" v-ref:exportexcel-->
65
+ <!-- :field="$parent.$parent.getfield"-->
66
+ <!-- :defaultselect="$parent.$parent.selectfields"-->
67
+ <!-- sqlurl="rs/logic/exportfile" sql-name="aode_dayReport" template-name='日清单' :choose-col="true"-->
68
+ <!-- class="button_export button_spacing"></export-excel>-->
69
+ <!-- <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>-->
70
+ <button v-if="$parent.$parent.pushncshow && $parent.$parent.pushncshow2 " class="button_search button_spacing" @click="$parent.$parent.showpushconfirm()">交账</button>
71
+ <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>
72
+ </div>
73
+
74
+ </div>
75
+ </div>
76
+ </criteria>
77
+ <data-grid :model="model" :sumsmodel="sumsmodel" partial='list' class="list_area table_sy" v-ref:grid >
78
+ <template partial='head'>
79
+ <tr>
80
+ <th>
81
+ <data-order field="f_userinfo_code" name="客户编号"></data-order>
82
+ <!--<nobr>客户编号</nobr>-->
83
+ </th>
84
+ <th><data-order field="f_user_name" name="客户姓名"></data-order>
85
+ <!--<nobr>客户姓名</nobr>-->
86
+ </th>
87
+ <th><nobr>地址</nobr></th>
88
+ <th>
89
+ <data-order field="f_meter_brand" name="气表厂家"></data-order>
90
+ </th>
91
+ <th><data-order field="f_operate_date" name="操作时间"></data-order>
92
+ <!--<nobr>操作时间</nobr>-->
93
+ </th>
94
+ <th><data-order field="f_operate_date" name="操作状态"></data-order>
95
+ <!--<nobr>操作时间</nobr>-->
96
+ </th>
97
+ <th>
98
+ <data-order field="f_stair1price" name="1单价"></data-order>
99
+ </th>
100
+ <th>
101
+ <data-order field="f_stair1amount" name="1气量"></data-order>
102
+ </th>
103
+ <th>
104
+ <data-order field="f_stair2price" name="2单价"></data-order>
105
+ </th>
106
+ <th>
107
+ <data-order field="f_stair2amount" name="2气量"></data-order>
108
+ </th>
109
+ <th>
110
+ <data-order field="f_stair3price" name="3单价"></data-order>
111
+ </th>
112
+ <th>
113
+ <data-order field="f_stair3amount" name="3气量"></data-order>
114
+ </th>
115
+ <th>
116
+ <data-order field="f_pregas" name="气量"></data-order>
117
+ </th>
118
+ <th>
119
+ <data-order field="f_preamount" name="应收金额"></data-order>
120
+ </th>
121
+ <th>
122
+ <data-order field="f_collection" name="实收金额"></data-order>
123
+ </th>
124
+ <th><nobr>上期余额</nobr></th>
125
+ <th><nobr>本期余额</nobr></th>
126
+ <th>
127
+ <data-order field="f_payment" name="付款方式"></data-order>
128
+ </th>
129
+ <th>
130
+ <data-order field="f_type" name="收费类型"></data-order>
131
+ </th>
132
+ <th>
133
+ <data-order field="f_operator" name="操作员"></data-order>
134
+ </th>
135
+ <th>
136
+ <data-order field="f_user_type" name="客户类型"></data-order>
137
+ </th>
138
+ <th><nobr>备注</nobr></th>
139
+
140
+ </tr>
141
+ </template>
142
+ <template partial='body' >
143
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}" ><nobr>
144
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
145
+ </nobr> </td>
146
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_name}}</nobr></td>
147
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_address}}</nobr></td>
148
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_meter_brand}}</nobr></td>
149
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operate_date}}</nobr></td>
150
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_state}}</nobr></td>
151
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1price}}</nobr></td>
152
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair1amount}}</nobr></td>
153
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2price}}</nobr></td>
154
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair2amount}}</nobr></td>
155
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3price}}</nobr></td>
156
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_stair3amount}}</nobr></td>
157
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_pregas}}</nobr></td>
158
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_preamount}}</nobr></td>
159
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_collection}}</nobr></td>
160
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_balance}}</nobr></td>
161
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_curbalance}}</nobr></td>
162
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_payment}}</nobr></td>
163
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_type}}</nobr></td>
164
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_operator}}</nobr></td>
165
+ <td style="text-align: center;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_user_type}}</nobr></td>
166
+ <td style="text-align: left;" :style="{background:(row.f_state=='无效'?'#ffa8c0!important;':'')}"><nobr>{{row.f_comments}}</nobr></td>
167
+ </template>
168
+ </data-grid>
169
+ </criteria-paged>
170
+ </div>
171
+ <div v-if="pushconfirmflag" >
172
+ <push-confirm-manage :searchcondition.sync="searchCondition" @closemodel="closeCode" :orgiddepid="orgCondtionStr" :model.sync="model" v-ref:pushmanage ></push-confirm-manage>
173
+ </div>
174
+ <div v-if="listpage">
175
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
176
+ </div>
177
+ </template>
178
+
179
+ <script>
180
+
181
+ import { PagedList } from 'vue-client'
182
+ import exportConfig from '../../config/exportConfig'
183
+ import DayReportSummary from "./NCpushSummary";
184
+ import getLodop from '../../../../plugins/LodopFuncs'
185
+
186
+ export default {
187
+ components: {DayReportSummary},
188
+ title: '收费记录查询',
189
+ props: {
190
+ style: {
191
+ type: String,
192
+ default: 'col-sm-2 form-group'
193
+ },
194
+ },
195
+ data() {
196
+ return {
197
+ orderDefault: "'f_operate_date'",
198
+ orderFields: {
199
+ f_userinfo_code: 'no'
200
+ },
201
+ initres: {
202
+ org:[this.$login.f.orgid],
203
+ dep:[this.$login.f.depids],
204
+ user:[this.$login.f.id]
205
+ },
206
+ model: new PagedList('rs/sql/nopushdayReport', 30, {},{
207
+ f_pregas: 0,
208
+ f_collection: 0,
209
+ f_count_open: 0,
210
+ f_pregas_open: 0,
211
+ f_collection_open: 0,
212
+ f_count_zg: 0,
213
+ f_pregas_zg: 0,
214
+ f_collection_zg: 0,
215
+ f_count_bk: 0,
216
+ f_pregas_bk: 0,
217
+ f_collection_bk: 0,
218
+ f_count_othercharge:0,
219
+ f_collection_othercharge:0,
220
+ f_count_zjbf:0,
221
+ f_collection_zjbf:0,
222
+ f_count_bq: 0,
223
+ f_pregas_bq: 0,
224
+ f_collection_bq: 0,
225
+ f_count_hb: 0,
226
+ f_pregas_hb: 0,
227
+ f_collection_hb: 0,
228
+ f_count_cz: 0,
229
+ f_pregas_cz: 0,
230
+ f_collection_cz: 0,
231
+ f_sum_count:0,
232
+ f_shouru_gas:0,
233
+ f_shouru_fee:0,
234
+ f_yingshou_fee:0,
235
+ f_usebenqi_fee:0,
236
+ f_benqi_fee:0,
237
+ f_sumgtwx:0,
238
+ f_sumcwsf:0,
239
+ f_sumxjjf:0,
240
+ f_sumzfb:0,
241
+ f_sumpos:0,
242
+ f_sumwxjf:0,
243
+ f_sumqp:0,
244
+ f_sumyysk:0,
245
+ f_sumjjbq:0,
246
+ f_sumbtk:0,
247
+ f_count_ysk:0,
248
+ f_collection_ysk:0,
249
+ }),
250
+ listpage:false,
251
+ rowdata: {},
252
+ orgCondtionStr: '',
253
+ userTypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
254
+ count: 0,
255
+ sumsmodel: {},
256
+ printshow: false,
257
+ all: false,
258
+ orgname: '',
259
+ depname: '',
260
+ operaname:'',
261
+ criteriaShow: false,
262
+ operates: [{label: '全部', value: ''},...this.$appdata.getParam('日清单操作类型')],
263
+ stateoptions:[{label: '全部', value: ''}, {label: '有效', value: "有效"},{label: '撤销', value: "撤销"},{label: '无效', value: "无效"},{label: '冲正', value: "冲正"}],
264
+ hasapps: [{label: '包含APP', value: ''}, {label: '不包含APP', value: "!= '悦生活'"}],
265
+ useroptions:[{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')],
266
+ selectfields:[],
267
+ pushncshow:false,
268
+ pushncshow2:false,
269
+ searchCondition:{},
270
+ pushconfirmflag: false,
271
+ footershow:true,
272
+ footershow3:false,
273
+ listpageshow:false,
274
+ }
275
+ },
276
+ ready() {
277
+ if(this.$login.r.includes('收费推送')){
278
+ this.pushncshow = true;
279
+ }
280
+ this.$refs.paged.$refs.cri.condition += this.orgCondtionStr
281
+ this.$refs.paged.$refs.cri.model.f_hasapp = [`!= '悦生活'`]
282
+ this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString() +' 00:00:00'
283
+ this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+' 23:59:59'
284
+ this.$refs.paged.$refs.cri.model.f_state = ['无效'];
285
+ for(var item in exportConfig.dataReportConfig){
286
+ this.selectfields.push(item)
287
+ }
288
+ // this.search()
289
+ },
290
+ methods: {
291
+ //关闭推送确认窗口
292
+ closeCode(){
293
+ this.$refs.pushmanage.newmodel = {};
294
+ this.$refs.pushmanage.showmone = false;
295
+ this.pushconfirmflag = false;
296
+ this.listpageshow = false;
297
+ },
298
+ //显示交账页面
299
+ showpushconfirm(){
300
+ this.criteriaShow = false
301
+ this.$emit('close')
302
+ this.search();
303
+ if(this.searchCondition.condition!=null && this.searchCondition.condition!='' && this.searchCondition.condition.includes("f_gasproperties") || this.searchCondition.condition.includes("f_type") ){
304
+ //this.$showMessage("交账失败,本次交账未保存,只能交账一天的数据,请确认交账时间后重新交账!!");
305
+ this.$showMessage("交账失败,本次交账未保存,请取消用气性质或操作类型选项!!");
306
+ return;
307
+ }
308
+ this.$showMessage("本次交账内容查询完毕,如果继续交账请点击确认。",['confirm','cancel']).then(res=>{
309
+ if(res == 'confirm'){
310
+ this.pushconfirm();
311
+ }
312
+ })
313
+ },
314
+ //推送页面显示
315
+ pushconfirm(){
316
+ this.pushconfirmflag = true;
317
+ this.listpageshow=true
318
+ },
319
+ showmsg(obj){
320
+ this.criteriaShow = false
321
+ this.$emit('close')
322
+ this.rowdata=obj
323
+ this.listpage=true
324
+ this.listpageshow = true
325
+ },
326
+ cancel() {
327
+ this.listpage = false
328
+ this.listpageshow = false;
329
+ },
330
+ search() {
331
+ this.$refs.paged.$refs.cri.search()
332
+ },
333
+ async selfSearch(args) {
334
+ let f_orgstr = this.orgCondtionStr
335
+ if (!this.orgCondtionStr) {
336
+ f_orgstr = 'and f_orgid = ' + this.$login.f.orgid
337
+ }
338
+ args.condition = `${args.condition} ` + f_orgstr
339
+
340
+ //this.model.params.startDate = this.$refs.paged.$refs.cri.model.f_startDate
341
+ //this.model.params.endDate = this.$refs.paged.$refs.cri.model.f_endDate
342
+
343
+ //推送条件: 需要 选择公司,部门
344
+ if( this.orgCondtionStr.includes("f_operatorid ") ){
345
+ this.pushncshow2 = true;
346
+ }else{
347
+ this.pushncshow2= false;
348
+ }
349
+ this.searchCondition = this.getCondition;
350
+ //人员加载出来后再查询
351
+ if(this.operaname){
352
+ await this.model.search(args.condition, args.model)
353
+ }
354
+
355
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
356
+ console.log('计算合计。', this.sumsmodel)
357
+ if (this.$refs.paged.$refs.grid.model.rows.length === 0) {
358
+ for (let key in this.sumsmodel) {
359
+ this.sumsmodel[key] = 0;
360
+ }
361
+ }
362
+ this.$dispatch('getdata', this.sumsmodel)
363
+ },
364
+ getRes(condition, obj) {
365
+ //判断最新组织和存储组织不同时,清空已经选择人员
366
+ if(obj.depnames[0] != this.depname){
367
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
368
+ }
369
+ this.orgCondtionStr = condition;
370
+ this.orgname = obj.orgnames[0];
371
+ this.depname = obj.depnames[0];
372
+ if(obj.operatornames.length>0){
373
+ this.operaname =obj.operatornames[0];
374
+ }else{
375
+ this.operaname='';
376
+ }
377
+ //当未选中人员时不可进行推送
378
+ if( this.orgCondtionStr.includes("f_operatorid ") ){
379
+ this.pushncshow2 = true;
380
+ }else{
381
+ this.pushncshow2 = false;
382
+ }
383
+ },
384
+ clear() {
385
+ //清空部门和人员
386
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = [];
387
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = [];
388
+ //部门和人员变为全选
389
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false;
390
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false;
391
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
392
+ this.$refs.paged.$refs.cri.model[key] = '';
393
+ })
394
+ //this.$refs.paged.$refs.cri.model.f_startDate = this.$login.toStandardDateString()+' 00:00:00';
395
+ //this.$refs.paged.$refs.cri.model.f_endDate = this.$login.toStandardDateString()+ ' 23:59:59';
396
+ },
397
+ close() {
398
+ this.printshow = false
399
+ },
400
+ getfield() {
401
+
402
+ return exportConfig.dataReportConfig
403
+ },
404
+ show() {
405
+ this.pushncshow2 = !this.pushncshow2;
406
+ this.criteriaShow = !this.criteriaShow
407
+ if (this.criteriaShow) {
408
+ this.$emit('show')
409
+ } else {
410
+ this.$emit('close')
411
+ }
412
+ },
413
+ /*sort(field, rule) {
414
+ console.log('sort...')
415
+
416
+ },*/
417
+ sort (field, rule) {
418
+ // 将所有排序方式设为不排序,实现相互排斥
419
+ for (let key in this.orderFields) {
420
+ if (key === field) {
421
+ this.orderFields[key] = rule
422
+ } else {
423
+ this.orderFields[key] = 'no'
424
+ }
425
+ }
426
+ // 如果新规则不排序,还原为默认排序
427
+ if (rule === 'no') {
428
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
429
+ } else {
430
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
431
+ }
432
+
433
+ this.search()
434
+ },
435
+ },
436
+ events:{
437
+ 'showtogglefooter'(){
438
+ this.footershow=true;
439
+ },
440
+ 'hiddentogglefooter'(){
441
+ this.footershow=false
442
+ },
443
+ 'confirmcolse'(){
444
+ this.pushconfirmflag = false;
445
+ },
446
+ 'openbutton'(){
447
+ this.footershow3=true;
448
+ },
449
+ 'closebutton'(){
450
+ this.footershow3=false;
451
+ }
452
+ },
453
+ computed: {
454
+ getCondition() {
455
+ return {
456
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
457
+ }
458
+ },
459
+ gasproperties() {
460
+ console.log("xxx");
461
+ console.log(this.$appdata.getParam('用气性质'));
462
+ console.log(this);
463
+ let options = this.$appdata.getParam('用气性质')
464
+ let resultoptions = [];
465
+ if(options.length>0){
466
+ resultoptions.push({label: ' 全部 ', value: ''})
467
+ options.forEach((item)=>{
468
+ console.log(item)
469
+ resultoptions.push(item)
470
+ })
471
+ }
472
+ console.log(resultoptions);
473
+ return resultoptions;
474
+ //return [{label: ' 全部 ', value: ''},...this.$appdata.getParam('用气性质')]
475
+ }
476
+ },
477
+ watch:{
478
+ 'pushncshow2'(val){
479
+ if(val){
480
+ this.search();
481
+ }
482
+ }
483
+ }
484
+ }
485
+
486
+ </script>
487
+
488
+ <style scoped>
489
+
490
+ .col {
491
+ width: 300px;
492
+ overflow: hidden;
493
+ text-overflow: ellipsis;
494
+ white-space: nowrap;
495
+ }
496
+
497
+ </style>