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