manage-client 3.2.42 → 3.2.43

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 (111) hide show
  1. package/build/dev-server.js +8 -26
  2. package/package.json +1 -1
  3. package/src/components/BasisEcharts/BarChart.vue +247 -247
  4. package/src/components/SellReport/BonSummary.vue +178 -178
  5. package/src/components/SellReport/ChargePrick.vue +205 -205
  6. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  7. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  8. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  9. package/src/components/SellReport/NonResidentGas.vue +203 -203
  10. package/src/components/SellReport/OutletTable.vue +258 -258
  11. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  12. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  13. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  14. package/src/components/SellReport/SellingTable.vue +220 -220
  15. package/src/components/SellReport/UserSellingGas.vue +228 -228
  16. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  17. package/src/components/daping/GMap.vue +636 -636
  18. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  19. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  20. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  21. package/src/components/sale/businessquery/AreaChargeQuery.vue +380 -380
  22. package/src/components/sale/businessquery/BusinesQuery.vue +358 -358
  23. package/src/components/sale/businessquery/BusinessManage.vue +6 -1
  24. package/src/components/sale/businessquery/ChangeMeterQuery.vue +632 -632
  25. package/src/components/sale/businessquery/ChangeUserQuery.vue +357 -357
  26. package/src/components/sale/businessquery/CollectManage.vue +138 -138
  27. package/src/components/sale/businessquery/DisableQuery.vue +451 -451
  28. package/src/components/sale/businessquery/EnableQuery.vue +408 -408
  29. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  30. package/src/components/sale/businessquery/FillCardQuery.vue +486 -486
  31. package/src/components/sale/businessquery/FillGasQuery.vue +511 -511
  32. package/src/components/sale/businessquery/GasLossQuery.vue +561 -0
  33. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  34. package/src/components/sale/businessquery/OtherChargeQuery.vue +634 -634
  35. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  36. package/src/components/sale/businessquery/ReverseQuery.vue +402 -402
  37. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  38. package/src/components/sale/businessquery/TransferQuery.vue +418 -418
  39. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  40. package/src/components/sale/businessquery/gasPriceQuery.vue +365 -0
  41. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  42. package/src/components/sale/businessquery/usergas.vue +311 -311
  43. package/src/components/sale/config/exportConfig.js +10 -0
  44. package/src/components/sale/filesquery/DeviceQuery.vue +534 -534
  45. package/src/components/sale/filesquery/RecordInfoQuery.vue +1260 -1260
  46. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  47. package/src/components/statistical/DendrogramManage.vue +239 -239
  48. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  49. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  50. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  51. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  52. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  53. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  54. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  55. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  56. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  57. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  58. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  59. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  60. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  61. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  62. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  63. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  64. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  65. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  66. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  67. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  68. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  69. package/src/filiale/WEINAN/reportManage.js +12 -12
  70. package/src/filiale/WEINAN/sale.js +36 -36
  71. package/src/filiale/alashan/reportManage.js +10 -10
  72. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  73. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  74. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  75. package/src/filiale/macheng/MeterQuery.vue +12 -0
  76. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  77. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  78. package/src/filiale/pingxiang/sale.js +9 -9
  79. package/src/filiale/qianneng/OtherChargeDetailQuery.vue +74 -0
  80. package/src/filiale/qianneng/OtherChargeQuery.vue +634 -0
  81. package/src/filiale/qianneng/sale.js +9 -0
  82. package/src/filiale/qingtongxia/sale.js +13 -13
  83. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  84. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  85. package/src/filiale/rongchuang/reportManage.js +11 -11
  86. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  87. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  88. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  89. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  90. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  91. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  92. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  93. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  94. package/src/filiale/tongchuan/FillGasQuery.vue +523 -523
  95. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  96. package/src/filiale/tongchuan/reportManage.js +5 -5
  97. package/src/filiale/wuhai/ChargeQuery.vue +19 -16
  98. package/src/filiale/zhongsheng/ChargeQuery.vue +1255 -1255
  99. package/src/filiale/zhongsheng/config/exportConfig.js +899 -899
  100. package/src/filiale/zhongsheng/sale.js +10 -10
  101. package/src/main.js +3 -3
  102. package/src/saleManage.js +9 -0
  103. package/static/wuhai.json +1610 -1610
  104. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  105. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  106. package/.gradle/5.4.1/gc.properties +0 -0
  107. package/src/.idea/misc.xml +0 -9
  108. package/src/.idea/modules.xml +0 -8
  109. package/src/.idea/src.iml +0 -9
  110. package/src/.idea/vcs.xml +0 -6
  111. package/src/.idea/workspace.xml +0 -93
@@ -1,687 +1,687 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex" v-if="!show">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-inline auto" partial>
8
- <div class="row">
9
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
10
- v-ref:sel></res-select-group>
11
-
12
-
13
- <div class="span" style="float:right;">
14
- <button class="button_search button_spacing" @click="search()">查询</button>
15
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
16
- <export-excel :data="$parent.$parent.getCondition"
17
- :field="$parent.$parent.getfield"
18
- :footer="$parent.$parent.footer"
19
- :header="$parent.$parent.other"
20
- sqlurl="rs/logic/exportfile"
21
- sql-name="FMYgasQuery"
22
- template-name='用气查询导出'
23
- :choose-col="true"></export-excel>
24
- <print-data :model="$parent.model" :field="$parent.$parent.getfield"
25
- :defaultfield="$parent.$parent.defaultfield" print-name="用气查询打印"
26
- ></print-data>
27
-
28
- <div style="float: right" class="button_spacing"
29
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
30
- @click="$parent.$parent.hidden()"></div>
31
- </div>
32
- </div>
33
- <div class="row" v-show="$parent.$parent.criteriaShow">
34
-
35
- <div class="col-sm-2 form-group">
36
- <label for="startDate" class="font_normal_body">开始日期</label>
37
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
38
- v-model="model.startDate"
39
- :value.sync="model.startDate"
40
- :format="'yyyy-MM-dd HH:mm:ss'"
41
- :show-reset-button="true"
42
- >
43
- </datepicker>
44
- </div>
45
- <div class="col-sm-2 form-group">
46
- <label for="endDate" class="font_normal_body">结束日期</label>
47
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
48
- v-model="model.endDate"
49
- :value.sync="model.endDate"
50
- :format="'yyyy-MM-dd HH:mm:ss'"
51
- :show-reset-button="true"
52
- >
53
- </datepicker>
54
- </div>
55
- <div class="col-sm-2 form-group">
56
-
57
- <label class="font_normal_body">客户编号</label>
58
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
59
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
60
- </div>
61
- <div class="col-sm-2 form-group">
62
- <label class="font_normal_body">客户名称</label>
63
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
64
- condition="f_user_name like '%{}%'" placeholder="客户名称">
65
- </div>
66
- <div class="col-sm-2 form-group">
67
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
68
- <v-select :value.sync="model.f_residential_area"
69
- class="select_list select"
70
- v-model="model.f_residential_area"
71
- style="width: 60%"
72
- multiple
73
- condition="f_residential_area in {}"
74
- :options='$parent.$parent.residentialArea' placeholder='选择小区'
75
- close-on-select>
76
-
77
- </v-select>
78
- </div>
79
- <div class="col-sm-2 form-group">
80
- <label class="font_normal_body">客户地址</label>
81
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
82
- condition="f_address like '%{}%'" placeholder='客户地址'>
83
- </div>
84
- <div class="col-sm-2 form-group">
85
- <label class="font_normal_body">客户表号</label>
86
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
87
- condition="f_meternumber like '%{}%'" placeholder='客户表号'>
88
- </div>
89
- <div class="col-sm-2 form-group">
90
- <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
91
- <v-select :value.sync="model.f_meter_classify"
92
- v-model="model.f_meter_classify"
93
- :options='$parent.$parent.metertype' placeholder='请选择'
94
- condition="f_meter_classify like '%{}%'"
95
- close-on-select></v-select>
96
- </div>
97
- <div class="col-sm-2 form-group">
98
- <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
99
- <v-select :value.sync="model.f_user_type"
100
- @change="$parent.$parent.userTypeChange()"
101
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
102
- condition="f_user_type = '{}'"
103
- close-on-select></v-select>
104
- </div>
105
- <div class="col-sm-2 form-group" >
106
- <label class="font_normal_body">客户状态</label>
107
- <v-select :value.sync="model.f_user_state"
108
- v-model="model.f_user_state"
109
- :options='$parent.$parent.userstates' placeholder='请选择'
110
- condition="f_user_state = '{}'"
111
- close-on-select></v-select>
112
- </div>
113
- <div class="col-sm-2 form-group">
114
- <label class="font_normal_body">用气性质</label>
115
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
116
- :options='$parent.$parent.gasproperties' placeholder='请选择'
117
- condition="f_gasproperties = '{}'"
118
- close-on-select></v-select>
119
- </div>
120
- <!--表册片区-->
121
- <div class="col-sm-2 form-group">
122
- <label class="font_normal_body">表册片区</label>
123
- <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
124
- @change="$parent.$parent.inputtorchange"
125
- :options='$parent.$parent.bookSlice' placeholder='片区/表册'
126
- style="width:60%"
127
- close-on-select
128
- condition="f_book_slice_area = '{}'"></v-select>
129
- </div>
130
- <div class="col-sm-2 form-group">
131
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
132
- <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
133
- :options='$parent.$parent.meterbooks' placeholder='抄表册'
134
- style="width:60%" :multiple="true"
135
- condition="f_meter_book_num in {}"></v-select>
136
- </div>
137
- <div class="col-sm-2 form-group">
138
- <label class="font_normal_body">气表品牌</label>
139
- <v-select :value.sync="model.f_meter_brand" multiple
140
- v-model="model.f_meter_brand"
141
- :options='$parent.$parent.meterbrands' placeholder='请选择'
142
- condition="f_meter_brand in {}"
143
- close-on-select></v-select>
144
- </div>
145
- <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
146
- <label class="font_normal_body">&nbsp;&nbsp;&nbsp;用气量&nbsp;</label>
147
- <div class="row">
148
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
149
- condition="f_oughtamount >= {} " placeholder="">
150
- <label class="font_normal_body"> ≤ x ≤ </label>
151
- <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
152
- condition="f_oughtamount <= {} " placeholder="">
153
- </div>
154
- </div>
155
- </div>
156
- </div>
157
- </criteria>
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
- <!--<th><nobr>气表底数</nobr></th>-->
201
- <!--<th><nobr>表上余额</nobr></th>-->
202
- <!--<th><nobr>账户余额</nobr></th>-->
203
- <th>
204
- <nobr>预购气量</nobr>
205
- </th>
206
- <th>
207
- <nobr>预购金额</nobr>
208
- </th>
209
- <th>
210
- <nobr>实交金额</nobr>
211
- </th>
212
- <th>
213
- <nobr>抄表员</nobr>
214
- </th>
215
- <th>
216
- <nobr>表册片区</nobr>
217
- </th>
218
- <th>
219
- <nobr>抄表次数</nobr>
220
- </th>
221
- <th>
222
- <nobr>抄表区间</nobr>
223
- </th>
224
- <th title="抄表区间间隔天数">
225
- <nobr>天数</nobr>
226
- </th>
227
- <th>
228
- <nobr>用气量</nobr>
229
- </th>
230
- <th>
231
- <nobr>用气金额</nobr>
232
- </th>
233
- </tr>
234
- </template>
235
- <template partial='body'>
236
- <td style="text-align: center;">
237
- <nobr>{{row.f_userinfo_code}}</nobr>
238
- </td>
239
- <td style="text-align: center;">
240
- <nobr>{{row.f_user_name}}</nobr>
241
- </td>
242
- <td style="text-align: center;">
243
- <nobr>{{row.f_user_phone}}</nobr>
244
- </td>
245
- <td style="text-align: center;">
246
- <nobr>{{row.f_credentials}}</nobr>
247
- </td>
248
- <td style="text-align: center;">
249
- <nobr>{{row.f_idnumber}}</nobr>
250
- </td>
251
- <td style="text-align: center;">
252
- <nobr>{{row.f_residential_area}}</nobr>
253
- </td>
254
- <td style="text-align: center;">
255
- <nobr>{{row.f_address}}</nobr>
256
- </td>
257
- <td style="text-align: center;">
258
- <nobr>{{row.f_user_type}}</nobr>
259
- </td>
260
- <td style="text-align: center;">
261
- <nobr>{{row.f_gasproperties}}</nobr>
262
- </td>
263
- <td style="text-align: center;">
264
- <nobr>{{row.f_meternumber}}</nobr>
265
- </td>
266
- <td style="text-align: center;">
267
- <nobr>{{row.f_meter_brand}}</nobr>
268
- </td>
269
- <td style="text-align: center;">
270
- <nobr>{{row.f_meter_classify}}</nobr>
271
- </td>
272
- <td style="text-align: center;">
273
- <nobr>{{row.f_price_value}}</nobr>
274
- </td>
275
- <!--<td style="text-align: center;">-->
276
- <!--<nobr>{{row.f_meter_base}}</nobr>-->
277
- <!--</td>-->
278
- <!--<td style="text-align: center;">-->
279
- <!--<nobr>{{row.f_balance_amount}}</nobr>-->
280
- <!--</td>-->
281
- <!--<td style="text-align: center;">-->
282
- <!--<nobr>{{row.f_balance}}</nobr>-->
283
- <!--</td>-->
284
- <td style="text-align: center;">
285
- <nobr>{{row.f_pregas}}</nobr>
286
- </td>
287
- <td style="text-align: center;">
288
- <nobr>{{row.f_preamount}}</nobr>
289
- </td>
290
- <td style="text-align: center;">
291
- <nobr>{{row.f_collection}}</nobr>
292
- </td>
293
- <td style="text-align: center;">
294
- <nobr>{{row.f_inputtor}}</nobr>
295
- </td>
296
- <td style="text-align: center;">
297
- <nobr>{{row.f_book_slice_area}}</nobr>
298
- </td>
299
- <td style="text-align: center;">
300
- <nobr>{{row.f_hand_number}}</nobr>
301
- </td>
302
- <td style="text-align: center;">
303
- <nobr>{{row.f_date}}</nobr>
304
- </td>
305
- <td style="text-align: center;" title="抄表区间间隔天数">
306
- <nobr>{{row.f_input_day}}</nobr>
307
- </td>
308
- <td style="text-align: center;">
309
- <nobr>{{row.f_oughtamount}}</nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr>{{row.f_oughtfee}}</nobr>
313
- </td>
314
- </template>
315
- <template partial='foot'></template>
316
- </data-grid>
317
- </criteria-paged>
318
- <table class="table-hover">
319
- <tr style="position: relative" class="table-bordered">
320
- <td
321
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
322
- 汇总信息
323
- </td>
324
- <td
325
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
326
- 预购气量合计:&emsp;{{sumsmodel.f_pregas}}
327
- </td>
328
- <td
329
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
330
- 预购金额合计:&emsp;{{sumsmodel.f_preamount}}
331
- </td>
332
- <td
333
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
- 实交金额合计:&emsp;{{sumsmodel.f_collection}}
335
- </td>
336
- <td
337
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
338
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
339
- </td>
340
- <td
341
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
342
- 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
343
- </td>
344
- </tr>
345
- </table>
346
- </div>
347
- <div v-if="show">
348
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
349
- </div>
350
- </div>
351
- </div>
352
- </template>
353
- <script>
354
- import {HttpResetClass, PagedList} from 'vue-client'
355
- import defaultPrint from './../../config/DefaultPrint'
356
- import exportConfig from './../../config/exportConfig'
357
-
358
- let readySomething = async function (self) {
359
- //加载抄表册
360
- self.initmeterbook();
361
- self.initSlice(self.$login.f.orgid)
362
-
363
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
364
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
365
- await self.$MagLoadParams.loadParam()
366
- self.initParams()
367
- self.getaddress()
368
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
369
- }
370
- export default {
371
- title: '用气查询',
372
- name: 'AddMaterial',
373
- data () {
374
- return {
375
- other: [],
376
- footer: [],
377
- model: new PagedList('rs/sql/FMYgasQuery', 30, {
378
- startDate: 'this.model.startDate',
379
- endDate: 'this.model.endDate'
380
- }, {
381
- f_pregas: 0,
382
- f_preamount: 0,
383
- f_collection: 0,
384
- f_oughtamount: 0,
385
- f_oughtfee: 0
386
- }),
387
- initres: {
388
- org: [this.$login.f.orgid],
389
- dep: [],
390
- user: [],
391
- },
392
- gasproperties: [],
393
- residentialArea: [],
394
- f_filialeid: this.$login.f.orgid,
395
- show: false,
396
- rowdata: {},
397
- criteriaShow: false,
398
- orgCondtionStr: '',
399
- modelval: [],
400
- meterbrands: [],
401
- printshow: false,
402
- all: false,
403
- fields: {},
404
- thead: '',
405
- tfoot: '',
406
- //表册片区
407
- bookSlice:[{label: '全部',value: ''}],
408
- // 下拉框
409
-
410
- //合计数据
411
- sumsmodel: {},
412
- defaultfield: [],
413
- // 使用类型,壁挂炉
414
- usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
415
- userstates: this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
416
- meterbooks: [{label: '全部',value: ''}], //抄表册
417
- tempfalg :false,
418
- lastorgstr:'',
419
- allorgid:[],
420
- }
421
- },
422
- ready () {
423
- readySomething(this)
424
- },
425
- methods: {
426
- initParams(){
427
- //初始化气表品牌
428
- let brandArr = []
429
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
430
- let temp = {}
431
- temp.label = item.label
432
- temp.value = item.value.f_meter_brand
433
- brandArr.push(temp)
434
- })
435
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
436
- },
437
- //初始化片区
438
- async initSlice (val) {
439
- if (val) {
440
- let getAllArea = await this.$resetpost('/rs/search', {
441
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
442
- userid: this.$login.f.id
443
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
444
- let arr = getAllArea.data.filter((res) => {
445
- return res.parentid == val
446
- })
447
- this.bookSlice = []
448
- arr.forEach((res) => {
449
- this.bookSlice.push({label: res.name, value: res.name})
450
- })
451
- }
452
- },
453
- //表册片区和抄表册关联
454
- async inputtorchange(){
455
- /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
456
- this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
457
- let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
458
- if((val2.length>0)){
459
- let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
460
- if(val2[0]) {
461
- condition = condition + ` and f_book_slice_area = '${val2}' `
462
- }
463
- let param={
464
- items:'*',
465
- tablename:'t_meter_book',
466
- condition:condition,
467
- orderitem:'id'
468
- }
469
- let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
470
- if (getMeterBooks.data) {
471
- if(getMeterBooks.data.length >0){
472
- let rs = [];
473
- getMeterBooks.data.forEach((item)=>{
474
- let temp = {
475
- label:item.f_book_name,
476
- value:item.id
477
- };
478
- rs.push(temp);
479
-
480
- })
481
- this.meterbooks = [{label: '全部',value: ''}, ...rs];
482
- }else{
483
-
484
- this.meterbooks = [{label: '全部',value: ''}];
485
- }
486
- }
487
- }else{
488
- this.meterbooks = [{label: '全部',value: ''}];
489
- this.initmeterbook();
490
- }
491
- },
492
- async getaddress(){
493
- let HttpReset = new HttpResetClass()
494
- var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
495
- data: {
496
- condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
497
- }
498
- }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
499
- console.log('小区',data)
500
- let house = [{label: '全部', value: ''}]
501
- for (let row of data.data){
502
- house.push({label: row.f_residential_area, value: row.f_residential_area})
503
- }
504
- this.residentialArea = house
505
- },
506
- async initmeterbook(orgstr){
507
- if(orgstr == null ){
508
- orgstr = this.f_filialeid;
509
- }
510
- //获取新的抄表册,先去清理所有的抄表册
511
- this.$GetSaleParam.meterbooks = [];
512
- //开始加载新的抄表册
513
- await this.$LoadParams.loadMeterBook(orgstr)
514
- this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
515
- },
516
- getotherfooter () {
517
- this.other = [];
518
- this.footer = [];
519
- // let exportdata = this.getCondition;
520
- let otherInData = [];
521
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
522
- let footerData = [], exportfield = this.getfield;
523
- footerData.push("合计");
524
- let self = this;
525
- for (var field in self.sumsmodel) {
526
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
527
- }
528
- this.footer.push(footerData);
529
- this.other.push(otherInData);
530
- },
531
- userTypeChange () {
532
- this.gasproperties = []
533
- if (this.$refs.paged.$refs.cri.model !== null) {
534
- this.$refs.paged.$refs.cri.model.f_gasproperties = ''
535
-
536
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
537
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
538
- // this.gasproperties.push({label: '全部', value: ''})
539
- } else {
540
- this.gasproperties = [{label: '全部', value: ''}]
541
- }
542
- },
543
- search () {
544
- this.$refs.paged.$refs.cri.search()
545
- },
546
- cancel () {
547
- this.show = false
548
- },
549
- selfSearch (args) {
550
- args.condition = `${args.condition} ` + this.orgCondtionStr
551
- this.model.search(args.condition, args.model)
552
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
553
- },
554
- clear () {
555
- //清空部门和人员
556
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
557
- //部门和人员变为全选
558
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
559
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
560
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
561
- this.$refs.paged.$refs.cri.model[key] = []
562
- })
563
- },
564
- show () {
565
- this.criteriaShow = true
566
- },
567
- hidden () {
568
- this.criteriaShow = !this.criteriaShow
569
- },
570
- showmsg (obj) {
571
- this.rowdata = obj
572
- this.show = true
573
- },
574
- async getRes(condition,obj) {
575
- this.orgCondtionStr = condition
576
-
577
- },
578
- stamp () {
579
- this.all = false
580
- //默认选择要打印的列
581
- this.modelval = defaultPrint.config
582
- this.fields = this.getfield
583
- console.log('所有打印字段', this.fields)
584
- this.printshow = true
585
- this.put()
586
- },
587
- put () {
588
- // 对Modelval进行排序
589
- this.sortModelval()
590
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
591
- for (let key of this.modelval) {
592
- this.thead += '<th>' + this.fields[key] + '</th>'
593
- }
594
- this.thead += '</tr>'
595
- },
596
- print () {
597
- this.$refs.print.PrintAsFile()
598
- this.printshow = false
599
- },
600
- dealmsg (val) {
601
- this.rowdata = val
602
- this.show = true
603
- val.model = this.model.model
604
- this.$dispatch('deal-msg', val)
605
- },
606
- close () {
607
- this.printshow = false
608
- this.all = false
609
- },
610
- // 对选择的列进行排序
611
- sortModelval () {
612
- let sortModel = []
613
- Object.keys(this.fields).forEach((key) => {
614
- if (this.modelval.includes(key)) {
615
- sortModel.push(key)
616
- }
617
- })
618
- this.modelval = sortModel
619
- console.log('选择的打印的字段', this.modelval)
620
- }
621
-
622
- },
623
- computed: {
624
- getCondition () {
625
- return {
626
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
627
- startDate: this.$refs.paged.$refs.cri.model.startDate,
628
- endDate: this.$refs.paged.$refs.cri.model.endDate
629
- }
630
- },
631
- getfield () {
632
- return exportConfig.fmygasConfig
633
- },
634
- usertypes () {
635
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
636
- },
637
- credentials () {
638
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
639
- },
640
- metertype () {
641
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
642
- }
643
- },
644
- events: {},
645
- watch: {
646
- 'all' (val) {
647
- if (val) {
648
- this.modelval = this.bodyData
649
- } else {
650
- this.modelval = defaultPrint.config
651
- this.put()
652
- }
653
- },
654
- 'modelval.length' () {
655
- this.put()
656
- },
657
- sumsmodel: {
658
- handler: function (val) {
659
- this.getotherfooter();
660
- },
661
- deep: true
662
- },
663
- async 'orgCondtionStr'(val) {
664
- this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
665
- this.$refs.paged.$refs.cri.model.f_meter_book = []
666
- this.meterbooks = [{label: '全部',value: ''}];
667
- if(this.lastorgstr != val){
668
- this.tempfalg = true;
669
- this.lastorgstr = val;
670
- }
671
- if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
672
- this.tempfalg = false;
673
- let a = val.substring(val.indexOf("(")+2)
674
- await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
675
- }
676
- },
677
- }
678
- }
679
- </script>
680
- <style>
681
- .datapanel {
682
- color: #333;
683
- background-color: white;
684
- padding: 10px 20px;
685
- border-radius: 15px;
686
- }
687
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-inline auto" partial>
8
+ <div class="row">
9
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"
10
+ v-ref:sel></res-select-group>
11
+
12
+
13
+ <div class="span" style="float:right;">
14
+ <button class="button_search button_spacing" @click="search()">查询</button>
15
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
16
+ <export-excel :data="$parent.$parent.getCondition"
17
+ :field="$parent.$parent.getfield"
18
+ :footer="$parent.$parent.footer"
19
+ :header="$parent.$parent.other"
20
+ sqlurl="rs/logic/exportfile"
21
+ sql-name="FMYgasQuery"
22
+ template-name='用气查询导出'
23
+ :choose-col="true"></export-excel>
24
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
25
+ :defaultfield="$parent.$parent.defaultfield" print-name="用气查询打印"
26
+ ></print-data>
27
+
28
+ <div style="float: right" class="button_spacing"
29
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
30
+ @click="$parent.$parent.hidden()"></div>
31
+ </div>
32
+ </div>
33
+ <div class="row" v-show="$parent.$parent.criteriaShow">
34
+
35
+ <div class="col-sm-2 form-group">
36
+ <label for="startDate" class="font_normal_body">开始日期</label>
37
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
38
+ v-model="model.startDate"
39
+ :value.sync="model.startDate"
40
+ :format="'yyyy-MM-dd HH:mm:ss'"
41
+ :show-reset-button="true"
42
+ >
43
+ </datepicker>
44
+ </div>
45
+ <div class="col-sm-2 form-group">
46
+ <label for="endDate" class="font_normal_body">结束日期</label>
47
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
48
+ v-model="model.endDate"
49
+ :value.sync="model.endDate"
50
+ :format="'yyyy-MM-dd HH:mm:ss'"
51
+ :show-reset-button="true"
52
+ >
53
+ </datepicker>
54
+ </div>
55
+ <div class="col-sm-2 form-group">
56
+
57
+ <label class="font_normal_body">客户编号</label>
58
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
59
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
60
+ </div>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">客户名称</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
64
+ condition="f_user_name like '%{}%'" placeholder="客户名称">
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
68
+ <v-select :value.sync="model.f_residential_area"
69
+ class="select_list select"
70
+ v-model="model.f_residential_area"
71
+ style="width: 60%"
72
+ multiple
73
+ condition="f_residential_area in {}"
74
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
75
+ close-on-select>
76
+
77
+ </v-select>
78
+ </div>
79
+ <div class="col-sm-2 form-group">
80
+ <label class="font_normal_body">客户地址</label>
81
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
82
+ condition="f_address like '%{}%'" placeholder='客户地址'>
83
+ </div>
84
+ <div class="col-sm-2 form-group">
85
+ <label class="font_normal_body">客户表号</label>
86
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
87
+ condition="f_meternumber like '%{}%'" placeholder='客户表号'>
88
+ </div>
89
+ <div class="col-sm-2 form-group">
90
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
91
+ <v-select :value.sync="model.f_meter_classify"
92
+ v-model="model.f_meter_classify"
93
+ :options='$parent.$parent.metertype' placeholder='请选择'
94
+ condition="f_meter_classify like '%{}%'"
95
+ close-on-select></v-select>
96
+ </div>
97
+ <div class="col-sm-2 form-group">
98
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
99
+ <v-select :value.sync="model.f_user_type"
100
+ @change="$parent.$parent.userTypeChange()"
101
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
102
+ condition="f_user_type = '{}'"
103
+ close-on-select></v-select>
104
+ </div>
105
+ <div class="col-sm-2 form-group" >
106
+ <label class="font_normal_body">客户状态</label>
107
+ <v-select :value.sync="model.f_user_state"
108
+ v-model="model.f_user_state"
109
+ :options='$parent.$parent.userstates' placeholder='请选择'
110
+ condition="f_user_state = '{}'"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">用气性质</label>
115
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
116
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
117
+ condition="f_gasproperties = '{}'"
118
+ close-on-select></v-select>
119
+ </div>
120
+ <!--表册片区-->
121
+ <div class="col-sm-2 form-group">
122
+ <label class="font_normal_body">表册片区</label>
123
+ <v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
124
+ @change="$parent.$parent.inputtorchange"
125
+ :options='$parent.$parent.bookSlice' placeholder='片区/表册'
126
+ style="width:60%"
127
+ close-on-select
128
+ condition="f_book_slice_area = '{}'"></v-select>
129
+ </div>
130
+ <div class="col-sm-2 form-group">
131
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
132
+ <v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
133
+ :options='$parent.$parent.meterbooks' placeholder='抄表册'
134
+ style="width:60%" :multiple="true"
135
+ condition="f_meter_book_num in {}"></v-select>
136
+ </div>
137
+ <div class="col-sm-2 form-group">
138
+ <label class="font_normal_body">气表品牌</label>
139
+ <v-select :value.sync="model.f_meter_brand" multiple
140
+ v-model="model.f_meter_brand"
141
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
142
+ condition="f_meter_brand in {}"
143
+ close-on-select></v-select>
144
+ </div>
145
+ <div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
146
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;用气量&nbsp;</label>
147
+ <div class="row">
148
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
149
+ condition="f_oughtamount >= {} " placeholder="">
150
+ <label class="font_normal_body"> ≤ x ≤ </label>
151
+ <input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
152
+ condition="f_oughtamount <= {} " placeholder="">
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </criteria>
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
+ <!--<th><nobr>气表底数</nobr></th>-->
201
+ <!--<th><nobr>表上余额</nobr></th>-->
202
+ <!--<th><nobr>账户余额</nobr></th>-->
203
+ <th>
204
+ <nobr>预购气量</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>预购金额</nobr>
208
+ </th>
209
+ <th>
210
+ <nobr>实交金额</nobr>
211
+ </th>
212
+ <th>
213
+ <nobr>抄表员</nobr>
214
+ </th>
215
+ <th>
216
+ <nobr>表册片区</nobr>
217
+ </th>
218
+ <th>
219
+ <nobr>抄表次数</nobr>
220
+ </th>
221
+ <th>
222
+ <nobr>抄表区间</nobr>
223
+ </th>
224
+ <th title="抄表区间间隔天数">
225
+ <nobr>天数</nobr>
226
+ </th>
227
+ <th>
228
+ <nobr>用气量</nobr>
229
+ </th>
230
+ <th>
231
+ <nobr>用气金额</nobr>
232
+ </th>
233
+ </tr>
234
+ </template>
235
+ <template partial='body'>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_userinfo_code}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;">
240
+ <nobr>{{row.f_user_name}}</nobr>
241
+ </td>
242
+ <td style="text-align: center;">
243
+ <nobr>{{row.f_user_phone}}</nobr>
244
+ </td>
245
+ <td style="text-align: center;">
246
+ <nobr>{{row.f_credentials}}</nobr>
247
+ </td>
248
+ <td style="text-align: center;">
249
+ <nobr>{{row.f_idnumber}}</nobr>
250
+ </td>
251
+ <td style="text-align: center;">
252
+ <nobr>{{row.f_residential_area}}</nobr>
253
+ </td>
254
+ <td style="text-align: center;">
255
+ <nobr>{{row.f_address}}</nobr>
256
+ </td>
257
+ <td style="text-align: center;">
258
+ <nobr>{{row.f_user_type}}</nobr>
259
+ </td>
260
+ <td style="text-align: center;">
261
+ <nobr>{{row.f_gasproperties}}</nobr>
262
+ </td>
263
+ <td style="text-align: center;">
264
+ <nobr>{{row.f_meternumber}}</nobr>
265
+ </td>
266
+ <td style="text-align: center;">
267
+ <nobr>{{row.f_meter_brand}}</nobr>
268
+ </td>
269
+ <td style="text-align: center;">
270
+ <nobr>{{row.f_meter_classify}}</nobr>
271
+ </td>
272
+ <td style="text-align: center;">
273
+ <nobr>{{row.f_price_value}}</nobr>
274
+ </td>
275
+ <!--<td style="text-align: center;">-->
276
+ <!--<nobr>{{row.f_meter_base}}</nobr>-->
277
+ <!--</td>-->
278
+ <!--<td style="text-align: center;">-->
279
+ <!--<nobr>{{row.f_balance_amount}}</nobr>-->
280
+ <!--</td>-->
281
+ <!--<td style="text-align: center;">-->
282
+ <!--<nobr>{{row.f_balance}}</nobr>-->
283
+ <!--</td>-->
284
+ <td style="text-align: center;">
285
+ <nobr>{{row.f_pregas}}</nobr>
286
+ </td>
287
+ <td style="text-align: center;">
288
+ <nobr>{{row.f_preamount}}</nobr>
289
+ </td>
290
+ <td style="text-align: center;">
291
+ <nobr>{{row.f_collection}}</nobr>
292
+ </td>
293
+ <td style="text-align: center;">
294
+ <nobr>{{row.f_inputtor}}</nobr>
295
+ </td>
296
+ <td style="text-align: center;">
297
+ <nobr>{{row.f_book_slice_area}}</nobr>
298
+ </td>
299
+ <td style="text-align: center;">
300
+ <nobr>{{row.f_hand_number}}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{row.f_date}}</nobr>
304
+ </td>
305
+ <td style="text-align: center;" title="抄表区间间隔天数">
306
+ <nobr>{{row.f_input_day}}</nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr>{{row.f_oughtamount}}</nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr>{{row.f_oughtfee}}</nobr>
313
+ </td>
314
+ </template>
315
+ <template partial='foot'></template>
316
+ </data-grid>
317
+ </criteria-paged>
318
+ <table class="table-hover">
319
+ <tr style="position: relative" class="table-bordered">
320
+ <td
321
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
322
+ 汇总信息
323
+ </td>
324
+ <td
325
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
326
+ 预购气量合计:&emsp;{{sumsmodel.f_pregas}}
327
+ </td>
328
+ <td
329
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
330
+ 预购金额合计:&emsp;{{sumsmodel.f_preamount}}
331
+ </td>
332
+ <td
333
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
334
+ 实交金额合计:&emsp;{{sumsmodel.f_collection}}
335
+ </td>
336
+ <td
337
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
338
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
339
+ </td>
340
+ <td
341
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
342
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee}}
343
+ </td>
344
+ </tr>
345
+ </table>
346
+ </div>
347
+ <div v-if="show">
348
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
349
+ </div>
350
+ </div>
351
+ </div>
352
+ </template>
353
+ <script>
354
+ import {HttpResetClass, PagedList} from 'vue-client'
355
+ import defaultPrint from './../../config/DefaultPrint'
356
+ import exportConfig from './../../config/exportConfig'
357
+
358
+ let readySomething = async function (self) {
359
+ //加载抄表册
360
+ self.initmeterbook();
361
+ self.initSlice(self.$login.f.orgid)
362
+
363
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
364
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
365
+ await self.$MagLoadParams.loadParam()
366
+ self.initParams()
367
+ self.getaddress()
368
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
369
+ }
370
+ export default {
371
+ title: '用气查询',
372
+ name: 'AddMaterial',
373
+ data () {
374
+ return {
375
+ other: [],
376
+ footer: [],
377
+ model: new PagedList('rs/sql/FMYgasQuery', 30, {
378
+ startDate: 'this.model.startDate',
379
+ endDate: 'this.model.endDate'
380
+ }, {
381
+ f_pregas: 0,
382
+ f_preamount: 0,
383
+ f_collection: 0,
384
+ f_oughtamount: 0,
385
+ f_oughtfee: 0
386
+ }),
387
+ initres: {
388
+ org: [this.$login.f.orgid],
389
+ dep: [],
390
+ user: [],
391
+ },
392
+ gasproperties: [],
393
+ residentialArea: [],
394
+ f_filialeid: this.$login.f.orgid,
395
+ show: false,
396
+ rowdata: {},
397
+ criteriaShow: false,
398
+ orgCondtionStr: '',
399
+ modelval: [],
400
+ meterbrands: [],
401
+ printshow: false,
402
+ all: false,
403
+ fields: {},
404
+ thead: '',
405
+ tfoot: '',
406
+ //表册片区
407
+ bookSlice:[{label: '全部',value: ''}],
408
+ // 下拉框
409
+
410
+ //合计数据
411
+ sumsmodel: {},
412
+ defaultfield: [],
413
+ // 使用类型,壁挂炉
414
+ usetypes: [{label: '全部', value: ''},{label: '是', value: `= '壁挂炉'`},{label: '否', value: `!= '壁挂炉'`}],
415
+ userstates: this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : [],
416
+ meterbooks: [{label: '全部',value: ''}], //抄表册
417
+ tempfalg :false,
418
+ lastorgstr:'',
419
+ allorgid:[],
420
+ }
421
+ },
422
+ ready () {
423
+ readySomething(this)
424
+ },
425
+ methods: {
426
+ initParams(){
427
+ //初始化气表品牌
428
+ let brandArr = []
429
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
430
+ let temp = {}
431
+ temp.label = item.label
432
+ temp.value = item.value.f_meter_brand
433
+ brandArr.push(temp)
434
+ })
435
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
436
+ },
437
+ //初始化片区
438
+ async initSlice (val) {
439
+ if (val) {
440
+ let getAllArea = await this.$resetpost('/rs/search', {
441
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
442
+ userid: this.$login.f.id
443
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
444
+ let arr = getAllArea.data.filter((res) => {
445
+ return res.parentid == val
446
+ })
447
+ this.bookSlice = []
448
+ arr.forEach((res) => {
449
+ this.bookSlice.push({label: res.name, value: res.name})
450
+ })
451
+ }
452
+ },
453
+ //表册片区和抄表册关联
454
+ async inputtorchange(){
455
+ /*let val1=this.$refs.paged.$refs.cri.model.f_meter_book*/
456
+ this.$set('$refs.paged.$refs.cri.model.f_meter_book',[]);
457
+ let val2=this.$refs.paged.$refs.cri.model.f_book_slice_area
458
+ if((val2.length>0)){
459
+ let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
460
+ if(val2[0]) {
461
+ condition = condition + ` and f_book_slice_area = '${val2}' `
462
+ }
463
+ let param={
464
+ items:'*',
465
+ tablename:'t_meter_book',
466
+ condition:condition,
467
+ orderitem:'id'
468
+ }
469
+ let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
470
+ if (getMeterBooks.data) {
471
+ if(getMeterBooks.data.length >0){
472
+ let rs = [];
473
+ getMeterBooks.data.forEach((item)=>{
474
+ let temp = {
475
+ label:item.f_book_name,
476
+ value:item.id
477
+ };
478
+ rs.push(temp);
479
+
480
+ })
481
+ this.meterbooks = [{label: '全部',value: ''}, ...rs];
482
+ }else{
483
+
484
+ this.meterbooks = [{label: '全部',value: ''}];
485
+ }
486
+ }
487
+ }else{
488
+ this.meterbooks = [{label: '全部',value: ''}];
489
+ this.initmeterbook();
490
+ }
491
+ },
492
+ async getaddress(){
493
+ let HttpReset = new HttpResetClass()
494
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
495
+ data: {
496
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
497
+ }
498
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
499
+ console.log('小区',data)
500
+ let house = [{label: '全部', value: ''}]
501
+ for (let row of data.data){
502
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
503
+ }
504
+ this.residentialArea = house
505
+ },
506
+ async initmeterbook(orgstr){
507
+ if(orgstr == null ){
508
+ orgstr = this.f_filialeid;
509
+ }
510
+ //获取新的抄表册,先去清理所有的抄表册
511
+ this.$GetSaleParam.meterbooks = [];
512
+ //开始加载新的抄表册
513
+ await this.$LoadParams.loadMeterBook(orgstr)
514
+ this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
515
+ },
516
+ getotherfooter () {
517
+ this.other = [];
518
+ this.footer = [];
519
+ // let exportdata = this.getCondition;
520
+ let otherInData = [];
521
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
522
+ let footerData = [], exportfield = this.getfield;
523
+ footerData.push("合计");
524
+ let self = this;
525
+ for (var field in self.sumsmodel) {
526
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
527
+ }
528
+ this.footer.push(footerData);
529
+ this.other.push(otherInData);
530
+ },
531
+ userTypeChange () {
532
+ this.gasproperties = []
533
+ if (this.$refs.paged.$refs.cri.model !== null) {
534
+ this.$refs.paged.$refs.cri.model.f_gasproperties = ''
535
+
536
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
537
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
538
+ // this.gasproperties.push({label: '全部', value: ''})
539
+ } else {
540
+ this.gasproperties = [{label: '全部', value: ''}]
541
+ }
542
+ },
543
+ search () {
544
+ this.$refs.paged.$refs.cri.search()
545
+ },
546
+ cancel () {
547
+ this.show = false
548
+ },
549
+ selfSearch (args) {
550
+ args.condition = `${args.condition} ` + this.orgCondtionStr
551
+ this.model.search(args.condition, args.model)
552
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
553
+ },
554
+ clear () {
555
+ //清空部门和人员
556
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
557
+ //部门和人员变为全选
558
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
559
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
560
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
561
+ this.$refs.paged.$refs.cri.model[key] = []
562
+ })
563
+ },
564
+ show () {
565
+ this.criteriaShow = true
566
+ },
567
+ hidden () {
568
+ this.criteriaShow = !this.criteriaShow
569
+ },
570
+ showmsg (obj) {
571
+ this.rowdata = obj
572
+ this.show = true
573
+ },
574
+ async getRes(condition,obj) {
575
+ this.orgCondtionStr = condition
576
+
577
+ },
578
+ stamp () {
579
+ this.all = false
580
+ //默认选择要打印的列
581
+ this.modelval = defaultPrint.config
582
+ this.fields = this.getfield
583
+ console.log('所有打印字段', this.fields)
584
+ this.printshow = true
585
+ this.put()
586
+ },
587
+ put () {
588
+ // 对Modelval进行排序
589
+ this.sortModelval()
590
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
591
+ for (let key of this.modelval) {
592
+ this.thead += '<th>' + this.fields[key] + '</th>'
593
+ }
594
+ this.thead += '</tr>'
595
+ },
596
+ print () {
597
+ this.$refs.print.PrintAsFile()
598
+ this.printshow = false
599
+ },
600
+ dealmsg (val) {
601
+ this.rowdata = val
602
+ this.show = true
603
+ val.model = this.model.model
604
+ this.$dispatch('deal-msg', val)
605
+ },
606
+ close () {
607
+ this.printshow = false
608
+ this.all = false
609
+ },
610
+ // 对选择的列进行排序
611
+ sortModelval () {
612
+ let sortModel = []
613
+ Object.keys(this.fields).forEach((key) => {
614
+ if (this.modelval.includes(key)) {
615
+ sortModel.push(key)
616
+ }
617
+ })
618
+ this.modelval = sortModel
619
+ console.log('选择的打印的字段', this.modelval)
620
+ }
621
+
622
+ },
623
+ computed: {
624
+ getCondition () {
625
+ return {
626
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
627
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
628
+ endDate: this.$refs.paged.$refs.cri.model.endDate
629
+ }
630
+ },
631
+ getfield () {
632
+ return exportConfig.fmygasConfig
633
+ },
634
+ usertypes () {
635
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
636
+ },
637
+ credentials () {
638
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('证件类型')]
639
+ },
640
+ metertype () {
641
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
642
+ }
643
+ },
644
+ events: {},
645
+ watch: {
646
+ 'all' (val) {
647
+ if (val) {
648
+ this.modelval = this.bodyData
649
+ } else {
650
+ this.modelval = defaultPrint.config
651
+ this.put()
652
+ }
653
+ },
654
+ 'modelval.length' () {
655
+ this.put()
656
+ },
657
+ sumsmodel: {
658
+ handler: function (val) {
659
+ this.getotherfooter();
660
+ },
661
+ deep: true
662
+ },
663
+ async 'orgCondtionStr'(val) {
664
+ this.$refs.paged.$refs.cri.model.f_book_slice_area=[]
665
+ this.$refs.paged.$refs.cri.model.f_meter_book = []
666
+ this.meterbooks = [{label: '全部',value: ''}];
667
+ if(this.lastorgstr != val){
668
+ this.tempfalg = true;
669
+ this.lastorgstr = val;
670
+ }
671
+ if(this.tempfalg && val != null && val!='' && val.indexOf("(")>-1){
672
+ this.tempfalg = false;
673
+ let a = val.substring(val.indexOf("(")+2)
674
+ await this.initmeterbook(a.substring(0,a.indexOf(")")-1));
675
+ }
676
+ },
677
+ }
678
+ }
679
+ </script>
680
+ <style>
681
+ .datapanel {
682
+ color: #333;
683
+ background-color: white;
684
+ padding: 10px 20px;
685
+ border-radius: 15px;
686
+ }
687
+ </style>