manage-client 3.3.179 → 3.3.181

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 (53) hide show
  1. package/build/dev-server.js +11 -7
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/gradlew +234 -234
  4. package/gradlew.bat +89 -89
  5. package/package.json +1 -1
  6. package/src/components/SellReport/BusinessClassify.vue +292 -292
  7. package/src/components/SellReport/GasMoneyPublicConReport.vue +258 -258
  8. package/src/components/handReport/WebGastypeMonthReport.vue +190 -190
  9. package/src/components/sale/businessquery/BusinessManage.vue +212 -212
  10. package/src/components/sale/businessquery/CardHandplanQuery.vue +546 -546
  11. package/src/components/sale/businessquery/ChargeQuery.vue +6 -0
  12. package/src/components/sale/businessquery/FMYGasQuery.vue +813 -813
  13. package/src/components/sale/businessquery/TransferQuery.vue +502 -502
  14. package/src/components/sale/businessquery/WebMeterMonthUserGasQuery.vue +471 -471
  15. package/src/components/sale/config/exportConfig.js +1245 -1245
  16. package/src/components/sale/filesquery/RecordInfoQuery.vue +1443 -1443
  17. package/src/components/webmeter/gasStatistics/GasStatistics.vue +525 -525
  18. package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +541 -541
  19. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +3 -1
  20. package/src/filiale/WEINAN/InspectListGas.vue +616 -616
  21. package/src/filiale/jingyang/RechargeList.vue +346 -346
  22. package/src/filiale/jingyang/sale.js +6 -6
  23. package/src/filiale/kelai/GasStatistics.vue +536 -536
  24. package/src/filiale/liaoyuan/HandplanQuery.vue +1289 -1289
  25. package/src/filiale/lixianV3/RecordInfoQuery.vue +22 -1
  26. package/src/filiale/meihekou/AreaGeneralQuery.vue +206 -0
  27. package/src/filiale/meihekou/CardHandplanQuery.vue +664 -664
  28. package/src/filiale/meihekou/ChargeQuery.vue +1274 -1274
  29. package/src/filiale/meihekou/CollectManage.vue +3 -3
  30. package/src/filiale/meihekou/HandplanQuery.vue +1248 -1248
  31. package/src/filiale/meihekou/OtherChargeQuery.vue +4 -5
  32. package/src/filiale/meihekou/UserSellHeadDetail.vue +492 -0
  33. package/src/filiale/meihekou/config/exportConfig.js +1 -2
  34. package/src/filiale/meihekou/sale.js +5 -0
  35. package/src/filiale/ningjin/UserLostContactAnalysis.vue +623 -623
  36. package/src/filiale/qianneng/exportConfig.js +232 -232
  37. package/src/filiale/shaoguan/errorHandplanQuery.vue +386 -386
  38. package/src/filiale/taizhoukesi/ChangeMeterQuery.vue +683 -683
  39. package/src/filiale/taizhoukesi/config/exportConfig.js +2379 -2379
  40. package/src/filiale/taizhoukesi/sale.js +11 -11
  41. package/src/filiale/tongchuan/InspectListGas.vue +700 -700
  42. package/src/filiale/tongchuan/ResSelectGroupNew.vue +188 -188
  43. package/src/filiale/yangchun/ManageBusSummaryNew.vue +239 -239
  44. package/src/filiale/yangchun/RecordInfoQuery.vue +1477 -0
  45. package/src/filiale/yangchun/UserQuery.vue +980 -980
  46. package/src/filiale/yangchun/config/DefaultPrint.js +6 -6
  47. package/src/filiale/yangchun/config/exportConfig.js +1230 -1231
  48. package/src/filiale/yangchun/config/tableConfig.js +58 -58
  49. package/src/filiale/yangchun/reportManage.js +6 -6
  50. package/src/filiale/yangchun/sale.js +12 -8
  51. package/src/filiale/yangchun/webmeterManage.js +5 -5
  52. package/src/reportManage.js +768 -768
  53. package/src/saleManage.js +689 -689
@@ -1,664 +1,664 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- condition="f_hand_date >= '{}'">
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</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
- condition="f_hand_date <= '{}'">
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
-
35
-
36
- <div class="span" style="float:right;">
37
- <button class="button_search button_spacing" @click="search()">查询</button>
38
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
40
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
41
- sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="cardhandplanQuery" template-name='卡表抄表查询导出'
42
- :choose-col="true"></export-excel>
43
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
44
- :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
45
-
46
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
47
-
48
- <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>
49
- </div>
50
- </div>
51
- <div class="row" v-show="$parent.$parent.criteriaShow">
52
- <div class="col-sm-2 form-group">
53
- <label class="font_normal_body">客户名称</label>
54
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
55
- condition="f_user_name like '%{}%'" placeholder="客户名称">
56
- </div>
57
- <div class="col-sm-2 form-group">
58
- <label class="font_normal_body">客户地址</label>
59
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
- condition="f_address like '%{}%'" placeholder='客户地址'>
61
- </div>
62
- <div class="col-sm-2 form-group">
63
- <label class="font_normal_body">小区名称</label>
64
- <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
65
- condition="f_residential_area like '%{}%'" placeholder="小区">
66
- </div>
67
- <div class="col-sm-2 form-group">
68
- <label class="font_normal_body">楼&emsp;栋&emsp;</label>
69
- <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
70
- condition="f_building = '{}'" placeholder="楼栋">
71
- </div>
72
- <!-- add -->
73
- <div class="col-sm-2 form-group">
74
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
75
- <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
76
- condition="f_unit = '{}'" placeholder="单元"/>
77
- </div>
78
- <div class="col-sm-2 form-group">
79
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
80
- <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
81
- condition="f_floor = '{}'" placeholder="楼层"/>
82
- </div>
83
- <div class="col-sm-2 form-group">
84
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
85
- <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
86
- condition="f_room = '{}'" placeholder="门牌号">
87
- </div>
88
- <!-- end-->
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body">抄表状态</label>
91
- <v-select :value.sync="model.f_meter_state"
92
- v-model="model.f_meter_state"
93
- :options='$parent.$parent.meterstate' placeholder='请选择'
94
- condition="f_meter_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
- <v-select :value.sync="model.f_hand_state"
100
- v-model="model.f_hand_state"
101
- :options='$parent.$parent.handstate' placeholder='请选择'
102
- condition="f_hand_state = '{}'"
103
- close-on-select></v-select>
104
- </div>-->
105
- <div class="col-sm-2 form-group">
106
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
107
- <v-select :value.sync="model.f_inputtor"
108
- v-model="model.f_inputtor"
109
- condition="f_inputtor in {}"
110
- :options='$parent.$parent.inputtor' placeholder='请选择'
111
- multiple = "true"
112
- close-on-select></v-select>
113
- </div>
114
- <div class="col-sm-2 form-group">
115
- <label class="font_normal_body">客户类型</label>
116
- <v-select :value.sync="model.f_user_type"
117
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
118
- condition="f_user_type = '{}'"
119
- close-on-select></v-select>
120
- </div>
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">抄表结果状态</label>
123
- <v-select :value.sync="model.f_result_state"
124
- v-model="model.f_result_state"
125
- :options='$parent.$parent.attimehandstate' placeholder='请选择'
126
- condition="f_result_state = '{}'"
127
- close-on-select></v-select>
128
- </div>
129
- <!--<div class="col-sm-2 form-group">
130
- <label class="font_normal_body">是否缴费</label>
131
- <v-select :value.sync="model.f_whether_pay"
132
- :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_whether_pay"
133
- condition="f_whether_pay = '{}'"
134
- close-on-select></v-select>
135
- </div>-->
136
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
137
- <div class="col-sm-2 form-group">
138
- <label class="font_normal_body">气价类型</label>
139
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
140
- @change="$parent.$parent.pricetypechanged"
141
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
142
- close-on-select v-ref:type>
143
- </v-select>
144
- </div>
145
- <div class="col-sm-2 form-group">
146
- <label class="font_normal_body">气价名称</label>
147
- <v-select :value.sync="model.f_price_name"
148
- v-model="model.f_price_name"
149
- multiple
150
- :options="$parent.$parent.getPricenames"
151
- condition="f_price_name in {}"
152
- ></v-select>
153
- </div>
154
- </div>
155
- </div>
156
- </criteria>
157
-
158
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
159
- <template partial='head'>
160
- <tr>
161
- <th>
162
- <nobr>客户编号</nobr>
163
- </th>
164
- <th>
165
- <nobr>客户名称</nobr>
166
- </th>
167
- <th>
168
- <nobr>客户地址</nobr>
169
- </th>
170
- <th>
171
- <nobr>表号</nobr>
172
- </th>
173
- <th>
174
- <nobr>地址</nobr>
175
- </th>
176
- <th>
177
- <nobr>上期底数</nobr>
178
- </th>
179
- <th>
180
- <nobr>本期底数</nobr>
181
- </th>
182
- <th>
183
- <nobr>气量</nobr>
184
- </th>
185
- <th>
186
- <nobr>抄表结果状态</nobr>
187
- </th>
188
- <th>
189
- <nobr>总购气量</nobr>
190
- </th>
191
- <th>
192
- <nobr>余量</nobr>
193
- </th>
194
- <th>
195
- <nobr>录入日期</nobr>
196
- </th>
197
- <th>
198
- <nobr>抄表员</nobr>
199
- </th>
200
-
201
- <th>
202
- <nobr>抄表状态</nobr>
203
- </th>
204
- <th>
205
- <nobr>一阶气量</nobr>
206
- </th>
207
- <th>
208
- <nobr>一阶单价</nobr>
209
- </th>
210
- <th>
211
- <nobr>一阶气费</nobr>
212
- </th>
213
- <th>
214
- <nobr>二阶气量</nobr>
215
- </th>
216
- <th>
217
- <nobr>二阶单价</nobr>
218
- </th>
219
- <th>
220
- <nobr>二阶气费</nobr>
221
- </th>
222
- <th>
223
- <nobr>三阶气量</nobr>
224
- </th>
225
- <th>
226
- <nobr>三阶单价</nobr>
227
- </th>
228
- <th>
229
- <nobr>三阶气费</nobr>
230
- </th>
231
- <th>
232
- <nobr>人员</nobr>
233
- </th>
234
- <th>
235
- <nobr>部门</nobr>
236
- </th>
237
- <!-- <th>-->
238
- <!-- <nobr>公司</nobr>-->
239
- <!-- </th>-->
240
- </tr>
241
- </template>
242
- <template partial='body'>
243
- <td style="text-align: center;">
244
- <nobr>
245
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
246
- </td>
247
- <td style="text-align: center;">
248
- <nobr>{{row.f_user_name}}</nobr>
249
- </td>
250
- <td style="text-align: center;">
251
- <nobr>{{row.f_address}}</nobr>
252
- </td>
253
- <td style="text-align: center;">
254
- <nobr>{{row.f_meternumber}}</nobr>
255
- </td>
256
- <td style="text-align: center;">
257
- <nobr>{{row.f_address}}</nobr>
258
- </td>
259
- <td style="text-align: center;">
260
- <nobr>{{row.f_last_tablebase}}</nobr>
261
- </td>
262
- <td style="text-align: center;">
263
- <nobr>{{row.f_tablebase}}</nobr>
264
- </td>
265
- <td style="text-align: center;">
266
- <nobr>{{row.f_real_amount}}</nobr>
267
- </td>
268
- <td style="text-align: center;">
269
- <nobr>{{row.f_result_state}}</nobr>
270
- </td>
271
- <td style="text-align: center;">
272
- <nobr>{{row.f_card_total_gas}}</nobr>
273
- </td>
274
- <td style="text-align: center;">
275
- <nobr>{{row.f_shengyu_gas}}</nobr>
276
- </td>
277
- <td style="text-align: center;">
278
- <nobr>{{row.f_hand_date}}</nobr>
279
- </td>
280
- <td style="text-align: center;">
281
- <nobr>{{row.f_inputtor}}</nobr>
282
- </td>
283
-
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_meter_state}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_stairamount1}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_stair1price}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_stair2amount}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_stair2price}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
304
- </td>
305
- <td style="text-align: center;">
306
- <nobr>{{row.f_stair3amount}}</nobr>
307
- </td>
308
- <td style="text-align: center;">
309
- <nobr>{{row.f_stair3price}}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
313
- </td>
314
- <td style="text-align: center;">
315
- <nobr>{{row.f_operator}}</nobr>
316
- </td>
317
- <td style="text-align: center;">
318
- <nobr>{{row.f_depname}}</nobr>
319
- </td>
320
- <!-- <td style="text-align: center;">-->
321
- <!-- <nobr>{{row.f_orgname}}</nobr>-->
322
- <!-- </td>-->
323
- </template>
324
- <template partial='foot'></template>
325
- </data-grid>
326
- </criteria-paged>
327
- <table class="table-hover">
328
- <tr style="position: relative;margin-top: -16px;" class="table-bordered">
329
- <td
330
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
331
- 汇总信息
332
- </td>
333
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
- 气量合计:&emsp;{{sumsmodel.f_real_amount}}
335
- </td>
336
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
337
- 总购气量合计:&emsp;{{sumsmodel.f_card_total_gas}}
338
- </td>
339
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
- 余量合计:&emsp;{{sumsmodel.f_yuliang}}
341
- </td>
342
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
343
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
344
- </td>
345
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
346
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
347
- </td>
348
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
349
- 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
350
- </td>
351
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
352
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
353
- </td>
354
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
355
- 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
356
- </td>
357
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
358
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
359
- </td>
360
- </tr>
361
- </table>
362
- </div>
363
- <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
364
- <article slot="modal-body" class="modal-body">
365
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
366
- </article>
367
- <footer slot="modal-footer" class="modal-footer">
368
- </footer>
369
- </modal>
370
- <div class="flex" v-if="show">
371
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
372
- </div>
373
- </div>
374
- </div>
375
- </template>
376
-
377
- <script>
378
- import {PagedList, HttpResetClass} from 'vue-client'
379
- import defaultPrint from './config/DefaultPrint'
380
- import exportConfig from './config/exportConfig'
381
-
382
- let readySomething = async function (self) {
383
- self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
384
- self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
385
- await self.$getConfig(self, 'CardHandplanQuery')
386
- console.log('抄表查询获取默认配置', self.config)
387
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
388
- console.log('开始初始化参数', self.defaultfield)
389
- await self.$MagLoadParams.loadParam()
390
- console.log('开始查询')
391
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
392
- }
393
- export default {
394
- props:['data'],
395
- title: '卡表抄表查询',
396
- data() {
397
- return {
398
- other:[],
399
- footer:[],
400
- data: {},
401
- model: new PagedList('api/af-revenue/sql/cardhandplanQuery', 20, {},{f_real_amount:0,f_card_total_gas:0,f_yuliang:0,f_stairamount1:0,
402
- f_stair1fee:0,
403
- f_stair2amount:0,
404
- f_stair2fee:0,
405
- f_stair3amount:0,
406
- f_stair3fee:0}),
407
- f_filialeid: this.$login.f.orgid,
408
- initres: {
409
- org:[this.$login.f.orgid],
410
- dep:[],
411
- user:[],
412
- },
413
- show:false,
414
- rowdata:{},
415
- criteriaShow: false,
416
- orgCondtionStr: '',
417
- modelval: [],
418
- inputtouPerson: [],
419
- printshow: false,
420
- all: false,
421
- fields: {},
422
- thead: '',
423
- tfoot: '',
424
-
425
- // 下拉框
426
-
427
- //合计数据
428
- sumsmodel: {},
429
- defaultfield: [],
430
- config: {
431
- defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
432
- },
433
- batchmoneyShow:false
434
- }
435
- },
436
- ready() {
437
- readySomething(this).then(() => {
438
- this.$emit('ready')
439
- }).catch((error) => {
440
- this.$emit('error', error)
441
- })
442
- },
443
- methods: {
444
- pricetypechanged(){
445
- this.$refs.paged.$refs.cri.model.f_price_name = []
446
- },
447
- getotherfooter(){
448
-
449
- this.other=[];
450
- this.footer=[];
451
- let exportdata = this.getCondition;
452
- let otherInData=[];
453
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
454
- let footerData=[],exportfield=this.getfield;
455
- footerData.push("合计");
456
- let self = this;
457
- for(var field in self.sumsmodel){
458
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
459
- }
460
- this.footer.push(footerData);
461
- this.other.push(otherInData);
462
- },
463
- Fileinput(){
464
- this.batchmoneyShow=true;
465
- },
466
- search(){
467
- this.$refs.paged.$refs.cri.search()
468
- },
469
- cancel() {
470
- this.show = false
471
- },
472
- selfSearch(args) {
473
- this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
474
- this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
475
- //抄表员查询条件
476
- // console.log('抄表员==================>', this.$refs.paged.$refs.cri.model.f_inputtor)
477
- // console.log('抄表员==================>', this.inputtouPerson)
478
- // this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
479
- // if(this.inputtouPerson.length !== 0){
480
- // let str = JSON.stringify(this.inputtouPerson)
481
- // str = str.replace(/"/g,`'`)
482
- // str = str.replace(/\[/g,``)
483
- // str = str.replace(/\]/g,``)
484
- // //查询多个抄表员时条件
485
- // this.orgCondtionStr += ` and f_inputtor in ( ${str} )`
486
- // }
487
- args.condition = `${args.condition} ` + this.orgCondtionStr
488
- this.model.search(args.condition, args.model)
489
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
490
- },
491
- clear() {
492
- //清空部门和人员
493
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
494
- //部门和人员变为全选
495
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
496
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
497
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
498
- this.$refs.paged.$refs.cri.model[key] = []
499
- })
500
- },
501
- show() {
502
- this.criteriaShow = true
503
- },
504
- hidden() {
505
- this.criteriaShow = !this.criteriaShow
506
- },
507
- getRes(obj) {
508
- this.orgCondtionStr = obj
509
- },
510
- stamp() {
511
- this.all = false
512
- //默认选择要打印的列
513
- this.modelval = defaultPrint.config
514
- this.fields = this.getfield
515
- console.log('所有打印字段', this.fields)
516
- this.printshow = true
517
- this.put()
518
- },
519
- put() {
520
- // 对Modelval进行排序
521
- this.sortModelval()
522
- this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
523
- for (let key of this.modelval) {
524
- this.thead += '<th>' + this.fields[key] + '</th>'
525
- }
526
- this.thead += '</tr>'
527
- },
528
- print() {
529
- this.$refs.print.PrintAsFile()
530
- this.printshow = false
531
- },
532
- dealmsg(val) {
533
- console.log('---------------dealmsg')
534
- this.rowdata=val
535
- this.show=true
536
- val.model = this.model.model
537
- this.$dispatch('deal-msg', val)
538
- },
539
- close() {
540
- this.printshow = false
541
- this.all = false
542
- },
543
- // 对选择的列进行排序
544
- sortModelval() {
545
- let sortModel = []
546
- Object.keys(this.fields).forEach((key) => {
547
- if (this.modelval.includes(key)) {
548
- sortModel.push(key)
549
- }
550
- })
551
- this.modelval = sortModel
552
- console.log('选择的打印的字段', this.modelval)
553
- }
554
- },
555
- watch: {
556
- 'all'(val) {
557
- if (val) {
558
- this.modelval = this.bodyData
559
- } else {
560
- this.modelval = defaultPrint.config
561
- this.put()
562
- }
563
- },
564
- 'modelval.length'() {
565
- this.put()
566
- },
567
- 'model.rows'(val) {
568
- if(val.length === 0){
569
- this.sumsmodel = {}
570
- }
571
- },
572
- sumsmodel:{
573
- handler: function(val) {
574
- this.getotherfooter();
575
- },
576
- deep: true
577
- }
578
- },
579
- computed: {
580
- getCondition() {
581
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
582
- },
583
- getfield() {
584
- return exportConfig.cardhandplanConfig
585
- },
586
- usertypes() {
587
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
588
- },
589
- accountsState() {
590
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
591
- },
592
- meterstate() {
593
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
594
- },
595
- handstate() {
596
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
597
- },
598
- attimehandstate() {
599
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表结果状态')]
600
- },
601
- inputtor() {
602
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
603
- },
604
- whetherPay() {
605
- return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
606
- },
607
- pricetypes() {
608
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
609
- },
610
- getPricenames() {
611
- let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
612
- let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
613
- console.log("打印一下:",f_user_type,pricetype,this.f_filialeid)
614
- if(this.$refs.paged.$refs.cri.model !==null) {
615
- let rs = []
616
- let priceArr = []
617
- if ( pricetype.length >0) {
618
- let params = {
619
- f_price_type: pricetype[0],
620
- filter: this.f_filialeid,
621
- prices: this.prices
622
- }
623
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
624
- let temp = {}
625
- temp.label = item.label
626
- temp.value = item.value.f_price_name
627
- priceArr.push(temp)
628
- })
629
- if(priceArr.length == 0 ){
630
- rs= [{label: '全部', value: ''}]
631
- }else{
632
- rs = [ ...priceArr]
633
- }
634
- }
635
- if (rs.length === 0) {
636
- console.log('rs读出来是空')
637
- this.$refs.paged.$refs.cri.model.f_price_name = ''
638
- }
639
- return rs
640
- }
641
- },
642
- },
643
- events:{
644
- 'onFileUpload': function (file, res) {
645
- if (this.batchmoneyShow) {
646
- let param = {
647
- filepath: res.f_downloadpath,
648
- f_operator: this.$login.f.name,
649
- f_operatorid: this.$login.f.id,
650
- f_orgid: this.$login.f.orgid,
651
- f_orgname: this.$login.f.orgs,
652
- f_depid: this.$login.f.depids,
653
- f_depname: this.$login.f.deps
654
- }
655
- let http = new HttpResetClass();
656
- http.load('POST', 'rs/logic/SumSettleFileImport', {data: param}, {
657
- resolveMsg: null,
658
- rejectMsg: '上传失败'
659
- });
660
- }
661
- }
662
- }
663
- }
664
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ condition="f_hand_date >= '{}'">
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</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
+ condition="f_hand_date <= '{}'">
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+
35
+
36
+ <div class="span" style="float:right;">
37
+ <button class="button_search button_spacing" @click="search()">查询</button>
38
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
39
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
40
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
41
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="cardhandplanQuery" template-name='卡表抄表查询导出'
42
+ :choose-col="true"></export-excel>
43
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
44
+ :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
45
+
46
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
47
+
48
+ <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>
49
+ </div>
50
+ </div>
51
+ <div class="row" v-show="$parent.$parent.criteriaShow">
52
+ <div class="col-sm-2 form-group">
53
+ <label class="font_normal_body">客户名称</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
55
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
56
+ </div>
57
+ <div class="col-sm-2 form-group">
58
+ <label class="font_normal_body">客户地址</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
60
+ condition="f_address like '%{}%'" placeholder='客户地址'>
61
+ </div>
62
+ <div class="col-sm-2 form-group">
63
+ <label class="font_normal_body">小区名称</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
65
+ condition="f_residential_area like '%{}%'" placeholder="小区">
66
+ </div>
67
+ <div class="col-sm-2 form-group">
68
+ <label class="font_normal_body">楼&emsp;栋&emsp;</label>
69
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
70
+ condition="f_building = '{}'" placeholder="楼栋">
71
+ </div>
72
+ <!-- add -->
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;单元&nbsp;&nbsp;&nbsp;</label>
75
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
76
+ condition="f_unit = '{}'" placeholder="单元"/>
77
+ </div>
78
+ <div class="col-sm-2 form-group">
79
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;楼层&nbsp;&nbsp;</label>
80
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
81
+ condition="f_floor = '{}'" placeholder="楼层"/>
82
+ </div>
83
+ <div class="col-sm-2 form-group">
84
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;门牌号</label>
85
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
86
+ condition="f_room = '{}'" placeholder="门牌号">
87
+ </div>
88
+ <!-- end-->
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body">抄表状态</label>
91
+ <v-select :value.sync="model.f_meter_state"
92
+ v-model="model.f_meter_state"
93
+ :options='$parent.$parent.meterstate' placeholder='请选择'
94
+ condition="f_meter_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
+ <v-select :value.sync="model.f_hand_state"
100
+ v-model="model.f_hand_state"
101
+ :options='$parent.$parent.handstate' placeholder='请选择'
102
+ condition="f_hand_state = '{}'"
103
+ close-on-select></v-select>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
107
+ <v-select :value.sync="model.f_inputtor"
108
+ v-model="model.f_inputtor"
109
+ condition="f_inputtor in {}"
110
+ :options='$parent.$parent.inputtor' placeholder='请选择'
111
+ multiple = "true"
112
+ close-on-select></v-select>
113
+ </div>
114
+ <div class="col-sm-2 form-group">
115
+ <label class="font_normal_body">客户类型</label>
116
+ <v-select :value.sync="model.f_user_type"
117
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
118
+ condition="f_user_type = '{}'"
119
+ close-on-select></v-select>
120
+ </div>
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">抄表结果状态</label>
123
+ <v-select :value.sync="model.f_result_state"
124
+ v-model="model.f_result_state"
125
+ :options='$parent.$parent.attimehandstate' placeholder='请选择'
126
+ condition="f_result_state = '{}'"
127
+ close-on-select></v-select>
128
+ </div>
129
+ <!--<div class="col-sm-2 form-group">
130
+ <label class="font_normal_body">是否缴费</label>
131
+ <v-select :value.sync="model.f_whether_pay"
132
+ :options='$parent.$parent.accountsState' placeholder='请选择' v-model="model.f_whether_pay"
133
+ condition="f_whether_pay = '{}'"
134
+ close-on-select></v-select>
135
+ </div>-->
136
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body">气价类型</label>
139
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
140
+ @change="$parent.$parent.pricetypechanged"
141
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
142
+ close-on-select v-ref:type>
143
+ </v-select>
144
+ </div>
145
+ <div class="col-sm-2 form-group">
146
+ <label class="font_normal_body">气价名称</label>
147
+ <v-select :value.sync="model.f_price_name"
148
+ v-model="model.f_price_name"
149
+ multiple
150
+ :options="$parent.$parent.getPricenames"
151
+ condition="f_price_name in {}"
152
+ ></v-select>
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </criteria>
157
+
158
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
159
+ <template partial='head'>
160
+ <tr>
161
+ <th>
162
+ <nobr>客户编号</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>客户名称</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>客户地址</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>表号</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>地址</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>上期底数</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>本期底数</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>气量</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>抄表结果状态</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>总购气量</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>余量</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>录入日期</nobr>
196
+ </th>
197
+ <th>
198
+ <nobr>抄表员</nobr>
199
+ </th>
200
+
201
+ <th>
202
+ <nobr>抄表状态</nobr>
203
+ </th>
204
+ <th>
205
+ <nobr>一阶气量</nobr>
206
+ </th>
207
+ <th>
208
+ <nobr>一阶单价</nobr>
209
+ </th>
210
+ <th>
211
+ <nobr>一阶气费</nobr>
212
+ </th>
213
+ <th>
214
+ <nobr>二阶气量</nobr>
215
+ </th>
216
+ <th>
217
+ <nobr>二阶单价</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>二阶气费</nobr>
221
+ </th>
222
+ <th>
223
+ <nobr>三阶气量</nobr>
224
+ </th>
225
+ <th>
226
+ <nobr>三阶单价</nobr>
227
+ </th>
228
+ <th>
229
+ <nobr>三阶气费</nobr>
230
+ </th>
231
+ <th>
232
+ <nobr>人员</nobr>
233
+ </th>
234
+ <th>
235
+ <nobr>部门</nobr>
236
+ </th>
237
+ <!-- <th>-->
238
+ <!-- <nobr>公司</nobr>-->
239
+ <!-- </th>-->
240
+ </tr>
241
+ </template>
242
+ <template partial='body'>
243
+ <td style="text-align: center;">
244
+ <nobr>
245
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
246
+ </td>
247
+ <td style="text-align: center;">
248
+ <nobr>{{row.f_user_name}}</nobr>
249
+ </td>
250
+ <td style="text-align: center;">
251
+ <nobr>{{row.f_address}}</nobr>
252
+ </td>
253
+ <td style="text-align: center;">
254
+ <nobr>{{row.f_meternumber}}</nobr>
255
+ </td>
256
+ <td style="text-align: center;">
257
+ <nobr>{{row.f_address}}</nobr>
258
+ </td>
259
+ <td style="text-align: center;">
260
+ <nobr>{{row.f_last_tablebase}}</nobr>
261
+ </td>
262
+ <td style="text-align: center;">
263
+ <nobr>{{row.f_tablebase}}</nobr>
264
+ </td>
265
+ <td style="text-align: center;">
266
+ <nobr>{{row.f_real_amount}}</nobr>
267
+ </td>
268
+ <td style="text-align: center;">
269
+ <nobr>{{row.f_result_state}}</nobr>
270
+ </td>
271
+ <td style="text-align: center;">
272
+ <nobr>{{row.f_card_total_gas}}</nobr>
273
+ </td>
274
+ <td style="text-align: center;">
275
+ <nobr>{{row.f_shengyu_gas}}</nobr>
276
+ </td>
277
+ <td style="text-align: center;">
278
+ <nobr>{{row.f_hand_date}}</nobr>
279
+ </td>
280
+ <td style="text-align: center;">
281
+ <nobr>{{row.f_inputtor}}</nobr>
282
+ </td>
283
+
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_meter_state}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_stairamount1}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_stair1price}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{(row.f_stair1fee - 0).toFixed(2)}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_stair2amount}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_stair2price}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{(row.f_stair2fee - 0).toFixed(2)}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr>{{row.f_stair3amount}}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.f_stair3price}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{(row.f_stair3fee - 0).toFixed(2)}}</nobr>
313
+ </td>
314
+ <td style="text-align: center;">
315
+ <nobr>{{row.f_operator}}</nobr>
316
+ </td>
317
+ <td style="text-align: center;">
318
+ <nobr>{{row.f_depname}}</nobr>
319
+ </td>
320
+ <!-- <td style="text-align: center;">-->
321
+ <!-- <nobr>{{row.f_orgname}}</nobr>-->
322
+ <!-- </td>-->
323
+ </template>
324
+ <template partial='foot'></template>
325
+ </data-grid>
326
+ </criteria-paged>
327
+ <table class="table-hover">
328
+ <tr style="position: relative;margin-top: -16px;" class="table-bordered">
329
+ <td
330
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
331
+ 汇总信息
332
+ </td>
333
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
+ 气量合计:&emsp;{{sumsmodel.f_real_amount}}
335
+ </td>
336
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
337
+ 总购气量合计:&emsp;{{sumsmodel.f_card_total_gas}}
338
+ </td>
339
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
340
+ 余量合计:&emsp;{{sumsmodel.f_yuliang}}
341
+ </td>
342
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
343
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
344
+ </td>
345
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
346
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
347
+ </td>
348
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
349
+ 二阶气量合计:&emsp;{{sumsmodel.f_stair2amount}}
350
+ </td>
351
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
352
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
353
+ </td>
354
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
355
+ 三阶气量合计:&emsp;{{sumsmodel.f_stair3amount}}
356
+ </td>
357
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
358
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
359
+ </td>
360
+ </tr>
361
+ </table>
362
+ </div>
363
+ <modal :show.sync="batchmoneyShow" width="500px" title="反盘导入" v-ref:modal large backdrop="false">
364
+ <article slot="modal-body" class="modal-body">
365
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
366
+ </article>
367
+ <footer slot="modal-footer" class="modal-footer">
368
+ </footer>
369
+ </modal>
370
+ <div class="flex" v-if="show">
371
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
372
+ </div>
373
+ </div>
374
+ </div>
375
+ </template>
376
+
377
+ <script>
378
+ import {PagedList, HttpResetClass} from 'vue-client'
379
+ import defaultPrint from './config/DefaultPrint'
380
+ import exportConfig from './config/exportConfig'
381
+
382
+ let readySomething = async function (self) {
383
+ self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
384
+ self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
385
+ await self.$getConfig(self, 'CardHandplanQuery')
386
+ console.log('抄表查询获取默认配置', self.config)
387
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
388
+ console.log('开始初始化参数', self.defaultfield)
389
+ await self.$MagLoadParams.loadParam()
390
+ console.log('开始查询')
391
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
392
+ }
393
+ export default {
394
+ props:['data'],
395
+ title: '卡表抄表查询',
396
+ data() {
397
+ return {
398
+ other:[],
399
+ footer:[],
400
+ data: {},
401
+ model: new PagedList('api/af-revenue/sql/cardhandplanQuery', 20, {},{f_real_amount:0,f_card_total_gas:0,f_yuliang:0,f_stairamount1:0,
402
+ f_stair1fee:0,
403
+ f_stair2amount:0,
404
+ f_stair2fee:0,
405
+ f_stair3amount:0,
406
+ f_stair3fee:0}),
407
+ f_filialeid: this.$login.f.orgid,
408
+ initres: {
409
+ org:[this.$login.f.orgid],
410
+ dep:[],
411
+ user:[],
412
+ },
413
+ show:false,
414
+ rowdata:{},
415
+ criteriaShow: false,
416
+ orgCondtionStr: '',
417
+ modelval: [],
418
+ inputtouPerson: [],
419
+ printshow: false,
420
+ all: false,
421
+ fields: {},
422
+ thead: '',
423
+ tfoot: '',
424
+
425
+ // 下拉框
426
+
427
+ //合计数据
428
+ sumsmodel: {},
429
+ defaultfield: [],
430
+ config: {
431
+ defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber']
432
+ },
433
+ batchmoneyShow:false
434
+ }
435
+ },
436
+ ready() {
437
+ readySomething(this).then(() => {
438
+ this.$emit('ready')
439
+ }).catch((error) => {
440
+ this.$emit('error', error)
441
+ })
442
+ },
443
+ methods: {
444
+ pricetypechanged(){
445
+ this.$refs.paged.$refs.cri.model.f_price_name = []
446
+ },
447
+ getotherfooter(){
448
+
449
+ this.other=[];
450
+ this.footer=[];
451
+ let exportdata = this.getCondition;
452
+ let otherInData=[];
453
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
454
+ let footerData=[],exportfield=this.getfield;
455
+ footerData.push("合计");
456
+ let self = this;
457
+ for(var field in self.sumsmodel){
458
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
459
+ }
460
+ this.footer.push(footerData);
461
+ this.other.push(otherInData);
462
+ },
463
+ Fileinput(){
464
+ this.batchmoneyShow=true;
465
+ },
466
+ search(){
467
+ this.$refs.paged.$refs.cri.search()
468
+ },
469
+ cancel() {
470
+ this.show = false
471
+ },
472
+ selfSearch(args) {
473
+ this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
474
+ this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
475
+ //抄表员查询条件
476
+ // console.log('抄表员==================>', this.$refs.paged.$refs.cri.model.f_inputtor)
477
+ // console.log('抄表员==================>', this.inputtouPerson)
478
+ // this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
479
+ // if(this.inputtouPerson.length !== 0){
480
+ // let str = JSON.stringify(this.inputtouPerson)
481
+ // str = str.replace(/"/g,`'`)
482
+ // str = str.replace(/\[/g,``)
483
+ // str = str.replace(/\]/g,``)
484
+ // //查询多个抄表员时条件
485
+ // this.orgCondtionStr += ` and f_inputtor in ( ${str} )`
486
+ // }
487
+ args.condition = `${args.condition} ` + this.orgCondtionStr
488
+ this.model.search(args.condition, args.model)
489
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
490
+ },
491
+ clear() {
492
+ //清空部门和人员
493
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
494
+ //部门和人员变为全选
495
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
496
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
497
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
498
+ this.$refs.paged.$refs.cri.model[key] = []
499
+ })
500
+ },
501
+ show() {
502
+ this.criteriaShow = true
503
+ },
504
+ hidden() {
505
+ this.criteriaShow = !this.criteriaShow
506
+ },
507
+ getRes(obj) {
508
+ this.orgCondtionStr = obj
509
+ },
510
+ stamp() {
511
+ this.all = false
512
+ //默认选择要打印的列
513
+ this.modelval = defaultPrint.config
514
+ this.fields = this.getfield
515
+ console.log('所有打印字段', this.fields)
516
+ this.printshow = true
517
+ this.put()
518
+ },
519
+ put() {
520
+ // 对Modelval进行排序
521
+ this.sortModelval()
522
+ this.thead = `<tr><th colspan=${this.modelval.length}>收费查询统计报表</th></tr><tr>`
523
+ for (let key of this.modelval) {
524
+ this.thead += '<th>' + this.fields[key] + '</th>'
525
+ }
526
+ this.thead += '</tr>'
527
+ },
528
+ print() {
529
+ this.$refs.print.PrintAsFile()
530
+ this.printshow = false
531
+ },
532
+ dealmsg(val) {
533
+ console.log('---------------dealmsg')
534
+ this.rowdata=val
535
+ this.show=true
536
+ val.model = this.model.model
537
+ this.$dispatch('deal-msg', val)
538
+ },
539
+ close() {
540
+ this.printshow = false
541
+ this.all = false
542
+ },
543
+ // 对选择的列进行排序
544
+ sortModelval() {
545
+ let sortModel = []
546
+ Object.keys(this.fields).forEach((key) => {
547
+ if (this.modelval.includes(key)) {
548
+ sortModel.push(key)
549
+ }
550
+ })
551
+ this.modelval = sortModel
552
+ console.log('选择的打印的字段', this.modelval)
553
+ }
554
+ },
555
+ watch: {
556
+ 'all'(val) {
557
+ if (val) {
558
+ this.modelval = this.bodyData
559
+ } else {
560
+ this.modelval = defaultPrint.config
561
+ this.put()
562
+ }
563
+ },
564
+ 'modelval.length'() {
565
+ this.put()
566
+ },
567
+ 'model.rows'(val) {
568
+ if(val.length === 0){
569
+ this.sumsmodel = {}
570
+ }
571
+ },
572
+ sumsmodel:{
573
+ handler: function(val) {
574
+ this.getotherfooter();
575
+ },
576
+ deep: true
577
+ }
578
+ },
579
+ computed: {
580
+ getCondition() {
581
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr}
582
+ },
583
+ getfield() {
584
+ return exportConfig.cardhandplanConfig
585
+ },
586
+ usertypes() {
587
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
588
+ },
589
+ accountsState() {
590
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
591
+ },
592
+ meterstate() {
593
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
594
+ },
595
+ handstate() {
596
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
597
+ },
598
+ attimehandstate() {
599
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表结果状态')]
600
+ },
601
+ inputtor() {
602
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
603
+ },
604
+ whetherPay() {
605
+ return [{label: '全部', value: ''},{label: '是', value: '是'},{label: '否', value: '否'}]
606
+ },
607
+ pricetypes() {
608
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
609
+ },
610
+ getPricenames() {
611
+ let f_user_type = this.$refs.paged.$refs.cri.model.f_user_type;
612
+ let pricetype = this.$refs.paged.$refs.cri.model.pricetype;
613
+ console.log("打印一下:",f_user_type,pricetype,this.f_filialeid)
614
+ if(this.$refs.paged.$refs.cri.model !==null) {
615
+ let rs = []
616
+ let priceArr = []
617
+ if ( pricetype.length >0) {
618
+ let params = {
619
+ f_price_type: pricetype[0],
620
+ filter: this.f_filialeid,
621
+ prices: this.prices
622
+ }
623
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
624
+ let temp = {}
625
+ temp.label = item.label
626
+ temp.value = item.value.f_price_name
627
+ priceArr.push(temp)
628
+ })
629
+ if(priceArr.length == 0 ){
630
+ rs= [{label: '全部', value: ''}]
631
+ }else{
632
+ rs = [ ...priceArr]
633
+ }
634
+ }
635
+ if (rs.length === 0) {
636
+ console.log('rs读出来是空')
637
+ this.$refs.paged.$refs.cri.model.f_price_name = ''
638
+ }
639
+ return rs
640
+ }
641
+ },
642
+ },
643
+ events:{
644
+ 'onFileUpload': function (file, res) {
645
+ if (this.batchmoneyShow) {
646
+ let param = {
647
+ filepath: res.f_downloadpath,
648
+ f_operator: this.$login.f.name,
649
+ f_operatorid: this.$login.f.id,
650
+ f_orgid: this.$login.f.orgid,
651
+ f_orgname: this.$login.f.orgs,
652
+ f_depid: this.$login.f.depids,
653
+ f_depname: this.$login.f.deps
654
+ }
655
+ let http = new HttpResetClass();
656
+ http.load('POST', 'rs/logic/SumSettleFileImport', {data: param}, {
657
+ resolveMsg: null,
658
+ rejectMsg: '上传失败'
659
+ });
660
+ }
661
+ }
662
+ }
663
+ }
664
+ </script>