manage-client 3.2.29 → 3.2.33

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 (83) hide show
  1. package/build/dev-server.js +6 -4
  2. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  3. package/package.json +1 -1
  4. package/src/components/BasisEcharts/BarChart.vue +247 -247
  5. package/src/components/SellReport/BonSummary.vue +178 -178
  6. package/src/components/SellReport/ChargePrick.vue +205 -205
  7. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  8. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  9. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  10. package/src/components/SellReport/NonResidentGas.vue +203 -203
  11. package/src/components/SellReport/OutletTable.vue +258 -258
  12. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  13. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  14. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  15. package/src/components/SellReport/SellingTable.vue +220 -220
  16. package/src/components/SellReport/UserSellingGas.vue +228 -228
  17. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  18. package/src/components/daping/GMap.vue +636 -636
  19. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  20. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  21. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  22. package/src/components/sale/businessquery/BusinesQuery.vue +10 -0
  23. package/src/components/sale/businessquery/ChangeMeterQuery.vue +7 -7
  24. package/src/components/sale/businessquery/ChangeUserQuery.vue +10 -1
  25. package/src/components/sale/businessquery/ChargeQuery.vue +10 -0
  26. package/src/components/sale/businessquery/DisableQuery.vue +10 -0
  27. package/src/components/sale/businessquery/EnableQuery.vue +10 -0
  28. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  29. package/src/components/sale/businessquery/FillCardQuery.vue +6 -1
  30. package/src/components/sale/businessquery/FillGasQuery.vue +6 -1
  31. package/src/components/sale/businessquery/InspectListUser.vue +43 -64
  32. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  33. package/src/components/sale/businessquery/OtherChargeQuery.vue +10 -0
  34. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  35. package/src/components/sale/businessquery/ReverseQuery.vue +10 -0
  36. package/src/components/sale/businessquery/TransferQuery.vue +10 -0
  37. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  38. package/src/components/sale/businessquery/usergas.vue +311 -311
  39. package/src/components/sale/filesquery/ArchivesManage.vue +57 -57
  40. package/src/components/sale/filesquery/DeviceQuery.vue +10 -0
  41. package/src/components/sale/filesquery/FireQuery.vue +477 -477
  42. package/src/components/sale/filesquery/RecordInfoQuery.vue +10 -0
  43. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  44. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  45. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  46. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  47. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  48. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  49. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  50. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  51. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  52. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  53. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  54. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  55. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  56. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  57. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  58. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  59. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  60. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  61. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  62. package/src/filiale/WEINAN/reportManage.js +12 -12
  63. package/src/filiale/WEINAN/sale.js +36 -36
  64. package/src/filiale/alashan/reportManage.js +10 -10
  65. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  66. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  67. package/src/filiale/liaoyuan/ReportList.vue +421 -421
  68. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  69. package/src/filiale/meihekou/CardHandplanQuery.vue +1 -1
  70. package/src/filiale/meihekou/DeviceQuery.vue +545 -0
  71. package/src/filiale/meihekou/RecordInfoQuery.vue +10 -0
  72. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  73. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  74. package/src/filiale/meihekou/config/exportConfig.js +2 -2
  75. package/src/filiale/meihekou/sale.js +3 -1
  76. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  77. package/src/filiale/rongchuang/reportManage.js +11 -11
  78. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  79. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  80. package/src/filiale/tongchuan/reportManage.js +5 -5
  81. package/src/main.js +4 -4
  82. package/src/saleManage.js +529 -529
  83. package/static/wuhai.json +1610 -1610
@@ -1,538 +1,538 @@
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 {HttpResetClass, PagedList} from 'vue-client'
277
- import defaultPrint from './config/DefaultPrint'
278
- import exportConfig from './config/exportConfig'
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',id: 'this.model.id'}, {
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
- args.model.id = this.$login.f.id
413
- new HttpResetClass().load('POST','rs/logic/ysmxLogic',{
414
- condition: args.condition,
415
- condValue: '1=1 '+this.orgCondtionStr,
416
- startDate: args.model.startDate,
417
- endDate: args.model.endDate,
418
- id: args.model.id
419
- }).then(res =>{
420
- this.model.search(args.condition, args.model,'1=1 '+this.orgCondtionStr)
421
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
422
- })
423
- // args.condition = `${args.condition} `
424
- // this.model.search(args.condition, args.model,'1=1 '+this.orgCondtionStr)
425
- // this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
426
- },
427
- clear() {
428
- //清空部门和人员
429
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
430
- //部门和人员变为全选
431
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
432
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
433
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
434
- this.$refs.paged.$refs.cri.model[key] = []
435
- })
436
- },
437
- show() {
438
- this.criteriaShow = true
439
- },
440
- hidden() {
441
- this.criteriaShow = !this.criteriaShow
442
- },
443
- showmsg(obj){
444
- this.rowdata=obj
445
- this.show=true
446
- },
447
- getRes(condition,obj) {
448
- this.orgCondtionStr = condition
449
- this.orgname = obj.orgnames[0]
450
- this.depname = obj.depnames[0]
451
- },
452
- put() {
453
- // 对Modelval进行排序
454
- this.sortModelval()
455
- this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
456
- for (let key of this.modelval) {
457
- this.thead += '<th>' + this.fields[key] + '</th>'
458
- }
459
- this.thead += '</tr>'
460
- },
461
- print() {
462
- this.$refs.print.PrintAsFile()
463
- this.printshow = false
464
- },
465
- dealmsg(val) {
466
- this.rowdata=val
467
- this.show=true
468
- val.model = this.model.model
469
- this.$dispatch('deal-msg', val)
470
- },
471
- close() {
472
- this.printshow = false
473
- this.all = false
474
- },
475
- // 对选择的列进行排序
476
- sortModelval() {
477
- let sortModel = []
478
- Object.keys(this.fields).forEach((key) => {
479
- if (this.modelval.includes(key)) {
480
- sortModel.push(key)
481
- }
482
- })
483
- this.modelval = sortModel
484
- console.log('选择的打印的字段', this.modelval)
485
- }
486
- },
487
- computed: {
488
- getCondition() {
489
- return {
490
- condition: `${this.model.condition}` ,
491
- condValue: `${this.model.condValue}`,
492
- startDate: this.$refs.paged.$refs.cri.model.startDate,
493
- endDate: this.$refs.paged.$refs.cri.model.endDate,
494
- id: this.$refs.paged.$refs.cri.model.id
495
- }
496
- },
497
- getfield() {
498
- return exportConfig.ysConfig
499
- },
500
- usertypes() {
501
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
502
- },
503
- metertypes() {
504
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
505
- },
506
- },
507
- events: {
508
-
509
- },
510
- watch: {
511
- 'all'(val) {
512
- if (val) {
513
- this.modelval = this.bodyData
514
- } else {
515
- this.modelval = defaultPrint.config
516
- this.put()
517
- }
518
- },
519
- 'modelval.length'() {
520
- this.put()
521
- },
522
- sumsmodel: {
523
- handler: function (val) {
524
- this.getotherfooter();
525
- },
526
- deep: true
527
- }
528
- }
529
- }
530
- </script>
531
- <style>
532
- .datapanel {
533
- color: #333;
534
- background-color: white;
535
- padding: 10px 20px;
536
- border-radius:15px;
537
- }
538
- </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 {HttpResetClass, PagedList} from 'vue-client'
277
+ import defaultPrint from './config/DefaultPrint'
278
+ import exportConfig from './config/exportConfig'
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',id: 'this.model.id'}, {
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
+ args.model.id = this.$login.f.id
413
+ new HttpResetClass().load('POST','rs/logic/ysmxLogic',{
414
+ condition: args.condition,
415
+ condValue: '1=1 '+this.orgCondtionStr,
416
+ startDate: args.model.startDate,
417
+ endDate: args.model.endDate,
418
+ id: args.model.id
419
+ }).then(res =>{
420
+ this.model.search(args.condition, args.model,'1=1 '+this.orgCondtionStr)
421
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
422
+ })
423
+ // args.condition = `${args.condition} `
424
+ // this.model.search(args.condition, args.model,'1=1 '+this.orgCondtionStr)
425
+ // this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
426
+ },
427
+ clear() {
428
+ //清空部门和人员
429
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
430
+ //部门和人员变为全选
431
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
432
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
433
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
434
+ this.$refs.paged.$refs.cri.model[key] = []
435
+ })
436
+ },
437
+ show() {
438
+ this.criteriaShow = true
439
+ },
440
+ hidden() {
441
+ this.criteriaShow = !this.criteriaShow
442
+ },
443
+ showmsg(obj){
444
+ this.rowdata=obj
445
+ this.show=true
446
+ },
447
+ getRes(condition,obj) {
448
+ this.orgCondtionStr = condition
449
+ this.orgname = obj.orgnames[0]
450
+ this.depname = obj.depnames[0]
451
+ },
452
+ put() {
453
+ // 对Modelval进行排序
454
+ this.sortModelval()
455
+ this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
456
+ for (let key of this.modelval) {
457
+ this.thead += '<th>' + this.fields[key] + '</th>'
458
+ }
459
+ this.thead += '</tr>'
460
+ },
461
+ print() {
462
+ this.$refs.print.PrintAsFile()
463
+ this.printshow = false
464
+ },
465
+ dealmsg(val) {
466
+ this.rowdata=val
467
+ this.show=true
468
+ val.model = this.model.model
469
+ this.$dispatch('deal-msg', val)
470
+ },
471
+ close() {
472
+ this.printshow = false
473
+ this.all = false
474
+ },
475
+ // 对选择的列进行排序
476
+ sortModelval() {
477
+ let sortModel = []
478
+ Object.keys(this.fields).forEach((key) => {
479
+ if (this.modelval.includes(key)) {
480
+ sortModel.push(key)
481
+ }
482
+ })
483
+ this.modelval = sortModel
484
+ console.log('选择的打印的字段', this.modelval)
485
+ }
486
+ },
487
+ computed: {
488
+ getCondition() {
489
+ return {
490
+ condition: `${this.model.condition}` ,
491
+ condValue: `${this.model.condValue}`,
492
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
493
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
494
+ id: this.$refs.paged.$refs.cri.model.id
495
+ }
496
+ },
497
+ getfield() {
498
+ return exportConfig.ysConfig
499
+ },
500
+ usertypes() {
501
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
502
+ },
503
+ metertypes() {
504
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
505
+ },
506
+ },
507
+ events: {
508
+
509
+ },
510
+ watch: {
511
+ 'all'(val) {
512
+ if (val) {
513
+ this.modelval = this.bodyData
514
+ } else {
515
+ this.modelval = defaultPrint.config
516
+ this.put()
517
+ }
518
+ },
519
+ 'modelval.length'() {
520
+ this.put()
521
+ },
522
+ sumsmodel: {
523
+ handler: function (val) {
524
+ this.getotherfooter();
525
+ },
526
+ deep: true
527
+ }
528
+ }
529
+ }
530
+ </script>
531
+ <style>
532
+ .datapanel {
533
+ color: #333;
534
+ background-color: white;
535
+ padding: 10px 20px;
536
+ border-radius:15px;
537
+ }
538
+ </style>