manage-client 3.2.18 → 3.2.19

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