manage-client 3.2.22 → 3.2.23

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 (114) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +6 -8
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/components/BasisEcharts/BarChart.vue +247 -247
  16. package/src/components/SellReport/AmountGas.vue +257 -257
  17. package/src/components/SellReport/BonSummary.vue +178 -178
  18. package/src/components/SellReport/BusinessClassify.vue +268 -317
  19. package/src/components/SellReport/BusinessMoneyReport.vue +268 -268
  20. package/src/components/SellReport/BusinessReport.vue +256 -256
  21. package/src/components/SellReport/ChSellReport.vue +251 -251
  22. package/src/components/SellReport/ChargeBill.vue +244 -244
  23. package/src/components/SellReport/ChargeDayTable.vue +258 -258
  24. package/src/components/SellReport/ChargeMonthTable.vue +257 -257
  25. package/src/components/SellReport/ChargeYearTable.vue +252 -252
  26. package/src/components/SellReport/DepartmentPrick.vue +243 -288
  27. package/src/components/SellReport/DeptHomePage.vue +299 -299
  28. package/src/components/SellReport/FinanceSellType.vue +254 -254
  29. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  30. package/src/components/SellReport/GasMeterBrand.vue +228 -228
  31. package/src/components/SellReport/GasMoneyPublicReport.vue +263 -0
  32. package/src/components/SellReport/GasMoneyReport.vue +252 -254
  33. package/src/components/SellReport/GasPriceGroup.vue +228 -228
  34. package/src/components/SellReport/GasSummary.vue +257 -257
  35. package/src/components/SellReport/Gasc.vue +257 -257
  36. package/src/components/SellReport/GetUserNum.vue +240 -240
  37. package/src/components/SellReport/HandplanBili.vue +241 -241
  38. package/src/components/SellReport/HandplanUserCount.vue +227 -227
  39. package/src/components/SellReport/ManageBusSummary.vue +219 -219
  40. package/src/components/SellReport/ManageGasPrice.vue +176 -176
  41. package/src/components/SellReport/ManageGasSumChange.vue +265 -265
  42. package/src/components/SellReport/ManageGasSumChangeTwo.vue +271 -271
  43. package/src/components/SellReport/ManageGasSumOtherCharge.vue +244 -244
  44. package/src/components/SellReport/MarketMonth.vue +251 -297
  45. package/src/components/SellReport/MeterPrice.vue +244 -244
  46. package/src/components/SellReport/MeterReader.vue +231 -231
  47. package/src/components/SellReport/NonResidentGas.vue +203 -203
  48. package/src/components/SellReport/OperatorCheckoutTwo.vue +263 -263
  49. package/src/components/SellReport/OperatorSellReport.vue +268 -268
  50. package/src/components/SellReport/OtherChargePublicReport.vue +262 -0
  51. package/src/components/SellReport/OutletTable.vue +258 -258
  52. package/src/components/SellReport/PaymentDistribute.vue +228 -228
  53. package/src/components/SellReport/PaymentMethod.vue +274 -274
  54. package/src/components/SellReport/QTXManageBusSummary.vue +236 -236
  55. package/src/components/SellReport/QibiaoShouqi.vue +242 -242
  56. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +501 -501
  57. package/src/components/SellReport/SaleMonthReport.vue +153 -153
  58. package/src/components/SellReport/SellDepReport.vue +264 -266
  59. package/src/components/SellReport/SellingTable.vue +220 -220
  60. package/src/components/SellReport/UserClassify.vue +222 -271
  61. package/src/components/SellReport/UserGasFillCard.vue +441 -441
  62. package/src/components/SellReport/UserSellingGas.vue +228 -228
  63. package/src/components/SellReport/WeiNanYuShou.vue +246 -246
  64. package/src/components/SellReport/YuShouTable.vue +298 -298
  65. package/src/components/SellReport/chargeSchedule.vue +410 -410
  66. package/src/components/SellReport/pengan/ManageBusPeng.vue +280 -280
  67. package/src/components/SellReport/userholds.vue +257 -257
  68. package/src/components/TelReport/ZhiHuanservice.vue +162 -162
  69. package/src/components/daping/GMap.vue +636 -636
  70. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +504 -504
  71. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +371 -371
  72. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +404 -404
  73. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  74. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  75. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  76. package/src/components/sale/businessquery/ProceedsOper.vue +417 -417
  77. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  78. package/src/components/statistical/StatisticalAnalysis.vue +252 -252
  79. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  80. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  81. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  82. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  83. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +208 -208
  84. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  85. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +284 -284
  86. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  87. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  88. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  89. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  90. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  91. package/src/components/webmeter/report/ReportList.vue +434 -434
  92. package/src/filiale/WEINAN/BankManager.vue +139 -0
  93. package/src/filiale/WEINAN/EchartsBox.vue +110 -110
  94. package/src/filiale/WEINAN/ReportDataQuery.vue +325 -325
  95. package/src/filiale/WEINAN/SiteManager.vue +191 -191
  96. package/src/filiale/WEINAN/UserGasAll.vue +577 -577
  97. package/src/filiale/WEINAN/UserGasEcharts.vue +281 -281
  98. package/src/filiale/WEINAN/UserGasList.vue +438 -438
  99. package/src/filiale/WEINAN/config/exportConfig.js +833 -833
  100. package/src/filiale/WEINAN/reportManage.js +1 -0
  101. package/src/filiale/WEINAN/sale.js +36 -36
  102. package/src/filiale/alashan/reportManage.js +10 -10
  103. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  104. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  105. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  106. package/src/filiale/meihekou/YingShouMingXi.vue +538 -538
  107. package/src/filiale/meihekou/config/exportConfig.js +831 -831
  108. package/src/filiale/meihekou/sale.js +29 -29
  109. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  110. package/src/filiale/rongchuang/reportManage.js +11 -11
  111. package/src/filiale/tongchuan/ManageBusSummary.vue +240 -240
  112. package/src/filiale/tongchuan/reportManage.js +5 -5
  113. package/src/reportManage.js +498 -490
  114. 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>