manage-client 3.2.16 → 3.2.20

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 (88) hide show
  1. package/build/dev-server.js +8 -24
  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/GasBaozhuangFee.vue +237 -237
  6. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  7. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  8. package/src/components/SellReport/NonResidentGas.vue +203 -203
  9. package/src/components/SellReport/OutletTable.vue +258 -258
  10. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  11. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  12. package/src/components/SellReport/SellingTable.vue +220 -220
  13. package/src/components/SellReport/UserSellingGas.vue +177 -177
  14. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  15. package/src/components/daping/GMap.vue +636 -636
  16. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  17. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  18. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  19. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  20. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  21. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  22. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  23. package/src/components/sale/businessquery/SalesGasClassification.vue +168 -168
  24. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  25. package/src/components/sale/businessquery/iotStateSearch/iotStateQuery.vue +308 -308
  26. package/src/components/sale/report/aode/YearByUserType.vue +272 -272
  27. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  28. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  29. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  30. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  31. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  32. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  33. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  34. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  35. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  36. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  37. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  38. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  39. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  40. package/src/components/webmeter/report/ReportList.vue +36 -22
  41. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  42. package/src/filiale/WEINAN/OtherChargeQuery.vue +521 -521
  43. package/src/filiale/WEINAN/ReportDataQuery.vue +276 -249
  44. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  45. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  46. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  47. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  48. package/src/filiale/WEINAN/config/exportConfig.js +99 -83
  49. package/src/filiale/WEINAN/config/tableConfig.js +20 -20
  50. package/src/filiale/WEINAN/reportManage.js +12 -12
  51. package/src/filiale/WEINAN/sale.js +36 -36
  52. package/src/filiale/alashan/reportManage.js +10 -10
  53. package/src/filiale/jingwei/RecordInfoQuery.vue +1142 -1142
  54. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  55. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  56. package/src/filiale/meihekou/CardHandplanQuery.vue +612 -612
  57. package/src/filiale/meihekou/RecordInfoQuery.vue +1158 -1158
  58. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  59. package/src/filiale/meihekou/YingShouMingXi.vue +538 -0
  60. package/src/filiale/meihekou/config/exportConfig.js +27 -0
  61. package/src/filiale/meihekou/sale.js +29 -26
  62. package/src/filiale/pingxiang/sale.js +9 -9
  63. package/src/filiale/qingtongxia/sale.js +13 -13
  64. package/src/filiale/rongcheng/UserQuery.vue +827 -827
  65. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  66. package/src/filiale/rongchuang/reportManage.js +11 -11
  67. package/src/filiale/shaoguan/HandplanQuery.vue +1314 -1314
  68. package/src/filiale/shaoguan/RecordInfoQuery.vue +80 -80
  69. package/src/filiale/shaoguan/TransferQuery.vue +403 -403
  70. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  71. package/src/filiale/shaoguan/errorHandplanQuery.vue +366 -366
  72. package/src/filiale/shaoguan/sale/businessquery/ExemptQuery.vue +314 -314
  73. package/src/filiale/shaoguan/sale/businessquery/FMYGasQuery.vue +687 -687
  74. package/src/filiale/shaoguan/sale/businessquery/PaymentChangeQuery.vue +338 -338
  75. package/src/filiale/shaoguan/sale/businessquery/ReconcileQuery.vue +426 -426
  76. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -302
  77. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  78. package/src/filiale/tongchuan/reportManage.js +5 -6
  79. package/src/main.js +4 -4
  80. package/static/wuhai.json +1610 -1610
  81. package/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
  82. package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  83. package/.gradle/5.4.1/gc.properties +0 -0
  84. package/src/.idea/misc.xml +0 -9
  85. package/src/.idea/modules.xml +0 -8
  86. package/src/.idea/src.iml +0 -9
  87. package/src/.idea/vcs.xml +0 -6
  88. package/src/.idea/workspace.xml +0 -93
@@ -1,525 +1,525 @@
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
- <div class="col-sm-2 form-group">
10
- <label for="startDate" class="font_normal_body">开始日期</label>
11
- <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
- v-model="model.startDate"
13
- :value.sync="model.startDate"
14
- :format="'yyyy-MM-dd HH:mm:ss'"
15
- :show-reset-button="true"
16
- >
17
- </datepicker>
18
- </div>
19
- <div class="col-sm-2 form-group">
20
- <label for="endDate" class="font_normal_body">结束日期</label>
21
- <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
- v-model="model.endDate"
23
- :value.sync="model.endDate"
24
- :format="'yyyy-MM-dd HH:mm:ss'"
25
- :show-reset-button="true"
26
- >
27
- </datepicker>
28
- </div>
29
- <div class="col-sm-2 form-group">
30
- <label class="font_normal_body">客户编号</label>
31
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
- condition="u.f_userinfo_code = '{}' " placeholder="客户编号">
33
- </div>
34
- <div class="col-sm-2 form-group">
35
- <label class="font_normal_body">客户名称</label>
36
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
- condition="u.f_user_name like '%{}%'" placeholder="客户名称">
38
- </div>
39
-
40
- <div class="span" style="float:right;">
41
- <button class="button_search button_spacing" @click="search()">查询</button>
42
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
- <export-excel :data="$parent.$parent.getCondition"
44
- :field="$parent.$parent.getfield"
45
- :footer="$parent.$parent.footer"
46
- :header="$parent.$parent.other"
47
- sqlurl="rs/logic/exportfile"
48
- sql-name="yingShouMingXi"
49
- template-name='月用气导出'
50
- :choose-col="true"></export-excel>
51
-
52
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
- :defaultfield="$parent.$parent.defaultfield"
54
- titletable="应收明细"
55
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
- <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
57
- </div>
58
- </div>
59
- <div class="row" v-show="$parent.$parent.criteriaShow">
60
-
61
- <div class="col-sm-2 form-group">
62
- <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
63
- <v-select :value.sync="model.f_user_type"
64
- @change="$parent.$parent.userTypeChange()"
65
- :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
66
- condition="f_user_type = '{}'"
67
- close-on-select></v-select>
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">用气性质</label>
71
- <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
72
- :options='$parent.$parent.gasproperties' placeholder='请选择'
73
- condition="f_gasproperties = '{}'"
74
- close-on-select></v-select>
75
- </div>
76
- <res-select-group
77
- :initres="$parent.$parent.initres"
78
- :show-component="['company','department','operator']"
79
- @re-res="$parent.$parent.getRes"
80
- v-ref:sel></res-select-group>
81
- <div class="col-sm-2 form-group">
82
- <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
83
- <v-select :value.sync="model.f_meter_style"
84
- :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
85
- condition="f_meter_classify = '{}'"
86
- close-on-select></v-select>
87
- </div>
88
- <div class="col-sm-2 form-group">
89
- <label class="font_normal_body">气表品牌</label>
90
- <v-select :value.sync="model.f_meter_brand" multiple
91
- v-model="model.f_meter_brand"
92
- :options='$parent.$parent.meterbrands' placeholder='请选择'
93
- condition="f_meter_brand in {}"
94
- close-on-select></v-select>
95
- </div>
96
- <div class="col-sm-2 form-group">
97
- <label class="font_normal_body">抄&ensp;表&ensp;员</label>
98
- <v-select :value.sync="model.f_inputtor"
99
- v-model="model.f_inputtor"
100
- :options='$parent.$parent.inputtores' placeholder='请选择'
101
- multiple = "true"
102
- condition="f_inputtor in {}"
103
- close-on-select></v-select>
104
- </div>
105
- </div>
106
- </div>
107
- </criteria>
108
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
109
- <template partial='head'>
110
- <tr>
111
- <th><nobr>客户编号</nobr></th>
112
- <th><nobr>客户名称</nobr></th>
113
- <th><nobr>地址</nobr></th>
114
- <th><nobr>客户类型</nobr></th>
115
- <th><nobr>用气性质</nobr></th>
116
- <th><nobr>气表类型</nobr></th>
117
- <th><nobr>操作员</nobr></th>
118
- <th><nobr>抄表员</nobr></th>
119
- <th><nobr>录入时间</nobr></th>
120
- <th><nobr>应收气量</nobr></th>
121
- <th><nobr>应收金额</nobr></th>
122
- <th><nobr>红冲气量</nobr></th>
123
- <th><nobr>红冲金额</nobr></th>
124
- <th><nobr>应收气量小计</nobr></th>
125
- <th><nobr>应收金额小计</nobr></th>
126
- <th><nobr>实收气量</nobr></th>
127
- <th><nobr>实收金额</nobr></th>
128
- <th><nobr>欠费气量</nobr></th>
129
- <th><nobr>欠费金额</nobr></th>
130
- <th><nobr>累计欠费气量</nobr></th>
131
- <th><nobr>累计欠费金额</nobr></th>
132
- <th><nobr>清欠气量</nobr></th>
133
- <th><nobr>清欠金额</nobr></th>
134
- <th><nobr>实抄气量</nobr></th>
135
- <th><nobr>实抄金额</nobr></th>
136
- </tr>
137
- </template>
138
- <template partial='body'>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_userinfo_code}}</nobr>
141
- </td>
142
- <td style="text-align: center;">
143
- <nobr>{{row.f_user_name}}</nobr>
144
- </td>
145
- <td style="text-align: center;">
146
- <nobr>{{row.f_address}}</nobr>
147
- </td>
148
- <td style="text-align: center;">
149
- <nobr>{{row.f_user_type}}</nobr>
150
- </td>
151
- <td style="text-align: center;">
152
- <nobr>{{row.f_gasproperties}}</nobr>
153
- </td>
154
- <td style="text-align: center;">
155
- <nobr>{{row.f_meter_classify}}</nobr>
156
- </td>
157
- <td style="text-align: center;">
158
- <nobr>{{row.f_operator}}</nobr>
159
- </td>
160
- <td style="text-align: center;">
161
- <nobr>{{row.f_inputtor}}</nobr>
162
- </td>
163
- <td style="text-align: center;">
164
- <nobr>{{row.f_input_date}}</nobr>
165
- </td>
166
- <td style="text-align: center;">
167
- <nobr>{{row.f_ysgas}}</nobr>
168
- </td>
169
- <td style="text-align: center;">
170
- <nobr>{{row.f_ysfee}}</nobr>
171
- </td>
172
- <td style="text-align: center;">
173
- <nobr>{{row.f_hcgas}}</nobr>
174
- </td>
175
- <td style="text-align: center;">
176
- <nobr>{{row.f_hcfee}}</nobr>
177
- </td>
178
- <td style="text-align: center;">
179
- <nobr>{{row.f_ysgassum}}</nobr>
180
- </td>
181
- <td style="text-align: center;">
182
- <nobr>{{row.f_ysfeesum}}</nobr>
183
- </td>
184
- <td style="text-align: center;">
185
- <nobr>{{row.f_ssgas}}</nobr>
186
- </td>
187
- <td style="text-align: center;">
188
- <nobr>{{row.f_ssfee}}</nobr>
189
- </td>
190
- <td style="text-align: center;">
191
- <nobr>{{row.f_monthqgas}}</nobr>
192
- </td>
193
- <td style="text-align: center;">
194
- <nobr>{{row.f_monthqfee}}</nobr>
195
- </td>
196
- <td style="text-align: center;">
197
- <nobr>{{row.f_sumqgas}}</nobr>
198
- </td>
199
- <td style="text-align: center;">
200
- <nobr>{{row.f_sumqfee}}</nobr>
201
- </td>
202
- <td style="text-align: center;">
203
- <nobr>{{row.f_qqgas}}</nobr>
204
- </td>
205
- <td style="text-align: center;">
206
- <nobr>{{row.f_qqfee}}</nobr>
207
- </td>
208
- <td style="text-align: center;">
209
- <nobr>{{row.f_scgas}}</nobr>
210
- </td>
211
- <td style="text-align: center;">
212
- <nobr>{{row.f_scfee}}</nobr>
213
- </td>
214
- </template>
215
- <template partial='foot'></template>
216
- </data-grid>
217
- </criteria-paged>
218
- <table class="table-hover">
219
- <tr style="position: relative" class="table-bordered">
220
- <td
221
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
222
- 汇总信息
223
- </td>
224
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
225
- 应收气量合计:&emsp;{{sumsmodel.f_ysgas}}
226
- </td>
227
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
228
- 应收金额合计:&emsp;{{sumsmodel.f_ysfee}}
229
- </td>
230
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
231
- 红冲气量合计:&emsp;{{sumsmodel.f_hcgas}}
232
- </td>
233
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
234
- 红冲金额合计:&emsp;{{sumsmodel.f_hcfee}}
235
- </td>
236
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
237
- 实收气量合计:&emsp;{{sumsmodel.f_ssgas}}
238
- </td>
239
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
240
- 实收金额合计:&emsp;{{sumsmodel.f_ssfee}}
241
- </td>
242
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
243
- 欠费气量合计:&emsp;{{sumsmodel.f_monthqgas}}
244
- </td>
245
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
246
- 欠费金额合计:&emsp;{{sumsmodel.f_monthqfee}}
247
- </td>
248
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
249
- 累计欠费气量合计:&emsp;{{sumsmodel.f_sumqgas}}
250
- </td>
251
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
252
- 累计欠费金额合计:&emsp;{{sumsmodel.f_sumqfee}}
253
- </td>
254
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
255
- 清欠气量合计:&emsp;{{sumsmodel.f_qqgas}}
256
- </td>
257
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
258
- 清欠金额合计:&emsp;{{sumsmodel.f_qqfee}}
259
- </td>
260
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
261
- 实抄气量合计:&emsp;{{sumsmodel.f_scgas}}
262
- </td>
263
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
264
- 实抄金额合计:&emsp;{{sumsmodel.f_scfee}}
265
- </td>
266
- </tr>
267
- </table>
268
- </div>
269
- <div v-if="show">
270
- <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
271
- </div>
272
- </div>
273
- </div>
274
- </template>
275
- <script>
276
- import { PagedList } from 'vue-client'
277
- import defaultPrint from '../config/DefaultPrint'
278
- import exportConfig from '../config/exportConfig.js'
279
- let readySomething = async function(self) {
280
- self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
281
- self.$MagGetSaleParam.initinputtor();
282
- console.log('msmms', 'sssssssssssss')
283
- self.getinputtores();
284
-
285
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
286
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
287
- await self.$MagLoadParams.loadParam()
288
- self.initParams()
289
- self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
290
- self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
291
- }
292
- export default {
293
- title: '应收实收明细',
294
- name: 'YingShouMingXi',
295
- data () {
296
- return {
297
- model: new PagedList('rs/sql/yingShouMingXi', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
298
- f_ysgas: 0,
299
- f_ysfee: 0,
300
- f_hcgas: 0,
301
- f_hcfee: 0,
302
- f_ssgas: 0,
303
- f_ssfee: 0,
304
- f_monthqgas: 0,
305
- f_monthqfee: 0,
306
- f_sumqgas: 0,
307
- f_sumqfee: 0,
308
- f_qqgas: 0,
309
- f_qqfee: 0,
310
- f_scgas: 0,
311
- f_scfee: 0
312
- }),
313
- initres: {
314
- org:[this.$login.f.orgid],
315
- dep:[],
316
- user:[],
317
- },
318
- other: [],
319
- footer: [],
320
- meterbrands: [],
321
- gasproperties:[],
322
- inputtores:[{label: '全部',value: ''}], //抄表员
323
- show:false,
324
- rowdata:{},
325
- criteriaShow: false,
326
- orgCondtionStr: '',
327
- modelval: [],
328
- printshow: false,
329
- all: false,
330
- fields: {},
331
- thead: '',
332
- tfoot: '',
333
- config: {
334
- defaultPrint: ['f_oughtfee', 'avg_oughtamount']
335
- },
336
- smallareas:[{label: '全部',value: ''}], //区域
337
- //合计数据
338
- sumsmodel: {},
339
- defaultfield: [],
340
- f_filialeid: this.$login.f.f_orgid,
341
- f_orgid: this.$login.f.orgid,
342
- f_depid: [],
343
- f_operatorid: []
344
- }
345
- },
346
- ready () {
347
- readySomething(this)
348
- },
349
- methods: {
350
- async initParams() {
351
- // 初始化气表品牌
352
- let brandArr = []
353
- await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
354
- let temp = {}
355
- temp.label = item.label
356
- temp.value = item.value.f_meter_brand
357
- brandArr.push(temp)
358
- })
359
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
360
- },
361
- getotherfooter() {
362
- // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
363
- // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
364
- this.other = [];
365
- this.footer = [];
366
- // let exportdata = this.getCondition;
367
- let otherInData = [];
368
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
369
- let footerData = [], exportfield = this.getfield;
370
- footerData.push("合计");
371
- let self = this;
372
- for (var field in self.sumsmodel) {
373
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
374
- }
375
- this.footer.push(footerData);
376
- this.other.push(otherInData);
377
- },
378
- async getinputtores () {
379
- // 获取抄表员
380
- let rs = []
381
- if (this.$login.f.f_gasman.length > 0) {
382
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
383
- let temp = {
384
- label: this.$login.f.f_gasman[i].name,
385
- value: this.$login.f.f_gasman[i].name
386
- }
387
- rs.push(temp)
388
- }
389
- }
390
- this.inputtores = [{label: '全部', value: ''}, ...rs]
391
- },
392
- userTypeChange () {
393
- this.gasproperties=[]
394
- if(this.$refs.paged.$refs.cri.model !==null) {
395
- this.$refs.paged.$refs.cri.model.f_gasproperties=''
396
-
397
- console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
398
- this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
399
- }
400
- else{
401
- this.gasproperties =[{label: '全部', value: ''}]
402
- }
403
- },
404
- search(){
405
- this.$refs.paged.$refs.cri.search()
406
- },
407
- cancel() {
408
- this.show = false
409
- },
410
- selfSearch(args) {
411
- args.condition = `${args.condition} `
412
- this.model.search(args.condition, args.model,'1=1 '+this.orgCondtionStr)
413
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
414
- },
415
- clear() {
416
- //清空部门和人员
417
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
418
- //部门和人员变为全选
419
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
420
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
421
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
422
- this.$refs.paged.$refs.cri.model[key] = []
423
- })
424
- },
425
- show() {
426
- this.criteriaShow = true
427
- },
428
- hidden() {
429
- this.criteriaShow = !this.criteriaShow
430
- },
431
- showmsg(obj){
432
- this.rowdata=obj
433
- this.show=true
434
- },
435
- getRes(condition,obj) {
436
- this.orgCondtionStr = condition
437
- this.orgname = obj.orgnames[0]
438
- this.depname = obj.depnames[0]
439
- },
440
- put() {
441
- // 对Modelval进行排序
442
- this.sortModelval()
443
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
444
- for (let key of this.modelval) {
445
- this.thead += '<th>' + this.fields[key] + '</th>'
446
- }
447
- this.thead += '</tr>'
448
- },
449
- print() {
450
- this.$refs.print.PrintAsFile()
451
- this.printshow = false
452
- },
453
- dealmsg(val) {
454
- this.rowdata=val
455
- this.show=true
456
- val.model = this.model.model
457
- this.$dispatch('deal-msg', val)
458
- },
459
- close() {
460
- this.printshow = false
461
- this.all = false
462
- },
463
- // 对选择的列进行排序
464
- sortModelval() {
465
- let sortModel = []
466
- Object.keys(this.fields).forEach((key) => {
467
- if (this.modelval.includes(key)) {
468
- sortModel.push(key)
469
- }
470
- })
471
- this.modelval = sortModel
472
- console.log('选择的打印的字段', this.modelval)
473
- }
474
- },
475
- computed: {
476
- getCondition() {
477
- return {
478
- condition: `${this.model.condition}` ,
479
- condValue: `${this.model.condValue}`,
480
- startDate: this.$refs.paged.$refs.cri.model.startDate,
481
- endDate: this.$refs.paged.$refs.cri.model.endDate
482
- }
483
- },
484
- getfield() {
485
- return exportConfig.ysConfig
486
- },
487
- usertypes() {
488
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
489
- },
490
- metertypes() {
491
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
492
- },
493
- },
494
- events: {
495
-
496
- },
497
- watch: {
498
- 'all'(val) {
499
- if (val) {
500
- this.modelval = this.bodyData
501
- } else {
502
- this.modelval = defaultPrint.config
503
- this.put()
504
- }
505
- },
506
- 'modelval.length'() {
507
- this.put()
508
- },
509
- sumsmodel: {
510
- handler: function (val) {
511
- this.getotherfooter();
512
- },
513
- deep: true
514
- }
515
- }
516
- }
517
- </script>
518
- <style>
519
- .datapanel {
520
- color: #333;
521
- background-color: white;
522
- padding: 10px 20px;
523
- border-radius:15px;
524
- }
525
- </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
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">客户编号</label>
31
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
32
+ condition="u.f_userinfo_code = '{}' " placeholder="客户编号">
33
+ </div>
34
+ <div class="col-sm-2 form-group">
35
+ <label class="font_normal_body">客户名称</label>
36
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
37
+ condition="u.f_user_name like '%{}%'" placeholder="客户名称">
38
+ </div>
39
+
40
+ <div class="span" style="float:right;">
41
+ <button class="button_search button_spacing" @click="search()">查询</button>
42
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
43
+ <export-excel :data="$parent.$parent.getCondition"
44
+ :field="$parent.$parent.getfield"
45
+ :footer="$parent.$parent.footer"
46
+ :header="$parent.$parent.other"
47
+ sqlurl="rs/logic/exportfile"
48
+ sql-name="yingShouMingXi"
49
+ template-name='月用气导出'
50
+ :choose-col="true"></export-excel>
51
+
52
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
53
+ :defaultfield="$parent.$parent.defaultfield"
54
+ titletable="应收明细"
55
+ :sumsmodel="$parent.$parent.sumsmodel"></print-data>
56
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
57
+ </div>
58
+ </div>
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body" title="参数名称:用户类型">客户类型</label>
63
+ <v-select :value.sync="model.f_user_type"
64
+ @change="$parent.$parent.userTypeChange()"
65
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
66
+ condition="f_user_type = '{}'"
67
+ close-on-select></v-select>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">用气性质</label>
71
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
72
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
73
+ condition="f_gasproperties = '{}'"
74
+ close-on-select></v-select>
75
+ </div>
76
+ <res-select-group
77
+ :initres="$parent.$parent.initres"
78
+ :show-component="['company','department','operator']"
79
+ @re-res="$parent.$parent.getRes"
80
+ v-ref:sel></res-select-group>
81
+ <div class="col-sm-2 form-group">
82
+ <label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
83
+ <v-select :value.sync="model.f_meter_style"
84
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
85
+ condition="f_meter_classify = '{}'"
86
+ close-on-select></v-select>
87
+ </div>
88
+ <div class="col-sm-2 form-group">
89
+ <label class="font_normal_body">气表品牌</label>
90
+ <v-select :value.sync="model.f_meter_brand" multiple
91
+ v-model="model.f_meter_brand"
92
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
93
+ condition="f_meter_brand in {}"
94
+ close-on-select></v-select>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">抄&ensp;表&ensp;员</label>
98
+ <v-select :value.sync="model.f_inputtor"
99
+ v-model="model.f_inputtor"
100
+ :options='$parent.$parent.inputtores' placeholder='请选择'
101
+ multiple = "true"
102
+ condition="f_inputtor in {}"
103
+ close-on-select></v-select>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </criteria>
108
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
109
+ <template partial='head'>
110
+ <tr>
111
+ <th><nobr>客户编号</nobr></th>
112
+ <th><nobr>客户名称</nobr></th>
113
+ <th><nobr>地址</nobr></th>
114
+ <th><nobr>客户类型</nobr></th>
115
+ <th><nobr>用气性质</nobr></th>
116
+ <th><nobr>气表类型</nobr></th>
117
+ <th><nobr>操作员</nobr></th>
118
+ <th><nobr>抄表员</nobr></th>
119
+ <th><nobr>录入时间</nobr></th>
120
+ <th><nobr>应收气量</nobr></th>
121
+ <th><nobr>应收金额</nobr></th>
122
+ <th><nobr>红冲气量</nobr></th>
123
+ <th><nobr>红冲金额</nobr></th>
124
+ <th><nobr>应收气量小计</nobr></th>
125
+ <th><nobr>应收金额小计</nobr></th>
126
+ <th><nobr>实收气量</nobr></th>
127
+ <th><nobr>实收金额</nobr></th>
128
+ <th><nobr>欠费气量</nobr></th>
129
+ <th><nobr>欠费金额</nobr></th>
130
+ <th><nobr>累计欠费气量</nobr></th>
131
+ <th><nobr>累计欠费金额</nobr></th>
132
+ <th><nobr>清欠气量</nobr></th>
133
+ <th><nobr>清欠金额</nobr></th>
134
+ <th><nobr>实抄气量</nobr></th>
135
+ <th><nobr>实抄金额</nobr></th>
136
+ </tr>
137
+ </template>
138
+ <template partial='body'>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.f_userinfo_code}}</nobr>
141
+ </td>
142
+ <td style="text-align: center;">
143
+ <nobr>{{row.f_user_name}}</nobr>
144
+ </td>
145
+ <td style="text-align: center;">
146
+ <nobr>{{row.f_address}}</nobr>
147
+ </td>
148
+ <td style="text-align: center;">
149
+ <nobr>{{row.f_user_type}}</nobr>
150
+ </td>
151
+ <td style="text-align: center;">
152
+ <nobr>{{row.f_gasproperties}}</nobr>
153
+ </td>
154
+ <td style="text-align: center;">
155
+ <nobr>{{row.f_meter_classify}}</nobr>
156
+ </td>
157
+ <td style="text-align: center;">
158
+ <nobr>{{row.f_operator}}</nobr>
159
+ </td>
160
+ <td style="text-align: center;">
161
+ <nobr>{{row.f_inputtor}}</nobr>
162
+ </td>
163
+ <td style="text-align: center;">
164
+ <nobr>{{row.f_input_date}}</nobr>
165
+ </td>
166
+ <td style="text-align: center;">
167
+ <nobr>{{row.f_ysgas}}</nobr>
168
+ </td>
169
+ <td style="text-align: center;">
170
+ <nobr>{{row.f_ysfee}}</nobr>
171
+ </td>
172
+ <td style="text-align: center;">
173
+ <nobr>{{row.f_hcgas}}</nobr>
174
+ </td>
175
+ <td style="text-align: center;">
176
+ <nobr>{{row.f_hcfee}}</nobr>
177
+ </td>
178
+ <td style="text-align: center;">
179
+ <nobr>{{row.f_ysgassum}}</nobr>
180
+ </td>
181
+ <td style="text-align: center;">
182
+ <nobr>{{row.f_ysfeesum}}</nobr>
183
+ </td>
184
+ <td style="text-align: center;">
185
+ <nobr>{{row.f_ssgas}}</nobr>
186
+ </td>
187
+ <td style="text-align: center;">
188
+ <nobr>{{row.f_ssfee}}</nobr>
189
+ </td>
190
+ <td style="text-align: center;">
191
+ <nobr>{{row.f_monthqgas}}</nobr>
192
+ </td>
193
+ <td style="text-align: center;">
194
+ <nobr>{{row.f_monthqfee}}</nobr>
195
+ </td>
196
+ <td style="text-align: center;">
197
+ <nobr>{{row.f_sumqgas}}</nobr>
198
+ </td>
199
+ <td style="text-align: center;">
200
+ <nobr>{{row.f_sumqfee}}</nobr>
201
+ </td>
202
+ <td style="text-align: center;">
203
+ <nobr>{{row.f_qqgas}}</nobr>
204
+ </td>
205
+ <td style="text-align: center;">
206
+ <nobr>{{row.f_qqfee}}</nobr>
207
+ </td>
208
+ <td style="text-align: center;">
209
+ <nobr>{{row.f_scgas}}</nobr>
210
+ </td>
211
+ <td style="text-align: center;">
212
+ <nobr>{{row.f_scfee}}</nobr>
213
+ </td>
214
+ </template>
215
+ <template partial='foot'></template>
216
+ </data-grid>
217
+ </criteria-paged>
218
+ <table class="table-hover">
219
+ <tr style="position: relative" class="table-bordered">
220
+ <td
221
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
222
+ 汇总信息
223
+ </td>
224
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
225
+ 应收气量合计:&emsp;{{sumsmodel.f_ysgas}}
226
+ </td>
227
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
228
+ 应收金额合计:&emsp;{{sumsmodel.f_ysfee}}
229
+ </td>
230
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
231
+ 红冲气量合计:&emsp;{{sumsmodel.f_hcgas}}
232
+ </td>
233
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
234
+ 红冲金额合计:&emsp;{{sumsmodel.f_hcfee}}
235
+ </td>
236
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
237
+ 实收气量合计:&emsp;{{sumsmodel.f_ssgas}}
238
+ </td>
239
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
240
+ 实收金额合计:&emsp;{{sumsmodel.f_ssfee}}
241
+ </td>
242
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
243
+ 欠费气量合计:&emsp;{{sumsmodel.f_monthqgas}}
244
+ </td>
245
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
246
+ 欠费金额合计:&emsp;{{sumsmodel.f_monthqfee}}
247
+ </td>
248
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
249
+ 累计欠费气量合计:&emsp;{{sumsmodel.f_sumqgas}}
250
+ </td>
251
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
252
+ 累计欠费金额合计:&emsp;{{sumsmodel.f_sumqfee}}
253
+ </td>
254
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
255
+ 清欠气量合计:&emsp;{{sumsmodel.f_qqgas}}
256
+ </td>
257
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
258
+ 清欠金额合计:&emsp;{{sumsmodel.f_qqfee}}
259
+ </td>
260
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
261
+ 实抄气量合计:&emsp;{{sumsmodel.f_scgas}}
262
+ </td>
263
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
264
+ 实抄金额合计:&emsp;{{sumsmodel.f_scfee}}
265
+ </td>
266
+ </tr>
267
+ </table>
268
+ </div>
269
+ <div v-if="show">
270
+ <user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </template>
275
+ <script>
276
+ import { PagedList } from 'vue-client'
277
+ import defaultPrint from '../config/DefaultPrint'
278
+ import exportConfig from '../config/exportConfig.js'
279
+ let readySomething = async function(self) {
280
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
281
+ self.$MagGetSaleParam.initinputtor();
282
+ console.log('msmms', 'sssssssssssss')
283
+ self.getinputtores();
284
+
285
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
286
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
287
+ await self.$MagLoadParams.loadParam()
288
+ self.initParams()
289
+ self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
290
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
291
+ }
292
+ export default {
293
+ title: '应收实收明细',
294
+ name: 'YingShouMingXi',
295
+ data () {
296
+ return {
297
+ model: new PagedList('rs/sql/yingShouMingXi', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
298
+ f_ysgas: 0,
299
+ f_ysfee: 0,
300
+ f_hcgas: 0,
301
+ f_hcfee: 0,
302
+ f_ssgas: 0,
303
+ f_ssfee: 0,
304
+ f_monthqgas: 0,
305
+ f_monthqfee: 0,
306
+ f_sumqgas: 0,
307
+ f_sumqfee: 0,
308
+ f_qqgas: 0,
309
+ f_qqfee: 0,
310
+ f_scgas: 0,
311
+ f_scfee: 0
312
+ }),
313
+ initres: {
314
+ org:[this.$login.f.orgid],
315
+ dep:[],
316
+ user:[],
317
+ },
318
+ other: [],
319
+ footer: [],
320
+ meterbrands: [],
321
+ gasproperties:[],
322
+ inputtores:[{label: '全部',value: ''}], //抄表员
323
+ show:false,
324
+ rowdata:{},
325
+ criteriaShow: false,
326
+ orgCondtionStr: '',
327
+ modelval: [],
328
+ printshow: false,
329
+ all: false,
330
+ fields: {},
331
+ thead: '',
332
+ tfoot: '',
333
+ config: {
334
+ defaultPrint: ['f_oughtfee', 'avg_oughtamount']
335
+ },
336
+ smallareas:[{label: '全部',value: ''}], //区域
337
+ //合计数据
338
+ sumsmodel: {},
339
+ defaultfield: [],
340
+ f_filialeid: this.$login.f.f_orgid,
341
+ f_orgid: this.$login.f.orgid,
342
+ f_depid: [],
343
+ f_operatorid: []
344
+ }
345
+ },
346
+ ready () {
347
+ readySomething(this)
348
+ },
349
+ methods: {
350
+ async initParams() {
351
+ // 初始化气表品牌
352
+ let brandArr = []
353
+ await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
354
+ let temp = {}
355
+ temp.label = item.label
356
+ temp.value = item.value.f_meter_brand
357
+ brandArr.push(temp)
358
+ })
359
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
360
+ },
361
+ getotherfooter() {
362
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
363
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
364
+ this.other = [];
365
+ this.footer = [];
366
+ // let exportdata = this.getCondition;
367
+ let otherInData = [];
368
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
369
+ let footerData = [], exportfield = this.getfield;
370
+ footerData.push("合计");
371
+ let self = this;
372
+ for (var field in self.sumsmodel) {
373
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
374
+ }
375
+ this.footer.push(footerData);
376
+ this.other.push(otherInData);
377
+ },
378
+ async getinputtores () {
379
+ // 获取抄表员
380
+ let rs = []
381
+ if (this.$login.f.f_gasman.length > 0) {
382
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
383
+ let temp = {
384
+ label: this.$login.f.f_gasman[i].name,
385
+ value: this.$login.f.f_gasman[i].name
386
+ }
387
+ rs.push(temp)
388
+ }
389
+ }
390
+ this.inputtores = [{label: '全部', value: ''}, ...rs]
391
+ },
392
+ userTypeChange () {
393
+ this.gasproperties=[]
394
+ if(this.$refs.paged.$refs.cri.model !==null) {
395
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
396
+
397
+ console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
398
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
399
+ }
400
+ else{
401
+ this.gasproperties =[{label: '全部', value: ''}]
402
+ }
403
+ },
404
+ search(){
405
+ this.$refs.paged.$refs.cri.search()
406
+ },
407
+ cancel() {
408
+ this.show = false
409
+ },
410
+ selfSearch(args) {
411
+ args.condition = `${args.condition} `
412
+ this.model.search(args.condition, args.model,'1=1 '+this.orgCondtionStr)
413
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
414
+ },
415
+ clear() {
416
+ //清空部门和人员
417
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
418
+ //部门和人员变为全选
419
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
420
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
421
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
422
+ this.$refs.paged.$refs.cri.model[key] = []
423
+ })
424
+ },
425
+ show() {
426
+ this.criteriaShow = true
427
+ },
428
+ hidden() {
429
+ this.criteriaShow = !this.criteriaShow
430
+ },
431
+ showmsg(obj){
432
+ this.rowdata=obj
433
+ this.show=true
434
+ },
435
+ getRes(condition,obj) {
436
+ this.orgCondtionStr = condition
437
+ this.orgname = obj.orgnames[0]
438
+ this.depname = obj.depnames[0]
439
+ },
440
+ put() {
441
+ // 对Modelval进行排序
442
+ this.sortModelval()
443
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
444
+ for (let key of this.modelval) {
445
+ this.thead += '<th>' + this.fields[key] + '</th>'
446
+ }
447
+ this.thead += '</tr>'
448
+ },
449
+ print() {
450
+ this.$refs.print.PrintAsFile()
451
+ this.printshow = false
452
+ },
453
+ dealmsg(val) {
454
+ this.rowdata=val
455
+ this.show=true
456
+ val.model = this.model.model
457
+ this.$dispatch('deal-msg', val)
458
+ },
459
+ close() {
460
+ this.printshow = false
461
+ this.all = false
462
+ },
463
+ // 对选择的列进行排序
464
+ sortModelval() {
465
+ let sortModel = []
466
+ Object.keys(this.fields).forEach((key) => {
467
+ if (this.modelval.includes(key)) {
468
+ sortModel.push(key)
469
+ }
470
+ })
471
+ this.modelval = sortModel
472
+ console.log('选择的打印的字段', this.modelval)
473
+ }
474
+ },
475
+ computed: {
476
+ getCondition() {
477
+ return {
478
+ condition: `${this.model.condition}` ,
479
+ condValue: `${this.model.condValue}`,
480
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
481
+ endDate: this.$refs.paged.$refs.cri.model.endDate
482
+ }
483
+ },
484
+ getfield() {
485
+ return exportConfig.ysConfig
486
+ },
487
+ usertypes() {
488
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
489
+ },
490
+ metertypes() {
491
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
492
+ },
493
+ },
494
+ events: {
495
+
496
+ },
497
+ watch: {
498
+ 'all'(val) {
499
+ if (val) {
500
+ this.modelval = this.bodyData
501
+ } else {
502
+ this.modelval = defaultPrint.config
503
+ this.put()
504
+ }
505
+ },
506
+ 'modelval.length'() {
507
+ this.put()
508
+ },
509
+ sumsmodel: {
510
+ handler: function (val) {
511
+ this.getotherfooter();
512
+ },
513
+ deep: true
514
+ }
515
+ }
516
+ }
517
+ </script>
518
+ <style>
519
+ .datapanel {
520
+ color: #333;
521
+ background-color: white;
522
+ padding: 10px 20px;
523
+ border-radius:15px;
524
+ }
525
+ </style>