manage-client-xy 3.2.28 → 3.2.30

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 (31) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/SellReport/FinancialStatement.vue +30 -0
  4. package/src/components/SellReport/ManageBusSummary.vue +241 -241
  5. package/src/components/SellReport/SmartKitchenSummary.vue +275 -275
  6. package/src/components/SellReport/UserNumber.vue +30 -0
  7. package/src/components/SellReport/XianYangNewCharge.vue +355 -355
  8. package/src/components/sale/businessquery/AreaGeneralQuery.vue +715 -700
  9. package/src/components/sale/businessquery/CMHGasQuery.vue +441 -411
  10. package/src/components/sale/businessquery/ChangeMeterQuery.vue +659 -630
  11. package/src/components/sale/businessquery/ChangeUserQuery.vue +403 -373
  12. package/src/components/sale/businessquery/ChargeQuery.vue +1027 -997
  13. package/src/components/sale/businessquery/DisableQuery.vue +433 -403
  14. package/src/components/sale/businessquery/EnableQuery.vue +422 -392
  15. package/src/components/sale/businessquery/FMYGasQuery.vue +440 -410
  16. package/src/components/sale/businessquery/FillCardQuery.vue +522 -492
  17. package/src/components/sale/businessquery/FillGasQuery.vue +506 -476
  18. package/src/components/sale/businessquery/HandplanQuery.vue +728 -698
  19. package/src/components/sale/businessquery/LogQuery.vue +301 -269
  20. package/src/components/sale/businessquery/NewAccountQuery.vue +518 -488
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +432 -402
  22. package/src/components/sale/businessquery/RecordQuery.vue +399 -369
  23. package/src/components/sale/businessquery/ResidentialQuery.vue +417 -387
  24. package/src/components/sale/businessquery/ReverseQuery.vue +459 -429
  25. package/src/components/sale/businessquery/SellingHand.vue +408 -378
  26. package/src/components/sale/businessquery/TransferQuery.vue +589 -559
  27. package/src/components/sale/businessquery/cancelAccountQuery.vue +518 -488
  28. package/src/components/sale/filesquery/DeviceQuery.vue +30 -0
  29. package/src/components/sale/filesquery/MeterQuery.vue +30 -0
  30. package/src/components/sale/filesquery/UserQuery.vue +796 -764
  31. package/src/components/webmeter/DrillData/UserGasAll.vue +30 -1
@@ -1,698 +1,728 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
-
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
- <div class="col-sm-2 form-group">
11
- <label class="font_normal_body">客户编号</label>
12
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
- </div>
15
- <div class="col-sm-2 form-group">
16
- <label class="font_normal_body">客户名称</label>
17
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
- condition="f_user_name like '%{}%'" placeholder="客户名称">
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="startDate" class="font_normal_body">开始日期</label>
22
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
- v-model="model.startDate"
24
- :value.sync="model.startDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_input_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
28
- </datepicker>
29
- </div>
30
-
31
- <div class="span" style="float:right;">
32
- <button class="button_search button_spacing" @click="search()">查询</button>
33
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
-
35
- <button class="btn btn-default" @click="$parent.$parent.Fileinput()">反盘导入</button>
36
- <export-excel :data="$parent.$parent.getCondition"
37
- :field="$parent.$parent.getBankfield"
38
- sqlurl="rs/logic/exportfile" sql-name="newhandplanQuery" template-name='送盘导出'
39
- btn-name="送盘导出"
40
- :choose-col="false"
41
- ></export-excel>
42
- <export-excel :data="$parent.$parent.getCondition"
43
- :field="$parent.$parent.getfield"
44
- sqlurl="rs/logic/exportfile" sql-name="handplanQuery" template-name='抄表查询导出'
45
- v-if="$parent.$parent.jurisdiction.includes('excel导出')"
46
- :choose-col="true"></export-excel>
47
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
48
- :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
49
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
50
-
51
- <div style="float: right" class="button_spacing"
52
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
53
- @click="$parent.$parent.hidden()"></div>
54
- </div>
55
- </div>
56
- <div class="row" v-show="$parent.$parent.criteriaShow">
57
- <div class="col-sm-2 form-group">
58
- <label for="endDate" class="font_normal_body">结束日期</label>
59
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
60
- v-model="model.endDate"
61
- :value.sync="model.endDate"
62
- :format="'yyyy-MM-dd HH:mm:ss'"
63
- :show-reset-button="true"
64
- condition="f_input_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
65
- </datepicker>
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">客户地址</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
70
- condition="f_address like '%{}%'" placeholder='客户地址'>
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">抄表状态</label>
74
- <v-select :value.sync="model.f_meter_state"
75
- v-model="model.f_meter_state"
76
- :options='$parent.$parent.meterstate' placeholder='请选择'
77
- condition="f_meter_state = '{}'"
78
- close-on-select></v-select>
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">表单状态</label>
82
- <v-select :value.sync="model.f_hand_state"
83
- v-model="model.f_hand_state"
84
- :options='$parent.$parent.handstate' placeholder='请选择'
85
- condition="f_hand_state = '{}'"
86
- close-on-select></v-select>
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
90
- <v-select :value.sync="model.f_inputtor"
91
- v-model="model.f_inputtor"
92
- :options='$parent.$parent.inputtor' placeholder='请选择'
93
- multiple="true"
94
- close-on-select></v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">是否缴费</label>
98
- <v-select :value.sync="model.f_whether_pay"
99
- v-model="model.f_whether_pay"
100
- :options='$parent.$parent.whetherPay' placeholder='请选择'
101
- condition="f_whether_pay = '{}'"
102
- close-on-select></v-select>
103
- </div>
104
- <div class="col-sm-2 form-group">
105
- <label class="font_normal_body">用户分类</label>
106
- <v-select :value.sync="model.f_user_type"
107
- @change="$parent.$parent.userTypeChange"
108
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
109
- condition="uf_user_type = '{}'"
110
- close-on-select></v-select>
111
- </div>
112
- <div class="col-sm-2 form-group">
113
- <label class="font_normal_body">用户类型</label>
114
- <v-select :value.sync="model.f_user_mold"
115
- @change="$parent.$parent.userMoldChange"
116
- :options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
117
- condition="uf_user_mold = '{}'"
118
- close-on-select></v-select>
119
- </div>
120
- <div class="col-sm-2 form-group">
121
- <label class="font_normal_body">用气性质</label>
122
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
123
- :options='$parent.$parent.gasproperties' placeholder='请选择'
124
- condition="uf_gasproperties = '{}'"
125
- close-on-select></v-select>
126
- </div>
127
- <div class="col-sm-2 form-group">
128
- <label class="font_normal_body">下账状态</label>
129
- <v-select :value.sync="model.f_accounts_state"
130
- :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
131
- condition="f_accounts_state = '{}'"
132
- close-on-select></v-select>
133
- </div>
134
- <!--<div class="col-sm-2 form-group">
135
- <label class="font_normal_body">是否缴费</label>
136
- <v-select :value.sync="model.f_whether_pay"
137
- :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_whether_pay"
138
- condition="f_whether_pay = '{}'"
139
- close-on-select></v-select>
140
- </div>-->
141
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
142
- v-ref:sel></res-select-group>
143
- <div class="col-sm-2 form-group">
144
- <label for="f_area_id" class="font_normal_body">小区编码</label>
145
- <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
146
- condition="f_area_id = '{}'" placeholder='小区编码'>
147
- </div>
148
- <div class="col-sm-2 form-group">
149
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
150
- <v-select :value.sync="model.f_residential_area"
151
- class="select_list select"
152
- enter-push
153
- multiple="true"
154
- v-model="model.f_residential_area"
155
- style="width: 60%"
156
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
157
- close-on-select>
158
- </v-select>
159
- </div>
160
- </div>
161
- </div>
162
- </criteria>
163
-
164
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
165
- <template partial='head'>
166
- <tr>
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
- <th>
231
- <nobr>三阶单价</nobr>
232
- </th>
233
- <th>
234
- <nobr>三阶气费</nobr>
235
- </th>
236
- <th>
237
- <nobr>抄表员</nobr>
238
- </th>
239
- <th>
240
- <nobr>是否缴费</nobr>
241
- </th>
242
-
243
- <th>
244
- <nobr>抄表状态</nobr>
245
- </th>
246
- <th>
247
- <nobr>状态</nobr>
248
- </th>
249
- <th>
250
- <nobr>人员</nobr>
251
- </th>
252
- <th>
253
- <nobr>部门</nobr>
254
- </th>
255
- <th>
256
- <nobr>公司</nobr>
257
- </th>
258
- </tr>
259
- </template>
260
- <template partial='body'>
261
- <td style="text-align: center;">
262
- <nobr>
263
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
264
- </td>
265
- <td style="text-align: center;">
266
- <nobr>{{row.f_user_name}}</nobr>
267
- </td>
268
- <td style="text-align: center;">
269
- <nobr>{{row.f_address}}</nobr>
270
- </td>
271
- <td style="text-align: center;">
272
- <nobr>{{row.f_meternumber}}</nobr>
273
- </td>
274
- <td style="text-align: center;">
275
- <nobr>{{row.f_last_tablebase}}</nobr>
276
- </td>
277
- <td style="text-align: center;">
278
- <nobr>{{row.f_tablebase}}</nobr>
279
- </td>
280
- <td style="text-align: center;">
281
- <nobr>{{row.f_type}}</nobr>
282
- </td>
283
- <td style="text-align: center;">
284
- <nobr>{{row.f_oughtamount}}</nobr>
285
- </td>
286
- <td style="text-align: center;">
287
- <nobr>{{row.f_oughtfee}}</nobr>
288
- </td>
289
- <td style="text-align: center;">
290
- <nobr>{{row.f_debt_money}}</nobr>
291
- </td>
292
- <td style="text-align: center;">
293
- <nobr>{{row.f_accounts_state}}</nobr>
294
- </td>
295
- <td style="text-align: center;">
296
- <nobr>{{row.f_operate_date}}</nobr>
297
- </td>
298
- <td style="text-align: center;">
299
- <nobr>{{row.f_hand_date}}</nobr>
300
- </td>
301
- <td style="text-align: center;">
302
- <nobr>{{row.f_input_date}}</nobr>
303
- </td>
304
- <td style="text-align: center;">
305
- <nobr>{{row.f_stair1amount}}</nobr>
306
- </td>
307
- <td style="text-align: center;">
308
- <nobr>{{row.f_stair1price}}</nobr>
309
- </td>
310
- <td style="text-align: center;">
311
- <nobr>{{row.f_stair1fee}}</nobr>
312
- </td>
313
- <td style="text-align: center;">
314
- <nobr>{{row.f_stair2amount}}</nobr>
315
- </td>
316
- <td style="text-align: center;">
317
- <nobr>{{row.f_stair2price}}</nobr>
318
- </td>
319
- <td style="text-align: center;">
320
- <nobr>{{row.f_stair2fee}}</nobr>
321
- </td>
322
- <td style="text-align: center;">
323
- <nobr>{{row.f_stair3amount}}</nobr>
324
- </td>
325
- <td style="text-align: center;">
326
- <nobr>{{row.f_stair3price}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{row.f_stair3fee}}</nobr>
330
- </td>
331
- <td style="text-align: center;">
332
- <nobr>{{row.f_inputtor}}</nobr>
333
- </td>
334
- <td style="text-align: center;">
335
- <nobr>{{row.f_whether_pay}}</nobr>
336
- </td>
337
-
338
- <td style="text-align: center;">
339
- <nobr>{{row.f_meter_state}}</nobr>
340
- </td>
341
- <td style="text-align: center;">
342
- <nobr>{{row.f_hand_state}}</nobr>
343
- </td>
344
- <td style="text-align: center;">
345
- <nobr>{{row.f_operator}}</nobr>
346
- </td>
347
- <td style="text-align: center;">
348
- <nobr>{{row.f_orgname}}</nobr>
349
- </td>
350
- <td style="text-align: center;">
351
- <nobr>{{row.f_depname}}</nobr>
352
- </td>
353
- </template>
354
- <template partial='foot'></template>
355
- </data-grid>
356
- </criteria-paged>
357
-
358
- <table class="table-hover">
359
- <tr style="position: relative" class="table-bordered">
360
- <td
361
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
362
- 汇总信息
363
- </td>
364
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
365
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
366
- </td>
367
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
368
- 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
369
- </td>
370
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
371
- 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
372
- </td>
373
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
374
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
375
- </td>
376
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
377
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
378
- </td>
379
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
380
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
381
- </td>
382
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
383
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
384
- </td>
385
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
386
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
387
- </td>
388
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
389
- 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
390
- </td>
391
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
392
- 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
393
- </td>
394
- </tr>
395
- </table>
396
- </div>
397
- <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
398
- <article slot="modal-body" class="modal-body">
399
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定"
400
- multiple v-ref:file></file-upload>
401
- </article>
402
- <footer slot="modal-footer" class="modal-footer">
403
- </footer>
404
- </modal>
405
- <div v-if="show">
406
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
407
- </div>
408
- </div>
409
- </div>
410
- </template>
411
-
412
- <script>
413
- import {PagedList, HttpResetClass} from 'vue-client'
414
- import defaultPrint from '../config/DefaultPrint'
415
- import exportConfig from '../config/exportConfig'
416
-
417
- let readySomething = async function (self) {
418
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
419
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
420
- // await self.$refs.paged.$refs.cri.search()
421
- await self.$getConfig(self, 'HandplanQuery')
422
- console.log('抄表查询获取默认配置', self.config)
423
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
424
- console.log('开始初始化参数', self.defaultfield)
425
- await self.$MagLoadParams.loadParam()
426
- // await self.$MagLoadParams.loadParam()
427
- // self.initParams()
428
- console.log('开始查询')
429
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
430
- }
431
- export default {
432
- data() {
433
- return {
434
- data: {},
435
- model: new PagedList('rs/sql/handplanQuery', 20, {}, {
436
- f_oughtamount: 0,
437
- f_oughtfee: 0,
438
- f_stair1amount: 0,
439
- f_stair1fee: 0,
440
- f_stair2amount: 0,
441
- f_stair2fee: 0,
442
- f_stair3amount: 0,
443
- f_stair3fee: 0,
444
- f_surplus_gas: 0,
445
- f_haircut_gas: 0
446
- }),
447
- gasproperties:[],
448
- usermold:[],
449
- initres: {
450
- org: [this.$login.f.orgid],
451
- dep: [],
452
- user: [],
453
- },
454
- //小区
455
- residentialArea: [],
456
- area: [],
457
- show: false,
458
- rowdata: {},
459
- criteriaShow: false,
460
- orgCondtionStr: '',
461
- modelval: [],
462
- inputtouPerson: [],
463
- printshow: false,
464
- all: false,
465
- jurisdiction: this.$login.r,
466
- fields: {},
467
- thead: '',
468
- tfoot: '',
469
-
470
- // 下拉框
471
-
472
- //合计数据
473
- sumsmodel: {},
474
- defaultfield: [],
475
- config: {
476
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
477
- },
478
- batchmoneyShow: false
479
- }
480
- },
481
- ready() {
482
- this.getaddress()
483
-
484
- readySomething(this).then(() => {
485
- this.$emit('ready')
486
- }).catch((error) => {
487
- this.$emit('error', error)
488
- })
489
- },
490
- methods: {
491
- userTypeChange () {
492
- this.usermold=[]
493
- this.f_gasproperties=[]
494
- if(this.$refs.paged.$refs.cri.model !== null) {
495
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
496
- this.$refs.paged.$refs.cri.model.f_user_mold=''
497
- this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
498
- }
499
- else{
500
- this.usermold =[{label: '全部', value: ''}]
501
- }
502
- },
503
- userMoldChange () {
504
- this.gasproperties=[]
505
- if(this.$refs.paged.$refs.cri.model !==null) {
506
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
507
- if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
508
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
509
- return
510
- }
511
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
512
- }
513
- else{
514
- this.gasproperties =[{label: '全部', value: ''}]
515
- }
516
- },
517
- async getaddress() {
518
- console.log('开始获取小区')
519
- let HttpReset = new HttpResetClass()
520
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
521
- data: {
522
- condition: '1=1'
523
- }
524
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
525
- console.log('小区', data)
526
- let house = []
527
- for (let row of data.data) {
528
- console.log('开始保存小区')
529
- house.push({label: row.f_residential_area, value: row.f_residential_area})
530
- }
531
- this.residentialArea = house
532
- },
533
- Fileinput() {
534
- this.batchmoneyShow = true;
535
- },
536
- search() {
537
- this.$refs.paged.$refs.cri.search()
538
- },
539
- cancel() {
540
- this.show = false
541
- },
542
- selfSearch(args) {
543
- //小区查询条件
544
- this.area = this.$refs.paged.$refs.cri.model.f_residential_area
545
- console.log("=====小区model绑定====", this.area)
546
- if (this.area.length !== 0) {
547
- let st = JSON.stringify(this.area)
548
- st = st.replace(/"/g, `'`)
549
- st = st.replace(/\[/g, ``)
550
- st = st.replace(/\]/g, ``)
551
- console.log("=====小区model22222222222绑定====", st)
552
- //查询多个小区时条件
553
- args.condition += ` and areaname in ( ${st} )`
554
- }
555
- //抄表员查询条件
556
- this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
557
- if (this.inputtouPerson.length !== 0) {
558
- let str = JSON.stringify(this.inputtouPerson)
559
- str = str.replace(/"/g, `'`)
560
- str = str.replace(/\[/g, ``)
561
- str = str.replace(/\]/g, ``)
562
- console.log("=====抄表员model22222222222绑定====", str)
563
- //查询多个抄表员时条件
564
- args.condition += ` and f_inputtor in ( ${str} )`
565
- }
566
-
567
- args.condition = `${args.condition} ` + this.orgCondtionStr
568
- this.model.search(args.condition, args.model)
569
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
570
- },
571
- clear() {
572
- //清空部门和人员
573
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
574
- //部门和人员变为全选
575
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
576
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
577
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
578
- this.$refs.paged.$refs.cri.model[key] = ''
579
- })
580
- },
581
- show() {
582
- this.criteriaShow = true
583
- },
584
- hidden() {
585
- this.criteriaShow = !this.criteriaShow
586
- },
587
- getRes(obj) {
588
- this.orgCondtionStr = obj
589
- },
590
- stamp() {
591
- this.all = false
592
- //默认选择要打印的列
593
- this.modelval = defaultPrint.config
594
- this.fields = this.getfield
595
- console.log('所有打印字段', this.fields)
596
- this.printshow = true
597
- this.put()
598
- },
599
- put() {
600
- // 对Modelval进行排序
601
- this.sortModelval()
602
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
603
- for (let key of this.modelval) {
604
- this.thead += '<th>' + this.fields[key] + '</th>'
605
- }
606
- this.thead += '</tr>'
607
- },
608
- print() {
609
- this.$refs.print.PrintAsFile()
610
- this.printshow = false
611
- },
612
- dealmsg(val) {
613
- console.log('---------------dealmsg')
614
- this.rowdata = val
615
- this.show = true
616
- val.model = this.model.model
617
- this.$dispatch('deal-msg', val)
618
- },
619
- close() {
620
- this.printshow = false
621
- this.all = false
622
- },
623
- // 对选择的列进行排序
624
- sortModelval() {
625
- let sortModel = []
626
- Object.keys(this.fields).forEach((key) => {
627
- if (this.modelval.includes(key)) {
628
- sortModel.push(key)
629
- }
630
- })
631
- this.modelval = sortModel
632
- console.log('选择的打印的字段', this.modelval)
633
- }
634
- },
635
- watch: {
636
- 'all'(val) {
637
- if (val) {
638
- this.modelval = this.bodyData
639
- } else {
640
- this.modelval = defaultPrint.config
641
- this.put()
642
- }
643
- },
644
- 'modelval.length'() {
645
- this.put()
646
- },
647
- },
648
- computed: {
649
- getCondition() {
650
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
651
- },
652
- getfield() {
653
- return exportConfig.handplanConfig
654
- },
655
- getBankfield() {
656
- return exportConfig.batchBankConfig
657
- },
658
- usertypes() {
659
- return [ ...this.$appdata.getParam('用户类型')]
660
- },
661
- accountsState() {
662
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
663
- },
664
- meterstate() {
665
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
666
- },
667
- handstate() {
668
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
669
- },
670
- inputtor() {
671
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
672
- },
673
- whetherPay() {
674
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
675
- }
676
- },
677
- events: {
678
- 'onFileUpload': function (file, res) {
679
- if (this.batchmoneyShow) {
680
- let param = {
681
- filepath: res.f_downloadpath,
682
- f_operator: this.$login.f.name,
683
- f_operatorid: this.$login.f.id,
684
- f_orgid: this.$login.f.orgid,
685
- f_orgname: this.$login.f.orgs,
686
- f_depid: this.$login.f.depids,
687
- f_depname: this.$login.f.deps
688
- }
689
- let http = new HttpResetClass();
690
- http.load('POST', 'rs/logic/SumSettleFileImport', {data: param}, {
691
- resolveMsg: null,
692
- rejectMsg: '上传失败'
693
- });
694
- }
695
- }
696
- }
697
- }
698
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+
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
+ <div class="col-sm-2 form-group">
11
+ <label class="font_normal_body">客户编号</label>
12
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
13
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
14
+ </div>
15
+ <div class="col-sm-2 form-group">
16
+ <label class="font_normal_body">客户名称</label>
17
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
18
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="startDate" class="font_normal_body">开始日期</label>
22
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
23
+ v-model="model.startDate"
24
+ :value.sync="model.startDate"
25
+ :format="'yyyy-MM-dd HH:mm:ss'"
26
+ :show-reset-button="true"
27
+ condition="f_input_date >= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
28
+ </datepicker>
29
+ </div>
30
+
31
+ <div class="span" style="float:right;">
32
+ <button class="button_search button_spacing" @click="search()">查询</button>
33
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
34
+
35
+ <button class="btn btn-default" @click="$parent.$parent.Fileinput()">反盘导入</button>
36
+ <export-excel :data="$parent.$parent.getCondition"
37
+ :field="$parent.$parent.getBankfield"
38
+ sqlurl="rs/logic/exportfile" sql-name="newhandplanQuery" template-name='送盘导出'
39
+ btn-name="送盘导出"
40
+ :choose-col="false"
41
+ ></export-excel>
42
+ <export-excel :data="$parent.$parent.getCondition"
43
+ :field="$parent.$parent.getfield"
44
+ sqlurl="rs/logic/exportfile" sql-name="handplanQuery" template-name='抄表查询导出'
45
+ v-if="$parent.$parent.jurisdiction.includes('excel导出')"
46
+ :choose-col="true"></export-excel>
47
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
48
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
49
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
50
+
51
+ <div style="float: right" class="button_spacing"
52
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
53
+ @click="$parent.$parent.hidden()"></div>
54
+ </div>
55
+ </div>
56
+ <div class="row" v-show="$parent.$parent.criteriaShow">
57
+ <div class="col-sm-2 form-group">
58
+ <label for="endDate" class="font_normal_body">结束日期</label>
59
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
60
+ v-model="model.endDate"
61
+ :value.sync="model.endDate"
62
+ :format="'yyyy-MM-dd HH:mm:ss'"
63
+ :show-reset-button="true"
64
+ condition="f_input_date <= to_date('{}','yyyy-mm-dd hh24:mi:ss')">
65
+ </datepicker>
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">客户地址</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
70
+ condition="f_address like '%{}%'" placeholder='客户地址'>
71
+ </div>
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">抄表状态</label>
74
+ <v-select :value.sync="model.f_meter_state"
75
+ v-model="model.f_meter_state"
76
+ :options='$parent.$parent.meterstate' placeholder='请选择'
77
+ condition="f_meter_state = '{}'"
78
+ close-on-select></v-select>
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">表单状态</label>
82
+ <v-select :value.sync="model.f_hand_state"
83
+ v-model="model.f_hand_state"
84
+ :options='$parent.$parent.handstate' placeholder='请选择'
85
+ condition="f_hand_state = '{}'"
86
+ close-on-select></v-select>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
90
+ <v-select :value.sync="model.f_inputtor"
91
+ v-model="model.f_inputtor"
92
+ :options='$parent.$parent.inputtor' placeholder='请选择'
93
+ multiple="true"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">是否缴费</label>
98
+ <v-select :value.sync="model.f_whether_pay"
99
+ v-model="model.f_whether_pay"
100
+ :options='$parent.$parent.whetherPay' placeholder='请选择'
101
+ condition="f_whether_pay = '{}'"
102
+ close-on-select></v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">用户分类</label>
106
+ <v-select :value.sync="model.f_user_type"
107
+ @change="$parent.$parent.userTypeChange"
108
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
109
+ condition="uf_user_type = '{}'"
110
+ close-on-select></v-select>
111
+ </div>
112
+ <div class="col-sm-2 form-group">
113
+ <label class="font_normal_body">用户类型</label>
114
+ <v-select :value.sync="model.f_user_mold"
115
+ @change="$parent.$parent.userMoldChange"
116
+ :options='$parent.$parent.usermold' placeholder='请选择' v-model="model.f_user_mold"
117
+ condition="uf_user_mold = '{}'"
118
+ close-on-select></v-select>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">用气性质</label>
122
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
123
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
124
+ condition="uf_gasproperties = '{}'"
125
+ close-on-select></v-select>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">下账状态</label>
129
+ <v-select :value.sync="model.f_accounts_state"
130
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
131
+ condition="f_accounts_state = '{}'"
132
+ close-on-select></v-select>
133
+ </div>
134
+ <!--<div class="col-sm-2 form-group">
135
+ <label class="font_normal_body">是否缴费</label>
136
+ <v-select :value.sync="model.f_whether_pay"
137
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_whether_pay"
138
+ condition="f_whether_pay = '{}'"
139
+ close-on-select></v-select>
140
+ </div>-->
141
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
142
+ v-ref:sel></res-select-group>
143
+ <div class="col-sm-2 form-group">
144
+ <label for="f_area_id" class="font_normal_body">小区编码</label>
145
+ <input id="f_area_id" type="text" style="width:60%" class="input_search" v-model="model.f_area_id"
146
+ condition="f_area_id = '{}'" placeholder='小区编码'>
147
+ </div>
148
+ <div class="col-sm-2 form-group">
149
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
150
+ <v-select :value.sync="model.f_residential_area"
151
+ class="select_list select"
152
+ enter-push
153
+ multiple="true"
154
+ v-model="model.f_residential_area"
155
+ style="width: 60%"
156
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
157
+ close-on-select>
158
+ </v-select>
159
+ </div>
160
+ <div class="col-sm-2 form-group">
161
+ <label class="font_normal_body">房产地址</label>
162
+ <input class="input_search" condition="f_house_address = '{}'"
163
+ placeholder='房产地址'
164
+ style="width:60%" type="text" v-model="model.f_house_address">
165
+ </div>
166
+ <div class="col-sm-2 form-group">
167
+ <label class="font_normal_body">用途</label>
168
+ <input class="input_search" condition="f_property_usage = '{}'"
169
+ placeholder='用途'
170
+ style="width:60%" type="text" v-model="model.f_property_usage">
171
+ </div>
172
+ <div class="col-sm-2 form-group">
173
+ <label class="font_normal_body">房型</label>
174
+ <input class="input_search" condition="f_house_type = '{}'"
175
+ placeholder='房型'
176
+ style="width:60%" type="text" v-model="model.f_house_type">
177
+ </div>
178
+ <div class="col-sm-2 form-group">
179
+ <label class="font_normal_body">是否一户多表</label>
180
+ <input class="input_search" condition="f_is_multi_meter = '{}'"
181
+ placeholder='是否一户多表'
182
+ style="width:60%" type="text" v-model="model.f_is_multi_meter">
183
+ </div>
184
+ <div class="col-sm-2 form-group">
185
+ <label class="font_normal_body">关联ID</label>
186
+ <input class="input_search" condition="f_house_id = '{}'"
187
+ placeholder='关联ID'
188
+ style="width:60%" type="text" v-model="model.f_house_id">
189
+ </div>
190
+ </div>
191
+ </div>
192
+ </criteria>
193
+
194
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
195
+ <template partial='head'>
196
+ <tr>
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
+ <th>
231
+ <nobr>收费时间</nobr>
232
+ </th>
233
+ <th>
234
+ <nobr>下发日期</nobr>
235
+ </th>
236
+ <th>
237
+ <nobr>录入日期</nobr>
238
+ </th>
239
+ <th>
240
+ <nobr>一阶气量</nobr>
241
+ </th>
242
+ <th>
243
+ <nobr>一阶单价</nobr>
244
+ </th>
245
+ <th>
246
+ <nobr>一阶气费</nobr>
247
+ </th>
248
+ <th>
249
+ <nobr>二阶气量</nobr>
250
+ </th>
251
+ <th>
252
+ <nobr>二阶单价</nobr>
253
+ </th>
254
+ <th>
255
+ <nobr>二阶气费</nobr>
256
+ </th>
257
+ <th>
258
+ <nobr>三阶气量</nobr>
259
+ </th>
260
+ <th>
261
+ <nobr>三阶单价</nobr>
262
+ </th>
263
+ <th>
264
+ <nobr>三阶气费</nobr>
265
+ </th>
266
+ <th>
267
+ <nobr>抄表员</nobr>
268
+ </th>
269
+ <th>
270
+ <nobr>是否缴费</nobr>
271
+ </th>
272
+
273
+ <th>
274
+ <nobr>抄表状态</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>状态</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>人员</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>部门</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>公司</nobr>
287
+ </th>
288
+ </tr>
289
+ </template>
290
+ <template partial='body'>
291
+ <td style="text-align: center;">
292
+ <nobr>
293
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
294
+ </td>
295
+ <td style="text-align: center;">
296
+ <nobr>{{row.f_user_name}}</nobr>
297
+ </td>
298
+ <td style="text-align: center;">
299
+ <nobr>{{row.f_address}}</nobr>
300
+ </td>
301
+ <td style="text-align: center;">
302
+ <nobr>{{row.f_meternumber}}</nobr>
303
+ </td>
304
+ <td style="text-align: center;">
305
+ <nobr>{{row.f_last_tablebase}}</nobr>
306
+ </td>
307
+ <td style="text-align: center;">
308
+ <nobr>{{row.f_tablebase}}</nobr>
309
+ </td>
310
+ <td style="text-align: center;">
311
+ <nobr>{{row.f_type}}</nobr>
312
+ </td>
313
+ <td style="text-align: center;">
314
+ <nobr>{{row.f_oughtamount}}</nobr>
315
+ </td>
316
+ <td style="text-align: center;">
317
+ <nobr>{{row.f_oughtfee}}</nobr>
318
+ </td>
319
+ <td style="text-align: center;">
320
+ <nobr>{{row.f_debt_money}}</nobr>
321
+ </td>
322
+ <td style="text-align: center;">
323
+ <nobr>{{row.f_accounts_state}}</nobr>
324
+ </td>
325
+ <td style="text-align: center;">
326
+ <nobr>{{row.f_operate_date}}</nobr>
327
+ </td>
328
+ <td style="text-align: center;">
329
+ <nobr>{{row.f_hand_date}}</nobr>
330
+ </td>
331
+ <td style="text-align: center;">
332
+ <nobr>{{row.f_input_date}}</nobr>
333
+ </td>
334
+ <td style="text-align: center;">
335
+ <nobr>{{row.f_stair1amount}}</nobr>
336
+ </td>
337
+ <td style="text-align: center;">
338
+ <nobr>{{row.f_stair1price}}</nobr>
339
+ </td>
340
+ <td style="text-align: center;">
341
+ <nobr>{{row.f_stair1fee}}</nobr>
342
+ </td>
343
+ <td style="text-align: center;">
344
+ <nobr>{{row.f_stair2amount}}</nobr>
345
+ </td>
346
+ <td style="text-align: center;">
347
+ <nobr>{{row.f_stair2price}}</nobr>
348
+ </td>
349
+ <td style="text-align: center;">
350
+ <nobr>{{row.f_stair2fee}}</nobr>
351
+ </td>
352
+ <td style="text-align: center;">
353
+ <nobr>{{row.f_stair3amount}}</nobr>
354
+ </td>
355
+ <td style="text-align: center;">
356
+ <nobr>{{row.f_stair3price}}</nobr>
357
+ </td>
358
+ <td style="text-align: center;">
359
+ <nobr>{{row.f_stair3fee}}</nobr>
360
+ </td>
361
+ <td style="text-align: center;">
362
+ <nobr>{{row.f_inputtor}}</nobr>
363
+ </td>
364
+ <td style="text-align: center;">
365
+ <nobr>{{row.f_whether_pay}}</nobr>
366
+ </td>
367
+
368
+ <td style="text-align: center;">
369
+ <nobr>{{row.f_meter_state}}</nobr>
370
+ </td>
371
+ <td style="text-align: center;">
372
+ <nobr>{{row.f_hand_state}}</nobr>
373
+ </td>
374
+ <td style="text-align: center;">
375
+ <nobr>{{row.f_operator}}</nobr>
376
+ </td>
377
+ <td style="text-align: center;">
378
+ <nobr>{{row.f_orgname}}</nobr>
379
+ </td>
380
+ <td style="text-align: center;">
381
+ <nobr>{{row.f_depname}}</nobr>
382
+ </td>
383
+ </template>
384
+ <template partial='foot'></template>
385
+ </data-grid>
386
+ </criteria-paged>
387
+
388
+ <table class="table-hover">
389
+ <tr style="position: relative" class="table-bordered">
390
+ <td
391
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
392
+ 汇总信息
393
+ </td>
394
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
395
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
396
+ </td>
397
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
398
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
399
+ </td>
400
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
401
+ 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
402
+ </td>
403
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
404
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
405
+ </td>
406
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
407
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
408
+ </td>
409
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
410
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
411
+ </td>
412
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
413
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
414
+ </td>
415
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
416
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
417
+ </td>
418
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
419
+ 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
420
+ </td>
421
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
422
+ 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
423
+ </td>
424
+ </tr>
425
+ </table>
426
+ </div>
427
+ <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
428
+ <article slot="modal-body" class="modal-body">
429
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定"
430
+ multiple v-ref:file></file-upload>
431
+ </article>
432
+ <footer slot="modal-footer" class="modal-footer">
433
+ </footer>
434
+ </modal>
435
+ <div v-if="show">
436
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
437
+ </div>
438
+ </div>
439
+ </div>
440
+ </template>
441
+
442
+ <script>
443
+ import {PagedList, HttpResetClass} from 'vue-client'
444
+ import defaultPrint from '../config/DefaultPrint'
445
+ import exportConfig from '../config/exportConfig'
446
+
447
+ let readySomething = async function (self) {
448
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
449
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
450
+ // await self.$refs.paged.$refs.cri.search()
451
+ await self.$getConfig(self, 'HandplanQuery')
452
+ console.log('抄表查询获取默认配置', self.config)
453
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
454
+ console.log('开始初始化参数', self.defaultfield)
455
+ await self.$MagLoadParams.loadParam()
456
+ // await self.$MagLoadParams.loadParam()
457
+ // self.initParams()
458
+ console.log('开始查询')
459
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
460
+ }
461
+ export default {
462
+ data() {
463
+ return {
464
+ data: {},
465
+ model: new PagedList('rs/sql/handplanQuery', 20, {}, {
466
+ f_oughtamount: 0,
467
+ f_oughtfee: 0,
468
+ f_stair1amount: 0,
469
+ f_stair1fee: 0,
470
+ f_stair2amount: 0,
471
+ f_stair2fee: 0,
472
+ f_stair3amount: 0,
473
+ f_stair3fee: 0,
474
+ f_surplus_gas: 0,
475
+ f_haircut_gas: 0
476
+ }),
477
+ gasproperties:[],
478
+ usermold:[],
479
+ initres: {
480
+ org: [this.$login.f.orgid],
481
+ dep: [],
482
+ user: [],
483
+ },
484
+ //小区
485
+ residentialArea: [],
486
+ area: [],
487
+ show: false,
488
+ rowdata: {},
489
+ criteriaShow: false,
490
+ orgCondtionStr: '',
491
+ modelval: [],
492
+ inputtouPerson: [],
493
+ printshow: false,
494
+ all: false,
495
+ jurisdiction: this.$login.r,
496
+ fields: {},
497
+ thead: '',
498
+ tfoot: '',
499
+
500
+ // 下拉框
501
+
502
+ //合计数据
503
+ sumsmodel: {},
504
+ defaultfield: [],
505
+ config: {
506
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
507
+ },
508
+ batchmoneyShow: false
509
+ }
510
+ },
511
+ ready() {
512
+ this.getaddress()
513
+
514
+ readySomething(this).then(() => {
515
+ this.$emit('ready')
516
+ }).catch((error) => {
517
+ this.$emit('error', error)
518
+ })
519
+ },
520
+ methods: {
521
+ userTypeChange () {
522
+ this.usermold=[]
523
+ this.f_gasproperties=[]
524
+ if(this.$refs.paged.$refs.cri.model !== null) {
525
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
526
+ this.$refs.paged.$refs.cri.model.f_user_mold=''
527
+ this.usermold = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
528
+ }
529
+ else{
530
+ this.usermold =[{label: '全部', value: ''}]
531
+ }
532
+ },
533
+ userMoldChange () {
534
+ this.gasproperties=[]
535
+ if(this.$refs.paged.$refs.cri.model !==null) {
536
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
537
+ if (this.$refs.paged.$refs.cri.model.f_user_mold[0] ==='居民'){
538
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0] + this.$refs.paged.$refs.cri.model.f_user_mold[0])
539
+ return
540
+ }
541
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_mold[0])
542
+ }
543
+ else{
544
+ this.gasproperties =[{label: '全部', value: ''}]
545
+ }
546
+ },
547
+ async getaddress() {
548
+ console.log('开始获取小区')
549
+ let HttpReset = new HttpResetClass()
550
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
551
+ data: {
552
+ condition: '1=1'
553
+ }
554
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
555
+ console.log('小区', data)
556
+ let house = []
557
+ for (let row of data.data) {
558
+ console.log('开始保存小区')
559
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
560
+ }
561
+ this.residentialArea = house
562
+ },
563
+ Fileinput() {
564
+ this.batchmoneyShow = true;
565
+ },
566
+ search() {
567
+ this.$refs.paged.$refs.cri.search()
568
+ },
569
+ cancel() {
570
+ this.show = false
571
+ },
572
+ selfSearch(args) {
573
+ //小区查询条件
574
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
575
+ console.log("=====小区model绑定====", this.area)
576
+ if (this.area.length !== 0) {
577
+ let st = JSON.stringify(this.area)
578
+ st = st.replace(/"/g, `'`)
579
+ st = st.replace(/\[/g, ``)
580
+ st = st.replace(/\]/g, ``)
581
+ console.log("=====小区model22222222222绑定====", st)
582
+ //查询多个小区时条件
583
+ args.condition += ` and areaname in ( ${st} )`
584
+ }
585
+ //抄表员查询条件
586
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
587
+ if (this.inputtouPerson.length !== 0) {
588
+ let str = JSON.stringify(this.inputtouPerson)
589
+ str = str.replace(/"/g, `'`)
590
+ str = str.replace(/\[/g, ``)
591
+ str = str.replace(/\]/g, ``)
592
+ console.log("=====抄表员model22222222222绑定====", str)
593
+ //查询多个抄表员时条件
594
+ args.condition += ` and f_inputtor in ( ${str} )`
595
+ }
596
+
597
+ args.condition = `${args.condition} ` + this.orgCondtionStr
598
+ this.model.search(args.condition, args.model)
599
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
600
+ },
601
+ clear() {
602
+ //清空部门和人员
603
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
604
+ //部门和人员变为全选
605
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
606
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
607
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
608
+ this.$refs.paged.$refs.cri.model[key] = ''
609
+ })
610
+ },
611
+ show() {
612
+ this.criteriaShow = true
613
+ },
614
+ hidden() {
615
+ this.criteriaShow = !this.criteriaShow
616
+ },
617
+ getRes(obj) {
618
+ this.orgCondtionStr = obj
619
+ },
620
+ stamp() {
621
+ this.all = false
622
+ //默认选择要打印的列
623
+ this.modelval = defaultPrint.config
624
+ this.fields = this.getfield
625
+ console.log('所有打印字段', this.fields)
626
+ this.printshow = true
627
+ this.put()
628
+ },
629
+ put() {
630
+ // 对Modelval进行排序
631
+ this.sortModelval()
632
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
633
+ for (let key of this.modelval) {
634
+ this.thead += '<th>' + this.fields[key] + '</th>'
635
+ }
636
+ this.thead += '</tr>'
637
+ },
638
+ print() {
639
+ this.$refs.print.PrintAsFile()
640
+ this.printshow = false
641
+ },
642
+ dealmsg(val) {
643
+ console.log('---------------dealmsg')
644
+ this.rowdata = val
645
+ this.show = true
646
+ val.model = this.model.model
647
+ this.$dispatch('deal-msg', val)
648
+ },
649
+ close() {
650
+ this.printshow = false
651
+ this.all = false
652
+ },
653
+ // 对选择的列进行排序
654
+ sortModelval() {
655
+ let sortModel = []
656
+ Object.keys(this.fields).forEach((key) => {
657
+ if (this.modelval.includes(key)) {
658
+ sortModel.push(key)
659
+ }
660
+ })
661
+ this.modelval = sortModel
662
+ console.log('选择的打印的字段', this.modelval)
663
+ }
664
+ },
665
+ watch: {
666
+ 'all'(val) {
667
+ if (val) {
668
+ this.modelval = this.bodyData
669
+ } else {
670
+ this.modelval = defaultPrint.config
671
+ this.put()
672
+ }
673
+ },
674
+ 'modelval.length'() {
675
+ this.put()
676
+ },
677
+ },
678
+ computed: {
679
+ getCondition() {
680
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
681
+ },
682
+ getfield() {
683
+ return exportConfig.handplanConfig
684
+ },
685
+ getBankfield() {
686
+ return exportConfig.batchBankConfig
687
+ },
688
+ usertypes() {
689
+ return [ ...this.$appdata.getParam('用户类型')]
690
+ },
691
+ accountsState() {
692
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
693
+ },
694
+ meterstate() {
695
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
696
+ },
697
+ handstate() {
698
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
699
+ },
700
+ inputtor() {
701
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
702
+ },
703
+ whetherPay() {
704
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
705
+ }
706
+ },
707
+ events: {
708
+ 'onFileUpload': function (file, res) {
709
+ if (this.batchmoneyShow) {
710
+ let param = {
711
+ filepath: res.f_downloadpath,
712
+ f_operator: this.$login.f.name,
713
+ f_operatorid: this.$login.f.id,
714
+ f_orgid: this.$login.f.orgid,
715
+ f_orgname: this.$login.f.orgs,
716
+ f_depid: this.$login.f.depids,
717
+ f_depname: this.$login.f.deps
718
+ }
719
+ let http = new HttpResetClass();
720
+ http.load('POST', 'rs/logic/SumSettleFileImport', {data: param}, {
721
+ resolveMsg: null,
722
+ rejectMsg: '上传失败'
723
+ });
724
+ }
725
+ }
726
+ }
727
+ }
728
+ </script>