manage-client 3.3.2 → 3.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/build/dev-server.js +180 -180
  2. package/package.json +1 -1
  3. package/src/components/sale/businessquery/GroupChargeQuery.vue +481 -481
  4. package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
  5. package/src/components/webmeter/recharge/RechargeList.vue +346 -346
  6. package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
  7. package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
  8. package/src/filiale/macheng/config/exportConfig.js +1 -1
  9. package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
  10. package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
  11. package/src/filiale/rongcheng/exportConfig.js +536 -536
  12. package/src/filiale/rongcheng/sale.js +22 -22
  13. package/src/filiale/shanxian/CancellationQuery.vue +426 -0
  14. package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
  15. package/src/filiale/shanxian/DeviceQuery.vue +586 -0
  16. package/src/filiale/shanxian/DisableQuery.vue +528 -0
  17. package/src/filiale/shanxian/EnableQuery.vue +461 -0
  18. package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
  19. package/src/filiale/shanxian/FillCardQuery.vue +569 -569
  20. package/src/filiale/shanxian/FillGasQuery.vue +588 -588
  21. package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
  22. package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
  23. package/src/filiale/shanxian/LostContactAnalysisList.vue +633 -632
  24. package/src/filiale/shanxian/MeterQuery.vue +968 -0
  25. package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
  26. package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
  27. package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
  28. package/src/filiale/shanxian/ReverseQuery.vue +454 -0
  29. package/src/filiale/shanxian/TransferQuery.vue +469 -0
  30. package/src/filiale/shanxian/UserGasAll.vue +15 -14
  31. package/src/filiale/shanxian/UserLostContactAnalysis.vue +584 -583
  32. package/src/filiale/shanxian/UserQuery.vue +960 -959
  33. package/src/filiale/shanxian/config/exportConfig.js +100 -100
  34. package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
  35. package/src/filiale/shanxian/sale.js +46 -26
  36. package/src/filiale/shanxian/webmeterManage.js +4 -0
  37. package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
  38. package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
  39. package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
  40. package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
  41. package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
  42. package/src/filiale/wenxi/GasStatistics.vue +515 -515
  43. package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
  44. package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
  45. package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
  46. package/src/filiale/wenxi/MeterQuery.vue +937 -964
  47. package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
  48. package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
  49. package/src/filiale/wenxi/WebHandQuery.vue +475 -475
  50. package/src/filiale/wenxi/config/exportConfig.js +916 -916
  51. package/src/filiale/wenxi/sale.js +24 -24
  52. package/src/filiale/wenxi/webmeterManage.js +13 -13
  53. package/src/filiale/xinkang/EchartsBox.vue +139 -139
  54. package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
  55. package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
  56. package/src/filiale/xinkang/exportConfig.js +1998 -1998
  57. package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
  58. package/src/filiale/xinkang/reportManage.js +15 -15
  59. package/src/filiale/xinkang/sale.js +13 -13
  60. package/src/filiale/xinkang/webmeterManage.js +9 -9
  61. package/src/filiale/zhongyi/GasStatistics.vue +521 -521
  62. package/src/main.js +66 -72
  63. package/lib/package_2022-12-01-14-30-50.json +0 -109
@@ -1,515 +1,515 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main">
4
- <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row" >
9
- <div class="col-sm-2">
10
- <label class="font_normal_body">组织机构</label>
11
- <res-select :initresid="$parent.$parent.org"
12
- style="width:60%"
13
- @res-select="$parent.$parent.getorg"
14
- :is-mul=false
15
- restype='organization'>
16
- </res-select>
17
- </div>
18
- <div class="col-sm-2">
19
- <label class="font_normal_body">客户编号</label>
20
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
21
- condition="ss.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
22
- >
23
- </div>
24
- <div class="col-sm-2">
25
- <label class="font_normal_body">客户名称</label>
26
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
27
- condition="ss.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
28
- </div>
29
- <div class="col-sm-2">
30
- <label class="font_normal_body">客户地址</label>
31
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
32
- condition="ss.f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
33
- </div>
34
- <div class="span" style="float:right;margin-top:10px">
35
- <button class="button_search button_spacing" @click="search()">查询</button>
36
- <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
37
- <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
38
- :field="$parent.$parent.getfield"
39
- sqlurl="rs/logic/exportfile" sql-name="gasStatisticsQuery" template-name='用气量统计表'
40
- :choose-col="true"></export-excel>
41
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
- :defaultfield="$parent.$parent.defaultfield"
43
- titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
44
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
- <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>
46
- </div>
47
- </div>
48
- <div class="row" v-show="$parent.$parent.criteriaShow">
49
- <div class="col-sm-2">
50
- <label class="font_normal_body">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话</label>
51
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_user_phone" placeholder='电话'
52
- condition="ss.f_user_phone like '%{}%'" v-next-el='f_user_phone' v-el:f_user_phone
53
- >
54
- </div>
55
- <div class="col-sm-2">
56
- <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
57
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
58
- condition="ss.f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_residential_area>
59
- </div>
60
- <div class="col-sm-2">
61
- <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
62
- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
63
- condition="ss.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
64
- >
65
- </div>
66
- <!-- <div class="col-sm-2">-->
67
- <!-- <label class="font_normal_body">小区名称</label>-->
68
- <!-- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='燃气证号'-->
69
- <!-- condition="ss.f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_gascode-->
70
- <!-- >-->
71
- <!-- </div>-->
72
- <div class="col-sm-2 form-group">
73
- <label class="font_normal_body">气价类型</label>
74
- <v-select :value.sync="model.pricetype" v-model="model.pricetype"
75
- placeholder='气价类型' :options="$parent.$parent.pricetypes"
76
- close-on-select>
77
- </v-select>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">气价名称</label>
81
- <v-select :value.sync="model.f_price_name"
82
- v-model="model.f_price_name"
83
- :options="$parent.$parent.getPricenames"
84
- condition="ss.f_price_name = '{}'"
85
- close-on-select></v-select>
86
- </div>
87
- <div class="col-sm-2 form-group">
88
- <label class="font_normal_body">气表品牌</label>
89
- <v-select :value.sync="model.f_meter_brand"
90
- v-model="model.f_meter_brand"
91
- :options="$parent.$parent.meterbrands"
92
- condition="ss.f_meter_brand = '{}'"
93
- close-on-select></v-select>
94
- </div>
95
- <div class="col-sm-2 form-group">
96
- <label class="font_normal_body">是否换表</label>
97
- <v-select :value.sync="model.f_changetable_state"
98
- v-model="model.f_changetable_state"
99
- :options="$parent.$parent.isChange"
100
- condition="ss.f_changetable_state = '{}'"
101
- close-on-select></v-select>
102
- </div>
103
- <div class="col-sm-2 form-group">
104
- <label class="font_normal_body">用气状态</label>
105
- <v-select :value.sync="model.f_gas_state"
106
- v-model="model.f_gas_state"
107
- :options="$parent.$parent.gasState"
108
- condition="ss.f_gas_state = '{}'"
109
- close-on-select></v-select>
110
- </div>
111
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
112
- <label class="font_normal_body">用气量区间</label>
113
- <div class="row">
114
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
115
- condition="ss.f_oughtamount >= {} " placeholder="">
116
- <label class="font_normal_body"> ≤ x ≤ </label>
117
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
118
- condition="ss.f_oughtamount <= {} " placeholder="">
119
- </div>
120
- </div>
121
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
122
- <label class="font_normal_body">&nbsp;充值区间&nbsp;&nbsp;</label>
123
- <div class="row">
124
- <input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
125
- condition="ss.f_collection >= {} " placeholder="">
126
- <label class="font_normal_body"> ≤ x ≤ </label>
127
- <input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
128
- condition="ss.f_collection <= {} " placeholder="">
129
- </div>
130
- </div>
131
- <div class="col-sm-2 form-group" >
132
- <label class="font_normal_body" for="startDate">开始时间</label>
133
- <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
134
- v-model="model.startDate"
135
- :value.sync="model.startDate"
136
- :disabled-days-of-Week="[]"
137
- :format="'yyyy-MM-dd 00:00:00'"
138
- :show-reset-button="reset">
139
- </datepicker>
140
- </div>
141
- <div class="col-sm-2 form-group" >
142
- <label class="font_normal_body" for="endDate">结束时间</label>
143
- <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
144
- v-model="model.endDate"
145
- :value.sync="model.endDate"
146
- :disabled-days-of-Week="[]"
147
- :format="'yyyy-MM-dd 23:59:59'"
148
- :show-reset-button="reset">
149
- </datepicker>
150
- </div>
151
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
152
- <label class="font_normal_body">余额区间</label>
153
- <div class="row">
154
- <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_sta"
155
- condition="ss.f_balance_amount >= {} " placeholder="">
156
- <label class="font_normal_body"> ≤ x ≤ </label>
157
- <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_end"
158
- condition="ss.f_balance_amount <= {} " placeholder="">
159
- </div>
160
- </div>
161
- <div class="col-sm-2 form-group">
162
- <label class="font_normal_body">客户类型</label>
163
- <v-select :value.sync="model.f_user_type"
164
- v-model="model.f_user_type" condition="f_user_type = '{}'"
165
- :options='$parent.$parent.userTypes' placeholder='请选择'
166
- close-on-select></v-select>
167
- </div>
168
- </div>
169
- </div>
170
- </criteria>
171
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
172
- <template partial='head'>
173
- <tr>
174
- <th><nobr>客户编号</nobr></th>
175
- <th><nobr>客户名称</nobr></th>
176
- <th><nobr>小区</nobr></th>
177
- <th><nobr>地址</nobr></th>
178
- <th><nobr>电话</nobr></th>
179
-
180
- <th><nobr>燃气证号</nobr></th>
181
- <th><nobr>表号</nobr></th>
182
- <th><nobr>表具类型</nobr></th>
183
- <th><nobr>表描述</nobr></th>
184
- <th><nobr>气价名称</nobr></th>
185
-
186
- <th><nobr>一阶气价</nobr></th>
187
- <th><nobr>二阶气价</nobr></th>
188
- <th><nobr>三阶气价</nobr></th>
189
-
190
- <th><nobr>用气性质</nobr></th>
191
- <th><nobr>期初余额</nobr></th>
192
- <th><nobr>起方</nobr></th>
193
- <th><nobr>止方</nobr></th>
194
- <th><nobr>期间用气量</nobr></th>
195
-
196
- <th><nobr>期间用气金额</nobr></th>
197
- <th><nobr>期间充值金额</nobr></th>
198
- <th><nobr>期末余额</nobr></th>
199
- <th><nobr>用气状态</nobr></th>
200
- <th><nobr>是否换表</nobr></th>
201
- <th><nobr>最后通讯日期</nobr></th>
202
- </tr>
203
- </template>
204
- <template partial='body' partial='list'>
205
- <tr >
206
- <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
207
- <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
208
- <td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
209
- <td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
210
- <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
211
-
212
- <td style="text-align:center"><nobr>{{row.f_gascode}}</nobr></td>
213
- <th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
214
- <th style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></th>
215
- <th style="text-align:center"><nobr>{{row.f_meter_title}}</nobr></th>
216
- <th style="text-align:center"><nobr>{{row.f_price_name}}</nobr></th>
217
-
218
- <th style="text-align:center"><nobr>{{row.f_stair1price}}</nobr></th>
219
- <th style="text-align:center"><nobr>{{row.f_stair2price}}</nobr></th>
220
- <th style="text-align:center"><nobr>{{row.f_stair3price}}</nobr></th>
221
-
222
- <th style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></th>
223
-
224
-
225
- <th style="text-align:center"><nobr>{{row.f_balance}}</nobr></th>
226
- <th style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></th>
227
- <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
228
- <th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
229
- <th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
230
-
231
- <th style="text-align:center"><nobr>{{row.f_collection}}</nobr></th>
232
- <th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
233
- <th style="text-align:center"><nobr>{{row.f_gas_state}}</nobr></th>
234
- <th style="text-align:center"><nobr>{{row.f_changetable_state}}</nobr></th>
235
- <th style="text-align:center"><nobr>{{row.f_input_date}}</nobr></th>
236
- </tr>
237
- </template>
238
- <template partial='foot'></template>
239
- </data-grid>
240
- </criteria-paged>
241
- <table class="table-hover">
242
- <tr style="position: relative" class="table-bordered">
243
- <td
244
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
245
- 汇总信息
246
- </td>
247
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
248
- 期间用气量:&emsp;{{sumsmodel.f_oughtamount}}
249
- </td>
250
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
251
- 期间用气金额:&emsp;{{sumsmodel.f_oughtfee}}
252
- </td>
253
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
254
- 期间充值金额:&emsp;{{sumsmodel.f_collection}}
255
- </td>
256
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
257
- 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
258
- </td>
259
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
260
- 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
261
- </td>
262
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
263
- 二阶气量合计:&emsp;{{sumsmodel.f_stairamount2}}
264
- </td>
265
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
266
- 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
267
- </td>
268
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
269
- 三阶气量合计:&emsp;{{sumsmodel.f_stairamount3}}
270
- </td>
271
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
272
- 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
273
- </td>
274
- </tr>
275
- </table>
276
- </div>
277
- <div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
278
- <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
279
- </div>
280
- </div>
281
- </div>
282
- </template>
283
-
284
- <script>
285
- import {HttpResetClass, PagedList} from 'vue-client'
286
- import exportConfig from './config/exportConfig'
287
- import * as Util from './../../Util'
288
- import plugins from '../../plugins/GetLoginInfoService'
289
-
290
- let readySomething = async function (self) {
291
- await self.$MagLoadParams.loadParam()
292
- self.initParams()
293
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
294
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
295
- }
296
- export default {
297
- title: '用气量统计表',
298
- data () {
299
- return {
300
- show:false,
301
- org:[this.$login.f.orgid],
302
- orgcondition: ' and ss.f_orgid = ' + this.$login.f.orgid,
303
- //f_filialeid: this.$login.f.f_orgid,
304
- detaillist: [],
305
- meterbrands: [],
306
- prices: [],
307
- gasproperties:[],
308
- condition:'',
309
- rowdata:{},
310
- getstart:'',
311
- config: {
312
- defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
313
- 'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
314
- },
315
- sumsmodel: {},
316
- orgid:[this.$login.f.orgid],
317
- criteriaShow:false,
318
- //默认打印列
319
- defaultfield: [],
320
- orgCondtionStr: '',
321
- model: new PagedList('rs/sql/gasStatisticsQuery', 50,{
322
- startDate: 'this.model.startDate',
323
- endDate: 'this.model.endDate'
324
- },{
325
- f_oughtamount: 0,
326
- f_oughtfee: 0,
327
- f_collection:0,
328
- f_stairamount1:0,
329
- f_stair1fee:0,
330
- f_stairamount2:0,
331
- f_stair2fee:0,
332
- f_stairamount3:0,
333
- f_stair3fee:0
334
- }),
335
- showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
336
- }
337
- },
338
- ready () {
339
- // this.$refs.paged.$refs.criteria.search()
340
- readySomething(this).then(() => {
341
- this.$emit('ready')
342
- }).catch((error) => {
343
- this.$emit('error', error)
344
- })
345
- this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
346
- this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
347
- this.$refs.paged.$refs.criteria.model.inputStartDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
348
- this.$refs.paged.$refs.criteria.model.inputEndDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
349
- this.$refs.paged.$refs.criteria.search()
350
- },
351
- methods: {
352
- initParams() {
353
- // 初始化气表品牌
354
- let brandArr = []
355
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
356
- let temp = {}
357
- temp.label = item.label
358
- temp.value = item.value.f_meter_brand
359
- brandArr.push(temp)
360
- })
361
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
362
- //初始化气表价格
363
- this.prices = this.$MagGetSaleParam.getPrices();
364
- },
365
- async updateParams() {
366
- await this.$MagLoadParams.loadParam(this.f_filialeid)
367
- this.initParams()
368
- },
369
- getorg(obj) {
370
- if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
371
- this.orgcondition = " and ss.f_orgid in " + plugins.convertToIn(obj)
372
- }else{
373
- this.orgcondition = " and ss.f_orgid = " + this.$login.f.orgid
374
- }
375
- },
376
- userTypeChange () {
377
- this.gasproperties=[]
378
- if(this.$refs.paged.$refs.criteria.model !==null) {
379
- this.$refs.paged.$refs.criteria.model.f_gasproperties=''
380
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
381
- }
382
- else{
383
- this.gasproperties =[{label: '全部', value: ''}]
384
- }
385
- },
386
- hidden(){
387
- this.criteriaShow = !this.criteriaShow
388
- },
389
- cancel() {
390
- this.show = false
391
- },
392
- clearmsg () {
393
- Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
394
- this.$refs.paged.$refs.criteria.model[key] = []
395
- })
396
- },
397
- getRes (obj) {
398
- this.orgCondtionStr = condition
399
- this.orgname = obj.orgnames[0]
400
- this.depname = obj.depnames[0]
401
- },
402
- showmsg(obj){
403
- this.rowdata=obj
404
- this.show=true
405
- },
406
-
407
- search (args) {
408
- args.condition = `${args.condition}`+this.orgcondition
409
- this.condition = args.condition
410
- this.model.search(args.condition, args.model)
411
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
412
- // args.condition = `${args.condition}`
413
- // if (this.orgcondition)
414
- // args.condition = `${args.condition}` + this.orgcondition
415
- // else
416
- // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
417
- // this.model.search(args.condition, args.model)
418
- }
419
- },
420
- watch: {
421
- 'model.rows'(val) {
422
- //如果有合计 这里为true, 其他为false ,反正相反
423
- this.showbottomsum=true;
424
- if(val.length === 0){
425
- this.sumsmodel = {}
426
- this.showbottomsum=false;
427
- }
428
- },
429
- 'orgCondtionStr'(val) {
430
- let res = val.match(/'(.*?)'/)
431
- console.log('正则提取:',res && res[1])
432
- if (res) {
433
- this.f_filialeid = res[1]
434
- // this.updateParams()
435
- }
436
- }
437
- },
438
- computed: {
439
- userTypes () {
440
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
441
- },
442
- getCondition() {
443
-
444
- return {
445
- condition: this.condition,
446
- startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
447
- endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`
448
- }
449
- },
450
- getstart(){
451
- return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
452
- },
453
- getPricenames() {
454
- let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
455
- let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
456
- let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
457
- console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
458
- console.log("查看f_orgid:",this.$login.f.f_orgid)
459
- if(this.$refs.paged.$refs.criteria.model !==null) {
460
- let rs = []
461
- let priceArr = []
462
- if ( pricetype.length >0) {
463
- let params = {
464
- f_price_type: pricetype[0],
465
- filter: this.org[0],
466
- prices: this.prices
467
- }
468
- console.log("打印一下params:",params)
469
- this.$MagGetSaleParam.getPrice(params).forEach((item) => {
470
- console.log("====================================》")
471
- let temp = {}
472
- temp.label = item.label
473
- temp.value = item.value.f_price_name
474
- priceArr.push(temp)
475
- console.log("打印一下temp:",temp)
476
- })
477
-
478
- rs = [{label: '全部', value: ''}, ...priceArr]
479
- }
480
- if (rs.length === 0) {
481
- console.log('rs读出来是空')
482
- this.$refs.paged.$refs.criteria.model.f_price_name = ''
483
- }
484
- return rs
485
- }
486
- },
487
- getfield () {
488
- return exportConfig.GasStatistics
489
- },
490
- usertypes() {
491
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
492
- },
493
- pricetypes() {
494
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
495
- },
496
- gasState() {
497
- return [{label:'正常', value:'正常'},
498
- {label:'异常', value:'异常'},
499
- ]
500
- },
501
- isChange() {
502
- return [{label:'是', value:'是'},
503
- {label:'否', value:'否'},
504
- ]
505
- }
506
- }
507
- }
508
- </script>
509
-
510
- <style>
511
- .showbottom{
512
- height:95%
513
- }
514
- </style>
515
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row" >
9
+ <div class="col-sm-2">
10
+ <label class="font_normal_body">组织机构</label>
11
+ <res-select :initresid="$parent.$parent.org"
12
+ style="width:60%"
13
+ @res-select="$parent.$parent.getorg"
14
+ :is-mul=false
15
+ restype='organization'>
16
+ </res-select>
17
+ </div>
18
+ <div class="col-sm-2">
19
+ <label class="font_normal_body">客户编号</label>
20
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
21
+ condition="ss.f_userinfo_code like '%{}%'" v-next-el='f_userinfo_code' v-el:meternumber
22
+ >
23
+ </div>
24
+ <div class="col-sm-2">
25
+ <label class="font_normal_body">客户名称</label>
26
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
27
+ condition="ss.f_user_name like '%{}%'" v-next-el='userid' v-el:username>
28
+ </div>
29
+ <div class="col-sm-2">
30
+ <label class="font_normal_body">客户地址</label>
31
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
32
+ condition="ss.f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
33
+ </div>
34
+ <div class="span" style="float:right;margin-top:10px">
35
+ <button class="button_search button_spacing" @click="search()">查询</button>
36
+ <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
37
+ <export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
38
+ :field="$parent.$parent.getfield"
39
+ sqlurl="rs/logic/exportfile" sql-name="gasStatisticsQuery" template-name='用气量统计表'
40
+ :choose-col="true"></export-excel>
41
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
42
+ :defaultfield="$parent.$parent.defaultfield"
43
+ titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
44
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
45
+ <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>
46
+ </div>
47
+ </div>
48
+ <div class="row" v-show="$parent.$parent.criteriaShow">
49
+ <div class="col-sm-2">
50
+ <label class="font_normal_body">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话</label>
51
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_user_phone" placeholder='电话'
52
+ condition="ss.f_user_phone like '%{}%'" v-next-el='f_user_phone' v-el:f_user_phone
53
+ >
54
+ </div>
55
+ <div class="col-sm-2">
56
+ <label class="font_normal_body">小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
57
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
58
+ condition="ss.f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_residential_area>
59
+ </div>
60
+ <div class="col-sm-2">
61
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
62
+ <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
63
+ condition="ss.f_meternumber like '%{}%'" v-next-el='meternumber' v-el:meternumber
64
+ >
65
+ </div>
66
+ <!-- <div class="col-sm-2">-->
67
+ <!-- <label class="font_normal_body">小区名称</label>-->
68
+ <!-- <input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='燃气证号'-->
69
+ <!-- condition="ss.f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_gascode-->
70
+ <!-- >-->
71
+ <!-- </div>-->
72
+ <div class="col-sm-2 form-group">
73
+ <label class="font_normal_body">气价类型</label>
74
+ <v-select :value.sync="model.pricetype" v-model="model.pricetype"
75
+ placeholder='气价类型' :options="$parent.$parent.pricetypes"
76
+ close-on-select>
77
+ </v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">气价名称</label>
81
+ <v-select :value.sync="model.f_price_name"
82
+ v-model="model.f_price_name"
83
+ :options="$parent.$parent.getPricenames"
84
+ condition="ss.f_price_name = '{}'"
85
+ close-on-select></v-select>
86
+ </div>
87
+ <div class="col-sm-2 form-group">
88
+ <label class="font_normal_body">气表品牌</label>
89
+ <v-select :value.sync="model.f_meter_brand"
90
+ v-model="model.f_meter_brand"
91
+ :options="$parent.$parent.meterbrands"
92
+ condition="ss.f_meter_brand = '{}'"
93
+ close-on-select></v-select>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label class="font_normal_body">是否换表</label>
97
+ <v-select :value.sync="model.f_changetable_state"
98
+ v-model="model.f_changetable_state"
99
+ :options="$parent.$parent.isChange"
100
+ condition="ss.f_changetable_state = '{}'"
101
+ close-on-select></v-select>
102
+ </div>
103
+ <div class="col-sm-2 form-group">
104
+ <label class="font_normal_body">用气状态</label>
105
+ <v-select :value.sync="model.f_gas_state"
106
+ v-model="model.f_gas_state"
107
+ :options="$parent.$parent.gasState"
108
+ condition="ss.f_gas_state = '{}'"
109
+ close-on-select></v-select>
110
+ </div>
111
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
112
+ <label class="font_normal_body">用气量区间</label>
113
+ <div class="row">
114
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
115
+ condition="ss.f_oughtamount >= {} " placeholder="">
116
+ <label class="font_normal_body"> ≤ x ≤ </label>
117
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
118
+ condition="ss.f_oughtamount <= {} " placeholder="">
119
+ </div>
120
+ </div>
121
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
122
+ <label class="font_normal_body">&nbsp;充值区间&nbsp;&nbsp;</label>
123
+ <div class="row">
124
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
125
+ condition="ss.f_collection >= {} " placeholder="">
126
+ <label class="font_normal_body"> ≤ x ≤ </label>
127
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
128
+ condition="ss.f_collection <= {} " placeholder="">
129
+ </div>
130
+ </div>
131
+ <div class="col-sm-2 form-group" >
132
+ <label class="font_normal_body" for="startDate">开始时间</label>
133
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
134
+ v-model="model.startDate"
135
+ :value.sync="model.startDate"
136
+ :disabled-days-of-Week="[]"
137
+ :format="'yyyy-MM-dd 00:00:00'"
138
+ :show-reset-button="reset">
139
+ </datepicker>
140
+ </div>
141
+ <div class="col-sm-2 form-group" >
142
+ <label class="font_normal_body" for="endDate">结束时间</label>
143
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
144
+ v-model="model.endDate"
145
+ :value.sync="model.endDate"
146
+ :disabled-days-of-Week="[]"
147
+ :format="'yyyy-MM-dd 23:59:59'"
148
+ :show-reset-button="reset">
149
+ </datepicker>
150
+ </div>
151
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
152
+ <label class="font_normal_body">余额区间</label>
153
+ <div class="row">
154
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_sta"
155
+ condition="ss.f_balance_amount >= {} " placeholder="">
156
+ <label class="font_normal_body"> ≤ x ≤ </label>
157
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_end"
158
+ condition="ss.f_balance_amount <= {} " placeholder="">
159
+ </div>
160
+ </div>
161
+ <div class="col-sm-2 form-group">
162
+ <label class="font_normal_body">客户类型</label>
163
+ <v-select :value.sync="model.f_user_type"
164
+ v-model="model.f_user_type" condition="f_user_type = '{}'"
165
+ :options='$parent.$parent.userTypes' placeholder='请选择'
166
+ close-on-select></v-select>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </criteria>
171
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
172
+ <template partial='head'>
173
+ <tr>
174
+ <th><nobr>客户编号</nobr></th>
175
+ <th><nobr>客户名称</nobr></th>
176
+ <th><nobr>小区</nobr></th>
177
+ <th><nobr>地址</nobr></th>
178
+ <th><nobr>电话</nobr></th>
179
+
180
+ <th><nobr>燃气证号</nobr></th>
181
+ <th><nobr>表号</nobr></th>
182
+ <th><nobr>表具类型</nobr></th>
183
+ <th><nobr>表描述</nobr></th>
184
+ <th><nobr>气价名称</nobr></th>
185
+
186
+ <th><nobr>一阶气价</nobr></th>
187
+ <th><nobr>二阶气价</nobr></th>
188
+ <th><nobr>三阶气价</nobr></th>
189
+
190
+ <th><nobr>用气性质</nobr></th>
191
+ <th><nobr>期初余额</nobr></th>
192
+ <th><nobr>起方</nobr></th>
193
+ <th><nobr>止方</nobr></th>
194
+ <th><nobr>期间用气量</nobr></th>
195
+
196
+ <th><nobr>期间用气金额</nobr></th>
197
+ <th><nobr>期间充值金额</nobr></th>
198
+ <th><nobr>期末余额</nobr></th>
199
+ <th><nobr>用气状态</nobr></th>
200
+ <th><nobr>是否换表</nobr></th>
201
+ <th><nobr>最后通讯日期</nobr></th>
202
+ </tr>
203
+ </template>
204
+ <template partial='body' partial='list'>
205
+ <tr >
206
+ <td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
207
+ <td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
208
+ <td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
209
+ <td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
210
+ <td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
211
+
212
+ <td style="text-align:center"><nobr>{{row.f_gascode}}</nobr></td>
213
+ <th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
214
+ <th style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></th>
215
+ <th style="text-align:center"><nobr>{{row.f_meter_title}}</nobr></th>
216
+ <th style="text-align:center"><nobr>{{row.f_price_name}}</nobr></th>
217
+
218
+ <th style="text-align:center"><nobr>{{row.f_stair1price}}</nobr></th>
219
+ <th style="text-align:center"><nobr>{{row.f_stair2price}}</nobr></th>
220
+ <th style="text-align:center"><nobr>{{row.f_stair3price}}</nobr></th>
221
+
222
+ <th style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></th>
223
+
224
+
225
+ <th style="text-align:center"><nobr>{{row.f_balance}}</nobr></th>
226
+ <th style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></th>
227
+ <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
228
+ <th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
229
+ <th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
230
+
231
+ <th style="text-align:center"><nobr>{{row.f_collection}}</nobr></th>
232
+ <th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
233
+ <th style="text-align:center"><nobr>{{row.f_gas_state}}</nobr></th>
234
+ <th style="text-align:center"><nobr>{{row.f_changetable_state}}</nobr></th>
235
+ <th style="text-align:center"><nobr>{{row.f_input_date}}</nobr></th>
236
+ </tr>
237
+ </template>
238
+ <template partial='foot'></template>
239
+ </data-grid>
240
+ </criteria-paged>
241
+ <table class="table-hover">
242
+ <tr style="position: relative" class="table-bordered">
243
+ <td
244
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
245
+ 汇总信息
246
+ </td>
247
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
248
+ 期间用气量:&emsp;{{sumsmodel.f_oughtamount}}
249
+ </td>
250
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
251
+ 期间用气金额:&emsp;{{sumsmodel.f_oughtfee}}
252
+ </td>
253
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
254
+ 期间充值金额:&emsp;{{sumsmodel.f_collection}}
255
+ </td>
256
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
257
+ 一阶气量合计:&emsp;{{sumsmodel.f_stairamount1}}
258
+ </td>
259
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
260
+ 一阶气费合计:&emsp;{{sumsmodel.f_stair1fee}}
261
+ </td>
262
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
263
+ 二阶气量合计:&emsp;{{sumsmodel.f_stairamount2}}
264
+ </td>
265
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
266
+ 二阶气费合计:&emsp;{{sumsmodel.f_stair2fee}}
267
+ </td>
268
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
269
+ 三阶气量合计:&emsp;{{sumsmodel.f_stairamount3}}
270
+ </td>
271
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
272
+ 三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
273
+ </td>
274
+ </tr>
275
+ </table>
276
+ </div>
277
+ <div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
278
+ <user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
279
+ </div>
280
+ </div>
281
+ </div>
282
+ </template>
283
+
284
+ <script>
285
+ import {HttpResetClass, PagedList} from 'vue-client'
286
+ import exportConfig from './config/exportConfig'
287
+ import * as Util from './../../Util'
288
+ import plugins from '../../plugins/GetLoginInfoService'
289
+
290
+ let readySomething = async function (self) {
291
+ await self.$MagLoadParams.loadParam()
292
+ self.initParams()
293
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
294
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
295
+ }
296
+ export default {
297
+ title: '用气量统计表',
298
+ data () {
299
+ return {
300
+ show:false,
301
+ org:[this.$login.f.orgid],
302
+ orgcondition: ' and ss.f_orgid = ' + this.$login.f.orgid,
303
+ //f_filialeid: this.$login.f.f_orgid,
304
+ detaillist: [],
305
+ meterbrands: [],
306
+ prices: [],
307
+ gasproperties:[],
308
+ condition:'',
309
+ rowdata:{},
310
+ getstart:'',
311
+ config: {
312
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
313
+ 'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
314
+ },
315
+ sumsmodel: {},
316
+ orgid:[this.$login.f.orgid],
317
+ criteriaShow:false,
318
+ //默认打印列
319
+ defaultfield: [],
320
+ orgCondtionStr: '',
321
+ model: new PagedList('rs/sql/gasStatisticsQuery', 50,{
322
+ startDate: 'this.model.startDate',
323
+ endDate: 'this.model.endDate'
324
+ },{
325
+ f_oughtamount: 0,
326
+ f_oughtfee: 0,
327
+ f_collection:0,
328
+ f_stairamount1:0,
329
+ f_stair1fee:0,
330
+ f_stairamount2:0,
331
+ f_stair2fee:0,
332
+ f_stairamount3:0,
333
+ f_stair3fee:0
334
+ }),
335
+ showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
336
+ }
337
+ },
338
+ ready () {
339
+ // this.$refs.paged.$refs.criteria.search()
340
+ readySomething(this).then(() => {
341
+ this.$emit('ready')
342
+ }).catch((error) => {
343
+ this.$emit('error', error)
344
+ })
345
+ this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
346
+ this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
347
+ this.$refs.paged.$refs.criteria.model.inputStartDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
348
+ this.$refs.paged.$refs.criteria.model.inputEndDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
349
+ this.$refs.paged.$refs.criteria.search()
350
+ },
351
+ methods: {
352
+ initParams() {
353
+ // 初始化气表品牌
354
+ let brandArr = []
355
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
356
+ let temp = {}
357
+ temp.label = item.label
358
+ temp.value = item.value.f_meter_brand
359
+ brandArr.push(temp)
360
+ })
361
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
362
+ //初始化气表价格
363
+ this.prices = this.$MagGetSaleParam.getPrices();
364
+ },
365
+ async updateParams() {
366
+ await this.$MagLoadParams.loadParam(this.f_filialeid)
367
+ this.initParams()
368
+ },
369
+ getorg(obj) {
370
+ if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
371
+ this.orgcondition = " and ss.f_orgid in " + plugins.convertToIn(obj)
372
+ }else{
373
+ this.orgcondition = " and ss.f_orgid = " + this.$login.f.orgid
374
+ }
375
+ },
376
+ userTypeChange () {
377
+ this.gasproperties=[]
378
+ if(this.$refs.paged.$refs.criteria.model !==null) {
379
+ this.$refs.paged.$refs.criteria.model.f_gasproperties=''
380
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
381
+ }
382
+ else{
383
+ this.gasproperties =[{label: '全部', value: ''}]
384
+ }
385
+ },
386
+ hidden(){
387
+ this.criteriaShow = !this.criteriaShow
388
+ },
389
+ cancel() {
390
+ this.show = false
391
+ },
392
+ clearmsg () {
393
+ Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
394
+ this.$refs.paged.$refs.criteria.model[key] = []
395
+ })
396
+ },
397
+ getRes (obj) {
398
+ this.orgCondtionStr = condition
399
+ this.orgname = obj.orgnames[0]
400
+ this.depname = obj.depnames[0]
401
+ },
402
+ showmsg(obj){
403
+ this.rowdata=obj
404
+ this.show=true
405
+ },
406
+
407
+ search (args) {
408
+ args.condition = `${args.condition}`+this.orgcondition
409
+ this.condition = args.condition
410
+ this.model.search(args.condition, args.model)
411
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
412
+ // args.condition = `${args.condition}`
413
+ // if (this.orgcondition)
414
+ // args.condition = `${args.condition}` + this.orgcondition
415
+ // else
416
+ // args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
417
+ // this.model.search(args.condition, args.model)
418
+ }
419
+ },
420
+ watch: {
421
+ 'model.rows'(val) {
422
+ //如果有合计 这里为true, 其他为false ,反正相反
423
+ this.showbottomsum=true;
424
+ if(val.length === 0){
425
+ this.sumsmodel = {}
426
+ this.showbottomsum=false;
427
+ }
428
+ },
429
+ 'orgCondtionStr'(val) {
430
+ let res = val.match(/'(.*?)'/)
431
+ console.log('正则提取:',res && res[1])
432
+ if (res) {
433
+ this.f_filialeid = res[1]
434
+ // this.updateParams()
435
+ }
436
+ }
437
+ },
438
+ computed: {
439
+ userTypes () {
440
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
441
+ },
442
+ getCondition() {
443
+
444
+ return {
445
+ condition: this.condition,
446
+ startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
447
+ endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`
448
+ }
449
+ },
450
+ getstart(){
451
+ return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
452
+ },
453
+ getPricenames() {
454
+ let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
455
+ let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
456
+ let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
457
+ console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
458
+ console.log("查看f_orgid:",this.$login.f.f_orgid)
459
+ if(this.$refs.paged.$refs.criteria.model !==null) {
460
+ let rs = []
461
+ let priceArr = []
462
+ if ( pricetype.length >0) {
463
+ let params = {
464
+ f_price_type: pricetype[0],
465
+ filter: this.org[0],
466
+ prices: this.prices
467
+ }
468
+ console.log("打印一下params:",params)
469
+ this.$MagGetSaleParam.getPrice(params).forEach((item) => {
470
+ console.log("====================================》")
471
+ let temp = {}
472
+ temp.label = item.label
473
+ temp.value = item.value.f_price_name
474
+ priceArr.push(temp)
475
+ console.log("打印一下temp:",temp)
476
+ })
477
+
478
+ rs = [{label: '全部', value: ''}, ...priceArr]
479
+ }
480
+ if (rs.length === 0) {
481
+ console.log('rs读出来是空')
482
+ this.$refs.paged.$refs.criteria.model.f_price_name = ''
483
+ }
484
+ return rs
485
+ }
486
+ },
487
+ getfield () {
488
+ return exportConfig.GasStatistics
489
+ },
490
+ usertypes() {
491
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
492
+ },
493
+ pricetypes() {
494
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
495
+ },
496
+ gasState() {
497
+ return [{label:'正常', value:'正常'},
498
+ {label:'异常', value:'异常'},
499
+ ]
500
+ },
501
+ isChange() {
502
+ return [{label:'是', value:'是'},
503
+ {label:'否', value:'否'},
504
+ ]
505
+ }
506
+ }
507
+ }
508
+ </script>
509
+
510
+ <style>
511
+ .showbottom{
512
+ height:95%
513
+ }
514
+ </style>
515
+