manage-client 3.3.58 → 3.3.59

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 (43) hide show
  1. package/build/dev-server.js +21 -34
  2. package/package.json +1 -1
  3. package/src/components/webmeter/reportdata/ReportDataQuery.vue +0 -6
  4. package/src/filiale/WEINAN/CancellationQuery.vue +74 -0
  5. package/src/filiale/WEINAN/ChargeQuery.vue +58 -1
  6. package/src/filiale/WEINAN/DeviceQuery.vue +63 -0
  7. package/src/filiale/WEINAN/DisableQuery.vue +74 -0
  8. package/src/filiale/WEINAN/EnableQuery.vue +74 -0
  9. package/src/filiale/WEINAN/FillGasQuery.vue +74 -0
  10. package/src/filiale/WEINAN/InspectListUser.vue +35 -0
  11. package/src/filiale/WEINAN/MergeFileQuery.vue +77 -1
  12. package/src/filiale/WEINAN/MeterQuery.vue +58 -0
  13. package/src/filiale/WEINAN/NewAccountQuery.vue +58 -0
  14. package/src/filiale/WEINAN/OtherChargeQuery.vue +58 -0
  15. package/src/filiale/WEINAN/RecordInfoQuery.vue +58 -0
  16. package/src/filiale/WEINAN/UserGasAll.vue +63 -0
  17. package/src/filiale/WEINAN/UserGasList.vue +59 -0
  18. package/src/filiale/WEINAN/UserLostContactAnalysis.vue +63 -0
  19. package/src/filiale/WEINAN/UserQuery.vue +63 -0
  20. package/src/filiale/WEINAN/businessquery/FillCardQuery.vue +643 -0
  21. package/src/filiale/WEINAN/businessquery/HandplanQuery.vue +1428 -0
  22. package/src/filiale/WEINAN/businessquery/MoveMeterQuery.vue +477 -0
  23. package/src/filiale/WEINAN/businessquery/ReverseQuery.vue +512 -0
  24. package/src/filiale/WEINAN/businessquery/TransferQuery.vue +553 -0
  25. package/src/filiale/WEINAN/businessquery/UserInsured.vue +483 -0
  26. package/src/filiale/WEINAN/businessquery/priceadjustQuery.vue +535 -0
  27. package/src/filiale/WEINAN/config/exportConfig.js +41 -38
  28. package/src/filiale/WEINAN/filesquery/ChangeUserQuery.vue +468 -0
  29. package/src/filiale/WEINAN/filesquery/FmyGasDeviceQuery.vue +911 -0
  30. package/src/filiale/WEINAN/filesquery/GasDeviceQuery.vue +1021 -0
  31. package/src/filiale/WEINAN/filesquery/PriceChangeQuery.vue +468 -0
  32. package/src/filiale/WEINAN/filesquery/UserDeviceQuery.vue +505 -0
  33. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +63 -0
  34. package/src/filiale/WEINAN/sale.js +23 -2
  35. package/src/filiale/WEINAN/webmeter/LostContactAnalysisList.vue +692 -0
  36. package/src/filiale/WEINAN/webmeter/NewQueryInstruct.vue +564 -0
  37. package/src/filiale/WEINAN/webmeter/ReportList.vue +483 -0
  38. package/src/filiale/WEINAN/webmeter/TotalExceptionByMeter.vue +665 -0
  39. package/src/filiale/WEINAN/webmeter/UserInstructEchartsList.vue +242 -0
  40. package/src/filiale/WEINAN/webmeter/UserInstructList.vue +390 -0
  41. package/src/filiale/WEINAN/webmeterManage.js +13 -0
  42. package/src/filiale/lixianV3/BusinessManage.vue +3 -0
  43. package/src/filiale/shanxian/UserLostContactAnalysis.vue +35 -3
@@ -0,0 +1,643 @@
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="rs/logic/exportfile" sql-name="fillCardQuery" 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-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
+ <div class="col-sm-2 form-group">
61
+ <label class="font_normal_body">客户名称</label>
62
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
63
+ condition="f_user_name = '{}'" placeholder="客户名称">
64
+ </div>
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_address"
68
+ condition="f_address like '%{}%'" placeholder='客户地址'>
69
+ </div>
70
+ <div class="col-sm-2 form-group">
71
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
72
+ <v-select :value.sync="model.f_residential_area"
73
+ class="select_list select"
74
+ v-model="model.f_residential_area"
75
+ style="width: 60%"
76
+ multiple
77
+ condition="f_residential_area in {}"
78
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
79
+ close-on-select>
80
+
81
+ </v-select>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">补卡类型</label>
85
+ <v-select :value.sync="model.f_type"
86
+ v-model="model.f_type"
87
+ :value-single="true"
88
+ :options='$parent.$parent.fillCardTypes' placeholder='请选择'
89
+ condition=" f_type = '{}'"
90
+ close-on-select clear-button></v-select>
91
+ </div>
92
+
93
+ <div class="col-sm-2 form-group">
94
+ <label class="font_normal_body">卡&emsp;&emsp;号</label>
95
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
96
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
97
+ </div>
98
+ <div class="col-sm-2 form-group">
99
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
100
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
101
+ condition="f_meternumber = '{}'" placeholder='表号'>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">气表品牌</label>
105
+ <v-select :value.sync="model.f_meter_brand"
106
+ v-model="model.f_meter_brand"
107
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
108
+ condition="f_meter_brand = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group">
112
+ <label class="font_normal_body">补卡状态</label>
113
+ <v-select :value.sync="model.f_state"
114
+ v-model="model.f_state"
115
+ :options='$parent.$parent.chargeState' placeholder='请选择'
116
+ condition="f_state = '{}'"
117
+ close-on-select></v-select>
118
+ </div>
119
+ <div class="col-sm-2 form-group">
120
+ <label class="font_normal_body">付款方式</label>
121
+ <v-select id="f_payment"
122
+ v-model="model.f_payment"
123
+ placeholder='请选择'
124
+ condition="f_payment ='{}'"
125
+ :value.sync="model.f_payment"
126
+ :options='$parent.$parent.payments'
127
+ close-on-select clear-button>
128
+ </v-select>
129
+ </div>
130
+ <div class="col-sm-2 form-group">
131
+ <label class="font_normal_body">用户类型</label>
132
+ <v-select :value.sync="model.f_user_type"
133
+ v-model="model.f_user_type"
134
+ @change="$parent.$parent.userTypeChange()"
135
+ :options='$parent.$parent.userTypes' placeholder='请选择'
136
+ condition="f_user_type = '{}'"
137
+ close-on-select></v-select>
138
+ </div>
139
+ <div class="col-sm-2 form-group">
140
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
141
+ <v-select :value.sync="model.f_user_usetype" :search="false"
142
+ @change="$parent.$parent.userUseTypeChange()"
143
+ v-model="model.f_user_usetype"
144
+ :options='$parent.$parent.userusetypes'
145
+ condition="f_user_usetype = '{}'"
146
+ placeholder='用气类型'
147
+ value-single="true"
148
+ close-on-select>
149
+ </v-select>
150
+ </div>
151
+ <div class="col-sm-2 form-group">
152
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
153
+ <v-select :value.sync="model.f_use_institution" :search="false"
154
+ @change="$parent.$parent.userUseInstitutionChange()"
155
+ v-model="model.f_use_institution"
156
+ :options='$parent.$parent.useinstitutions'
157
+ condition="f_use_institution = '{}'"
158
+ placeholder='用气机构'
159
+ value-single="true"
160
+ close-on-select>
161
+ </v-select>
162
+ </div>
163
+ <div class="col-sm-2 form-group">
164
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
165
+ <v-select :value.sync="model.f_user_usenature" :search="false"
166
+ v-model="model.f_user_usenature"
167
+ :options='$parent.$parent.userusenatures'
168
+ condition="f_user_usenature = '{}'"
169
+ placeholder='使用性质'
170
+ value-single="true"
171
+ close-on-select>
172
+ </v-select>
173
+ </div>
174
+ </div>
175
+
176
+ </div>
177
+ </criteria>
178
+
179
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
180
+ <template partial='head'>
181
+ <tr>
182
+ <th>
183
+ <!-- <nobr>客户编号</nobr>-->
184
+ <data-order field="f_userinfo_code" name="客户编号"
185
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
186
+ </th>
187
+ <th>
188
+ <nobr>客户名称</nobr>
189
+ </th>
190
+ <th>
191
+ <nobr>档案编号</nobr>
192
+ </th>
193
+ <th>
194
+ <nobr>收据票号</nobr>
195
+ </th>
196
+ <th>
197
+ <!-- <nobr>客户地址</nobr>-->
198
+ <data-order field="f_address" name="客户地址"
199
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></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
+ </th>
216
+ <th>
217
+ <nobr>补卡种类</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>补卡原因</nobr>
221
+ </th>
222
+ <th>
223
+ <nobr>卡费</nobr>
224
+ </th>
225
+ <th>
226
+ <!-- <nobr>补卡日期</nobr>-->
227
+ <data-order field="f_operate_date" name="补卡日期"
228
+ :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
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><nobr>附件</nobr></th>
243
+ </tr>
244
+ </template>
245
+ <template partial='body'>
246
+ <td style="text-align: center;">
247
+ <nobr>
248
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
249
+ </td>
250
+ <td style="text-align: center;">
251
+ <nobr>{{row.f_user_name}}</nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.f_bill_number}}</nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.f_address}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_meternumber}}</nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_residential_area}}</nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr>{{row.f_card_id}}</nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr>{{row.f_meter_brand}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;">
275
+ <nobr>{{row. f_type}}</nobr>
276
+ </td>
277
+ <td style="text-align: center;">
278
+ <nobr>{{row. f_fill_type}}</nobr>
279
+ </td>
280
+ <td style="text-align: center;">
281
+ <nobr>{{row.f_comments}}</nobr>
282
+ </td>
283
+ <td style="text-align: center;">
284
+ <nobr>{{row.f_cardfees}}</nobr>
285
+ </td>
286
+ <td style="text-align: center;">
287
+ <nobr>{{row.f_operate_date}}</nobr>
288
+ </td>
289
+ <td style="text-align: center;">
290
+ <nobr>{{row.f_payment}}</nobr>
291
+ </td>
292
+ <td style="text-align: center;">
293
+ <nobr>{{row.f_operator}}</nobr>
294
+ </td>
295
+ <td style="text-align: center;">
296
+ <nobr>{{row.f_depname}}</nobr>
297
+ </td>
298
+ <td style="text-align: center;">
299
+ <nobr>{{row.f_orgname}}</nobr>
300
+ </td>
301
+ <td style="text-align: center;"><nobr>
302
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
303
+ </nobr></td>
304
+ </template>
305
+ <template partial='foot'></template>
306
+ </data-grid>
307
+
308
+ </criteria-paged>
309
+
310
+ <table class="table-hover">
311
+ <tr style="position: relative" class="table-bordered">
312
+ <td
313
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
314
+ 汇总信息
315
+ </td>
316
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
317
+ 卡费合计:&emsp;{{sumsmodel.f_cardfees}}
318
+ </td>
319
+ </tr>
320
+ </table>
321
+ </div>
322
+ <div class="flex" v-if="show">
323
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
324
+ </div>
325
+ </div>
326
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
327
+ <article slot="modal-body">
328
+ <upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="补卡" :isremark="false" style="width:auto" ></upload>
329
+ </article>
330
+ <footer slot="modal-footer" class="modal-footer">
331
+ </footer>
332
+ </modal>
333
+ </div>
334
+ </template>
335
+
336
+ <script>
337
+ import {HttpResetClass, PagedList} from 'vue-client'
338
+ import defaultPrint from './../config/DefaultPrint'
339
+ import exportConfig from './../config/exportConfig'
340
+
341
+ let readySomething = async function (self) {
342
+
343
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
344
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
345
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
346
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
347
+ // await self.$refs.paged.$refs.cri.search()
348
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
349
+ await self.$MagLoadParams.loadParam()
350
+ self.initParams()
351
+
352
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
353
+ }
354
+ export default {
355
+ props:['data'],
356
+ title: '补卡查询',
357
+ data() {
358
+ return {
359
+ data: {},
360
+ other:[],
361
+ footer:[],
362
+ model: new PagedList('rs/sql/fillCardQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_cardfees: 0}),
363
+ criteriaShow: false,
364
+ headData: ["客户编号", "客户名称", "客户电话", "身份证号", "地址", "补卡类型", "表编号", "卡号", "气表品牌", "气表状态", "卡费", "补卡日期", "人员", "部门", "公司"],
365
+ bodyData: ["f_userinfo_code", "f_user_name", "f_user_phone", "f_idnumber", "address", " f_type", "f_user_id", "f_card_id", "f_meter_brand", "f_table_state", "f_cardfees", "f_operate_date", "f_operator", "f_depname", "f_orgname"],
366
+ config: {
367
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_idnumber', 'f_card_id', 'f_meter_brand', 'f_operate_date', 'f_cardfees', 'f_operator']
368
+ },
369
+ //排序
370
+ orderitem:'f_operate_date desc',
371
+ orderFields: {
372
+ f_operate_date: 'no'
373
+ },
374
+ //默认打印列
375
+ defaultfield: [],
376
+ orgCondtionStr: '',
377
+ initres: {
378
+ org:[this.$login.f.orgid],
379
+ dep:[],
380
+ user:[],
381
+ },
382
+ modelval: [],
383
+ printshow: false,
384
+ all: false,
385
+ fields: {},
386
+ thead: '',
387
+ tfoot: '',
388
+ showupload:false,
389
+ selected:{},
390
+ //小区
391
+ residentialArea: [],
392
+ meterbrands: [],
393
+ userusetypes: [],
394
+ useinstitutions: [],
395
+ userusenatures: [],
396
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
397
+
398
+ show:false,
399
+ rowdata:{},
400
+ //合计数据
401
+ sumsmodel: {}
402
+ }
403
+ },
404
+ ready() {
405
+ this.getaddress()
406
+ readySomething(this).then(() => {
407
+ this.$emit('ready')
408
+ }).catch((error) => {
409
+ this.$emit('error', error)
410
+ })
411
+ },
412
+ methods: {
413
+ userUseInstitutionChange () {
414
+ this.userusenatures = []
415
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
416
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
417
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
418
+ this.userusenatures = this.$appdata.getParam(str)
419
+ }
420
+ },
421
+ userUseTypeChange () {
422
+ this.useinstitutions = []
423
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
424
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
425
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
426
+ this.useinstitutions = this.$appdata.getParam(str)
427
+ }
428
+ },
429
+ userTypeChange () {
430
+ this.userusetypes = []
431
+ if(this.$refs.paged.$refs.cri.model !==null) {
432
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
433
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
434
+ this.userusetypes = this.$appdata.getParam(str)
435
+ }
436
+ },
437
+ view(row){
438
+ this.showupload = true
439
+ this.selected= row
440
+ },
441
+ getotherfooter(){
442
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
443
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
444
+ this.other=[];
445
+ this.footer=[];
446
+ let exportdata = this.getCondition;
447
+ let otherInData=[];
448
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
449
+ let footerData=[],exportfield=this.getfield;
450
+ footerData.push("合计");
451
+ let self = this;
452
+ for(var field in self.sumsmodel){
453
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
454
+ }
455
+ this.footer.push(footerData);
456
+ this.other.push(otherInData);
457
+ },
458
+ search(){
459
+ this.$refs.paged.$refs.cri.search()
460
+ },
461
+ cancel() {
462
+ this.show = false
463
+ },
464
+ async selfSearch(args) {
465
+ console.log("--------------------?")
466
+ if (this.data) {
467
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
468
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
469
+ }
470
+ args.condition = `${args.condition}` + this.orgCondtionStr
471
+ args.condition = args.condition.replace(/f_zones/, "f_slice_area")
472
+ await this.model.search(args.condition, args.model)
473
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
474
+ },
475
+
476
+ initParams() {
477
+ // 初始化气表品牌
478
+ let brandArr = []
479
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
480
+ let temp = {}
481
+ temp.label = item.label
482
+ temp.value = item.value.f_meter_brand
483
+ brandArr.push(temp)
484
+ })
485
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
486
+ },
487
+ async getaddress(){
488
+ console.log('开始获取小区')
489
+ let HttpReset = new HttpResetClass()
490
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
491
+ data: {
492
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
493
+ }
494
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
495
+ console.log('小区',data)
496
+ let house = [{label: '全部', value: ''}]
497
+ for (let row of data.data){
498
+ console.log('开始保存小区')
499
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
500
+ }
501
+ this.residentialArea = house
502
+ },
503
+
504
+ clear() {
505
+ //清空部门和人员
506
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
507
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
508
+ this.$refs.paged.$refs.cri.$refs.sel.slice_area = []
509
+ //部门和人员变为全选
510
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
511
+ // this.$refs.paged.$refs.cri.$refs.sel.$children[3].$children[0].isSelectAll = false
512
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
513
+ this.$refs.paged.$refs.cri.model[key] = []
514
+ })
515
+ },
516
+ show() {
517
+ this.criteriaShow = true
518
+ },
519
+ hidden() {
520
+ this.criteriaShow = !this.criteriaShow
521
+ },
522
+ getRes(condition) {
523
+ this.orgCondtionStr = condition
524
+ },
525
+ dealmsg(val) {
526
+ console.log('---------------dealmsg')
527
+ this.rowdata=val
528
+ this.show=true
529
+ val.model = this.model.model
530
+ this.$dispatch('deal-msg', val)
531
+ },
532
+ stamp() {
533
+ this.all = false
534
+ //默认选择要打印的列
535
+ this.modelval = defaultPrint.config
536
+ this.fields = this.getfield
537
+ console.log('所有打印字段', this.fields)
538
+ this.printshow = true
539
+ this.put()
540
+ },
541
+ put() {
542
+ // 对Modelval进行排序
543
+ this.sortModelval()
544
+ this.thead = `<tr><th colspan=${this.modelval.length}>补卡查询统计报表</th></tr><tr>`
545
+ for (let key of this.modelval) {
546
+ this.thead += '<th>' + this.fields[key] + '</th>'
547
+ }
548
+ this.thead += '</tr>'
549
+ },
550
+ print() {
551
+ this.$refs.print.PrintAsFile()
552
+ this.printshow = false
553
+ },
554
+ close() {
555
+ this.printshow = false
556
+ this.all = false
557
+ },
558
+ // 对选择的列进行排序
559
+ sortModelval() {
560
+ let sortModel = []
561
+ Object.keys(this.fields).forEach((key) => {
562
+ if (this.modelval.includes(key)) {
563
+ sortModel.push(key)
564
+ }
565
+ })
566
+ this.modelval = sortModel
567
+ console.log('选择的打印的字段', this.modelval)
568
+ },
569
+ sort (field, rule) {
570
+ // 将所有排序方式设为不排序,实现相互排斥
571
+ for (let key in this.orderFields) {
572
+ if (key === field) {
573
+ this.orderFields[key] = rule
574
+ } else {
575
+ this.orderFields[key] = 'no'
576
+ }
577
+ }
578
+ // 如果新规则不排序,还原为默认排序
579
+ if (rule === 'no') {
580
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
581
+ } else {
582
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
583
+ }
584
+
585
+ this.search()
586
+ },
587
+ async updateParams() {
588
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
589
+ this.initParams()
590
+ },
591
+ },
592
+ watch: {
593
+ 'all'(val) {
594
+ if (val) {
595
+ this.modelval = this.bodyData
596
+ } else {
597
+ this.modelval = defaultPrint.config
598
+ this.put()
599
+ }
600
+ },
601
+ 'modelval.length'() {
602
+ this.put()
603
+ },
604
+ sumsmodel:{
605
+ handler: function(val) {
606
+ this.getotherfooter();
607
+ },
608
+ deep: true
609
+ },
610
+ 'orgCondtionStr'(val) {
611
+ let res = val.match(/'(.*?)'/)
612
+ console.log('正则提取:',res && res[1])
613
+ if (res) {
614
+ this.f_filialeid = res[1]
615
+ this.updateParams()
616
+ }
617
+ }
618
+ },
619
+ computed: {
620
+ getCondition() {
621
+ return {
622
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
623
+ orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"
624
+ }
625
+ },
626
+ getfield() {
627
+ return exportConfig.fillcardConfig
628
+ },
629
+ userTypes() {
630
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
631
+ },
632
+ fillCardTypes() {
633
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡类型')]
634
+ },
635
+ chargeState() {
636
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('补卡状态')]
637
+ },
638
+ payments() {
639
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
640
+ }
641
+ }
642
+ }
643
+ </script>