manage-client 3.2.79-aode → 3.2.80-aode

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 (75) hide show
  1. package/build/dev-server.js +193 -193
  2. package/build/webpack.base.conf.js +79 -79
  3. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  4. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  5. package/gradlew +234 -0
  6. package/gradlew.bat +89 -0
  7. package/package.json +1 -1
  8. package/src/Util.js +383 -383
  9. package/src/components/MeterManage/MeterList.vue +336 -336
  10. package/src/components/WebReport/UserGasAll.vue +214 -214
  11. package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
  12. package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
  13. package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
  14. package/src/components/sale/businessquery/DeductionGas.vue +149 -149
  15. package/src/components/sale/businessquery/DisableQuery.vue +315 -315
  16. package/src/components/sale/businessquery/EnableQuery.vue +315 -315
  17. package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
  18. package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
  19. package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
  20. package/src/components/sale/businessquery/InspectListGas.vue +456 -456
  21. package/src/components/sale/businessquery/InspectManage.vue +37 -37
  22. package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
  23. package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
  24. package/src/components/sale/businessquery/QueryUserState.vue +313 -313
  25. package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
  26. package/src/components/sale/businessquery/TransferQuery.vue +363 -363
  27. package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
  28. package/src/components/sale/config/exportConfig.js +271 -271
  29. package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
  30. package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
  31. package/src/components/sale/filesquery/MeterQuery.vue +593 -593
  32. package/src/components/sale/filesquery/UserQuery.vue +556 -556
  33. package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
  34. package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
  35. package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
  36. package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
  37. package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
  38. package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
  39. package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
  40. package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
  41. package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
  42. package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
  43. package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
  44. package/src/components/sale/report/aode/YearByUserType.vue +351 -342
  45. package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
  46. package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
  47. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
  48. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
  49. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
  50. package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
  51. package/src/components/webmeter/ArreasuserQuery.vue +193 -193
  52. package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
  53. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
  54. package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
  55. package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
  56. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
  57. package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
  58. package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
  59. package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
  60. package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
  61. package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
  62. package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
  63. package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
  64. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
  65. package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
  66. package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
  67. package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
  68. package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
  69. package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
  70. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
  71. package/src/components/webmeter/report/ReportList.vue +211 -211
  72. package/src/main.js +56 -56
  73. package/src/saleManage.js +263 -263
  74. package/src/webmeterManage.js +99 -99
  75. package/client.iml +0 -15
@@ -1,593 +1,593 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <div style="flex:1;" class="flex" v-if="!show">
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
-
12
- <div class="span" style="float:right;">
13
- <button class="button_search button_spacing" @click="search()">查询</button>
14
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
-
17
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
- :field="$parent.$parent.getExportField"
19
- sqlurl="rs/logic/exportfile" sql-name="meterQuery" template-name='表具查询导出'
20
- :choose-col="true"></export-excel>
21
-
22
- <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>
23
- </div>
24
- </div>
25
- <div class="row" v-show="$parent.$parent.criteriaShow">
26
- <div class="col-sm-2">
27
- <label class="font_normal_body">客户编号</label>
28
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
29
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
30
- </div>
31
- <div class="col-sm-2">
32
- <label class="font_normal_body">客户名称</label>
33
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
34
- condition="f_user_name like '%{}%'" placeholder="客户名称">
35
- </div>
36
- <div class="col-sm-2">
37
- <label class="font_normal_body">客户电话</label>
38
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
39
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
40
- </div>
41
- <div class="col-sm-2">
42
- <label class="font_normal_body">客户地址</label>
43
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
44
- condition="f_address like '%{}%'" placeholder='客户地址'>
45
- </div>
46
- <div class="col-sm-2">
47
- <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;号</label>
48
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
49
- condition="f_meternumber like '%{}%'" placeholder='表号'>
50
- </div>
51
-
52
- <div class="col-sm-2">
53
- <label class="font_normal_body">卡&nbsp;&nbsp;&nbsp;&nbsp;号</label>
54
- <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
55
- condition="f_card_id like '%{}%'" placeholder='卡号'>
56
- </div>
57
-
58
- <div class="col-sm-2">
59
- <label class="font_normal_body">客户类型</label>
60
- <v-select :value.sync="model.f_user_type"
61
- :options='$parent.$parent.usertypes'
62
- @change="$parent.$parent.userTypeChange()"
63
- placeholder='请选择' v-model="model.f_user_type"
64
- condition="f_user_type = '{}'"
65
- close-on-select></v-select>
66
- </div>
67
- <div class="col-sm-2">
68
- <label class="font_normal_body">用气性质</label>
69
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
70
- :options='$parent.$parent.gasproperties' placeholder='请选择'
71
- condition="f_gasproperties = '{}'"
72
- close-on-select></v-select>
73
- </div>
74
- <div class="col-sm-2">
75
- <label class="font_normal_body">气价类型</label>
76
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
77
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
78
- condition="f_price_type = '{}'"
79
- close-on-select v-ref:type>
80
- </v-select>
81
- </div>
82
- <div class="col-sm-2">
83
- <label class="font_normal_body">气价名称</label>
84
- <v-select :value.sync="model.f_price_name"
85
- v-model="model.f_price_name"
86
- :options="$parent.$parent.getPricenames"
87
- placeholder='请选择'
88
- condition="f_price_name = '{}'"
89
- close-on-select></v-select>
90
- </div>
91
- <div class="col-sm-2">
92
- <label class="font_normal_body">气表分类</label>
93
- <v-select :value.sync="model.f_meter_classify"
94
- v-model="model.f_meter_classify"
95
- :options='$parent.$parent.metertypes' placeholder='请选择'
96
- condition="f_meter_classify = '{}'"
97
- close-on-select></v-select>
98
- </div>
99
- <div class="col-sm-2">
100
- <label class="font_normal_body">气表品牌</label>
101
- <v-select :value.sync="model.f_meter_brand"
102
- v-model="model.f_meter_brand"
103
- :options='$parent.$parent.meterbrands' placeholder='请选择'
104
- condition="f_meter_brand = '{}'"
105
- close-on-select></v-select>
106
- </div>
107
- <!--<div class="col-sm-2">-->
108
- <!--<label class="font_normal_body">气表品牌</label>-->
109
- <!--<v-select :value.sync="model.f_meter_brand"-->
110
- <!--v-model="model.f_meter_brand"-->
111
- <!--:options='$parent.$parent.meterbrands' placeholder='请选择'-->
112
- <!--condition="f_meter_brand = '{}'"-->
113
- <!--close-on-select></v-select>-->
114
- <!--</div>-->
115
- <div class="col-sm-2">
116
- <label class="font_normal_body">气表型号</label>
117
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_style"
118
- condition="f_meter_style like '%{}%'" placeholder='气表型号'>
119
- </div>
120
- <div class="col-sm-2">
121
- <label for="startDate" class="font_normal_body">开始日期</label>
122
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
123
- v-model="model.startDate"
124
- :value.sync="model.startDate"
125
- :format="'yyyy-MM-dd'"
126
- :show-reset-button="true"
127
- condition="f_open_date >= '{} 00:00:00'">
128
- </datepicker>
129
- </div>
130
- <div class="col-sm-2">
131
- <label for="endDate" class="font_normal_body">结束日期</label>
132
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
133
- v-model="model.endDate"
134
- :value.sync="model.endDate"
135
- :format="'yyyy-MM-dd'"
136
- :show-reset-button="true"
137
- condition="f_open_date <= '{} 23:59:59'">
138
- </datepicker>
139
- </div>
140
- <div class="col-sm-2">
141
- <label class="font_normal_body">壁&nbsp;&nbsp;挂炉</label>
142
- <v-select :value.sync="model.isbgl" v-model="model.isbgl"
143
- :options='$parent.$parent.bgl' placeholder='请选择'
144
- condition="isbgl = '{}'"
145
- close-on-select></v-select>
146
- </div>
147
-
148
- </div>
149
- </div>
150
- </criteria>
151
-
152
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :classname="$parent.classname">
153
- <template partial='head'>
154
- <tr>
155
- <th>
156
- <nobr>客户编号</nobr>
157
- </th>
158
- <th>
159
- <nobr>客户名称</nobr>
160
- </th>
161
- <th>
162
- <nobr>客户电话</nobr>
163
- </th>
164
- <th>
165
- <nobr>身份证号</nobr>
166
- </th>
167
- <th>
168
- <nobr>客户地址</nobr>
169
- </th>
170
- <th>
171
- <nobr>表上余额</nobr>
172
- </th>
173
- <th>
174
- <nobr>客户类型</nobr>
175
- </th>
176
- <th>
177
- <nobr>用气性质</nobr>
178
- </th>
179
- <th>
180
- <nobr>表号</nobr>
181
- </th>
182
- <th>
183
- <nobr>卡号</nobr>
184
- </th>
185
-
186
-
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
- </th>
199
- <th>
200
- <nobr>通气人</nobr>
201
- </th>
202
- <th>
203
- <nobr>通气时间</nobr>
204
- </th>
205
- <th>
206
- <nobr>建表时间</nobr>
207
- </th>
208
- <th>
209
- <nobr>气表状态</nobr>
210
- </th>
211
- <th>
212
- <nobr>是否壁挂炉</nobr>
213
- </th>
214
- </tr>
215
- </template>
216
- <template partial='body'>
217
- <td style="text-align: center;"><nobr>
218
- <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
219
- </nobr> </td>
220
- <td style="text-align: center;">
221
- <nobr>{{row.f_user_name}}</nobr>
222
- </td>
223
- <td style="text-align: center;">
224
- <nobr>{{row.f_user_phone}}</nobr>
225
- </td>
226
- <td style="text-align: center;">
227
- <nobr>{{row.f_idnumber}}</nobr>
228
- </td>
229
- <td style="text-align: center;">
230
- <nobr>{{row.f_address}}</nobr>
231
- </td>
232
- <td style="text-align: center;">
233
- <nobr>{{row.f_balance_amount}}</nobr>
234
- </td>
235
- <td style="text-align: center;">
236
- <nobr>{{row.f_user_type}}</nobr>
237
- </td>
238
- <td style="text-align: center;">
239
- <nobr>{{row.f_gasproperties}}</nobr>
240
- </td>
241
- <td style="text-align: center;">
242
- <nobr>{{row.f_meternumber}}</nobr>
243
- </td>
244
- <td style="text-align: center;">
245
- <nobr>{{row.f_card_id}}</nobr>
246
- </td>
247
-
248
-
249
- <td style="text-align: center;">
250
- <nobr>{{row.f_price_name}}</nobr>
251
- </td>
252
- <th>
253
- <nobr>{{row.value}}</nobr>
254
- </th>
255
- <td style="text-align: center;">
256
- <nobr>{{row.f_meter_brand}}</nobr>
257
- </td>
258
- <td style="text-align: center;">
259
- <nobr>{{row.f_meter_style}}</nobr>
260
- </td>
261
- <td style="text-align: center;">
262
- <nobr>{{row.f_gas_person}}</nobr>
263
- </td>
264
- <td style="text-align: center;">
265
- <nobr>{{row.f_gas_date}}</nobr>
266
- </td>
267
- <td style="text-align: center;">
268
- <nobr>{{row.f_input_date}}</nobr>
269
- </td>
270
- <td style="text-align: center;">
271
- <nobr>{{row.f_table_state}}</nobr>
272
- </td>
273
- <td style="text-align: center;">
274
- <nobr>{{row.isbgl}}</nobr>
275
- </td>
276
-
277
- </template>
278
- <template partial='foot'>
279
-
280
- </template>
281
- </data-grid>
282
- </criteria-paged>
283
-
284
- <table class="table-hover">
285
- <tr style="position: relative" class="table-bordered">
286
- <td
287
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
288
- 汇总信息
289
- </td>
290
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
291
- 表上余额合计&emsp;{{sumsmodel.f_balance_amount}}
292
- </td>
293
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
294
- 客户余额合计&emsp;{{sumsmodel.f_balance}}
295
- </td>
296
- </tr>
297
- </table>
298
-
299
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
300
- <!--<header slot="modal-header" class="modal-header text-center">-->
301
- <!--<h4 class="modal-title">打印列选择</h4>-->
302
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
303
- <!--<label for="f_generations" class="font-size">全选</label>-->
304
- <!--</header>-->
305
- <!--<article slot="modal-body">-->
306
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
307
- <!--<div class="col-sm-3" v-for="f in fields">-->
308
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
309
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
310
- <!--</div>-->
311
- <!--</div>-->
312
- <!--</article>-->
313
- <!--<footer slot="modal-footer" class="modal-footer">-->
314
- <!--<center>-->
315
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
316
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
317
- <!--<print-table :model='model' v-show="false" v-ref:print-->
318
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
319
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
320
- <!--:fields="modelval" :printpage="true">-->
321
- <!--</print-table>-->
322
- <!--</center>-->
323
- <!--</footer>-->
324
- <!--</modal>-->
325
- </div>
326
- <div v-if="show">
327
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
328
- </div>
329
- </div>
330
- </div>
331
- </div>
332
- </template>
333
-
334
- <script>
335
- import {PagedList} from 'vue-client'
336
- import exportConfig from '../config/exportConfig'
337
-
338
- let readySomething = async function (self) {
339
- // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
340
- // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
341
- // await self.$refs.paged.$refs.cri.search()
342
- await self.$MagLoadParams.loadParam()
343
- self.initParams()
344
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
345
- }
346
-
347
- export default {
348
- data() {
349
- return {
350
- model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0, f_balance_gas: 0}),
351
- criteriaShow: false,
352
- orgCondtionStr: '',
353
-
354
- modelval: [],
355
- printshow: false,
356
- all: false,
357
- fields: {},
358
- thead: '',
359
- tfoot: '',
360
- initres: {
361
- org:[this.$login.f.orgid],
362
- dep:[],
363
- user:[],
364
- },
365
- show:false,
366
- rowdata:{},
367
- meterbrands: [],
368
- pricenames: [],
369
- gasproperties:[],
370
- prices: [],
371
- //合计数据
372
- sumsmodel: {},
373
- f_filialeid: this.$login.f.f_orgid,
374
- selectfields:[],
375
- usertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
376
- metertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
377
- pricetypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
378
- }
379
- },
380
- ready() {
381
- readySomething(this).then(() => {
382
- this.$emit('ready')
383
- }).catch((error) => {
384
- this.$emit('error', error)
385
- })
386
- for(var item in exportConfig.dataReportConfig){
387
- this.selectfields.push(item)
388
- }
389
- },
390
- methods: {
391
- search(){
392
- this.$refs.paged.$refs.cri.search()
393
- },
394
- cancel() {
395
- this.show = false
396
- },
397
- showmsg(obj){
398
- this.rowdata=obj
399
- this.show=true
400
- },
401
- selfSearch(args) {
402
- if (!this.orgCondtionStr){
403
- args.condition = `${args.condition}` + ' and f_filialeid = ' + this.$login.f.orgid
404
- } else {
405
- args.condition = `${args.condition}` + this.orgCondtionStr
406
- }
407
- this.model.search(args.condition, args.model)
408
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
409
- },
410
- clear() {
411
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
412
- this.$refs.paged.$refs.cri.model[key] = ''
413
- })
414
- },
415
- hidden() {
416
- this.criteriaShow = !this.criteriaShow
417
- },
418
- getRes(condition) {
419
- this.orgCondtionStr = condition
420
- this.orgCondtionStr = this.orgCondtionStr.replace('f_orgid', 'f_filialeid')
421
- },
422
- stamp() {
423
- this.all = false
424
- //默认选择要打印的列
425
- this.modelval = defaultPrint.config
426
- this.fields = this.getfield
427
- console.log('所有打印字段', this.fields)
428
- this.printshow = true
429
- this.put()
430
- },
431
- put() {
432
- // 对Modelval进行排序
433
- this.sortModelval()
434
- this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
435
- for (let key of this.modelval) {
436
- this.thead += '<th>' + this.fields[key] + '</th>'
437
- }
438
- this.thead += '</tr>'
439
- },
440
- print() {
441
- this.$refs.print.PrintAsFile()
442
- this.printshow = false
443
- },
444
- close() {
445
- this.printshow = false
446
- this.all = false
447
- },
448
- userTypeChange () {
449
- this.gasproperties=[]
450
- if(this.$refs.paged.$refs.cri.model !==null) {
451
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
452
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
453
- }
454
- else{
455
- this.gasproperties =[{label: '全部', value: ''}]
456
- }
457
- },
458
- initParams() {
459
- // 初始化气表品牌
460
- let brandArr = []
461
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
462
- let temp = {}
463
- temp.label = item.label
464
- temp.value = item.value.f_meter_brand
465
- brandArr.push(temp)
466
- })
467
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
468
- //初始化气表价格
469
- this.prices = this.$MagGetSaleParam.getPrices();
470
- },
471
- // 对选择的列进行排序
472
- sortModelval() {
473
- let sortModel = []
474
- Object.keys(this.fields).forEach((key) => {
475
- if (this.modelval.includes(key)) {
476
- sortModel.push(key)
477
- }
478
- })
479
- this.modelval = sortModel
480
- console.log('选择的打印的字段', this.modelval)
481
- },
482
- async updateParams() {
483
- await this.$MagLoadParams.loadParam(this.f_filialeid)
484
- this.initParams()
485
- },
486
- },
487
- watch: {
488
- 'all'(val) {
489
- if (val) {
490
- this.modelval = this.bodyData
491
- } else {
492
- this.modelval = defaultPrint.config
493
- this.put()
494
- }
495
- },
496
- 'modelval.length'() {
497
- this.put()
498
- },
499
- 'orgCondtionStr'(val) {
500
- let res = val.match(/'(.*?)'/)
501
- console.log('正则提取:',res && res[1])
502
- if (res) {
503
- this.f_filialeid = res[1]
504
- this.updateParams()
505
- }
506
- }
507
- },
508
- computed: {
509
- getPricenames() {
510
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
511
- let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
512
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
513
- if(this.$refs.paged.$refs.cri.model !==null) {
514
- let rs = []
515
- let priceArr = []
516
- if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
517
- let params = {
518
- f_user_type: f_user_type[0],
519
- f_gasproperties: f_gasproperties[0],
520
- f_price_type: pricetype[0],
521
- filter: this.f_filialeid,
522
- prices: this.prices
523
- }
524
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
525
- let temp = {}
526
- temp.label = item.label
527
- temp.value = item.value.f_price_name
528
- priceArr.push(temp)
529
- })
530
- rs = [{label: '全部', value: ''}, ...priceArr]
531
- }
532
- if (rs.length === 0) {
533
- console.log('rs读出来是空')
534
- this.$refs.paged.$refs.cri.model.f_price_name = ''
535
- }
536
- return rs
537
- }
538
- },
539
- getCondition() {
540
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
541
- },
542
- getfield() {
543
- let data = {}
544
- this.bodyData.forEach((value, index) => {
545
- data[this.bodyData[index]] = this.headData[index]
546
- })
547
- //合计字段打印
548
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
549
- if (this.sumsmodel) {
550
- Object.keys(this.sumsmodel).forEach((key) => {
551
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
552
- })
553
- } else {
554
- this.tfoot += '暂无'
555
- }
556
- this.tfoot += '</th></tr>'
557
- return data
558
- },
559
- getExportField() {
560
- return exportConfig.meterConfig
561
- },
562
- areas() {
563
- let rs = []
564
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
565
- let temp = {
566
- label: this.$login.f.f_allArea[i].label,
567
- value: this.$login.f.f_allArea[i].label
568
- }
569
- rs.push(temp)
570
- }
571
- return [{label: '全部', value: ''}, ...rs]
572
- },
573
- sliceArea() {
574
- let rs = []
575
- if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
576
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
577
- if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
578
- rs = this.$login.f.f_allArea[i].value
579
- }
580
- }
581
- }
582
- return [{label: '全部', value: ''}, ...rs]
583
- },
584
-
585
- tablestate() {
586
- return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
587
- },
588
- bgl(){
589
- return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
590
- }
591
- }
592
- }
593
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <div style="flex:1;" class="flex" v-if="!show">
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
11
+
12
+ <div class="span" style="float:right;">
13
+ <button class="button_search button_spacing" @click="search()">查询</button>
14
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
15
+ <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
16
+
17
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
18
+ :field="$parent.$parent.getExportField"
19
+ sqlurl="rs/logic/exportfile" sql-name="meterQuery" template-name='表具查询导出'
20
+ :choose-col="true"></export-excel>
21
+
22
+ <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>
23
+ </div>
24
+ </div>
25
+ <div class="row" v-show="$parent.$parent.criteriaShow">
26
+ <div class="col-sm-2">
27
+ <label class="font_normal_body">客户编号</label>
28
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
29
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
30
+ </div>
31
+ <div class="col-sm-2">
32
+ <label class="font_normal_body">客户名称</label>
33
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
34
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
35
+ </div>
36
+ <div class="col-sm-2">
37
+ <label class="font_normal_body">客户电话</label>
38
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
39
+ condition="f_user_phone like '%{}%'" placeholder="客户电话">
40
+ </div>
41
+ <div class="col-sm-2">
42
+ <label class="font_normal_body">客户地址</label>
43
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
44
+ condition="f_address like '%{}%'" placeholder='客户地址'>
45
+ </div>
46
+ <div class="col-sm-2">
47
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;号</label>
48
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
49
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
50
+ </div>
51
+
52
+ <div class="col-sm-2">
53
+ <label class="font_normal_body">卡&nbsp;&nbsp;&nbsp;&nbsp;号</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
55
+ condition="f_card_id like '%{}%'" placeholder='卡号'>
56
+ </div>
57
+
58
+ <div class="col-sm-2">
59
+ <label class="font_normal_body">客户类型</label>
60
+ <v-select :value.sync="model.f_user_type"
61
+ :options='$parent.$parent.usertypes'
62
+ @change="$parent.$parent.userTypeChange()"
63
+ placeholder='请选择' v-model="model.f_user_type"
64
+ condition="f_user_type = '{}'"
65
+ close-on-select></v-select>
66
+ </div>
67
+ <div class="col-sm-2">
68
+ <label class="font_normal_body">用气性质</label>
69
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
70
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
71
+ condition="f_gasproperties = '{}'"
72
+ close-on-select></v-select>
73
+ </div>
74
+ <div class="col-sm-2">
75
+ <label class="font_normal_body">气价类型</label>
76
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
77
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
78
+ condition="f_price_type = '{}'"
79
+ close-on-select v-ref:type>
80
+ </v-select>
81
+ </div>
82
+ <div class="col-sm-2">
83
+ <label class="font_normal_body">气价名称</label>
84
+ <v-select :value.sync="model.f_price_name"
85
+ v-model="model.f_price_name"
86
+ :options="$parent.$parent.getPricenames"
87
+ placeholder='请选择'
88
+ condition="f_price_name = '{}'"
89
+ close-on-select></v-select>
90
+ </div>
91
+ <div class="col-sm-2">
92
+ <label class="font_normal_body">气表分类</label>
93
+ <v-select :value.sync="model.f_meter_classify"
94
+ v-model="model.f_meter_classify"
95
+ :options='$parent.$parent.metertypes' placeholder='请选择'
96
+ condition="f_meter_classify = '{}'"
97
+ close-on-select></v-select>
98
+ </div>
99
+ <div class="col-sm-2">
100
+ <label class="font_normal_body">气表品牌</label>
101
+ <v-select :value.sync="model.f_meter_brand"
102
+ v-model="model.f_meter_brand"
103
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
104
+ condition="f_meter_brand = '{}'"
105
+ close-on-select></v-select>
106
+ </div>
107
+ <!--<div class="col-sm-2">-->
108
+ <!--<label class="font_normal_body">气表品牌</label>-->
109
+ <!--<v-select :value.sync="model.f_meter_brand"-->
110
+ <!--v-model="model.f_meter_brand"-->
111
+ <!--:options='$parent.$parent.meterbrands' placeholder='请选择'-->
112
+ <!--condition="f_meter_brand = '{}'"-->
113
+ <!--close-on-select></v-select>-->
114
+ <!--</div>-->
115
+ <div class="col-sm-2">
116
+ <label class="font_normal_body">气表型号</label>
117
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meter_style"
118
+ condition="f_meter_style like '%{}%'" placeholder='气表型号'>
119
+ </div>
120
+ <div class="col-sm-2">
121
+ <label for="startDate" class="font_normal_body">开始日期</label>
122
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
123
+ v-model="model.startDate"
124
+ :value.sync="model.startDate"
125
+ :format="'yyyy-MM-dd'"
126
+ :show-reset-button="true"
127
+ condition="f_open_date >= '{} 00:00:00'">
128
+ </datepicker>
129
+ </div>
130
+ <div class="col-sm-2">
131
+ <label for="endDate" class="font_normal_body">结束日期</label>
132
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
133
+ v-model="model.endDate"
134
+ :value.sync="model.endDate"
135
+ :format="'yyyy-MM-dd'"
136
+ :show-reset-button="true"
137
+ condition="f_open_date <= '{} 23:59:59'">
138
+ </datepicker>
139
+ </div>
140
+ <div class="col-sm-2">
141
+ <label class="font_normal_body">壁&nbsp;&nbsp;挂炉</label>
142
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl"
143
+ :options='$parent.$parent.bgl' placeholder='请选择'
144
+ condition="isbgl = '{}'"
145
+ close-on-select></v-select>
146
+ </div>
147
+
148
+ </div>
149
+ </div>
150
+ </criteria>
151
+
152
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" :classname="$parent.classname">
153
+ <template partial='head'>
154
+ <tr>
155
+ <th>
156
+ <nobr>客户编号</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>客户名称</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>客户电话</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>身份证号</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>客户地址</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>表上余额</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>客户类型</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>用气性质</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>表号</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>卡号</nobr>
184
+ </th>
185
+
186
+
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
+ </th>
199
+ <th>
200
+ <nobr>通气人</nobr>
201
+ </th>
202
+ <th>
203
+ <nobr>通气时间</nobr>
204
+ </th>
205
+ <th>
206
+ <nobr>建表时间</nobr>
207
+ </th>
208
+ <th>
209
+ <nobr>气表状态</nobr>
210
+ </th>
211
+ <th>
212
+ <nobr>是否壁挂炉</nobr>
213
+ </th>
214
+ </tr>
215
+ </template>
216
+ <template partial='body'>
217
+ <td style="text-align: center;"><nobr>
218
+ <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
219
+ </nobr> </td>
220
+ <td style="text-align: center;">
221
+ <nobr>{{row.f_user_name}}</nobr>
222
+ </td>
223
+ <td style="text-align: center;">
224
+ <nobr>{{row.f_user_phone}}</nobr>
225
+ </td>
226
+ <td style="text-align: center;">
227
+ <nobr>{{row.f_idnumber}}</nobr>
228
+ </td>
229
+ <td style="text-align: center;">
230
+ <nobr>{{row.f_address}}</nobr>
231
+ </td>
232
+ <td style="text-align: center;">
233
+ <nobr>{{row.f_balance_amount}}</nobr>
234
+ </td>
235
+ <td style="text-align: center;">
236
+ <nobr>{{row.f_user_type}}</nobr>
237
+ </td>
238
+ <td style="text-align: center;">
239
+ <nobr>{{row.f_gasproperties}}</nobr>
240
+ </td>
241
+ <td style="text-align: center;">
242
+ <nobr>{{row.f_meternumber}}</nobr>
243
+ </td>
244
+ <td style="text-align: center;">
245
+ <nobr>{{row.f_card_id}}</nobr>
246
+ </td>
247
+
248
+
249
+ <td style="text-align: center;">
250
+ <nobr>{{row.f_price_name}}</nobr>
251
+ </td>
252
+ <th>
253
+ <nobr>{{row.value}}</nobr>
254
+ </th>
255
+ <td style="text-align: center;">
256
+ <nobr>{{row.f_meter_brand}}</nobr>
257
+ </td>
258
+ <td style="text-align: center;">
259
+ <nobr>{{row.f_meter_style}}</nobr>
260
+ </td>
261
+ <td style="text-align: center;">
262
+ <nobr>{{row.f_gas_person}}</nobr>
263
+ </td>
264
+ <td style="text-align: center;">
265
+ <nobr>{{row.f_gas_date}}</nobr>
266
+ </td>
267
+ <td style="text-align: center;">
268
+ <nobr>{{row.f_input_date}}</nobr>
269
+ </td>
270
+ <td style="text-align: center;">
271
+ <nobr>{{row.f_table_state}}</nobr>
272
+ </td>
273
+ <td style="text-align: center;">
274
+ <nobr>{{row.isbgl}}</nobr>
275
+ </td>
276
+
277
+ </template>
278
+ <template partial='foot'>
279
+
280
+ </template>
281
+ </data-grid>
282
+ </criteria-paged>
283
+
284
+ <table class="table-hover">
285
+ <tr style="position: relative" class="table-bordered">
286
+ <td
287
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
288
+ 汇总信息
289
+ </td>
290
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
291
+ 表上余额合计&emsp;{{sumsmodel.f_balance_amount}}
292
+ </td>
293
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
294
+ 客户余额合计&emsp;{{sumsmodel.f_balance}}
295
+ </td>
296
+ </tr>
297
+ </table>
298
+
299
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
300
+ <!--<header slot="modal-header" class="modal-header text-center">-->
301
+ <!--<h4 class="modal-title">打印列选择</h4>-->
302
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
303
+ <!--<label for="f_generations" class="font-size">全选</label>-->
304
+ <!--</header>-->
305
+ <!--<article slot="modal-body">-->
306
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
307
+ <!--<div class="col-sm-3" v-for="f in fields">-->
308
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
309
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
310
+ <!--</div>-->
311
+ <!--</div>-->
312
+ <!--</article>-->
313
+ <!--<footer slot="modal-footer" class="modal-footer">-->
314
+ <!--<center>-->
315
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
316
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
317
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
318
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
319
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
320
+ <!--:fields="modelval" :printpage="true">-->
321
+ <!--</print-table>-->
322
+ <!--</center>-->
323
+ <!--</footer>-->
324
+ <!--</modal>-->
325
+ </div>
326
+ <div v-if="show">
327
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ </template>
333
+
334
+ <script>
335
+ import {PagedList} from 'vue-client'
336
+ import exportConfig from '../config/exportConfig'
337
+
338
+ let readySomething = async function (self) {
339
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
340
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
341
+ // await self.$refs.paged.$refs.cri.search()
342
+ await self.$MagLoadParams.loadParam()
343
+ self.initParams()
344
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
345
+ }
346
+
347
+ export default {
348
+ data() {
349
+ return {
350
+ model: new PagedList('rs/sql/meterQuery', 20, {}, {f_balance_amount: 0, f_balance_gas: 0}),
351
+ criteriaShow: false,
352
+ orgCondtionStr: '',
353
+
354
+ modelval: [],
355
+ printshow: false,
356
+ all: false,
357
+ fields: {},
358
+ thead: '',
359
+ tfoot: '',
360
+ initres: {
361
+ org:[this.$login.f.orgid],
362
+ dep:[],
363
+ user:[],
364
+ },
365
+ show:false,
366
+ rowdata:{},
367
+ meterbrands: [],
368
+ pricenames: [],
369
+ gasproperties:[],
370
+ prices: [],
371
+ //合计数据
372
+ sumsmodel: {},
373
+ f_filialeid: this.$login.f.f_orgid,
374
+ selectfields:[],
375
+ usertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')],
376
+ metertypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')],
377
+ pricetypes:[{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
378
+ }
379
+ },
380
+ ready() {
381
+ readySomething(this).then(() => {
382
+ this.$emit('ready')
383
+ }).catch((error) => {
384
+ this.$emit('error', error)
385
+ })
386
+ for(var item in exportConfig.dataReportConfig){
387
+ this.selectfields.push(item)
388
+ }
389
+ },
390
+ methods: {
391
+ search(){
392
+ this.$refs.paged.$refs.cri.search()
393
+ },
394
+ cancel() {
395
+ this.show = false
396
+ },
397
+ showmsg(obj){
398
+ this.rowdata=obj
399
+ this.show=true
400
+ },
401
+ selfSearch(args) {
402
+ if (!this.orgCondtionStr){
403
+ args.condition = `${args.condition}` + ' and f_filialeid = ' + this.$login.f.orgid
404
+ } else {
405
+ args.condition = `${args.condition}` + this.orgCondtionStr
406
+ }
407
+ this.model.search(args.condition, args.model)
408
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
409
+ },
410
+ clear() {
411
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
412
+ this.$refs.paged.$refs.cri.model[key] = ''
413
+ })
414
+ },
415
+ hidden() {
416
+ this.criteriaShow = !this.criteriaShow
417
+ },
418
+ getRes(condition) {
419
+ this.orgCondtionStr = condition
420
+ this.orgCondtionStr = this.orgCondtionStr.replace('f_orgid', 'f_filialeid')
421
+ },
422
+ stamp() {
423
+ this.all = false
424
+ //默认选择要打印的列
425
+ this.modelval = defaultPrint.config
426
+ this.fields = this.getfield
427
+ console.log('所有打印字段', this.fields)
428
+ this.printshow = true
429
+ this.put()
430
+ },
431
+ put() {
432
+ // 对Modelval进行排序
433
+ this.sortModelval()
434
+ this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
435
+ for (let key of this.modelval) {
436
+ this.thead += '<th>' + this.fields[key] + '</th>'
437
+ }
438
+ this.thead += '</tr>'
439
+ },
440
+ print() {
441
+ this.$refs.print.PrintAsFile()
442
+ this.printshow = false
443
+ },
444
+ close() {
445
+ this.printshow = false
446
+ this.all = false
447
+ },
448
+ userTypeChange () {
449
+ this.gasproperties=[]
450
+ if(this.$refs.paged.$refs.cri.model !==null) {
451
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
452
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
453
+ }
454
+ else{
455
+ this.gasproperties =[{label: '全部', value: ''}]
456
+ }
457
+ },
458
+ initParams() {
459
+ // 初始化气表品牌
460
+ let brandArr = []
461
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
462
+ let temp = {}
463
+ temp.label = item.label
464
+ temp.value = item.value.f_meter_brand
465
+ brandArr.push(temp)
466
+ })
467
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
468
+ //初始化气表价格
469
+ this.prices = this.$MagGetSaleParam.getPrices();
470
+ },
471
+ // 对选择的列进行排序
472
+ sortModelval() {
473
+ let sortModel = []
474
+ Object.keys(this.fields).forEach((key) => {
475
+ if (this.modelval.includes(key)) {
476
+ sortModel.push(key)
477
+ }
478
+ })
479
+ this.modelval = sortModel
480
+ console.log('选择的打印的字段', this.modelval)
481
+ },
482
+ async updateParams() {
483
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
484
+ this.initParams()
485
+ },
486
+ },
487
+ watch: {
488
+ 'all'(val) {
489
+ if (val) {
490
+ this.modelval = this.bodyData
491
+ } else {
492
+ this.modelval = defaultPrint.config
493
+ this.put()
494
+ }
495
+ },
496
+ 'modelval.length'() {
497
+ this.put()
498
+ },
499
+ 'orgCondtionStr'(val) {
500
+ let res = val.match(/'(.*?)'/)
501
+ console.log('正则提取:',res && res[1])
502
+ if (res) {
503
+ this.f_filialeid = res[1]
504
+ this.updateParams()
505
+ }
506
+ }
507
+ },
508
+ computed: {
509
+ getPricenames() {
510
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
511
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
512
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
513
+ if(this.$refs.paged.$refs.cri.model !==null) {
514
+ let rs = []
515
+ let priceArr = []
516
+ if (f_user_type.length > 0 && f_gasproperties.length > 0 && pricetype.length >0) {
517
+ let params = {
518
+ f_user_type: f_user_type[0],
519
+ f_gasproperties: f_gasproperties[0],
520
+ f_price_type: pricetype[0],
521
+ filter: this.f_filialeid,
522
+ prices: this.prices
523
+ }
524
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
525
+ let temp = {}
526
+ temp.label = item.label
527
+ temp.value = item.value.f_price_name
528
+ priceArr.push(temp)
529
+ })
530
+ rs = [{label: '全部', value: ''}, ...priceArr]
531
+ }
532
+ if (rs.length === 0) {
533
+ console.log('rs读出来是空')
534
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
535
+ }
536
+ return rs
537
+ }
538
+ },
539
+ getCondition() {
540
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
541
+ },
542
+ getfield() {
543
+ let data = {}
544
+ this.bodyData.forEach((value, index) => {
545
+ data[this.bodyData[index]] = this.headData[index]
546
+ })
547
+ //合计字段打印
548
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
549
+ if (this.sumsmodel) {
550
+ Object.keys(this.sumsmodel).forEach((key) => {
551
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
552
+ })
553
+ } else {
554
+ this.tfoot += '暂无'
555
+ }
556
+ this.tfoot += '</th></tr>'
557
+ return data
558
+ },
559
+ getExportField() {
560
+ return exportConfig.meterConfig
561
+ },
562
+ areas() {
563
+ let rs = []
564
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
565
+ let temp = {
566
+ label: this.$login.f.f_allArea[i].label,
567
+ value: this.$login.f.f_allArea[i].label
568
+ }
569
+ rs.push(temp)
570
+ }
571
+ return [{label: '全部', value: ''}, ...rs]
572
+ },
573
+ sliceArea() {
574
+ let rs = []
575
+ if (this.$refs.paged.$refs.cri.model.f_area.length > 0) {
576
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
577
+ if (this.$login.f.f_allArea[i].label === this.$refs.paged.$refs.cri.model.f_area[0]) {
578
+ rs = this.$login.f.f_allArea[i].value
579
+ }
580
+ }
581
+ }
582
+ return [{label: '全部', value: ''}, ...rs]
583
+ },
584
+
585
+ tablestate() {
586
+ return [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}]
587
+ },
588
+ bgl(){
589
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
590
+ }
591
+ }
592
+ }
593
+ </script>