manage-client 3.2.79-aode → 3.2.80-aode
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.
- package/build/dev-server.js +193 -193
- package/build/webpack.base.conf.js +79 -79
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +234 -0
- package/gradlew.bat +89 -0
- package/package.json +1 -1
- package/src/Util.js +383 -383
- package/src/components/MeterManage/MeterList.vue +336 -336
- package/src/components/WebReport/UserGasAll.vue +214 -214
- package/src/components/sale/businessquery/CancelChargeQuery.vue +650 -650
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +667 -667
- package/src/components/sale/businessquery/ChargeQuery.vue +663 -663
- package/src/components/sale/businessquery/DeductionGas.vue +149 -149
- package/src/components/sale/businessquery/DisableQuery.vue +315 -315
- package/src/components/sale/businessquery/EnableQuery.vue +315 -315
- package/src/components/sale/businessquery/FillCardQuery.vue +436 -436
- package/src/components/sale/businessquery/FillGasQuery.vue +435 -435
- package/src/components/sale/businessquery/HandplanQuery.vue +705 -705
- package/src/components/sale/businessquery/InspectListGas.vue +456 -456
- package/src/components/sale/businessquery/InspectManage.vue +37 -37
- package/src/components/sale/businessquery/NewAccountQuery.vue +512 -506
- package/src/components/sale/businessquery/OtherChargeQuery.vue +406 -406
- package/src/components/sale/businessquery/QueryUserState.vue +313 -313
- package/src/components/sale/businessquery/ReverseQuery.vue +347 -347
- package/src/components/sale/businessquery/TransferQuery.vue +363 -363
- package/src/components/sale/businessquery/toolCardMakeQuery.vue +340 -340
- package/src/components/sale/config/exportConfig.js +271 -271
- package/src/components/sale/filesquery/ChangeUserQuery.vue +396 -396
- package/src/components/sale/filesquery/DeviceQuery.vue +329 -329
- package/src/components/sale/filesquery/MeterQuery.vue +593 -593
- package/src/components/sale/filesquery/UserQuery.vue +556 -556
- package/src/components/sale/filesquery/filequerydetail/BlackListQueryDetail.vue +219 -219
- package/src/components/sale/filesquery/filequerydetail/DisableQueryDetail.vue +272 -272
- package/src/components/sale/filesquery/filequerydetail/EnableQueryDetail.vue +274 -274
- package/src/components/sale/ncpush/ncUserLoad.vue +176 -176
- package/src/components/sale/ncpush/ncpushmanage/NCpushList.vue +497 -497
- package/src/components/sale/ncpush/ncrecord/pushdaydatalist.vue +298 -298
- package/src/components/sale/ncpush/pushconfirmlist.vue +414 -414
- package/src/components/sale/ncpush/pushconfirmmergelist.vue +480 -480
- package/src/components/sale/report/aode/MonthByChargeType.vue +526 -526
- package/src/components/sale/report/aode/MonthByUserType.vue +562 -562
- package/src/components/sale/report/aode/YearByChargeTpye.vue +254 -254
- package/src/components/sale/report/aode/YearByUserType.vue +351 -342
- package/src/components/sale/report/aode/iot/FarawayQuery.vue +401 -401
- package/src/components/sale/report/aode/userbuyQuery.vue +477 -477
- package/src/components/valueaddinfo/ValueAddinfoQuery.vue +425 -425
- package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -371
- package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -315
- package/src/components/valueaddinfo/valueAddUserQuery.vue +404 -404
- package/src/components/webmeter/ArreasuserQuery.vue +193 -193
- package/src/components/webmeter/DrillData/LostContactAnalysis.vue +531 -531
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +548 -548
- package/src/components/webmeter/DrillData/NewUserGasAll.vue +596 -588
- package/src/components/webmeter/DrillData/UserGasAll.vue +24 -0
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +507 -507
- package/src/components/webmeter/EasyExcelExportCk.vue +396 -396
- package/src/components/webmeter/IOTArrears/arrears.vue +324 -324
- package/src/components/webmeter/IOTArrears/iotRechargeAudit.vue +377 -377
- package/src/components/webmeter/NewWebmeterHandplanQuery.vue +605 -605
- package/src/components/webmeter/WebmeterHandplanQuery.vue +640 -640
- package/src/components/webmeter/dataCollection/DataCollection.vue +630 -630
- package/src/components/webmeter/gasAnalysis/GasAnalysisManage.vue +303 -303
- package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +745 -745
- package/src/components/webmeter/newwebmeter/NewException/NewMeterException.vue +449 -449
- package/src/components/webmeter/newwebmeter/NewWebUserHand.vue +325 -325
- package/src/components/webmeter/newwebmeter/ReportDataQuery.vue +283 -283
- package/src/components/webmeter/newwebmeter/UserGasList.vue +295 -295
- package/src/components/webmeter/newwebmeter/UserInstructList.vue +311 -311
- package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +386 -386
- package/src/components/webmeter/report/ReportList.vue +211 -211
- package/src/main.js +56 -56
- package/src/saleManage.js +263 -263
- package/src/webmeterManage.js +99 -99
- package/client.iml +0 -15
|
@@ -1,325 +1,325 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex-row" id="unit" >
|
|
3
|
-
<div class="basic-main" @keyup.enter="search">
|
|
4
|
-
<div class="flex">
|
|
5
|
-
<div class="flex" style="flex:1;">
|
|
6
|
-
<criteria-paged :model="model" :pager='true' v-ref:paged>
|
|
7
|
-
<criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
|
|
8
|
-
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
9
|
-
<div class="row" width="100%">
|
|
10
|
-
<div class="col-sm-2 form-group">
|
|
11
|
-
<label class="font_normal_body">组织机构</label>
|
|
12
|
-
<res-select :initresid="$parent.$parent.orgid"
|
|
13
|
-
style="width:60%"
|
|
14
|
-
@res-select="$parent.$parent.getRes"
|
|
15
|
-
restype='organization'>
|
|
16
|
-
</res-select>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-2 form-group">
|
|
19
|
-
<label for="inputStartDate" class="font_normal_body">上报日期</label>
|
|
20
|
-
<datepicker id="inputStartDate" placeholder="上报日期" style="width:60%"
|
|
21
|
-
v-model="model.inputStartDate"
|
|
22
|
-
:value.sync="model.inputStartDate"
|
|
23
|
-
:format="'yyyy-MM-dd'"
|
|
24
|
-
:show-reset-button="true"
|
|
25
|
-
>
|
|
26
|
-
</datepicker>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="col-sm-2 form-group">
|
|
29
|
-
<label for="inputEndDate" class="font_normal_body"> 至  </label>
|
|
30
|
-
<datepicker id="inputEndDate" placeholder="终止上报日期" style="width:60%"
|
|
31
|
-
v-model="model.inputEndDate"
|
|
32
|
-
:value.sync="model.inputEndDate"
|
|
33
|
-
:format="'yyyy-MM-dd'"
|
|
34
|
-
:show-reset-button="true"
|
|
35
|
-
>
|
|
36
|
-
</datepicker>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-sm-2 form-group">
|
|
39
|
-
<label class="font_normal_body">气表品牌</label>
|
|
40
|
-
<v-select :value.sync="model.f_meter_brand"
|
|
41
|
-
v-model="model.f_meter_brand"
|
|
42
|
-
:value-single ="true"
|
|
43
|
-
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
44
|
-
condition="f_meter_brand = '{}'"
|
|
45
|
-
close-on-select></v-select>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div class="col-sm-4 form-group button-range">
|
|
49
|
-
<button @click="search()" class="button_search button_spacing">查询</button>
|
|
50
|
-
<button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
|
|
51
|
-
<!--<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>-->
|
|
52
|
-
<!-- <button class="btn btn-success" @click="$parent.$parent.showEcharts()">显示图表</button>-->
|
|
53
|
-
<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>
|
|
54
|
-
<!-- <export-excel-plus :data="$parent.$parent.getCondition"-->
|
|
55
|
-
<!-- :defaultselect="$parent.$parent.selectfields"-->
|
|
56
|
-
<!-- :field="$parent.$parent.getfield"-->
|
|
57
|
-
<!-- :exportprogress="true" v-ref:exports-->
|
|
58
|
-
<!-- sqlurl="rs/logic/exportfileplus" sql-name="getNewUserGasAll" :template-name='$parent.$parent.getBean'-->
|
|
59
|
-
<!-- :choose-col="true"></export-excel-plus>-->
|
|
60
|
-
|
|
61
|
-
<easy-excel-export :data="$parent.$parent.getCondition"
|
|
62
|
-
:defaultselect="$parent.$parent.selectfields"
|
|
63
|
-
:field="$parent.$parent.getfield"
|
|
64
|
-
:exportprogress="true" v-ref:exports
|
|
65
|
-
sqlurl="rs/easyexcel/export" sql-name="getNewReport" :template-name="$parent.$parent.getBean"
|
|
66
|
-
:choose-col="true">
|
|
67
|
-
</easy-excel-export>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</criteria>
|
|
72
|
-
<data-grid :model="model" id="usergasall" partial='list' class="list_area table_sy" v-ref:grid>
|
|
73
|
-
<template partial='head'>
|
|
74
|
-
<tr>
|
|
75
|
-
<th style="text-align:center">
|
|
76
|
-
<nobr>上报日期</nobr>
|
|
77
|
-
</th>
|
|
78
|
-
<th style="text-align:center">
|
|
79
|
-
<nobr>气表品牌</nobr>
|
|
80
|
-
</th>
|
|
81
|
-
<th style="text-align:center">
|
|
82
|
-
<nobr>应报户数</nobr>
|
|
83
|
-
</th>
|
|
84
|
-
<th style="text-align:center">
|
|
85
|
-
<nobr>上报户数</nobr>
|
|
86
|
-
</th>
|
|
87
|
-
<th style="text-align:center">
|
|
88
|
-
<nobr>上报率</nobr>
|
|
89
|
-
</th>
|
|
90
|
-
|
|
91
|
-
</tr>
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</template>
|
|
95
|
-
<template partial='body'>
|
|
96
|
-
<td>{{row.f_date}}</td>
|
|
97
|
-
<td style="text-align:center">{{row.f_meter_brand}}</td>
|
|
98
|
-
<td style="text-align:center">{{row.opennum}}</td>
|
|
99
|
-
<td style="text-align:center">{{row.reportnum}}</td>
|
|
100
|
-
<td style="text-align:center">{{row.bili}}</td>
|
|
101
|
-
|
|
102
|
-
</template>
|
|
103
|
-
|
|
104
|
-
</data-grid>
|
|
105
|
-
</criteria-paged>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
|
|
111
|
-
</template>
|
|
112
|
-
|
|
113
|
-
<script>
|
|
114
|
-
import {PagedList} from 'vue-client'
|
|
115
|
-
import * as Util from '../../../Util'
|
|
116
|
-
import getLodop from '../../../plugins/LodopFuncs'
|
|
117
|
-
import plugins from '../../../plugins/GetLoginInfoService'
|
|
118
|
-
import exportConfig from "../../sale/config/exportConfig";
|
|
119
|
-
let readySomething = async function (self) {
|
|
120
|
-
await self.$MagLoadParams.loadParam()
|
|
121
|
-
self.initParams()
|
|
122
|
-
}
|
|
123
|
-
export default {
|
|
124
|
-
title: '物联网上报统计',
|
|
125
|
-
data() {
|
|
126
|
-
return {
|
|
127
|
-
other:[],
|
|
128
|
-
footer:[],
|
|
129
|
-
sumName: [],
|
|
130
|
-
model: new PagedList('rs/sql/getNewReport', 20,{startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'}),
|
|
131
|
-
getGroupNameByDate: [
|
|
132
|
-
{label: '年份', value: 'year'},
|
|
133
|
-
{label: '月份', value: 'month'},
|
|
134
|
-
{label: '周', value: 'week'}
|
|
135
|
-
],
|
|
136
|
-
meterbrands: [],
|
|
137
|
-
criteriaShow: false,
|
|
138
|
-
reportStr: null,
|
|
139
|
-
show: false,
|
|
140
|
-
outlets: [],
|
|
141
|
-
operator: [],
|
|
142
|
-
filename: '',
|
|
143
|
-
searchshow: true,
|
|
144
|
-
startDate: '',
|
|
145
|
-
endDate: '',
|
|
146
|
-
echarts: false,
|
|
147
|
-
isActiveTotalForm: false,
|
|
148
|
-
condition: '1=1',
|
|
149
|
-
groupname: ['year'],
|
|
150
|
-
getgroupname: [
|
|
151
|
-
{label: '年份', value: 'year'},
|
|
152
|
-
{label: '月份', value: 'month'},
|
|
153
|
-
{label: '周', value: 'week'},
|
|
154
|
-
{label: '日', value: 'day'}
|
|
155
|
-
],
|
|
156
|
-
orgCondtionStr: '(' + this.$login.f.orgid + ')',
|
|
157
|
-
orgid:[this.$login.f.orgid],
|
|
158
|
-
selectfields:[],
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
ready() {
|
|
162
|
-
this.$refs.paged.$refs.cri.model.inputStartDate = Util.toStandardDateString()
|
|
163
|
-
this.$refs.paged.$refs.cri.model.inputEndDate = Util.toStandardDateString()
|
|
164
|
-
for(var item in exportConfig.newReportConfig){
|
|
165
|
-
this.selectfields.push(item)
|
|
166
|
-
}
|
|
167
|
-
readySomething(this);
|
|
168
|
-
},
|
|
169
|
-
methods: {
|
|
170
|
-
getotherfooter(){
|
|
171
|
-
this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
172
|
-
this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
173
|
-
this.other=[];
|
|
174
|
-
this.footer=[];
|
|
175
|
-
let exportdata = this.getCondition;
|
|
176
|
-
let otherInData=[];
|
|
177
|
-
otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
|
|
178
|
-
otherInData.push(`导出人:${this.$login.f.name}`)
|
|
179
|
-
let footerData=[],exportfield=this.getfield;
|
|
180
|
-
footerData.push("合计");
|
|
181
|
-
let self = this;
|
|
182
|
-
for(var field in self.sumsmodel){
|
|
183
|
-
footerData.push(`${self.sumsmodel[field]}`);
|
|
184
|
-
}
|
|
185
|
-
this.footer.push(footerData);
|
|
186
|
-
this.other.push(otherInData);
|
|
187
|
-
},
|
|
188
|
-
// 查询开关
|
|
189
|
-
hidden() {
|
|
190
|
-
this.criteriaShow = !this.criteriaShow
|
|
191
|
-
},
|
|
192
|
-
SaveAsFile(str) {
|
|
193
|
-
this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
|
|
194
|
-
if (res === 'confirm') {
|
|
195
|
-
let style = '<style>' +
|
|
196
|
-
'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
|
|
197
|
-
let strHtml = style + document.getElementById(str).innerHTML;
|
|
198
|
-
console.log(strHtml);
|
|
199
|
-
let LODOP = getLodop();
|
|
200
|
-
LODOP.PRINT_INIT('');
|
|
201
|
-
LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
|
|
202
|
-
LODOP.SAVE_TO_FILE('用气分析.xls')
|
|
203
|
-
}
|
|
204
|
-
})
|
|
205
|
-
},
|
|
206
|
-
clearmsg() {
|
|
207
|
-
this.$refs.paged.$refs.cri.model = {}
|
|
208
|
-
},
|
|
209
|
-
initParams() {
|
|
210
|
-
// 初始化气表品牌
|
|
211
|
-
let brandArr = []
|
|
212
|
-
let param = {
|
|
213
|
-
condition :"f_meter_type ='物联网表'",
|
|
214
|
-
items:"f_meter_brand",
|
|
215
|
-
orderitem:"id",
|
|
216
|
-
tablename:"t_gasbrand"
|
|
217
|
-
}
|
|
218
|
-
this.$resetpost('rs/sql/manageSingleTable',{data:param},{resolveMsg:null,rejectMsg:null}).then((res)=>{
|
|
219
|
-
res.data.forEach((item) => {
|
|
220
|
-
console.log(item)
|
|
221
|
-
let temp = {}
|
|
222
|
-
temp.label = item.f_meter_brand
|
|
223
|
-
temp.value = item.f_meter_brand
|
|
224
|
-
brandArr.push(temp)
|
|
225
|
-
})
|
|
226
|
-
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
227
|
-
})
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
},
|
|
231
|
-
search(args) {
|
|
232
|
-
this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
|
|
233
|
-
this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
|
|
234
|
-
if (this.endDate == '' || this.startDate == '') {
|
|
235
|
-
return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
|
|
236
|
-
}
|
|
237
|
-
if (!this.orgCondtionStr){
|
|
238
|
-
return this.$showMessage("请选择分公司!")
|
|
239
|
-
}
|
|
240
|
-
if (this.orgCondtionStr)
|
|
241
|
-
this.condition = this.$refs.paged.$refs.cri.condition + `and a.f_orgid in ${this.orgCondtionStr}`
|
|
242
|
-
else
|
|
243
|
-
this.condition = this.$refs.paged.$refs.cri.condition
|
|
244
|
-
this.model.params.f_orgid = this.orgCondtionStr
|
|
245
|
-
this.model.params.f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand && this.$refs.paged.$refs.cri.model.f_meter_brand!==''? ` and f_meter_brand = '${this.$refs.paged.$refs.cri.model.f_meter_brand}'` :''
|
|
246
|
-
|
|
247
|
-
args.condition = this.condition
|
|
248
|
-
this.model.search(args.condition, args.model)
|
|
249
|
-
},
|
|
250
|
-
// 显示柱状图
|
|
251
|
-
showEcharts() {
|
|
252
|
-
this.echarts = true
|
|
253
|
-
this.isActiveTotalForm = false
|
|
254
|
-
},
|
|
255
|
-
notShowTotalForm() {
|
|
256
|
-
this.echarts = false
|
|
257
|
-
this.isActiveTotalForm = false
|
|
258
|
-
},
|
|
259
|
-
// 不显示柱状图
|
|
260
|
-
notShowEcharts() {
|
|
261
|
-
this.echarts = false
|
|
262
|
-
this.isActiveTotalForm = false
|
|
263
|
-
},
|
|
264
|
-
// 显示汇总数据表格
|
|
265
|
-
showTotalForm() {
|
|
266
|
-
this.echarts = false
|
|
267
|
-
this.isActiveTotalForm = true
|
|
268
|
-
},
|
|
269
|
-
close() {
|
|
270
|
-
this.show = false
|
|
271
|
-
},
|
|
272
|
-
getRes(obj) {
|
|
273
|
-
this.orgCondtionStr = plugins.convertToIn(obj)
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
watch: {
|
|
277
|
-
'data'(val) {
|
|
278
|
-
if (val.f_files_path) {
|
|
279
|
-
this.getFileContent(val.f_files_path)
|
|
280
|
-
} else {
|
|
281
|
-
this.reportStr = null
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
computed: {
|
|
286
|
-
getCondition() {
|
|
287
|
-
let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand && this.$refs.paged.$refs.cri.model.f_meter_brand!==''? ` and c.f_meter_brand = '${this.$refs.paged.$refs.cri.model.f_meter_brand}'` :''
|
|
288
|
-
return { startDate: this.$refs.paged.$refs.cri.model.inputStartDate,endDate:this.$refs.paged.$refs.cri.model.inputEndDate,f_orgid:this.orgCondtionStr,f_meter_brand:f_meter_brand}
|
|
289
|
-
},
|
|
290
|
-
getfield() {
|
|
291
|
-
return exportConfig.newReportConfig
|
|
292
|
-
},
|
|
293
|
-
getBean(){
|
|
294
|
-
return '上报率导出'+ Util.guid()
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
</script>
|
|
299
|
-
<style>
|
|
300
|
-
.mystyle {
|
|
301
|
-
float: right;
|
|
302
|
-
padding-right: 10%;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.mystyle1 {
|
|
306
|
-
padding-top: 10px;
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.mystyle2 {
|
|
311
|
-
width: 100%;
|
|
312
|
-
height: 35px;
|
|
313
|
-
/*background: #00A3F0;*/
|
|
314
|
-
padding-left: 15px;
|
|
315
|
-
float: left;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.datapanel {
|
|
319
|
-
color: #333;
|
|
320
|
-
background-color: white;
|
|
321
|
-
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
|
|
322
|
-
padding: 10px 10px 10px 10px;
|
|
323
|
-
border-radius: 15px;
|
|
324
|
-
}
|
|
325
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-row" id="unit" >
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<div class="flex" style="flex:1;">
|
|
6
|
+
<criteria-paged :model="model" :pager='true' v-ref:paged>
|
|
7
|
+
<criteria @condition-changed='$parent.search' partial='criteria' v-ref:cri>
|
|
8
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
9
|
+
<div class="row" width="100%">
|
|
10
|
+
<div class="col-sm-2 form-group">
|
|
11
|
+
<label class="font_normal_body">组织机构</label>
|
|
12
|
+
<res-select :initresid="$parent.$parent.orgid"
|
|
13
|
+
style="width:60%"
|
|
14
|
+
@res-select="$parent.$parent.getRes"
|
|
15
|
+
restype='organization'>
|
|
16
|
+
</res-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label for="inputStartDate" class="font_normal_body">上报日期</label>
|
|
20
|
+
<datepicker id="inputStartDate" placeholder="上报日期" style="width:60%"
|
|
21
|
+
v-model="model.inputStartDate"
|
|
22
|
+
:value.sync="model.inputStartDate"
|
|
23
|
+
:format="'yyyy-MM-dd'"
|
|
24
|
+
:show-reset-button="true"
|
|
25
|
+
>
|
|
26
|
+
</datepicker>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-sm-2 form-group">
|
|
29
|
+
<label for="inputEndDate" class="font_normal_body"> 至  </label>
|
|
30
|
+
<datepicker id="inputEndDate" placeholder="终止上报日期" style="width:60%"
|
|
31
|
+
v-model="model.inputEndDate"
|
|
32
|
+
:value.sync="model.inputEndDate"
|
|
33
|
+
:format="'yyyy-MM-dd'"
|
|
34
|
+
:show-reset-button="true"
|
|
35
|
+
>
|
|
36
|
+
</datepicker>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-2 form-group">
|
|
39
|
+
<label class="font_normal_body">气表品牌</label>
|
|
40
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
41
|
+
v-model="model.f_meter_brand"
|
|
42
|
+
:value-single ="true"
|
|
43
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
44
|
+
condition="f_meter_brand = '{}'"
|
|
45
|
+
close-on-select></v-select>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div class="col-sm-4 form-group button-range">
|
|
49
|
+
<button @click="search()" class="button_search button_spacing">查询</button>
|
|
50
|
+
<button @click="$parent.$parent.clearmsg" class="button_clear button_spacing">清空</button>
|
|
51
|
+
<!--<button class="button_export button_spacing" style="width: max-content" @click="$parent.$parent.showTotalForm()" >显示汇总</button>-->
|
|
52
|
+
<!-- <button class="btn btn-success" @click="$parent.$parent.showEcharts()">显示图表</button>-->
|
|
53
|
+
<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>
|
|
54
|
+
<!-- <export-excel-plus :data="$parent.$parent.getCondition"-->
|
|
55
|
+
<!-- :defaultselect="$parent.$parent.selectfields"-->
|
|
56
|
+
<!-- :field="$parent.$parent.getfield"-->
|
|
57
|
+
<!-- :exportprogress="true" v-ref:exports-->
|
|
58
|
+
<!-- sqlurl="rs/logic/exportfileplus" sql-name="getNewUserGasAll" :template-name='$parent.$parent.getBean'-->
|
|
59
|
+
<!-- :choose-col="true"></export-excel-plus>-->
|
|
60
|
+
|
|
61
|
+
<easy-excel-export :data="$parent.$parent.getCondition"
|
|
62
|
+
:defaultselect="$parent.$parent.selectfields"
|
|
63
|
+
:field="$parent.$parent.getfield"
|
|
64
|
+
:exportprogress="true" v-ref:exports
|
|
65
|
+
sqlurl="rs/easyexcel/export" sql-name="getNewReport" :template-name="$parent.$parent.getBean"
|
|
66
|
+
:choose-col="true">
|
|
67
|
+
</easy-excel-export>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</criteria>
|
|
72
|
+
<data-grid :model="model" id="usergasall" partial='list' class="list_area table_sy" v-ref:grid>
|
|
73
|
+
<template partial='head'>
|
|
74
|
+
<tr>
|
|
75
|
+
<th style="text-align:center">
|
|
76
|
+
<nobr>上报日期</nobr>
|
|
77
|
+
</th>
|
|
78
|
+
<th style="text-align:center">
|
|
79
|
+
<nobr>气表品牌</nobr>
|
|
80
|
+
</th>
|
|
81
|
+
<th style="text-align:center">
|
|
82
|
+
<nobr>应报户数</nobr>
|
|
83
|
+
</th>
|
|
84
|
+
<th style="text-align:center">
|
|
85
|
+
<nobr>上报户数</nobr>
|
|
86
|
+
</th>
|
|
87
|
+
<th style="text-align:center">
|
|
88
|
+
<nobr>上报率</nobr>
|
|
89
|
+
</th>
|
|
90
|
+
|
|
91
|
+
</tr>
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</template>
|
|
95
|
+
<template partial='body'>
|
|
96
|
+
<td>{{row.f_date}}</td>
|
|
97
|
+
<td style="text-align:center">{{row.f_meter_brand}}</td>
|
|
98
|
+
<td style="text-align:center">{{row.opennum}}</td>
|
|
99
|
+
<td style="text-align:center">{{row.reportnum}}</td>
|
|
100
|
+
<td style="text-align:center">{{row.bili}}</td>
|
|
101
|
+
|
|
102
|
+
</template>
|
|
103
|
+
|
|
104
|
+
</data-grid>
|
|
105
|
+
</criteria-paged>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
</template>
|
|
112
|
+
|
|
113
|
+
<script>
|
|
114
|
+
import {PagedList} from 'vue-client'
|
|
115
|
+
import * as Util from '../../../Util'
|
|
116
|
+
import getLodop from '../../../plugins/LodopFuncs'
|
|
117
|
+
import plugins from '../../../plugins/GetLoginInfoService'
|
|
118
|
+
import exportConfig from "../../sale/config/exportConfig";
|
|
119
|
+
let readySomething = async function (self) {
|
|
120
|
+
await self.$MagLoadParams.loadParam()
|
|
121
|
+
self.initParams()
|
|
122
|
+
}
|
|
123
|
+
export default {
|
|
124
|
+
title: '物联网上报统计',
|
|
125
|
+
data() {
|
|
126
|
+
return {
|
|
127
|
+
other:[],
|
|
128
|
+
footer:[],
|
|
129
|
+
sumName: [],
|
|
130
|
+
model: new PagedList('rs/sql/getNewReport', 20,{startDate: 'this.model.inputStartDate', endDate: 'this.model.inputEndDate'}),
|
|
131
|
+
getGroupNameByDate: [
|
|
132
|
+
{label: '年份', value: 'year'},
|
|
133
|
+
{label: '月份', value: 'month'},
|
|
134
|
+
{label: '周', value: 'week'}
|
|
135
|
+
],
|
|
136
|
+
meterbrands: [],
|
|
137
|
+
criteriaShow: false,
|
|
138
|
+
reportStr: null,
|
|
139
|
+
show: false,
|
|
140
|
+
outlets: [],
|
|
141
|
+
operator: [],
|
|
142
|
+
filename: '',
|
|
143
|
+
searchshow: true,
|
|
144
|
+
startDate: '',
|
|
145
|
+
endDate: '',
|
|
146
|
+
echarts: false,
|
|
147
|
+
isActiveTotalForm: false,
|
|
148
|
+
condition: '1=1',
|
|
149
|
+
groupname: ['year'],
|
|
150
|
+
getgroupname: [
|
|
151
|
+
{label: '年份', value: 'year'},
|
|
152
|
+
{label: '月份', value: 'month'},
|
|
153
|
+
{label: '周', value: 'week'},
|
|
154
|
+
{label: '日', value: 'day'}
|
|
155
|
+
],
|
|
156
|
+
orgCondtionStr: '(' + this.$login.f.orgid + ')',
|
|
157
|
+
orgid:[this.$login.f.orgid],
|
|
158
|
+
selectfields:[],
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
ready() {
|
|
162
|
+
this.$refs.paged.$refs.cri.model.inputStartDate = Util.toStandardDateString()
|
|
163
|
+
this.$refs.paged.$refs.cri.model.inputEndDate = Util.toStandardDateString()
|
|
164
|
+
for(var item in exportConfig.newReportConfig){
|
|
165
|
+
this.selectfields.push(item)
|
|
166
|
+
}
|
|
167
|
+
readySomething(this);
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
170
|
+
getotherfooter(){
|
|
171
|
+
this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
172
|
+
this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
173
|
+
this.other=[];
|
|
174
|
+
this.footer=[];
|
|
175
|
+
let exportdata = this.getCondition;
|
|
176
|
+
let otherInData=[];
|
|
177
|
+
otherInData.push(`导出时间: ${this.$login.toStandardDateString()}`);
|
|
178
|
+
otherInData.push(`导出人:${this.$login.f.name}`)
|
|
179
|
+
let footerData=[],exportfield=this.getfield;
|
|
180
|
+
footerData.push("合计");
|
|
181
|
+
let self = this;
|
|
182
|
+
for(var field in self.sumsmodel){
|
|
183
|
+
footerData.push(`${self.sumsmodel[field]}`);
|
|
184
|
+
}
|
|
185
|
+
this.footer.push(footerData);
|
|
186
|
+
this.other.push(otherInData);
|
|
187
|
+
},
|
|
188
|
+
// 查询开关
|
|
189
|
+
hidden() {
|
|
190
|
+
this.criteriaShow = !this.criteriaShow
|
|
191
|
+
},
|
|
192
|
+
SaveAsFile(str) {
|
|
193
|
+
this.$showMessage('您是否需要导出本页数据?', ['confirm', 'cancel']).then((res) => {
|
|
194
|
+
if (res === 'confirm') {
|
|
195
|
+
let style = '<style>' +
|
|
196
|
+
'td {border-width: 1px;padding: 2px;border-style: solid; border-color:black; border-collapse:collapse;} .tdright{text-align: right;} .tdcenter{text-align: center;}</style>';
|
|
197
|
+
let strHtml = style + document.getElementById(str).innerHTML;
|
|
198
|
+
console.log(strHtml);
|
|
199
|
+
let LODOP = getLodop();
|
|
200
|
+
LODOP.PRINT_INIT('');
|
|
201
|
+
LODOP.ADD_PRINT_TABLE(5, 5, '99%', '100%', strHtml);
|
|
202
|
+
LODOP.SAVE_TO_FILE('用气分析.xls')
|
|
203
|
+
}
|
|
204
|
+
})
|
|
205
|
+
},
|
|
206
|
+
clearmsg() {
|
|
207
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
208
|
+
},
|
|
209
|
+
initParams() {
|
|
210
|
+
// 初始化气表品牌
|
|
211
|
+
let brandArr = []
|
|
212
|
+
let param = {
|
|
213
|
+
condition :"f_meter_type ='物联网表'",
|
|
214
|
+
items:"f_meter_brand",
|
|
215
|
+
orderitem:"id",
|
|
216
|
+
tablename:"t_gasbrand"
|
|
217
|
+
}
|
|
218
|
+
this.$resetpost('rs/sql/manageSingleTable',{data:param},{resolveMsg:null,rejectMsg:null}).then((res)=>{
|
|
219
|
+
res.data.forEach((item) => {
|
|
220
|
+
console.log(item)
|
|
221
|
+
let temp = {}
|
|
222
|
+
temp.label = item.f_meter_brand
|
|
223
|
+
temp.value = item.f_meter_brand
|
|
224
|
+
brandArr.push(temp)
|
|
225
|
+
})
|
|
226
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
227
|
+
})
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
},
|
|
231
|
+
search(args) {
|
|
232
|
+
this.startDate = this.$refs.paged.$refs.cri.model.inputStartDate
|
|
233
|
+
this.endDate = this.$refs.paged.$refs.cri.model.inputStartDate
|
|
234
|
+
if (this.endDate == '' || this.startDate == '') {
|
|
235
|
+
return this.$showMessage("结算时间区间的开始和结束时间不能为空!")
|
|
236
|
+
}
|
|
237
|
+
if (!this.orgCondtionStr){
|
|
238
|
+
return this.$showMessage("请选择分公司!")
|
|
239
|
+
}
|
|
240
|
+
if (this.orgCondtionStr)
|
|
241
|
+
this.condition = this.$refs.paged.$refs.cri.condition + `and a.f_orgid in ${this.orgCondtionStr}`
|
|
242
|
+
else
|
|
243
|
+
this.condition = this.$refs.paged.$refs.cri.condition
|
|
244
|
+
this.model.params.f_orgid = this.orgCondtionStr
|
|
245
|
+
this.model.params.f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand && this.$refs.paged.$refs.cri.model.f_meter_brand!==''? ` and f_meter_brand = '${this.$refs.paged.$refs.cri.model.f_meter_brand}'` :''
|
|
246
|
+
|
|
247
|
+
args.condition = this.condition
|
|
248
|
+
this.model.search(args.condition, args.model)
|
|
249
|
+
},
|
|
250
|
+
// 显示柱状图
|
|
251
|
+
showEcharts() {
|
|
252
|
+
this.echarts = true
|
|
253
|
+
this.isActiveTotalForm = false
|
|
254
|
+
},
|
|
255
|
+
notShowTotalForm() {
|
|
256
|
+
this.echarts = false
|
|
257
|
+
this.isActiveTotalForm = false
|
|
258
|
+
},
|
|
259
|
+
// 不显示柱状图
|
|
260
|
+
notShowEcharts() {
|
|
261
|
+
this.echarts = false
|
|
262
|
+
this.isActiveTotalForm = false
|
|
263
|
+
},
|
|
264
|
+
// 显示汇总数据表格
|
|
265
|
+
showTotalForm() {
|
|
266
|
+
this.echarts = false
|
|
267
|
+
this.isActiveTotalForm = true
|
|
268
|
+
},
|
|
269
|
+
close() {
|
|
270
|
+
this.show = false
|
|
271
|
+
},
|
|
272
|
+
getRes(obj) {
|
|
273
|
+
this.orgCondtionStr = plugins.convertToIn(obj)
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
watch: {
|
|
277
|
+
'data'(val) {
|
|
278
|
+
if (val.f_files_path) {
|
|
279
|
+
this.getFileContent(val.f_files_path)
|
|
280
|
+
} else {
|
|
281
|
+
this.reportStr = null
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
computed: {
|
|
286
|
+
getCondition() {
|
|
287
|
+
let f_meter_brand = this.$refs.paged.$refs.cri.model.f_meter_brand && this.$refs.paged.$refs.cri.model.f_meter_brand!==''? ` and c.f_meter_brand = '${this.$refs.paged.$refs.cri.model.f_meter_brand}'` :''
|
|
288
|
+
return { startDate: this.$refs.paged.$refs.cri.model.inputStartDate,endDate:this.$refs.paged.$refs.cri.model.inputEndDate,f_orgid:this.orgCondtionStr,f_meter_brand:f_meter_brand}
|
|
289
|
+
},
|
|
290
|
+
getfield() {
|
|
291
|
+
return exportConfig.newReportConfig
|
|
292
|
+
},
|
|
293
|
+
getBean(){
|
|
294
|
+
return '上报率导出'+ Util.guid()
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
</script>
|
|
299
|
+
<style>
|
|
300
|
+
.mystyle {
|
|
301
|
+
float: right;
|
|
302
|
+
padding-right: 10%;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.mystyle1 {
|
|
306
|
+
padding-top: 10px;
|
|
307
|
+
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.mystyle2 {
|
|
311
|
+
width: 100%;
|
|
312
|
+
height: 35px;
|
|
313
|
+
/*background: #00A3F0;*/
|
|
314
|
+
padding-left: 15px;
|
|
315
|
+
float: left;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.datapanel {
|
|
319
|
+
color: #333;
|
|
320
|
+
background-color: white;
|
|
321
|
+
box-shadow: darkgrey 0.5px 0.5px 0.5px 0.5px;
|
|
322
|
+
padding: 10px 10px 10px 10px;
|
|
323
|
+
border-radius: 15px;
|
|
324
|
+
}
|
|
325
|
+
</style>
|