manage-client 3.3.70 → 3.3.71-wn2
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 +189 -180
- package/package.json +111 -111
- package/src/filiale/WEINAN/ManageCompanyGasDetail.vue +262 -0
- package/src/filiale/WEINAN/ManageCompanyGasManage.vue +54 -0
- package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +496 -0
- package/src/filiale/WEINAN/config/exportConfig.js +860 -853
- package/src/filiale/WEINAN/reportManage.js +15 -11
- package/src/filiale/tongchuan/ManageBusSummary.vue +12 -1
- package/src/main.js +72 -70
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="span" style="float:right;">
|
|
9
|
+
<!-- <button class="button_search button_spacing" @click="search()">查询</button>-->
|
|
10
|
+
<!-- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>-->
|
|
11
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
|
|
12
|
+
</div>
|
|
13
|
+
<!-- <export-excel :data="$parent.$parent.getCondition"-->
|
|
14
|
+
<!-- :field="$parent.$parent.getfield"-->
|
|
15
|
+
<!-- :header="$parent.$parent.other"-->
|
|
16
|
+
<!-- :footer="$parent.$parent.footer"-->
|
|
17
|
+
<!-- sqlurl="rs/logic/exportfile"-->
|
|
18
|
+
<!-- sql-name="manage_companyGasSummary"-->
|
|
19
|
+
<!-- template-name='单位用气售气汇总'-->
|
|
20
|
+
<!-- :choose-col="true"></export-excel>-->
|
|
21
|
+
<!-- <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"-->
|
|
22
|
+
<!-- :field="$parent.$parent.getfield"-->
|
|
23
|
+
<!-- titletable="单位用气售气汇总" :starthead="$parent.$parent.startDate"-->
|
|
24
|
+
<!-- :defaultfield="$parent.$parent.defaultfield"-->
|
|
25
|
+
<!-- :sumsmodel="$parent.$parent.sumsmodel"></print-data>-->
|
|
26
|
+
<!-- <div-->
|
|
27
|
+
<!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
|
|
28
|
+
<!-- @click="$parent.$parent.hidden()"-->
|
|
29
|
+
<!-- class="button_spacing"-->
|
|
30
|
+
<!-- style="float: right"></div>-->
|
|
31
|
+
<!-- </div>-->
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</criteria>
|
|
35
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
36
|
+
<template partial='head'>
|
|
37
|
+
<tr>
|
|
38
|
+
<th>
|
|
39
|
+
<nobr>序号</nobr>
|
|
40
|
+
</th>
|
|
41
|
+
<th>
|
|
42
|
+
<nobr>客户编号</nobr>
|
|
43
|
+
</th>
|
|
44
|
+
<th>
|
|
45
|
+
<nobr>客户名称</nobr>
|
|
46
|
+
</th>
|
|
47
|
+
<th>
|
|
48
|
+
<nobr>气表品牌</nobr>
|
|
49
|
+
</th>
|
|
50
|
+
<th>
|
|
51
|
+
<nobr>表号</nobr>
|
|
52
|
+
</th>
|
|
53
|
+
<th>
|
|
54
|
+
<nobr>用气类型</nobr>
|
|
55
|
+
</th>
|
|
56
|
+
<th>
|
|
57
|
+
<nobr>用气机构</nobr>
|
|
58
|
+
</th>
|
|
59
|
+
<th>
|
|
60
|
+
<nobr>使用性质</nobr>
|
|
61
|
+
</th>
|
|
62
|
+
<th>
|
|
63
|
+
<nobr>用气性质</nobr>
|
|
64
|
+
</th>
|
|
65
|
+
<th>
|
|
66
|
+
<nobr>用气量</nobr>
|
|
67
|
+
</th>
|
|
68
|
+
<th>
|
|
69
|
+
<nobr>售气量</nobr>
|
|
70
|
+
</th>
|
|
71
|
+
<th>
|
|
72
|
+
<nobr>联系电话</nobr>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>气表状态</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
</tr>
|
|
78
|
+
</template>
|
|
79
|
+
<template partial='body'>
|
|
80
|
+
<td style="text-align:center">
|
|
81
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
82
|
+
</td>
|
|
83
|
+
<td style="text-align:center">
|
|
84
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
85
|
+
</td>
|
|
86
|
+
<td style="text-align: center;">
|
|
87
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
88
|
+
</td>
|
|
89
|
+
<td style="text-align: center;">
|
|
90
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
91
|
+
</td>
|
|
92
|
+
<td style="text-align: center;">
|
|
93
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
94
|
+
</td>
|
|
95
|
+
<td style="text-align: center;">
|
|
96
|
+
<nobr>{{ row.f_user_usetype }}</nobr>
|
|
97
|
+
</td>
|
|
98
|
+
<td style="text-align: center;">
|
|
99
|
+
<nobr>{{ row.f_use_institution }}</nobr>
|
|
100
|
+
</td>
|
|
101
|
+
<td style="text-align: center;">
|
|
102
|
+
<nobr>{{ row.f_user_usenature }}</nobr>
|
|
103
|
+
</td>
|
|
104
|
+
<td style="text-align: center;">
|
|
105
|
+
<nobr>{{ row.f_gasproperties }}</nobr>
|
|
106
|
+
</td>
|
|
107
|
+
<td style="text-align: center;">
|
|
108
|
+
<nobr>{{ row.f_oughtamount }}</nobr>
|
|
109
|
+
</td>
|
|
110
|
+
<td style="text-align: center;">
|
|
111
|
+
<nobr>{{ row.f_pregas }}</nobr>
|
|
112
|
+
</td>
|
|
113
|
+
<td style="text-align: center;">
|
|
114
|
+
<nobr>{{ row.f_user_phone }}</nobr>
|
|
115
|
+
</td>
|
|
116
|
+
<td style="text-align: center;">
|
|
117
|
+
<nobr>{{ row.f_table_state }}</nobr>
|
|
118
|
+
</td>
|
|
119
|
+
</template>
|
|
120
|
+
<template partial='foot'></template>
|
|
121
|
+
</data-grid>
|
|
122
|
+
</criteria-paged>
|
|
123
|
+
<!-- <table class="table-hover">-->
|
|
124
|
+
<!-- <tr style="position: relative" class="table-bordered">-->
|
|
125
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">-->
|
|
126
|
+
<!-- 汇总信息-->
|
|
127
|
+
<!-- </td>-->
|
|
128
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
129
|
+
<!-- 用气量: {{ sumsmodel.f_oughtamount }}m³-->
|
|
130
|
+
<!-- </td>-->
|
|
131
|
+
<!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
|
|
132
|
+
<!-- 售气量: {{ sumsmodel.f_pregas }}m³-->
|
|
133
|
+
<!-- </td>-->
|
|
134
|
+
<!-- </tr>-->
|
|
135
|
+
<!-- </table>-->
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</template>
|
|
139
|
+
<script>
|
|
140
|
+
import {PagedList} from 'vue-client'
|
|
141
|
+
import exportConfig from './config/exportConfig'
|
|
142
|
+
|
|
143
|
+
export default {
|
|
144
|
+
title: '单位表具详情',
|
|
145
|
+
data () {
|
|
146
|
+
return {
|
|
147
|
+
depresid: [],
|
|
148
|
+
userresid: [],
|
|
149
|
+
f_orgid: this.$login.f.orgid,
|
|
150
|
+
f_depid: this.$login.f.depids,
|
|
151
|
+
f_operatorid: this.$login.f.id,
|
|
152
|
+
operatorid: [],
|
|
153
|
+
depid: [],
|
|
154
|
+
orgname: '',
|
|
155
|
+
depname: [],
|
|
156
|
+
operatorname: '',
|
|
157
|
+
condition: '',
|
|
158
|
+
orgConditionStr: '',
|
|
159
|
+
data: {},
|
|
160
|
+
other: [],
|
|
161
|
+
footer: [],
|
|
162
|
+
model: new PagedList('rs/sql/manage_companyMeterDetail', 20, {
|
|
163
|
+
startDate: 'this.model.startDate',
|
|
164
|
+
endDate: 'this.model.endDate'
|
|
165
|
+
}),
|
|
166
|
+
gasproperties: [],
|
|
167
|
+
show: false,
|
|
168
|
+
rowdata: {},
|
|
169
|
+
areaList: [],
|
|
170
|
+
modelval: [],
|
|
171
|
+
startDate: '',
|
|
172
|
+
endDate: '',
|
|
173
|
+
inputtouPerson: [],
|
|
174
|
+
printshow: false,
|
|
175
|
+
all: false,
|
|
176
|
+
fields: {},
|
|
177
|
+
thead: '',
|
|
178
|
+
tfoot: '',
|
|
179
|
+
defaultfield: [],
|
|
180
|
+
sumsmodel: {},
|
|
181
|
+
sumExport: {'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
|
|
182
|
+
initres: {
|
|
183
|
+
org: [this.$login.f.orgid]
|
|
184
|
+
},
|
|
185
|
+
criteriaShow: false,
|
|
186
|
+
userusetypes: [],
|
|
187
|
+
useinstitutions: [],
|
|
188
|
+
userusenatures: [],
|
|
189
|
+
corporatename: []
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
ready () {
|
|
193
|
+
this.search()
|
|
194
|
+
},
|
|
195
|
+
props: ['data'],
|
|
196
|
+
methods: {
|
|
197
|
+
clear () {
|
|
198
|
+
// 清空部门和人员
|
|
199
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
200
|
+
// 部门和人员变为全选
|
|
201
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
202
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
203
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
204
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
205
|
+
})
|
|
206
|
+
},
|
|
207
|
+
getotherfooter () {
|
|
208
|
+
this.other = []
|
|
209
|
+
this.footer = []
|
|
210
|
+
let exportdata = this.getCondition
|
|
211
|
+
let otherInData = []
|
|
212
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
213
|
+
let footerData = [], exportfield = this.sumExport
|
|
214
|
+
footerData.push('合计')
|
|
215
|
+
let self = this
|
|
216
|
+
for (var field in self.sumsmodel) {
|
|
217
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
218
|
+
}
|
|
219
|
+
this.footer.push(footerData)
|
|
220
|
+
this.other.push(otherInData)
|
|
221
|
+
},
|
|
222
|
+
search () {
|
|
223
|
+
this.$refs.paged.$refs.cri.search()
|
|
224
|
+
},
|
|
225
|
+
selfSearch (args) {
|
|
226
|
+
args.condition = `${args.condition} and f_corporate_name_id = '${this.data.id}'`
|
|
227
|
+
this.$refs.paged.$refs.cri.model.startDate = this.data.startDate
|
|
228
|
+
this.$refs.paged.$refs.cri.model.endDate = this.data.endDate
|
|
229
|
+
this.condition = args.condition
|
|
230
|
+
console.log('查看条件', this.condition)
|
|
231
|
+
this.model.search(args.condition, args.model)
|
|
232
|
+
},
|
|
233
|
+
getRes (obj) {
|
|
234
|
+
this.orgConditionStr = obj
|
|
235
|
+
},
|
|
236
|
+
cancel () {
|
|
237
|
+
this.data = null
|
|
238
|
+
this.$dispatch('cancel')
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
watch: {
|
|
242
|
+
'data' (val) {
|
|
243
|
+
if (val) {
|
|
244
|
+
this.search()
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
computed: {
|
|
249
|
+
getCondition () {
|
|
250
|
+
return {
|
|
251
|
+
condition: this.condition,
|
|
252
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
253
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
getfield () {
|
|
257
|
+
return exportConfig.manageCompanyGasSummary
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
</script>
|
|
262
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div :class="{'basic-main':!showDetail,'binary-left':showDetail}">
|
|
4
|
+
<manage-company-gas-summary v-ref:gas
|
|
5
|
+
@select-changed="selected"
|
|
6
|
+
:style="style">
|
|
7
|
+
</manage-company-gas-summary>
|
|
8
|
+
</div>
|
|
9
|
+
<div v-show="showDetail" class="binary-right">
|
|
10
|
+
<div class="flex">
|
|
11
|
+
<manage-company-gas-detail v-if="showDetail" :data="row">
|
|
12
|
+
</manage-company-gas-detail>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
export default {
|
|
20
|
+
title: '单位用气售气汇总',
|
|
21
|
+
components: {},
|
|
22
|
+
data () {
|
|
23
|
+
return {
|
|
24
|
+
row: {},
|
|
25
|
+
showDetail: false,
|
|
26
|
+
companyId: null,
|
|
27
|
+
style: 'col-sm-2 form-group'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
selected (obj) {
|
|
32
|
+
console.log('看看选中的数据', obj)
|
|
33
|
+
if (obj && obj.val) {
|
|
34
|
+
this.style = 'col-sm-3 form-group'
|
|
35
|
+
this.showDetail = true
|
|
36
|
+
this.row = obj.val
|
|
37
|
+
this.row.startDate = this.$refs.gas.$refs.paged.$refs.cri.model.startDate
|
|
38
|
+
this.row.endDate = this.$refs.gas.$refs.paged.$refs.cri.model.endDate
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
refresh () {
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
events: {
|
|
45
|
+
'cancel' () {
|
|
46
|
+
this.style = 'col-sm-2 form-group'
|
|
47
|
+
this.row = null
|
|
48
|
+
this.showDetail = false
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
</script>
|
|
53
|
+
<style>
|
|
54
|
+
</style>
|