manage-client 4.0.37 → 4.0.38
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/package.json +1 -1
- package/src/components/SellReport/SellingTable.vue +44 -18
- package/src/components/sale/businessquery/chargeRecordMaintenanceQuery.vue +1 -3
- package/src/filiale/fugou/UserGasEcharts.vue +220 -0
- package/src/filiale/fugou/UserLostContactAnalysis.vue +721 -0
- package/src/filiale/fugou/WebHandplanQuery.vue +3 -3
- package/src/filiale/fugou/sale.js +2 -0
- package/src/filiale/jinbin/exportConfig.js +1110 -0
- package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
- package/src/filiale/jinbin/sale.js +7 -0
- package/src/filiale/qianneng/QnJgqGscbmxTL.vue +684 -0
- package/src/filiale/qianneng/QnJgqMycbmxTL.vue +699 -0
- package/src/filiale/qianneng/QnJgqReport.vue +7 -1
- package/src/filiale/qianneng/exportConfig.js +10 -0
- package/src/filiale/qianneng/reportManage.js +5 -0
- package/src/filiale/yangchun/RecordInfoQuery.vue +20 -0
- package/src/filiale/yangchun/UserQuery.vue +5 -5
- package/src/filiale/yangchun/config/exportConfig.js +1 -1
- package/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileChanges/last-build.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.5/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search" v-if="!show">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<div style="flex:1;" class="flex" >
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
7
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
8
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
11
|
+
|
|
12
|
+
<div class="col-sm-2 form-group">
|
|
13
|
+
<label class="font_normal_body">用气性质</label>
|
|
14
|
+
<v-select :value.sync="model.u_xyqxz"
|
|
15
|
+
:options='$parent.$parent.yqxzArray' placeholder='请选择' v-model="model.u_xyqxz" multiple
|
|
16
|
+
condition="r_yqxzcfl in {}"
|
|
17
|
+
></v-select>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label class="font_normal_body">抄表期间</label>
|
|
22
|
+
<v-select :value.sync="model.bjlx"
|
|
23
|
+
:options='$parent.$parent.cbqjArray' placeholder='请选择' v-model="model.g_cbqj" multiple
|
|
24
|
+
condition="g_cbqj in {}"
|
|
25
|
+
></v-select>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="col-sm-2 form-group">
|
|
29
|
+
<label class="font_normal_body">客户编号</label>
|
|
30
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.b_yhh"
|
|
31
|
+
condition="b_yhh = '{}' " placeholder="客户编号">
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="span" style="float:right;">
|
|
35
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
|
|
36
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
37
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
38
|
+
|
|
39
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
40
|
+
:field="$parent.$parent.getExportField"
|
|
41
|
+
:footer="$parent.$parent.footer"
|
|
42
|
+
:header="$parent.$parent.other"
|
|
43
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="qnJgqMyxsmx" template-name='民用抄表明细导出'
|
|
44
|
+
:choose-col="true"></export-excel>
|
|
45
|
+
|
|
46
|
+
<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>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</criteria>
|
|
51
|
+
|
|
52
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" @dblclick="$parent.dblclick" v-ref:grid>
|
|
53
|
+
<template partial='head'>
|
|
54
|
+
<tr>
|
|
55
|
+
<th>
|
|
56
|
+
<nobr>用户号</nobr>
|
|
57
|
+
</th>
|
|
58
|
+
<th>
|
|
59
|
+
<nobr>用户名</nobr>
|
|
60
|
+
</th>
|
|
61
|
+
<th>
|
|
62
|
+
<nobr>用气地址</nobr>
|
|
63
|
+
</th>
|
|
64
|
+
<th>
|
|
65
|
+
<nobr>商品名称</nobr>
|
|
66
|
+
</th>
|
|
67
|
+
<th>
|
|
68
|
+
<nobr>抄表期间</nobr>
|
|
69
|
+
</th>
|
|
70
|
+
<th>
|
|
71
|
+
<nobr>起方</nobr>
|
|
72
|
+
</th>
|
|
73
|
+
<th>
|
|
74
|
+
<nobr>止方</nobr>
|
|
75
|
+
</th>
|
|
76
|
+
<th>
|
|
77
|
+
<nobr>气量</nobr>
|
|
78
|
+
</th>
|
|
79
|
+
<th>
|
|
80
|
+
<nobr>单价</nobr>
|
|
81
|
+
</th>
|
|
82
|
+
<th>
|
|
83
|
+
<nobr>金额</nobr>
|
|
84
|
+
</th>
|
|
85
|
+
<th>
|
|
86
|
+
<nobr>违约金</nobr>
|
|
87
|
+
</th>
|
|
88
|
+
<th>
|
|
89
|
+
<nobr>金额合计</nobr>
|
|
90
|
+
</th>
|
|
91
|
+
<th>
|
|
92
|
+
<nobr>用气性质</nobr>
|
|
93
|
+
</th>
|
|
94
|
+
<th>
|
|
95
|
+
<nobr>日期</nobr>
|
|
96
|
+
</th>
|
|
97
|
+
<th>
|
|
98
|
+
<nobr>月份</nobr>
|
|
99
|
+
</th>
|
|
100
|
+
<th>
|
|
101
|
+
<nobr>抄表员</nobr>
|
|
102
|
+
</th>
|
|
103
|
+
</tr>
|
|
104
|
+
</template>
|
|
105
|
+
<template partial='body'>
|
|
106
|
+
<td style="text-align: center;">
|
|
107
|
+
<nobr>{{row.b_yhh}}</nobr>
|
|
108
|
+
</td>
|
|
109
|
+
<td style="text-align: center;">
|
|
110
|
+
<nobr>{{row.c_yhmc}}</nobr>
|
|
111
|
+
</td>
|
|
112
|
+
<td style="text-align: center;">
|
|
113
|
+
<nobr>{{row.d_yqdz}}</nobr>
|
|
114
|
+
</td>
|
|
115
|
+
<td style="text-align: center;">
|
|
116
|
+
<nobr>{{row.e_spmc}}</nobr>
|
|
117
|
+
</td>
|
|
118
|
+
<td style="text-align: center;">
|
|
119
|
+
<nobr>{{row.g_cbqj}}</nobr>
|
|
120
|
+
</td>
|
|
121
|
+
<td style="text-align: center;">
|
|
122
|
+
<nobr>{{row.h_csqf}}</nobr>
|
|
123
|
+
</td>
|
|
124
|
+
<td style="text-align: center;">
|
|
125
|
+
<nobr>{{row.i_cszf}}</nobr>
|
|
126
|
+
</td>
|
|
127
|
+
<td style="text-align: center;">
|
|
128
|
+
<nobr>{{row.j_ysql}}</nobr>
|
|
129
|
+
</td>
|
|
130
|
+
<td style="text-align: center;">
|
|
131
|
+
<nobr>{{row.k_dj}}</nobr>
|
|
132
|
+
</td>
|
|
133
|
+
<td style="text-align: center;">
|
|
134
|
+
<nobr>{{row.l_je}}</nobr>
|
|
135
|
+
</td>
|
|
136
|
+
<td style="text-align: center;">
|
|
137
|
+
<nobr>{{row.m_znj}}</nobr>
|
|
138
|
+
</td>
|
|
139
|
+
<td style="text-align: center;">
|
|
140
|
+
<nobr>{{row.o_sjje}}</nobr>
|
|
141
|
+
</td>
|
|
142
|
+
<td style="text-align: center;">
|
|
143
|
+
<nobr>{{row.r_yqxzcfl}}</nobr>
|
|
144
|
+
</td>
|
|
145
|
+
<td style="text-align: center;">
|
|
146
|
+
<nobr>{{row.s_jfrq}}</nobr>
|
|
147
|
+
</td>
|
|
148
|
+
<td style="text-align: center;">
|
|
149
|
+
<nobr>{{row.t_jfyf}}</nobr>
|
|
150
|
+
</td>
|
|
151
|
+
<td style="text-align: center;">
|
|
152
|
+
<nobr>{{row.cbg}}</nobr>
|
|
153
|
+
</td>
|
|
154
|
+
</template>
|
|
155
|
+
<template partial='foot'>
|
|
156
|
+
</template>
|
|
157
|
+
</data-grid>
|
|
158
|
+
</criteria-paged>
|
|
159
|
+
<table class="table-hover">
|
|
160
|
+
<tr style="position: relative" class="table-bordered">
|
|
161
|
+
<td
|
|
162
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
163
|
+
汇总信息
|
|
164
|
+
</td>
|
|
165
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
166
|
+
气量合计: {{sumsmodel.j_ysql}}  金额合计: {{sumsmodel.l_je}}  违约金合计: {{sumsmodel.m_znj}}  金额合计合计: {{sumsmodel.o_sjje}}
|
|
167
|
+
</td>
|
|
168
|
+
</tr>
|
|
169
|
+
</table>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="basic-main" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
|
|
175
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
</template>
|
|
179
|
+
|
|
180
|
+
<script>
|
|
181
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
182
|
+
import defaultPrint from '../../components/sale/config/DefaultPrint'
|
|
183
|
+
import exportConfig from './exportConfig'
|
|
184
|
+
|
|
185
|
+
let readySomething = async function (self) {
|
|
186
|
+
self.$MagGetSaleParam.initinputtor();
|
|
187
|
+
self.getinputtores();
|
|
188
|
+
// 获取区县
|
|
189
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
190
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
191
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
192
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
193
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export default {
|
|
197
|
+
title: '民用汇总报表',
|
|
198
|
+
data() {
|
|
199
|
+
return {
|
|
200
|
+
other:[],
|
|
201
|
+
footer:[],
|
|
202
|
+
model: new PagedList('api/af-revenue/sql/qnJgqMyxsmx', 20, {}, {j_ysql: 0, l_je: 0, m_znj:0, o_sjje:0}),
|
|
203
|
+
criteriaShow: false,
|
|
204
|
+
orgCondtionStr: '',
|
|
205
|
+
modelval: [],
|
|
206
|
+
printshow: false,
|
|
207
|
+
all: false,
|
|
208
|
+
fields: {},
|
|
209
|
+
//排序
|
|
210
|
+
orderitem:'',
|
|
211
|
+
orderFields: {
|
|
212
|
+
|
|
213
|
+
},
|
|
214
|
+
gasproperties:[],
|
|
215
|
+
jfnfArray:[],
|
|
216
|
+
yqxzArray: [],
|
|
217
|
+
bjlxArray: [],
|
|
218
|
+
cbqjArray: [],
|
|
219
|
+
//默认打印列
|
|
220
|
+
defaultfield: [],
|
|
221
|
+
config: {
|
|
222
|
+
defaultPrint: []
|
|
223
|
+
},
|
|
224
|
+
balance2:'',
|
|
225
|
+
thead: '',
|
|
226
|
+
tfoot: '',
|
|
227
|
+
area: [],
|
|
228
|
+
//合计数据
|
|
229
|
+
sumsmodel: {},
|
|
230
|
+
initres: {
|
|
231
|
+
org:[this.$login.f.orgid],
|
|
232
|
+
dep:[],
|
|
233
|
+
user:[],
|
|
234
|
+
},
|
|
235
|
+
userdetail: {
|
|
236
|
+
show: false,
|
|
237
|
+
f_userinfo_code: '',
|
|
238
|
+
f_filialeids: ''
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
show:false,
|
|
242
|
+
rowdata:{},
|
|
243
|
+
meterInfo:{},
|
|
244
|
+
deviceInfo:{},
|
|
245
|
+
condition2:'',
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
weixinSign:[{label:"全部",value:""},{label:"已绑定",value:"已绑定"},{label:"未绑定",value:"未绑定"}],
|
|
249
|
+
//小区
|
|
250
|
+
residentialArea: [],
|
|
251
|
+
//表册片区
|
|
252
|
+
bookSlice:[{label: '全部',value: ''}],
|
|
253
|
+
inputtores:[{label: '全部',value: ''}], //抄表员
|
|
254
|
+
allorgid:[],
|
|
255
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
256
|
+
dypayment:[{label:"全部",value:""},{label:"银行代扣",value:"银行代扣",},{label:"现金缴费",value:"现金缴费",}],
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
ready() {
|
|
260
|
+
this.getaddress()
|
|
261
|
+
// this.$refs.paged.$refs.cri.model.f_user_state=['正常']
|
|
262
|
+
readySomething(this).then(() => {
|
|
263
|
+
this.$emit('ready')
|
|
264
|
+
}).catch((error) => {
|
|
265
|
+
this.$emit('error', error)
|
|
266
|
+
})
|
|
267
|
+
//this.initAreas(this.$login.f.orgid)
|
|
268
|
+
//self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
269
|
+
//self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
270
|
+
this.getJfnf()
|
|
271
|
+
this.getBjlx()
|
|
272
|
+
this.getYqxz()
|
|
273
|
+
this.getCbqj()
|
|
274
|
+
},
|
|
275
|
+
methods: {
|
|
276
|
+
async getinputtores () {
|
|
277
|
+
// 获取抄表员
|
|
278
|
+
let rs = []
|
|
279
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
280
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
281
|
+
let temp = {
|
|
282
|
+
label: this.$login.f.f_gasman[i].name,
|
|
283
|
+
value: this.$login.f.f_gasman[i].name
|
|
284
|
+
}
|
|
285
|
+
rs.push(temp)
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
this.inputtores = [{label: '全部', value: ''}, ...rs]
|
|
289
|
+
},
|
|
290
|
+
async updateParams() {
|
|
291
|
+
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
292
|
+
this.inputtores = [];
|
|
293
|
+
this.inputtores.push({label: "全部", value: ""})
|
|
294
|
+
this.initSlice(this.f_filialeid)
|
|
295
|
+
if(this.allorgid!=null){
|
|
296
|
+
this.allorgid.forEach((res)=>{
|
|
297
|
+
this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
|
|
298
|
+
})
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
async getJfnf(){
|
|
302
|
+
let HttpReset = new HttpResetClass()
|
|
303
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_Final', {
|
|
304
|
+
data: {
|
|
305
|
+
condition: "f_orgid='21400'",
|
|
306
|
+
tablename: 'qn_jgq_mymx',
|
|
307
|
+
groupitem: 't_jfyf',
|
|
308
|
+
orderitem: 't_jfyf',
|
|
309
|
+
items: 't_jfyf'
|
|
310
|
+
}
|
|
311
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
312
|
+
let nameArr = [{label: '全部', value: ''}]
|
|
313
|
+
for (let row of data.data){
|
|
314
|
+
nameArr.push({label: row.t_jfyf, value: row.t_jfyf})
|
|
315
|
+
}
|
|
316
|
+
this.jfnfArray = nameArr
|
|
317
|
+
},
|
|
318
|
+
async getYqxz(){
|
|
319
|
+
let HttpReset = new HttpResetClass()
|
|
320
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_Final', {
|
|
321
|
+
data: {
|
|
322
|
+
condition: "f_orgid='21400'",
|
|
323
|
+
tablename: 'qn_jgq_mymx',
|
|
324
|
+
groupitem: 'r_yqxzcfl',
|
|
325
|
+
orderitem: 'r_yqxzcfl',
|
|
326
|
+
items: 'r_yqxzcfl'
|
|
327
|
+
}
|
|
328
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
329
|
+
let nameArr = [{label: '全部', value: ''}]
|
|
330
|
+
for (let row of data.data){
|
|
331
|
+
nameArr.push({label: row.r_yqxzcfl, value: row.r_yqxzcfl})
|
|
332
|
+
}
|
|
333
|
+
this.yqxzArray = nameArr
|
|
334
|
+
},
|
|
335
|
+
async getBjlx(){
|
|
336
|
+
let HttpReset = new HttpResetClass()
|
|
337
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_Final', {
|
|
338
|
+
data: {
|
|
339
|
+
condition: "f_orgid='21400'",
|
|
340
|
+
tablename: 'qn_jgq_mymx',
|
|
341
|
+
groupitem: 'bjlx',
|
|
342
|
+
orderitem: 'bjlx',
|
|
343
|
+
items: 'bjlx'
|
|
344
|
+
}
|
|
345
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
346
|
+
let nameArr = [{label: '全部', value: ''}]
|
|
347
|
+
for (let row of data.data){
|
|
348
|
+
nameArr.push({label: row.bjlx, value: row.bjlx})
|
|
349
|
+
}
|
|
350
|
+
this.bjlxArray = nameArr
|
|
351
|
+
},
|
|
352
|
+
async getCbqj(){
|
|
353
|
+
let HttpReset = new HttpResetClass()
|
|
354
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_Final', {
|
|
355
|
+
data: {
|
|
356
|
+
condition: "f_orgid='21400'",
|
|
357
|
+
tablename: 'qn_jgq_mymx',
|
|
358
|
+
groupitem: 'g_cbqj',
|
|
359
|
+
orderitem: 'g_cbqj',
|
|
360
|
+
items: 'g_cbqj'
|
|
361
|
+
}
|
|
362
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
363
|
+
let nameArr = [{label: '全部', value: ''}]
|
|
364
|
+
for (let row of data.data){
|
|
365
|
+
nameArr.push({label: row.bjlx, value: row.bjlx})
|
|
366
|
+
}
|
|
367
|
+
this.cbqjArray = nameArr
|
|
368
|
+
},
|
|
369
|
+
async getGaspropperties(){
|
|
370
|
+
let HttpReset = new HttpResetClass()
|
|
371
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/singleTable_Final', {
|
|
372
|
+
data: {
|
|
373
|
+
condition: "f_orgid='21400'",
|
|
374
|
+
tablename: 'qn_jgq_myhz',
|
|
375
|
+
groupitem: 'r_yqxzcfl',
|
|
376
|
+
orderitem: 'r_yqxzcfl',
|
|
377
|
+
items: 'r_yqxzcfl'
|
|
378
|
+
}
|
|
379
|
+
}, {resolveMsg: null, rejectMsg: '获取失败!'})
|
|
380
|
+
let nameArr = [{label: '全部', value: ''}]
|
|
381
|
+
for (let row of data.data){
|
|
382
|
+
nameArr.push({label: row.r_yqxzcfl, value: row.r_yqxzcfl})
|
|
383
|
+
}
|
|
384
|
+
this.gasproperties = nameArr
|
|
385
|
+
},
|
|
386
|
+
getotherfooter () {
|
|
387
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
388
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
389
|
+
this.other = [];
|
|
390
|
+
this.footer = [];
|
|
391
|
+
let exportdata = this.getCondition;
|
|
392
|
+
let otherInData = [];
|
|
393
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
394
|
+
let footerData = [], exportfield = this.getExportField;
|
|
395
|
+
footerData.push("合计");
|
|
396
|
+
let self = this;
|
|
397
|
+
for (var field in self.sumsmodel) {
|
|
398
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
399
|
+
}
|
|
400
|
+
this.footer.push(footerData);
|
|
401
|
+
this.other.push(otherInData);
|
|
402
|
+
},
|
|
403
|
+
async getaddress(){
|
|
404
|
+
console.log('开始获取小区')
|
|
405
|
+
let HttpReset = new HttpResetClass()
|
|
406
|
+
var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
|
|
407
|
+
data: {
|
|
408
|
+
condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
|
|
409
|
+
}
|
|
410
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
411
|
+
console.log('小区',data)
|
|
412
|
+
let house = []
|
|
413
|
+
for (let row of data.data){
|
|
414
|
+
console.log('开始保存小区')
|
|
415
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
416
|
+
}
|
|
417
|
+
this.residentialArea = house
|
|
418
|
+
},
|
|
419
|
+
|
|
420
|
+
//把数据库查询数据转换为下拉数据
|
|
421
|
+
calculate(rows){
|
|
422
|
+
let data = []
|
|
423
|
+
rows.forEach((row, n) => {
|
|
424
|
+
data[n] = {label: row.f_residential_area, value: row.id}
|
|
425
|
+
})
|
|
426
|
+
return data
|
|
427
|
+
},
|
|
428
|
+
search(){
|
|
429
|
+
console.log("=====search====")
|
|
430
|
+
//this.$refs.paged.$refs.cri.search()
|
|
431
|
+
this.$refs.paged.$refs.cri.search()
|
|
432
|
+
},
|
|
433
|
+
cancel(obj) {
|
|
434
|
+
console.log("=====cancel====" + obj)
|
|
435
|
+
this.show = false
|
|
436
|
+
},
|
|
437
|
+
showmsg(obj){
|
|
438
|
+
this.rowdata=obj
|
|
439
|
+
this.show=true
|
|
440
|
+
// let http = new HttpResetClass()
|
|
441
|
+
// http.load('POST','api/af-revenue/sql/getUserMeter',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
|
|
442
|
+
// {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
443
|
+
// this.meterInfo = res.data})
|
|
444
|
+
// let http2 = new HttpResetClass()
|
|
445
|
+
// http2.load('POST','api/af-revenue/sql/deviceQuery',{data: {condition: `f_userinfo_id ='${obj.f_userinfo_id}'`}},
|
|
446
|
+
// {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
447
|
+
// this.deviceInfo = res.data})
|
|
448
|
+
|
|
449
|
+
// this.f_userinfo_id=obj.f_userinfo_id
|
|
450
|
+
},
|
|
451
|
+
userTypeChange () {
|
|
452
|
+
this.gasproperties=[]
|
|
453
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
454
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
455
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
456
|
+
}
|
|
457
|
+
else{
|
|
458
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
//初始化片区
|
|
462
|
+
async initSlice (val) {
|
|
463
|
+
if (val) {
|
|
464
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
|
465
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
466
|
+
userid: this.$login.f.id
|
|
467
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
468
|
+
let arr = getAllArea.data.filter((res) => {
|
|
469
|
+
return res.parentid == val
|
|
470
|
+
})
|
|
471
|
+
this.bookSlice = []
|
|
472
|
+
console.log('过滤之后的片区-------------------', arr)
|
|
473
|
+
arr.forEach((res) => {
|
|
474
|
+
this.bookSlice.push({label: res.name, value: res.name})
|
|
475
|
+
})
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
async initAreas (val) {
|
|
479
|
+
|
|
480
|
+
if (val) {
|
|
481
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
|
482
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
483
|
+
userid: this.$login.f.id
|
|
484
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
485
|
+
|
|
486
|
+
let arr = getAllArea.data.filter((res) => {
|
|
487
|
+
return res.parentid == val
|
|
488
|
+
})
|
|
489
|
+
console.log('过滤之后的片区', arr)
|
|
490
|
+
this.sliceArea = []
|
|
491
|
+
arr.forEach((res) => {
|
|
492
|
+
this.sliceArea.push({label: res.name, value: res.name})
|
|
493
|
+
})
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
selfSearch(args) {
|
|
497
|
+
console.log('args', args)
|
|
498
|
+
console.log('this.orgCondtionStr', this.orgCondtionStr)
|
|
499
|
+
if (!this.orgCondtionStr) {
|
|
500
|
+
args.condition = `${args.condition}` + " and tr.f_orgid = " + this.$login.f.orgid
|
|
501
|
+
} else {
|
|
502
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
503
|
+
}
|
|
504
|
+
this.condition2 = args.condition
|
|
505
|
+
this.model.search(args.condition, args.model)
|
|
506
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
507
|
+
console.log('合计字段', this.sumsmodel)
|
|
508
|
+
},
|
|
509
|
+
clear() {
|
|
510
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
511
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
512
|
+
})
|
|
513
|
+
},
|
|
514
|
+
hidden() {
|
|
515
|
+
this.criteriaShow = !this.criteriaShow
|
|
516
|
+
},
|
|
517
|
+
getRes(obj) {
|
|
518
|
+
this.orgCondtionStr = obj
|
|
519
|
+
},
|
|
520
|
+
stamp() {
|
|
521
|
+
this.all = false
|
|
522
|
+
//默认选择要打印的列
|
|
523
|
+
this.modelval = defaultPrint.config
|
|
524
|
+
this.fields = this.getfield
|
|
525
|
+
console.log('所有打印字段', this.fields)
|
|
526
|
+
this.printshow = true
|
|
527
|
+
this.put()
|
|
528
|
+
},
|
|
529
|
+
put() {
|
|
530
|
+
// 对Modelval进行排序
|
|
531
|
+
this.sortModelval()
|
|
532
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询统计报表</th></tr><tr>`
|
|
533
|
+
for (let key of this.modelval) {
|
|
534
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
535
|
+
}
|
|
536
|
+
this.thead += '</tr>'
|
|
537
|
+
},
|
|
538
|
+
print() {
|
|
539
|
+
this.$refs.print.PrintAsFile()
|
|
540
|
+
this.printshow = false
|
|
541
|
+
},
|
|
542
|
+
close() {
|
|
543
|
+
this.printshow = false
|
|
544
|
+
},
|
|
545
|
+
// 对选择的列进行排序
|
|
546
|
+
sortModelval() {
|
|
547
|
+
let sortModel = []
|
|
548
|
+
Object.keys(this.fields).forEach((key) => {
|
|
549
|
+
if (this.modelval.includes(key)) {
|
|
550
|
+
sortModel.push(key)
|
|
551
|
+
}
|
|
552
|
+
})
|
|
553
|
+
this.modelval = sortModel
|
|
554
|
+
console.log('选择的打印的字段', this.modelval)
|
|
555
|
+
},
|
|
556
|
+
dblclick(row, index) {
|
|
557
|
+
console.log('双击之后数据', row, index)
|
|
558
|
+
this.userdetail.show = true
|
|
559
|
+
this.userdetail.f_userinfo_code = row.f_userinfo_code
|
|
560
|
+
this.userdetail.f_filialeids = row.f_filialeids
|
|
561
|
+
},
|
|
562
|
+
sort (field, rule) {
|
|
563
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
564
|
+
for (let key in this.orderFields) {
|
|
565
|
+
if (key === field) {
|
|
566
|
+
this.orderFields[key] = rule
|
|
567
|
+
} else {
|
|
568
|
+
this.orderFields[key] = 'no'
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
// 如果新规则不排序,还原为默认排序
|
|
572
|
+
if (rule === 'no') {
|
|
573
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
574
|
+
} else {
|
|
575
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
this.search()
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
|
|
582
|
+
watch: {
|
|
583
|
+
'all'(val) {
|
|
584
|
+
if (val) {
|
|
585
|
+
this.modelval = this.bodyData
|
|
586
|
+
} else {
|
|
587
|
+
this.modelval = defaultPrint.config
|
|
588
|
+
this.put()
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
'modelval.length'() {
|
|
592
|
+
this.put()
|
|
593
|
+
},
|
|
594
|
+
sumsmodel:{
|
|
595
|
+
handler: function(val) {
|
|
596
|
+
this.getotherfooter();
|
|
597
|
+
},
|
|
598
|
+
deep: true
|
|
599
|
+
},
|
|
600
|
+
'orgCondtionStr'(val) {
|
|
601
|
+
let res = val.match(/'(.*?)'/)
|
|
602
|
+
console.log('正则提取:',res && res[1])
|
|
603
|
+
if (res) {
|
|
604
|
+
this.f_filialeid = res[1]
|
|
605
|
+
if(res.input !=null){
|
|
606
|
+
let resorgid = res.input.substring(res.input.indexOf("'"));
|
|
607
|
+
if(resorgid!= null && resorgid!=''){
|
|
608
|
+
resorgid = resorgid.substring(0,resorgid.lastIndexOf("'")+1);
|
|
609
|
+
// resorgid = resorgid.replaceAll("'","");
|
|
610
|
+
resorgid = resorgid.replace(/'/g,"");
|
|
611
|
+
this.allorgid = resorgid.split(",")
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
this.updateParams()
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
computed: {
|
|
619
|
+
// defaultexport() {
|
|
620
|
+
// return exportConfig.chargeexportConfig
|
|
621
|
+
// },
|
|
622
|
+
authArr () {
|
|
623
|
+
return this.$login.r ? this.$login.r : []
|
|
624
|
+
},
|
|
625
|
+
|
|
626
|
+
getCondition() {
|
|
627
|
+
return {condition: this.condition2,orderitem:this.orderitem}
|
|
628
|
+
},
|
|
629
|
+
getfield() {
|
|
630
|
+
let data = {}
|
|
631
|
+
this.bodyData.forEach((value, index) => {
|
|
632
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
633
|
+
})
|
|
634
|
+
//合计字段打印
|
|
635
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
636
|
+
if (this.sumsmodel) {
|
|
637
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
|
638
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
639
|
+
})
|
|
640
|
+
} else {
|
|
641
|
+
this.tfoot += '暂无'
|
|
642
|
+
}
|
|
643
|
+
this.tfoot += '</th></tr>'
|
|
644
|
+
return data
|
|
645
|
+
},
|
|
646
|
+
getExportField() {
|
|
647
|
+
return exportConfig.qnJgqMycbmxTL
|
|
648
|
+
},
|
|
649
|
+
inputtor () {
|
|
650
|
+
// 获取抄表员
|
|
651
|
+
console.log('获取抄表员', this.$login.f)
|
|
652
|
+
let rs = []
|
|
653
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
654
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
655
|
+
let temp = {
|
|
656
|
+
label: this.$login.f.f_gasman[i].name,
|
|
657
|
+
value: this.$login.f.f_gasman[i].name
|
|
658
|
+
}
|
|
659
|
+
rs.push(temp)
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
664
|
+
},
|
|
665
|
+
userstates() {
|
|
666
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
|
|
667
|
+
},
|
|
668
|
+
userLevels () {
|
|
669
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户等级')]
|
|
670
|
+
},
|
|
671
|
+
usertypes () {
|
|
672
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
673
|
+
},
|
|
674
|
+
hairpin() {
|
|
675
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('发卡状态')]
|
|
676
|
+
},
|
|
677
|
+
addressstate() {
|
|
678
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
|
|
679
|
+
},
|
|
680
|
+
fcalculation() {
|
|
681
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('结算方式')]
|
|
682
|
+
},
|
|
683
|
+
metertypes() {
|
|
684
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
685
|
+
},
|
|
686
|
+
accountsState() {
|
|
687
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
</script>
|
|
692
|
+
<style>
|
|
693
|
+
.back-red{ /* 红色背景 */
|
|
694
|
+
background-color: #F6C6CE;
|
|
695
|
+
}
|
|
696
|
+
.back-blue{ /* 蓝色背景 */
|
|
697
|
+
|
|
698
|
+
}
|
|
699
|
+
</style>
|