manage-client 3.2.200 → 3.2.202
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/ManageSellTypeNew.vue +169 -0
- package/src/filiale/WEINAN/BusinessManage.vue +3 -0
- package/src/filiale/WEINAN/MergeFileQuery.vue +185 -0
- package/src/filiale/WEINAN/sale.js +3 -1
- package/src/filiale/gehua/ReportDataQuery.vue +279 -0
- package/src/filiale/gehua/config/exportConfig.js +1084 -0
- package/src/filiale/gehua/config/tableConfig.js +56 -0
- package/src/filiale/gehua/webmeterManage.js +1 -0
- package/src/filiale/qingtongxia/NewWebMeterHandPlan.vue +724 -0
- package/src/filiale/qingtongxia/webmeterManage.js +9 -0
- package/src/reportManage.js +4 -0
package/package.json
CHANGED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 100%">
|
|
3
|
+
<div class="form-group" >
|
|
4
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-3 form-group" >
|
|
7
|
+
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
8
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
9
|
+
v-model="model.startDate"
|
|
10
|
+
:value.sync="model.startDate"
|
|
11
|
+
:disabled-days-of-Week="[]"
|
|
12
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
13
|
+
:show-reset-button="reset">
|
|
14
|
+
</datepicker>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-3 form-group" >
|
|
17
|
+
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
18
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
19
|
+
v-model="model.endDate"
|
|
20
|
+
:value.sync="model.endDate"
|
|
21
|
+
:disabled-days-of-Week="[]"
|
|
22
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
23
|
+
:show-reset-button="reset">
|
|
24
|
+
</datepicker>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="col-sm-3 form-group" >
|
|
28
|
+
<label class="font_normal_body" for="org">公  司:</label>
|
|
29
|
+
<right-tree id="org" @re-res="getRes"></right-tree>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-3 form-group">
|
|
32
|
+
<label class="font_normal_body" for="dep" >部  门:</label>
|
|
33
|
+
<res-select id="dep" restype='department'
|
|
34
|
+
@res-select="getdep"
|
|
35
|
+
:parentresid="depresid"
|
|
36
|
+
:initresid='queryData.depid' >
|
|
37
|
+
</res-select>
|
|
38
|
+
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-3 form-group">
|
|
41
|
+
<label class="font_normal_body" for="oper">人  员:</label>
|
|
42
|
+
<res-select id="oper" restype='user'
|
|
43
|
+
is-mul="false"
|
|
44
|
+
@res-select="getuser"
|
|
45
|
+
:parentresid="userresid"
|
|
46
|
+
:initresid='queryData.operatorid'>
|
|
47
|
+
</res-select>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div class="col-sm-3 form-group">
|
|
51
|
+
<label class="font_normal_body">收费状态:</label>
|
|
52
|
+
<v-select :value.sync="queryData.f_state" multiple
|
|
53
|
+
v-model="queryData.f_state"
|
|
54
|
+
:options='charge_state' placeholder='请选择'
|
|
55
|
+
close-on-select></v-select>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-sm-3 form-group">
|
|
58
|
+
<button class="button_search" @click="searchData()">查询</button>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div style="width:100%;height: 100%;margin-top: 2%" class="div-iframe">
|
|
63
|
+
<iframe class="ifarme_style" style="width:100%;height:100%" :src="url" v-if="isShow"></iframe>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script>
|
|
70
|
+
export default {
|
|
71
|
+
title: '营业厅分项汇总表',
|
|
72
|
+
data () {
|
|
73
|
+
return {
|
|
74
|
+
f_state: [ {label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '销户', value: '销户'}, {label: '预备', value: '预备'} ],
|
|
75
|
+
orgCondtionStr: '1=1',
|
|
76
|
+
model: {
|
|
77
|
+
startDate: '',
|
|
78
|
+
endDate: ''
|
|
79
|
+
},
|
|
80
|
+
isShow: false,
|
|
81
|
+
url: '',
|
|
82
|
+
urlPrefix: 'http://192.168.50.77:31039/report/jmreport/shareView/779255398271029248',
|
|
83
|
+
queryData: {
|
|
84
|
+
f_state: ['有效'],
|
|
85
|
+
f_orgid: this.$login.f.orgid,
|
|
86
|
+
f_depid: this.$login.f.depids,
|
|
87
|
+
f_operatorid: this.$login.f.id
|
|
88
|
+
},
|
|
89
|
+
orgname: '',
|
|
90
|
+
depresid: [],
|
|
91
|
+
userresid: [],
|
|
92
|
+
depname: '',
|
|
93
|
+
operatorname: '',
|
|
94
|
+
operatorid: [],
|
|
95
|
+
depid: []
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
ready () {
|
|
99
|
+
this.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
100
|
+
this.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
101
|
+
this.searchData()
|
|
102
|
+
},
|
|
103
|
+
methods: {
|
|
104
|
+
searchData () {
|
|
105
|
+
let queryData = this.orgCondtionStr
|
|
106
|
+
for (let key in this.queryData) {
|
|
107
|
+
if (this.queryData[key] !== null && this.queryData[key] !== '' && this.queryData[key] !== undefined && this.queryData[key].length > 0) {
|
|
108
|
+
if (Array.isArray(this.queryData[key])) {
|
|
109
|
+
var stringValue = ''
|
|
110
|
+
for (var i = 0; i < this.queryData[key].length; i++) {
|
|
111
|
+
if (i === this.queryData[key].length - 1) {
|
|
112
|
+
stringValue = stringValue + "'" + this.queryData[key][i] + "'"
|
|
113
|
+
} else {
|
|
114
|
+
stringValue = stringValue + "'" + this.queryData[key][i] + "',"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
queryData = queryData + ' and ' + key + ' in (' + stringValue + ')'
|
|
118
|
+
} else {
|
|
119
|
+
queryData = queryData + ' and ' + key + ' = ' + this.queryData[key]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// 重置url
|
|
124
|
+
this.url = ''
|
|
125
|
+
// encodeURIComponent是将该参数中的特殊符号进行编码,后端会进行解码
|
|
126
|
+
this.url = this.urlPrefix + '?f_orgid=' + encodeURIComponent(queryData) +
|
|
127
|
+
'&startDate=' + encodeURIComponent(this.model.startDate) +
|
|
128
|
+
'&endDate=' + encodeURIComponent(this.model.endDate)
|
|
129
|
+
console.log('报表===' + queryData)
|
|
130
|
+
console.log('报表===>' + this.url)
|
|
131
|
+
this.isShow = true
|
|
132
|
+
},
|
|
133
|
+
load () {
|
|
134
|
+
this.isShow = true
|
|
135
|
+
},
|
|
136
|
+
getRes (obj) {
|
|
137
|
+
this.orgname = obj.res[0]
|
|
138
|
+
this.depresid = obj.resids
|
|
139
|
+
this.userresid = obj.resids
|
|
140
|
+
this.queryData.f_orgid = obj.resids
|
|
141
|
+
},
|
|
142
|
+
getdep (obj, val) {
|
|
143
|
+
this.depname = val[0]
|
|
144
|
+
this.userresid = obj
|
|
145
|
+
this.queryData.f_depid = obj
|
|
146
|
+
},
|
|
147
|
+
getuser (obj, val) {
|
|
148
|
+
this.operatorname = val[0]
|
|
149
|
+
this.queryData.f_operatorid = obj
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
computed: {
|
|
153
|
+
charge_state () {
|
|
154
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
</script>
|
|
159
|
+
<style scoped>
|
|
160
|
+
.noborder{
|
|
161
|
+
border: none;
|
|
162
|
+
}
|
|
163
|
+
.span{
|
|
164
|
+
height: 0;
|
|
165
|
+
}
|
|
166
|
+
.ifarme_style{
|
|
167
|
+
border: medium none;
|
|
168
|
+
}
|
|
169
|
+
</style>
|
|
@@ -75,6 +75,9 @@
|
|
|
75
75
|
<!-- <tabs header="资源操作记录查询" v-if="permission('资源操作记录查询')">-->
|
|
76
76
|
<!-- <resource-operating-query v-if="show == '资源操作记录查询'" @deal-msg="dealMsg" :data="data"></resource-operating-query>-->
|
|
77
77
|
<!-- </tabs>-->
|
|
78
|
+
<tabs header="档案合并查询" v-if="permission('档案合并查询')">
|
|
79
|
+
<merge-file-query v-if="show.includes('档案合并查询')"></merge-file-query>
|
|
80
|
+
</tabs>
|
|
78
81
|
</tab-button>
|
|
79
82
|
<!-- </div>-->
|
|
80
83
|
<!-- <div v-if="!listpage">-->
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
|
|
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
|
+
<div class="col-sm-2 form-group">
|
|
11
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
12
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
13
|
+
v-model="model.startDate"
|
|
14
|
+
:value.sync="model.startDate"
|
|
15
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
16
|
+
:show-reset-button="true"
|
|
17
|
+
condition="f_operate_date >= '{}'">
|
|
18
|
+
</datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
22
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
23
|
+
v-model="model.endDate"
|
|
24
|
+
:value.sync="model.endDate"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="true"
|
|
27
|
+
condition="f_operate_date <= '{}'">
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2 form-group">
|
|
31
|
+
<label class="font_normal_body">客户编号</label>
|
|
32
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_new_userinfo_code"
|
|
33
|
+
condition="f_new_userinfo_code = '{}' " placeholder="客户编号">
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-2 form-group">
|
|
36
|
+
<label class="font_normal_body" title="旧客户编号">旧客户编号</label>
|
|
37
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_old_userinfo_code"
|
|
38
|
+
condition="f_old_userinfo_code = '{}' " placeholder="旧客户编号">
|
|
39
|
+
</div>
|
|
40
|
+
<div class="col-sm-2 form-group">
|
|
41
|
+
<label class="font_normal_body">客户名称</label>
|
|
42
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name_new"
|
|
43
|
+
condition=" f_user_name_new like '%{}%'" placeholder='旧客户名称'
|
|
44
|
+
:size="model.f_user_name_new ? model.f_user_name_new.length * 2 : 1">
|
|
45
|
+
</div>
|
|
46
|
+
<div class="col-sm-2 form-group">
|
|
47
|
+
<label class="font_normal_body">旧客户名称</label>
|
|
48
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
49
|
+
condition=" f_user_name like '%{}%'" placeholder='旧客户名称'
|
|
50
|
+
:size="model.f_user_name ? model.f_user_name.length * 2 : 1">
|
|
51
|
+
</div>
|
|
52
|
+
<div class="span" style="float:right;">
|
|
53
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
54
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</criteria>
|
|
59
|
+
|
|
60
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
61
|
+
<template partial='head'>
|
|
62
|
+
<tr>
|
|
63
|
+
<th>
|
|
64
|
+
<nobr>客户编号</nobr>
|
|
65
|
+
</th>
|
|
66
|
+
<th>
|
|
67
|
+
<nobr>客户名称</nobr>
|
|
68
|
+
</th>
|
|
69
|
+
<th>
|
|
70
|
+
<nobr>客户电话</nobr>
|
|
71
|
+
</th>
|
|
72
|
+
<th>
|
|
73
|
+
<nobr>用户地址</nobr>
|
|
74
|
+
</th>
|
|
75
|
+
<th>
|
|
76
|
+
<nobr>旧客户编号</nobr>
|
|
77
|
+
</th>
|
|
78
|
+
<th>
|
|
79
|
+
<nobr>旧客户名称</nobr>
|
|
80
|
+
</th>
|
|
81
|
+
<th>
|
|
82
|
+
<nobr>旧客户电话</nobr>
|
|
83
|
+
</th>
|
|
84
|
+
<th>
|
|
85
|
+
<nobr>旧地址</nobr>
|
|
86
|
+
</th>
|
|
87
|
+
<th>
|
|
88
|
+
<nobr>旧表品牌型号</nobr>
|
|
89
|
+
</th>
|
|
90
|
+
<th>
|
|
91
|
+
<nobr>操作人</nobr>
|
|
92
|
+
</th>
|
|
93
|
+
<th>
|
|
94
|
+
<nobr>操作日期</nobr>
|
|
95
|
+
</th>
|
|
96
|
+
</tr>
|
|
97
|
+
</template>
|
|
98
|
+
<template partial='body'>
|
|
99
|
+
<td style="text-align: center;">
|
|
100
|
+
<nobr>{{row.f_new_userinfo_code}}</nobr>
|
|
101
|
+
</td>
|
|
102
|
+
<td style="text-align: center;">
|
|
103
|
+
<nobr>{{row.f_user_name_new}}</nobr>
|
|
104
|
+
</td>
|
|
105
|
+
<td style="text-align: center;">
|
|
106
|
+
<nobr>{{row.f_user_phone_new}}</nobr>
|
|
107
|
+
</td>
|
|
108
|
+
<td style="text-align: center;">
|
|
109
|
+
<nobr>{{row.f_address_new}}</nobr>
|
|
110
|
+
</td>
|
|
111
|
+
<td style="text-align: center;">
|
|
112
|
+
<nobr>{{row.f_old_userinfo_code}}</nobr>
|
|
113
|
+
</td>
|
|
114
|
+
<td style="text-align: center;">
|
|
115
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
116
|
+
</td>
|
|
117
|
+
<td style="text-align: center;">
|
|
118
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
119
|
+
</td>
|
|
120
|
+
<td style="text-align: center;">
|
|
121
|
+
<nobr>{{row.f_address}}</nobr>
|
|
122
|
+
</td>
|
|
123
|
+
<td style="text-align: center;">
|
|
124
|
+
<nobr>{{row.f_meter_brand_style}}</nobr>
|
|
125
|
+
</td>
|
|
126
|
+
<td style="text-align: center;">
|
|
127
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
128
|
+
</td>
|
|
129
|
+
<td style="text-align: center;">
|
|
130
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
131
|
+
</td>
|
|
132
|
+
</template>
|
|
133
|
+
<template partial='foot'></template>
|
|
134
|
+
</data-grid>
|
|
135
|
+
</criteria-paged>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</template>
|
|
140
|
+
|
|
141
|
+
<script>
|
|
142
|
+
import {PagedList} from 'vue-client'
|
|
143
|
+
|
|
144
|
+
let readySomething = async function (self) {
|
|
145
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
146
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
147
|
+
}
|
|
148
|
+
export default {
|
|
149
|
+
props:['data'],
|
|
150
|
+
title: '档案合并查询',
|
|
151
|
+
data() {
|
|
152
|
+
return {
|
|
153
|
+
model: new PagedList('rs/sql/mergeFileQuery', 20),
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
ready() {
|
|
157
|
+
readySomething(this).then(() => {
|
|
158
|
+
this.$emit('ready')
|
|
159
|
+
}).catch((error) => {
|
|
160
|
+
this.$emit('error', error)
|
|
161
|
+
})
|
|
162
|
+
},
|
|
163
|
+
methods: {
|
|
164
|
+
search() {
|
|
165
|
+
this.$refs.paged.$refs.cri.search()
|
|
166
|
+
},
|
|
167
|
+
selfSearch(args) {
|
|
168
|
+
if (this.data) {
|
|
169
|
+
this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
|
|
170
|
+
this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
|
|
171
|
+
}
|
|
172
|
+
this.model.search(args.condition, args.model)
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
clear() {
|
|
176
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
177
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
178
|
+
})
|
|
179
|
+
},
|
|
180
|
+
hidden() {
|
|
181
|
+
this.criteriaShow = !this.criteriaShow
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
</script>
|
|
@@ -37,7 +37,9 @@ let specialComp = {
|
|
|
37
37
|
// 开户查询
|
|
38
38
|
'new-account-query': (resolve) => { require(['./NewAccountQuery'], resolve) },
|
|
39
39
|
// 购气稽查
|
|
40
|
-
'inspect-list-gas': (resolve) => { require(['./InspectListGas'], resolve) }
|
|
40
|
+
'inspect-list-gas': (resolve) => { require(['./InspectListGas'], resolve) },
|
|
41
|
+
// 档案合并查询
|
|
42
|
+
'merge-file-query': (resolve) => { require(['./MergeFileQuery.vue'], resolve) }
|
|
41
43
|
}
|
|
42
44
|
exports.specialComp = specialComp
|
|
43
45
|
|
|
@@ -0,0 +1,279 @@
|
|
|
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">-->
|
|
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>
|
|
96
|
+
|
|
97
|
+
</div>
|
|
98
|
+
</criteria>
|
|
99
|
+
|
|
100
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
101
|
+
<template partial='head'>
|
|
102
|
+
<tr>
|
|
103
|
+
<th v-for="row in $parent.$parent.$parent.headData">
|
|
104
|
+
<nobr>{{row}}</nobr>
|
|
105
|
+
</th>
|
|
106
|
+
</tr>
|
|
107
|
+
</template>
|
|
108
|
+
<template partial='body'>
|
|
109
|
+
<tr v-for="row in $parent.$parent.$parent.model.rows">
|
|
110
|
+
<td style="text-align: center;" v-for="item in $parent.$parent.$parent.config.fieldMapping">
|
|
111
|
+
<nobr v-if="item == 'f_lowlithiumbattery'">{{row[item] == 1 ? '是' : '否'}}</nobr>
|
|
112
|
+
<nobr v-if="item == 'f_magneticinterference'">{{row[item] == 1 ? '异常' : '正常'}}</nobr>
|
|
113
|
+
<nobr v-if="item != 'f_magneticinterference' && item != 'f_lowlithiumbattery'">{{row[item]}}</nobr>
|
|
114
|
+
</td>
|
|
115
|
+
</tr>
|
|
116
|
+
</template>
|
|
117
|
+
<template partial='foot'></template>
|
|
118
|
+
</data-grid>
|
|
119
|
+
</criteria-paged>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</template>
|
|
124
|
+
|
|
125
|
+
<script>
|
|
126
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
127
|
+
import tableConfig from './config/tableConfig'
|
|
128
|
+
import plugins from '../../plugins/GetLoginInfoService'
|
|
129
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
130
|
+
import exportConfig from './config/exportConfig'
|
|
131
|
+
|
|
132
|
+
let readySomething = async function (self) {
|
|
133
|
+
await self.$MagLoadParams.loadParam()
|
|
134
|
+
self.initParams()
|
|
135
|
+
// self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
136
|
+
}
|
|
137
|
+
export default {
|
|
138
|
+
title: '上报数据查询',
|
|
139
|
+
data() {
|
|
140
|
+
return {
|
|
141
|
+
other:[],
|
|
142
|
+
footer:[],
|
|
143
|
+
model: new PagedList('rs/sql/manage_getReportDataQuery', 20, {}),
|
|
144
|
+
criteriaShow: false,
|
|
145
|
+
config: {
|
|
146
|
+
fieldMapping: {
|
|
147
|
+
f_userinfo_code: '客户编号',
|
|
148
|
+
f_user_name: '客户名称'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
WarningType: [
|
|
152
|
+
{label: '全部', value: ''}
|
|
153
|
+
],
|
|
154
|
+
Warningstyles: [
|
|
155
|
+
{label: '全部', value: ''}
|
|
156
|
+
],
|
|
157
|
+
styles:false,
|
|
158
|
+
headData: [],
|
|
159
|
+
bodyData: [],
|
|
160
|
+
orgCondtionStr: " and f_filialeid in (" + this.$login.f.orgid+")",
|
|
161
|
+
resshow:['company'],
|
|
162
|
+
org:[this.$login.f.orgid],
|
|
163
|
+
meterbrands:[]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
created () {
|
|
167
|
+
this.config.fieldMapping=tableConfig.ReportDataQuery
|
|
168
|
+
console.log("========================")
|
|
169
|
+
console.log(this.config.fieldMapping)
|
|
170
|
+
var item="用户编号"
|
|
171
|
+
console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
|
|
172
|
+
console.log(this.config.fieldMapping[item])
|
|
173
|
+
this.headData=Object.keys(this.config.fieldMapping)
|
|
174
|
+
// for(var i=0;i<this.config.fieldMapping;i++){
|
|
175
|
+
// this.headData.push(this.config.fieldMapping[i])
|
|
176
|
+
// }
|
|
177
|
+
|
|
178
|
+
},
|
|
179
|
+
ready() {
|
|
180
|
+
this.$refs.paged.$refs.cri.search()
|
|
181
|
+
readySomething(this).then(() => {
|
|
182
|
+
this.$emit('ready')
|
|
183
|
+
}).catch((error) => {
|
|
184
|
+
this.$emit('error', error)
|
|
185
|
+
})
|
|
186
|
+
},
|
|
187
|
+
methods: {
|
|
188
|
+
initParams() {
|
|
189
|
+
// 初始化气表品牌
|
|
190
|
+
let brandArr = []
|
|
191
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
192
|
+
let temp = {}
|
|
193
|
+
temp.label = item.label
|
|
194
|
+
temp.value = item.value.f_meter_brand
|
|
195
|
+
brandArr.push(temp)
|
|
196
|
+
})
|
|
197
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
198
|
+
//初始化气表价格
|
|
199
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
200
|
+
},
|
|
201
|
+
showMeterStyle() {
|
|
202
|
+
this.styles = true
|
|
203
|
+
},
|
|
204
|
+
search() {
|
|
205
|
+
this.$refs.paged.$refs.cri.search()
|
|
206
|
+
},
|
|
207
|
+
async selfSearch(args) {
|
|
208
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
209
|
+
await this.model.search(args.condition, args.model)
|
|
210
|
+
// 查询到数据进行处理
|
|
211
|
+
// if (this.model.rows.length > 0) {
|
|
212
|
+
// this.bodyData = Object.keys(this.model.rows[0])
|
|
213
|
+
// }
|
|
214
|
+
},
|
|
215
|
+
getorg(obj) {
|
|
216
|
+
if (obj.resids.length>0) {
|
|
217
|
+
this.orgCondtionStr = " and f_filialeid in " + plugin.convertToIn(obj.resids)
|
|
218
|
+
}else
|
|
219
|
+
{
|
|
220
|
+
this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
// getorg(obj) {
|
|
224
|
+
// // if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
225
|
+
// // this.orgCondtionStr = " and f_filialeid in " + plugins.convertToIn(obj)
|
|
226
|
+
// // }else{
|
|
227
|
+
// // this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
|
|
228
|
+
// // }
|
|
229
|
+
// // this.orgname = obj.res
|
|
230
|
+
// },
|
|
231
|
+
clear() {
|
|
232
|
+
//清空部门和人员
|
|
233
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
234
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].selectres = []
|
|
235
|
+
//部门和人员变为全选
|
|
236
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
237
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
238
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
239
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
240
|
+
})
|
|
241
|
+
},
|
|
242
|
+
hidden() {
|
|
243
|
+
this.criteriaShow = !this.criteriaShow
|
|
244
|
+
},
|
|
245
|
+
|
|
246
|
+
// getRes(obj) {
|
|
247
|
+
// this.orgCondtionStr = obj
|
|
248
|
+
// }
|
|
249
|
+
getotherfooter () {
|
|
250
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData = [];
|
|
251
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData = [];
|
|
252
|
+
this.other = [];
|
|
253
|
+
this.footer = [];
|
|
254
|
+
let otherInData = [];
|
|
255
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
256
|
+
let footerData = []
|
|
257
|
+
this.footer.push(footerData);
|
|
258
|
+
this.other.push(otherInData);
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
watch: {
|
|
262
|
+
},
|
|
263
|
+
computed: {
|
|
264
|
+
metertypes() {
|
|
265
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
266
|
+
},
|
|
267
|
+
getCondition() {
|
|
268
|
+
return {
|
|
269
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
270
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
271
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
getfield() {
|
|
275
|
+
return exportConfig.ReportDataConfig
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
</script>
|