manage-client 3.3.71 → 3.3.72-wn
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 +180 -180
- package/package.json +1 -1
- package/src/filiale/WEINAN/ManageCompanyGasDetail.vue +262 -0
- package/src/filiale/WEINAN/ManageCompanyGasManage.vue +54 -0
- package/src/filiale/WEINAN/ManageCompanyGasSummary.vue +498 -0
- package/src/filiale/WEINAN/config/exportConfig.js +7 -0
- package/src/filiale/WEINAN/reportManage.js +4 -0
- package/src/filiale/tongchuan/ManageBusSummary.vue +251 -251
- package/src/main.js +72 -70
|
@@ -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>
|
|
@@ -0,0 +1,498 @@
|
|
|
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
|
+
<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="$parent.$parent.style">
|
|
10
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd'"
|
|
15
|
+
:show-reset-button="true">
|
|
16
|
+
</datepicker>
|
|
17
|
+
</div>
|
|
18
|
+
<div :class="$parent.$parent.style">
|
|
19
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
20
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
21
|
+
v-model="model.endDate"
|
|
22
|
+
:value.sync="model.endDate"
|
|
23
|
+
:format="'yyyy-MM-dd'"
|
|
24
|
+
:show-reset-button="true">
|
|
25
|
+
</datepicker>
|
|
26
|
+
</div>
|
|
27
|
+
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
|
|
28
|
+
<label class="font_normal_body">单位编号</label>
|
|
29
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.id"
|
|
30
|
+
condition="id = '{}' " placeholder="单位编号">
|
|
31
|
+
</div>
|
|
32
|
+
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showDetail">
|
|
33
|
+
<label for="endDate" class="font_normal_body">单位名称</label>
|
|
34
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_company_name"
|
|
35
|
+
condition="f_company_name like '%{}%' " placeholder="单位名称">
|
|
36
|
+
<!-- <v-select :value.sync="model.f_company_id"-->
|
|
37
|
+
<!-- class="select_list select"-->
|
|
38
|
+
<!-- enter-push :disabled="$parent.$parent.isCompanyShow"-->
|
|
39
|
+
<!-- v-model="model.f_company_id" multiple="true"-->
|
|
40
|
+
<!-- :options='$parent.$parent.corporatename' placeholder='单位名称'-->
|
|
41
|
+
<!-- condition="f_company_id in {}">-->
|
|
42
|
+
<!-- </v-select>-->
|
|
43
|
+
</div>
|
|
44
|
+
<div class="span" style="float:right;">
|
|
45
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
46
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
47
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
48
|
+
:field="$parent.$parent.getfield"
|
|
49
|
+
:header="$parent.$parent.other"
|
|
50
|
+
:footer="$parent.$parent.footer"
|
|
51
|
+
sqlurl="rs/logic/exportfile"
|
|
52
|
+
sql-name="manage_companyGasSummary"
|
|
53
|
+
template-name='单位用气售气汇总'
|
|
54
|
+
:choose-col="true"></export-excel>
|
|
55
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
|
|
56
|
+
:field="$parent.$parent.getfield"
|
|
57
|
+
titletable="单位用气售气汇总" :starthead="$parent.$parent.startDate"
|
|
58
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
59
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
60
|
+
<div
|
|
61
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
62
|
+
@click="$parent.$parent.hidden()"
|
|
63
|
+
class="button_spacing"
|
|
64
|
+
style="float: right"></div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
68
|
+
<res-select-group
|
|
69
|
+
:style="$parent.$parent.style"
|
|
70
|
+
:show-component="['company']"
|
|
71
|
+
:initres="$parent.$parent.initres"
|
|
72
|
+
@re-res="$parent.$parent.getRes"
|
|
73
|
+
v-ref:sel
|
|
74
|
+
></res-select-group>
|
|
75
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
|
|
76
|
+
<label class="font_normal_body">单位编号</label>
|
|
77
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.id"
|
|
78
|
+
condition="id = '{}' " placeholder="单位编号">
|
|
79
|
+
</div>
|
|
80
|
+
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showDetail">
|
|
81
|
+
<label for="endDate" class="font_normal_body">单位名称</label>
|
|
82
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_company_name"
|
|
83
|
+
condition="f_company_name like '%{}%' " placeholder="单位名称">
|
|
84
|
+
<!-- <v-select :value.sync="model.f_company_id"-->
|
|
85
|
+
<!-- class="select_list select"-->
|
|
86
|
+
<!-- enter-push :disabled="$parent.$parent.isCompanyShow"-->
|
|
87
|
+
<!-- v-model="model.f_company_id" multiple="true"-->
|
|
88
|
+
<!-- :options='$parent.$parent.corporatename' placeholder='单位名称'-->
|
|
89
|
+
<!-- condition="f_company_id in {}">-->
|
|
90
|
+
<!-- </v-select>-->
|
|
91
|
+
</div>
|
|
92
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
93
|
+
<!-- <label class="font_normal_body">用户类型</label>-->
|
|
94
|
+
<!-- <v-select :value.sync="model.f_user_type"-->
|
|
95
|
+
<!-- :options='$parent.$parent.usertypes'-->
|
|
96
|
+
<!-- @change="$parent.$parent.userTypeChange()"-->
|
|
97
|
+
<!-- placeholder='请选择' v-model="model.f_user_type"-->
|
|
98
|
+
<!-- condition="f_user_type = '{}'"-->
|
|
99
|
+
<!-- close-on-select></v-select>-->
|
|
100
|
+
<!-- </div>-->
|
|
101
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
102
|
+
<!-- <label for="f_user_usetype" class="font_normal_body ">用气类型</label>-->
|
|
103
|
+
<!-- <v-select :value.sync="model.f_user_usetype" :search="false"-->
|
|
104
|
+
<!-- @change="$parent.$parent.userUseTypeChange()"-->
|
|
105
|
+
<!-- v-model="model.f_user_usetype"-->
|
|
106
|
+
<!-- :options='$parent.$parent.userusetypes'-->
|
|
107
|
+
<!-- condition="f_user_usetype = '{}'"-->
|
|
108
|
+
<!-- placeholder='用气类型'-->
|
|
109
|
+
<!-- close-on-select>-->
|
|
110
|
+
<!-- </v-select>-->
|
|
111
|
+
<!-- </div>-->
|
|
112
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
113
|
+
<!-- <label for="f_use_institution" class="font_normal_body">用气机构</label>-->
|
|
114
|
+
<!-- <v-select :value.sync="model.f_use_institution" :search="false"-->
|
|
115
|
+
<!-- @change="$parent.$parent.userUseInstitutionChange()"-->
|
|
116
|
+
<!-- v-model="model.f_use_institution"-->
|
|
117
|
+
<!-- :options='$parent.$parent.useinstitutions'-->
|
|
118
|
+
<!-- condition="f_use_institution = '{}'"-->
|
|
119
|
+
<!-- placeholder='用气机构'-->
|
|
120
|
+
<!-- close-on-select>-->
|
|
121
|
+
<!-- </v-select>-->
|
|
122
|
+
<!-- </div>-->
|
|
123
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
124
|
+
<!-- <label for="f_user_usenature" class="font_normal_body ">使用性质</label>-->
|
|
125
|
+
<!-- <v-select :value.sync="model.f_user_usenature" :search="false"-->
|
|
126
|
+
<!-- v-model="model.f_user_usenature"-->
|
|
127
|
+
<!-- :options='$parent.$parent.userusenatures'-->
|
|
128
|
+
<!-- condition="f_user_usenature = '{}'"-->
|
|
129
|
+
<!-- placeholder='使用性质'-->
|
|
130
|
+
<!-- close-on-select>-->
|
|
131
|
+
<!-- </v-select>-->
|
|
132
|
+
<!-- </div>-->
|
|
133
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
134
|
+
<!-- <label for="endDate" class="font_normal_body">小区名称</label>-->
|
|
135
|
+
<!-- <v-select :value.sync="model.f_residential_area_id"-->
|
|
136
|
+
<!-- class="select_list select"-->
|
|
137
|
+
<!-- enter-push :disabled="$parent.$parent.isAreaShow"-->
|
|
138
|
+
<!-- v-model="model.f_residential_area_id" multiple="true"-->
|
|
139
|
+
<!-- @select-search="$parent.$parent.getAreaList"-->
|
|
140
|
+
<!-- :options='$parent.$parent.areaList' placeholder='小区名称'-->
|
|
141
|
+
<!-- condition="f_residential_area_id in {}">-->
|
|
142
|
+
<!-- </v-select>-->
|
|
143
|
+
<!-- </div>-->
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</criteria>
|
|
147
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
148
|
+
<template partial='head'>
|
|
149
|
+
<tr>
|
|
150
|
+
<th>
|
|
151
|
+
<nobr>序号</nobr>
|
|
152
|
+
</th>
|
|
153
|
+
<th>
|
|
154
|
+
<nobr>单位编号</nobr>
|
|
155
|
+
</th>
|
|
156
|
+
<th>
|
|
157
|
+
<nobr>单位名称</nobr>
|
|
158
|
+
</th>
|
|
159
|
+
<th>
|
|
160
|
+
<nobr>期间用气量</nobr>
|
|
161
|
+
</th>
|
|
162
|
+
<th>
|
|
163
|
+
<nobr>期间售气量</nobr>
|
|
164
|
+
</th>
|
|
165
|
+
<th>
|
|
166
|
+
<nobr>表具数量</nobr>
|
|
167
|
+
</th>
|
|
168
|
+
</tr>
|
|
169
|
+
</template>
|
|
170
|
+
<template partial='body'>
|
|
171
|
+
<td style="text-align:center">
|
|
172
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
173
|
+
</td>
|
|
174
|
+
<td style="text-align: center;">
|
|
175
|
+
<nobr>{{ row.id }}</nobr>
|
|
176
|
+
</td>
|
|
177
|
+
<td style="text-align: center;">
|
|
178
|
+
<nobr>{{ row.f_company_name }}</nobr>
|
|
179
|
+
</td>
|
|
180
|
+
<td style="text-align: center;">
|
|
181
|
+
<nobr>{{ row.f_oughtamount }}</nobr>
|
|
182
|
+
</td>
|
|
183
|
+
<td style="text-align: center;">
|
|
184
|
+
<nobr>{{ row.f_pregas }}</nobr>
|
|
185
|
+
</td>
|
|
186
|
+
<td style="text-align: center;">
|
|
187
|
+
<nobr>{{ row.f_table_num }}</nobr>
|
|
188
|
+
</td>
|
|
189
|
+
</template>
|
|
190
|
+
<template partial='foot'></template>
|
|
191
|
+
</data-grid>
|
|
192
|
+
</criteria-paged>
|
|
193
|
+
<table class="table-hover">
|
|
194
|
+
<tr style="position: relative" class="table-bordered">
|
|
195
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
196
|
+
汇总信息
|
|
197
|
+
</td>
|
|
198
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
199
|
+
用气量: {{ sumsmodel.f_oughtamount.toFixed(2) }}m³
|
|
200
|
+
</td>
|
|
201
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
202
|
+
售气量: {{ sumsmodel.f_pregas.toFixed(2) }}m³
|
|
203
|
+
</td>
|
|
204
|
+
</tr>
|
|
205
|
+
</table>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</template>
|
|
210
|
+
<script>
|
|
211
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
212
|
+
import defaultPrint from './config/DefaultPrint'
|
|
213
|
+
import exportConfig from './config/exportConfig'
|
|
214
|
+
import PrintDataSelf from '../../components/sale/common/PrintDataSelf'
|
|
215
|
+
|
|
216
|
+
// let readySomething = async function (self) {
|
|
217
|
+
// self.$refs.paged.$refs.cri.model.startDate = self.getCurrentMonthFirst()
|
|
218
|
+
// self.$refs.paged.$refs.cri.model.endDate = self.getCurrentMonthLast()
|
|
219
|
+
// // self.getCompanyList()
|
|
220
|
+
// }
|
|
221
|
+
export default {
|
|
222
|
+
title: '单位用气售气',
|
|
223
|
+
data () {
|
|
224
|
+
return {
|
|
225
|
+
depresid: [],
|
|
226
|
+
userresid: [],
|
|
227
|
+
f_orgid: this.$login.f.orgid,
|
|
228
|
+
f_depid: this.$login.f.depids,
|
|
229
|
+
f_operatorid: this.$login.f.id,
|
|
230
|
+
operatorid: [],
|
|
231
|
+
depid: [],
|
|
232
|
+
orgname: '',
|
|
233
|
+
depname: [],
|
|
234
|
+
operatorname: '',
|
|
235
|
+
condition: '',
|
|
236
|
+
orgConditionStr: '',
|
|
237
|
+
data: {},
|
|
238
|
+
other: [],
|
|
239
|
+
footer: [],
|
|
240
|
+
model: new PagedList('rs/sql/manage_companyGasSummary', 20, {
|
|
241
|
+
startDate: 'this.model.startDate',
|
|
242
|
+
endDate: 'this.model.endDate'
|
|
243
|
+
}, {
|
|
244
|
+
f_oughtamount: 0,
|
|
245
|
+
f_pregas: 0
|
|
246
|
+
}),
|
|
247
|
+
gasproperties: [],
|
|
248
|
+
show: false,
|
|
249
|
+
rowdata: {},
|
|
250
|
+
areaList: [],
|
|
251
|
+
modelval: [],
|
|
252
|
+
startDate: '',
|
|
253
|
+
endDate: '',
|
|
254
|
+
inputtouPerson: [],
|
|
255
|
+
printshow: false,
|
|
256
|
+
all: false,
|
|
257
|
+
fields: {},
|
|
258
|
+
thead: '',
|
|
259
|
+
tfoot: '',
|
|
260
|
+
defaultfield: [],
|
|
261
|
+
sumsmodel: {},
|
|
262
|
+
sumExport: { 'f_oughtamount': '期间用气量', 'f_pregas': '期间售气量'},
|
|
263
|
+
initres: {
|
|
264
|
+
org: [this.$login.f.orgid],
|
|
265
|
+
},
|
|
266
|
+
criteriaShow: false,
|
|
267
|
+
userusetypes: [],
|
|
268
|
+
useinstitutions: [],
|
|
269
|
+
userusenatures: [],
|
|
270
|
+
corporatename: []
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
props: {
|
|
274
|
+
style: {
|
|
275
|
+
type: String,
|
|
276
|
+
default: 'col-sm-2 form-group'
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
ready () {
|
|
280
|
+
// readySomething(this).then(() => {
|
|
281
|
+
// this.$emit('ready')
|
|
282
|
+
// }).catch((error) => {
|
|
283
|
+
// this.$emit('error', error)
|
|
284
|
+
// })
|
|
285
|
+
this.$refs.paged.$refs.cri.model.startDate = this.getCurrentMonthFirst()
|
|
286
|
+
this.$refs.paged.$refs.cri.model.endDate = this.getCurrentMonthLast()
|
|
287
|
+
},
|
|
288
|
+
methods: {
|
|
289
|
+
getCurrentMonthFirst() {
|
|
290
|
+
let date = new Date()
|
|
291
|
+
date.setDate(1)
|
|
292
|
+
let month = parseInt(date.getMonth() + 1)
|
|
293
|
+
let day = date.getDate()
|
|
294
|
+
if (month < 10) month = '0' + month
|
|
295
|
+
if (day < 10) day = '0' + day
|
|
296
|
+
return date.getFullYear() + '-' + month + '-' + day
|
|
297
|
+
},
|
|
298
|
+
getCurrentMonthLast() {
|
|
299
|
+
let date = new Date()
|
|
300
|
+
let year = date.getFullYear()
|
|
301
|
+
let month = date.getMonth() + 1
|
|
302
|
+
month = month < 10 ? '0' + month : month
|
|
303
|
+
let day = new Date(year, month, 0)
|
|
304
|
+
return year + '-' + month + '-' + day.getDate()
|
|
305
|
+
},
|
|
306
|
+
// async getCompanyList(searchText){
|
|
307
|
+
// let condition = ' 1 = 1 '
|
|
308
|
+
// if (searchText) {
|
|
309
|
+
// condition = ` f_company_name like '%${searchText}%' `
|
|
310
|
+
// }
|
|
311
|
+
// let HttpReset = new HttpResetClass()
|
|
312
|
+
// HttpReset.load('POST', 'rs/sql/saleSingleTable?pageNo=1&pageSize=100', {
|
|
313
|
+
// data: {
|
|
314
|
+
// items: 'f_company_name, id',
|
|
315
|
+
// tablename: 't_company',
|
|
316
|
+
// orderitem: 'id desc',
|
|
317
|
+
// condition: condition
|
|
318
|
+
// }
|
|
319
|
+
// }, {resolveMsg: null, rejectMsg: '获取单位信息失败!'}).then((req) => {
|
|
320
|
+
// let redata = []
|
|
321
|
+
// req.data.forEach((row, n) => {
|
|
322
|
+
// redata[n] = {
|
|
323
|
+
// label: row.f_company_name,
|
|
324
|
+
// value: row.id
|
|
325
|
+
// }
|
|
326
|
+
// })
|
|
327
|
+
// this.corporatename = [{label: '全部', value: ''}, ...redata]
|
|
328
|
+
// })
|
|
329
|
+
// },
|
|
330
|
+
clear() {
|
|
331
|
+
//清空部门和人员
|
|
332
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
333
|
+
//部门和人员变为全选
|
|
334
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
335
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
336
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
337
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
338
|
+
})
|
|
339
|
+
},
|
|
340
|
+
// userTypeChange () {
|
|
341
|
+
// this.userusetypes = []
|
|
342
|
+
// if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
343
|
+
// let str = this.$refs.paged.$refs.cri.model.f_user_type[0] + '用气类型'
|
|
344
|
+
// this.userusetypes = this.$appdata.getParam(str)
|
|
345
|
+
// }
|
|
346
|
+
// },
|
|
347
|
+
// userUseInstitutionChange () {
|
|
348
|
+
// this.userusenatures = []
|
|
349
|
+
// if (this.$refs.paged.$refs.cri.model.f_use_institution.length === 1) {
|
|
350
|
+
// let str = this.$refs.paged.$refs.cri.model.f_use_institution[0] + '使用性质'
|
|
351
|
+
// this.userusenatures = this.$appdata.getParam(str)
|
|
352
|
+
// }
|
|
353
|
+
// },
|
|
354
|
+
// userUseTypeChange () {
|
|
355
|
+
// this.useinstitutions = []
|
|
356
|
+
// if (this.$refs.paged.$refs.cri.model.f_user_usetype.length === 1) {
|
|
357
|
+
// let str = this.$refs.paged.$refs.cri.model.f_user_usetype[0] + '机构'
|
|
358
|
+
// this.useinstitutions = this.$appdata.getParam(str)
|
|
359
|
+
// }
|
|
360
|
+
// },
|
|
361
|
+
hidden () {
|
|
362
|
+
this.criteriaShow = !this.criteriaShow
|
|
363
|
+
},
|
|
364
|
+
getotherfooter () {
|
|
365
|
+
this.other = []
|
|
366
|
+
this.footer = []
|
|
367
|
+
let exportdata = this.getCondition
|
|
368
|
+
let otherInData = []
|
|
369
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
370
|
+
let footerData = [], exportfield = this.sumExport
|
|
371
|
+
footerData.push('合计')
|
|
372
|
+
let self = this
|
|
373
|
+
for (var field in self.sumsmodel) {
|
|
374
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
375
|
+
}
|
|
376
|
+
this.footer.push(footerData)
|
|
377
|
+
this.other.push(otherInData)
|
|
378
|
+
},
|
|
379
|
+
search () {
|
|
380
|
+
this.$refs.paged.$refs.cri.search()
|
|
381
|
+
},
|
|
382
|
+
appendCondition (data) {
|
|
383
|
+
console.log('data=====>',data)
|
|
384
|
+
let stringValue = ''
|
|
385
|
+
for (var i = 0; i < data.length; i++) {
|
|
386
|
+
if (data[i]) {
|
|
387
|
+
if (i === data.length - 1) {
|
|
388
|
+
stringValue = stringValue + "'" + data[i] + "'"
|
|
389
|
+
} else {
|
|
390
|
+
stringValue = stringValue + "'" + data[i] + "',"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return stringValue
|
|
395
|
+
},
|
|
396
|
+
async selfSearch (args) {
|
|
397
|
+
let companyCondition2 = '1=1'
|
|
398
|
+
if (!this.orgConditionStr) {
|
|
399
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
400
|
+
} else {
|
|
401
|
+
args.condition = `${args.condition}` + this.orgConditionStr
|
|
402
|
+
}
|
|
403
|
+
this.condition = args.condition
|
|
404
|
+
console.log("查看条件",this.condition)
|
|
405
|
+
await this.model.search(args.condition, args.model)
|
|
406
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
407
|
+
this.card = ''
|
|
408
|
+
this.IdCardInfo = ''
|
|
409
|
+
console.log('合计字段', this.sumsmodel)
|
|
410
|
+
},
|
|
411
|
+
getRes (obj) {
|
|
412
|
+
this.orgConditionStr = obj
|
|
413
|
+
},
|
|
414
|
+
stamp () {
|
|
415
|
+
this.all = false
|
|
416
|
+
//默认选择要打印的列
|
|
417
|
+
this.modelval = defaultPrint.config
|
|
418
|
+
this.fields = this.getfield
|
|
419
|
+
console.log('所有打印字段', this.fields)
|
|
420
|
+
this.printshow = true
|
|
421
|
+
this.put()
|
|
422
|
+
},
|
|
423
|
+
put () {
|
|
424
|
+
// 对Modelval进行排序
|
|
425
|
+
this.sortModelval()
|
|
426
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>用户查询</th></tr><tr>`
|
|
427
|
+
for (let key of this.modelval) {
|
|
428
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
429
|
+
}
|
|
430
|
+
this.thead += '</tr>'
|
|
431
|
+
},
|
|
432
|
+
print () {
|
|
433
|
+
this.$refs.print.PrintAsFile()
|
|
434
|
+
this.printshow = false
|
|
435
|
+
},
|
|
436
|
+
dealmsg (val) {
|
|
437
|
+
console.log('---------------dealmsg')
|
|
438
|
+
this.rowdata = val
|
|
439
|
+
this.show = true
|
|
440
|
+
val.model = this.model.model
|
|
441
|
+
this.$dispatch('deal-msg', val)
|
|
442
|
+
},
|
|
443
|
+
close () {
|
|
444
|
+
this.printshow = false
|
|
445
|
+
this.all = false
|
|
446
|
+
},
|
|
447
|
+
// 对选择的列进行排序
|
|
448
|
+
sortModelval () {
|
|
449
|
+
let sortModel = []
|
|
450
|
+
Object.keys(this.fields).forEach((key) => {
|
|
451
|
+
if (this.modelval.includes(key)) {
|
|
452
|
+
sortModel.push(key)
|
|
453
|
+
}
|
|
454
|
+
})
|
|
455
|
+
this.modelval = sortModel
|
|
456
|
+
console.log('选择的打印的字段', this.modelval)
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
watch: {
|
|
460
|
+
'all' (val) {
|
|
461
|
+
if (val) {
|
|
462
|
+
this.modelval = this.bodyData
|
|
463
|
+
} else {
|
|
464
|
+
this.modelval = defaultPrint.config
|
|
465
|
+
this.put()
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
sumsmodel: {
|
|
469
|
+
handler: function (val) {
|
|
470
|
+
this.getotherfooter()
|
|
471
|
+
},
|
|
472
|
+
deep: true
|
|
473
|
+
},
|
|
474
|
+
'modelval.length' () {
|
|
475
|
+
this.put()
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
computed: {
|
|
479
|
+
getCondition () {
|
|
480
|
+
return {
|
|
481
|
+
condition: this.condition,
|
|
482
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
483
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
getfield () {
|
|
487
|
+
return exportConfig.manageCompanyGasSummary
|
|
488
|
+
},
|
|
489
|
+
useTypes () {
|
|
490
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
|
|
491
|
+
},
|
|
492
|
+
usertypes () {
|
|
493
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
</script>
|
|
498
|
+
|
|
@@ -848,6 +848,13 @@ monthGasConfig: {
|
|
|
848
848
|
'f_stairamount2': '二阶气量',
|
|
849
849
|
'f_stairamount3': '三阶气量',
|
|
850
850
|
'f_collection': '实收款'
|
|
851
|
+
},
|
|
852
|
+
manageCompanyGasSummary: {
|
|
853
|
+
'id': '单位编号',
|
|
854
|
+
'f_company_name': '单位名称',
|
|
855
|
+
'f_oughtamount': '期间用气量',
|
|
856
|
+
'f_pregas': '期间售气量',
|
|
857
|
+
'f_table_num': '表具数量'
|
|
851
858
|
}
|
|
852
859
|
}
|
|
853
860
|
|
|
@@ -7,5 +7,9 @@ export default function () {
|
|
|
7
7
|
Vue.component('site-manager', (resolve) => { require(['./SiteManager'], resolve) })
|
|
8
8
|
Vue.component('bank-manager', (resolve) => { require(['./BankManager'], resolve) })
|
|
9
9
|
Vue.component('manage-summary-report', (resolve) => { require(['./ManageSummaryReport'], resolve) })
|
|
10
|
+
// 单位用气售气汇总
|
|
11
|
+
Vue.component('manage-company-gas-summary', (resolve) => { require(['./ManageCompanyGasSummary'], resolve) })
|
|
12
|
+
Vue.component('manage-company-gas-manage', (resolve) => { require(['./ManageCompanyGasManage'], resolve) })
|
|
13
|
+
Vue.component('manage-company-gas-detail', (resolve) => { require(['./ManageCompanyGasDetail'], resolve) })
|
|
10
14
|
}
|
|
11
15
|
|