manage-client 4.1.52 → 4.1.53

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.52",
3
+ "version": "4.1.53",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,878 @@
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>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-inline 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
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">&emsp;&emsp;&emsp;至</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
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label for="startHandDate" class="font_normal_body">下发日期</label>
31
+ <datepicker id="startHandDate" placeholder="开始日期" style="width:60%"
32
+ v-model="model.startHandDate"
33
+ :value.sync="model.startHandDate"
34
+ :format="'yyyy-MM-dd HH:mm:ss'"
35
+ :show-reset-button="true"
36
+ >
37
+ </datepicker>
38
+ </div>
39
+ <div class="col-sm-2 form-group">
40
+ <label for="endHandDate" class="font_normal_body">&emsp;&emsp;&emsp;至</label>
41
+ <datepicker id="endHandDate" placeholder="结束日期" style="width:60%"
42
+ v-model="model.endHandDate"
43
+ :value.sync="model.endHandDate"
44
+ :format="'yyyy-MM-dd HH:mm:ss'"
45
+ :show-reset-button="true"
46
+ >
47
+ </datepicker>
48
+ </div>
49
+
50
+
51
+ <div class="span" style="float:right;">
52
+ <button class="button_search button_spacing" @click="search()">查询</button>
53
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
54
+ <export-excel :data="$parent.$parent.getCondition"
55
+ :field="$parent.$parent.getfield"
56
+ :footer="$parent.$parent.footer"
57
+ :header="$parent.$parent.other"
58
+ sqlurl="api/af-revenue/logic/openapi/exportfile"
59
+ sql-name="FMYgasQuery"
60
+ template-name='用气查询导出'
61
+ :choose-col="true"></export-excel>
62
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
63
+ :defaultfield="$parent.$parent.defaultfield" print-name="用气查询打印"
64
+ ></print-data>
65
+
66
+ <div style="float: right" class="button_spacing"
67
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
68
+ @click="$parent.$parent.hidden()"></div>
69
+ </div>
70
+ </div>
71
+ <div class="row" v-show="$parent.$parent.criteriaShow">
72
+
73
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
74
+
75
+ <div class="col-sm-2 form-group">
76
+
77
+ <label class="font_normal_body">客户编号</label>
78
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
79
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">客户名称</label>
83
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
84
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
88
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
89
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
93
+ <v-select :value.sync="model.f_residential_area"
94
+ class="select_list select"
95
+ v-model="model.f_residential_area"
96
+ style="width: 60%"
97
+ multiple
98
+ condition="f_residential_area in {}"
99
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
100
+ close-on-select>
101
+
102
+ </v-select>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label class="font_normal_body">客户地址</label>
106
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
107
+ condition="f_address like '%{}%'" placeholder='客户地址'>
108
+ </div>
109
+ <div class="col-sm-2 form-group">
110
+ <label class="font_normal_body">客户表号</label>
111
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
112
+ condition="f_meternumber = '{}'" placeholder='客户表号'>
113
+ </div>
114
+ <div class="col-sm-2 form-group">
115
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
116
+ <v-select :value.sync="model.f_meter_classify"
117
+ v-model="model.f_meter_classify"
118
+ :options='$parent.$parent.metertype' placeholder='请选择'
119
+ condition="f_meter_classify like '%{}%'"
120
+ close-on-select></v-select>
121
+ </div>
122
+ <div class="col-sm-2 form-group">
123
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
124
+ <v-select :value.sync="model.f_user_type"
125
+ @change="$parent.$parent.userTypeChange()"
126
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
127
+ condition="f_user_type = '{}'"
128
+ close-on-select></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_state"
133
+ v-model="model.f_user_state"
134
+ :options='$parent.$parent.userstates' placeholder='请选择'
135
+ condition="f_user_state = '{}'"
136
+ close-on-select></v-select>
137
+ </div>
138
+ <div class="col-sm-2 form-group" >
139
+ <label class="font_normal_body">表具状态</label>
140
+ <v-select :value.sync="model.f_table_state"
141
+ v-model="model.f_table_state"
142
+ :options='$parent.$parent.tablestates' placeholder='请选择'
143
+ condition="f_table_state = '{}'"
144
+ close-on-select></v-select>
145
+ </div>
146
+ <div class="col-sm-2 form-group">
147
+ <label class="font_normal_body">用气性质</label>
148
+ <v-select :value.sync="model.f_gasproperties"
149
+ v-model="model.f_gasproperties"
150
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
151
+ :multiple="true"
152
+ condition="f_gasproperties in {}">
153
+ </v-select>
154
+ </div>
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">气价类型</label>
157
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
158
+ @change="$parent.$parent.pricetypechanged"
159
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
160
+ close-on-select v-ref:type>
161
+ </v-select>
162
+ </div>
163
+ <div class="col-sm-2 form-group">
164
+ <label class="font_normal_body">气价名称</label>
165
+ <v-select :value.sync="model.f_price_name"
166
+ v-model="model.f_price_name"
167
+ multiple
168
+ :options="$parent.$parent.pricenames"
169
+ condition="f_price_name in {}"
170
+ ></v-select>
171
+ </div>
172
+
173
+ <!--表册片区-->
174
+ <div class="col-sm-2 form-group">
175
+ <label class="font_normal_body">表册片区</label>
176
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
177
+ @change="$parent.$parent.inputtorchange"
178
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
179
+ style="width:60%"
180
+ close-on-select
181
+ condition="f_book_slice_area = '{}'"></v-select>
182
+ </div>
183
+ <div class="col-sm-2 form-group">
184
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
185
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
186
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
187
+ style="width:60%" :multiple="true"
188
+ condition="f_meter_book_num in {}"></v-select>
189
+ </div>
190
+ <div class="col-sm-2 form-group">
191
+ <label class="font_normal_body">气表品牌</label>
192
+ <v-select :value.sync="model.f_meter_brand" multiple
193
+ v-model="model.f_meter_brand"
194
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
195
+ condition="f_meter_brand in {}"
196
+ close-on-select></v-select>
197
+ </div>
198
+ <div class="col-sm-2 form-group">
199
+ <label class="font_normal_body">用&nbsp;气&nbsp;量&nbsp;</label>
200
+ <input type="text" style="width:30%" class="input_search" title="大于等于" v-model="model.f_oughtamount_small"
201
+ condition="f_oughtamount >= '{}' " placeholder="大于等于">
202
+ <input type="text" style="width:30%" class="input_search" title="小于等于" v-model="model.f_oughtamount_big"
203
+ condition="f_oughtamount <= '{}' " placeholder="小于等于">
204
+ </div>
205
+ <div class="col-sm-2 form-group">
206
+ <label for="startHandDate" class="font_normal_body">通气时间</label>
207
+ <datepicker id="startHandDate" placeholder="开始日期" style="width:60%"
208
+ v-model="model.startGasDate"
209
+ :value.sync="model.startGasDate"
210
+ :format="'yyyy-MM-dd HH:mm:ss'"
211
+ condition="f_gas_date >= '{}'"
212
+ :show-reset-button="true"
213
+ >
214
+ </datepicker>
215
+ </div>
216
+ <div class="col-sm-2 form-group">
217
+ <label for="endHandDate" class="font_normal_body">&emsp;&emsp;&emsp;至</label>
218
+ <datepicker id="endHandDate" placeholder="结束日期" style="width:60%"
219
+ v-model="model.endGasDate"
220
+ :value.sync="model.endGasDate"
221
+ :format="'yyyy-MM-dd HH:mm:ss'"
222
+ condition="f_gas_date <= '{}'"
223
+ :show-reset-button="true"
224
+ >
225
+ </datepicker>
226
+ </div>
227
+ <div class="col-sm-2 form-group">
228
+ <label class="font_normal_body">&nbsp;抄&nbsp;表&nbsp;员</label>
229
+ <v-select :value.sync="model.f_inputtor"
230
+ v-model="model.f_inputtor"
231
+ :multiple="true"
232
+ :options='$parent.$parent.inputtores' placeholder='请选择'
233
+ condition="f_inputtor in {}"
234
+ :search="false">
235
+ </v-select>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ </criteria>
240
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
241
+ <template partial='head'>
242
+ <tr>
243
+ <th>
244
+ <nobr>客户编号</nobr>
245
+ </th>
246
+ <th>
247
+ <nobr>客户名称</nobr>
248
+ </th>
249
+ <th>
250
+ <nobr>客户状态</nobr>
251
+ </th>
252
+ <th>
253
+ <nobr>档案编号</nobr>
254
+ </th>
255
+ <th>
256
+ <nobr>客户电话</nobr>
257
+ </th>
258
+ <th>
259
+ <nobr>证件类型</nobr>
260
+ </th>
261
+ <th>
262
+ <nobr>证件号码</nobr>
263
+ </th>
264
+ <th>
265
+ <nobr>小区</nobr>
266
+ </th>
267
+ <th>
268
+ <nobr>客户地址</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>客户类型</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>用气性质</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>表号</nobr>
278
+ </th>
279
+ <th>
280
+ <nobr>气表品牌</nobr>
281
+ </th>
282
+ <th>
283
+ <nobr>气表类型</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>气价名称</nobr>
287
+ </th>
288
+ <th>
289
+ <nobr>气价详情</nobr>
290
+ </th>
291
+ <!--<th><nobr>气表底数</nobr></th>-->
292
+ <th><nobr>表上金额</nobr></th>
293
+ <th><nobr>账户余额</nobr></th>
294
+ <th>
295
+ <nobr>预购气量</nobr>
296
+ </th>
297
+ <th>
298
+ <nobr>预购金额</nobr>
299
+ </th>
300
+ <th>
301
+ <nobr>实交金额</nobr>
302
+ </th>
303
+ <th>
304
+ <nobr>抄表员</nobr>
305
+ </th>
306
+ <th>
307
+ <nobr>表册片区</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>抄表次数</nobr>
311
+ </th>
312
+ <th>
313
+ <nobr>抄表区间</nobr>
314
+ </th>
315
+ <th title="抄表区间间隔天数">
316
+ <nobr>天数</nobr>
317
+ </th>
318
+ <th>
319
+ <nobr>用气量</nobr>
320
+ </th>
321
+ <th>
322
+ <nobr>用气金额</nobr>
323
+ </th>
324
+ <th>
325
+ <nobr>期初底数</nobr>
326
+ </th>
327
+ <th>
328
+ <nobr>期末底数</nobr>
329
+ </th>
330
+ <th>
331
+ <nobr>通气时间</nobr>
332
+ </th>
333
+ </tr>
334
+ </template>
335
+ <template partial='body'>
336
+ <td style="text-align: center;">
337
+ <nobr>{{row.f_userinfo_code}}</nobr>
338
+ </td>
339
+ <td style="text-align: center;">
340
+ <nobr>{{row.f_user_name}}</nobr>
341
+ </td>
342
+ <td style="text-align: center;">
343
+ <nobr>{{row.f_user_state}}</nobr>
344
+ </td>
345
+ <td style="text-align: center;">
346
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
347
+ </td>
348
+ <td style="text-align: center;">
349
+ <nobr>{{row.f_user_phone}}</nobr>
350
+ </td>
351
+ <td style="text-align: center;">
352
+ <nobr>{{row.f_credentials}}</nobr>
353
+ </td>
354
+ <td style="text-align: center;">
355
+ <nobr>{{row.f_idnumber}}</nobr>
356
+ </td>
357
+ <td style="text-align: center;">
358
+ <nobr>{{row.f_residential_area}}</nobr>
359
+ </td>
360
+ <td style="text-align: center;">
361
+ <nobr>{{row.f_address}}</nobr>
362
+ </td>
363
+ <td style="text-align: center;">
364
+ <nobr>{{row.f_user_type}}</nobr>
365
+ </td>
366
+ <td style="text-align: center;">
367
+ <nobr>{{row.f_gasproperties}}</nobr>
368
+ </td>
369
+ <td style="text-align: center;">
370
+ <nobr>{{row.f_meternumber}}</nobr>
371
+ </td>
372
+ <td style="text-align: center;">
373
+ <nobr>{{row.f_meter_brand}}</nobr>
374
+ </td>
375
+ <td style="text-align: center;">
376
+ <nobr>{{row.f_meter_classify}}</nobr>
377
+ </td>
378
+ <td style="text-align: center;">
379
+ <nobr>{{row.f_price_name}}</nobr>
380
+ </td>
381
+ <td style="text-align: center;">
382
+ <nobr>{{row.f_price_value}}</nobr>
383
+ </td>
384
+ <!--<td style="text-align: center;">-->
385
+ <!--<nobr>{{row.f_meter_base}}</nobr>-->
386
+ <!--</td>-->
387
+ <td style="text-align: center;">
388
+ <nobr>{{row.f_balance_amount}}</nobr>
389
+ </td>
390
+ <td style="text-align: center;">
391
+ <nobr>{{row.f_balance}}</nobr>
392
+ </td>
393
+ <td style="text-align: center;">
394
+ <nobr>{{row.f_pregas}}</nobr>
395
+ </td>
396
+ <td style="text-align: center;">
397
+ <nobr>{{row.f_preamount}}</nobr>
398
+ </td>
399
+ <td style="text-align: center;">
400
+ <nobr>{{row.f_collection}}</nobr>
401
+ </td>
402
+ <td style="text-align: center;">
403
+ <nobr>{{row.f_inputtor}}</nobr>
404
+ </td>
405
+ <td style="text-align: center;">
406
+ <nobr>{{row.f_book_slice_area}}</nobr>
407
+ </td>
408
+ <td style="text-align: center;">
409
+ <nobr>{{row.f_hand_number}}</nobr>
410
+ </td>
411
+ <td style="text-align: center;">
412
+ <nobr>{{row.f_date}}</nobr>
413
+ </td>
414
+ <td style="text-align: center;" title="抄表区间间隔天数">
415
+ <nobr>{{row.f_input_day}}</nobr>
416
+ </td>
417
+ <td style="text-align: center;">
418
+ <nobr>{{row.f_oughtamount}}</nobr>
419
+ </td>
420
+ <td style="text-align: center;">
421
+ <nobr>{{row.f_oughtfee}}</nobr>
422
+ </td>
423
+ <td style="text-align: center;">
424
+ <nobr>{{row.f_last_tablebase}}</nobr>
425
+ </td>
426
+ <td style="text-align: center;">
427
+ <nobr>{{row.f_tablebase}}</nobr>
428
+ </td>
429
+ <td style="text-align: center;">
430
+ <nobr>{{row.f_gas_date}}</nobr>
431
+ </td>
432
+ </template>
433
+ <template partial='foot'></template>
434
+ </data-grid>
435
+ </criteria-paged>
436
+ <table class="table-hover">
437
+ <tr style="position: relative" class="table-bordered">
438
+ <td
439
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
440
+ 汇总信息
441
+ </td>
442
+ <td
443
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
444
+ 预购气量合计:&emsp;{{sumsmodel.f_pregas}}
445
+ </td>
446
+ <td
447
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
448
+ 预购金额合计:&emsp;{{sumsmodel.f_preamount}}
449
+ </td>
450
+ <td
451
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
452
+ 实交金额合计:&emsp;{{sumsmodel.f_collection}}
453
+ </td>
454
+ <td
455
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
456
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
457
+ </td>
458
+ <td
459
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
460
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
461
+ </td>
462
+ </tr>
463
+ </table>
464
+ </div>
465
+ <div v-if="show">
466
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
467
+ </div>
468
+ </div>
469
+ </div>
470
+ </template>
471
+ <script>
472
+ import {HttpResetClass, PagedList} from 'vue-client'
473
+ import defaultPrint from './config/DefaultPrint'
474
+ import exportConfig from './config/exportConfig'
475
+
476
+
477
+ let readySomething = async function (self) {
478
+ //加载抄表册
479
+ self.initmeterbook();
480
+ self.initSlice(self.$login.f.orgid)
481
+
482
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
483
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
484
+ await self.$MagLoadParams.loadParam()
485
+ self.initParams()
486
+ self.getaddress()
487
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
488
+ }
489
+ export default {
490
+ title: '用气查询',
491
+ name: 'AddMaterial',
492
+ data () {
493
+ return {
494
+ other: [],
495
+ footer: [],
496
+ model: new PagedList('api/af-revenue/sql/FMYgasQuery', 30, {
497
+ startDate: 'this.model.startDate != null && this.model.startDate != "" ? this.model.startDate : this.model.startHandDate',
498
+ endDate: 'this.model.endDate != null && this.model.endDate != "" ? this.model.endDate : this.model.endHandDate',
499
+ f_queryweb: 'this.model.f_queryweb'
500
+ }, {
501
+ f_pregas: 0,
502
+ f_preamount: 0,
503
+ f_collection: 0,
504
+ f_oughtamount: 0,
505
+ f_oughtfee: 0
506
+ }),
507
+ initres: {
508
+ org: [this.$login.f.orgid],
509
+ dep: [],
510
+ user: [],
511
+ },
512
+ gasproperties: [],
513
+ residentialArea: [],
514
+ f_filialeid: this.$login.f.orgid,
515
+ show: false,
516
+ pricenames: [],
517
+ rowdata: {},
518
+ criteriaShow: false,
519
+ orgCondtionStr: '',
520
+ modelval: [],
521
+ meterbrands: [],
522
+ printshow: false,
523
+ all: false,
524
+ fields: {},
525
+ inputtores:[{label: '全部',value: ''}],
526
+ thead: '',
527
+ tfoot: '',
528
+ //表册片区
529
+ bookSlice:[{label: '全部',value: ''}],
530
+ // 下拉框
531
+
532
+ //合计数据
533
+ sumsmodel: {},
534
+ defaultfield: [],
535
+ // 使用类型,壁挂炉
536
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
537
+ userstates: this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
538
+ tablestates: this.$appdata.getParam('表具状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')] : [],
539
+ meterbooks: [{label: '全部',value: ''}], //抄表册
540
+ tempfalg :false,
541
+ lastorgstr:'',
542
+ isQueryWeb: this.$appdata.getSingleValue('用气查询是否查物联网表') ? this.$appdata.getSingleValue('用气查询是否查物联网表') : '否' ,
543
+ allorgid:[],
544
+ }
545
+ },
546
+ ready () {
547
+ readySomething(this)
548
+ this.getinputtores()
549
+ },
550
+ methods: {
551
+ initParams(){
552
+ //初始化气表品牌
553
+ let brandArr = []
554
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
555
+ let temp = {}
556
+ temp.label = item.label
557
+ temp.value = item.value.f_meter_brand
558
+ brandArr.push(temp)
559
+ })
560
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
561
+ },
562
+ //初始化片区
563
+ async initSlice (val) {
564
+ if (val) {
565
+ let getAllArea = await this.$resetpost('/rs/search', {
566
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
567
+ userid: this.$login.f.id
568
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
569
+ let arr = getAllArea.data.filter((res) => {
570
+ return res.parentid == val
571
+ })
572
+ this.bookSlice = []
573
+ arr.forEach((res) => {
574
+ this.bookSlice.push({label: res.name, value: res.name})
575
+ })
576
+ }
577
+ },
578
+ async getinputtores () {
579
+ // 获取抄表员
580
+ let rs = []
581
+ if (this.$login.f.f_gasman.length > 0) {
582
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
583
+ let temp = {
584
+ label: this.$login.f.f_gasman[i].name,
585
+ value: this.$login.f.f_gasman[i].name
586
+ }
587
+ rs.push(temp)
588
+ }
589
+ }
590
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
591
+ },
592
+ //表册片区和抄表册关联
593
+ async inputtorchange(){
594
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
595
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
596
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
597
+ if((val2.length>0)){
598
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
599
+ if(val2[0]) {
600
+ condition = condition + ` and f_book_slice_area = '${val2}' `
601
+ }
602
+ let param={
603
+ items:'*',
604
+ tablename:'t_meter_book',
605
+ condition:condition,
606
+ orderitem:'id'
607
+ }
608
+ let getMeterBooks = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
609
+ if (getMeterBooks.data) {
610
+ if(getMeterBooks.data.length >0){
611
+ let rs = [];
612
+ getMeterBooks.data.forEach((item)=>{
613
+ let temp = {
614
+ label:item.f_book_name,
615
+ value:item.id
616
+ };
617
+ rs.push(temp);
618
+
619
+ })
620
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
621
+ }else{
622
+
623
+ this.meterbooks = [{label: '全部',value: ''}];
624
+ }
625
+ }
626
+ }else{
627
+ this.meterbooks = [{label: '全部',value: ''}];
628
+ this.initmeterbook();
629
+ }
630
+ },
631
+ async getaddress(){
632
+ let HttpReset = new HttpResetClass()
633
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
634
+ data: {
635
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
636
+ }
637
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
638
+ console.log('小区',data)
639
+ let house = [{label: '全部', value: ''}]
640
+ for (let row of data.data){
641
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
642
+ }
643
+ this.residentialArea = house
644
+ },
645
+ async initmeterbook(orgstr){
646
+ if(orgstr == null ){
647
+ orgstr = this.f_filialeid;
648
+ }
649
+ //获取新的抄表册,先去清理所有的抄表册
650
+ this.$GetSaleParam.meterbooks = [];
651
+ //开始加载新的抄表册
652
+ await this.$LoadParams.loadMeterBook(orgstr)
653
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
654
+ },
655
+ getotherfooter () {
656
+ this.other = [];
657
+ this.footer = [];
658
+ // let exportdata = this.getCondition;
659
+ let otherInData = [];
660
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
661
+ let footerData = [], exportfield = this.getfield;
662
+ footerData.push("合计");
663
+ let self = this;
664
+ for (var field in self.sumsmodel) {
665
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
666
+ }
667
+ this.footer.push(footerData);
668
+ this.other.push(otherInData);
669
+ },
670
+ userTypeChange () {
671
+ this.gasproperties = []
672
+ if (this.$refs.paged.$refs.cri.model !== null) {
673
+ this.$refs.paged.$refs.cri.model.f_gasproperties = []
674
+
675
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
676
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
677
+ // this.gasproperties.push({label: '全部', value: ''})
678
+ } else {
679
+ this.gasproperties = [{label: '全部', value: ''}]
680
+ }
681
+ },
682
+ async pricetypechanged(){
683
+ this.$refs.paged.$refs.cri.model.f_price_name = []
684
+ this.pricenames = []
685
+ if (this.$refs.paged.$refs.cri.model.pricetype) {
686
+ let http = new HttpResetClass()
687
+ let param = {
688
+ items: 'f_price_name',
689
+ tablename: 't_stairprice',
690
+ condition: `f_price_type = '${this.$refs.paged.$refs.cri.model.pricetype[0]}' and f_orgid = '${this.$login.f.orgid}'`,
691
+ orderitem: 'id'
692
+ }
693
+ var res = await http.load('POST', 'api/af-revenue/sql/manage_singleTable', {data: param}, {resolveMsg: null, rejectMsg: '获取设备列表失败!'})
694
+ let uniqueMap = {}
695
+ let arr = []
696
+ for (var i = 0; i < res.data.length; i++) {
697
+ let item = res.data[i];
698
+ if (!uniqueMap[item.f_price_name]) {
699
+ arr.push(item);
700
+ uniqueMap[item.f_price_name] = true;
701
+ }
702
+ }
703
+ console.log('arr',arr)
704
+ if (arr.length > 0) {
705
+ arr.forEach(row => {
706
+ this.pricenames.push({label: row.f_price_name,value: row.f_price_name})
707
+ })
708
+ } else {
709
+ this.pricenames.push({label: '全部', value: ''})
710
+ }
711
+ }
712
+ },
713
+ search () {
714
+ this.$refs.paged.$refs.cri.search()
715
+ },
716
+ cancel () {
717
+ this.show = false
718
+ },
719
+ selfSearch (args) {
720
+ args.condition = `${args.condition} ` + this.orgCondtionStr
721
+ let con = '1=1'
722
+ let mod =this.$refs.paged.$refs.cri.model
723
+ if(mod.startDate != null && mod.startDate != '') {
724
+ con += ` and f_input_date >= '${mod.startDate}'`
725
+ }
726
+ if(mod.endDate != null && mod.endDate != '') {
727
+ con += ` and f_input_date <= '${mod.endDate}'`
728
+ }
729
+ if(mod.startHandDate != null && mod.startHandDate != '') {
730
+ con += ` and f_hand_date >= '${mod.startHandDate}'`
731
+ }
732
+ if(mod.endHandDate != null && mod.endHandDate != '') {
733
+ con += ` and f_hand_date <= '${mod.endHandDate}'`
734
+ }
735
+ this.$refs.paged.$refs.cri.model.f_queryweb = this.isQueryWeb
736
+ this.model.search(args.condition, args.model,con)
737
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
738
+ },
739
+ clear () {
740
+ //清空部门和人员
741
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
742
+ //部门和人员变为全选
743
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
744
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
745
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
746
+ this.$refs.paged.$refs.cri.model[key] = []
747
+ })
748
+ },
749
+ show () {
750
+ this.criteriaShow = true
751
+ },
752
+ hidden () {
753
+ this.criteriaShow = !this.criteriaShow
754
+ },
755
+ showmsg (obj) {
756
+ this.rowdata = obj
757
+ this.show = true
758
+ },
759
+ async getRes(condition,obj) {
760
+ this.orgCondtionStr = condition
761
+
762
+ },
763
+ stamp () {
764
+ this.all = false
765
+ //默认选择要打印的列
766
+ this.modelval = defaultPrint.config
767
+ this.fields = this.getfield
768
+ console.log('所有打印字段', this.fields)
769
+ this.printshow = true
770
+ this.put()
771
+ },
772
+ put () {
773
+ // 对Modelval进行排序
774
+ this.sortModelval()
775
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
776
+ for (let key of this.modelval) {
777
+ this.thead += '<th>' + this.fields[key] + '</th>'
778
+ }
779
+ this.thead += '</tr>'
780
+ },
781
+ print () {
782
+ this.$refs.print.PrintAsFile()
783
+ this.printshow = false
784
+ },
785
+ dealmsg (val) {
786
+ this.rowdata = val
787
+ this.show = true
788
+ val.model = this.model.model
789
+ this.$dispatch('deal-msg', val)
790
+ },
791
+ close () {
792
+ this.printshow = false
793
+ this.all = false
794
+ },
795
+ // 对选择的列进行排序
796
+ sortModelval () {
797
+ let sortModel = []
798
+ Object.keys(this.fields).forEach((key) => {
799
+ if (this.modelval.includes(key)) {
800
+ sortModel.push(key)
801
+ }
802
+ })
803
+ this.modelval = sortModel
804
+ console.log('选择的打印的字段', this.modelval)
805
+ }
806
+
807
+ },
808
+ computed: {
809
+ getCondition () {
810
+ return {
811
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
812
+ condValue: this.$refs.paged.model.condValue,
813
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
814
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
815
+ f_queryweb: this.$refs.paged.$refs.cri.model.f_queryweb
816
+ }
817
+ },
818
+ getfield () {
819
+ return exportConfig.fmygasConfig
820
+ },
821
+ pricetypes() {
822
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
823
+ },
824
+ usertypes () {
825
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
826
+ },
827
+ credentials () {
828
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
829
+ },
830
+ metertype () {
831
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
832
+ }
833
+ },
834
+ events: {},
835
+ watch: {
836
+ 'all' (val) {
837
+ if (val) {
838
+ this.modelval = this.bodyData
839
+ } else {
840
+ this.modelval = defaultPrint.config
841
+ this.put()
842
+ }
843
+ },
844
+ 'modelval.length' () {
845
+ this.put()
846
+ },
847
+ sumsmodel: {
848
+ handler: function (val) {
849
+ this.getotherfooter();
850
+ },
851
+ deep: true
852
+ },
853
+ async 'orgCondtionStr'(val) {
854
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
855
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
856
+ this.meterbooks = [{label: '全部',value: ''}];
857
+ if(this.lastorgstr != val){
858
+ this.tempfalg = true;
859
+ this.lastorgstr = val;
860
+ }
861
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
862
+ this.tempfalg = false;
863
+ let a = val.substring(val.indexOf("(")+2)
864
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
865
+ }
866
+ this.updateParams()
867
+ },
868
+ }
869
+ }
870
+ </script>
871
+ <style>
872
+ .datapanel {
873
+ color: #333;
874
+ background-color: white;
875
+ padding: 10px 20px;
876
+ border-radius: 15px;
877
+ }
878
+ </style>
@@ -1173,6 +1173,7 @@ export default {
1173
1173
  'f_idnumber': '证件号码',
1174
1174
  'f_residential_area': '小区',
1175
1175
  'f_address': '客户地址',
1176
+ 'f_user_state': '用户状态',
1176
1177
  'f_user_type': '客户类型',
1177
1178
  'f_gasproperties': '用气性质',
1178
1179
  'f_meternumber': '表号',
@@ -1180,6 +1181,7 @@ export default {
1180
1181
  'f_meter_classify': '气表类型',
1181
1182
  'f_price_name': '气价名称',
1182
1183
  'f_price_value': '气价详情',
1184
+ 'f_balance_amount': '表上余额',
1183
1185
  'f_balance': '账户余额',
1184
1186
  'f_pregas': '预购气量',
1185
1187
  'f_preamount': '预购金额',
@@ -10,4 +10,8 @@ export default function () {
10
10
  Vue.component('record-info-query', (resolve) => {
11
11
  require(['./RecordInfoQuery'], resolve)
12
12
  })
13
+ // 用气查询
14
+ Vue.component('fmygas-query', (resolve) => {
15
+ require(['./FMYGasQuery'], resolve)
16
+ })
13
17
  }