manage-client 3.2.140 → 3.2.144
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 +2 -2
- package/package.json +1 -1
- package/src/components/SellReport/Cardapplysgas.vue +274 -0
- package/src/components/SellReport/LeftChart.vue +132 -0
- package/src/components/SellReport/MarketMonthChart.vue +162 -0
- package/src/components/SellReport/MarketMonthgas.vue +7 -0
- package/src/components/SellReport/UserFillmoney.vue +1 -1
- package/src/components/sale/businessquery/AccountQuery/AccountListManage.vue +2 -2
- package/src/components/sale/businessquery/AccountQuery/OverdueList.vue +4 -4
- package/src/components/sale/businessquery/AccountQuery/keyUserGasRanking.vue +165 -0
- package/src/components/sale/businessquery/ArrearsQuery.vue +2 -2
- package/src/components/sale/businessquery/ChargeQuery.vue +2 -2
- package/src/components/sale/businessquery/CollectManage.vue +6 -0
- package/src/components/sale/businessquery/GroupChargeQuery.vue +2 -2
- package/src/components/sale/businessquery/HandplanQuery.vue +1 -1
- package/src/components/sale/businessquery/InspectListGas.vue +238 -246
- package/src/components/sale/businessquery/ProceedsOper.vue +4 -4
- package/src/components/sale/businessquery/ResidentialCardQuery.vue +373 -0
- package/src/components/sale/businessquery/SellOrgnameQuery.vue +2 -2
- package/src/components/sale/businessquery/SellPeopleQuery.vue +2 -2
- package/src/components/sale/businessquery/UserSellHeadDetail.vue +4 -4
- package/src/components/sale/config/exportConfig.js +14 -14
- package/src/components/sale/filesquery/MeterQuery.vue +21 -1
- package/src/components/sale/filesquery/RecordInfoQuery.vue +16 -0
- package/src/components/sale/filesquery/UserQuery.vue +6 -0
- package/src/components/sale/filesquery/filequerydetail/ChargeQueryDetail.vue +1 -1
- package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +2 -1
- package/src/components/webmeter/DrillData/UserGasEform.vue +1 -1
- package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +2 -1
- package/src/components/webmeter/recharge/RechargeList.vue +1 -1
- package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +26 -26
- package/src/filiale/dongguan/components/SellReport/BankManager.vue +146 -0
- package/src/filiale/dongguan/components/SellReport/SiteManager.vue +147 -0
- package/src/filiale/dongguan/components/WebReport/BussinessType.vue +137 -0
- package/src/filiale/dongguan/components/WebReport/Paymentpie.vue +157 -0
- package/src/filiale/dongguan/reportManage.js +21 -0
- package/src/filiale/qianneng/ArrearsQuery.vue +2 -2
- package/src/filiale/qianneng/ChargeQuery.vue +2 -2
- package/src/filiale/qianneng/HandplanQuery.vue +1 -1
- package/src/filiale/qianneng/MeterQuery.vue +21 -1
- package/src/filiale/qianneng/exportConfig.js +3 -3
- package/src/filiale/rongcheng/RecordInfoQuery.vue +1 -1
- package/src/filiale/rongcheng/exportConfig.js +2 -2
- package/src/reportManage.js +10 -0
- package/src/saleManage.js +6 -0
- package/.gradle/4.4/fileContent/fileContent.lock +0 -0
- package/.gradle/4.4/taskHistory/taskHistory.bin +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/build/libs/ManageClient-3.1.0-17.jar +0 -0
- package/build/tmp/jar/MANIFEST.MF +0 -2
package/build/dev-server.js
CHANGED
|
@@ -13,9 +13,9 @@ var compiler = webpack(config)
|
|
|
13
13
|
// var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
|
|
14
14
|
var shaoguan='http://119.146.1.106:8300/'
|
|
15
15
|
var qtx='http://36.103.222.144:6300/'
|
|
16
|
-
var bendi = 'http://
|
|
16
|
+
var bendi = 'http://127.0.0.1:8090'
|
|
17
17
|
// var bendi = 'http://172.168.1.11:9001'
|
|
18
|
-
var fuwu = 'http://
|
|
18
|
+
var fuwu = 'http://121.36.106.17:8400'
|
|
19
19
|
// var fuwu = 'http://203.57.101.233:9001'
|
|
20
20
|
var system = 'http://192.168.50.4:8400'
|
|
21
21
|
//192.168.
|
package/package.json
CHANGED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 98%">
|
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<p class="bg-info text-center" style="padding: 8px;">卡表抄表气价报表</p>
|
|
6
|
+
<div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-4" >
|
|
10
|
+
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:disabled-days-of-Week="[]"
|
|
15
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
16
|
+
:show-reset-button="reset">
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-4" >
|
|
20
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:disabled-days-of-Week="[]"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="reset">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-4">
|
|
30
|
+
<label class="font_normal_body"> 公司 </label>
|
|
31
|
+
<right-tree @re-res="$parent.$parent.getRes"></right-tree>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-4">
|
|
34
|
+
<label class="font_normal_body"> 部门 </label>
|
|
35
|
+
<res-select restype='department'
|
|
36
|
+
@res-select="$parent.$parent.getdep"
|
|
37
|
+
:parentresid="$parent.$parent.depresid"
|
|
38
|
+
:initresid='$parent.$parent.depid'>
|
|
39
|
+
</res-select>
|
|
40
|
+
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-sm-4">
|
|
43
|
+
<label class="font_normal_body"> 人员 </label>
|
|
44
|
+
<res-select restype='user'
|
|
45
|
+
@res-select="$parent.$parent.getuser"
|
|
46
|
+
:parentresid="$parent.$parent.userresid"
|
|
47
|
+
:initresid='$parent.$parent.operatorid'>
|
|
48
|
+
</res-select>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-4 form-group">
|
|
51
|
+
<label class="font_normal_body">气表品牌</label>
|
|
52
|
+
<v-select :value.sync="model.f_meter_classify" multiple
|
|
53
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
|
|
54
|
+
condition="f_meter_classify in {}"
|
|
55
|
+
close-on-select></v-select>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="span" style = "float:right;">
|
|
59
|
+
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
60
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
|
|
61
|
+
<report-excel id='gasprice'></report-excel>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</criteria>
|
|
65
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
66
|
+
<table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path">
|
|
67
|
+
<thead>
|
|
68
|
+
<tr>
|
|
69
|
+
<th colspan='9' style="font-weight: normal; text-align: left;">
|
|
70
|
+
<h3 style="text-align: center">卡表抄表气价报表</h3>
|
|
71
|
+
</th>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<th colspan='9' style="font-weight: normal; text-align: center;">
|
|
75
|
+
开始时间:{{model.model.startDate}}<br>
|
|
76
|
+
结束时间:{{ model.model.endDate }}<br>
|
|
77
|
+
打印时间:{{{$parent.printTime}}}
|
|
78
|
+
</th>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr>
|
|
81
|
+
<th colspan='9' style="font-weight: normal; text-align: center;">
|
|
82
|
+
<div>
|
|
83
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
84
|
+
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
85
|
+
<span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
|
|
86
|
+
</div>
|
|
87
|
+
</th>
|
|
88
|
+
</tr>
|
|
89
|
+
</thead>
|
|
90
|
+
<tr>
|
|
91
|
+
<td colspan='9'>
|
|
92
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
93
|
+
</td>
|
|
94
|
+
</tr>
|
|
95
|
+
<tfoot>
|
|
96
|
+
<tr style="text-align: left">
|
|
97
|
+
<th colspan='3'>财务审核:</th>
|
|
98
|
+
<th colspan='3'>收款审核:</th>
|
|
99
|
+
<th colspan='3'>收款员:</th>
|
|
100
|
+
</tr>
|
|
101
|
+
</tfoot>
|
|
102
|
+
</table>
|
|
103
|
+
{{{ $parent.reportStr}}}
|
|
104
|
+
</div>
|
|
105
|
+
</criteria-paged>
|
|
106
|
+
<modal :show.sync="show" v-ref:modal small backdrop="false">
|
|
107
|
+
<header slot="modal-header" class="modal-header">
|
|
108
|
+
<h4 class="modal-title">输入文件名称</h4>
|
|
109
|
+
</header>
|
|
110
|
+
<article slot="modal-body" class="modal-body">
|
|
111
|
+
<div class="form-group">
|
|
112
|
+
<input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
|
|
113
|
+
</div>
|
|
114
|
+
</article>
|
|
115
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
116
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
117
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
|
|
118
|
+
</footer>
|
|
119
|
+
</modal>
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
|
|
123
|
+
<script>
|
|
124
|
+
import { DataModel } from 'vue-client'
|
|
125
|
+
import co from 'co'
|
|
126
|
+
let saveFile = function * (self) {
|
|
127
|
+
// 线验证文件是否重名
|
|
128
|
+
let count = yield self.$resetpost('rs/sql/manageSingleTable',
|
|
129
|
+
{data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
|
|
130
|
+
{resolveMsg: null, rejectMsg: null})
|
|
131
|
+
if (count.data.length > 0) {
|
|
132
|
+
self.$showAlert('无法保存,文件名重名', 'warning', 3000)
|
|
133
|
+
return
|
|
134
|
+
}
|
|
135
|
+
let saveBack = yield self.$resetpost('rs/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
136
|
+
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
137
|
+
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
138
|
+
f_outlets: this.$login.f.depname})
|
|
139
|
+
if (saveBack.data.status === 'succeed') {
|
|
140
|
+
self.show = false
|
|
141
|
+
self.filename = ''
|
|
142
|
+
// 后台保存完成,通知刷新
|
|
143
|
+
self.$dispatch('save-success', self.filename)
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export default {
|
|
147
|
+
title: '卡表抄表气价报表',
|
|
148
|
+
props: ['data'],
|
|
149
|
+
data () {
|
|
150
|
+
return {
|
|
151
|
+
printTime: this.$login.toStandardTimeString(),
|
|
152
|
+
depresid: [],
|
|
153
|
+
userresid: [],
|
|
154
|
+
f_orgid: this.$login.f.orgid,
|
|
155
|
+
f_depid: this.$login.f.depids,
|
|
156
|
+
f_operatorid: this.$login.f.id,
|
|
157
|
+
operatorid: [],
|
|
158
|
+
depid: [],
|
|
159
|
+
orgname: '',
|
|
160
|
+
depname: '',
|
|
161
|
+
operatorname: '',
|
|
162
|
+
orgCondtionStr: '1=1',
|
|
163
|
+
model: new DataModel('rs/report/Cardapplysgas', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
164
|
+
f_orgid: 'this.model.f_orgid'}),
|
|
165
|
+
reportStr: null,
|
|
166
|
+
show: false,
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
ready () {
|
|
170
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
171
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
172
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
173
|
+
console.log(this.$login.f)
|
|
174
|
+
},
|
|
175
|
+
methods: {
|
|
176
|
+
searchData () {
|
|
177
|
+
this.$refs.paged.$refs.criteria.search()
|
|
178
|
+
},
|
|
179
|
+
selfSearch (args) {
|
|
180
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
181
|
+
console.log("condition:" + args.condition)
|
|
182
|
+
let orgcondition = '1=1'
|
|
183
|
+
if (this.f_orgid[0]) {
|
|
184
|
+
orgcondition += ' and s.f_orgid in (' + this.f_orgid + ')'
|
|
185
|
+
}
|
|
186
|
+
let deps = ''
|
|
187
|
+
let i = 0
|
|
188
|
+
let depss = ''
|
|
189
|
+
if (this.f_depid[0]) {
|
|
190
|
+
for ( i; i< this.f_depid.length; i++ )
|
|
191
|
+
deps += `'${this.f_depid[i]}',`
|
|
192
|
+
depss = deps.toString().substring(1,deps.length-2)
|
|
193
|
+
orgcondition += " and s.f_depid in ( '" + depss + "' ) "
|
|
194
|
+
}else {
|
|
195
|
+
depss = ''
|
|
196
|
+
}
|
|
197
|
+
console.log("所选部门:" + depss)
|
|
198
|
+
|
|
199
|
+
let opes = ''
|
|
200
|
+
let j = 0
|
|
201
|
+
let opess = ''
|
|
202
|
+
if(this.f_operatorid[0]) {
|
|
203
|
+
for ( j; j< this.f_operatorid.length; j++ )
|
|
204
|
+
opes += `'${this.f_operatorid[j]}',`
|
|
205
|
+
opess = opes.toString().substring(1,opes.length-2)
|
|
206
|
+
orgcondition += "and s.f_operatorid in ( '" + opess + "' ) "
|
|
207
|
+
}else {
|
|
208
|
+
opess = ''
|
|
209
|
+
}
|
|
210
|
+
console.log("所选人员:" + opess)
|
|
211
|
+
|
|
212
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition + " and " + args.condition
|
|
213
|
+
this.$refs.paged.search(args)
|
|
214
|
+
},
|
|
215
|
+
getRes (obj) {
|
|
216
|
+
this.orgname = obj.res[0]
|
|
217
|
+
this.depresid = obj.resids
|
|
218
|
+
this.f_orgid = obj.resids
|
|
219
|
+
this.userresid = obj.resids
|
|
220
|
+
},
|
|
221
|
+
getdep (obj, val) {
|
|
222
|
+
this.depname = val
|
|
223
|
+
// this.userresid = obj
|
|
224
|
+
this.f_depid = obj
|
|
225
|
+
},
|
|
226
|
+
getuser ( obj, val) {
|
|
227
|
+
this.operatorname = val
|
|
228
|
+
this.f_operatorid = obj
|
|
229
|
+
},
|
|
230
|
+
|
|
231
|
+
// 根据文件路径获取储存的报表内容
|
|
232
|
+
getFileContent (path) {
|
|
233
|
+
this.$resetpost('rs/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
234
|
+
this.reportStr = res.data.filecontent
|
|
235
|
+
this.model.state = '正确'
|
|
236
|
+
})
|
|
237
|
+
},
|
|
238
|
+
confirm () {
|
|
239
|
+
if (!this.filename || this.filename === '') {
|
|
240
|
+
this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
|
|
241
|
+
}
|
|
242
|
+
let saveGen = saveFile(this)
|
|
243
|
+
co(saveGen)
|
|
244
|
+
},
|
|
245
|
+
close () {
|
|
246
|
+
this.show = false
|
|
247
|
+
},
|
|
248
|
+
// 将报表保存成文件
|
|
249
|
+
confirmReport () {
|
|
250
|
+
this.show = true
|
|
251
|
+
this.filename = this.data.f_report_name + this.$login.toStandardDateString()
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
watch: {
|
|
255
|
+
'data' (val) {
|
|
256
|
+
if (val.f_files_path) {
|
|
257
|
+
this.getFileContent(val.f_files_path)
|
|
258
|
+
} else {
|
|
259
|
+
this.reportStr = null
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
computed: {
|
|
264
|
+
metertypes() {
|
|
265
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表品牌')]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
</script>
|
|
270
|
+
<style scoped>
|
|
271
|
+
.noborder{
|
|
272
|
+
border: none;
|
|
273
|
+
}
|
|
274
|
+
</style>
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :id="id" style="height:50%"></div>
|
|
3
|
+
</template>
|
|
4
|
+
<script>
|
|
5
|
+
import * as echarts from "echarts";
|
|
6
|
+
export default {
|
|
7
|
+
name: "LineEchart",
|
|
8
|
+
props: {
|
|
9
|
+
title: {
|
|
10
|
+
type: String,
|
|
11
|
+
},
|
|
12
|
+
id: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "main",
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "line",
|
|
19
|
+
},
|
|
20
|
+
color: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: function () {
|
|
23
|
+
return ["#9E87FF", '#73DDFF', '#fe9a8b', '#F56948', '#9E87FF',"#005aff", "pink", "#08b551", "red", "#f0b551", "black"];
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
param: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: function () {
|
|
29
|
+
return {
|
|
30
|
+
width: "1",
|
|
31
|
+
legendData: ["Email", "Union Ads", "Video Ads"],
|
|
32
|
+
xData: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
33
|
+
yData: [
|
|
34
|
+
[120, 132, 101, 134, 90, 230, 210],
|
|
35
|
+
[220, 232, 301, 434, 290, 230, 210],
|
|
36
|
+
[920, 832, 501, 234, 590, 230, 210],
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
data() {
|
|
43
|
+
return {};
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
ready() {
|
|
47
|
+
// this.initData();
|
|
48
|
+
},
|
|
49
|
+
watch:{
|
|
50
|
+
'param'(val){
|
|
51
|
+
if(val){
|
|
52
|
+
this.initData();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
//组织单个Series
|
|
58
|
+
getSeries(name, width, color, data) {
|
|
59
|
+
return {
|
|
60
|
+
name: name,
|
|
61
|
+
type: "line",
|
|
62
|
+
lineStyle: {
|
|
63
|
+
width: width,
|
|
64
|
+
type: "line",
|
|
65
|
+
},
|
|
66
|
+
data: data,
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
setSeries() {
|
|
70
|
+
let arr = [];
|
|
71
|
+
for (let i = 0; i < this.param.yData.length; i++) {
|
|
72
|
+
let serie = this.getSeries(
|
|
73
|
+
this.param.legendData[i],
|
|
74
|
+
this.param.width,
|
|
75
|
+
this.color[i],
|
|
76
|
+
this.param.yData[i]
|
|
77
|
+
);
|
|
78
|
+
arr.push(serie);
|
|
79
|
+
}
|
|
80
|
+
return arr;
|
|
81
|
+
},
|
|
82
|
+
initData() {
|
|
83
|
+
var chartDom = document.getElementById(this.id);
|
|
84
|
+
var myChart = echarts.init(chartDom);
|
|
85
|
+
this.option = {
|
|
86
|
+
title: {
|
|
87
|
+
text: this.title,
|
|
88
|
+
},
|
|
89
|
+
tooltip: {
|
|
90
|
+
trigger: "axis",
|
|
91
|
+
position: function (pos, params, dom, rect, size) {
|
|
92
|
+
let yPos = '20%'
|
|
93
|
+
let xPos = 0
|
|
94
|
+
if (pos[0] < size.viewSize[0] / 2) {
|
|
95
|
+
xPos = pos[0] + 10
|
|
96
|
+
} else {
|
|
97
|
+
xPos = pos[0] - dom.offsetWidth - 10
|
|
98
|
+
}
|
|
99
|
+
return [xPos, yPos]
|
|
100
|
+
},
|
|
101
|
+
trigger: 'axis',
|
|
102
|
+
extraCssText: 'width:auto;height:auto;border:1px solid #015999;background:#032f53 ',
|
|
103
|
+
},
|
|
104
|
+
legend: {
|
|
105
|
+
data: this.param.legendData,
|
|
106
|
+
bottom: '0%',
|
|
107
|
+
left: 'center',
|
|
108
|
+
},
|
|
109
|
+
grid: {
|
|
110
|
+
left: "3%",
|
|
111
|
+
right: "4%",
|
|
112
|
+
bottom: "13%",
|
|
113
|
+
containLabel: true,
|
|
114
|
+
},
|
|
115
|
+
xAxis: {
|
|
116
|
+
type: "category",
|
|
117
|
+
boundaryGap: false,
|
|
118
|
+
data: this.param.xData,
|
|
119
|
+
},
|
|
120
|
+
yAxis: {
|
|
121
|
+
type: "value",
|
|
122
|
+
},
|
|
123
|
+
series: this.setSeries(),
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
this.option && myChart.setOption(this.option);
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<style scoped></style>
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
|
|
2
|
+
<template>
|
|
3
|
+
<div col="col-sm-12">
|
|
4
|
+
<div class="col-sm-6">
|
|
5
|
+
<left-chart :param="param" id="leftchart" title="用气量情况"></left-chart>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="col-sm-6">
|
|
8
|
+
<left-chart :param="param1" id="leftchart2" title="用气比例"></left-chart>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import {HttpResetClass} from "vue-client";
|
|
15
|
+
export default {
|
|
16
|
+
props: ['condition'],
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
dataLength: 0,
|
|
20
|
+
xData: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
|
|
21
|
+
param:[],
|
|
22
|
+
param1:[],
|
|
23
|
+
name:[],
|
|
24
|
+
yData: [],
|
|
25
|
+
yData2:[],
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
getParams (params) {
|
|
30
|
+
this.name = []
|
|
31
|
+
this.yData = []
|
|
32
|
+
this.yData2 = []
|
|
33
|
+
let http = new HttpResetClass()
|
|
34
|
+
http.load('post','rs/sql/gasbai_body',{data: params}).then((res)=>{
|
|
35
|
+
console.log(res.data)
|
|
36
|
+
this.dataLength = res.data.length
|
|
37
|
+
let sumgas1 = 0
|
|
38
|
+
let sumgas2 = 0
|
|
39
|
+
let sumgas3 = 0
|
|
40
|
+
let sumgas4 = 0
|
|
41
|
+
let sumgas5 = 0
|
|
42
|
+
let sumgas6 = 0
|
|
43
|
+
let sumgas7 = 0
|
|
44
|
+
let sumgas8 = 0
|
|
45
|
+
let sumgas9 = 0
|
|
46
|
+
let sumgas10 = 0
|
|
47
|
+
let sumgas11 = 0
|
|
48
|
+
let sumgas12 = 0
|
|
49
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
50
|
+
sumgas1 += res.data[i].f_gas1
|
|
51
|
+
sumgas2 += res.data[i].f_gas2
|
|
52
|
+
sumgas3 += res.data[i].f_gas3
|
|
53
|
+
sumgas4 += res.data[i].f_gas4
|
|
54
|
+
sumgas5 += res.data[i].f_gas5
|
|
55
|
+
sumgas6 += res.data[i].f_gas6
|
|
56
|
+
sumgas7 += res.data[i].f_gas7
|
|
57
|
+
sumgas8 += res.data[i].f_gas8
|
|
58
|
+
sumgas9 += res.data[i].f_gas9
|
|
59
|
+
sumgas10 += res.data[i].f_gas10
|
|
60
|
+
sumgas11 += res.data[i].f_gas11
|
|
61
|
+
sumgas12 += res.data[i].f_gas12
|
|
62
|
+
}
|
|
63
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
64
|
+
this.name.push(res.data[i].f_gastype)
|
|
65
|
+
let arr2 = []
|
|
66
|
+
let arr1 = []
|
|
67
|
+
arr1.push(res.data[i].f_gas1)
|
|
68
|
+
arr1.push(res.data[i].f_gas2)
|
|
69
|
+
arr1.push(res.data[i].f_gas3)
|
|
70
|
+
arr1.push(res.data[i].f_gas4)
|
|
71
|
+
arr1.push(res.data[i].f_gas5)
|
|
72
|
+
arr1.push(res.data[i].f_gas6)
|
|
73
|
+
arr1.push(res.data[i].f_gas7)
|
|
74
|
+
arr1.push(res.data[i].f_gas8)
|
|
75
|
+
arr1.push(res.data[i].f_gas9)
|
|
76
|
+
arr1.push(res.data[i].f_gas10)
|
|
77
|
+
arr1.push(res.data[i].f_gas11)
|
|
78
|
+
arr1.push(res.data[i].f_gas12)
|
|
79
|
+
if (sumgas1 > 0 ) {
|
|
80
|
+
arr2.push((res.data[i].f_gas1*100/sumgas1).toFixed(2))
|
|
81
|
+
} else {
|
|
82
|
+
arr2.push(0)
|
|
83
|
+
}
|
|
84
|
+
if (sumgas2 > 0 ) {
|
|
85
|
+
arr2.push((res.data[i].f_gas2*100/sumgas2).toFixed(2))
|
|
86
|
+
} else {
|
|
87
|
+
arr2.push(0)
|
|
88
|
+
}
|
|
89
|
+
if (sumgas3 > 0 ) {
|
|
90
|
+
arr2.push((res.data[i].f_gas3*100/sumgas3).toFixed(2))
|
|
91
|
+
} else {
|
|
92
|
+
arr2.push(0)
|
|
93
|
+
}
|
|
94
|
+
if (sumgas4 > 0 ) {
|
|
95
|
+
arr2.push((res.data[i].f_gas4*100/sumgas4).toFixed(2))
|
|
96
|
+
} else {
|
|
97
|
+
arr2.push(0)
|
|
98
|
+
}
|
|
99
|
+
if (sumgas5 > 0 ) {
|
|
100
|
+
arr2.push((res.data[i].f_gas5*100/sumgas5).toFixed(2))
|
|
101
|
+
} else {
|
|
102
|
+
arr2.push(0)
|
|
103
|
+
}
|
|
104
|
+
if (sumgas6 > 0 ) {
|
|
105
|
+
arr2.push((res.data[i].f_gas6*100/sumgas6).toFixed(2))
|
|
106
|
+
} else {
|
|
107
|
+
arr2.push(0)
|
|
108
|
+
}
|
|
109
|
+
if (sumgas7 > 0 ) {
|
|
110
|
+
arr2.push((res.data[i].f_gas7*100/sumgas7).toFixed(2))
|
|
111
|
+
} else {
|
|
112
|
+
arr2.push(0)
|
|
113
|
+
}
|
|
114
|
+
if (sumgas8 > 0 ) {
|
|
115
|
+
arr2.push((res.data[i].f_gas8*100/sumgas8).toFixed(2))
|
|
116
|
+
} else {
|
|
117
|
+
arr2.push(0)
|
|
118
|
+
}
|
|
119
|
+
if (sumgas9 > 0 ) {
|
|
120
|
+
arr2.push((res.data[i].f_gas9*100/sumgas9).toFixed(2))
|
|
121
|
+
} else {
|
|
122
|
+
arr2.push(0)
|
|
123
|
+
}
|
|
124
|
+
if (sumgas10 > 0 ) {
|
|
125
|
+
arr2.push((res.data[i].f_gas10*100/sumgas10).toFixed(2))
|
|
126
|
+
} else {
|
|
127
|
+
arr2.push(0)
|
|
128
|
+
}
|
|
129
|
+
if (sumgas11 > 0 ) {
|
|
130
|
+
arr2.push((res.data[i].f_gas11*100/sumgas11).toFixed(2))
|
|
131
|
+
} else {
|
|
132
|
+
arr2.push(0)
|
|
133
|
+
}
|
|
134
|
+
if (sumgas12 > 0 ) {
|
|
135
|
+
arr2.push((res.data[i].f_gas12*100/sumgas12).toFixed(2))
|
|
136
|
+
} else {
|
|
137
|
+
arr2.push(0)
|
|
138
|
+
}
|
|
139
|
+
this.yData.push(arr1)
|
|
140
|
+
this.yData2.push(arr2)
|
|
141
|
+
}
|
|
142
|
+
this.param = {
|
|
143
|
+
legendData:this.name,
|
|
144
|
+
xData :this.xData,
|
|
145
|
+
yData:this.yData,
|
|
146
|
+
}
|
|
147
|
+
this.param1 = {
|
|
148
|
+
legendData:this.name,
|
|
149
|
+
xData :this.xData,
|
|
150
|
+
yData:this.yData2,
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
watch: {
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
</script>
|
|
159
|
+
|
|
160
|
+
<style scoped>
|
|
161
|
+
|
|
162
|
+
</style>
|
|
@@ -118,8 +118,11 @@
|
|
|
118
118
|
</tfoot>
|
|
119
119
|
</table>
|
|
120
120
|
{{{ $parent.reportStr}}}
|
|
121
|
+
<market-month-chart v-ref:getChart >
|
|
122
|
+
</market-month-chart>
|
|
121
123
|
</div>
|
|
122
124
|
</criteria-paged>
|
|
125
|
+
|
|
123
126
|
</div>
|
|
124
127
|
</template>
|
|
125
128
|
|
|
@@ -142,6 +145,7 @@ export default {
|
|
|
142
145
|
depid: [],
|
|
143
146
|
orgname: '',
|
|
144
147
|
depname: '',
|
|
148
|
+
condition:null,
|
|
145
149
|
criteriaShow: false,
|
|
146
150
|
operatorname: '',
|
|
147
151
|
orgCondtionStr: '1=1',
|
|
@@ -187,7 +191,10 @@ export default {
|
|
|
187
191
|
orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
|
|
188
192
|
}*/
|
|
189
193
|
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
194
|
+
this.condition = this.$refs.paged.model.params
|
|
190
195
|
this.$refs.paged.search(args)
|
|
196
|
+
console.log(this.$refs.paged)
|
|
197
|
+
this.$refs.paged.$refs.getchart.getParams(this.$refs.paged.model.params)
|
|
191
198
|
},
|
|
192
199
|
|
|
193
200
|
hidden() {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<tabs header="气费预收款情况汇总" v-if="permission('气费预收款情况汇总')">
|
|
8
8
|
<pre-gas-list v-if="show.includes('气费预收款情况汇总')"></pre-gas-list>
|
|
9
9
|
</tabs>
|
|
10
|
-
<tabs header="
|
|
11
|
-
<overdue-list v-if="show.includes('
|
|
10
|
+
<tabs header="违约金情况汇总" v-if="permission('违约金情况汇总')">
|
|
11
|
+
<overdue-list v-if="show.includes('违约金情况汇总')"></overdue-list>
|
|
12
12
|
</tabs>
|
|
13
13
|
<tabs header="气费收款情况汇总" v-if="permission('气费收款情况汇总')">
|
|
14
14
|
<sellinggas-list v-if="show.includes('气费收款情况汇总')"></sellinggas-list>
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
:header="$parent.$parent.other"
|
|
50
50
|
sqlurl="rs/logic/exportfile"
|
|
51
51
|
sql-name="getOverdueList"
|
|
52
|
-
template-name='
|
|
52
|
+
template-name='违约金情况导出'
|
|
53
53
|
:choose-col="true"></export-excel>
|
|
54
54
|
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
55
55
|
:defaultfield="$parent.$parent.defaultfield"
|
|
56
|
-
titletable="
|
|
56
|
+
titletable="违约金情况"
|
|
57
57
|
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
58
58
|
|
|
59
59
|
<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>
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<tr><th rowspan=2><nobr>月份</nobr></th>
|
|
82
82
|
<th rowspan=2><nobr>期初余额</nobr></th>
|
|
83
83
|
<th rowspan=2><nobr>本期发生额</nobr></th>
|
|
84
|
-
<th colspan="4"><nobr
|
|
84
|
+
<th colspan="4"><nobr>本期实收违约金额</nobr></th>
|
|
85
85
|
<th rowspan=2>
|
|
86
86
|
<nobr>小计</nobr>
|
|
87
87
|
</th>
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
191
191
|
}
|
|
192
192
|
export default {
|
|
193
|
-
title: '
|
|
193
|
+
title: '违约金情况汇总',
|
|
194
194
|
data() {
|
|
195
195
|
return {
|
|
196
196
|
data: {},
|