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,640 +1,640 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <!-- <div class="basic-main" @keyup.enter="search">-->
4
- <div class="basic-main">
5
- <div class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
-
12
- <div class="span" style="float:right;">
13
- <button class="button_search button_spacing" @click="search()">查询</button>
14
- <button class="button_clear button_spacing" @click="clear()">清空</button>
15
-
16
- <export-excel-plus :data="$parent.$parent.getCondition"
17
- :defaultselect="$parent.$parent.selectfields"
18
- :field="$parent.$parent.getfield"
19
- :exportprogress="true"
20
- v-ref:exports
21
- sqlurl="rs/logic/exportfileplus"
22
- sql-name="webmeterhandplanQuery" template-name='抄表查询导出'
23
- :choose-col="true"></export-excel-plus>
24
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
25
- </div>
26
- </div>
27
- <div class="row" v-show="$parent.$parent.criteriaShow">
28
- <div class="col-sm-2 form-group">
29
- <label class="font_normal_body">客户编号</label>
30
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
- </div>
33
- <div class="col-sm-2 form-group">
34
- <label class="font_normal_body">表&emsp;&emsp;号</label>
35
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
36
- condition="f_meternumber like '%{}%'" placeholder='表号'>
37
- </div>
38
- <div class="col-sm-2 form-group">
39
- <label class="font_normal_body">客户名称</label>
40
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
41
- condition="f_user_name like '%{}%'" placeholder="客户名称">
42
- </div>
43
- <div class="col-sm-2 form-group">
44
- <label class="font_normal_body">地&emsp;&emsp;址</label>
45
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
46
- condition="f_address like '%{}%'" placeholder='地址'>
47
- </div>
48
- <div class="col-sm-2 form-group">
49
- <label for="inputStartDate" class="font_normal_body">结算日期</label>
50
- <datepicker id="inputStartDate" placeholder="结算日期" style="width:60%"
51
- v-model="model.inputStartDate"
52
- :value.sync="model.inputStartDate"
53
- :format="'yyyy-MM-dd HH:mm:ss'"
54
- :show-reset-button="true"
55
- >
56
- </datepicker>
57
- </div>
58
- <div class="col-sm-2 form-group">
59
- <label for="inputEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
60
- <datepicker id="inputEndDate" placeholder="结算日期" style="width:60%"
61
- v-model="model.inputEndDate"
62
- :value.sync="model.inputEndDate"
63
- :format="'yyyy-MM-dd HH:mm:ss'"
64
- :show-reset-button="true"
65
- >
66
- </datepicker>
67
- </div>
68
-
69
-
70
- <div class="col-sm-2 form-group">
71
- <label class="font_normal_body">客户类型</label>
72
- <v-select :options='$parent.$parent.usertypes'
73
- @change="$parent.$parent.userTypeChange"
74
- :value.sync="model.f_user_type"
75
- close-on-select condition="f_user_type = '{}'"
76
- placeholder='用户类型'
77
- style="width: 60%" v-model="model.f_user_type"></v-select>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">用气性质</label>
81
- <v-select :options='$parent.$parent.gasproperties'
82
- :value.sync="model.f_gasproperties"
83
- close-on-select
84
- condition="f_gasproperties = '{}'"
85
- placeholder='用气性质'
86
- style="width: 60%"
87
- v-model="model.f_gasproperties">
88
- </v-select>
89
- </div>
90
- <div class="col-sm-2 form-group">
91
- <label class="font_normal_body">气表品牌</label>
92
- <v-select :value.sync="model.f_meter_brand" multiple
93
- v-model="model.f_meter_brand"
94
- :options='$parent.$parent.meterbrands' placeholder='请选择'
95
- condition="f_meter_brand in {}"
96
- close-on-select></v-select>
97
- </div>
98
- <div class="col-sm-2 form-group">
99
- <label for="handStartDate" class="font_normal_body">用气日期</label>
100
- <datepicker id="handStartDate" placeholder="用气日期" style="width:60%"
101
- v-model="model.handStartDate"
102
- :value.sync="model.handStartDate"
103
- :format="'yyyy-MM-dd 00:00:00'"
104
- :show-reset-button="true"
105
- condition="f_hand_date >= '{}'">
106
- </datepicker>
107
- </div>
108
- <div class="col-sm-2 form-group">
109
- <label for="handEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
110
- <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
111
- v-model="model.handEndDate"
112
- :value.sync="model.handEndDate"
113
- :format="'yyyy-MM-dd 23:59:59'"
114
- :show-reset-button="true"
115
- condition="f_hand_date <= '{}'">
116
- </datepicker>
117
- </div>
118
- </div>
119
- </div>
120
- </criteria>
121
-
122
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
123
- <template partial='head'>
124
- <tr>
125
- <th>
126
- <nobr>客户编号</nobr>
127
- </th>
128
- <th>
129
- <nobr>客户名称</nobr>
130
- </th>
131
- <th>
132
- <nobr>客户地址</nobr>
133
- </th>
134
- <th>
135
- <nobr>表号</nobr>
136
- </th>
137
- <th>
138
- <nobr>气表品牌</nobr>
139
- </th>
140
- <th>
141
- <nobr>电话号码</nobr>
142
- </th>
143
- <th>
144
- <nobr>身份证号</nobr>
145
- </th>
146
- <th>
147
- <nobr>客户类型</nobr>
148
- </th>
149
- <th>
150
- <nobr>用气性质</nobr>
151
- </th>
152
- <th>
153
- <nobr>上期底数</nobr>
154
- </th>
155
- <th>
156
- <nobr>本期底数</nobr>
157
- </th>
158
- <th>
159
- <nobr>用气量</nobr>
160
- </th>
161
- <th>
162
- <nobr>用气金额</nobr>
163
- </th>
164
- <th>
165
- <nobr>一阶气量</nobr>
166
- </th>
167
- <th>
168
- <nobr>一阶单价</nobr>
169
- </th>
170
- <th>
171
- <nobr>一阶气费</nobr>
172
- </th>
173
- <th>
174
- <nobr>二阶气量</nobr>
175
- </th>
176
- <th>
177
- <nobr>二阶单价</nobr>
178
- </th>
179
- <th>
180
- <nobr>二阶气费</nobr>
181
- </th>
182
- <th>
183
- <nobr>三阶气量</nobr>
184
- </th>
185
- <th>
186
- <nobr>三阶单价</nobr>
187
- </th>
188
- <th>
189
- <nobr>三阶气费</nobr>
190
- </th>
191
- <th>
192
- <nobr>本期余额</nobr>
193
- </th>
194
- <th>
195
- <nobr>上期结余</nobr>
196
- </th>
197
- <th>
198
- <nobr>结算日期</nobr>
199
- </th>
200
- <th>
201
- <nobr>用气日期</nobr>
202
- </th>
203
- <th>
204
- <nobr>抄表状态</nobr>
205
- </th>
206
- <th>
207
- <nobr>状态</nobr>
208
- </th>
209
- <th>
210
- <nobr>公司</nobr>
211
- </th>
212
- <th>
213
- <nobr>部门</nobr>
214
- </th>
215
- </tr>
216
- </template>
217
- <template partial='body'>
218
- <td style="text-align: center;">
219
- <nobr>
220
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
221
- </td>
222
- <td style="text-align: center;">
223
- <nobr>{{row.f_user_name}}</nobr>
224
- </td>
225
- <td style="text-align: center;">
226
- <nobr>{{row.f_address}}</nobr>
227
- </td>
228
- <td style="text-align: center;">
229
- <nobr>{{row.f_meternumber}}</nobr>
230
- </td>
231
- <td style="text-align: center">
232
- <nobr>{{row.f_meter_brand}}</nobr>
233
- </td>
234
- <td style="text-align: center;">
235
- <nobr>{{row.userphone}}</nobr>
236
- </td>
237
- <td style="text-align: center;">
238
- <nobr>{{row.f_idnumber}}</nobr>
239
- </td>
240
- <td style="text-align: center;">
241
- <nobr>{{row.f_user_type}}</nobr>
242
- </td>
243
- <td style="text-align: center;">
244
- <nobr>{{row.f_gasproperties}}</nobr>
245
- </td>
246
- <td style="text-align: center;">
247
- <nobr>{{row.f_last_tablebase}}</nobr>
248
- </td>
249
- <td style="text-align: center;">
250
- <nobr>{{row.f_tablebase}}</nobr>
251
- </td>
252
- <td style="text-align: center;">
253
- <nobr>{{row.f_oughtamount}}</nobr>
254
- </td>
255
- <td style="text-align: center;">
256
- <nobr>{{row.f_oughtfee}}</nobr>
257
- </td>
258
- <td style="text-align: center;">
259
- <nobr>{{row.f_stair1amount}}</nobr>
260
- </td>
261
- <td style="text-align: center;">
262
- <nobr>{{row.f_stair1price}}</nobr>
263
- </td>
264
- <td style="text-align: center;">
265
- <nobr>{{row.f_stair1fee}}</nobr>
266
- </td>
267
- <td style="text-align: center;">
268
- <nobr>{{row.f_stair2amount}}</nobr>
269
- </td>
270
- <td style="text-align: center;">
271
- <nobr>{{row.f_stair2price}}</nobr>
272
- </td>
273
- <td style="text-align: center;">
274
- <nobr>{{row.f_stair2fee}}</nobr>
275
- </td>
276
- <td style="text-align: center;">
277
- <nobr>{{row.f_stair3amount}}</nobr>
278
- </td>
279
- <td style="text-align: center;">
280
- <nobr>{{row.f_stair3price}}</nobr>
281
- </td>
282
- <td style="text-align: center;">
283
- <nobr>{{row.f_stair3fee}}</nobr>
284
- </td>
285
- <td style="text-align: center;">
286
- <nobr>{{row.f_balance}}</nobr>
287
- </td>
288
- <td style="text-align: center;">
289
- <nobr>{{row.f_curbalance}}</nobr>
290
- </td>
291
- <td style="text-align: center;">
292
- <nobr>{{row.f_input_date}}</nobr>
293
- </td>
294
- <td style="text-align: center;">
295
- <nobr>{{row.f_hand_date}}</nobr>
296
- </td>
297
- <td style="text-align: center;">
298
- <nobr>{{row.f_meter_state}}</nobr>
299
- </td>
300
- <td style="text-align: center;">
301
- <nobr>{{row.f_hand_state}}</nobr>
302
- </td>
303
-
304
- <td style="text-align: center;">
305
- <nobr>{{row.f_orgname}}</nobr>
306
- </td>
307
- <td style="text-align: center;">
308
- <nobr>{{row.f_depname}}</nobr>
309
- </td>
310
- </template>
311
- <template partial='foot'></template>
312
- </data-grid>
313
- </criteria-paged>
314
-
315
- <table class="table-hover">
316
- <tr style="position: relative" class="table-bordered">
317
- <td
318
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
319
- 汇总信息
320
- </td>
321
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
322
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
323
- </td>
324
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
325
- 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
326
- </td>
327
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
328
- 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
329
- </td>
330
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
331
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
332
- </td>
333
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
334
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
335
- </td>
336
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
337
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
338
- </td>
339
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
340
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
341
- </td>
342
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
343
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
344
- </td>
345
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
346
- 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
347
- </td>
348
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
349
- 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
350
- </td>
351
- </tr>
352
- </table>
353
- </div>
354
- <div v-if="show">
355
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
356
- </div>
357
- </div>
358
- </div>
359
- </template>
360
-
361
- <script>
362
- import {PagedList} from 'vue-client'
363
- import defaultPrint from '../sale/config/DefaultPrint'
364
- import exportConfig from '../sale/config/exportConfig'
365
-
366
- let readySomething = async function (self) {
367
- self.$MagGetSaleParam.initinputtor();
368
- // self.getinputtores();
369
- self.initmeterbook();
370
- self.$refs.paged.$refs.cri.model.inputStartDate = self.$login.toStandardDateString() + ' 00:00:00'
371
- self.$refs.paged.$refs.cri.model.inputEndDate = self.$login.toStandardDateString() + ' 23:59:59'
372
- // await self.$refs.paged.$refs.cri.search()
373
- await self.$getConfig(self, 'webmeterhandplanQuery')
374
- console.log('抄表查询获取默认配置', self.config)
375
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
376
- console.log('开始初始化参数', self.defaultfield)
377
- await self.$MagLoadParams.loadParam()
378
- // await self.$MagLoadParams.loadParam()
379
- // self.initParams()
380
- console.log('开始查询')
381
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
382
- }
383
- export default {
384
- name:'webmeter-handplan-query',
385
- title: '物联网抄表查询',
386
- data() {
387
- return {
388
- selectfields:[],
389
- data: {},
390
- other:[],
391
- startDate: '',
392
- endDate: '',
393
- footer:[],
394
- model: new PagedList('rs/sql/webmeterhandplanQuery', 20, {startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'}, {
395
- f_oughtamount: 0,
396
- f_oughtfee: 0,
397
- f_stair1amount: 0,
398
- f_stair1fee: 0,
399
- f_stair2amount: 0,
400
- f_stair2fee: 0,
401
- f_stair3amount: 0,
402
- f_stair3fee: 0,
403
- f_surplus_gas: 0,
404
- f_haircut_gas: 0
405
- }),
406
- sumName:['f_oughtamount','f_oughtfee','f_stair1amount','f_stair1fee',
407
- 'f_stair2amount','f_stair2fee','f_stair3amount','f_stair3fee','f_surplus_gas','f_haircut_gas'],
408
- initres: {
409
- org:[this.$login.f.orgid],
410
- dep:[],
411
- user:[],
412
- },
413
- show:false,
414
- rowdata:{},
415
- criteriaShow: false,
416
- orgCondtionStr: '',
417
- modelval: [],
418
- printshow: false,
419
- all: false,
420
- fields: {},
421
- thead: '',
422
- tfoot: '',
423
-
424
- // 下拉框
425
- //用气性质
426
- gasproperties:[],
427
- //合计数据
428
- sumsmodel: {},
429
- // defaultfield: [],
430
- config: {
431
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
432
- },
433
- tempfalg :false,
434
- lastorgstr:'',
435
- allorgid:[],
436
- meterbrands:[{label: '全部',value: ''}],
437
- usertypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
438
- }
439
- },
440
- // props:['selectorg'],
441
- props:[],
442
- ready() {
443
- readySomething(this).then(() => {
444
- this.$emit('ready')
445
- }).catch((error) => {
446
- this.$emit('error', error)
447
- })
448
- for(var item in exportConfig.webmeterHandplanFiles){
449
- this.selectfields.push(item)
450
- }
451
- },
452
- methods: {
453
- getotherfooter(){
454
- this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
455
- this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
456
- this.other=[];
457
- this.footer=[];
458
- let exportdata = this.getCondition;
459
- let otherInData=[];
460
- otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
461
- otherInData.push(`导出人:${this.$login.f.name}`)
462
- let footerData=[],exportfield=this.getfield;
463
- footerData.push("合计");
464
- let self = this;
465
- for(var field in self.sumsmodel){
466
- footerData.push(`${self.sumsmodel[field]}`);
467
- }
468
- this.footer.push(footerData);
469
- this.other.push(otherInData);
470
- },
471
- async initmeterbook(orgstr){
472
- if(orgstr == null ){
473
- orgstr = this.f_filialeid;
474
- }
475
- //获取新的抄表册,先去清理所有的抄表册
476
- // this.$GetSaleParam.meterbooks = [];
477
- //开始加载新的抄表册
478
- await this.$LoadParams.loadMeterBook(orgstr)
479
- // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
480
- },
481
- async updateParams() {
482
- await this.$MagLoadParams.loadParam(this.f_filialeid)
483
- this.initParams()
484
- },
485
- search(){
486
- this.$refs.paged.$refs.cri.search()
487
- },
488
- cancel() {
489
- this.show = false
490
- },
491
- initParams() {
492
- // 初始化气表品牌
493
- let brandArr = []
494
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
495
- let temp = {}
496
- temp.label = item.label
497
- temp.value = item.value.f_meter_brand
498
- brandArr.push(temp)
499
- })
500
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
501
- //初始化气价
502
- let result = []
503
- this.$MagGetSaleParam.prices.forEach((item) => {
504
- if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
505
- let value = {
506
- label: item.f_price_name,
507
- value: item.f_price_name
508
- }
509
- result.push(value)
510
- }
511
- })
512
- let hash = {}
513
- result = result.reduce((item, next) => {
514
- hash[next.label] ? '' : hash[next.label] = true && item.push(next)
515
- return item
516
- }, [])
517
- this.prices = Array.from(new Set(result))
518
- },
519
- userTypeChange () {
520
- this.gasproperties=[]
521
- if(this.$refs.paged.$refs.cri.model !==null) {
522
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
523
-
524
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
525
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
526
- // this.gasproperties.push({label: '全部', value: ''})
527
- }
528
- else{
529
- this.gasproperties =[{label: '全部', value: ''}]
530
- }
531
- },
532
- selfSearch(args) {
533
- this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
534
- this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
535
- console.log(this.startDate)
536
- console.log(this.endDate)
537
- if (this.endDate == '' || this.startDate == '') {
538
- return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
539
- }
540
- args.condition = `${args.condition} ` + this.orgCondtionStr
541
- this.model.search(args.condition, args.model)
542
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
543
- },
544
- clear() {
545
- //清空部门和人员
546
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
547
- //部门和人员变为全选
548
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
549
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
550
- this.$refs.paged.$refs.cri.model=[]
551
- // })
552
- },
553
- show() {
554
- this.criteriaShow = true
555
- },
556
- hidden() {
557
- this.criteriaShow = !this.criteriaShow
558
- },
559
- getRes(obj) {
560
- this.orgCondtionStr = obj
561
- },
562
- dealmsg(val) {
563
- console.log('---------------dealmsg')
564
- this.rowdata=val
565
- this.show=true
566
- val.model = this.model.model
567
- this.$dispatch('deal-msg', val)
568
- },
569
- close() {
570
- this.printshow = false
571
- this.all = false
572
- },
573
- // 对选择的列进行排序
574
- sortModelval() {
575
- let sortModel = []
576
- Object.keys(this.fields).forEach((key) => {
577
- if (this.modelval.includes(key)) {
578
- sortModel.push(key)
579
- }
580
- })
581
- this.modelval = sortModel
582
- console.log('选择的打印的字段', this.modelval)
583
- }
584
- },
585
- watch: {
586
- 'all'(val) {
587
- if (val) {
588
- this.modelval = this.bodyData
589
- } else {
590
- this.modelval = defaultPrint.config
591
- this.put()
592
- }
593
- },
594
- 'modelval.length'() {
595
- this.put()
596
- },
597
- sumsmodel: {
598
- handler: function(val) {
599
- this.getotherfooter();
600
- },
601
- deep: true
602
- },
603
- async 'orgCondtionStr'(val) {
604
- // this.meterbooks = [{label: '全部',value: ''}];
605
- if(this.lastorgstr != val){
606
- this.tempfalg = true;
607
- this.lastorgstr = val;
608
- }
609
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
610
- this.tempfalg = false;
611
- let a = val.substring(val.indexOf("(")+2)
612
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
613
- }
614
- let res = val.match(/'(.*?)'/)
615
- console.log('正则提取:',res && res[1])
616
- if (res) {
617
- this.f_filialeid = res[1]
618
- if(res.input !=null){
619
- let resorgid = res.input.substring(res.input.indexOf("'"));
620
- if(resorgid!= null && resorgid!=''){
621
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
622
- // resorgid = resorgid.replaceAll("'","");
623
- resorgid = resorgid.replace(/'/g,"");
624
- this.allorgid = resorgid.split(",")
625
- }
626
- }
627
- this.updateParams()
628
- }
629
- },
630
- },
631
- computed: {
632
- getCondition() {
633
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,startDate: this.$refs.paged.$refs.cri.model.inputStartDate,endDate:this.$refs.paged.$refs.cri.model.inputEndDate,f_orgid:this.orgCondtionStr}
634
- },
635
- getfield() {
636
- return exportConfig.webmeterHandplanFiles
637
- }
638
- }
639
- }
640
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <!-- <div class="basic-main" @keyup.enter="search">-->
4
+ <div class="basic-main">
5
+ <div class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
11
+
12
+ <div class="span" style="float:right;">
13
+ <button class="button_search button_spacing" @click="search()">查询</button>
14
+ <button class="button_clear button_spacing" @click="clear()">清空</button>
15
+
16
+ <export-excel-plus :data="$parent.$parent.getCondition"
17
+ :defaultselect="$parent.$parent.selectfields"
18
+ :field="$parent.$parent.getfield"
19
+ :exportprogress="true"
20
+ v-ref:exports
21
+ sqlurl="rs/logic/exportfileplus"
22
+ sql-name="webmeterhandplanQuery" template-name='抄表查询导出'
23
+ :choose-col="true"></export-excel-plus>
24
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
25
+ </div>
26
+ </div>
27
+ <div class="row" v-show="$parent.$parent.criteriaShow">
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户编号</label>
30
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
+ </div>
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
35
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
36
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
37
+ </div>
38
+ <div class="col-sm-2 form-group">
39
+ <label class="font_normal_body">客户名称</label>
40
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
41
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
42
+ </div>
43
+ <div class="col-sm-2 form-group">
44
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
45
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
46
+ condition="f_address like '%{}%'" placeholder='地址'>
47
+ </div>
48
+ <div class="col-sm-2 form-group">
49
+ <label for="inputStartDate" class="font_normal_body">结算日期</label>
50
+ <datepicker id="inputStartDate" placeholder="结算日期" style="width:60%"
51
+ v-model="model.inputStartDate"
52
+ :value.sync="model.inputStartDate"
53
+ :format="'yyyy-MM-dd HH:mm:ss'"
54
+ :show-reset-button="true"
55
+ >
56
+ </datepicker>
57
+ </div>
58
+ <div class="col-sm-2 form-group">
59
+ <label for="inputEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
60
+ <datepicker id="inputEndDate" placeholder="结算日期" style="width:60%"
61
+ v-model="model.inputEndDate"
62
+ :value.sync="model.inputEndDate"
63
+ :format="'yyyy-MM-dd HH:mm:ss'"
64
+ :show-reset-button="true"
65
+ >
66
+ </datepicker>
67
+ </div>
68
+
69
+
70
+ <div class="col-sm-2 form-group">
71
+ <label class="font_normal_body">客户类型</label>
72
+ <v-select :options='$parent.$parent.usertypes'
73
+ @change="$parent.$parent.userTypeChange"
74
+ :value.sync="model.f_user_type"
75
+ close-on-select condition="f_user_type = '{}'"
76
+ placeholder='用户类型'
77
+ style="width: 60%" v-model="model.f_user_type"></v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">用气性质</label>
81
+ <v-select :options='$parent.$parent.gasproperties'
82
+ :value.sync="model.f_gasproperties"
83
+ close-on-select
84
+ condition="f_gasproperties = '{}'"
85
+ placeholder='用气性质'
86
+ style="width: 60%"
87
+ v-model="model.f_gasproperties">
88
+ </v-select>
89
+ </div>
90
+ <div class="col-sm-2 form-group">
91
+ <label class="font_normal_body">气表品牌</label>
92
+ <v-select :value.sync="model.f_meter_brand" multiple
93
+ v-model="model.f_meter_brand"
94
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
95
+ condition="f_meter_brand in {}"
96
+ close-on-select></v-select>
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label for="handStartDate" class="font_normal_body">用气日期</label>
100
+ <datepicker id="handStartDate" placeholder="用气日期" style="width:60%"
101
+ v-model="model.handStartDate"
102
+ :value.sync="model.handStartDate"
103
+ :format="'yyyy-MM-dd 00:00:00'"
104
+ :show-reset-button="true"
105
+ condition="f_hand_date >= '{}'">
106
+ </datepicker>
107
+ </div>
108
+ <div class="col-sm-2 form-group">
109
+ <label for="handEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
110
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
111
+ v-model="model.handEndDate"
112
+ :value.sync="model.handEndDate"
113
+ :format="'yyyy-MM-dd 23:59:59'"
114
+ :show-reset-button="true"
115
+ condition="f_hand_date <= '{}'">
116
+ </datepicker>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ </criteria>
121
+
122
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
123
+ <template partial='head'>
124
+ <tr>
125
+ <th>
126
+ <nobr>客户编号</nobr>
127
+ </th>
128
+ <th>
129
+ <nobr>客户名称</nobr>
130
+ </th>
131
+ <th>
132
+ <nobr>客户地址</nobr>
133
+ </th>
134
+ <th>
135
+ <nobr>表号</nobr>
136
+ </th>
137
+ <th>
138
+ <nobr>气表品牌</nobr>
139
+ </th>
140
+ <th>
141
+ <nobr>电话号码</nobr>
142
+ </th>
143
+ <th>
144
+ <nobr>身份证号</nobr>
145
+ </th>
146
+ <th>
147
+ <nobr>客户类型</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>用气性质</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>上期底数</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>本期底数</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>用气量</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>用气金额</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>一阶气量</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>一阶单价</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>一阶气费</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>二阶气量</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>二阶单价</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>二阶气费</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>三阶气量</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>三阶单价</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>三阶气费</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>本期余额</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>上期结余</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>结算日期</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>用气日期</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>抄表状态</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>状态</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>公司</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>部门</nobr>
214
+ </th>
215
+ </tr>
216
+ </template>
217
+ <template partial='body'>
218
+ <td style="text-align: center;">
219
+ <nobr>
220
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
221
+ </td>
222
+ <td style="text-align: center;">
223
+ <nobr>{{row.f_user_name}}</nobr>
224
+ </td>
225
+ <td style="text-align: center;">
226
+ <nobr>{{row.f_address}}</nobr>
227
+ </td>
228
+ <td style="text-align: center;">
229
+ <nobr>{{row.f_meternumber}}</nobr>
230
+ </td>
231
+ <td style="text-align: center">
232
+ <nobr>{{row.f_meter_brand}}</nobr>
233
+ </td>
234
+ <td style="text-align: center;">
235
+ <nobr>{{row.userphone}}</nobr>
236
+ </td>
237
+ <td style="text-align: center;">
238
+ <nobr>{{row.f_idnumber}}</nobr>
239
+ </td>
240
+ <td style="text-align: center;">
241
+ <nobr>{{row.f_user_type}}</nobr>
242
+ </td>
243
+ <td style="text-align: center;">
244
+ <nobr>{{row.f_gasproperties}}</nobr>
245
+ </td>
246
+ <td style="text-align: center;">
247
+ <nobr>{{row.f_last_tablebase}}</nobr>
248
+ </td>
249
+ <td style="text-align: center;">
250
+ <nobr>{{row.f_tablebase}}</nobr>
251
+ </td>
252
+ <td style="text-align: center;">
253
+ <nobr>{{row.f_oughtamount}}</nobr>
254
+ </td>
255
+ <td style="text-align: center;">
256
+ <nobr>{{row.f_oughtfee}}</nobr>
257
+ </td>
258
+ <td style="text-align: center;">
259
+ <nobr>{{row.f_stair1amount}}</nobr>
260
+ </td>
261
+ <td style="text-align: center;">
262
+ <nobr>{{row.f_stair1price}}</nobr>
263
+ </td>
264
+ <td style="text-align: center;">
265
+ <nobr>{{row.f_stair1fee}}</nobr>
266
+ </td>
267
+ <td style="text-align: center;">
268
+ <nobr>{{row.f_stair2amount}}</nobr>
269
+ </td>
270
+ <td style="text-align: center;">
271
+ <nobr>{{row.f_stair2price}}</nobr>
272
+ </td>
273
+ <td style="text-align: center;">
274
+ <nobr>{{row.f_stair2fee}}</nobr>
275
+ </td>
276
+ <td style="text-align: center;">
277
+ <nobr>{{row.f_stair3amount}}</nobr>
278
+ </td>
279
+ <td style="text-align: center;">
280
+ <nobr>{{row.f_stair3price}}</nobr>
281
+ </td>
282
+ <td style="text-align: center;">
283
+ <nobr>{{row.f_stair3fee}}</nobr>
284
+ </td>
285
+ <td style="text-align: center;">
286
+ <nobr>{{row.f_balance}}</nobr>
287
+ </td>
288
+ <td style="text-align: center;">
289
+ <nobr>{{row.f_curbalance}}</nobr>
290
+ </td>
291
+ <td style="text-align: center;">
292
+ <nobr>{{row.f_input_date}}</nobr>
293
+ </td>
294
+ <td style="text-align: center;">
295
+ <nobr>{{row.f_hand_date}}</nobr>
296
+ </td>
297
+ <td style="text-align: center;">
298
+ <nobr>{{row.f_meter_state}}</nobr>
299
+ </td>
300
+ <td style="text-align: center;">
301
+ <nobr>{{row.f_hand_state}}</nobr>
302
+ </td>
303
+
304
+ <td style="text-align: center;">
305
+ <nobr>{{row.f_orgname}}</nobr>
306
+ </td>
307
+ <td style="text-align: center;">
308
+ <nobr>{{row.f_depname}}</nobr>
309
+ </td>
310
+ </template>
311
+ <template partial='foot'></template>
312
+ </data-grid>
313
+ </criteria-paged>
314
+
315
+ <table class="table-hover">
316
+ <tr style="position: relative" class="table-bordered">
317
+ <td
318
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
319
+ 汇总信息
320
+ </td>
321
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
322
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
323
+ </td>
324
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
325
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
326
+ </td>
327
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
328
+ 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
329
+ </td>
330
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
331
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
332
+ </td>
333
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
334
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
335
+ </td>
336
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
337
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
338
+ </td>
339
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
340
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
341
+ </td>
342
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
343
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
344
+ </td>
345
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
346
+ 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
347
+ </td>
348
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
349
+ 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
350
+ </td>
351
+ </tr>
352
+ </table>
353
+ </div>
354
+ <div v-if="show">
355
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
356
+ </div>
357
+ </div>
358
+ </div>
359
+ </template>
360
+
361
+ <script>
362
+ import {PagedList} from 'vue-client'
363
+ import defaultPrint from '../sale/config/DefaultPrint'
364
+ import exportConfig from '../sale/config/exportConfig'
365
+
366
+ let readySomething = async function (self) {
367
+ self.$MagGetSaleParam.initinputtor();
368
+ // self.getinputtores();
369
+ self.initmeterbook();
370
+ self.$refs.paged.$refs.cri.model.inputStartDate = self.$login.toStandardDateString() + ' 00:00:00'
371
+ self.$refs.paged.$refs.cri.model.inputEndDate = self.$login.toStandardDateString() + ' 23:59:59'
372
+ // await self.$refs.paged.$refs.cri.search()
373
+ await self.$getConfig(self, 'webmeterhandplanQuery')
374
+ console.log('抄表查询获取默认配置', self.config)
375
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
376
+ console.log('开始初始化参数', self.defaultfield)
377
+ await self.$MagLoadParams.loadParam()
378
+ // await self.$MagLoadParams.loadParam()
379
+ // self.initParams()
380
+ console.log('开始查询')
381
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
382
+ }
383
+ export default {
384
+ name:'webmeter-handplan-query',
385
+ title: '物联网抄表查询',
386
+ data() {
387
+ return {
388
+ selectfields:[],
389
+ data: {},
390
+ other:[],
391
+ startDate: '',
392
+ endDate: '',
393
+ footer:[],
394
+ model: new PagedList('rs/sql/webmeterhandplanQuery', 20, {startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'}, {
395
+ f_oughtamount: 0,
396
+ f_oughtfee: 0,
397
+ f_stair1amount: 0,
398
+ f_stair1fee: 0,
399
+ f_stair2amount: 0,
400
+ f_stair2fee: 0,
401
+ f_stair3amount: 0,
402
+ f_stair3fee: 0,
403
+ f_surplus_gas: 0,
404
+ f_haircut_gas: 0
405
+ }),
406
+ sumName:['f_oughtamount','f_oughtfee','f_stair1amount','f_stair1fee',
407
+ 'f_stair2amount','f_stair2fee','f_stair3amount','f_stair3fee','f_surplus_gas','f_haircut_gas'],
408
+ initres: {
409
+ org:[this.$login.f.orgid],
410
+ dep:[],
411
+ user:[],
412
+ },
413
+ show:false,
414
+ rowdata:{},
415
+ criteriaShow: false,
416
+ orgCondtionStr: '',
417
+ modelval: [],
418
+ printshow: false,
419
+ all: false,
420
+ fields: {},
421
+ thead: '',
422
+ tfoot: '',
423
+
424
+ // 下拉框
425
+ //用气性质
426
+ gasproperties:[],
427
+ //合计数据
428
+ sumsmodel: {},
429
+ // defaultfield: [],
430
+ config: {
431
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
432
+ },
433
+ tempfalg :false,
434
+ lastorgstr:'',
435
+ allorgid:[],
436
+ meterbrands:[{label: '全部',value: ''}],
437
+ usertypes: [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
438
+ }
439
+ },
440
+ // props:['selectorg'],
441
+ props:[],
442
+ ready() {
443
+ readySomething(this).then(() => {
444
+ this.$emit('ready')
445
+ }).catch((error) => {
446
+ this.$emit('error', error)
447
+ })
448
+ for(var item in exportConfig.webmeterHandplanFiles){
449
+ this.selectfields.push(item)
450
+ }
451
+ },
452
+ methods: {
453
+ getotherfooter(){
454
+ this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
455
+ this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
456
+ this.other=[];
457
+ this.footer=[];
458
+ let exportdata = this.getCondition;
459
+ let otherInData=[];
460
+ otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
461
+ otherInData.push(`导出人:${this.$login.f.name}`)
462
+ let footerData=[],exportfield=this.getfield;
463
+ footerData.push("合计");
464
+ let self = this;
465
+ for(var field in self.sumsmodel){
466
+ footerData.push(`${self.sumsmodel[field]}`);
467
+ }
468
+ this.footer.push(footerData);
469
+ this.other.push(otherInData);
470
+ },
471
+ async initmeterbook(orgstr){
472
+ if(orgstr == null ){
473
+ orgstr = this.f_filialeid;
474
+ }
475
+ //获取新的抄表册,先去清理所有的抄表册
476
+ // this.$GetSaleParam.meterbooks = [];
477
+ //开始加载新的抄表册
478
+ await this.$LoadParams.loadMeterBook(orgstr)
479
+ // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
480
+ },
481
+ async updateParams() {
482
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
483
+ this.initParams()
484
+ },
485
+ search(){
486
+ this.$refs.paged.$refs.cri.search()
487
+ },
488
+ cancel() {
489
+ this.show = false
490
+ },
491
+ initParams() {
492
+ // 初始化气表品牌
493
+ let brandArr = []
494
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
495
+ let temp = {}
496
+ temp.label = item.label
497
+ temp.value = item.value.f_meter_brand
498
+ brandArr.push(temp)
499
+ })
500
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
501
+ //初始化气价
502
+ let result = []
503
+ this.$MagGetSaleParam.prices.forEach((item) => {
504
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
505
+ let value = {
506
+ label: item.f_price_name,
507
+ value: item.f_price_name
508
+ }
509
+ result.push(value)
510
+ }
511
+ })
512
+ let hash = {}
513
+ result = result.reduce((item, next) => {
514
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
515
+ return item
516
+ }, [])
517
+ this.prices = Array.from(new Set(result))
518
+ },
519
+ userTypeChange () {
520
+ this.gasproperties=[]
521
+ if(this.$refs.paged.$refs.cri.model !==null) {
522
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
523
+
524
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
525
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
526
+ // this.gasproperties.push({label: '全部', value: ''})
527
+ }
528
+ else{
529
+ this.gasproperties =[{label: '全部', value: ''}]
530
+ }
531
+ },
532
+ selfSearch(args) {
533
+ this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
534
+ this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
535
+ console.log(this.startDate)
536
+ console.log(this.endDate)
537
+ if (this.endDate == '' || this.startDate == '') {
538
+ return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
539
+ }
540
+ args.condition = `${args.condition} ` + this.orgCondtionStr
541
+ this.model.search(args.condition, args.model)
542
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
543
+ },
544
+ clear() {
545
+ //清空部门和人员
546
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
547
+ //部门和人员变为全选
548
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
549
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
550
+ this.$refs.paged.$refs.cri.model=[]
551
+ // })
552
+ },
553
+ show() {
554
+ this.criteriaShow = true
555
+ },
556
+ hidden() {
557
+ this.criteriaShow = !this.criteriaShow
558
+ },
559
+ getRes(obj) {
560
+ this.orgCondtionStr = obj
561
+ },
562
+ dealmsg(val) {
563
+ console.log('---------------dealmsg')
564
+ this.rowdata=val
565
+ this.show=true
566
+ val.model = this.model.model
567
+ this.$dispatch('deal-msg', val)
568
+ },
569
+ close() {
570
+ this.printshow = false
571
+ this.all = false
572
+ },
573
+ // 对选择的列进行排序
574
+ sortModelval() {
575
+ let sortModel = []
576
+ Object.keys(this.fields).forEach((key) => {
577
+ if (this.modelval.includes(key)) {
578
+ sortModel.push(key)
579
+ }
580
+ })
581
+ this.modelval = sortModel
582
+ console.log('选择的打印的字段', this.modelval)
583
+ }
584
+ },
585
+ watch: {
586
+ 'all'(val) {
587
+ if (val) {
588
+ this.modelval = this.bodyData
589
+ } else {
590
+ this.modelval = defaultPrint.config
591
+ this.put()
592
+ }
593
+ },
594
+ 'modelval.length'() {
595
+ this.put()
596
+ },
597
+ sumsmodel: {
598
+ handler: function(val) {
599
+ this.getotherfooter();
600
+ },
601
+ deep: true
602
+ },
603
+ async 'orgCondtionStr'(val) {
604
+ // this.meterbooks = [{label: '全部',value: ''}];
605
+ if(this.lastorgstr != val){
606
+ this.tempfalg = true;
607
+ this.lastorgstr = val;
608
+ }
609
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
610
+ this.tempfalg = false;
611
+ let a = val.substring(val.indexOf("(")+2)
612
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
613
+ }
614
+ let res = val.match(/'(.*?)'/)
615
+ console.log('正则提取:',res && res[1])
616
+ if (res) {
617
+ this.f_filialeid = res[1]
618
+ if(res.input !=null){
619
+ let resorgid = res.input.substring(res.input.indexOf("'"));
620
+ if(resorgid!= null && resorgid!=''){
621
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
622
+ // resorgid = resorgid.replaceAll("'","");
623
+ resorgid = resorgid.replace(/'/g,"");
624
+ this.allorgid = resorgid.split(",")
625
+ }
626
+ }
627
+ this.updateParams()
628
+ }
629
+ },
630
+ },
631
+ computed: {
632
+ getCondition() {
633
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,startDate: this.$refs.paged.$refs.cri.model.inputStartDate,endDate:this.$refs.paged.$refs.cri.model.inputEndDate,f_orgid:this.orgCondtionStr}
634
+ },
635
+ getfield() {
636
+ return exportConfig.webmeterHandplanFiles
637
+ }
638
+ }
639
+ }
640
+ </script>