manage-client 4.1.85-tcls → 4.1.85

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 (27) hide show
  1. package/build/dev-server.js +99 -181
  2. package/package.json +1 -1
  3. package/src/filiale/jinbin/exportConfig.js +1110 -0
  4. package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
  5. package/src/filiale/jinbin/sale.js +7 -0
  6. package/src/filiale/tongchuan/ChangeMeterQuery.vue +702 -730
  7. package/src/filiale/tongchuan/ChargeQuery.vue +1487 -1514
  8. package/src/filiale/tongchuan/DisableQuery.vue +523 -550
  9. package/src/filiale/tongchuan/FillCardQuery.vue +573 -598
  10. package/src/filiale/tongchuan/FillGasQuery.vue +533 -560
  11. package/src/filiale/tongchuan/HandplanQuery.vue +1332 -1358
  12. package/src/filiale/tongchuan/RecordInfoQuery.vue +1493 -1493
  13. package/src/filiale/tongchuan/ReverseQuery.vue +450 -477
  14. package/src/filiale/tongchuan/config/exportConfig.js +918 -1102
  15. package/src/filiale/tongchuan/sale.js +0 -36
  16. package/src/filiale/tongchuan/sellingChargePrice.vue +714 -754
  17. package/src/main.js +1 -1
  18. package/src/filiale/tongchuan/CancellationQuery.vue +0 -455
  19. package/src/filiale/tongchuan/EnableQuery.vue +0 -489
  20. package/src/filiale/tongchuan/OtherChargeDetailQuery.vue +0 -74
  21. package/src/filiale/tongchuan/OtherChargeQuery.vue +0 -751
  22. package/src/filiale/tongchuan/PrivilegeQuery.vue +0 -420
  23. package/src/filiale/tongchuan/ResSelectUserGroup.vue +0 -384
  24. package/src/filiale/tongchuan/TransferQuery.vue +0 -528
  25. package/src/filiale/tongchuan/TransferRecordQuery.vue +0 -202
  26. package/src/filiale/tongchuan/overDueQuery.vue +0 -497
  27. package/src/filiale/tongchuan/priceadjustQuery.vue +0 -560
@@ -1,751 +0,0 @@
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 @sort="sort">
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 for="startDate" class="font_normal_body">开始日期</label>
12
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
- v-model="model.startDate"
14
- :value.sync="model.startDate"
15
- :format="'yyyy-MM-dd HH:mm:ss'"
16
- :show-reset-button="true"
17
- condition="f_operate_date >= '{}'">
18
- </datepicker>
19
- </div>
20
- <div class="col-sm-2 form-group">
21
- <label for="endDate" class="font_normal_body">结束日期</label>
22
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
- v-model="model.endDate"
24
- :value.sync="model.endDate"
25
- :format="'yyyy-MM-dd HH:mm:ss'"
26
- :show-reset-button="true"
27
- condition="f_operate_date <= '{}'">
28
- </datepicker>
29
- </div>
30
- <div class="col-sm-2 form-group">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body" title="旧客户编号">档案编号</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
38
- condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
39
- </div>
40
-
41
- <div class="span" style="float:right;">
42
- <button class="button_search button_spacing" @click="search()">查询</button>
43
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
49
- :choose-col="true"></export-excel>
50
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
51
- :defaultfield="$parent.$parent.defaultfield"
52
- titletable="其他收费记录"
53
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
54
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
55
- </div>
56
- </div>
57
-
58
- <div class="row" v-show="$parent.$parent.criteriaShow">
59
- <res-select-user-group
60
- :operator-initres="$parent.$parent.initres"
61
- :user-initres="$parent.$parent.userInitres"
62
- :show-component="['company','department','operator','slicearea','user_company']"
63
- @re-res="$parent.$parent.getRes"
64
- @re-us-res="$parent.$parent.getUserRes"
65
- v-ref:usersel>
66
- </res-select-user-group>
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_user_name"
70
- condition="f_user_name like '%{}%'" placeholder="客户名称">
71
- </div>
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">客户地址</label>
74
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
75
- condition="f_address like '%{}%'" placeholder='客户地址'>
76
- </div>
77
- <div class="col-sm-2 form-group">
78
- <label class="font_normal_body">收费类型</label>
79
- <v-select v-model="model.f_brand_spec"
80
- placeholder='请选择'
81
- condition="f_brand_spec in {}"
82
- :value.sync="model.f_brand_spec" multiple
83
- :options='$parent.$parent.chargetype'
84
- @change="$parent.$parent.setTypename"
85
- close-on-select clear-button></v-select>
86
- </div>
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">品名规格</label>
89
- <v-select v-model="model.f_typename"
90
- placeholder='请选择'
91
- condition="f_typename in {}"
92
- :value.sync="model.f_typename" multiple
93
- :options='$parent.$parent.typeNameList'
94
- @change="$parent.$parent.setTypenumber"
95
- close-on-select clear-button>
96
- </v-select>
97
- </div>
98
- <div class="col-sm-2 form-group">
99
- <label class="font_normal_body">型&emsp;&emsp;号</label>
100
- <v-select v-model="model.f_typenumber"
101
- placeholder='请选择'
102
- condition="f_typenumber = '{}'"
103
- :value.sync="model.f_typenumber"
104
- :options='$parent.$parent.typenumberList'
105
- close-on-select clear-button>
106
- </v-select>
107
- </div>
108
- <div class="col-sm-2 form-group">
109
- <label class="font_normal_body">表&emsp;&emsp;号</label>
110
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
111
- condition="f_meternumber = '{}'" placeholder='表号'>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">卡&emsp;&emsp;号</label>
115
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
116
- condition="f_card_id = '{}'" placeholder='卡号'>
117
- </div>
118
- <div class="col-sm-2 form-group">
119
- <label class="font_normal_body">用户类型</label>
120
- <v-select id="f_user_type"
121
- v-model="model.f_user_type"
122
- placeholder='请选择'
123
- condition="f_user_type ='{}'"
124
- :value.sync="model.f_user_type"
125
- @change="$parent.$parent.userTypeChange(model.f_user_type)"
126
- :options='$parent.$parent.userTypes'
127
- close-on-select clear-button></v-select>
128
- </div>
129
- <div class="col-sm-2 form-group">
130
- <label class="font_normal_body">用气性质</label>
131
- <v-select id="f_gasproperties"
132
- v-model="model.f_gasproperties"
133
- placeholder='请选择'
134
- condition="f_gasproperties ='{}'"
135
- :value.sync="model.f_gasproperties"
136
- :options='$parent.$parent.gasproperties'
137
- close-on-select clear-button></v-select>
138
- </div>
139
- <div class="col-sm-2 form-group">
140
- <label class="font_normal_body">收费状态</label>
141
- <v-select id="f_state"
142
- v-model="model.f_state"
143
- placeholder='请选择'
144
- condition="f_state in {}"
145
- multiple="true"
146
- :value.sync="model.f_state"
147
- :options='$parent.$parent.chargeState'
148
- close-on-select clear-button>
149
- </v-select>
150
- </div>
151
-
152
- <div class="col-sm-2 form-group">
153
- <label class="font_normal_body">付款方式</label>
154
- <v-select id="f_payment"
155
- v-model="model.f_payment"
156
- placeholder='请选择'
157
- condition="f_payment in {}"
158
- multiple="true"
159
- :value.sync="model.f_payment"
160
- :options='$parent.$parent.payments'
161
- close-on-select clear-button>
162
- </v-select>
163
- </div>
164
- <div class="col-sm-2 form-group">
165
- <label class="font_normal_body">服务人员</label>
166
- <v-select id="f_service_person"
167
- v-model="model.f_service_person"
168
- placeholder='请选择'
169
- condition="f_service_person ='{}'"
170
- :value.sync="model.f_service_person"
171
- :options='$parent.$parent.services'
172
- close-on-select clear-button>
173
- </v-select>
174
- </div>
175
- <div class="col-sm-2 form-group">
176
- <label class="font_normal_body">气表类型</label>
177
- <v-select :value.sync="model.f_meter_classify" multiple
178
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
179
- condition="f_meter_classify in {}"
180
- close-on-select></v-select>
181
- </div>
182
- <div class="col-sm-2 form-group">
183
- <label class="font_normal_body">气表品牌</label>
184
- <v-select :value.sync="model.f_meter_brand" multiple
185
- v-model="model.f_meter_brand"
186
- :options='$parent.$parent.meterbrands' placeholder='请选择'
187
- condition="f_meter_brand in {}"
188
- close-on-select></v-select>
189
- </div>
190
- <div class="col-sm-2 form-group">
191
- <label class="font_normal_body" title="收据起始编号">收据票号</label>
192
- <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_start"
193
- condition="f_bill_number >= '{}'" placeholder="收据起始编号">
194
- </div>
195
- <div class="col-sm-2 form-group">
196
- <label class="font_normal_body" title="收据终止编号">收据票号</label>
197
- <input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_end"
198
- condition="f_bill_number <= '{}'" placeholder="收据终止编号">
199
- </div>
200
- </div>
201
- </div>
202
- </criteria>
203
-
204
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
205
- <template partial='head'>
206
- <tr>
207
- <th>
208
- <!-- <nobr>客户编号</nobr>-->
209
- <data-order field="f_userinfo_code" name="客户编号"
210
- :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
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
- <data-order field="f_address" name="客户地址"
227
- :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
228
- </th>
229
- <th>
230
- <nobr>表号</nobr>
231
- </th>
232
- <th>
233
- <nobr>客户电话</nobr>
234
- </th>
235
- <th>
236
- <nobr>气表类型</nobr>
237
- </th>
238
- <th>
239
- <nobr>气表品牌</nobr>
240
- </th>
241
- <th>
242
- <nobr>卡号</nobr>
243
- </th>
244
- <th>
245
- <nobr>收据票号</nobr>
246
- </th>
247
-
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
- <th>
273
- <!-- <nobr>收费日期</nobr>-->
274
- <data-order field="f_operate_date" name="收费日期"
275
- :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
276
- </th>
277
- <th>
278
- <nobr>服务人员</nobr>
279
- </th>
280
- <th>
281
- <nobr>备注</nobr>
282
- </th>
283
- <th>
284
- <nobr>操作员人员</nobr>
285
- </th>
286
- <th>
287
- <nobr>操作员部门</nobr>
288
- </th>
289
- <th>
290
- <nobr>操作员公司</nobr>
291
- </th>
292
- <th>
293
- <nobr>用户公司</nobr>
294
- </th>
295
- <th><nobr>附件</nobr></th>
296
- <!--<th><nobr>查看详情</nobr></th>-->
297
- </tr>
298
- </template>
299
- <template partial='body'>
300
- <td style="text-align: center;">
301
- <nobr>
302
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
303
- </td>
304
- <td style="text-align: center;">
305
- <nobr>{{row.f_olduserinfo_code}}</nobr>
306
- </td>
307
- <td style="text-align: center;">
308
- <nobr>{{row.id}}</nobr>
309
- </td>
310
- <td style="text-align: center;">
311
- <nobr>{{row.f_user_name}}</nobr>
312
- </td>
313
- <td style="text-align: center;">
314
- <nobr>{{row.f_idnumber}}</nobr>
315
- </td>
316
- <td style="text-align: center;">
317
- <nobr>{{row.f_address}}</nobr>
318
- </td>
319
- <td style="text-align: center;">
320
- <nobr>{{row.f_meternumber}}</nobr>
321
- </td>
322
- <td style="text-align: center;">
323
- <nobr>{{row.f_user_phone}}</nobr>
324
- </td>
325
- <td style="text-align: center;">
326
- <nobr>{{row.f_meter_classify}}</nobr>
327
- </td>
328
- <td style="text-align: center;">
329
- <nobr>{{row.f_meter_brand}}</nobr>
330
- </td>
331
- <td style="text-align: center;">
332
- <nobr>{{row.f_card_id}}</nobr>
333
- </td>
334
-
335
- <td style="text-align: center;">
336
- <nobr>{{row.f_bill_number}}</nobr>
337
- </td>
338
- <td style="text-align: center;">
339
- <nobr>{{row.f_brand_spec}}</nobr>
340
- </td>
341
- <td style="text-align: center;">
342
- <nobr>{{row.f_typename}}</nobr>
343
- </td>
344
- <td style="text-align: center;">
345
- <nobr>{{row.f_typenumber}}</nobr>
346
- </td>
347
- <td style="text-align: center;">
348
- <nobr>{{row.f_unitprice}}</nobr>
349
- </td>
350
- <td style="text-align: center;">
351
- <nobr>{{row.f_number}}</nobr>
352
- </td>
353
- <td style="text-align: center;">
354
- <nobr>{{row.f_money}}</nobr>
355
- </td>
356
- <td style="text-align: center;">
357
- <nobr>{{row.f_payment}}</nobr>
358
- </td>
359
- <td style="text-align: center;">
360
- <nobr>{{row.f_state}}</nobr>
361
- </td>
362
- <td style="text-align: center;">
363
- <nobr>{{row.f_operate_date}}</nobr>
364
- </td>
365
- <td style="text-align: center;">
366
- <nobr>{{row.f_service_person}}</nobr>
367
- </td>
368
- <td style="text-align: center;">
369
- <nobr>{{row.f_comments}}</nobr>
370
- </td>
371
- <td style="text-align: center;">
372
- <nobr>{{row.f_operator}}</nobr>
373
- </td>
374
- <td style="text-align: center;">
375
- <nobr>{{row.f_depname}}</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_us_orgname}}</nobr>
382
- </td>
383
- <td style="text-align: center;"><nobr>
384
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
385
- </nobr></td>
386
- <!--<td style="text-align: center;">-->
387
- <!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
388
- <!--</td>-->
389
- </template>
390
- <template partial='foot'></template>
391
- </data-grid>
392
-
393
- </criteria-paged>
394
-
395
- <table class="table-hover">
396
- <tr style="position: relative" class="table-bordered">
397
- <td
398
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
399
- 汇总信息
400
- </td>
401
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
402
- 收款合计:&emsp;{{sumsmodel.f_money}}
403
- </td>
404
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
405
- 总户数合计:&emsp;{{sumsmodel.hushu}}
406
- </td>
407
- </tr>
408
- </table>
409
-
410
- </div>
411
- <div class="flex" v-if="show">
412
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
413
- </div>
414
- </div>
415
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
416
- <article slot="modal-body">
417
- <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
418
- </article>
419
- <footer slot="modal-footer" class="modal-footer">
420
- </footer>
421
- </modal>
422
- </div>
423
-
424
- <modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
425
- <article slot="modal-body" class="modal-body">
426
- <other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
427
- </article>
428
- <footer slot="modal-footer" class="modal-footer">
429
- </footer>
430
- </modal>
431
-
432
- </template>
433
-
434
- <script>
435
- import {PagedList,HttpResetClass} from 'vue-client'
436
- import defaultPrint from './config/DefaultPrint'
437
- import exportConfig from './config/exportConfig'
438
- import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
439
- import ResSelectUserGroup from './ResSelectUserGroup.vue'
440
-
441
- let readySomething = async function (self) {
442
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
443
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
444
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
445
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
446
- // await self.$refs.paged.$refs.cri.search()
447
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
448
- await self.$MagLoadParams.loadParam()
449
-
450
- self.initParams()
451
- self.initSecuritypersons()
452
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
453
- }
454
- export default {
455
- components: {
456
- OtherChargeDetailQuery,
457
- 'res-select-user-group': ResSelectUserGroup
458
- },
459
- props:['data'],
460
- title: '其他收费查询',
461
- data() {
462
- return {
463
- data: {},
464
- other:[],
465
- footer:[],
466
- model: new PagedList('api/af-revenue/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
467
- criteriaShow: false,
468
- orgCondtionStr: '',
469
- userOrgConditionStr: '',
470
- modelval: [],
471
- printshow: false,
472
- all: false,
473
- fields: {},
474
- config: {
475
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
476
- },
477
- //排序
478
- orderitem:'f_operate_date desc',
479
- orderFields: {
480
- f_operate_date: 'no'
481
- },
482
- //默认打印列
483
- defaultfield: [],
484
- thead: '',
485
- tfoot: '',
486
- initres: {
487
- org:[this.$login.f.orgid],
488
- dep:[],
489
- user:[],
490
- },
491
- userInitres: {
492
- org: [],
493
- dep: [],
494
- user: []
495
- },
496
- show:false,
497
- showdetail:false,
498
- otherchargeid:'',
499
- rowdata:{},
500
- meterbrands: [],
501
- services:[],
502
- //合计数据
503
- sumsmodel: {},
504
- showupload:false,
505
- selected:{},
506
- // 用气性质
507
- gasproperties: [],
508
- // 品名规格
509
- typeNameList: [],
510
- // 型号
511
- typenumberList: []
512
- }
513
- },
514
- ready() {
515
- readySomething(this).then(() => {
516
- this.$emit('ready')
517
- }).catch((error) => {
518
- this.$emit('error', error)
519
- })
520
- },
521
- methods: {
522
- view(row){
523
- this.showupload = true
524
- this.selected= row
525
- },
526
- initParams() {
527
- // 初始化气表品牌
528
- let brandArr = []
529
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
530
- let temp = {}
531
- temp.label = item.label
532
- temp.value = item.value.f_meter_brand
533
- brandArr.push(temp)
534
- })
535
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
536
- },
537
- // 初始化安检人
538
- initSecuritypersons () {
539
- let origin = this.$appdata.getSingleValue('服务人员来源')
540
- if (origin) {
541
- try {
542
- this.services = []
543
- let http = new HttpResetClass()
544
- http.load('post', '/rs/search', {
545
- source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
546
- userid: this.$login.f.id
547
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
548
- console.log('获取安检人员', res.data)
549
- for (let i = 0; i < res.data.length; i++) {
550
- this.services.push({label: res.data[i].name, value: res.data[i].name})
551
- }
552
- })
553
- } catch (e) {
554
- console.log('获取安检人员失败')
555
- }
556
- }else {
557
- this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
558
- }
559
- },
560
- getotherfooter(){
561
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
562
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
563
- this.other=[];
564
- this.footer=[];
565
- let exportdata = this.getCondition;
566
- let otherInData=[];
567
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
568
- let footerData=[],exportfield=this.getfield;
569
- footerData.push("合计");
570
- let self = this;
571
- for(var field in self.sumsmodel){
572
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
573
- }
574
- this.footer.push(footerData);
575
- this.other.push(otherInData);
576
- },
577
- search(){
578
- this.$refs.paged.$refs.cri.search()
579
- },
580
- async selfSearch(args) {
581
- if (this.data) {
582
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
583
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
584
- }
585
- const orgStr = this.orgCondtionStr + this.userOrgConditionStr
586
- args.condition = `${args.condition}` + orgStr
587
- await this.model.search(args.condition, args.model)
588
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
589
- this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
590
- if(this.sumsmodel.hushu===null){
591
- this.sumsmodel.hushu = 0
592
- }
593
- },
594
- clear() {
595
- // 清空组织、片区、用户公司
596
- if (this.$refs.paged.$refs.cri.$refs.usersel && this.$refs.paged.$refs.cri.$refs.usersel.resetAll) {
597
- this.$refs.paged.$refs.cri.$refs.usersel.resetAll()
598
- }
599
- this.orgCondtionStr = ''
600
- this.userOrgConditionStr = ''
601
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
602
- this.$refs.paged.$refs.cri.model[key] = []
603
- })
604
- },
605
- show() {
606
- this.criteriaShow = true
607
- },
608
- hidden() {
609
- this.criteriaShow = !this.criteriaShow
610
- },
611
- getRes(condition, obj) {
612
- this.orgCondtionStr = condition
613
- },
614
- getUserRes (condition) {
615
- this.userOrgConditionStr = condition
616
- },
617
- cancel() {
618
- this.show = false
619
- },
620
- dealmsg(val) {
621
- console.log('---------------dealmsg')
622
- this.rowdata=val
623
- this.show=true
624
- val.model = this.model.model
625
- this.$dispatch('deal-msg', val)
626
- },
627
- stamp() {
628
- this.all = false
629
- //默认选择要打印的列
630
- this.modelval = defaultPrint.config
631
- this.fields = this.getfield
632
- console.log('所有打印字段', this.fields)
633
- this.printshow = true
634
- this.put()
635
- },
636
- put() {
637
- // 对Modelval进行排序
638
- this.sortModelval()
639
- this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
640
- for (let key of this.modelval) {
641
- this.thead += '<th>' + this.fields[key] + '</th>'
642
- }
643
- this.thead += '</tr>'
644
- },
645
- print() {
646
- this.$refs.print.PrintAsFile()
647
- this.printshow = false
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
- showchargedetail(row){
665
- this.showdetail=true
666
- this.otherchargeid=row.id
667
- },
668
- userTypeChange (f_user_type) {
669
- this.gasproperties = []
670
- if (f_user_type) {
671
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
672
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
673
- } else {
674
- this.gasproperties = [{label: '全部', value: ''}]
675
- }
676
- },
677
- setTypename (val) {
678
- this.typenumberList = []
679
- this.typeNameList = this.$appdata.getParam(val)
680
- },
681
- setTypenumber (val) {
682
- this.typenumberList = this.$appdata.getParam(val)
683
- },
684
- sort (field, rule) {
685
- // 将所有排序方式设为不排序,实现相互排斥
686
- for (let key in this.orderFields) {
687
- if (key === field) {
688
- this.orderFields[key] = rule
689
- } else {
690
- this.orderFields[key] = 'no'
691
- }
692
- }
693
- // 如果新规则不排序,还原为默认排序
694
- if (rule === 'no') {
695
- this.model.paramSource.orderitem = `'${this.orderitem}'`
696
- } else {
697
- this.model.paramSource.orderitem = `'${field} ${rule}'`
698
- }
699
-
700
- this.search()
701
- }
702
- },
703
- watch: {
704
- 'all'(val) {
705
- if (val) {
706
- this.modelval = this.bodyData
707
- } else {
708
- this.modelval = defaultPrint.config
709
- this.put()
710
- }
711
- },
712
- 'modelval.length'() {
713
- this.put()
714
- },
715
- sumsmodel:{
716
- handler: function(val) {
717
- this.getotherfooter();
718
- },
719
- deep: true
720
- }
721
- },
722
- computed: {
723
- getCondition() {
724
- return {
725
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr + this.userOrgConditionStr,
726
- orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
727
- },
728
- service_person() {
729
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
730
- },
731
- getfield() {
732
- return exportConfig.otherchargeConfig
733
- },
734
- chargetype() {
735
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
736
- },
737
- userTypes() {
738
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
739
- },
740
- chargeState() {
741
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
742
- },
743
- metertypes() {
744
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
745
- },
746
- payments() {
747
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
748
- }
749
- }
750
- }
751
- </script>