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,605 +1,605 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <!-- <div class="basic-main" @keyup.enter="search">-->
4
- <div class="basic-main">
5
- <div 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" v-ref:sel></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="clear()">清空</button>
15
-
16
- <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
17
- :field="$parent.$parent.getfield"
18
- sqlurl="rs/logic/exportfile" sql-name="webmeterhandplanQuery" template-name='抄表查询导出'
19
- :choose-col="true"></export-excel>
20
- <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>
21
- </div>
22
- </div>
23
- <div class="row" v-show="$parent.$parent.criteriaShow">
24
- <div class="col-sm-2 form-group">
25
- <label class="font_normal_body">客户编号</label>
26
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
27
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">表&emsp;&emsp;号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
32
- condition="f_meternumber like '%{}%'" placeholder='表号'>
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">客户名称</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
- condition="f_user_name like '%{}%'" placeholder="客户名称">
38
- </div>
39
- <div class="col-sm-2 form-group">
40
- <label class="font_normal_body">地&emsp;&emsp;址</label>
41
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
42
- condition="f_address like '%{}%'" placeholder='地址'>
43
- </div>
44
- <div class="col-sm-2 form-group">
45
- <label for="inputStartDate" class="font_normal_body">结算日期</label>
46
- <datepicker id="inputStartDate" placeholder="结算日期" style="width:60%"
47
- v-model="model.inputStartDate"
48
- :value.sync="model.inputStartDate"
49
- :format="'yyyy-MM-dd HH:mm:ss'"
50
- :show-reset-button="true"
51
- condition="f_input_date >= '{}'">
52
- </datepicker>
53
- </div>
54
- <div class="col-sm-2 form-group">
55
- <label for="inputEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
56
- <datepicker id="inputEndDate" placeholder="结算日期" style="width:60%"
57
- v-model="model.inputEndDate"
58
- :value.sync="model.inputEndDate"
59
- :format="'yyyy-MM-dd HH:mm:ss'"
60
- :show-reset-button="true"
61
- condition="f_input_date <= '{}'">
62
- </datepicker>
63
- </div>
64
-
65
-
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">客户类型</label>
68
- <v-select :options='$parent.$parent.usertypes'
69
- @change="$parent.$parent.userTypeChange"
70
- :value.sync="model.f_user_type"
71
- close-on-select condition="f_user_type = '{}'"
72
- placeholder='用户类型'
73
- style="width: 60%" v-model="model.f_user_type"></v-select>
74
- </div>
75
- <div class="col-sm-2 form-group">
76
- <label class="font_normal_body">用气性质</label>
77
- <v-select :options='$parent.$parent.gasproperties'
78
- :value.sync="model.f_gasproperties"
79
- close-on-select
80
- condition="f_gasproperties = '{}'"
81
- placeholder='用气性质'
82
- style="width: 60%"
83
- v-model="model.f_gasproperties">
84
- </v-select>
85
- </div>
86
- <div class="col-sm-2 form-group">
87
- <label class="font_normal_body">气表品牌</label>
88
- <v-select :value.sync="model.f_meter_brand" multiple
89
- v-model="model.f_meter_brand"
90
- :options='$parent.$parent.meterbrands' placeholder='请选择'
91
- condition="f_meter_brand in {}"
92
- close-on-select></v-select>
93
- </div>
94
- <div class="col-sm-2 form-group">
95
- <label for="handStartDate" class="font_normal_body">用气日期</label>
96
- <datepicker id="handStartDate" placeholder="用气日期" style="width:60%"
97
- v-model="model.handStartDate"
98
- :value.sync="model.handStartDate"
99
- :format="'yyyy-MM-dd 00:00:00'"
100
- :show-reset-button="true"
101
- condition="f_hand_date >= '{}'">
102
- </datepicker>
103
- </div>
104
- <div class="col-sm-2 form-group">
105
- <label for="handEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
106
- <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
107
- v-model="model.handEndDate"
108
- :value.sync="model.handEndDate"
109
- :format="'yyyy-MM-dd 23:59:59'"
110
- :show-reset-button="true"
111
- condition="f_hand_date <= '{}'">
112
- </datepicker>
113
- </div>
114
- </div>
115
- </div>
116
- </criteria>
117
-
118
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
119
- <template partial='head'>
120
- <tr>
121
- <th>
122
- <nobr>客户编号</nobr>
123
- </th>
124
- <th>
125
- <nobr>客户名称</nobr>
126
- </th>
127
- <th>
128
- <nobr>客户地址</nobr>
129
- </th>
130
- <th>
131
- <nobr>表号</nobr>
132
- </th>
133
- <th>
134
- <nobr>气表品牌</nobr>
135
- </th>
136
- <th>
137
- <nobr>电话号码</nobr>
138
- </th>
139
- <th>
140
- <nobr>身份证号</nobr>
141
- </th>
142
- <th>
143
- <nobr>客户类型</nobr>
144
- </th>
145
- <th>
146
- <nobr>用气性质</nobr>
147
- </th>
148
- <th>
149
- <nobr>上期底数</nobr>
150
- </th>
151
- <th>
152
- <nobr>本期底数</nobr>
153
- </th>
154
- <th>
155
- <nobr>用气量</nobr>
156
- </th>
157
- <th>
158
- <nobr>用气金额</nobr>
159
- </th>
160
- <th>
161
- <nobr>一阶气量</nobr>
162
- </th>
163
- <th>
164
- <nobr>一阶单价</nobr>
165
- </th>
166
- <th>
167
- <nobr>一阶气费</nobr>
168
- </th>
169
- <th>
170
- <nobr>二阶气量</nobr>
171
- </th>
172
- <th>
173
- <nobr>二阶单价</nobr>
174
- </th>
175
- <th>
176
- <nobr>二阶气费</nobr>
177
- </th>
178
- <th>
179
- <nobr>三阶气量</nobr>
180
- </th>
181
- <th>
182
- <nobr>三阶单价</nobr>
183
- </th>
184
- <th>
185
- <nobr>三阶气费</nobr>
186
- </th>
187
- <th>
188
- <nobr>本期余额</nobr>
189
- </th>
190
- <th>
191
- <nobr>上期结余</nobr>
192
- </th>
193
- <th>
194
- <nobr>结算日期</nobr>
195
- </th>
196
- <th>
197
- <nobr>用气日期</nobr>
198
- </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
- </tr>
212
- </template>
213
- <template partial='body'>
214
- <td style="text-align: center;">
215
- <nobr>
216
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
217
- </td>
218
- <td style="text-align: center;">
219
- <nobr>{{row.f_user_name}}</nobr>
220
- </td>
221
- <td style="text-align: center;">
222
- <nobr>{{row.f_address}}</nobr>
223
- </td>
224
- <td style="text-align: center;">
225
- <nobr>{{row.f_meternumber}}</nobr>
226
- </td>
227
- <td style="text-align: center">
228
- <nobr>{{row.f_meter_brand}}</nobr>
229
- </td>
230
- <td style="text-align: center;">
231
- <nobr>{{row.userphone}}</nobr>
232
- </td>
233
- <td style="text-align: center;">
234
- <nobr>{{row.f_idnumber}}</nobr>
235
- </td>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_user_type}}</nobr>
238
- </td>
239
- <td style="text-align: center;">
240
- <nobr>{{row.f_gasproperties}}</nobr>
241
- </td>
242
- <td style="text-align: center;">
243
- <nobr>{{row.f_last_tablebase}}</nobr>
244
- </td>
245
- <td style="text-align: center;">
246
- <nobr>{{row.f_tablebase}}</nobr>
247
- </td>
248
- <td style="text-align: center;">
249
- <nobr>{{row.f_oughtamount}}</nobr>
250
- </td>
251
- <td style="text-align: center;">
252
- <nobr>{{row.f_oughtfee}}</nobr>
253
- </td>
254
- <td style="text-align: center;">
255
- <nobr>{{row.f_stair1amount}}</nobr>
256
- </td>
257
- <td style="text-align: center;">
258
- <nobr>{{row.f_stair1price}}</nobr>
259
- </td>
260
- <td style="text-align: center;">
261
- <nobr>{{row.f_stair1fee}}</nobr>
262
- </td>
263
- <td style="text-align: center;">
264
- <nobr>{{row.f_stair2amount}}</nobr>
265
- </td>
266
- <td style="text-align: center;">
267
- <nobr>{{row.f_stair2price}}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{row.f_stair2fee}}</nobr>
271
- </td>
272
- <td style="text-align: center;">
273
- <nobr>{{row.f_stair3amount}}</nobr>
274
- </td>
275
- <td style="text-align: center;">
276
- <nobr>{{row.f_stair3price}}</nobr>
277
- </td>
278
- <td style="text-align: center;">
279
- <nobr>{{row.f_stair3fee}}</nobr>
280
- </td>
281
- <td style="text-align: center;">
282
- <nobr>{{row.f_balance}}</nobr>
283
- </td>
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_curbalance}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_input_date}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_hand_date}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_meter_state}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_hand_state}}</nobr>
298
- </td>
299
-
300
- <td style="text-align: center;">
301
- <nobr>{{row.f_orgname}}</nobr>
302
- </td>
303
- <td style="text-align: center;">
304
- <nobr>{{row.f_depname}}</nobr>
305
- </td>
306
- </template>
307
- <template partial='foot'></template>
308
- </data-grid>
309
- </criteria-paged>
310
-
311
- <table class="table-hover">
312
- <tr style="position: relative" class="table-bordered">
313
- <td
314
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
315
- 汇总信息
316
- </td>
317
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
318
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
319
- </td>
320
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
321
- 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
322
- </td>
323
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
324
- 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
325
- </td>
326
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
327
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
328
- </td>
329
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
330
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
331
- </td>
332
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
333
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
334
- </td>
335
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
336
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
337
- </td>
338
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
339
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
340
- </td>
341
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
342
- 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
343
- </td>
344
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
345
- 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
346
- </td>
347
- </tr>
348
- </table>
349
- </div>
350
- <div v-if="show">
351
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
352
- </div>
353
- </div>
354
- </div>
355
- </template>
356
-
357
- <script>
358
- import {PagedList} from 'vue-client'
359
- import defaultPrint from '../sale/config/DefaultPrint'
360
- import exportConfig from '../sale/config/exportConfig'
361
-
362
- let readySomething = async function (self) {
363
- self.$MagGetSaleParam.initinputtor();
364
- // self.getinputtores();
365
- self.initmeterbook();
366
- self.$refs.paged.$refs.cri.model.inputStartDate = self.$login.toStandardDateString() + ' 00:00:00'
367
- self.$refs.paged.$refs.cri.model.inputEndDate = self.$login.toStandardDateString() + ' 23:59:59'
368
- // await self.$refs.paged.$refs.cri.search()
369
- await self.$getConfig(self, 'webmeterhandplanQuery')
370
- console.log('抄表查询获取默认配置', self.config)
371
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
372
- console.log('开始初始化参数', self.defaultfield)
373
- await self.$MagLoadParams.loadParam()
374
- // await self.$MagLoadParams.loadParam()
375
- // self.initParams()
376
- console.log('开始查询')
377
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
378
- }
379
- export default {
380
- name:'webmeter-handplan-query',
381
- title: '物联网抄表查询',
382
- data() {
383
- return {
384
- selectfields:[],
385
- data: {},
386
- model: new PagedList('rs/ckh/singleTableParam', 20, {
387
- items: `"*"`,
388
- tablename: `"t_cbcx"`,
389
- condition: `"1=1 and " + this.condition`
390
- }, {
391
- f_oughtamount: 0,
392
- f_oughtfee: 0,
393
- f_stair1amount: 0,
394
- f_stair1fee: 0,
395
- f_stair2amount: 0,
396
- f_stair2fee: 0,
397
- f_stair3amount: 0,
398
- f_stair3fee: 0,
399
- f_surplus_gas: 0,
400
- f_haircut_gas: 0
401
- }),
402
- initres: {
403
- org:[this.$login.f.orgid],
404
- dep:[],
405
- user:[],
406
- },
407
- show:false,
408
- rowdata:{},
409
- criteriaShow: false,
410
- orgCondtionStr: '',
411
- modelval: [],
412
- printshow: false,
413
- all: false,
414
- fields: {},
415
- thead: '',
416
- tfoot: '',
417
-
418
- // 下拉框
419
- //用气性质
420
- gasproperties:[],
421
- //合计数据
422
- sumsmodel: {},
423
- // defaultfield: [],
424
- config: {
425
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
426
- },
427
- tempfalg :false,
428
- lastorgstr:'',
429
- allorgid:[],
430
- meterbrands:[{label: '全部',value: ''}],
431
- }
432
- },
433
- // props:['selectorg'],
434
- props:[],
435
- ready() {
436
- readySomething(this).then(() => {
437
- this.$emit('ready')
438
- }).catch((error) => {
439
- this.$emit('error', error)
440
- })
441
- for(var item in exportConfig.webmeterHandplanFiles){
442
- this.selectfields.push(item)
443
- }
444
- },
445
- methods: {
446
- async initmeterbook(orgstr){
447
- if(orgstr == null ){
448
- orgstr = this.f_filialeid;
449
- }
450
- //获取新的抄表册,先去清理所有的抄表册
451
- // this.$GetSaleParam.meterbooks = [];
452
- //开始加载新的抄表册
453
- await this.$LoadParams.loadMeterBook(orgstr)
454
- // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
455
- },
456
- async updateParams() {
457
- await this.$MagLoadParams.loadParam(this.f_filialeid)
458
- this.initParams()
459
- },
460
- search(){
461
- this.$refs.paged.$refs.cri.search()
462
- },
463
- cancel() {
464
- this.show = false
465
- },
466
- initParams() {
467
- // 初始化气表品牌
468
- let brandArr = []
469
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
470
- let temp = {}
471
- temp.label = item.label
472
- temp.value = item.value.f_meter_brand
473
- brandArr.push(temp)
474
- })
475
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
476
- //初始化气价
477
- let result = []
478
- this.$MagGetSaleParam.prices.forEach((item) => {
479
- if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
480
- let value = {
481
- label: item.f_price_name,
482
- value: item.f_price_name
483
- }
484
- result.push(value)
485
- }
486
- })
487
- let hash = {}
488
- result = result.reduce((item, next) => {
489
- hash[next.label] ? '' : hash[next.label] = true && item.push(next)
490
- return item
491
- }, [])
492
- this.prices = Array.from(new Set(result))
493
- },
494
- userTypeChange () {
495
- this.gasproperties=[]
496
- if(this.$refs.paged.$refs.cri.model !==null) {
497
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
498
-
499
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
500
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
501
- // this.gasproperties.push({label: '全部', value: ''})
502
- }
503
- else{
504
- this.gasproperties =[{label: '全部', value: ''}]
505
- }
506
- },
507
- selfSearch(args) {
508
- args.condition = `${args.condition} ` + this.orgCondtionStr
509
- this.model.search(args.condition, args.model)
510
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
511
- },
512
- clear() {
513
- //清空部门和人员
514
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
515
- //部门和人员变为全选
516
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
517
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
518
- this.$refs.paged.$refs.cri.model=[]
519
- // })
520
- },
521
- show() {
522
- this.criteriaShow = true
523
- },
524
- hidden() {
525
- this.criteriaShow = !this.criteriaShow
526
- },
527
- getRes(obj) {
528
- this.orgCondtionStr = obj
529
- },
530
- dealmsg(val) {
531
- console.log('---------------dealmsg')
532
- this.rowdata=val
533
- this.show=true
534
- val.model = this.model.model
535
- this.$dispatch('deal-msg', val)
536
- },
537
- close() {
538
- this.printshow = false
539
- this.all = false
540
- },
541
- // 对选择的列进行排序
542
- sortModelval() {
543
- let sortModel = []
544
- Object.keys(this.fields).forEach((key) => {
545
- if (this.modelval.includes(key)) {
546
- sortModel.push(key)
547
- }
548
- })
549
- this.modelval = sortModel
550
- console.log('选择的打印的字段', this.modelval)
551
- }
552
- },
553
- watch: {
554
- 'all'(val) {
555
- if (val) {
556
- this.modelval = this.bodyData
557
- } else {
558
- this.modelval = defaultPrint.config
559
- this.put()
560
- }
561
- },
562
- 'modelval.length'() {
563
- this.put()
564
- },
565
- async 'orgCondtionStr'(val) {
566
- // this.meterbooks = [{label: '全部',value: ''}];
567
- if(this.lastorgstr != val){
568
- this.tempfalg = true;
569
- this.lastorgstr = val;
570
- }
571
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
572
- this.tempfalg = false;
573
- let a = val.substring(val.indexOf("(")+2)
574
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
575
- }
576
- let res = val.match(/'(.*?)'/)
577
- console.log('正则提取:',res && res[1])
578
- if (res) {
579
- this.f_filialeid = res[1]
580
- if(res.input !=null){
581
- let resorgid = res.input.substring(res.input.indexOf("'"));
582
- if(resorgid!= null && resorgid!=''){
583
- resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
584
- // resorgid = resorgid.replaceAll("'","");
585
- resorgid = resorgid.replace(/'/g,"");
586
- this.allorgid = resorgid.split(",")
587
- }
588
- }
589
- this.updateParams()
590
- }
591
- },
592
- },
593
- computed: {
594
- getCondition() {
595
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
596
- },
597
- getfield() {
598
- return exportConfig.webmeterHandplanFiles
599
- },
600
- usertypes() {
601
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
602
- },
603
- }
604
- }
605
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <!-- <div class="basic-main" @keyup.enter="search">-->
4
+ <div class="basic-main">
5
+ <div 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" v-ref:sel></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="clear()">清空</button>
15
+
16
+ <export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.selectfields"
17
+ :field="$parent.$parent.getfield"
18
+ sqlurl="rs/logic/exportfile" sql-name="webmeterhandplanQuery" template-name='抄表查询导出'
19
+ :choose-col="true"></export-excel>
20
+ <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>
21
+ </div>
22
+ </div>
23
+ <div class="row" v-show="$parent.$parent.criteriaShow">
24
+ <div class="col-sm-2 form-group">
25
+ <label class="font_normal_body">客户编号</label>
26
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
27
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
32
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+ <div class="col-sm-2 form-group">
40
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
41
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
42
+ condition="f_address like '%{}%'" placeholder='地址'>
43
+ </div>
44
+ <div class="col-sm-2 form-group">
45
+ <label for="inputStartDate" class="font_normal_body">结算日期</label>
46
+ <datepicker id="inputStartDate" placeholder="结算日期" style="width:60%"
47
+ v-model="model.inputStartDate"
48
+ :value.sync="model.inputStartDate"
49
+ :format="'yyyy-MM-dd HH:mm:ss'"
50
+ :show-reset-button="true"
51
+ condition="f_input_date >= '{}'">
52
+ </datepicker>
53
+ </div>
54
+ <div class="col-sm-2 form-group">
55
+ <label for="inputEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</label>
56
+ <datepicker id="inputEndDate" placeholder="结算日期" style="width:60%"
57
+ v-model="model.inputEndDate"
58
+ :value.sync="model.inputEndDate"
59
+ :format="'yyyy-MM-dd HH:mm:ss'"
60
+ :show-reset-button="true"
61
+ condition="f_input_date <= '{}'">
62
+ </datepicker>
63
+ </div>
64
+
65
+
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">客户类型</label>
68
+ <v-select :options='$parent.$parent.usertypes'
69
+ @change="$parent.$parent.userTypeChange"
70
+ :value.sync="model.f_user_type"
71
+ close-on-select condition="f_user_type = '{}'"
72
+ placeholder='用户类型'
73
+ style="width: 60%" v-model="model.f_user_type"></v-select>
74
+ </div>
75
+ <div class="col-sm-2 form-group">
76
+ <label class="font_normal_body">用气性质</label>
77
+ <v-select :options='$parent.$parent.gasproperties'
78
+ :value.sync="model.f_gasproperties"
79
+ close-on-select
80
+ condition="f_gasproperties = '{}'"
81
+ placeholder='用气性质'
82
+ style="width: 60%"
83
+ v-model="model.f_gasproperties">
84
+ </v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">气表品牌</label>
88
+ <v-select :value.sync="model.f_meter_brand" multiple
89
+ v-model="model.f_meter_brand"
90
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
91
+ condition="f_meter_brand in {}"
92
+ close-on-select></v-select>
93
+ </div>
94
+ <div class="col-sm-2 form-group">
95
+ <label for="handStartDate" class="font_normal_body">用气日期</label>
96
+ <datepicker id="handStartDate" placeholder="用气日期" style="width:60%"
97
+ v-model="model.handStartDate"
98
+ :value.sync="model.handStartDate"
99
+ :format="'yyyy-MM-dd 00:00:00'"
100
+ :show-reset-button="true"
101
+ condition="f_hand_date >= '{}'">
102
+ </datepicker>
103
+ </div>
104
+ <div class="col-sm-2 form-group">
105
+ <label for="handEndDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
106
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
107
+ v-model="model.handEndDate"
108
+ :value.sync="model.handEndDate"
109
+ :format="'yyyy-MM-dd 23:59:59'"
110
+ :show-reset-button="true"
111
+ condition="f_hand_date <= '{}'">
112
+ </datepicker>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ </criteria>
117
+
118
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
119
+ <template partial='head'>
120
+ <tr>
121
+ <th>
122
+ <nobr>客户编号</nobr>
123
+ </th>
124
+ <th>
125
+ <nobr>客户名称</nobr>
126
+ </th>
127
+ <th>
128
+ <nobr>客户地址</nobr>
129
+ </th>
130
+ <th>
131
+ <nobr>表号</nobr>
132
+ </th>
133
+ <th>
134
+ <nobr>气表品牌</nobr>
135
+ </th>
136
+ <th>
137
+ <nobr>电话号码</nobr>
138
+ </th>
139
+ <th>
140
+ <nobr>身份证号</nobr>
141
+ </th>
142
+ <th>
143
+ <nobr>客户类型</nobr>
144
+ </th>
145
+ <th>
146
+ <nobr>用气性质</nobr>
147
+ </th>
148
+ <th>
149
+ <nobr>上期底数</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>本期底数</nobr>
153
+ </th>
154
+ <th>
155
+ <nobr>用气量</nobr>
156
+ </th>
157
+ <th>
158
+ <nobr>用气金额</nobr>
159
+ </th>
160
+ <th>
161
+ <nobr>一阶气量</nobr>
162
+ </th>
163
+ <th>
164
+ <nobr>一阶单价</nobr>
165
+ </th>
166
+ <th>
167
+ <nobr>一阶气费</nobr>
168
+ </th>
169
+ <th>
170
+ <nobr>二阶气量</nobr>
171
+ </th>
172
+ <th>
173
+ <nobr>二阶单价</nobr>
174
+ </th>
175
+ <th>
176
+ <nobr>二阶气费</nobr>
177
+ </th>
178
+ <th>
179
+ <nobr>三阶气量</nobr>
180
+ </th>
181
+ <th>
182
+ <nobr>三阶单价</nobr>
183
+ </th>
184
+ <th>
185
+ <nobr>三阶气费</nobr>
186
+ </th>
187
+ <th>
188
+ <nobr>本期余额</nobr>
189
+ </th>
190
+ <th>
191
+ <nobr>上期结余</nobr>
192
+ </th>
193
+ <th>
194
+ <nobr>结算日期</nobr>
195
+ </th>
196
+ <th>
197
+ <nobr>用气日期</nobr>
198
+ </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
+ </tr>
212
+ </template>
213
+ <template partial='body'>
214
+ <td style="text-align: center;">
215
+ <nobr>
216
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_user_name}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_address}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_meternumber}}</nobr>
226
+ </td>
227
+ <td style="text-align: center">
228
+ <nobr>{{row.f_meter_brand}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.userphone}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_idnumber}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_user_type}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_gasproperties}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_last_tablebase}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.f_tablebase}}</nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_oughtamount}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_oughtfee}}</nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.f_stair1amount}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_stair1price}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_stair1fee}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_stair2amount}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_stair2price}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_stair2fee}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_stair3amount}}</nobr>
274
+ </td>
275
+ <td style="text-align: center;">
276
+ <nobr>{{row.f_stair3price}}</nobr>
277
+ </td>
278
+ <td style="text-align: center;">
279
+ <nobr>{{row.f_stair3fee}}</nobr>
280
+ </td>
281
+ <td style="text-align: center;">
282
+ <nobr>{{row.f_balance}}</nobr>
283
+ </td>
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_curbalance}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_input_date}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_hand_date}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_meter_state}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_hand_state}}</nobr>
298
+ </td>
299
+
300
+ <td style="text-align: center;">
301
+ <nobr>{{row.f_orgname}}</nobr>
302
+ </td>
303
+ <td style="text-align: center;">
304
+ <nobr>{{row.f_depname}}</nobr>
305
+ </td>
306
+ </template>
307
+ <template partial='foot'></template>
308
+ </data-grid>
309
+ </criteria-paged>
310
+
311
+ <table class="table-hover">
312
+ <tr style="position: relative" class="table-bordered">
313
+ <td
314
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
315
+ 汇总信息
316
+ </td>
317
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
318
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
319
+ </td>
320
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
321
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
322
+ </td>
323
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
324
+ 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
325
+ </td>
326
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
327
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
328
+ </td>
329
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
330
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
331
+ </td>
332
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
333
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
334
+ </td>
335
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
336
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
337
+ </td>
338
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
339
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
340
+ </td>
341
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
342
+ 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
343
+ </td>
344
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
345
+ 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
346
+ </td>
347
+ </tr>
348
+ </table>
349
+ </div>
350
+ <div v-if="show">
351
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
352
+ </div>
353
+ </div>
354
+ </div>
355
+ </template>
356
+
357
+ <script>
358
+ import {PagedList} from 'vue-client'
359
+ import defaultPrint from '../sale/config/DefaultPrint'
360
+ import exportConfig from '../sale/config/exportConfig'
361
+
362
+ let readySomething = async function (self) {
363
+ self.$MagGetSaleParam.initinputtor();
364
+ // self.getinputtores();
365
+ self.initmeterbook();
366
+ self.$refs.paged.$refs.cri.model.inputStartDate = self.$login.toStandardDateString() + ' 00:00:00'
367
+ self.$refs.paged.$refs.cri.model.inputEndDate = self.$login.toStandardDateString() + ' 23:59:59'
368
+ // await self.$refs.paged.$refs.cri.search()
369
+ await self.$getConfig(self, 'webmeterhandplanQuery')
370
+ console.log('抄表查询获取默认配置', self.config)
371
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
372
+ console.log('开始初始化参数', self.defaultfield)
373
+ await self.$MagLoadParams.loadParam()
374
+ // await self.$MagLoadParams.loadParam()
375
+ // self.initParams()
376
+ console.log('开始查询')
377
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
378
+ }
379
+ export default {
380
+ name:'webmeter-handplan-query',
381
+ title: '物联网抄表查询',
382
+ data() {
383
+ return {
384
+ selectfields:[],
385
+ data: {},
386
+ model: new PagedList('rs/ckh/singleTableParam', 20, {
387
+ items: `"*"`,
388
+ tablename: `"t_cbcx"`,
389
+ condition: `"1=1 and " + this.condition`
390
+ }, {
391
+ f_oughtamount: 0,
392
+ f_oughtfee: 0,
393
+ f_stair1amount: 0,
394
+ f_stair1fee: 0,
395
+ f_stair2amount: 0,
396
+ f_stair2fee: 0,
397
+ f_stair3amount: 0,
398
+ f_stair3fee: 0,
399
+ f_surplus_gas: 0,
400
+ f_haircut_gas: 0
401
+ }),
402
+ initres: {
403
+ org:[this.$login.f.orgid],
404
+ dep:[],
405
+ user:[],
406
+ },
407
+ show:false,
408
+ rowdata:{},
409
+ criteriaShow: false,
410
+ orgCondtionStr: '',
411
+ modelval: [],
412
+ printshow: false,
413
+ all: false,
414
+ fields: {},
415
+ thead: '',
416
+ tfoot: '',
417
+
418
+ // 下拉框
419
+ //用气性质
420
+ gasproperties:[],
421
+ //合计数据
422
+ sumsmodel: {},
423
+ // defaultfield: [],
424
+ config: {
425
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
426
+ },
427
+ tempfalg :false,
428
+ lastorgstr:'',
429
+ allorgid:[],
430
+ meterbrands:[{label: '全部',value: ''}],
431
+ }
432
+ },
433
+ // props:['selectorg'],
434
+ props:[],
435
+ ready() {
436
+ readySomething(this).then(() => {
437
+ this.$emit('ready')
438
+ }).catch((error) => {
439
+ this.$emit('error', error)
440
+ })
441
+ for(var item in exportConfig.webmeterHandplanFiles){
442
+ this.selectfields.push(item)
443
+ }
444
+ },
445
+ methods: {
446
+ async initmeterbook(orgstr){
447
+ if(orgstr == null ){
448
+ orgstr = this.f_filialeid;
449
+ }
450
+ //获取新的抄表册,先去清理所有的抄表册
451
+ // this.$GetSaleParam.meterbooks = [];
452
+ //开始加载新的抄表册
453
+ await this.$LoadParams.loadMeterBook(orgstr)
454
+ // this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
455
+ },
456
+ async updateParams() {
457
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
458
+ this.initParams()
459
+ },
460
+ search(){
461
+ this.$refs.paged.$refs.cri.search()
462
+ },
463
+ cancel() {
464
+ this.show = false
465
+ },
466
+ initParams() {
467
+ // 初始化气表品牌
468
+ let brandArr = []
469
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
470
+ let temp = {}
471
+ temp.label = item.label
472
+ temp.value = item.value.f_meter_brand
473
+ brandArr.push(temp)
474
+ })
475
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
476
+ //初始化气价
477
+ let result = []
478
+ this.$MagGetSaleParam.prices.forEach((item) => {
479
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
480
+ let value = {
481
+ label: item.f_price_name,
482
+ value: item.f_price_name
483
+ }
484
+ result.push(value)
485
+ }
486
+ })
487
+ let hash = {}
488
+ result = result.reduce((item, next) => {
489
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
490
+ return item
491
+ }, [])
492
+ this.prices = Array.from(new Set(result))
493
+ },
494
+ userTypeChange () {
495
+ this.gasproperties=[]
496
+ if(this.$refs.paged.$refs.cri.model !==null) {
497
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
498
+
499
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
500
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
501
+ // this.gasproperties.push({label: '全部', value: ''})
502
+ }
503
+ else{
504
+ this.gasproperties =[{label: '全部', value: ''}]
505
+ }
506
+ },
507
+ selfSearch(args) {
508
+ args.condition = `${args.condition} ` + this.orgCondtionStr
509
+ this.model.search(args.condition, args.model)
510
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
511
+ },
512
+ clear() {
513
+ //清空部门和人员
514
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
515
+ //部门和人员变为全选
516
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
517
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
518
+ this.$refs.paged.$refs.cri.model=[]
519
+ // })
520
+ },
521
+ show() {
522
+ this.criteriaShow = true
523
+ },
524
+ hidden() {
525
+ this.criteriaShow = !this.criteriaShow
526
+ },
527
+ getRes(obj) {
528
+ this.orgCondtionStr = obj
529
+ },
530
+ dealmsg(val) {
531
+ console.log('---------------dealmsg')
532
+ this.rowdata=val
533
+ this.show=true
534
+ val.model = this.model.model
535
+ this.$dispatch('deal-msg', val)
536
+ },
537
+ close() {
538
+ this.printshow = false
539
+ this.all = false
540
+ },
541
+ // 对选择的列进行排序
542
+ sortModelval() {
543
+ let sortModel = []
544
+ Object.keys(this.fields).forEach((key) => {
545
+ if (this.modelval.includes(key)) {
546
+ sortModel.push(key)
547
+ }
548
+ })
549
+ this.modelval = sortModel
550
+ console.log('选择的打印的字段', this.modelval)
551
+ }
552
+ },
553
+ watch: {
554
+ 'all'(val) {
555
+ if (val) {
556
+ this.modelval = this.bodyData
557
+ } else {
558
+ this.modelval = defaultPrint.config
559
+ this.put()
560
+ }
561
+ },
562
+ 'modelval.length'() {
563
+ this.put()
564
+ },
565
+ async 'orgCondtionStr'(val) {
566
+ // this.meterbooks = [{label: '全部',value: ''}];
567
+ if(this.lastorgstr != val){
568
+ this.tempfalg = true;
569
+ this.lastorgstr = val;
570
+ }
571
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
572
+ this.tempfalg = false;
573
+ let a = val.substring(val.indexOf("(")+2)
574
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
575
+ }
576
+ let res = val.match(/'(.*?)'/)
577
+ console.log('正则提取:',res && res[1])
578
+ if (res) {
579
+ this.f_filialeid = res[1]
580
+ if(res.input !=null){
581
+ let resorgid = res.input.substring(res.input.indexOf("'"));
582
+ if(resorgid!= null && resorgid!=''){
583
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
584
+ // resorgid = resorgid.replaceAll("'","");
585
+ resorgid = resorgid.replace(/'/g,"");
586
+ this.allorgid = resorgid.split(",")
587
+ }
588
+ }
589
+ this.updateParams()
590
+ }
591
+ },
592
+ },
593
+ computed: {
594
+ getCondition() {
595
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
596
+ },
597
+ getfield() {
598
+ return exportConfig.webmeterHandplanFiles
599
+ },
600
+ usertypes() {
601
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
602
+ },
603
+ }
604
+ }
605
+ </script>