manage-client 3.3.244 → 3.3.245
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 +3 -3
- package/package.json +1 -1
- package/src/components/webmeter/gasStatistics/GasStatistics.vue +5 -5
- package/src/components/webmeter/gasStatistics/NewGasStatistics.vue +4 -4
- package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +1 -1
- package/src/filiale/fugou/RecordInfoQuery.vue +5 -0
- package/src/filiale/fugou/UserQuery.vue +1006 -0
- package/src/filiale/fugou/sale.js +1 -0
- package/src/filiale/hantou/ChargeQuery.vue +1441 -0
- package/src/filiale/hantou/GetNoMetereadData.vue +449 -0
- package/src/filiale/hantou/LostContactAnalysisList.vue +764 -0
- package/src/filiale/hantou/MeterExceptionList.vue +557 -0
- package/src/filiale/hantou/NewGasStatistics.vue +542 -0
- package/src/filiale/hantou/NewWebmeterSettlementAnalysis.vue +459 -0
- package/src/filiale/hantou/ReportDataQuery.vue +339 -0
- package/src/filiale/hantou/UserGasAll.vue +611 -0
- package/src/filiale/hantou/UserLostContactAnalysis.vue +718 -0
- package/src/filiale/hantou/sale.js +4 -0
- package/src/filiale/hantou/webmeterManage.js +21 -0
- package/src/filiale/qingtongxia/NewWebMeterHandPlan.vue +1 -1
|
@@ -0,0 +1,339 @@
|
|
|
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 form-group">
|
|
20
|
+
<label class="font_normal_body">用户地址</label>
|
|
21
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
22
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
23
|
+
</div>
|
|
24
|
+
<!-- <div class="col-sm-2">-->
|
|
25
|
+
<!-- <label class="font_normal_body">组织机构</label>-->
|
|
26
|
+
<!-- <res-select :initresid="$parent.$parent.org"-->
|
|
27
|
+
<!-- style="width:60%"-->
|
|
28
|
+
<!-- @res-select="$parent.$parent.getorg"-->
|
|
29
|
+
<!-- restype='organization'>-->
|
|
30
|
+
<!-- </res-select>-->
|
|
31
|
+
|
|
32
|
+
<!-- </div>-->
|
|
33
|
+
<div class="col-sm-2 form-group">
|
|
34
|
+
<label class="font_normal_body"> 公司 </label>
|
|
35
|
+
<right-tree @re-res="$parent.$parent.getorg"
|
|
36
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="span" style="float:right;">
|
|
39
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
40
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
41
|
+
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
42
|
+
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
43
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="manage_getReportDataQuery" template-name='结算查询导出'
|
|
44
|
+
:choose-col="true"></export-excel>
|
|
45
|
+
<div style="float: right" class="button_spacing"
|
|
46
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
47
|
+
@click="$parent.$parent.hidden()"></div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
53
|
+
<div class="col-sm-2 form-group">
|
|
54
|
+
<label class="font_normal_body">表 号</label>
|
|
55
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
56
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-sm-2 form-group">
|
|
59
|
+
<label class="font_normal_body"> 小区 </label>
|
|
60
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
|
|
61
|
+
condition="f_residential_area like '%{}%'" placeholder='小区'>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-2 form-group">
|
|
64
|
+
<label class="font_normal_body">气表品牌</label>
|
|
65
|
+
<v-select
|
|
66
|
+
placeholder='气表品牌'
|
|
67
|
+
:value.sync="model.f_meter_brand"
|
|
68
|
+
v-model="model.f_meter_brand"
|
|
69
|
+
:options='$parent.$parent.meterbrands'
|
|
70
|
+
close-on-select
|
|
71
|
+
condition="f_meter_brand='{}'">
|
|
72
|
+
</v-select>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-2 form-group" >
|
|
75
|
+
<label class="font_normal_body">气表型号</label>
|
|
76
|
+
<v-select
|
|
77
|
+
placeholder='气表型号'
|
|
78
|
+
:value.sync="model.f_meter_classify"
|
|
79
|
+
v-model="model.f_meter_classify"
|
|
80
|
+
:options='$parent.$parent.metertypes'
|
|
81
|
+
close-on-select
|
|
82
|
+
condition="f_meter_classify='{}'">
|
|
83
|
+
</v-select>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="col-sm-2 form-group">
|
|
86
|
+
<label for="startDate" class="font_normal_body">插入时间</label>
|
|
87
|
+
<datepicker id="startDate" placeholder="插入时间" style="width:60%"
|
|
88
|
+
v-model="model.startDate"
|
|
89
|
+
:value.sync="model.startDate"
|
|
90
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
91
|
+
:show-reset-button="true"
|
|
92
|
+
condition="f_insert_date >= '{}'">
|
|
93
|
+
</datepicker>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-2 form-group">
|
|
96
|
+
<label for="endDate" class="font_normal_body"> 至 </label>
|
|
97
|
+
<datepicker id="endDate" placeholder="插入时间" style="width:60%"
|
|
98
|
+
v-model="model.endDate"
|
|
99
|
+
:value.sync="model.endDate"
|
|
100
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
101
|
+
:show-reset-button="true"
|
|
102
|
+
condition="f_insert_date <= '{}'">
|
|
103
|
+
</datepicker>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-sm-2 form-group">
|
|
106
|
+
<label class="font_normal_body">客户类型</label>
|
|
107
|
+
<v-select :value.sync="model.f_user_type"
|
|
108
|
+
@change="$parent.$parent.userTypeChange()"
|
|
109
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
110
|
+
condition="f_user_type = '{}'"
|
|
111
|
+
close-on-select></v-select>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-sm-2 form-group">
|
|
114
|
+
<label class="font_normal_body">用气性质</label>
|
|
115
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
116
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
117
|
+
condition="f_gasproperties = '{}'"
|
|
118
|
+
close-on-select></v-select>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-2 form-group">
|
|
121
|
+
<label class="font_normal_body">用气类型</label>
|
|
122
|
+
<v-select :value.sync="model.f_user_nature" v-model="model.f_user_nature"
|
|
123
|
+
:options='$parent.$parent.usernatures' placeholder='请选择'
|
|
124
|
+
condition="f_user_nature = '{}'"
|
|
125
|
+
close-on-select></v-select>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
</div>
|
|
130
|
+
</criteria>
|
|
131
|
+
|
|
132
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
133
|
+
<template partial='head'>
|
|
134
|
+
<tr>
|
|
135
|
+
<th v-for="row in $parent.$parent.$parent.headData">
|
|
136
|
+
<nobr>{{row}}</nobr>
|
|
137
|
+
</th>
|
|
138
|
+
</tr>
|
|
139
|
+
</template>
|
|
140
|
+
<template partial='body'>
|
|
141
|
+
<tr v-for="row in $parent.$parent.$parent.model.rows">
|
|
142
|
+
<td style="text-align: center;" v-for="item in $parent.$parent.$parent.config.fieldMapping">
|
|
143
|
+
<nobr v-if="item == 'f_lowlithiumbattery'">{{row[item] == 1 ? '是' : '否'}}</nobr>
|
|
144
|
+
<nobr v-if="item == 'f_magneticinterference'">{{row[item] == 1 ? '异常' : '正常'}}</nobr>
|
|
145
|
+
<nobr v-if="item != 'f_magneticinterference' && item != 'f_lowlithiumbattery'">{{row[item]}}</nobr>
|
|
146
|
+
</td>
|
|
147
|
+
</tr>
|
|
148
|
+
</template>
|
|
149
|
+
<template partial='foot'></template>
|
|
150
|
+
</data-grid>
|
|
151
|
+
</criteria-paged>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</template>
|
|
156
|
+
|
|
157
|
+
<script>
|
|
158
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
159
|
+
import tableConfig from '../../components/sale/config/tableConfig'
|
|
160
|
+
import exportConfig from '../../components/sale/config/exportConfig'
|
|
161
|
+
import plugins from '../../plugins/GetLoginInfoService'
|
|
162
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
163
|
+
|
|
164
|
+
let readySomething = async function (self) {
|
|
165
|
+
await self.$MagLoadParams.loadParam()
|
|
166
|
+
self.initParams()
|
|
167
|
+
// self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
168
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
|
|
169
|
+
}
|
|
170
|
+
export default {
|
|
171
|
+
title: '上报数据查询',
|
|
172
|
+
data() {
|
|
173
|
+
return {
|
|
174
|
+
other:[],
|
|
175
|
+
sumsmodel: {},
|
|
176
|
+
footer:[],
|
|
177
|
+
model: new PagedList('api/af-revenue/sql/manage_getReportDataQuery', 20, {}),
|
|
178
|
+
criteriaShow: false,
|
|
179
|
+
config: {
|
|
180
|
+
fieldMapping: {
|
|
181
|
+
f_userinfo_code: '客户编号',
|
|
182
|
+
f_user_name: '客户名称'
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
WarningType: [
|
|
186
|
+
{label: '全部', value: ''}
|
|
187
|
+
],
|
|
188
|
+
Warningstyles: [
|
|
189
|
+
{label: '全部', value: ''}
|
|
190
|
+
],
|
|
191
|
+
styles:false,
|
|
192
|
+
headData: [],
|
|
193
|
+
bodyData: [],
|
|
194
|
+
gasproperties:[],
|
|
195
|
+
orgCondtionStr: " and f_filialeid in (" + this.$login.f.orgid+")",
|
|
196
|
+
resshow:['company'],
|
|
197
|
+
org:[this.$login.f.orgid],
|
|
198
|
+
meterbrands:[]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
created () {
|
|
202
|
+
this.config.fieldMapping=tableConfig.ReportDataQuery
|
|
203
|
+
console.log("========================")
|
|
204
|
+
console.log(this.config.fieldMapping)
|
|
205
|
+
var item="用户编号"
|
|
206
|
+
console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
|
|
207
|
+
console.log(this.config.fieldMapping[item])
|
|
208
|
+
this.headData=Object.keys(this.config.fieldMapping)
|
|
209
|
+
// for(var i=0;i<this.config.fieldMapping;i++){
|
|
210
|
+
// this.headData.push(this.config.fieldMapping[i])
|
|
211
|
+
// }
|
|
212
|
+
|
|
213
|
+
},
|
|
214
|
+
ready() {
|
|
215
|
+
this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
216
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
217
|
+
console.log(this.$refs.paged.$refs.cri.model.startDate)
|
|
218
|
+
console.log(this.$refs.paged.$refs.cri.model.endDate)
|
|
219
|
+
readySomething(this).then(() => {
|
|
220
|
+
this.$emit('ready')
|
|
221
|
+
}).catch((error) => {
|
|
222
|
+
this.$emit('error', error)
|
|
223
|
+
})
|
|
224
|
+
},
|
|
225
|
+
methods: {
|
|
226
|
+
userTypeChange () {
|
|
227
|
+
this.gasproperties=[]
|
|
228
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
229
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
230
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
231
|
+
}
|
|
232
|
+
else{
|
|
233
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
initParams() {
|
|
237
|
+
// 初始化气表品牌
|
|
238
|
+
let brandArr = []
|
|
239
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
240
|
+
let temp = {}
|
|
241
|
+
if(item.value.f_meter_type==='物联网表'){
|
|
242
|
+
temp.label = item.label
|
|
243
|
+
temp.value = item.value.f_meter_brand
|
|
244
|
+
brandArr.push(temp )
|
|
245
|
+
}
|
|
246
|
+
})
|
|
247
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
248
|
+
//初始化气表价格
|
|
249
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
250
|
+
},
|
|
251
|
+
showMeterStyle() {
|
|
252
|
+
this.styles = true
|
|
253
|
+
},
|
|
254
|
+
search() {
|
|
255
|
+
this.$refs.paged.$refs.cri.search()
|
|
256
|
+
},
|
|
257
|
+
async selfSearch(args) {
|
|
258
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
259
|
+
await this.model.search(args.condition, args.model)
|
|
260
|
+
// 查询到数据进行处理
|
|
261
|
+
// if (this.model.rows.length > 0) {
|
|
262
|
+
// this.bodyData = Object.keys(this.model.rows[0])
|
|
263
|
+
// }
|
|
264
|
+
},
|
|
265
|
+
getorg(obj) {
|
|
266
|
+
if (obj.resids.length>0) {
|
|
267
|
+
this.orgCondtionStr = " and f_filialeid in " + plugin.convertToIn(obj.resids)
|
|
268
|
+
}else
|
|
269
|
+
{
|
|
270
|
+
this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
// getorg(obj) {
|
|
274
|
+
// // if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
275
|
+
// // this.orgCondtionStr = " and f_filialeid in " + plugins.convertToIn(obj)
|
|
276
|
+
// // }else{
|
|
277
|
+
// // this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
|
|
278
|
+
// // }
|
|
279
|
+
// // this.orgname = obj.res
|
|
280
|
+
// },
|
|
281
|
+
clear() {
|
|
282
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
283
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
284
|
+
})
|
|
285
|
+
},
|
|
286
|
+
hidden() {
|
|
287
|
+
this.criteriaShow = !this.criteriaShow
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
// getRes(obj) {
|
|
291
|
+
// this.orgCondtionStr = obj
|
|
292
|
+
// }
|
|
293
|
+
getotherfooter() {
|
|
294
|
+
this.other = [];
|
|
295
|
+
this.footer = [];
|
|
296
|
+
let otherInData = [];
|
|
297
|
+
let secondLine = [
|
|
298
|
+
`开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
|
|
299
|
+
`结束时间: ${this.$refs.paged.$refs.cri.model.startDate}`
|
|
300
|
+
];
|
|
301
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
302
|
+
let footerData = []
|
|
303
|
+
|
|
304
|
+
this.footer.push(footerData);
|
|
305
|
+
this.other.push(otherInData);
|
|
306
|
+
this.other.push(secondLine);
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
watch: {
|
|
310
|
+
sumsmodel:{
|
|
311
|
+
handler: function(val) {
|
|
312
|
+
this.getotherfooter();
|
|
313
|
+
},
|
|
314
|
+
deep: true
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
computed: {
|
|
318
|
+
metertypes() {
|
|
319
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
320
|
+
},
|
|
321
|
+
usernatures(){
|
|
322
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
|
|
323
|
+
},
|
|
324
|
+
usertypes() {
|
|
325
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
326
|
+
},
|
|
327
|
+
getCondition() {
|
|
328
|
+
return {
|
|
329
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
330
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
331
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
getfield() {
|
|
335
|
+
return exportConfig.ReportDataConfig
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
</script>
|