manage-client 3.2.93 → 3.2.94

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 (32) hide show
  1. package/build/dev-server.js +177 -176
  2. package/package.json +1 -1
  3. package/src/components/SellReport/GasMoneyPublicMoney.vue +1 -1
  4. package/src/components/sale/businessquery/CancellationQuery.vue +418 -418
  5. package/src/components/sale/businessquery/CardHandplanQuery.vue +476 -476
  6. package/src/components/sale/businessquery/ChargeQuery.vue +1297 -1283
  7. package/src/components/sale/businessquery/DisableQuery.vue +493 -493
  8. package/src/components/sale/businessquery/EnableQuery.vue +451 -451
  9. package/src/components/sale/businessquery/FillCardQuery.vue +529 -529
  10. package/src/components/sale/businessquery/FillGasQuery.vue +560 -560
  11. package/src/components/sale/businessquery/HandplanQuery.vue +1372 -1372
  12. package/src/components/sale/businessquery/MoveMeterQuery.vue +397 -397
  13. package/src/components/sale/businessquery/PrivilegeQuery.vue +380 -380
  14. package/src/components/sale/businessquery/ReceiptQuery.vue +834 -834
  15. package/src/components/sale/businessquery/ReverseQuery.vue +444 -444
  16. package/src/components/sale/businessquery/TransferQuery.vue +461 -461
  17. package/src/components/sale/businessquery/overDueQuery.vue +453 -453
  18. package/src/components/sale/config/exportConfig.js +944 -944
  19. package/src/components/sale/filesquery/UserQuery.vue +930 -941
  20. package/src/filiale/qianneng/ManageBusSummary.vue +224 -0
  21. package/src/filiale/qianneng/exportConfig.js +69 -69
  22. package/src/filiale/qianneng/reportManage.js +3 -1
  23. package/src/filiale/qianneng/sale.js +12 -12
  24. package/src/filiale/zhongyi/ManageBusSummaryPeng.vue +241 -0
  25. package/src/filiale/zhongyi/ManageHandSellMoney.vue +247 -0
  26. package/src/filiale/zhongyi/ManageSellType.vue +284 -0
  27. package/src/filiale/zhongyi/reportManage.js +16 -0
  28. package/src/main.js +66 -66
  29. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  30. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  31. package/.gradle/buildOutputCleanup/built.bin +0 -0
  32. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,834 +1,834 @@
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
- <criteria-paged :model="model" v-ref:paged @sort="sort">
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_operate_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- condition="f_operate_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_user_id = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
- </div>
39
-
40
- <div class="span" style="float:right;">
41
- <!--<read-idcard></read-idcard>-->
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
-
45
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
46
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
47
- :defaultselect="$parent.$parent.defaultexport"
48
- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
49
- :choose-col="true">
50
- </export-excel>
51
-
52
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
53
- :field="$parent.$parent.getfield"
54
- :defaultfield="$parent.$parent.defaultfield" print-name="收费查询"
55
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
- <div style="float: right" class="button_spacing"
57
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
58
- @click="$parent.$parent.hidden()"></div>
59
-
60
- </div>
61
- </div>
62
- <div class="row" v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres"
64
- @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
65
- <div class="col-sm-2 form-group">
66
- <label class="font_normal_body">发票号码</label>
67
- <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number"
68
- condition="f_bill_number = '{}'" placeholder="发票号码">
69
- </div>
70
- <!-- <div class="col-sm-2 form-group">-->
71
- <!-- <label class="font_normal_body">收&ensp;票&ensp;人</label>-->
72
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.ef"-->
73
- <!-- condition="ef = '{}'" placeholder="收票人">-->
74
- <!-- </div>-->
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">客户名称</label>
77
- <input type="text" style="width:60%" class="input_search" v-model="model.f_buy_name"
78
- condition="f_buy_name like '%{}%'" placeholder="客户名称">
79
- </div>
80
- <div class="col-sm-2 form-group">
81
- <label class="font_normal_body">客户地址</label>
82
- <input type="text" style="width:60%" class="input_search" v-model="model.f_buy_address"
83
- condition="f_buy_address like '%{}%'" placeholder="客户地址">
84
- </div>
85
- <div class="col-sm-2 form-group">
86
- <label class="font_normal_body">客户电话</label>
87
- <input type="text" style="width:60%" class="input_search" v-model="model.f_buy_phone"
88
- condition="f_buy_phone like '%{}%'" placeholder="客户电话">
89
- </div>
90
- <div class="col-sm-2 form-group">
91
- <label class="font_normal_body">收费类型</label>
92
- <v-select :value.sync="model.f_type" multiple
93
- :options='$parent.$parent.chargetype' placeholder='请选择'
94
- close-on-select clear-button
95
- condition="f_type in {}"
96
- v-model="model.f_type"></v-select>
97
- </div>
98
- <!-- <div class="col-sm-2 form-group">-->
99
- <!-- <label class="font_normal_body">组织编号</label>-->
100
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_orgid"-->
101
- <!-- condition="f_orgid = '{}'" placeholder="组织编号">-->
102
- <!-- </div>-->
103
- <!-- <div class="col-sm-2 form-group">-->
104
- <!-- <label class="font_normal_body">公司名称</label>-->
105
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_orgname"-->
106
- <!-- condition="f_orgname like '%{}%'" placeholder="组织编号">-->
107
- <!-- </div>-->
108
- <!-- <div class="col-sm-2 form-group">-->
109
- <!-- <label class="font_normal_body">部门编号</label>-->
110
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_depid"-->
111
- <!-- condition="f_depid = '{}'" placeholder="部门编号">-->
112
- <!-- </div>-->
113
- <!-- <div class="col-sm-2 form-group">-->
114
- <!-- <label class="font_normal_body">部门名称</label>-->
115
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"-->
116
- <!-- condition="f_depname like '%{}%'" placeholder="部门名称">-->
117
- <!-- </div>-->
118
- <!-- <div class="col-sm-2 form-group">-->
119
- <!-- <label class="font_normal_body">人员编号</label>-->
120
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_operatorid"-->
121
- <!-- condition="f_operatorid = '{}'" placeholder="人员编号">-->
122
- <!-- </div>-->
123
- <!-- <div class="col-sm-2 form-group">-->
124
- <!-- <label class="font_normal_body">收&ensp;费&ensp;员</label>-->
125
- <!-- <input type="text" style="width:60%" class="input_search" v-model="model.sf"-->
126
- <!-- condition="sf = '{}'" placeholder="收费员">-->
127
- <!-- </div>-->
128
- <div class="col-sm-2 form-group">
129
- <label class="font_normal_body">预&ensp;收&ensp;款</label>
130
- <input type="text" style="width:30%" class="input_search" title="大于等于"
131
- v-model="model.ge_f_preamount" condition="f_preamount >= '{}'" placeholder='大于等于'>
132
- <input type="text" style="width:30%" class="input_search" title="小于等于"
133
- v-model="model.le_f_preamount" condition="f_preamount <= '{}'" placeholder='小于等于'>
134
- </div>
135
- <div class="col-sm-2 form-group">
136
- <label class="font_normal_body">应收气量</label>
137
- <input type="text" style="width:30%" class="input_search" title="大于等于"
138
- v-model="model.ge_f_pregas" condition="f_pregas >= '{}'" placeholder='大于等于'>
139
- <input type="text" style="width:30%" class="input_search" title="小于等于"
140
- v-model="model.le_f_pregas" condition="f_pregas <= '{}'" placeholder='小于等于'>
141
- </div>
142
- <div class="col-sm-2 form-group">
143
- <label class="font_normal_body">实&ensp;收&ensp;款</label>
144
- <input type="text" style="width:30%" class="input_search" title="大于等于"
145
- v-model="model.ge_f_collection" condition="f_collection >= '{}'" placeholder='大于等于'>
146
- <input type="text" style="width:30%" class="input_search" title="小于等于"
147
- v-model="model.le_f_collection" condition="f_collection <= '{}'" placeholder='小于等于'>
148
- </div>
149
- <div class="col-sm-2 form-group">
150
- <label class="font_normal_body">收费类型</label>
151
- <v-select :value.sync="model.f_type" multiple
152
- :options='$parent.$parent.chargetype' placeholder='请选择'
153
- close-on-select clear-button
154
- condition="f_type in {}"
155
- v-model="model.f_type"></v-select>
156
- </div>
157
- <div class="col-sm-2 form-group">
158
- <label class="font_normal_body">气表类型</label>
159
- <v-select :value.sync="model.f_meter_type" multiple
160
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
161
- condition="f_meter_type in {}"
162
- close-on-select></v-select>
163
- </div>
164
- <div class="col-sm-2 form-group">
165
- <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
166
- <v-select :value.sync="model.f_payment" multiple
167
- v-model="model.f_payment"
168
- :options='$parent.$parent.payment' placeholder='请选择'
169
- condition="f_payment in {}"
170
- close-on-select></v-select>
171
- </div>
172
- <div class="col-sm-2 form-group">
173
- <label class="font_normal_body">客户类型</label>
174
- <v-select :value.sync="model.f_user_type"
175
- @change="$parent.$parent.userTypeChange()"
176
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
177
- condition="f_user_type = '{}'"
178
- close-on-select></v-select>
179
- </div>
180
- <div class="col-sm-2 form-group">
181
- <label class="font_normal_body">用气性质</label>
182
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
183
- :options='$parent.$parent.gasproperties' placeholder='请选择'
184
- condition="f_gasproperties = '{}'"
185
- close-on-select></v-select>
186
- </div>
187
-
188
-
189
- </div>
190
- </div>
191
- </criteria>
192
-
193
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
194
- <template partial='head'>
195
- <tr>
196
- <th>
197
- <nobr>用户编号</nobr>
198
- <!-- <data-order field="f_userinfo_code" name="用户编号">-->
199
- <!-- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>-->
200
- </th>
201
- <th>
202
- <nobr>客户名称</nobr>
203
- </th>
204
- <th>
205
- <nobr>档案编号</nobr>
206
- </th>
207
- <th>
208
- <nobr>余额</nobr>
209
- </th>
210
- <th>
211
- <nobr>税金</nobr>
212
- </th>
213
- <th>
214
- <!-- <nobr>客户地址</nobr>-->
215
- <!-- <data-order field="f_address" name="客户地址"-->
216
- <!-- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>-->
217
- <nobr>发票号码</nobr>
218
- </th>
219
- <th>
220
- <nobr>收票人</nobr>
221
- </th>
222
- <th>
223
- <!-- <nobr>操作日期</nobr>-->
224
- <data-order field="f_operate_date" name="操作日期"
225
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
226
- </th>
227
- <th>
228
- <nobr>收费类型</nobr>
229
- </th>
230
- <th>
231
- <nobr>客户名称</nobr>
232
- </th>
233
- <th>
234
- <!-- <nobr>客户地址</nobr>-->
235
- <data-order field="f_address" name="客户地址"
236
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
237
- </th>
238
- <th>
239
- <nobr>客户电话</nobr>
240
- </th>
241
- <th>
242
- <nobr>余额</nobr>
243
- </th>
244
- <th>
245
- <nobr>气表类型</nobr>
246
- </th>
247
- <th>
248
- <nobr>付款方式</nobr>
249
- </th>
250
- <th>
251
- <nobr>客户类型</nobr>
252
- </th>
253
- <th>
254
- <nobr>用气性质</nobr>
255
- </th>
256
- <th>
257
- <nobr>组织编号</nobr>
258
- </th>
259
- <th>
260
- <nobr>公司名称</nobr>
261
- </th>
262
- <th>
263
- <nobr>部门编号</nobr>
264
- </th>
265
- <th>
266
- <nobr>部门名称</nobr>
267
- </th>
268
- <th>
269
- <nobr>人员编号</nobr>
270
- </th>
271
- <th>
272
- <nobr>收费员</nobr>
273
- </th>
274
- <th>
275
- <nobr>预收款</nobr>
276
- </th>
277
- <th>
278
- <nobr>应收气量</nobr>
279
- </th>
280
- <th>
281
- <nobr>实收款</nobr>
282
- </th>
283
-
284
- </tr>
285
- </template>
286
- <template partial='body' >
287
- <td style="text-align: center;">
288
- <nobr>{{ row.f_user_id }}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>
292
- <nobr>{{ row.f_user_name }}</nobr>
293
- </nobr>
294
- </td>
295
- <td style="text-align: center;">
296
- <nobr>
297
- <nobr>{{ row.f_olduserinfo_code }}</nobr>
298
- </nobr>
299
- </td>
300
- <td style="text-align: center;">
301
- <nobr>{{ row.f_total_money }}</nobr>
302
- </td>
303
- <td style="text-align: center;">
304
- <nobr>{{ row.f_tax_money }}</nobr>
305
- </td>
306
- <td style="text-align: center;">
307
- <nobr>{{ row.f_bill_number }}</nobr>
308
- </td>
309
- <td style="text-align: center;">
310
- <nobr>{{ row.ef }}</nobr>
311
- </td>
312
- <td style="text-align: center;">
313
- <nobr>{{ row.f_operate_date }}</nobr>
314
- </td>
315
- <td style="text-align: center;">
316
- <nobr>{{ row.f_type }}</nobr>
317
- </td>
318
- <td style="text-align: center;">
319
- <nobr>{{ row.f_buy_name }}</nobr>
320
- </td>
321
- <td style="text-align: center;">
322
- <nobr>{{ row.f_buy_address }}</nobr>
323
- </td>
324
- <td style="text-align: center;">
325
- <nobr>{{ row.f_buy_phone }}</nobr>
326
- </td>
327
- <td style="text-align: center;">
328
- <nobr>{{ row.f_balance }}</nobr>
329
- </td>
330
- <td style="text-align: center;">
331
- <nobr>{{ row.f_meter_type }}</nobr>
332
- </td>
333
- <td style="text-align: center;">
334
- <nobr>{{ row.f_payment }}</nobr>
335
- </td>
336
- <td style="text-align: center;">
337
- <nobr>{{ row.f_user_type }}</nobr>
338
- </td>
339
- <td style="text-align: center;">
340
- <nobr>{{ row.f_gasproperties }}</nobr>
341
- </td>
342
- <td style="text-align: center;">
343
- <nobr>{{ row.f_orgid }}</nobr>
344
- </td>
345
- <td style="text-align: center;">
346
- <nobr>{{ row.f_orgname }}</nobr>
347
- </td>
348
- <td style="text-align: center;">
349
- <nobr>{{ row.f_depid }}</nobr>
350
- </td>
351
- <td style="text-align: center;">
352
- <nobr>{{ row.f_depname }}</nobr>
353
- </td>
354
- <td style="text-align: center;">
355
- <nobr>{{ row.f_operatorid }}</nobr>
356
- </td>
357
- <td style="text-align: center;">
358
- <nobr>{{ row.sf }}</nobr>
359
- </td>
360
- <td style="text-align: center;">
361
- <nobr>{{ row.f_preamount }}</nobr>
362
- </td>
363
- <td style="text-align: center;">
364
- <nobr>{{ row.f_pregas }}</nobr>
365
- </td>
366
- <td style="text-align: center;">
367
- <nobr>{{ row.f_collection }}</nobr>
368
- </td>
369
-
370
-
371
- <!-- <td style="text-align: center;">-->
372
- <!-- <nobr>-->
373
- <!-- <button class="btn btn-link" @click.stop="$parent.$parent.$parent.view(row)">查看</button>-->
374
- <!-- </nobr>-->
375
- <!-- </td>-->
376
- </template>
377
- <template partial='foot'></template>
378
- </data-grid>
379
- </criteria-paged>
380
- <table class="table-hover">
381
- <tr style="position: relative" class="table-bordered">
382
- <td
383
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
384
- 汇总信息
385
- </td>
386
- <td
387
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
388
- 预收款合计:&emsp;{{ sumsmodel.f_preamount }}
389
- </td>
390
- <td
391
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
392
- 应收气量合计:&emsp;{{ sumsmodel.f_pregas }}
393
- </td>
394
- <td
395
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
396
- 实收款合计:&emsp;{{ sumsmodel.f_collection }}
397
- </td>
398
-
399
- </tr>
400
- </table>
401
- </div>
402
- <!--<div v-if="show">-->
403
- <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
404
- <!--</div>-->
405
- </div>
406
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle
407
- backdrop="false">
408
- <article slot="modal-body">
409
- <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false"
410
- fusetype="%收费" :isremark="false" style="width:auto"></upload>
411
- </article>
412
- <footer slot="modal-footer" class="modal-footer">
413
- </footer>
414
- </modal>
415
- </div>
416
- </template>
417
-
418
- <script>
419
- import {HttpResetClass, PagedList} from 'vue-client'
420
- import exportConfig from '../config/exportConfig'
421
-
422
- let readySomething = async function (self) {
423
- //加载抄表册
424
- self.initmeterbook();
425
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
426
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
427
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
428
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
429
- // self.$refs.paged.$refs.cri.search()
430
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
431
- await self.$MagLoadParams.loadParam()
432
- self.initParams()
433
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
434
- }
435
- export default {
436
- props: ['data'],
437
- title: '收据查询',
438
- data() {
439
- return {
440
- // le_f_preamount:'',//预收款小于等于
441
- // ge_f_preamount:'',//预收款大于等于
442
- startDate1: '',
443
- endDate1: '',
444
- resshow: ['company', 'department', 'operator', 'slicearea'],
445
- other: [],
446
- footer: [],
447
- config: {
448
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_pregas', 'f_collection', 'f_stairamount1', 'f_stair2amount', 'f_stair3amount']
449
- },
450
- //排序
451
- orderitem: 'f_operate_date desc',
452
- orderFields: {
453
- f_operate_date: 'no'
454
- },
455
- //f_price_name:[],
456
- gasproperties: [],
457
- showinfo: false,
458
- data: {},
459
- show: false,
460
- rowdata: {},
461
- initres: {
462
- org: [this.$login.f.orgid],
463
- dep: [],
464
- user: []
465
- },
466
- model: new PagedList('rs/sql/receiptQuery', 20, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_operate_date desc'`}, {
467
- // f_pregas: 0,
468
- f_preamount: 0,
469
- f_pregas: 0,
470
- f_collection: 0,
471
- }),
472
- criteriaShow: false,
473
- orgCondtionStr: '',
474
- // 下拉框
475
- meterbrands: [],
476
- pricenames: [],
477
- prices: [],
478
- area: [],
479
- //合计数据
480
- defaultfield: [],
481
- //小区
482
- residentialArea:
483
- [],
484
- sumsmodel: {},
485
- f_filialeid: this.$login.f.f_orgid,
486
- wxstate:
487
- [
488
- {label: '全部', value: ''},
489
- {label: '已退款', value: `= '3'`},
490
- {label: '未退款', value: `!= '3'`}
491
- ],
492
- privilege_money:
493
- [
494
- {label: '全部', value: ''},
495
- {label: '已优惠', value: '> 0'},
496
- {label: '未优惠', value: '= 0'}
497
- ],
498
- showupload:
499
- false,
500
- selected:
501
- {}
502
- ,
503
- meterbooks: [{label: '全部', value: ''}], //抄表册
504
- inputtores:
505
- [{label: '全部', value: ''}],
506
- allorgid:
507
- [],
508
- tempfalg:
509
- false,
510
- lastorgstr:
511
- '',
512
- }
513
- },
514
- ready() {
515
- this.getaddress()
516
- //加载抄表册
517
- this.$MagGetSaleParam.initinputtor();
518
- this.getinputtores();
519
- // this.initres.dep.push(this.$login.f.depids)
520
- readySomething(this).then(() => {
521
- this.$emit('ready')
522
- }).catch((error) => {
523
- this.$emit('error', error)
524
- })
525
-
526
- },
527
- methods: {
528
- async initmeterbook(orgstr) {
529
- if (orgstr == null) {
530
- orgstr = this.f_filialeid;
531
- }
532
- //获取新的抄表册,先去清理所有的抄表册
533
- this.$GetSaleParam.meterbooks = [];
534
- //开始加载新的抄表册
535
- await this.$LoadParams.loadMeterBook(orgstr)
536
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
537
- },
538
- async getinputtores() {
539
- // 获取抄表员
540
- let rs = []
541
- if (this.$login.f.f_gasman.length > 0) {
542
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
543
- let temp = {
544
- label: this.$login.f.f_gasman[i].name,
545
- value: this.$login.f.f_gasman[i].name
546
- }
547
- rs.push(temp)
548
- }
549
- }
550
- this.inputtores = [{label: '全部', value: ''}, ...rs]
551
- },
552
- //显示附件
553
- view(row) {
554
- this.showupload = true
555
- this.selected = row
556
- },
557
- getotherfooter() {
558
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
559
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
560
- this.other = [];
561
- this.footer = [];
562
- let exportdata = this.getCondition;
563
- let otherInData = [];
564
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
565
- let footerData = [], exportfield = this.getfield;
566
- footerData.push("合计");
567
- let self = this;
568
- for (var field in self.sumsmodel) {
569
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
570
- }
571
- this.footer.push(footerData);
572
- this.other.push(otherInData);
573
- },
574
- async getaddress() {
575
- let HttpReset = new HttpResetClass()
576
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
577
- data: {
578
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
579
- }
580
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
581
- console.log('小区', data)
582
- let house = [{label: '全部', value: ''}]
583
- for (let row of data.data) {
584
- house.push({label: row.f_residential_area, value: row.f_residential_area})
585
- }
586
- this.residentialArea = house
587
- },
588
- //把数据库查询数据转换为下拉数据
589
- calculate(rows) {
590
- let data = []
591
- rows.forEach((row, n) => {
592
- data[n] = {label: row.f_residential_area, value: row.id}
593
- })
594
- return data
595
- },
596
-
597
- search() {
598
- this.$refs.paged.$refs.cri.search()
599
- },
600
- cancel() {
601
- this.show = false
602
- },
603
- showmsg(obj) {
604
- this.rowdata = obj
605
- this.show = true
606
- },
607
- userTypeChange() {
608
- this.gasproperties = []
609
- if (this.$refs.paged.$refs.cri.model !== null) {
610
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
611
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
612
- } else {
613
- this.gasproperties = [{label: '全部', value: ''}]
614
- }
615
- },
616
- initParams() {
617
- // 初始化气表品牌
618
- let brandArr = []
619
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
620
- let temp = {}
621
- temp.label = item.label
622
- temp.value = item.value.f_meter_brand
623
- brandArr.push(temp)
624
- })
625
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
626
- //初始化气表价格
627
- this.prices = this.$MagGetSaleParam.getPrices();
628
- },
629
- selfSearch(args) {
630
- if (this.data) {
631
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
632
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
633
- }
634
- //小区查询条件
635
- let f_orgstr = this.orgCondtionStr
636
- args.condition = `${args.condition} ` + f_orgstr
637
- this.model.search(args.condition, args.model)
638
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
639
-
640
- },
641
- clear() {
642
- //清空部门和人员
643
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
644
- //部门和人员变为全选
645
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
646
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
647
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
648
- this.$refs.paged.$refs.cri.model[key] = []
649
- })
650
-
651
- },
652
- dealmsg(val, startDate, endDate) {
653
- val.model = this.model.model
654
- startDate = this.startDate1
655
- endDate = this.endDate1
656
- this.$dispatch('deal-msg', val, startDate, endDate)
657
- },
658
- show() {
659
- this.criteriaShow = true
660
- },
661
- hidden() {
662
- this.criteriaShow = !this.criteriaShow
663
- },
664
- async getRes(condition, obj) {
665
- this.orgCondtionStr = condition
666
- this.orgname = obj.orgnames[0]
667
- this.depname = obj.depnames[0]
668
- //更新抄表册
669
- this.meterbooks = [{label: '全部', value: ''}];
670
- if (this.lastorgstr != condition) {
671
- this.tempfalg = true;
672
- this.lastorgstr = condition;
673
- }
674
- if (this.tempfalg && condition != null && condition != '' && condition.indexOf("(") > -1) {
675
- this.tempfalg = false;
676
- let a = condition.substring(condition.indexOf("(") + 2)
677
- await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
678
- }
679
-
680
- },
681
- async updateParams() {
682
- await this.$MagLoadParams.loadParam(this.f_filialeid)
683
- this.inputtores = [];
684
- this.inputtores.push({label: "全部", value: ""})
685
- if (this.allorgid != null) {
686
- this.allorgid.forEach((res) => {
687
- this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
688
- })
689
- }
690
- this.initParams()
691
- },
692
- sort(field, rule) {
693
- // 将所有排序方式设为不排序,实现相互排斥
694
- for (let key in this.orderFields) {
695
- if (key === field) {
696
- this.orderFields[key] = rule
697
- } else {
698
- this.orderFields[key] = 'no'
699
- }
700
- }
701
- // 如果新规则不排序,还原为默认排序
702
- if (rule === 'no') {
703
- this.model.paramSource.orderitem = `'${this.orderitem}'`
704
- } else {
705
- this.model.paramSource.orderitem = `'${field} ${rule}'`
706
- }
707
-
708
- this.search()
709
- }
710
-
711
- },
712
- events: {
713
- 'getidcard'(IdCard) {
714
- // console.log(param)
715
- this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
716
- }
717
- },
718
- watch: {
719
- 'model.rows'(val) {
720
- if (val.length === 0) {
721
- this.sumsmodel = {}
722
- }
723
- },
724
- 'orgCondtionStr'(val) {
725
- let res = val.match(/'(.*?)'/)
726
- console.log('正则提取:', res && res[1])
727
- if (res) {
728
- this.f_filialeid = res[1]
729
- if (res.input != null) {
730
- let resorgid = res.input.substring(res.input.indexOf("'"));
731
- if (resorgid != null && resorgid != '') {
732
- resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
733
- // resorgid = resorgid.replaceAll("'","");
734
- resorgid = resorgid.replace(/'/g, "");
735
- this.allorgid = resorgid.split(",")
736
- }
737
- }
738
- this.updateParams()
739
- }
740
- },
741
- sumsmodel: {
742
- handler: function (val) {
743
- this.getotherfooter();
744
- },
745
- deep: true
746
- }
747
- },
748
- computed: {
749
-
750
- chooserow() {
751
- let aaa = true
752
- if (this.$login.r && this.$login.r.includes('打印项选择')) {
753
- aaa = false
754
- }
755
- return aaa
756
- },
757
- getPricenames() {
758
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
759
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
760
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
761
- console.log("打印一下:", f_user_type, f_gasproperties, pricetype, this.f_filialeid, this.prices)
762
- if (this.$refs.paged.$refs.cri.model !== null) {
763
- let rs = []
764
- let priceArr = []
765
- if (pricetype.length > 0) {
766
- let params = {
767
- f_price_type: pricetype[0],
768
- filter: this.f_filialeid,
769
- prices: this.prices
770
- }
771
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
772
- let temp = {}
773
- temp.label = item.label
774
- temp.value = item.value.f_price_name
775
- priceArr.push(temp)
776
- })
777
- rs = [{label: '全部', value: ''}, ...priceArr]
778
- }
779
- if (rs.length === 0) {
780
- console.log('rs读出来是空')
781
- this.$refs.paged.$refs.cri.model.f_price_name = ''
782
- }
783
- return rs
784
- }
785
- },
786
- getCondition() {
787
- return {
788
- startDate: this.$refs.paged.$refs.cri.model.startDate,
789
- endDate: this.$refs.paged.$refs.cri.model.endDate,
790
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
791
- orderitem: this.orderitem ? `${this.orderitem}` : " f_operate_date desc"
792
- }
793
- },
794
- getfield() {
795
- return exportConfig.chargeConfig
796
- },
797
- defaultexport() {
798
- return exportConfig.chargeexportConfig
799
- },
800
- pricetypes() {
801
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
802
- },
803
-
804
- invoiceType() {
805
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
806
- },
807
- usertypes() {
808
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
809
- },
810
- metertypes() {
811
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
812
- },
813
-
814
- tablestate() {
815
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
816
- },
817
- chargetype() {
818
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
819
- },
820
- payment() {
821
- return [...this.$appdata.getParam('付款方式查询')]
822
- },
823
- banktype() {
824
- return [...this.$appdata.getParam('支付渠道查询')]
825
- },
826
- charge_state() {
827
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
828
- },
829
- bank() {
830
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
831
- }
832
- }
833
- }
834
- </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
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_operate_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ condition="f_operate_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_user_id = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
37
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
38
+ </div>
39
+
40
+ <div class="span" style="float:right;">
41
+ <!--<read-idcard></read-idcard>-->
42
+ <button class="button_search button_spacing" @click="search()">查询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+
45
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
46
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
47
+ :defaultselect="$parent.$parent.defaultexport"
48
+ sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
49
+ :choose-col="true">
50
+ </export-excel>
51
+
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
53
+ :field="$parent.$parent.getfield"
54
+ :defaultfield="$parent.$parent.defaultfield" print-name="收费查询"
55
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
+ <div style="float: right" class="button_spacing"
57
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
58
+ @click="$parent.$parent.hidden()"></div>
59
+
60
+ </div>
61
+ </div>
62
+ <div class="row" v-show="$parent.$parent.criteriaShow">
63
+ <res-select-group :show-component="$parent.$parent.resshow" :initres="$parent.$parent.initres"
64
+ @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
65
+ <div class="col-sm-2 form-group">
66
+ <label class="font_normal_body">发票号码</label>
67
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number"
68
+ condition="f_bill_number = '{}'" placeholder="发票号码">
69
+ </div>
70
+ <!-- <div class="col-sm-2 form-group">-->
71
+ <!-- <label class="font_normal_body">收&ensp;票&ensp;人</label>-->
72
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.ef"-->
73
+ <!-- condition="ef = '{}'" placeholder="收票人">-->
74
+ <!-- </div>-->
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">客户名称</label>
77
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_buy_name"
78
+ condition="f_buy_name like '%{}%'" placeholder="客户名称">
79
+ </div>
80
+ <div class="col-sm-2 form-group">
81
+ <label class="font_normal_body">客户地址</label>
82
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_buy_address"
83
+ condition="f_buy_address like '%{}%'" placeholder="客户地址">
84
+ </div>
85
+ <div class="col-sm-2 form-group">
86
+ <label class="font_normal_body">客户电话</label>
87
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_buy_phone"
88
+ condition="f_buy_phone like '%{}%'" placeholder="客户电话">
89
+ </div>
90
+ <div class="col-sm-2 form-group">
91
+ <label class="font_normal_body">收费类型</label>
92
+ <v-select :value.sync="model.f_type" multiple
93
+ :options='$parent.$parent.chargetype' placeholder='请选择'
94
+ close-on-select clear-button
95
+ condition="f_type in {}"
96
+ v-model="model.f_type"></v-select>
97
+ </div>
98
+ <!-- <div class="col-sm-2 form-group">-->
99
+ <!-- <label class="font_normal_body">组织编号</label>-->
100
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_orgid"-->
101
+ <!-- condition="f_orgid = '{}'" placeholder="组织编号">-->
102
+ <!-- </div>-->
103
+ <!-- <div class="col-sm-2 form-group">-->
104
+ <!-- <label class="font_normal_body">公司名称</label>-->
105
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_orgname"-->
106
+ <!-- condition="f_orgname like '%{}%'" placeholder="组织编号">-->
107
+ <!-- </div>-->
108
+ <!-- <div class="col-sm-2 form-group">-->
109
+ <!-- <label class="font_normal_body">部门编号</label>-->
110
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_depid"-->
111
+ <!-- condition="f_depid = '{}'" placeholder="部门编号">-->
112
+ <!-- </div>-->
113
+ <!-- <div class="col-sm-2 form-group">-->
114
+ <!-- <label class="font_normal_body">部门名称</label>-->
115
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_depname"-->
116
+ <!-- condition="f_depname like '%{}%'" placeholder="部门名称">-->
117
+ <!-- </div>-->
118
+ <!-- <div class="col-sm-2 form-group">-->
119
+ <!-- <label class="font_normal_body">人员编号</label>-->
120
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_operatorid"-->
121
+ <!-- condition="f_operatorid = '{}'" placeholder="人员编号">-->
122
+ <!-- </div>-->
123
+ <!-- <div class="col-sm-2 form-group">-->
124
+ <!-- <label class="font_normal_body">收&ensp;费&ensp;员</label>-->
125
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.sf"-->
126
+ <!-- condition="sf = '{}'" placeholder="收费员">-->
127
+ <!-- </div>-->
128
+ <div class="col-sm-2 form-group">
129
+ <label class="font_normal_body">预&ensp;收&ensp;款</label>
130
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
131
+ v-model="model.ge_f_preamount" condition="f_preamount >= '{}'" placeholder='大于等于'>
132
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
133
+ v-model="model.le_f_preamount" condition="f_preamount <= '{}'" placeholder='小于等于'>
134
+ </div>
135
+ <div class="col-sm-2 form-group">
136
+ <label class="font_normal_body">应收气量</label>
137
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
138
+ v-model="model.ge_f_pregas" condition="f_pregas >= '{}'" placeholder='大于等于'>
139
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
140
+ v-model="model.le_f_pregas" condition="f_pregas <= '{}'" placeholder='小于等于'>
141
+ </div>
142
+ <div class="col-sm-2 form-group">
143
+ <label class="font_normal_body">实&ensp;收&ensp;款</label>
144
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
145
+ v-model="model.ge_f_collection" condition="f_collection >= '{}'" placeholder='大于等于'>
146
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
147
+ v-model="model.le_f_collection" condition="f_collection <= '{}'" placeholder='小于等于'>
148
+ </div>
149
+ <div class="col-sm-2 form-group">
150
+ <label class="font_normal_body">收费类型</label>
151
+ <v-select :value.sync="model.f_type" multiple
152
+ :options='$parent.$parent.chargetype' placeholder='请选择'
153
+ close-on-select clear-button
154
+ condition="f_type in {}"
155
+ v-model="model.f_type"></v-select>
156
+ </div>
157
+ <div class="col-sm-2 form-group">
158
+ <label class="font_normal_body">气表类型</label>
159
+ <v-select :value.sync="model.f_meter_type" multiple
160
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
161
+ condition="f_meter_type in {}"
162
+ close-on-select></v-select>
163
+ </div>
164
+ <div class="col-sm-2 form-group">
165
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
166
+ <v-select :value.sync="model.f_payment" multiple
167
+ v-model="model.f_payment"
168
+ :options='$parent.$parent.payment' placeholder='请选择'
169
+ condition="f_payment in {}"
170
+ close-on-select></v-select>
171
+ </div>
172
+ <div class="col-sm-2 form-group">
173
+ <label class="font_normal_body">客户类型</label>
174
+ <v-select :value.sync="model.f_user_type"
175
+ @change="$parent.$parent.userTypeChange()"
176
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
177
+ condition="f_user_type = '{}'"
178
+ close-on-select></v-select>
179
+ </div>
180
+ <div class="col-sm-2 form-group">
181
+ <label class="font_normal_body">用气性质</label>
182
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
183
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
184
+ condition="f_gasproperties = '{}'"
185
+ close-on-select></v-select>
186
+ </div>
187
+
188
+
189
+ </div>
190
+ </div>
191
+ </criteria>
192
+
193
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
194
+ <template partial='head'>
195
+ <tr>
196
+ <th>
197
+ <nobr>用户编号</nobr>
198
+ <!-- <data-order field="f_userinfo_code" name="用户编号">-->
199
+ <!-- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>-->
200
+ </th>
201
+ <th>
202
+ <nobr>客户名称</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>档案编号</nobr>
206
+ </th>
207
+ <th>
208
+ <nobr>余额</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>税金</nobr>
212
+ </th>
213
+ <th>
214
+ <!-- <nobr>客户地址</nobr>-->
215
+ <!-- <data-order field="f_address" name="客户地址"-->
216
+ <!-- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>-->
217
+ <nobr>发票号码</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>收票人</nobr>
221
+ </th>
222
+ <th>
223
+ <!-- <nobr>操作日期</nobr>-->
224
+ <data-order field="f_operate_date" name="操作日期"
225
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
226
+ </th>
227
+ <th>
228
+ <nobr>收费类型</nobr>
229
+ </th>
230
+ <th>
231
+ <nobr>客户名称</nobr>
232
+ </th>
233
+ <th>
234
+ <!-- <nobr>客户地址</nobr>-->
235
+ <data-order field="f_address" name="客户地址"
236
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
237
+ </th>
238
+ <th>
239
+ <nobr>客户电话</nobr>
240
+ </th>
241
+ <th>
242
+ <nobr>余额</nobr>
243
+ </th>
244
+ <th>
245
+ <nobr>气表类型</nobr>
246
+ </th>
247
+ <th>
248
+ <nobr>付款方式</nobr>
249
+ </th>
250
+ <th>
251
+ <nobr>客户类型</nobr>
252
+ </th>
253
+ <th>
254
+ <nobr>用气性质</nobr>
255
+ </th>
256
+ <th>
257
+ <nobr>组织编号</nobr>
258
+ </th>
259
+ <th>
260
+ <nobr>公司名称</nobr>
261
+ </th>
262
+ <th>
263
+ <nobr>部门编号</nobr>
264
+ </th>
265
+ <th>
266
+ <nobr>部门名称</nobr>
267
+ </th>
268
+ <th>
269
+ <nobr>人员编号</nobr>
270
+ </th>
271
+ <th>
272
+ <nobr>收费员</nobr>
273
+ </th>
274
+ <th>
275
+ <nobr>预收款</nobr>
276
+ </th>
277
+ <th>
278
+ <nobr>应收气量</nobr>
279
+ </th>
280
+ <th>
281
+ <nobr>实收款</nobr>
282
+ </th>
283
+
284
+ </tr>
285
+ </template>
286
+ <template partial='body' >
287
+ <td style="text-align: center;">
288
+ <nobr>{{ row.f_user_id }}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>
292
+ <nobr>{{ row.f_user_name }}</nobr>
293
+ </nobr>
294
+ </td>
295
+ <td style="text-align: center;">
296
+ <nobr>
297
+ <nobr>{{ row.f_olduserinfo_code }}</nobr>
298
+ </nobr>
299
+ </td>
300
+ <td style="text-align: center;">
301
+ <nobr>{{ row.f_total_money }}</nobr>
302
+ </td>
303
+ <td style="text-align: center;">
304
+ <nobr>{{ row.f_tax_money }}</nobr>
305
+ </td>
306
+ <td style="text-align: center;">
307
+ <nobr>{{ row.f_bill_number }}</nobr>
308
+ </td>
309
+ <td style="text-align: center;">
310
+ <nobr>{{ row.ef }}</nobr>
311
+ </td>
312
+ <td style="text-align: center;">
313
+ <nobr>{{ row.f_operate_date }}</nobr>
314
+ </td>
315
+ <td style="text-align: center;">
316
+ <nobr>{{ row.f_type }}</nobr>
317
+ </td>
318
+ <td style="text-align: center;">
319
+ <nobr>{{ row.f_buy_name }}</nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr>{{ row.f_buy_address }}</nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr>{{ row.f_buy_phone }}</nobr>
326
+ </td>
327
+ <td style="text-align: center;">
328
+ <nobr>{{ row.f_balance }}</nobr>
329
+ </td>
330
+ <td style="text-align: center;">
331
+ <nobr>{{ row.f_meter_type }}</nobr>
332
+ </td>
333
+ <td style="text-align: center;">
334
+ <nobr>{{ row.f_payment }}</nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr>{{ row.f_user_type }}</nobr>
338
+ </td>
339
+ <td style="text-align: center;">
340
+ <nobr>{{ row.f_gasproperties }}</nobr>
341
+ </td>
342
+ <td style="text-align: center;">
343
+ <nobr>{{ row.f_orgid }}</nobr>
344
+ </td>
345
+ <td style="text-align: center;">
346
+ <nobr>{{ row.f_orgname }}</nobr>
347
+ </td>
348
+ <td style="text-align: center;">
349
+ <nobr>{{ row.f_depid }}</nobr>
350
+ </td>
351
+ <td style="text-align: center;">
352
+ <nobr>{{ row.f_depname }}</nobr>
353
+ </td>
354
+ <td style="text-align: center;">
355
+ <nobr>{{ row.f_operatorid }}</nobr>
356
+ </td>
357
+ <td style="text-align: center;">
358
+ <nobr>{{ row.sf }}</nobr>
359
+ </td>
360
+ <td style="text-align: center;">
361
+ <nobr>{{ row.f_preamount }}</nobr>
362
+ </td>
363
+ <td style="text-align: center;">
364
+ <nobr>{{ row.f_pregas }}</nobr>
365
+ </td>
366
+ <td style="text-align: center;">
367
+ <nobr>{{ row.f_collection }}</nobr>
368
+ </td>
369
+
370
+
371
+ <!-- <td style="text-align: center;">-->
372
+ <!-- <nobr>-->
373
+ <!-- <button class="btn btn-link" @click.stop="$parent.$parent.$parent.view(row)">查看</button>-->
374
+ <!-- </nobr>-->
375
+ <!-- </td>-->
376
+ </template>
377
+ <template partial='foot'></template>
378
+ </data-grid>
379
+ </criteria-paged>
380
+ <table class="table-hover">
381
+ <tr style="position: relative" class="table-bordered">
382
+ <td
383
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
384
+ 汇总信息
385
+ </td>
386
+ <td
387
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
388
+ 预收款合计:&emsp;{{ sumsmodel.f_preamount }}
389
+ </td>
390
+ <td
391
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
392
+ 应收气量合计:&emsp;{{ sumsmodel.f_pregas }}
393
+ </td>
394
+ <td
395
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
396
+ 实收款合计:&emsp;{{ sumsmodel.f_collection }}
397
+ </td>
398
+
399
+ </tr>
400
+ </table>
401
+ </div>
402
+ <!--<div v-if="show">-->
403
+ <!--<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>-->
404
+ <!--</div>-->
405
+ </div>
406
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle
407
+ backdrop="false">
408
+ <article slot="modal-body">
409
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false"
410
+ fusetype="%收费" :isremark="false" style="width:auto"></upload>
411
+ </article>
412
+ <footer slot="modal-footer" class="modal-footer">
413
+ </footer>
414
+ </modal>
415
+ </div>
416
+ </template>
417
+
418
+ <script>
419
+ import {HttpResetClass, PagedList} from 'vue-client'
420
+ import exportConfig from '../config/exportConfig'
421
+
422
+ let readySomething = async function (self) {
423
+ //加载抄表册
424
+ self.initmeterbook();
425
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
426
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
427
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
428
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
429
+ // self.$refs.paged.$refs.cri.search()
430
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
431
+ await self.$MagLoadParams.loadParam()
432
+ self.initParams()
433
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
434
+ }
435
+ export default {
436
+ props: ['data'],
437
+ title: '收据查询',
438
+ data() {
439
+ return {
440
+ // le_f_preamount:'',//预收款小于等于
441
+ // ge_f_preamount:'',//预收款大于等于
442
+ startDate1: '',
443
+ endDate1: '',
444
+ resshow: ['company', 'department', 'operator', 'slicearea'],
445
+ other: [],
446
+ footer: [],
447
+ config: {
448
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_pregas', 'f_collection', 'f_stairamount1', 'f_stair2amount', 'f_stair3amount']
449
+ },
450
+ //排序
451
+ orderitem: 'f_operate_date desc',
452
+ orderFields: {
453
+ f_operate_date: 'no'
454
+ },
455
+ //f_price_name:[],
456
+ gasproperties: [],
457
+ showinfo: false,
458
+ data: {},
459
+ show: false,
460
+ rowdata: {},
461
+ initres: {
462
+ org: [this.$login.f.orgid],
463
+ dep: [],
464
+ user: []
465
+ },
466
+ model: new PagedList('rs/sql/receiptQuery', 20, {orderitem: this.orderitem ? '"' + this.orderitem + ' "' : `'f_operate_date desc'`}, {
467
+ // f_pregas: 0,
468
+ f_preamount: 0,
469
+ f_pregas: 0,
470
+ f_collection: 0,
471
+ }),
472
+ criteriaShow: false,
473
+ orgCondtionStr: '',
474
+ // 下拉框
475
+ meterbrands: [],
476
+ pricenames: [],
477
+ prices: [],
478
+ area: [],
479
+ //合计数据
480
+ defaultfield: [],
481
+ //小区
482
+ residentialArea:
483
+ [],
484
+ sumsmodel: {},
485
+ f_filialeid: this.$login.f.f_orgid,
486
+ wxstate:
487
+ [
488
+ {label: '全部', value: ''},
489
+ {label: '已退款', value: `= '3'`},
490
+ {label: '未退款', value: `!= '3'`}
491
+ ],
492
+ privilege_money:
493
+ [
494
+ {label: '全部', value: ''},
495
+ {label: '已优惠', value: '> 0'},
496
+ {label: '未优惠', value: '= 0'}
497
+ ],
498
+ showupload:
499
+ false,
500
+ selected:
501
+ {}
502
+ ,
503
+ meterbooks: [{label: '全部', value: ''}], //抄表册
504
+ inputtores:
505
+ [{label: '全部', value: ''}],
506
+ allorgid:
507
+ [],
508
+ tempfalg:
509
+ false,
510
+ lastorgstr:
511
+ '',
512
+ }
513
+ },
514
+ ready() {
515
+ this.getaddress()
516
+ //加载抄表册
517
+ this.$MagGetSaleParam.initinputtor();
518
+ this.getinputtores();
519
+ // this.initres.dep.push(this.$login.f.depids)
520
+ readySomething(this).then(() => {
521
+ this.$emit('ready')
522
+ }).catch((error) => {
523
+ this.$emit('error', error)
524
+ })
525
+
526
+ },
527
+ methods: {
528
+ async initmeterbook(orgstr) {
529
+ if (orgstr == null) {
530
+ orgstr = this.f_filialeid;
531
+ }
532
+ //获取新的抄表册,先去清理所有的抄表册
533
+ this.$GetSaleParam.meterbooks = [];
534
+ //开始加载新的抄表册
535
+ await this.$LoadParams.loadMeterBook(orgstr)
536
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
537
+ },
538
+ async getinputtores() {
539
+ // 获取抄表员
540
+ let rs = []
541
+ if (this.$login.f.f_gasman.length > 0) {
542
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
543
+ let temp = {
544
+ label: this.$login.f.f_gasman[i].name,
545
+ value: this.$login.f.f_gasman[i].name
546
+ }
547
+ rs.push(temp)
548
+ }
549
+ }
550
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
551
+ },
552
+ //显示附件
553
+ view(row) {
554
+ this.showupload = true
555
+ this.selected = row
556
+ },
557
+ getotherfooter() {
558
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
559
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
560
+ this.other = [];
561
+ this.footer = [];
562
+ let exportdata = this.getCondition;
563
+ let otherInData = [];
564
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
565
+ let footerData = [], exportfield = this.getfield;
566
+ footerData.push("合计");
567
+ let self = this;
568
+ for (var field in self.sumsmodel) {
569
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
570
+ }
571
+ this.footer.push(footerData);
572
+ this.other.push(otherInData);
573
+ },
574
+ async getaddress() {
575
+ let HttpReset = new HttpResetClass()
576
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
577
+ data: {
578
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
579
+ }
580
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
581
+ console.log('小区', data)
582
+ let house = [{label: '全部', value: ''}]
583
+ for (let row of data.data) {
584
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
585
+ }
586
+ this.residentialArea = house
587
+ },
588
+ //把数据库查询数据转换为下拉数据
589
+ calculate(rows) {
590
+ let data = []
591
+ rows.forEach((row, n) => {
592
+ data[n] = {label: row.f_residential_area, value: row.id}
593
+ })
594
+ return data
595
+ },
596
+
597
+ search() {
598
+ this.$refs.paged.$refs.cri.search()
599
+ },
600
+ cancel() {
601
+ this.show = false
602
+ },
603
+ showmsg(obj) {
604
+ this.rowdata = obj
605
+ this.show = true
606
+ },
607
+ userTypeChange() {
608
+ this.gasproperties = []
609
+ if (this.$refs.paged.$refs.cri.model !== null) {
610
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
611
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
612
+ } else {
613
+ this.gasproperties = [{label: '全部', value: ''}]
614
+ }
615
+ },
616
+ initParams() {
617
+ // 初始化气表品牌
618
+ let brandArr = []
619
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
620
+ let temp = {}
621
+ temp.label = item.label
622
+ temp.value = item.value.f_meter_brand
623
+ brandArr.push(temp)
624
+ })
625
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
626
+ //初始化气表价格
627
+ this.prices = this.$MagGetSaleParam.getPrices();
628
+ },
629
+ selfSearch(args) {
630
+ if (this.data) {
631
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
632
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
633
+ }
634
+ //小区查询条件
635
+ let f_orgstr = this.orgCondtionStr
636
+ args.condition = `${args.condition} ` + f_orgstr
637
+ this.model.search(args.condition, args.model)
638
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
639
+
640
+ },
641
+ clear() {
642
+ //清空部门和人员
643
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
644
+ //部门和人员变为全选
645
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
646
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
647
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
648
+ this.$refs.paged.$refs.cri.model[key] = []
649
+ })
650
+
651
+ },
652
+ dealmsg(val, startDate, endDate) {
653
+ val.model = this.model.model
654
+ startDate = this.startDate1
655
+ endDate = this.endDate1
656
+ this.$dispatch('deal-msg', val, startDate, endDate)
657
+ },
658
+ show() {
659
+ this.criteriaShow = true
660
+ },
661
+ hidden() {
662
+ this.criteriaShow = !this.criteriaShow
663
+ },
664
+ async getRes(condition, obj) {
665
+ this.orgCondtionStr = condition
666
+ this.orgname = obj.orgnames[0]
667
+ this.depname = obj.depnames[0]
668
+ //更新抄表册
669
+ this.meterbooks = [{label: '全部', value: ''}];
670
+ if (this.lastorgstr != condition) {
671
+ this.tempfalg = true;
672
+ this.lastorgstr = condition;
673
+ }
674
+ if (this.tempfalg && condition != null && condition != '' && condition.indexOf("(") > -1) {
675
+ this.tempfalg = false;
676
+ let a = condition.substring(condition.indexOf("(") + 2)
677
+ await this.initmeterbook(a.substring(0, a.indexOf(")") - 1));
678
+ }
679
+
680
+ },
681
+ async updateParams() {
682
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
683
+ this.inputtores = [];
684
+ this.inputtores.push({label: "全部", value: ""})
685
+ if (this.allorgid != null) {
686
+ this.allorgid.forEach((res) => {
687
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
688
+ })
689
+ }
690
+ this.initParams()
691
+ },
692
+ sort(field, rule) {
693
+ // 将所有排序方式设为不排序,实现相互排斥
694
+ for (let key in this.orderFields) {
695
+ if (key === field) {
696
+ this.orderFields[key] = rule
697
+ } else {
698
+ this.orderFields[key] = 'no'
699
+ }
700
+ }
701
+ // 如果新规则不排序,还原为默认排序
702
+ if (rule === 'no') {
703
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
704
+ } else {
705
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
706
+ }
707
+
708
+ this.search()
709
+ }
710
+
711
+ },
712
+ events: {
713
+ 'getidcard'(IdCard) {
714
+ // console.log(param)
715
+ this.$refs.paged.$refs.cri.model.f_info_idnumber = IdCard.strID
716
+ }
717
+ },
718
+ watch: {
719
+ 'model.rows'(val) {
720
+ if (val.length === 0) {
721
+ this.sumsmodel = {}
722
+ }
723
+ },
724
+ 'orgCondtionStr'(val) {
725
+ let res = val.match(/'(.*?)'/)
726
+ console.log('正则提取:', res && res[1])
727
+ if (res) {
728
+ this.f_filialeid = res[1]
729
+ if (res.input != null) {
730
+ let resorgid = res.input.substring(res.input.indexOf("'"));
731
+ if (resorgid != null && resorgid != '') {
732
+ resorgid = resorgid.substring(0, resorgid.lastIndexOf("'") + 1);
733
+ // resorgid = resorgid.replaceAll("'","");
734
+ resorgid = resorgid.replace(/'/g, "");
735
+ this.allorgid = resorgid.split(",")
736
+ }
737
+ }
738
+ this.updateParams()
739
+ }
740
+ },
741
+ sumsmodel: {
742
+ handler: function (val) {
743
+ this.getotherfooter();
744
+ },
745
+ deep: true
746
+ }
747
+ },
748
+ computed: {
749
+
750
+ chooserow() {
751
+ let aaa = true
752
+ if (this.$login.r && this.$login.r.includes('打印项选择')) {
753
+ aaa = false
754
+ }
755
+ return aaa
756
+ },
757
+ getPricenames() {
758
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
759
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
760
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
761
+ console.log("打印一下:", f_user_type, f_gasproperties, pricetype, this.f_filialeid, this.prices)
762
+ if (this.$refs.paged.$refs.cri.model !== null) {
763
+ let rs = []
764
+ let priceArr = []
765
+ if (pricetype.length > 0) {
766
+ let params = {
767
+ f_price_type: pricetype[0],
768
+ filter: this.f_filialeid,
769
+ prices: this.prices
770
+ }
771
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
772
+ let temp = {}
773
+ temp.label = item.label
774
+ temp.value = item.value.f_price_name
775
+ priceArr.push(temp)
776
+ })
777
+ rs = [{label: '全部', value: ''}, ...priceArr]
778
+ }
779
+ if (rs.length === 0) {
780
+ console.log('rs读出来是空')
781
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
782
+ }
783
+ return rs
784
+ }
785
+ },
786
+ getCondition() {
787
+ return {
788
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
789
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
790
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
791
+ orderitem: this.orderitem ? `${this.orderitem}` : " f_operate_date desc"
792
+ }
793
+ },
794
+ getfield() {
795
+ return exportConfig.chargeConfig
796
+ },
797
+ defaultexport() {
798
+ return exportConfig.chargeexportConfig
799
+ },
800
+ pricetypes() {
801
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
802
+ },
803
+
804
+ invoiceType() {
805
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('发票类型查询')]
806
+ },
807
+ usertypes() {
808
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
809
+ },
810
+ metertypes() {
811
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
812
+ },
813
+
814
+ tablestate() {
815
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表状态')]
816
+ },
817
+ chargetype() {
818
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费类型')]
819
+ },
820
+ payment() {
821
+ return [...this.$appdata.getParam('付款方式查询')]
822
+ },
823
+ banktype() {
824
+ return [...this.$appdata.getParam('支付渠道查询')]
825
+ },
826
+ charge_state() {
827
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
828
+ },
829
+ bank() {
830
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
831
+ }
832
+ }
833
+ }
834
+ </script>