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