manage-client 3.3.2 → 3.3.3

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 (63) hide show
  1. package/build/dev-server.js +180 -180
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  4. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  5. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  6. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  7. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  8. package/src/filiale/macheng/config/exportConfig.js +1 -1
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/CancellationQuery.vue +426 -0
  14. package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
  15. package/src/filiale/shanxian/DeviceQuery.vue +586 -0
  16. package/src/filiale/shanxian/DisableQuery.vue +528 -0
  17. package/src/filiale/shanxian/EnableQuery.vue +461 -0
  18. package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
  19. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  20. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  21. package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
  22. package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
  23. package/src/filiale/shanxian/LostContactAnalysisList.vue +633 -632
  24. package/src/filiale/shanxian/MeterQuery.vue +968 -0
  25. package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
  26. package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
  27. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  28. package/src/filiale/shanxian/ReverseQuery.vue +454 -0
  29. package/src/filiale/shanxian/TransferQuery.vue +469 -0
  30. package/src/filiale/shanxian/UserGasAll.vue +15 -14
  31. package/src/filiale/shanxian/UserLostContactAnalysis.vue +584 -583
  32. package/src/filiale/shanxian/UserQuery.vue +960 -959
  33. package/src/filiale/shanxian/config/exportConfig.js +100 -100
  34. package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
  35. package/src/filiale/shanxian/sale.js +46 -26
  36. package/src/filiale/shanxian/webmeterManage.js +4 -0
  37. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  38. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  39. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  40. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  41. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  42. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  43. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  44. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  45. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  46. package/src/filiale/wenxi/MeterQuery.vue +937 -964
  47. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  48. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  49. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  50. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  51. package/src/filiale/wenxi/sale.js +24 -24
  52. package/src/filiale/wenxi/webmeterManage.js +13 -13
  53. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  54. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  55. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  56. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  57. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  58. package/src/filiale/xinkang/reportManage.js +15 -15
  59. package/src/filiale/xinkang/sale.js +13 -13
  60. package/src/filiale/xinkang/webmeterManage.js +9 -9
  61. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  62. package/src/main.js +66 -72
  63. package/lib/package_2022-12-01-14-30-50.json +0 -109
@@ -0,0 +1,731 @@
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="rs/logic/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">{{$parent.$parent.usertitle}}编号</label>
78
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
79
+ condition="f_userinfo_code = '{}' " placeholder={{$parent.$parent.usertitle}}编号>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">{{$parent.$parent.usertitle}}名称</label>
83
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
84
+ condition="f_user_name like '%{}%'" placeholder={{$parent.$parent.usertitle}}名称>
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">{{$parent.$parent.usertitle}}地址</label>
106
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
107
+ condition="f_address like '%{}%'" placeholder={{$parent.$parent.usertitle}}地址>
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 like '%{}%'" 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="参数名称:用户类型">{{$parent.$parent.usertitle}}类型</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">{{$parent.$parent.usertitle}}状态</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_gasproperties" v-model="model.f_gasproperties"
141
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
142
+ condition="f_gasproperties = '{}'"
143
+ close-on-select></v-select>
144
+ </div>
145
+ <!--表册片区-->
146
+ <div class="col-sm-2 form-group">
147
+ <label class="font_normal_body">表册片区</label>
148
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
149
+ @change="$parent.$parent.inputtorchange"
150
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
151
+ style="width:60%"
152
+ close-on-select
153
+ condition="f_book_slice_area = '{}'"></v-select>
154
+ </div>
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
157
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
158
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
159
+ style="width:60%" :multiple="true"
160
+ condition="f_meter_book_num in {}"></v-select>
161
+ </div>
162
+ <div class="col-sm-2 form-group">
163
+ <label class="font_normal_body">气表品牌</label>
164
+ <v-select :value.sync="model.f_meter_brand" multiple
165
+ v-model="model.f_meter_brand"
166
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
167
+ condition="f_meter_brand in {}"
168
+ close-on-select></v-select>
169
+ </div>
170
+ </div>
171
+ </div>
172
+ </criteria>
173
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
174
+ <template partial='head'>
175
+ <tr>
176
+ <th>
177
+ <nobr>{{$parent.$parent.$parent.usertitle}}编号</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>{{$parent.$parent.$parent.usertitle}}名称</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>档案编号</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>{{$parent.$parent.$parent.usertitle}}电话</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>证件类型</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>证件号码</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>小区</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>{{$parent.$parent.$parent.usertitle}}地址</nobr>
199
+ </th>
200
+ <th>
201
+ <nobr>{{$parent.$parent.$parent.usertitle}}类型</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>用气性质</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>表号</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>气表品牌</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>气表类型</nobr>
214
+ </th>
215
+ <th>
216
+ <nobr>气价详情</nobr>
217
+ </th>
218
+ <!--<th><nobr>气表底数</nobr></th>-->
219
+ <!--<th><nobr>表上余额</nobr></th>-->
220
+ <!--<th><nobr>账户余额</nobr></th>-->
221
+ <th>
222
+ <nobr>预购气量</nobr>
223
+ </th>
224
+ <th>
225
+ <nobr>预购金额</nobr>
226
+ </th>
227
+ <th>
228
+ <nobr>实交金额</nobr>
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 title="抄表区间间隔天数">
243
+ <nobr>天数</nobr>
244
+ </th>
245
+ <th>
246
+ <nobr>用气量</nobr>
247
+ </th>
248
+ <th>
249
+ <nobr>用气金额</nobr>
250
+ </th>
251
+ <th>
252
+ <nobr>建档日期</nobr>
253
+ </th>
254
+ </tr>
255
+ </template>
256
+ <template partial='body'>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_userinfo_code}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_user_name}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_user_phone}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_credentials}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_idnumber}}</nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr>{{row.f_residential_area}}</nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.f_address}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.f_user_type}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_gasproperties}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_meternumber}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_meter_brand}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_meter_classify}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_price_value}}</nobr>
298
+ </td>
299
+ <!--<td style="text-align: center;">-->
300
+ <!--<nobr>{{row.f_meter_base}}</nobr>-->
301
+ <!--</td>-->
302
+ <!--<td style="text-align: center;">-->
303
+ <!--<nobr>{{row.f_balance_amount}}</nobr>-->
304
+ <!--</td>-->
305
+ <!--<td style="text-align: center;">-->
306
+ <!--<nobr>{{row.f_balance}}</nobr>-->
307
+ <!--</td>-->
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.f_pregas}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_preamount}}</nobr>
313
+ </td>
314
+ <td style="text-align: center;">
315
+ <nobr>{{row.f_collection}}</nobr>
316
+ </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{row.f_inputtor}}</nobr>
319
+ </td>
320
+ <td style="text-align: center;">
321
+ <nobr>{{row.f_book_slice_area}}</nobr>
322
+ </td>
323
+ <td style="text-align: center;">
324
+ <nobr>{{row.f_hand_number}}</nobr>
325
+ </td>
326
+ <td style="text-align: center;">
327
+ <nobr>{{row.f_date}}</nobr>
328
+ </td>
329
+ <td style="text-align: center;" title="抄表区间间隔天数">
330
+ <nobr>{{row.f_input_day}}</nobr>
331
+ </td>
332
+ <td style="text-align: center;">
333
+ <nobr>{{row.f_oughtamount}}</nobr>
334
+ </td>
335
+ <td style="text-align: center;">
336
+ <nobr>{{row.f_oughtfee}}</nobr>
337
+ </td>
338
+ <td style="text-align: center;">
339
+ <nobr>{{row.f_createfile_date}}</nobr>
340
+ </td>
341
+ </template>
342
+ <template partial='foot'></template>
343
+ </data-grid>
344
+ </criteria-paged>
345
+ <table class="table-hover">
346
+ <tr style="position: relative" class="table-bordered">
347
+ <td
348
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
349
+ 汇总信息
350
+ </td>
351
+ <td
352
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
353
+ 预购气量合计:&emsp;{{sumsmodel.f_pregas}}
354
+ </td>
355
+ <td
356
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
357
+ 预购金额合计:&emsp;{{sumsmodel.f_preamount}}
358
+ </td>
359
+ <td
360
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
361
+ 实交金额合计:&emsp;{{sumsmodel.f_collection}}
362
+ </td>
363
+ <td
364
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
365
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
366
+ </td>
367
+ <td
368
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
369
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
370
+ </td>
371
+ </tr>
372
+ </table>
373
+ </div>
374
+ <div v-if="show">
375
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
376
+ </div>
377
+ </div>
378
+ </div>
379
+ </template>
380
+ <script>
381
+ import {HttpResetClass, PagedList} from 'vue-client'
382
+ import defaultPrint from './config/DefaultPrint'
383
+ import exportConfig from './config/exportConfig'
384
+
385
+
386
+ let readySomething = async function (self) {
387
+ //加载抄表册
388
+ self.initmeterbook();
389
+ self.initSlice(self.$login.f.orgid)
390
+
391
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
392
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
393
+ await self.$MagLoadParams.loadParam()
394
+ self.initParams()
395
+ self.getaddress()
396
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
397
+ }
398
+ export default {
399
+ title: '用气查询',
400
+ name: 'AddMaterial',
401
+ data () {
402
+ return {
403
+ other: [],
404
+ footer: [],
405
+ model: new PagedList('rs/sql/FMYgasQuery', 30, {
406
+ startDate: 'this.model.startDate != null && this.model.startDate != "" ? this.model.startDate : this.model.startHandDate',
407
+ endDate: 'this.model.endDate != null && this.model.endDate != "" ? this.model.endDate : this.model.endHandDate'
408
+ }, {
409
+ f_pregas: 0,
410
+ f_preamount: 0,
411
+ f_collection: 0,
412
+ f_oughtamount: 0,
413
+ f_oughtfee: 0
414
+ }),
415
+ initres: {
416
+ org: [this.$login.f.orgid],
417
+ dep: [],
418
+ user: [],
419
+ },
420
+ gasproperties: [],
421
+ residentialArea: [],
422
+ f_filialeid: this.$login.f.orgid,
423
+ show: false,
424
+ rowdata: {},
425
+ criteriaShow: false,
426
+ orgCondtionStr: '',
427
+ modelval: [],
428
+ meterbrands: [],
429
+ printshow: false,
430
+ all: false,
431
+ fields: {},
432
+ thead: '',
433
+ tfoot: '',
434
+ //表册片区
435
+ bookSlice:[{label: '全部',value: ''}],
436
+ // 下拉框
437
+
438
+ //合计数据
439
+ sumsmodel: {},
440
+ defaultfield: [],
441
+ // 使用类型,壁挂炉
442
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
443
+ userstates: this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
444
+ usertitle: this.$appdata.getSingleValue('用户名称前缀') ? this.$appdata.getSingleValue('用户名称前缀') : '客户',
445
+ meterbooks: [{label: '全部',value: ''}], //抄表册
446
+ tempfalg :false,
447
+ lastorgstr:'',
448
+ allorgid:[],
449
+ }
450
+ },
451
+ ready () {
452
+ readySomething(this)
453
+ },
454
+ methods: {
455
+ initParams(){
456
+ //初始化气表品牌
457
+ let brandArr = []
458
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
459
+ let temp = {}
460
+ temp.label = item.label
461
+ temp.value = item.value.f_meter_brand
462
+ brandArr.push(temp)
463
+ })
464
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
465
+ },
466
+ //初始化片区
467
+ async initSlice (val) {
468
+ if (val) {
469
+ let getAllArea = await this.$resetpost('/rs/search', {
470
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
471
+ userid: this.$login.f.id
472
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
473
+ let arr = getAllArea.data.filter((res) => {
474
+ return res.parentid == val
475
+ })
476
+ this.bookSlice = []
477
+ arr.forEach((res) => {
478
+ this.bookSlice.push({label: res.name, value: res.name})
479
+ })
480
+ }
481
+ },
482
+ //表册片区和抄表册关联
483
+ async inputtorchange(){
484
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
485
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
486
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
487
+ if((val2.length>0)){
488
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
489
+ if(val2[0]) {
490
+ condition = condition + ` and f_book_slice_area = '${val2}' `
491
+ }
492
+ let param={
493
+ items:'*',
494
+ tablename:'t_meter_book',
495
+ condition:condition,
496
+ orderitem:'id'
497
+ }
498
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
499
+ if (getMeterBooks.data) {
500
+ if(getMeterBooks.data.length >0){
501
+ let rs = [];
502
+ getMeterBooks.data.forEach((item)=>{
503
+ let temp = {
504
+ label:item.f_book_name,
505
+ value:item.id
506
+ };
507
+ rs.push(temp);
508
+
509
+ })
510
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
511
+ }else{
512
+
513
+ this.meterbooks = [{label: '全部',value: ''}];
514
+ }
515
+ }
516
+ }else{
517
+ this.meterbooks = [{label: '全部',value: ''}];
518
+ this.initmeterbook();
519
+ }
520
+ },
521
+ async getaddress(){
522
+ let HttpReset = new HttpResetClass()
523
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
524
+ data: {
525
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
526
+ }
527
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
528
+ console.log('小区',data)
529
+ let house = [{label: '全部', value: ''}]
530
+ for (let row of data.data){
531
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
532
+ }
533
+ this.residentialArea = house
534
+ },
535
+ async initmeterbook(orgstr){
536
+ if(orgstr == null ){
537
+ orgstr = this.f_filialeid;
538
+ }
539
+ //获取新的抄表册,先去清理所有的抄表册
540
+ this.$GetSaleParam.meterbooks = [];
541
+ //开始加载新的抄表册
542
+ await this.$LoadParams.loadMeterBook(orgstr)
543
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
544
+ },
545
+ getotherfooter () {
546
+ this.other = [];
547
+ this.footer = [];
548
+ // let exportdata = this.getCondition;
549
+ let otherInData = [];
550
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
551
+ let footerData = [], exportfield = this.getfield;
552
+ footerData.push("合计");
553
+ let self = this;
554
+ for (var field in self.sumsmodel) {
555
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
556
+ }
557
+ this.footer.push(footerData);
558
+ this.other.push(otherInData);
559
+ },
560
+ userTypeChange () {
561
+ this.gasproperties = []
562
+ if (this.$refs.paged.$refs.cri.model !== null) {
563
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
564
+
565
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
566
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
567
+ // this.gasproperties.push({label: '全部', value: ''})
568
+ } else {
569
+ this.gasproperties = [{label: '全部', value: ''}]
570
+ }
571
+ },
572
+ search () {
573
+ this.$refs.paged.$refs.cri.search()
574
+ },
575
+ cancel () {
576
+ this.show = false
577
+ },
578
+ selfSearch (args) {
579
+ args.condition = `${args.condition} ` + this.orgCondtionStr
580
+ let con = '1=1'
581
+ let mod =this.$refs.paged.$refs.cri.model
582
+ if(mod.startDate != null && mod.startDate != '') {
583
+ con += ` and f_input_date >= '${mod.startDate}'`
584
+ }
585
+ if(mod.endDate != null && mod.endDate != '') {
586
+ con += ` and f_input_date <= '${mod.endDate}'`
587
+ }
588
+ if(mod.startHandDate != null && mod.startHandDate != '') {
589
+ con += ` and f_hand_date >= '${mod.startHandDate}'`
590
+ }
591
+ if(mod.endHandDate != null && mod.endHandDate != '') {
592
+ con += ` and f_hand_date <= '${mod.endHandDate}'`
593
+ }
594
+ this.model.search(args.condition, args.model,con)
595
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
596
+ },
597
+ clear () {
598
+ //清空部门和人员
599
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
600
+ //部门和人员变为全选
601
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
602
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
603
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
604
+ this.$refs.paged.$refs.cri.model[key] = []
605
+ })
606
+ },
607
+ show () {
608
+ this.criteriaShow = true
609
+ },
610
+ hidden () {
611
+ this.criteriaShow = !this.criteriaShow
612
+ },
613
+ showmsg (obj) {
614
+ this.rowdata = obj
615
+ this.show = true
616
+ },
617
+ async getRes(condition,obj) {
618
+ this.orgCondtionStr = condition
619
+
620
+ },
621
+ stamp () {
622
+ this.all = false
623
+ //默认选择要打印的列
624
+ this.modelval = defaultPrint.config
625
+ this.fields = this.getfield
626
+ console.log('所有打印字段', this.fields)
627
+ this.printshow = true
628
+ this.put()
629
+ },
630
+ put () {
631
+ // 对Modelval进行排序
632
+ this.sortModelval()
633
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
634
+ for (let key of this.modelval) {
635
+ this.thead += '<th>' + this.fields[key] + '</th>'
636
+ }
637
+ this.thead += '</tr>'
638
+ },
639
+ print () {
640
+ this.$refs.print.PrintAsFile()
641
+ this.printshow = false
642
+ },
643
+ dealmsg (val) {
644
+ this.rowdata = val
645
+ this.show = true
646
+ val.model = this.model.model
647
+ this.$dispatch('deal-msg', val)
648
+ },
649
+ close () {
650
+ this.printshow = false
651
+ this.all = false
652
+ },
653
+ // 对选择的列进行排序
654
+ sortModelval () {
655
+ let sortModel = []
656
+ Object.keys(this.fields).forEach((key) => {
657
+ if (this.modelval.includes(key)) {
658
+ sortModel.push(key)
659
+ }
660
+ })
661
+ this.modelval = sortModel
662
+ console.log('选择的打印的字段', this.modelval)
663
+ }
664
+
665
+ },
666
+ computed: {
667
+ getCondition () {
668
+ return {
669
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
670
+ condValue: this.$refs.paged.model.condValue,
671
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
672
+ endDate: this.$refs.paged.$refs.cri.model.endDate
673
+ }
674
+ },
675
+ getfield () {
676
+ return exportConfig.fmygasConfig
677
+ },
678
+ usertypes () {
679
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
680
+ },
681
+ credentials () {
682
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
683
+ },
684
+ metertype () {
685
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
686
+ }
687
+ },
688
+ events: {},
689
+ watch: {
690
+ 'all' (val) {
691
+ if (val) {
692
+ this.modelval = this.bodyData
693
+ } else {
694
+ this.modelval = defaultPrint.config
695
+ this.put()
696
+ }
697
+ },
698
+ 'modelval.length' () {
699
+ this.put()
700
+ },
701
+ sumsmodel: {
702
+ handler: function (val) {
703
+ this.getotherfooter();
704
+ },
705
+ deep: true
706
+ },
707
+ async 'orgCondtionStr'(val) {
708
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
709
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
710
+ this.meterbooks = [{label: '全部',value: ''}];
711
+ if(this.lastorgstr != val){
712
+ this.tempfalg = true;
713
+ this.lastorgstr = val;
714
+ }
715
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
716
+ this.tempfalg = false;
717
+ let a = val.substring(val.indexOf("(")+2)
718
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
719
+ }
720
+ },
721
+ }
722
+ }
723
+ </script>
724
+ <style>
725
+ .datapanel {
726
+ color: #333;
727
+ background-color: white;
728
+ padding: 10px 20px;
729
+ border-radius: 15px;
730
+ }
731
+ </style>