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,325 +1,325 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div class="basic-main" @keyup.enter="search">
4
- <div class="flex">
5
- <criteria-paged :model="model" v-ref:paged>
6
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
- <div class="row">
9
- <div class="col-sm-2 form-group">
10
- <label class="font_normal_body">客户编号</label>
11
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
13
- </div>
14
- <div class="col-sm-2 form-group">
15
- <label class="font_normal_body">客户名称</label>
16
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
- condition=" f_user_name like '%{}%'" placeholder='客户名称'>
18
- </div>
19
- <!-- <div class="col-sm-2">-->
20
- <!-- <label class="font_normal_body">组织机构</label>-->
21
- <!-- <res-select :initresid="$parent.$parent.org"-->
22
- <!-- style="width:60%"-->
23
- <!-- @res-select="$parent.$parent.getorg"-->
24
- <!-- restype='organization'>-->
25
- <!-- </res-select>-->
26
-
27
- <!-- </div>-->
28
- <div class="col-sm-2">
29
- <label class="font_normal_body">&emsp;公司&emsp;</label>
30
- <right-tree @re-res="$parent.$parent.getorg"
31
- :initresid='$parent.$parent.org'></right-tree>
32
- </div>
33
- <div class="span" style="float:right;">
34
- <button class="button_search button_spacing" @click="search()">查询</button>
35
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
36
- <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
37
- :field="$parent.$parent.getfield" :header="$parent.$parent.other"
38
- sqlurl="rs/logic/exportfile" sql-name="manage_getReportDataQuery" template-name='上报数据导出'
39
- :choose-col="true">
40
- </export-excel>
41
-
42
- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
43
- :defaultfield="$parent.$parent.defaultfield"
44
- titletable="上报数据打印"
45
- ></print-data>
46
- <div style="float: right" class="button_spacing"
47
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
- @click="$parent.$parent.hidden()"></div>
49
- </div>
50
-
51
- </div>
52
-
53
- <div class="row" v-show="$parent.$parent.criteriaShow">
54
- <div class="col-sm-2 form-group">
55
- <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
56
- <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
57
- condition="f_meternumber like '%{}%'" placeholder='表号'>
58
- </div>
59
- <div class="col-sm-2 form-group">
60
- <label class="font_normal_body">气表品牌</label>
61
- <v-select
62
- placeholder='气表品牌'
63
- :value.sync="model.f_meter_brand"
64
- v-model="model.f_meter_brand"
65
- :options='$parent.$parent.meterbrands'
66
- close-on-select
67
- condition="f_meter_brand='{}'">
68
- </v-select>
69
- </div>
70
- <div class="col-sm-2 form-group" >
71
- <label class="font_normal_body">气表类型</label>
72
- <v-select
73
- placeholder='气表类型'
74
- :value.sync="model.f_meter_classify"
75
- v-model="model.f_meter_classify"
76
- :options='$parent.$parent.metertypes'
77
- close-on-select
78
- condition="f_meter_classify='{}'">
79
- </v-select>
80
- </div>
81
- <div class="col-sm-2 form-group">
82
- <label for="startDate" class="font_normal_body">回传时间</label>
83
- <datepicker id="startDate" placeholder="回传时间" style="width:60%"
84
- v-model="model.startDate"
85
- :value.sync="model.startDate"
86
- :format="'yyyy-MM-dd 00:00:00'"
87
- :show-reset-button="true"
88
- condition="f_insert_date >= '{}'">
89
- </datepicker>
90
- </div>
91
- <div class="col-sm-2 form-group">
92
- <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
93
- <datepicker id="endDate" placeholder="回传时间" style="width:60%"
94
- v-model="model.endDate"
95
- :value.sync="model.endDate"
96
- :format="'yyyy-MM-dd 23:59:59'"
97
- :show-reset-button="true"
98
- condition="f_insert_date <= '{}'">
99
- </datepicker>
100
- </div>
101
- </div>
102
-
103
- </div>
104
- </criteria>
105
-
106
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
107
- <template partial='head'>
108
- <tr>
109
- <th v-for="row in $parent.$parent.$parent.headData">
110
- <nobr>{{row}}</nobr>
111
- </th>
112
- </tr>
113
- </template>
114
- <template partial='body'>
115
- <tr v-for="row in $parent.$parent.$parent.model.rows">
116
- <td style="text-align: center;" v-for="item in $parent.$parent.$parent.config.fieldMapping">
117
- <nobr>{{row[item]}}</nobr>
118
- </td>
119
- </tr>
120
- </template>
121
- <template partial='foot'></template>
122
- </data-grid>
123
- </criteria-paged>
124
- <table class="table-hover">
125
- <tr style="position: relative" class="table-bordered">
126
- <td
127
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
128
- 汇总信息
129
- </td>
130
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
131
- 用气量合计:&emsp;{{sumsmodel.f_oughtamount.toFixed(0)}}
132
- </td>
133
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
134
- 用气金额合计:&emsp;{{sumsmodel.f_oughtfee.toFixed(0)}}
135
- </td>
136
- </tr>
137
- </table>
138
- </div>
139
- </div>
140
- </div>
141
- </template>
142
-
143
- <script>
144
- import {HttpResetClass, PagedList} from 'vue-client'
145
- import tableConfig from './config/tableConfig'
146
- import plugins from '../../plugins/GetLoginInfoService'
147
- import plugin from 'system-clients/src/plugins/GetLoginInfoService'
148
- import exportConfig from './config/exportConfig'
149
-
150
- let readySomething = async function (self) {
151
- self.defaultfield = [...self.defaultfield, ...self.defaultConfig.defaultPrint]
152
- await self.$MagLoadParams.loadParam()
153
- self.initParams()
154
- // self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
155
- }
156
- export default {
157
- title: '上报数据查询',
158
- data() {
159
- return {
160
- model: new PagedList('rs/sql/manage_getReportDataQuery', 20, {},{
161
- f_oughtamount: 0,
162
- f_oughtfee: 0
163
- }),
164
- criteriaShow: false,
165
- defaultConfig: {
166
- defaultPrint: []
167
- },
168
- other:[],
169
- footer:[],
170
- config: {
171
- fieldMapping: {
172
- f_userinfo_code: '客户编号',
173
- f_user_name: '客户名称'
174
- }
175
- },
176
- WarningType: [
177
- {label: '全部', value: ''}
178
- ],
179
- Warningstyles: [
180
- {label: '全部', value: ''}
181
- ],
182
- styles:false,
183
- sumsmodel: {},
184
- headData: [],
185
- bodyData: [],
186
- //默认打印列
187
- defaultfield: [],
188
- orgCondtionStr: " and f_filialeid in (" + this.$login.f.orgid+")",
189
- resshow:['company'],
190
- org:[this.$login.f.orgid],
191
- meterbrands:[]
192
- }
193
- },
194
- created () {
195
- this.config.fieldMapping=tableConfig.ReportDataQuery
196
- console.log("========================")
197
- console.log(this.config.fieldMapping)
198
- var item="用户编号"
199
- console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
200
- console.log(this.config.fieldMapping[item])
201
- this.headData=Object.keys(this.config.fieldMapping)
202
- // for(var i=0;i<this.config.fieldMapping;i++){
203
- // this.headData.push(this.config.fieldMapping[i])
204
- // }
205
-
206
- },
207
- ready() {
208
- this.$refs.paged.$refs.cri.search()
209
- readySomething(this).then(() => {
210
- this.$emit('ready')
211
- }).catch((error) => {
212
- this.$emit('error', error)
213
- })
214
- },
215
- methods: {
216
- initParams() {
217
- // 初始化气表品牌
218
- let brandArr = []
219
- this.$MagGetSaleParam.getGasbrand().forEach((item) => {
220
- let temp = {}
221
- temp.label = item.label
222
- temp.value = item.value.f_meter_brand
223
- brandArr.push(temp)
224
- })
225
- this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
226
- //初始化气表价格
227
- this.prices = this.$MagGetSaleParam.getPrices();
228
- },
229
- getotherfooter () {
230
- // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
231
- // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
232
- this.other = [];
233
- this.footer = [];
234
- let exportdata = this.getCondition;
235
- let otherInData = [];
236
- otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
237
- let footerData = [], exportfield = this.getfield;
238
- footerData.push("合计");
239
- let self = this;
240
- for (var field in self.sumsmodel) {
241
- footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
242
- }
243
- this.footer.push(footerData);
244
- this.other.push(otherInData);
245
- },
246
- showMeterStyle() {
247
- this.styles = true
248
- },
249
- search() {
250
- this.$refs.paged.$refs.cri.search()
251
- },
252
- async selfSearch(args) {
253
- args.condition = `${args.condition}` + this.orgCondtionStr
254
- await this.model.search(args.condition, args.model)
255
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
256
- // 查询到数据进行处理
257
- // if (this.model.rows.length > 0) {
258
- // this.bodyData = Object.keys(this.model.rows[0])
259
- // }
260
- },
261
- getorg(obj) {
262
- if (obj.resids.length>0) {
263
- this.orgCondtionStr = " and f_filialeid in " + plugin.convertToIn(obj.resids)
264
- }else
265
- {
266
- this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
267
- }
268
- },
269
- // getorg(obj) {
270
- // // if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
271
- // // this.orgCondtionStr = " and f_filialeid in " + plugins.convertToIn(obj)
272
- // // }else{
273
- // // this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
274
- // // }
275
- // // this.orgname = obj.res
276
- // },
277
- clear() {
278
- //清空部门和人员
279
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
280
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
281
- //部门和人员变为全选
282
- this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
283
- this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
284
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
285
- this.$refs.paged.$refs.cri.model[key] = []
286
- })
287
- },
288
- hidden() {
289
- this.criteriaShow = !this.criteriaShow
290
- },
291
-
292
- // getRes(obj) {
293
- // this.orgCondtionStr = obj
294
- // }
295
- },
296
- watch: {
297
- 'model.rows'(val) {
298
- if(val.length === 0){
299
- this.sumsmodel = {}
300
- }
301
- },
302
- sumsmodel:{
303
- handler: function(val) {
304
- this.getotherfooter();
305
- },
306
- deep: true
307
- }
308
- },
309
- computed: {
310
- metertypes() {
311
- return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
312
- },
313
- getCondition() {
314
- return {
315
- startDate: this.$refs.paged.$refs.cri.model.startDate,
316
- endDate: this.$refs.paged.$refs.cri.model.endDate,
317
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
318
- }
319
- },
320
- getfield() {
321
- return exportConfig.ReportDataConfig
322
- },
323
- }
324
- }
325
- </script>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户名称</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
+ condition=" f_user_name like '%{}%'" placeholder='客户名称'>
18
+ </div>
19
+ <!-- <div class="col-sm-2">-->
20
+ <!-- <label class="font_normal_body">组织机构</label>-->
21
+ <!-- <res-select :initresid="$parent.$parent.org"-->
22
+ <!-- style="width:60%"-->
23
+ <!-- @res-select="$parent.$parent.getorg"-->
24
+ <!-- restype='organization'>-->
25
+ <!-- </res-select>-->
26
+
27
+ <!-- </div>-->
28
+ <div class="col-sm-2">
29
+ <label class="font_normal_body">&emsp;公司&emsp;</label>
30
+ <right-tree @re-res="$parent.$parent.getorg"
31
+ :initresid='$parent.$parent.org'></right-tree>
32
+ </div>
33
+ <div class="span" style="float:right;">
34
+ <button class="button_search button_spacing" @click="search()">查询</button>
35
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
36
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
37
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
38
+ sqlurl="rs/logic/exportfile" sql-name="manage_getReportDataQuery" template-name='上报数据导出'
39
+ :choose-col="true">
40
+ </export-excel>
41
+
42
+ <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
43
+ :defaultfield="$parent.$parent.defaultfield"
44
+ titletable="上报数据打印"
45
+ ></print-data>
46
+ <div style="float: right" class="button_spacing"
47
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
+ @click="$parent.$parent.hidden()"></div>
49
+ </div>
50
+
51
+ </div>
52
+
53
+ <div class="row" v-show="$parent.$parent.criteriaShow">
54
+ <div class="col-sm-2 form-group">
55
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
56
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
57
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
58
+ </div>
59
+ <div class="col-sm-2 form-group">
60
+ <label class="font_normal_body">气表品牌</label>
61
+ <v-select
62
+ placeholder='气表品牌'
63
+ :value.sync="model.f_meter_brand"
64
+ v-model="model.f_meter_brand"
65
+ :options='$parent.$parent.meterbrands'
66
+ close-on-select
67
+ condition="f_meter_brand='{}'">
68
+ </v-select>
69
+ </div>
70
+ <div class="col-sm-2 form-group" >
71
+ <label class="font_normal_body">气表类型</label>
72
+ <v-select
73
+ placeholder='气表类型'
74
+ :value.sync="model.f_meter_classify"
75
+ v-model="model.f_meter_classify"
76
+ :options='$parent.$parent.metertypes'
77
+ close-on-select
78
+ condition="f_meter_classify='{}'">
79
+ </v-select>
80
+ </div>
81
+ <div class="col-sm-2 form-group">
82
+ <label for="startDate" class="font_normal_body">回传时间</label>
83
+ <datepicker id="startDate" placeholder="回传时间" style="width:60%"
84
+ v-model="model.startDate"
85
+ :value.sync="model.startDate"
86
+ :format="'yyyy-MM-dd 00:00:00'"
87
+ :show-reset-button="true"
88
+ condition="f_insert_date >= '{}'">
89
+ </datepicker>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
93
+ <datepicker id="endDate" placeholder="回传时间" style="width:60%"
94
+ v-model="model.endDate"
95
+ :value.sync="model.endDate"
96
+ :format="'yyyy-MM-dd 23:59:59'"
97
+ :show-reset-button="true"
98
+ condition="f_insert_date <= '{}'">
99
+ </datepicker>
100
+ </div>
101
+ </div>
102
+
103
+ </div>
104
+ </criteria>
105
+
106
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
107
+ <template partial='head'>
108
+ <tr>
109
+ <th v-for="row in $parent.$parent.$parent.headData">
110
+ <nobr>{{row}}</nobr>
111
+ </th>
112
+ </tr>
113
+ </template>
114
+ <template partial='body'>
115
+ <tr v-for="row in $parent.$parent.$parent.model.rows">
116
+ <td style="text-align: center;" v-for="item in $parent.$parent.$parent.config.fieldMapping">
117
+ <nobr>{{row[item]}}</nobr>
118
+ </td>
119
+ </tr>
120
+ </template>
121
+ <template partial='foot'></template>
122
+ </data-grid>
123
+ </criteria-paged>
124
+ <table class="table-hover">
125
+ <tr style="position: relative" class="table-bordered">
126
+ <td
127
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
128
+ 汇总信息
129
+ </td>
130
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
131
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount.toFixed(0)}}
132
+ </td>
133
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
134
+ 用气金额合计:&emsp;{{sumsmodel.f_oughtfee.toFixed(0)}}
135
+ </td>
136
+ </tr>
137
+ </table>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ </template>
142
+
143
+ <script>
144
+ import {HttpResetClass, PagedList} from 'vue-client'
145
+ import tableConfig from './config/tableConfig'
146
+ import plugins from '../../plugins/GetLoginInfoService'
147
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
148
+ import exportConfig from './config/exportConfig'
149
+
150
+ let readySomething = async function (self) {
151
+ self.defaultfield = [...self.defaultfield, ...self.defaultConfig.defaultPrint]
152
+ await self.$MagLoadParams.loadParam()
153
+ self.initParams()
154
+ // self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
155
+ }
156
+ export default {
157
+ title: '上报数据查询',
158
+ data() {
159
+ return {
160
+ model: new PagedList('rs/sql/manage_getReportDataQuery', 20, {},{
161
+ f_oughtamount: 0,
162
+ f_oughtfee: 0
163
+ }),
164
+ criteriaShow: false,
165
+ defaultConfig: {
166
+ defaultPrint: []
167
+ },
168
+ other:[],
169
+ footer:[],
170
+ config: {
171
+ fieldMapping: {
172
+ f_userinfo_code: '客户编号',
173
+ f_user_name: '客户名称'
174
+ }
175
+ },
176
+ WarningType: [
177
+ {label: '全部', value: ''}
178
+ ],
179
+ Warningstyles: [
180
+ {label: '全部', value: ''}
181
+ ],
182
+ styles:false,
183
+ sumsmodel: {},
184
+ headData: [],
185
+ bodyData: [],
186
+ //默认打印列
187
+ defaultfield: [],
188
+ orgCondtionStr: " and f_filialeid in (" + this.$login.f.orgid+")",
189
+ resshow:['company'],
190
+ org:[this.$login.f.orgid],
191
+ meterbrands:[]
192
+ }
193
+ },
194
+ created () {
195
+ this.config.fieldMapping=tableConfig.ReportDataQuery
196
+ console.log("========================")
197
+ console.log(this.config.fieldMapping)
198
+ var item="用户编号"
199
+ console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
200
+ console.log(this.config.fieldMapping[item])
201
+ this.headData=Object.keys(this.config.fieldMapping)
202
+ // for(var i=0;i<this.config.fieldMapping;i++){
203
+ // this.headData.push(this.config.fieldMapping[i])
204
+ // }
205
+
206
+ },
207
+ ready() {
208
+ this.$refs.paged.$refs.cri.search()
209
+ readySomething(this).then(() => {
210
+ this.$emit('ready')
211
+ }).catch((error) => {
212
+ this.$emit('error', error)
213
+ })
214
+ },
215
+ methods: {
216
+ initParams() {
217
+ // 初始化气表品牌
218
+ let brandArr = []
219
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
220
+ let temp = {}
221
+ temp.label = item.label
222
+ temp.value = item.value.f_meter_brand
223
+ brandArr.push(temp)
224
+ })
225
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
226
+ //初始化气表价格
227
+ this.prices = this.$MagGetSaleParam.getPrices();
228
+ },
229
+ getotherfooter () {
230
+ // this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
231
+ // this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
232
+ this.other = [];
233
+ this.footer = [];
234
+ let exportdata = this.getCondition;
235
+ let otherInData = [];
236
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
237
+ let footerData = [], exportfield = this.getfield;
238
+ footerData.push("合计");
239
+ let self = this;
240
+ for (var field in self.sumsmodel) {
241
+ footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
242
+ }
243
+ this.footer.push(footerData);
244
+ this.other.push(otherInData);
245
+ },
246
+ showMeterStyle() {
247
+ this.styles = true
248
+ },
249
+ search() {
250
+ this.$refs.paged.$refs.cri.search()
251
+ },
252
+ async selfSearch(args) {
253
+ args.condition = `${args.condition}` + this.orgCondtionStr
254
+ await this.model.search(args.condition, args.model)
255
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
256
+ // 查询到数据进行处理
257
+ // if (this.model.rows.length > 0) {
258
+ // this.bodyData = Object.keys(this.model.rows[0])
259
+ // }
260
+ },
261
+ getorg(obj) {
262
+ if (obj.resids.length>0) {
263
+ this.orgCondtionStr = " and f_filialeid in " + plugin.convertToIn(obj.resids)
264
+ }else
265
+ {
266
+ this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
267
+ }
268
+ },
269
+ // getorg(obj) {
270
+ // // if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
271
+ // // this.orgCondtionStr = " and f_filialeid in " + plugins.convertToIn(obj)
272
+ // // }else{
273
+ // // this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
274
+ // // }
275
+ // // this.orgname = obj.res
276
+ // },
277
+ clear() {
278
+ //清空部门和人员
279
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
280
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
281
+ //部门和人员变为全选
282
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
283
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
284
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
285
+ this.$refs.paged.$refs.cri.model[key] = []
286
+ })
287
+ },
288
+ hidden() {
289
+ this.criteriaShow = !this.criteriaShow
290
+ },
291
+
292
+ // getRes(obj) {
293
+ // this.orgCondtionStr = obj
294
+ // }
295
+ },
296
+ watch: {
297
+ 'model.rows'(val) {
298
+ if(val.length === 0){
299
+ this.sumsmodel = {}
300
+ }
301
+ },
302
+ sumsmodel:{
303
+ handler: function(val) {
304
+ this.getotherfooter();
305
+ },
306
+ deep: true
307
+ }
308
+ },
309
+ computed: {
310
+ metertypes() {
311
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
312
+ },
313
+ getCondition() {
314
+ return {
315
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
316
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
317
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
318
+ }
319
+ },
320
+ getfield() {
321
+ return exportConfig.ReportDataConfig
322
+ },
323
+ }
324
+ }
325
+ </script>