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