manage-client 3.3.57 → 3.3.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/build/dev-server.js +21 -34
  2. package/package.json +1 -1
  3. package/src/components/webmeter/instruction/NewQueryInstruct.vue +61 -7
  4. package/src/components/webmeter/reportdata/ReportDataQuery.vue +0 -6
  5. package/src/filiale/WEINAN/CancellationQuery.vue +74 -0
  6. package/src/filiale/WEINAN/ChargeQuery.vue +58 -1
  7. package/src/filiale/WEINAN/DeviceQuery.vue +63 -0
  8. package/src/filiale/WEINAN/DisableQuery.vue +74 -0
  9. package/src/filiale/WEINAN/EnableQuery.vue +74 -0
  10. package/src/filiale/WEINAN/FillGasQuery.vue +74 -0
  11. package/src/filiale/WEINAN/InspectListUser.vue +35 -0
  12. package/src/filiale/WEINAN/MergeFileQuery.vue +77 -1
  13. package/src/filiale/WEINAN/MeterQuery.vue +58 -0
  14. package/src/filiale/WEINAN/NewAccountQuery.vue +58 -0
  15. package/src/filiale/WEINAN/OtherChargeQuery.vue +58 -0
  16. package/src/filiale/WEINAN/RecordInfoQuery.vue +58 -0
  17. package/src/filiale/WEINAN/UserGasAll.vue +63 -0
  18. package/src/filiale/WEINAN/UserGasList.vue +59 -0
  19. package/src/filiale/WEINAN/UserLostContactAnalysis.vue +63 -0
  20. package/src/filiale/WEINAN/UserQuery.vue +63 -0
  21. package/src/filiale/WEINAN/businessquery/FillCardQuery.vue +643 -0
  22. package/src/filiale/WEINAN/businessquery/HandplanQuery.vue +1428 -0
  23. package/src/filiale/WEINAN/businessquery/MoveMeterQuery.vue +477 -0
  24. package/src/filiale/WEINAN/businessquery/ReverseQuery.vue +512 -0
  25. package/src/filiale/WEINAN/businessquery/TransferQuery.vue +553 -0
  26. package/src/filiale/WEINAN/businessquery/UserInsured.vue +483 -0
  27. package/src/filiale/WEINAN/businessquery/priceadjustQuery.vue +535 -0
  28. package/src/filiale/WEINAN/config/exportConfig.js +41 -38
  29. package/src/filiale/WEINAN/filesquery/ChangeUserQuery.vue +468 -0
  30. package/src/filiale/WEINAN/filesquery/FmyGasDeviceQuery.vue +911 -0
  31. package/src/filiale/WEINAN/filesquery/GasDeviceQuery.vue +1021 -0
  32. package/src/filiale/WEINAN/filesquery/PriceChangeQuery.vue +468 -0
  33. package/src/filiale/WEINAN/filesquery/UserDeviceQuery.vue +505 -0
  34. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +63 -0
  35. package/src/filiale/WEINAN/sale.js +23 -2
  36. package/src/filiale/WEINAN/webmeter/LostContactAnalysisList.vue +692 -0
  37. package/src/filiale/WEINAN/webmeter/NewQueryInstruct.vue +564 -0
  38. package/src/filiale/WEINAN/webmeter/ReportList.vue +483 -0
  39. package/src/filiale/WEINAN/webmeter/TotalExceptionByMeter.vue +665 -0
  40. package/src/filiale/WEINAN/webmeter/UserInstructEchartsList.vue +242 -0
  41. package/src/filiale/WEINAN/webmeter/UserInstructList.vue +390 -0
  42. package/src/filiale/WEINAN/webmeterManage.js +13 -0
  43. package/src/filiale/lixianV3/BusinessManage.vue +3 -0
  44. package/src/filiale/shanxian/UserLostContactAnalysis.vue +35 -3
@@ -0,0 +1,1428 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search" v-if="!show">
4
+ <div class="flex">
5
+
6
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
7
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-2 form-group">
11
+ <label for="startDate" class="font_normal_body">录入日期</label>
12
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
13
+ v-model="model.startDate"
14
+ :value.sync="model.startDate"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&ensp;</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
+ </datepicker>
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">客户编号</label>
30
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
31
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
32
+ </div>
33
+ <div class="span" style="float:right;">
34
+ <button class="button_search button_spacing" @click="search()">查询</button>
35
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
36
+
37
+ <button class="btn btn-default" @click="$parent.$parent.Fileinput()">反盘导入</button>
38
+ <export-excel :data="$parent.$parent.getCondition"
39
+ :field="$parent.$parent.getBankfield" :header="$parent.$parent.other"
40
+ sqlurl="rs/logic/exportfile" sql-name="newhandplanQuery" template-name='送盘导出' btn-name="送盘导出"
41
+ :choose-col="true"></export-excel>
42
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
43
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
44
+ sqlurl="rs/logic/exportfile" sql-name="handplanQuery" template-name='抄表查询导出'
45
+ :choose-col="true"></export-excel>
46
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
47
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
48
+ titletable="抄表查询"
49
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
50
+
51
+ <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>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="col-sm-2 form-group">
56
+ <label for="startDate" class="font_normal_body">下发日期</label>
57
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
58
+ v-model="model.handStartDate"
59
+ :value.sync="model.handStartDate"
60
+ :format="'yyyy-MM-dd 00:00:00'"
61
+ :show-reset-button="true"
62
+ condition="f_hand_date >= '{}'">
63
+ </datepicker>
64
+ </div>
65
+ <div class="col-sm-2 form-group">
66
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
67
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
68
+ v-model="model.handEndDate"
69
+ :value.sync="model.handEndDate"
70
+ :format="'yyyy-MM-dd 23:59:59'"
71
+ :show-reset-button="true"
72
+ condition="f_hand_date <= '{}'">
73
+ </datepicker>
74
+ </div>
75
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body" title="旧客户编号">档案编号</label>
78
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
79
+ condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body">抄表状态</label>
83
+ <v-select :value.sync="model.f_meter_state"
84
+ v-model="model.f_meter_state"
85
+ :options='$parent.$parent.meterstate' placeholder='请选择'
86
+ condition="f_meter_state = '{}'"
87
+ close-on-select></v-select>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">表单状态</label>
91
+ <v-select :value.sync="model.f_hand_state"
92
+ v-model="model.f_hand_state"
93
+ :options='$parent.$parent.handstate' placeholder='请选择'
94
+ condition="f_hand_state = '{}'"
95
+ close-on-select></v-select>
96
+ </div>
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body">客户名称</label>
99
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
100
+ condition="f_user_name = '{}'" placeholder="客户名称">
101
+ </div>
102
+
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">小区名称</label>
105
+ <v-select :value.sync="model.f_residential_area"
106
+ class="select_list select"
107
+ enter-push
108
+ multiple = "true"
109
+ v-model="model.f_residential_area"
110
+ style="width: 60%"
111
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
112
+ close-on-select>
113
+
114
+ </v-select>
115
+ </div>
116
+ <div class="col-sm-2 form-group">
117
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
118
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
119
+ condition="f_building like '%{}%'" placeholder="楼栋">
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">客户地址</label>
123
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
124
+ condition="f_address like '%{}%'" placeholder='客户地址'>
125
+ </div>
126
+ <div class="col-sm-2 form-group">
127
+ <label for="startDate" class="font_normal_body">审核日期</label>
128
+ <datepicker id="f_audit_date" placeholder="开始日期" style="width:60%"
129
+ v-model="model.auditStartDate"
130
+ :value.sync="model.auditStartDate"
131
+ :format="'yyyy-MM-dd 00:00:00'"
132
+ :show-reset-button="true"
133
+ condition="f_audit_date >= '{}'">
134
+ </datepicker>
135
+ </div>
136
+ <div class="col-sm-2 form-group">
137
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
138
+ <datepicker id="f_audit_date" placeholder="结束日期" style="width:60%"
139
+ v-model="model.auditEndDate"
140
+ :value.sync="model.auditEndDate"
141
+ :format="'yyyy-MM-dd 23:59:59'"
142
+ :show-reset-button="true"
143
+ condition="f_audit_date <= '{}'">
144
+ </datepicker>
145
+ </div>
146
+
147
+ <div class="col-sm-2 form-group">
148
+ <label class="font_normal_body">客户类型</label>
149
+ <v-select :value.sync="model.f_user_type"
150
+ @change="$parent.$parent.userTypeChange()"
151
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
152
+ condition="f_user_type = '{}'"
153
+ close-on-select></v-select>
154
+ </div>
155
+ <div class="col-sm-2 form-group">
156
+ <label class="font_normal_body">用气性质</label>
157
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
158
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
159
+ condition="f_gasproperties = '{}'"
160
+ close-on-select></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.pricetype" v-model="model.pricetype"
165
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
166
+ close-on-select v-ref:type>
167
+ </v-select>
168
+ </div>
169
+ <div class="col-sm-2 form-group">
170
+ <label class="font_normal_body">气价名称</label>
171
+ <v-select :value.sync="model.f_price_name"
172
+ v-model="model.f_price_name"
173
+ :options="$parent.$parent.getPricenames"
174
+ condition="f_price_name = '{}'"
175
+ close-on-select></v-select>
176
+ </div>
177
+ <div class="col-sm-2 form-group">
178
+ <label class="font_normal_body">气表类型</label>
179
+ <v-select :value.sync="model.f_meter_classify" multiple
180
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
181
+ condition="f_meter_classify in {}"
182
+ close-on-select></v-select>
183
+ </div>
184
+ <div class="col-sm-2 form-group">
185
+ <label class="font_normal_body">气表品牌</label>
186
+ <v-select :value.sync="model.f_meter_brand" multiple
187
+ v-model="model.f_meter_brand"
188
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
189
+ condition="f_meter_brand in {}"
190
+ close-on-select></v-select>
191
+ </div>
192
+ <div class="col-sm-2 form-group">
193
+ <label class="font_normal_body">用&ensp;气&ensp;量</label>
194
+ <input type="text" style="width:30%" class="input_search" title="大于等于"
195
+ v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
196
+ <input type="text" style="width:30%" class="input_search" title="小于等于"
197
+ v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
198
+ </div>
199
+ <!-- <div class="col-sm-2 form-group">-->
200
+ <!-- <label class="font_normal_body">气价名称</label>-->
201
+ <!-- <v-select :value.sync="model.f_price_name" v-model="model.f_price_name" :options="$parent.$parent.prices"-->
202
+ <!-- condition="f_price_name = '{}'" close-on-select></v-select>-->
203
+ <!-- </div>-->
204
+ <div class="col-sm-2 form-group">
205
+ <label class="font_normal_body">&ensp;表&ensp;号&ensp;&ensp;</label>
206
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
207
+ condition="f_meternumber = '{}' " placeholder="表号">
208
+ </div>
209
+ <div class="col-sm-2 form-group">
210
+ <label for="startDate" class="font_normal_body">收费日期</label>
211
+ <datepicker id="handStartDate" placeholder="开始日期" style="width:60%"
212
+ v-model="model.sellStartDate"
213
+ :value.sync="model.sellStartDate"
214
+ :format="'yyyy-MM-dd 00:00:00'"
215
+ :show-reset-button="true"
216
+ condition="f_sellinggas_operate_date >= '{}'">
217
+ </datepicker>
218
+ </div>
219
+ <div class="col-sm-2 form-group">
220
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
221
+ <datepicker id="handEndDate" placeholder="结束日期" style="width:60%"
222
+ v-model="model.sellEndDate"
223
+ :value.sync="model.sellEndDate"
224
+ :format="'yyyy-MM-dd 23:59:59'"
225
+ :show-reset-button="true"
226
+ condition="f_sellinggas_operate_date <= '{}'">
227
+ </datepicker>
228
+ </div>
229
+ <div class="col-sm-2 form-group">
230
+ <label class="font_normal_body" >抄&nbsp;&nbsp;表&nbsp;员</label>
231
+ <v-select :value.sync="model.f_inputtor"
232
+ v-model="model.f_inputtor"
233
+ :options='$parent.$parent.inputtores' placeholder='请选择'
234
+ condition="f_inputtor = '{}'"
235
+ close-on-select :search="false">
236
+ </v-select>
237
+ </div>
238
+ <!--表册片区-->
239
+ <div class="col-sm-2 form-group">
240
+ <label class="font_normal_body">表册片区</label>
241
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
242
+ @change="$parent.$parent.inputtorchange"
243
+ multiple
244
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
245
+ style="width:60%"
246
+ close-on-select
247
+ condition="f_book_slice_area in {}"></v-select>
248
+ </div>
249
+ <div class="col-sm-2 form-group">
250
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
251
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
252
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
253
+ style="width:60%"
254
+ multiple
255
+ close-on-select
256
+ condition="f_meter_book_num in {}"></v-select>
257
+ </div>
258
+ <div class="col-sm-2 form-group">
259
+ <label class="font_normal_body">录入人员</label>
260
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_input_person"
261
+ condition="f_input_person like '%{}%'" placeholder='录入人员'>
262
+ </div>
263
+ <div class="col-sm-2 form-group">
264
+ <label class="font_normal_body">是否缴费</label>
265
+ <v-select :value.sync="model.f_whether_pay"
266
+ v-model="model.f_whether_pay"
267
+ :options='$parent.$parent.whetherPay' placeholder='请选择'
268
+ condition="f_whether_pay = '{}'"
269
+ close-on-select></v-select>
270
+ </div>
271
+ <div class="col-sm-2 form-group" >
272
+ <label for="belongmonth" class="font_normal_body" >所属年月</label>
273
+ <datepicker placeholder="所属年月" style="width:60%"
274
+ v-model="model.belongmonth"
275
+ :value.sync="model.belongmonth"
276
+ :format="'yyyy-MM'"
277
+ :show-reset-button="true"
278
+ condition="belongmonth = '{}'"
279
+ :select-month="true">
280
+ </datepicker>
281
+ </div>
282
+ <div class="col-sm-2 form-group">
283
+ <label class="font_normal_body">银行名称</label>
284
+ <v-select :value.sync="model.f_bank_name" v-model="model.f_bank_name"
285
+ :options='$parent.$parent.banklist' placeholder='银行名称'
286
+ style="width:60%"
287
+ close-on-select
288
+ condition="f_bank_name = '{}'"></v-select>
289
+ </div>
290
+
291
+ <div class="col-sm-2 form-group">
292
+ <label class="font_normal_body">下账状态</label>
293
+ <v-select :value.sync="model.f_accounts_state"
294
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_accounts_state"
295
+ condition="f_accounts_state = '{}'"
296
+ close-on-select></v-select>
297
+ </div>
298
+ <div class="col-sm-2 form-group">
299
+ <label class="font_normal_body">&ensp;壁挂炉&ensp;</label>
300
+ <v-select :value.sync="model.f_bgl"
301
+ v-model="model.f_bgl"
302
+ :options='$parent.$parent.bgl' placeholder='请选择'
303
+ condition="f_bgl = '{}'"
304
+ close-on-select></v-select>
305
+ </div>
306
+ <div class="col-sm-2 form-group">
307
+ <label for="f_user_usetype" class="font_normal_body ">用气类型</label>
308
+ <v-select :value.sync="model.f_user_usetype" :search="false"
309
+ @change="$parent.$parent.userUseTypeChange()"
310
+ v-model="model.f_user_usetype"
311
+ :options='$parent.$parent.userusetypes'
312
+ condition="f_user_usetype = '{}'"
313
+ placeholder='用气类型'
314
+ value-single="true"
315
+ close-on-select>
316
+ </v-select>
317
+ </div>
318
+ <div class="col-sm-2 form-group">
319
+ <label for="f_use_institution" class="font_normal_body">用气机构</label>
320
+ <v-select :value.sync="model.f_use_institution" :search="false"
321
+ @change="$parent.$parent.userUseInstitutionChange()"
322
+ v-model="model.f_use_institution"
323
+ :options='$parent.$parent.useinstitutions'
324
+ condition="f_use_institution = '{}'"
325
+ placeholder='用气机构'
326
+ value-single="true"
327
+ close-on-select>
328
+ </v-select>
329
+ </div>
330
+ <div class="col-sm-2 form-group">
331
+ <label for="f_user_usenature" class="font_normal_body ">使用性质</label>
332
+ <v-select :value.sync="model.f_user_usenature" :search="false"
333
+ v-model="model.f_user_usenature"
334
+ :options='$parent.$parent.userusenatures'
335
+ condition="f_user_usenature = '{}'"
336
+ placeholder='使用性质'
337
+ value-single="true"
338
+ close-on-select>
339
+ </v-select>
340
+ </div>
341
+ </div>
342
+ </div>
343
+ </criteria>
344
+
345
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
346
+ <template partial='head'>
347
+ <tr>
348
+ <th>
349
+ <!-- <nobr>客户编号</nobr>-->
350
+ <data-order field="f_userinfo_code" name="客户编号"
351
+ :order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
352
+ </th>
353
+ <th>
354
+ <nobr>客户名称</nobr>
355
+ </th>
356
+ <th>
357
+ <nobr>档案编号</nobr>
358
+ </th>
359
+ <th>
360
+ <nobr>片区</nobr>
361
+ </th>
362
+ <th>
363
+ <nobr>表册片区</nobr>
364
+ </th>
365
+ <th>
366
+ <!-- <nobr>客户地址</nobr>-->
367
+ <data-order field="f_address" name="客户地址"
368
+ :order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
369
+ </th>
370
+ <th>
371
+ <nobr>客户手机</nobr>
372
+ </th>
373
+ <th>
374
+ <nobr>表号</nobr>
375
+ </th>
376
+ <th>
377
+ <!-- <nobr>数据年月</nobr>-->
378
+ <data-order field="ym_data" name="数据年月"
379
+ :order.sync="$parent.$parent.$parent.orderFields.ym_data"></data-order>
380
+ </th>
381
+ <th>
382
+ <!-- <nobr>审核日期</nobr>-->
383
+ <data-order field="f_audit_date" name="审核日期"
384
+ :order.sync="$parent.$parent.$parent.orderFields.f_audit_date"></data-order>
385
+ </th>
386
+ <th>
387
+ <nobr>上期底数</nobr>
388
+ </th>
389
+ <th>
390
+ <nobr>本期底数</nobr>
391
+ </th>
392
+ <th>
393
+ <nobr>用气量</nobr>
394
+ </th>
395
+ <th>
396
+ <nobr>违约金</nobr>
397
+ </th>
398
+ <th>
399
+ <nobr>用气金额</nobr>
400
+ </th>
401
+ <th>
402
+ <nobr>已交金额</nobr>
403
+ </th>
404
+ <th>
405
+ <nobr>欠费金额</nobr>
406
+ </th>
407
+ <th>
408
+ <nobr>优惠金额</nobr>
409
+ </th>
410
+ <th>
411
+ <nobr>上期余额</nobr>
412
+ </th>
413
+ <th>
414
+ <nobr>本期余额</nobr>
415
+ </th>
416
+ <th>
417
+ <nobr>下账状态</nobr>
418
+ </th>
419
+ <th>
420
+ <!-- <nobr>收费时间</nobr>-->
421
+ <data-order field="f_sellinggas_operate_date" name="收费时间"
422
+ :order.sync="$parent.$parent.$parent.orderFields.f_sellinggas_operate_date"></data-order>
423
+ </th>
424
+ <th>
425
+ <nobr>收费人员</nobr>
426
+ </th>
427
+ <th>
428
+ <!-- <nobr>冲正时间</nobr>-->
429
+ <data-order field="f_corrhand_date" name="冲正时间"
430
+ :order.sync="$parent.$parent.$parent.orderFields.f_corrhand_date"></data-order>
431
+ </th>
432
+ <th>
433
+ <nobr>冲正人员</nobr>
434
+ </th>
435
+ <th>
436
+ <!-- <nobr>下发日期</nobr>-->
437
+ <data-order field="f_hand_date" name="下发日期"
438
+ :order.sync="$parent.$parent.$parent.orderFields.f_hand_date"></data-order>
439
+ </th>
440
+ <th>
441
+ <!-- <nobr>所属年月</nobr>-->
442
+ <data-order field="belongmonth" name="所属年月"
443
+ :order.sync="$parent.$parent.$parent.orderFields.belongmonth"></data-order>
444
+ </th>
445
+ <th>
446
+ <!-- <nobr>录入日期</nobr>-->
447
+ <data-order field="f_input_date" name="录入日期"
448
+ :order.sync="$parent.$parent.$parent.orderFields.f_input_date"></data-order>
449
+ </th>
450
+ <th>
451
+ <nobr>气价名称</nobr>
452
+ </th>
453
+ <th>
454
+ <nobr>一阶气量</nobr>
455
+ </th>
456
+ <th>
457
+ <nobr>一阶单价</nobr>
458
+ </th>
459
+ <th>
460
+ <nobr>一阶气费</nobr>
461
+ </th>
462
+ <th>
463
+ <nobr>二阶气量</nobr>
464
+ </th>
465
+ <th>
466
+ <nobr>二阶单价</nobr>
467
+ </th>
468
+ <th>
469
+ <nobr>二阶气费</nobr>
470
+ </th>
471
+ <th>
472
+ <nobr>三阶气量</nobr>
473
+ </th>
474
+ <th>
475
+ <nobr>三阶单价</nobr>
476
+ </th>
477
+ <th>
478
+ <nobr>三阶气费</nobr>
479
+ </th>
480
+ <th>
481
+ <nobr>天数</nobr>
482
+ </th>
483
+ <th>
484
+ <nobr>抄表员</nobr>
485
+ </th>
486
+ <th>
487
+ <nobr>录入人员</nobr>
488
+ </th>
489
+ <th>
490
+ <nobr>是否缴费</nobr>
491
+ </th>
492
+
493
+ <th>
494
+ <nobr>抄表状态</nobr>
495
+ </th>
496
+ <th>
497
+ <nobr>状态</nobr>
498
+ </th>
499
+ <th>
500
+ <nobr>下发人员</nobr>
501
+ </th>
502
+ <th>
503
+ <nobr>部门</nobr>
504
+ </th>
505
+ <th>
506
+ <nobr>公司</nobr>
507
+ </th>
508
+ <th><nobr>附件</nobr></th>
509
+ </tr>
510
+ </template>
511
+ <template partial='body'>
512
+ <td style="text-align: center;">
513
+ <nobr>
514
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
515
+ </td>
516
+ <td style="text-align: center;">
517
+ <nobr>{{row.f_user_name}}</nobr>
518
+ </td>
519
+ <td style="text-align: center;">
520
+ <nobr>{{row.f_olduserinfo_code}}</nobr>
521
+ </td>
522
+ <td style="text-align: center;">
523
+ <nobr>{{row.f_zones}}</nobr>
524
+ </td>
525
+ <td style="text-align: center;">
526
+ <nobr>{{row.f_book_slice_area}}</nobr>
527
+ </td>
528
+ <td style="text-align: center;">
529
+ <nobr>{{row.f_address}}</nobr>
530
+ </td>
531
+
532
+ <td style="text-align: center;">
533
+ <nobr>{{row.phone}}</nobr>
534
+ </td>
535
+ <td style="text-align: center;">
536
+ <nobr>{{row.f_meternumber}}</nobr>
537
+ </td>
538
+ <td style="text-align: center;">
539
+ <nobr>{{row.ym_data}}</nobr>
540
+ </td>
541
+ <td style="text-align: center;">
542
+ <nobr>{{row.f_audit_date}}</nobr>
543
+ </td>
544
+ <td style="text-align: center;">
545
+ <nobr>{{row.f_last_tablebase}}</nobr>
546
+ </td>
547
+ <td style="text-align: center;">
548
+ <nobr>{{row.f_tablebase}}</nobr>
549
+ </td>
550
+ <td style="text-align: center;">
551
+ <nobr>{{row.f_oughtamount}}</nobr>
552
+ </td>
553
+ <td style="text-align: center;">
554
+ <nobr>{{row.overdue}}</nobr>
555
+ </td>
556
+ <td style="text-align: center;">
557
+ <nobr>{{row.f_oughtfee}}</nobr>
558
+ </td>
559
+ <td style="text-align: center;">
560
+ <nobr>{{row.f_debt_money}}</nobr>
561
+ </td>
562
+ <td style="text-align: center;">
563
+ <nobr>{{row.f_actual_arrears}}</nobr>
564
+ </td>
565
+ <td style="text-align: center;">
566
+ <nobr>{{row.f_privilege_money}}</nobr>
567
+ </td>
568
+ <td style="text-align: center;">
569
+ <nobr>{{row.f_balance}}</nobr>
570
+ </td>
571
+ <td style="text-align: center;">
572
+ <nobr>{{row.f_curbalance}}</nobr>
573
+ </td>
574
+ <td style="text-align: center;">
575
+ <nobr>{{row.f_accounts_state}}</nobr>
576
+ </td>
577
+ <td style="text-align: center;">
578
+ <nobr>{{row.f_sellinggas_operate_date}}</nobr>
579
+ </td>
580
+ <td style="text-align: center;">
581
+ <nobr>{{row.f_sell_operator}}</nobr>
582
+ </td>
583
+ <td style="text-align: center;">
584
+ <nobr>{{row.f_corrhand_date}}</nobr>
585
+ </td>
586
+ <td style="text-align: center;">
587
+ <nobr>{{row.f_corrhand_operator}}</nobr>
588
+ </td>
589
+ <td style="text-align: center;">
590
+ <nobr>{{row.f_hand_date}}</nobr>
591
+ </td>
592
+ <td>
593
+ <nobr>{{row.belongmonth}}</nobr>
594
+ </td>
595
+ <td style="text-align: center;">
596
+ <nobr>{{row.f_input_date}}</nobr>
597
+ </td>
598
+ <td style="text-align: center;">
599
+ <nobr>{{row.f_price_name}}</nobr>
600
+ </td>
601
+ <td style="text-align: center;">
602
+ <nobr>{{row.f_stair1amount}}</nobr>
603
+ </td>
604
+ <td style="text-align: center;">
605
+ <nobr>{{row.f_stair1price}}</nobr>
606
+ </td>
607
+ <td style="text-align: center;">
608
+ <nobr>{{row.f_stair1fee}}</nobr>
609
+ </td>
610
+ <td style="text-align: center;">
611
+ <nobr>{{row.f_stair2amount}}</nobr>
612
+ </td>
613
+ <td style="text-align: center;">
614
+ <nobr>{{row.f_stair2price}}</nobr>
615
+ </td>
616
+ <td style="text-align: center;">
617
+ <nobr>{{row.f_stair2fee}}</nobr>
618
+ </td>
619
+ <td style="text-align: center;">
620
+ <nobr>{{row.f_stair3amount}}</nobr>
621
+ </td>
622
+ <td style="text-align: center;">
623
+ <nobr>{{row.f_stair3price}}</nobr>
624
+ </td>
625
+ <td style="text-align: center;">
626
+ <nobr>{{row.f_stair3fee}}</nobr>
627
+ </td>
628
+ <td style="text-align: center;">
629
+ <nobr>{{row.dd}}</nobr>
630
+ </td>
631
+ <td style="text-align: center;">
632
+ <nobr>{{row.f_inputtor}}</nobr>
633
+ </td>
634
+ <td style="text-align: center;">
635
+ <nobr>{{row.f_input_person}}</nobr>
636
+ </td>
637
+ <td style="text-align: center;">
638
+ <nobr>{{row.f_whether_pay}}</nobr>
639
+ </td>
640
+
641
+ <td style="text-align: center;">
642
+ <nobr>{{row.f_meter_state}}</nobr>
643
+ </td>
644
+ <td style="text-align: center;">
645
+ <nobr>{{row.f_hand_state}}</nobr>
646
+ </td>
647
+ <td style="text-align: center;">
648
+ <nobr>{{row.f_operator}}</nobr>
649
+ </td>
650
+ <td style="text-align: center;">
651
+ <nobr>{{row.f_depname}}</nobr>
652
+ </td>
653
+ <td style="text-align: center;">
654
+ <nobr>{{row.f_orgname}}</nobr>
655
+ </td>
656
+ <td style="text-align: center;"><nobr>
657
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
658
+ <button v-if="row.f_notified_path" class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.imgShow(row.f_notified_path)">图像识别</button>
659
+ </nobr></td>
660
+ </template>
661
+ <template partial='foot'></template>
662
+ </data-grid>
663
+ </criteria-paged>
664
+
665
+ <table class="table-hover">
666
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
667
+ <td
668
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
669
+ 汇总信息
670
+ </td>
671
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
672
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
673
+ </td>
674
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
675
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
676
+ </td>
677
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
678
+ 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
679
+ </td>
680
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
681
+ 欠费金额合计:&emsp;{{sumsmodel.f_actual_arrears}}
682
+ </td>
683
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
684
+ 一阶气量合计:&emsp;{{sumsmodel.f_stair1amount}}
685
+ </td>
686
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
687
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
688
+ </td>
689
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
690
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
691
+ </td>
692
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
693
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
694
+ </td>
695
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
696
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
697
+ </td>
698
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
699
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
700
+ </td>
701
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
702
+ 剩余气量合计:&emsp;{{sumsmodel.f_surplus_gas}}
703
+ </td>
704
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
705
+ 扣减气量合计:&emsp;{{sumsmodel.f_haircut_gas}}
706
+ </td>
707
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
708
+ 应交气量合计:&emsp;{{sumsmodel.f_oughtamount}}
709
+ </td>
710
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
711
+ 已交气费金额合计:&emsp;{{sumsmodel.alloughtfee}}
712
+ </td>
713
+ </tr>
714
+ </table>
715
+ </div>
716
+ <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
717
+ <article slot="modal-body" class="modal-body">
718
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
719
+ </article>
720
+ <footer slot="modal-footer" class="modal-footer">
721
+ </footer>
722
+ </modal>
723
+ </div>
724
+ <div class="flex" v-if="show">
725
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
726
+ </div>
727
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
728
+ <article slot="modal-body">
729
+ <upload :blodid="selected.f_userinfo_id" :businessid="selected.id" v-ref:upload isupload="false" takeimg="false" fusetype="机表抄表" :isremark="false" style="width:auto" ></upload>
730
+ </article>
731
+ <footer slot="modal-footer" class="modal-footer">
732
+ </footer>
733
+ </modal>
734
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
735
+ <header slot="modal-header" class="modal-header">
736
+ 抄表图像识别照片
737
+ </header>
738
+ <article slot="modal-body" class="modal-body">
739
+ <div class="from-group">
740
+ <img-self :src="imgfilename" width="500" height="500"></img-self>
741
+ </div>
742
+ </article>
743
+ </modal>
744
+
745
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
746
+ <header slot="modal-header" class="modal-header">
747
+ 反盘导入
748
+ </header>
749
+ <article slot="modal-body" class="modal-body">
750
+ <div class="progress" style="margin: 20px" >
751
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
752
+ {{percent}}%
753
+ </div>
754
+ </div>
755
+ </article>
756
+ <footer slot="modal-footer" class="modal-footer">
757
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
758
+ </footer>
759
+ </modal>
760
+ <work-busy :is-busy="iswork" v-show="iswork"></work-busy>
761
+ </div>
762
+ </template>
763
+
764
+ <script>
765
+ import {PagedList, HttpResetClass} from 'vue-client'
766
+ import defaultPrint from './../config/DefaultPrint'
767
+ import exportConfig from './../config/exportConfig'
768
+ import axios from 'axios'
769
+
770
+ let readySomething = async function (self) {
771
+ //加载抄表册
772
+ self.$MagGetSaleParam.initinputtor();
773
+ self.getinputtores();
774
+ self.initmeterbook();
775
+ // await self.$LoadParams.loadMeterBook(self.f_filialeid)
776
+ // self.loadMeterBooks()
777
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
778
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
779
+ // self.$refs.paged.$refs.cri.model.handStartDate = self.$login.toStandardDateString() + ' 00:00:00'
780
+ // self.$refs.paged.$refs.cri.model.handEndDate = self.$login.toStandardDateString() + ' 23:59:59'
781
+
782
+ // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
783
+ // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
784
+ // await self.$refs.paged.$refs.cri.search()
785
+ await self.$getConfig(self, 'HandplanQuery')
786
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
787
+ await self.$MagLoadParams.loadParam()
788
+ // await self.$MagLoadParams.loadParam()
789
+ self.initParams()
790
+ console.log('开始查询')
791
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
792
+ }
793
+ export default {
794
+ props:['data'],
795
+ title: '机表抄表查询',
796
+ data() {
797
+ return {
798
+ iswork:false,
799
+ other:[],
800
+ footer:[],
801
+ data: {},
802
+ model: new PagedList('rs/sql/handplanQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`' z '`,startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
803
+ f_oughtamount: 0,
804
+ f_oughtfee: 0,
805
+ f_debt_money: 0,
806
+ f_actual_arrears: 0,
807
+ f_stair1amount: 0,
808
+ f_stair1fee: 0,
809
+ f_stair2amount: 0,
810
+ f_stair2fee: 0,
811
+ f_stair3amount: 0,
812
+ f_stair3fee: 0,
813
+ f_surplus_gas: 0,
814
+ f_haircut_gas: 0,
815
+ alloughtfee:0
816
+ }),
817
+ //排序
818
+ orderitem:' z ',
819
+ orderFields: {
820
+ f_userinfo_code: 'no'
821
+ },
822
+ initres: {
823
+ org:[this.$login.f.orgid],
824
+ dep:[],
825
+ user:[],
826
+ },
827
+ show:false,
828
+ rowdata:{},
829
+ criteriaShow: false,
830
+ residentialArea: [],
831
+ orgCondtionStr: '',
832
+ modelval: [],
833
+ gasproperties:[],
834
+ inputtouPerson: [],
835
+ meterbrands: [],
836
+ printshow: false,
837
+ f_filialeid: this.$login.f.f_orgid,
838
+ all: false,
839
+ fields: {},
840
+ thead: '',
841
+ tfoot: '',
842
+ showupload:false,
843
+ selected:{},
844
+
845
+ // 下拉框
846
+
847
+ //合计数据
848
+ sumsmodel: {},
849
+ defaultfield: [],
850
+ config: {
851
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
852
+ },
853
+ batchmoneyShow:false,
854
+ prices: [],
855
+ bgl:[{label: '全部', value: ''},{label: '有', value: '1'},{label: '无', value: '0'}],
856
+ meterbooks:[{label: '全部',value: ''}], //抄表册
857
+ tempfalg :false,
858
+ lastorgstr:'',
859
+ allorgid:[],
860
+ inputtores:[{label: '全部',value: ''}], //抄表员
861
+ //表册片区
862
+ bookSlice:[{label: '全部',value: ''}],
863
+ imgshow:false,
864
+ imgfilename:'',
865
+ percent:0,
866
+ progressShow:false,
867
+ uuida:'',
868
+ userusetypes: [],
869
+ useinstitutions: [],
870
+ userusenatures: [],
871
+ timer:'',
872
+ }
873
+ },
874
+ ready() {
875
+ this.getaddress()
876
+ readySomething(this).then(() => {
877
+ this.$emit('ready')
878
+ }).catch((error) => {
879
+ this.$emit('error', error)
880
+ })
881
+ },
882
+ methods: {
883
+ userUseInstitutionChange () {
884
+ this.userusenatures = []
885
+ this.$refs.paged.$refs.cri.model.f_user_usenature = ''
886
+ if (this.$refs.paged.$refs.cri.model.f_use_institution) {
887
+ let str = this.$refs.paged.$refs.cri.model.f_use_institution + '使用性质'
888
+ this.userusenatures = this.$appdata.getParam(str)
889
+ }
890
+ },
891
+ userUseTypeChange () {
892
+ this.useinstitutions = []
893
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
894
+ if (this.$refs.paged.$refs.cri.model.f_user_usetype) {
895
+ let str = this.$refs.paged.$refs.cri.model.f_user_usetype + '机构'
896
+ this.useinstitutions = this.$appdata.getParam(str)
897
+ }
898
+ },
899
+ getuuid(){
900
+ let uuidA = '';
901
+ var s = [];
902
+ var hexDigits = '0123456789abcdef';
903
+ for (var i = 0; i < 36; i++) {
904
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
905
+ }
906
+ s[14] = '4';
907
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
908
+ s[8] = s[13] = s[18] = s[23] = '-';
909
+ uuidA = s.join('');
910
+ this.uuida = uuidA;
911
+ },
912
+ progressclose(){
913
+ this.progressShow = false;
914
+ if(this.timer != null){
915
+ clearInterval(this.timer);
916
+ }
917
+ },
918
+ async initmeterbook(orgstr){
919
+ if(orgstr == null ){
920
+ orgstr = this.f_filialeid;
921
+ }
922
+ //获取新的抄表册,先去清理所有的抄表册
923
+ this.$GetSaleParam.meterbooks = [];
924
+ //开始加载新的抄表册
925
+ await this.$LoadParams.loadMeterBook(orgstr)
926
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
927
+ },
928
+ //初始化片区
929
+ async initSlice (val) {
930
+ if (val) {
931
+ let getAllArea = await this.$resetpost('/rs/search', {
932
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
933
+ userid: this.$login.f.id
934
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
935
+ let arr = getAllArea.data.filter((res) => {
936
+ return res.parentid == val
937
+ })
938
+ this.bookSlice = []
939
+ arr.forEach((res) => {
940
+ this.bookSlice.push({label: res.name, value: res.name})
941
+ })
942
+ }
943
+ },
944
+ //表册片区和抄表册关联
945
+ async inputtorchange(){
946
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
947
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
948
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
949
+ if((val2.length>0)){
950
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
951
+ let aaa = '('
952
+ val2.forEach((item) => {
953
+ aaa = aaa + `'${item}',`
954
+ })
955
+ aaa = aaa + `'')`
956
+ condition = condition + ` and f_book_slice_area in ${aaa} `
957
+ let param={
958
+ items:'*',
959
+ tablename:'t_meter_book',
960
+ condition:condition,
961
+ orderitem:'id'
962
+ }
963
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
964
+ if (getMeterBooks.data) {
965
+ if(getMeterBooks.data.length >0){
966
+ let rs = [];
967
+ getMeterBooks.data.forEach((item)=>{
968
+ let temp = {
969
+ label:item.f_book_name,
970
+ value:item.id
971
+ };
972
+ rs.push(temp);
973
+
974
+ })
975
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
976
+ }else{
977
+ this.meterbooks = [{label: '全部',value: ''}];
978
+ }
979
+ }
980
+ }else{
981
+ this.meterbooks = [{label: '全部',value: ''}];
982
+ this.initmeterbook();
983
+ }
984
+ },
985
+ async initmeterbook(orgstr){
986
+ if(orgstr == null ){
987
+ orgstr = this.f_filialeid;
988
+ }
989
+ //获取新的抄表册,先去清理所有的抄表册
990
+ this.$GetSaleParam.meterbooks = [];
991
+ //开始加载新的抄表册
992
+ await this.$LoadParams.loadMeterBook(orgstr)
993
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
994
+ },
995
+
996
+ async getinputtores () {
997
+ // 获取抄表员
998
+ let rs = []
999
+ if (this.$login.f.f_gasman.length > 0) {
1000
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1001
+ let temp = {
1002
+ label: this.$login.f.f_gasman[i].name,
1003
+ value: this.$login.f.f_gasman[i].name
1004
+ }
1005
+ rs.push(temp)
1006
+ }
1007
+ }
1008
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
1009
+ this.inputtores.push({label: "微信公众号", value: "微信公众号"})
1010
+ },
1011
+ async updateParams() {
1012
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
1013
+ this.inputtores = [];
1014
+ this.inputtores.push({label: "全部", value: ""})
1015
+ this.initSlice(this.f_filialeid)
1016
+ if(this.allorgid!=null){
1017
+ this.allorgid.forEach((res)=>{
1018
+ this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
1019
+ })
1020
+ }
1021
+ this.initParams()
1022
+ },
1023
+ view(row){
1024
+ this.showupload = true
1025
+ this.selected= row
1026
+ },
1027
+ imgclose(){
1028
+ this.imgshow = false
1029
+ },
1030
+ imgShow(val){
1031
+ this.imgfilename = `rs/image/file/`+val
1032
+ this.imgshow = true
1033
+ },
1034
+ initParams() {
1035
+ // 初始化气表品牌
1036
+ let brandArr = []
1037
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
1038
+ let temp = {}
1039
+ temp.label = item.label
1040
+ temp.value = item.value.f_meter_brand
1041
+ brandArr.push(temp)
1042
+ })
1043
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
1044
+ //初始化气价
1045
+ let result = []
1046
+ this.$MagGetSaleParam.prices.forEach((item) => {
1047
+ if (item.f_state === '有效' && this.$login.f.orgid == item.f_filialeid) {
1048
+ let value = {
1049
+ label: item.f_price_name,
1050
+ value: item.f_price_name
1051
+ }
1052
+ result.push(value)
1053
+ }
1054
+ })
1055
+ let hash = {}
1056
+ result = result.reduce((item, next) => {
1057
+ hash[next.label] ? '' : hash[next.label] = true && item.push(next)
1058
+ return item
1059
+ }, [])
1060
+ this.prices = Array.from(new Set(result))
1061
+ },
1062
+ getotherfooter(){
1063
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
1064
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
1065
+ this.other=[];
1066
+ this.footer=[];
1067
+ let exportdata = this.getCondition;
1068
+ let otherInData=[];
1069
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
1070
+ let footerData=[],exportfield=this.getfield;
1071
+ footerData.push("合计");
1072
+ let self = this;
1073
+ for(var field in self.sumsmodel){
1074
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
1075
+ }
1076
+ this.footer.push(footerData);
1077
+ this.other.push(otherInData);
1078
+ },
1079
+ async getaddress(){
1080
+ let HttpReset = new HttpResetClass()
1081
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
1082
+ data: {
1083
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
1084
+ }
1085
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
1086
+ console.log('小区',data)
1087
+ let house = [{label: '全部', value: ''}]
1088
+ for (let row of data.data){
1089
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
1090
+ }
1091
+ this.residentialArea = house
1092
+ },
1093
+ Fileinput(){
1094
+ this.batchmoneyShow=true;
1095
+ },
1096
+ search(){
1097
+ this.$refs.paged.$refs.cri.search()
1098
+ },
1099
+ cancel() {
1100
+ this.show = false
1101
+ },
1102
+ selfSearch(args) {
1103
+ if (this.data) {
1104
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
1105
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
1106
+ }
1107
+ if (this.$refs.paged.$refs.cri.model.startDate === ''|| this.$refs.paged.$refs.cri.model.endDate === '') {
1108
+ this.$showMessage('请选择录入日期开始时间和结束时间!')
1109
+ return
1110
+ }
1111
+ this.area = this.$refs.paged.$refs.cri.model.f_residential_area
1112
+ if(this.area.length !== 0){
1113
+ let str = JSON.stringify(this.area)
1114
+ str = str.replace(/"/g,`'`)
1115
+ str = str.replace(/\[/g,``)
1116
+ str = str.replace(/\]/g,``)
1117
+ //查询多个小区时条件
1118
+ args.condition += ` and f_residential_area in ( ${str} )`
1119
+ }
1120
+ //抄表员查询条件
1121
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
1122
+ if(this.inputtouPerson.length !== 0){
1123
+ let str = JSON.stringify(this.inputtouPerson)
1124
+ str = str.replace(/"/g,`'`)
1125
+ str = str.replace(/\[/g,``)
1126
+ str = str.replace(/\]/g,``)
1127
+ //查询多个抄表员时条件
1128
+ args.condition += ` and f_inputtor in ( ${str} )`
1129
+ }
1130
+
1131
+ args.condition = `${args.condition} ` + this.orgCondtionStr
1132
+ this.model.search(args.condition, args.model)
1133
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
1134
+ },
1135
+ clear() {
1136
+ //清空部门和人员
1137
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
1138
+ //部门和人员变为全选
1139
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
1140
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
1141
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
1142
+ this.$refs.paged.$refs.cri.model[key] = []
1143
+ })
1144
+ this.$refs.paged.$refs.cri.model.f_meter_classify = []
1145
+ },
1146
+ show() {
1147
+ this.criteriaShow = true
1148
+ },
1149
+ hidden() {
1150
+ this.criteriaShow = !this.criteriaShow
1151
+ },
1152
+ async getRes(condition,obj) {
1153
+ this.orgCondtionStr = condition
1154
+
1155
+ },
1156
+ stamp() {
1157
+ this.all = false
1158
+ //默认选择要打印的列
1159
+ this.modelval = defaultPrint.config
1160
+ this.fields = this.getfield
1161
+ this.printshow = true
1162
+ this.put()
1163
+ },
1164
+ put() {
1165
+ // 对Modelval进行排序
1166
+ this.sortModelval()
1167
+ this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
1168
+ for (let key of this.modelval) {
1169
+ this.thead += '<th>' + this.fields[key] + '</th>'
1170
+ }
1171
+ this.thead += '</tr>'
1172
+ },
1173
+ sort (field, rule) {
1174
+ // 将所有排序方式设为不排序,实现相互排斥
1175
+ for (let key in this.orderFields) {
1176
+ if (key === field) {
1177
+ this.orderFields[key] = rule
1178
+ } else {
1179
+ this.orderFields[key] = 'no'
1180
+ }
1181
+ }
1182
+ // 如果新规则不排序,还原为默认排序
1183
+ if (rule === 'no') {
1184
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
1185
+ } else {
1186
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
1187
+ }
1188
+
1189
+ this.search()
1190
+ },
1191
+ print() {
1192
+ this.$refs.print.PrintAsFile()
1193
+ this.printshow = false
1194
+ },
1195
+ dealmsg(val) {
1196
+ this.rowdata=val
1197
+ this.show=true
1198
+ val.model = this.model.model
1199
+ this.$dispatch('deal-msg', val)
1200
+ },
1201
+ close() {
1202
+ this.printshow = false
1203
+ this.all = false
1204
+ },
1205
+
1206
+ userTypeChange () {
1207
+ this.gasproperties=[]
1208
+ this.userusetypes = []
1209
+ if(this.$refs.paged.$refs.cri.model !==null) {
1210
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
1211
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
1212
+ this.$refs.paged.$refs.cri.model.f_use_institution = ''
1213
+ let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
1214
+ this.userusetypes = this.$appdata.getParam(str)
1215
+ }
1216
+ else{
1217
+ this.gasproperties =[{label: '全部', value: ''}]
1218
+ }
1219
+ },
1220
+ // 对选择的列进行排序
1221
+ sortModelval() {
1222
+ let sortModel = []
1223
+ Object.keys(this.fields).forEach((key) => {
1224
+ if (this.modelval.includes(key)) {
1225
+ sortModel.push(key)
1226
+ }
1227
+ })
1228
+ this.modelval = sortModel
1229
+ }
1230
+ },
1231
+ watch: {
1232
+ 'model.rows'(val) {
1233
+ if(val.length === 0){
1234
+ this.sumsmodel = {}
1235
+ }
1236
+ },
1237
+ async 'orgCondtionStr'(val) {
1238
+ this.$refs.paged.$refs.cri.model.f_inputtor=[]
1239
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
1240
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
1241
+ this.meterbooks = [{label: '全部',value: ''}];
1242
+ if(this.lastorgstr != val){
1243
+ this.tempfalg = true;
1244
+ this.lastorgstr = val;
1245
+ }
1246
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
1247
+ this.tempfalg = false;
1248
+ let a = val.substring(val.indexOf("(")+2)
1249
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
1250
+ }
1251
+ let res = val.match(/'(.*?)'/)
1252
+ console.log('正则提取:',res && res[1])
1253
+ if (res) {
1254
+ this.f_filialeid = res[1]
1255
+ if(res.input !=null){
1256
+ let resorgid = res.input.substring(res.input.indexOf("'"));
1257
+ if(resorgid!= null && resorgid!=''){
1258
+ resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
1259
+ // resorgid = resorgid.replaceAll("'","");
1260
+ resorgid = resorgid.replace(/'/g,"");
1261
+ this.allorgid = resorgid.split(",")
1262
+ }
1263
+ }
1264
+ this.updateParams()
1265
+ }
1266
+ },
1267
+ 'all'(val) {
1268
+ if (val) {
1269
+ this.modelval = this.bodyData
1270
+ } else {
1271
+ this.modelval = defaultPrint.config
1272
+ this.put()
1273
+ }
1274
+ },
1275
+ 'modelval.length'() {
1276
+ this.put()
1277
+ },
1278
+ sumsmodel:{
1279
+ handler: function(val) {
1280
+ this.getotherfooter();
1281
+ },
1282
+ deep: true
1283
+ }
1284
+ },
1285
+ computed: {
1286
+
1287
+ metertypes() {
1288
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
1289
+ },
1290
+ banklist() {
1291
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
1292
+ },
1293
+ getCondition() {
1294
+ return {
1295
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
1296
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
1297
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
1298
+ orderitem: this.orderitem?`${this.orderitem}`: " z "}
1299
+ },
1300
+ getfield() {
1301
+ return exportConfig.handplanConfig
1302
+ },
1303
+ getBankfield(){
1304
+ return exportConfig.batchBankConfig2
1305
+ },
1306
+ usertypes() {
1307
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
1308
+ },
1309
+ accountsState() {
1310
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
1311
+ },
1312
+ meterstate() {
1313
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
1314
+ },
1315
+ handstate() {
1316
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
1317
+ },
1318
+ // inputtor() {
1319
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
1320
+ // },
1321
+ pricetypes() {
1322
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
1323
+ },
1324
+ getPricenames() {
1325
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
1326
+ let f_gasproperties = this.$refs.paged.$refs.cri.model.f_gasproperties;
1327
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
1328
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
1329
+ if(this.$refs.paged.$refs.cri.model !==null) {
1330
+ let rs = []
1331
+ let priceArr = []
1332
+ if ( pricetype.length >0) {
1333
+ let params = {
1334
+ f_price_type: pricetype[0],
1335
+ filter: this.f_filialeid,
1336
+ prices: this.prices
1337
+ }
1338
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
1339
+ let temp = {}
1340
+ temp.label = item.label
1341
+ temp.value = item.value.f_price_name
1342
+ priceArr.push(temp)
1343
+ })
1344
+ rs = [{label: '全部', value: ''}, ...priceArr]
1345
+ }
1346
+ if (rs.length === 0) {
1347
+ console.log('rs读出来是空')
1348
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
1349
+ }
1350
+ return rs
1351
+ }
1352
+ },
1353
+ inputtor () {
1354
+ // 获取抄表员
1355
+ console.log('获取抄表员', this.$login.f)
1356
+ let rs = []
1357
+ if (this.$login.f.f_gasman.length > 0) {
1358
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
1359
+ let temp = {
1360
+ label: this.$login.f.f_gasman[i].name,
1361
+ value: this.$login.f.f_gasman[i].name
1362
+ }
1363
+ rs.push(temp)
1364
+ }
1365
+ }
1366
+
1367
+ return [{label: '全部', value: ''}, ...rs]
1368
+ },
1369
+ whetherPay() {
1370
+ return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
1371
+ },
1372
+
1373
+ },
1374
+ events:{
1375
+ 'onFileUpload': async function (file, res) {
1376
+ if (this.batchmoneyShow) {
1377
+ this.percent = 0;
1378
+ this.getuuid();
1379
+ let param = {
1380
+ filepath: res.f_downloadpath,
1381
+ f_operator: this.$login.f.name,
1382
+ f_operatorid: this.$login.f.id,
1383
+ f_orgid: this.$login.f.orgid,
1384
+ f_orgname: this.$login.f.orgs,
1385
+ f_depid: this.$login.f.depids,
1386
+ f_depname: this.$login.f.deps,
1387
+ uuid: this.uuida
1388
+ }
1389
+ this.batchmoneyShow=false;
1390
+ try{
1391
+ await this.$resetpost('rs/logic/SumSettleFileImport',{data: param},{resolveMsg: null, rejectMsg: null},1000).then((res)=>{
1392
+ if(res.data){
1393
+ }
1394
+ })
1395
+ }catch(error){}
1396
+ let getparam = {
1397
+ uuid: this.uuida
1398
+ }
1399
+ let self = this;
1400
+ this.progressShow=true;
1401
+ this.timer = setInterval(function(){
1402
+ self.$resetpost('/rs/logic/getBatchOperaPro',{data:getparam},{resolveMsg: null, rejectMsg: null}, 0).then((res)=>{
1403
+ if(res.data ){
1404
+ if(res.data.speed){
1405
+ if(res.data.speed>= 100){
1406
+ clearInterval(self.timer);
1407
+ if(res.data.speed){
1408
+ self.percent = 99;
1409
+ }
1410
+ setTimeout(()=>{
1411
+ self.percent = 100;
1412
+ self.progressclose();
1413
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum}(包含之前导入${res.data.aftersum}),失败数据请在稽查查询中错误查询进行查看!!`);
1414
+ },600);
1415
+ }else{
1416
+ self.percent = res.data.speed
1417
+ }
1418
+ }else{
1419
+ self.percent=0;
1420
+ }
1421
+ }
1422
+ });
1423
+ },3000);
1424
+ }
1425
+ }
1426
+ }
1427
+ }
1428
+ </script>