manage-client 3.3.2 → 3.3.5
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/components/sale/businessquery/GroupChargeQuery.vue +481 -481
- package/src/components/sale/businessquery/NewAreaGeneralQuery.vue +633 -633
- package/src/components/webmeter/recharge/RechargeList.vue +346 -346
- package/src/filiale/gehua/GroupChargeQuery.vue +486 -486
- package/src/filiale/huayin/ChargeQuery.vue +1305 -1305
- package/src/filiale/macheng/config/exportConfig.js +1 -1
- package/src/filiale/rongcheng/AreaBuildingDetailInfo.vue +281 -281
- package/src/filiale/rongcheng/AreaBuildingInfoSummary.vue +301 -301
- package/src/filiale/rongcheng/exportConfig.js +536 -536
- package/src/filiale/rongcheng/sale.js +22 -22
- package/src/filiale/shanxian/CancellationQuery.vue +426 -0
- package/src/filiale/shanxian/ChangeUserQuery.vue +395 -0
- package/src/filiale/shanxian/DeviceQuery.vue +586 -0
- package/src/filiale/shanxian/DisableQuery.vue +528 -0
- package/src/filiale/shanxian/EnableQuery.vue +461 -0
- package/src/filiale/shanxian/FMYGasQuery.vue +731 -0
- package/src/filiale/shanxian/FillCardQuery.vue +569 -569
- package/src/filiale/shanxian/FillGasQuery.vue +588 -588
- package/src/filiale/shanxian/FmyGasDeviceQuery.vue +68 -33
- package/src/filiale/shanxian/InspectListUserNew.vue +18 -16
- package/src/filiale/shanxian/LostContactAnalysisList.vue +633 -632
- package/src/filiale/shanxian/MeterQuery.vue +968 -0
- package/src/filiale/shanxian/MonthGasQuery.vue +481 -0
- package/src/filiale/shanxian/NewQueryInstruct.vue +457 -0
- package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
- package/src/filiale/shanxian/ReverseQuery.vue +454 -0
- package/src/filiale/shanxian/TransferQuery.vue +469 -0
- package/src/filiale/shanxian/UserGasAll.vue +15 -14
- package/src/filiale/shanxian/UserLostContactAnalysis.vue +584 -583
- package/src/filiale/shanxian/UserQuery.vue +960 -959
- package/src/filiale/shanxian/config/exportConfig.js +100 -100
- package/src/filiale/shanxian/newwebmeter/TotalExceptionByMeter.vue +608 -0
- package/src/filiale/shanxian/sale.js +46 -26
- package/src/filiale/shanxian/webmeterManage.js +4 -0
- package/src/filiale/wenxi/ChangeMeterQuery.vue +704 -704
- package/src/filiale/wenxi/ChangeUserQuery.vue +371 -371
- package/src/filiale/wenxi/ChargeQuery.vue +1260 -1260
- package/src/filiale/wenxi/FmyGasDeviceQuery.vue +944 -944
- package/src/filiale/wenxi/GasDeviceQuery.vue +1041 -1041
- package/src/filiale/wenxi/GasStatistics.vue +515 -515
- package/src/filiale/wenxi/GetNoMetereadData.vue +374 -374
- package/src/filiale/wenxi/HandplanQuery.vue +1370 -1370
- package/src/filiale/wenxi/ManageUserTypeSell.vue +173 -173
- package/src/filiale/wenxi/MeterQuery.vue +937 -964
- package/src/filiale/wenxi/NewGasStatistics.vue +522 -522
- package/src/filiale/wenxi/RecordInfoQuery.vue +1213 -1213
- package/src/filiale/wenxi/WebHandQuery.vue +475 -475
- package/src/filiale/wenxi/config/exportConfig.js +916 -916
- package/src/filiale/wenxi/sale.js +24 -24
- package/src/filiale/wenxi/webmeterManage.js +13 -13
- package/src/filiale/xinkang/EchartsBox.vue +139 -139
- package/src/filiale/xinkang/ManageBrandHouseCount.vue +347 -347
- package/src/filiale/xinkang/NewGasStatistics.vue +526 -526
- package/src/filiale/xinkang/exportConfig.js +1998 -1998
- package/src/filiale/xinkang/meterFaultChangeSummary.vue +196 -196
- package/src/filiale/xinkang/reportManage.js +15 -15
- package/src/filiale/xinkang/sale.js +13 -13
- package/src/filiale/xinkang/webmeterManage.js +9 -9
- package/src/filiale/zhongyi/GasStatistics.vue +521 -521
- package/src/main.js +66 -72
- package/lib/package_2022-12-01-14-30-50.json +0 -109
|
@@ -0,0 +1,481 @@
|
|
|
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-inline auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">{{$parent.$parent.usertitle}}名称</label>
|
|
11
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
12
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-2 form-group">
|
|
15
|
+
<label class="font_normal_body">{{$parent.$parent.usertitle}}地址</label>
|
|
16
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
17
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label class="font_normal_body">{{$parent.$parent.usertitle}}编号</label>
|
|
21
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
22
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-2 form-group">
|
|
25
|
+
<label class="font_normal_body" title="旧客户编号">档案编号</label>
|
|
26
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
27
|
+
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<div class="span" style="float:right;">
|
|
32
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
33
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
34
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
35
|
+
:field="$parent.$parent.getfield"
|
|
36
|
+
:footer="$parent.$parent.footer"
|
|
37
|
+
:header="$parent.$parent.other"
|
|
38
|
+
sqlurl="rs/logic/exportfile"
|
|
39
|
+
sql-name="MonthGasQuery"
|
|
40
|
+
template-name='月用气导出'
|
|
41
|
+
:choose-col="true"></export-excel>
|
|
42
|
+
|
|
43
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
44
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
45
|
+
titletable="月用气导出"
|
|
46
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
47
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
51
|
+
<div class="col-sm-2 form-group">
|
|
52
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
53
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
54
|
+
v-model="model.startDate"
|
|
55
|
+
:value.sync="model.startDate"
|
|
56
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
57
|
+
:show-reset-button="true"
|
|
58
|
+
>
|
|
59
|
+
</datepicker>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col-sm-2 form-group">
|
|
62
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
63
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
64
|
+
v-model="model.endDate"
|
|
65
|
+
:value.sync="model.endDate"
|
|
66
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
67
|
+
:show-reset-button="true"
|
|
68
|
+
>
|
|
69
|
+
</datepicker>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
<div class="col-sm-2 form-group">
|
|
75
|
+
<label class="font_normal_body" title="参数名称:用户类型">{{$parent.$parent.usertitle}}类型</label>
|
|
76
|
+
<v-select :value.sync="model.f_user_type"
|
|
77
|
+
@change="$parent.$parent.userTypeChange()"
|
|
78
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
79
|
+
condition="f_user_type = '{}'"
|
|
80
|
+
close-on-select></v-select>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<div class="col-sm-2 form-group">
|
|
84
|
+
<label class="font_normal_body">用气性质</label>
|
|
85
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
86
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
87
|
+
condition="f_gasproperties = '{}'"
|
|
88
|
+
close-on-select></v-select>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-2 form-group">
|
|
91
|
+
<label class="font_normal_body">状态</label>
|
|
92
|
+
<v-select :value.sync="model.f_state" v-model="model.f_state"
|
|
93
|
+
:options='$parent.$parent.f_state' placeholder='请选择'
|
|
94
|
+
multiple
|
|
95
|
+
:search="false"
|
|
96
|
+
condition="f_state in {} "
|
|
97
|
+
close-on-select></v-select>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="col-sm-2 form-group">
|
|
100
|
+
<label class="font_normal_body" title="参数名称:气表类型">气表类型</label>
|
|
101
|
+
<v-select :value.sync="model.f_meter_style"
|
|
102
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_style"
|
|
103
|
+
condition="f_meter_style = '{}'"
|
|
104
|
+
close-on-select></v-select>
|
|
105
|
+
</div>
|
|
106
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
107
|
+
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</criteria>
|
|
111
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
112
|
+
<template partial='head'>
|
|
113
|
+
<tr>
|
|
114
|
+
<th><nobr>{{$parent.$parent.$parent.usertitle}}编号</nobr></th>
|
|
115
|
+
<th><nobr>{{$parent.$parent.$parent.usertitle}}名称</nobr></th>
|
|
116
|
+
<th><nobr>档案编号</nobr></th>
|
|
117
|
+
<th><nobr>一月</nobr></th>
|
|
118
|
+
<th><nobr>二月</nobr></th>
|
|
119
|
+
<th><nobr>三月</nobr></th>
|
|
120
|
+
<th><nobr>四月</nobr></th>
|
|
121
|
+
<th><nobr>五月</nobr></th>
|
|
122
|
+
<th><nobr>六月</nobr></th>
|
|
123
|
+
<th><nobr>七月</nobr></th>
|
|
124
|
+
<th><nobr>八月</nobr></th>
|
|
125
|
+
<th><nobr>九月</nobr></th>
|
|
126
|
+
<th><nobr>十月</nobr></th>
|
|
127
|
+
<th><nobr>十一月</nobr></th>
|
|
128
|
+
<th><nobr>十二月</nobr></th>
|
|
129
|
+
<th><nobr>累计气量</nobr></th>
|
|
130
|
+
<th><nobr>累计金额</nobr></th>
|
|
131
|
+
<th><nobr>月平均气量</nobr></th>
|
|
132
|
+
<th><nobr>往年月平均气量</nobr></th>
|
|
133
|
+
<th><nobr>气表类型</nobr></th>
|
|
134
|
+
</tr>
|
|
135
|
+
</template>
|
|
136
|
+
<template partial='body'>
|
|
137
|
+
<td style="text-align: center;">
|
|
138
|
+
<nobr>{{row.code}}</nobr>
|
|
139
|
+
</td>
|
|
140
|
+
<td style="text-align: center;">
|
|
141
|
+
<nobr>{{row.username}}</nobr>
|
|
142
|
+
</td>
|
|
143
|
+
<td style="text-align: center;">
|
|
144
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
145
|
+
</td>
|
|
146
|
+
<td style="text-align: center;">
|
|
147
|
+
<nobr>{{row.jan}}</nobr>
|
|
148
|
+
</td>
|
|
149
|
+
<td style="text-align: center;">
|
|
150
|
+
<nobr>{{row.feb}}</nobr>
|
|
151
|
+
</td>
|
|
152
|
+
<td style="text-align: center;">
|
|
153
|
+
<nobr>{{row.mar}}</nobr>
|
|
154
|
+
</td>
|
|
155
|
+
<td style="text-align: center;">
|
|
156
|
+
<nobr>{{row.apr}}</nobr>
|
|
157
|
+
</td>
|
|
158
|
+
<td style="text-align: center;">
|
|
159
|
+
<nobr>{{row.may}}</nobr>
|
|
160
|
+
</td>
|
|
161
|
+
<td style="text-align: center;">
|
|
162
|
+
<nobr>{{row.jun}}</nobr>
|
|
163
|
+
</td>
|
|
164
|
+
<td style="text-align: center;">
|
|
165
|
+
<nobr>{{row.jul}}</nobr>
|
|
166
|
+
</td>
|
|
167
|
+
<td style="text-align: center;">
|
|
168
|
+
<nobr>{{row.jug}}</nobr>
|
|
169
|
+
</td>
|
|
170
|
+
<td style="text-align: center;">
|
|
171
|
+
<nobr>{{row.sep}}</nobr>
|
|
172
|
+
</td>
|
|
173
|
+
<td style="text-align: center;">
|
|
174
|
+
<nobr>{{row.oct}}</nobr>
|
|
175
|
+
</td>
|
|
176
|
+
<td style="text-align: center;">
|
|
177
|
+
<nobr>{{row.nov}}</nobr>
|
|
178
|
+
</td>
|
|
179
|
+
<td style="text-align: center;">
|
|
180
|
+
<nobr>{{row.dec}}</nobr>
|
|
181
|
+
</td>
|
|
182
|
+
<td style="text-align: center;">
|
|
183
|
+
<nobr>{{row.sum_oughtamount}}</nobr>
|
|
184
|
+
</td>
|
|
185
|
+
<td style="text-align: center;">
|
|
186
|
+
<nobr>{{row.f_oughtfee}}</nobr>
|
|
187
|
+
</td>
|
|
188
|
+
<td style="text-align: center;">
|
|
189
|
+
<nobr>{{row.avg_oughtamount}}</nobr>
|
|
190
|
+
</td>
|
|
191
|
+
<td style="text-align: center;">
|
|
192
|
+
<nobr>{{row.avg_qunianoughtamount}}</nobr>
|
|
193
|
+
</td>
|
|
194
|
+
<td style="text-align: center;">
|
|
195
|
+
<nobr>{{row.f_meter_style}}</nobr>
|
|
196
|
+
</td>
|
|
197
|
+
</template>
|
|
198
|
+
<template partial='foot'></template>
|
|
199
|
+
</data-grid>
|
|
200
|
+
</criteria-paged>
|
|
201
|
+
<table class="table-hover">
|
|
202
|
+
<tr style="position: relative" class="table-bordered">
|
|
203
|
+
<td
|
|
204
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
205
|
+
汇总信息
|
|
206
|
+
</td>
|
|
207
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
208
|
+
1月合计: {{sumsmodel.jan}}
|
|
209
|
+
</td>
|
|
210
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
211
|
+
2月合计: {{sumsmodel.feb}}
|
|
212
|
+
</td>
|
|
213
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
214
|
+
3月合计: {{sumsmodel.mar}}
|
|
215
|
+
</td>
|
|
216
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
217
|
+
4月合计: {{sumsmodel.apr}}
|
|
218
|
+
</td>
|
|
219
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
220
|
+
5月合计: {{sumsmodel.may}}
|
|
221
|
+
</td>
|
|
222
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
223
|
+
6月合计: {{sumsmodel.jun}}
|
|
224
|
+
</td>
|
|
225
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
226
|
+
7月合计: {{sumsmodel.jul}}
|
|
227
|
+
</td>
|
|
228
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
229
|
+
8月合计: {{sumsmodel.jug}}
|
|
230
|
+
</td>
|
|
231
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
232
|
+
9月合计: {{sumsmodel.sep}}
|
|
233
|
+
</td>
|
|
234
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
235
|
+
10月合计: {{sumsmodel.oct}}
|
|
236
|
+
</td>
|
|
237
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
238
|
+
11月合计: {{sumsmodel.nov}}
|
|
239
|
+
</td>
|
|
240
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
241
|
+
12月合计: {{sumsmodel.dec}}
|
|
242
|
+
</td>
|
|
243
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
244
|
+
累计用气量合计: {{sumsmodel.sum_oughtamount}}
|
|
245
|
+
</td>
|
|
246
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
247
|
+
累计金额合计: {{sumsmodel.f_oughtfee}}
|
|
248
|
+
</td>
|
|
249
|
+
</tr>
|
|
250
|
+
</table>
|
|
251
|
+
</div>
|
|
252
|
+
<div v-if="show">
|
|
253
|
+
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
</template>
|
|
258
|
+
<script>
|
|
259
|
+
import { PagedList } from 'vue-client'
|
|
260
|
+
import defaultPrint from './config/DefaultPrint'
|
|
261
|
+
import exportConfig from './config/exportConfig.js'
|
|
262
|
+
let readySomething = async function(self) {
|
|
263
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
264
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
265
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
266
|
+
await self.$MagLoadParams.loadParam()
|
|
267
|
+
self.smallareas=[{label: '全部',value: ''},...await self.$MagGetSaleParam.getsmallarea(self.$login.f.orgid)]
|
|
268
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
269
|
+
}
|
|
270
|
+
export default {
|
|
271
|
+
title: '月用气查询',
|
|
272
|
+
name: 'MonthGasQuery',
|
|
273
|
+
data () {
|
|
274
|
+
return {
|
|
275
|
+
model: new PagedList('rs/sql/MonthGasQuery', 30, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
|
|
276
|
+
jan: 0,
|
|
277
|
+
feb: 0,
|
|
278
|
+
mar: 0,
|
|
279
|
+
apr: 0,
|
|
280
|
+
may: 0,
|
|
281
|
+
jun: 0,
|
|
282
|
+
jul: 0,
|
|
283
|
+
jug: 0,
|
|
284
|
+
sep: 0,
|
|
285
|
+
oct: 0,
|
|
286
|
+
nov: 0,
|
|
287
|
+
dec: 0,
|
|
288
|
+
sum_oughtamount: 0,
|
|
289
|
+
f_oughtfee: 0
|
|
290
|
+
}),
|
|
291
|
+
initres: {
|
|
292
|
+
org:[this.$login.f.orgid],
|
|
293
|
+
dep:[],
|
|
294
|
+
user:[],
|
|
295
|
+
},
|
|
296
|
+
other: [],
|
|
297
|
+
footer: [],
|
|
298
|
+
gasproperties:[],
|
|
299
|
+
show:false,
|
|
300
|
+
rowdata:{},
|
|
301
|
+
criteriaShow: false,
|
|
302
|
+
orgCondtionStr: '',
|
|
303
|
+
modelval: [],
|
|
304
|
+
printshow: false,
|
|
305
|
+
all: false,
|
|
306
|
+
fields: {},
|
|
307
|
+
thead: '',
|
|
308
|
+
tfoot: '',
|
|
309
|
+
defaultfield: [],
|
|
310
|
+
config: {
|
|
311
|
+
defaultPrint: ['f_oughtfee', 'avg_oughtamount']
|
|
312
|
+
},
|
|
313
|
+
usertitle: this.$appdata.getSingleValue('用户名称前缀') ? this.$appdata.getSingleValue('用户名称前缀') : '客户',
|
|
314
|
+
smallareas:[{label: '全部',value: ''}], //区域
|
|
315
|
+
//合计数据
|
|
316
|
+
sumsmodel: {},
|
|
317
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
318
|
+
f_orgid: this.$login.f.orgid,
|
|
319
|
+
f_depid: this.$login.f.depids,
|
|
320
|
+
f_operatorid: this.$login.f.id
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
ready () {
|
|
324
|
+
readySomething(this)
|
|
325
|
+
},
|
|
326
|
+
methods: {
|
|
327
|
+
getotherfooter() {
|
|
328
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
329
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
330
|
+
this.other = [];
|
|
331
|
+
this.footer = [];
|
|
332
|
+
// let exportdata = this.getCondition;
|
|
333
|
+
let otherInData = [];
|
|
334
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
335
|
+
let footerData = [], exportfield = this.getfield;
|
|
336
|
+
footerData.push("合计");
|
|
337
|
+
let self = this;
|
|
338
|
+
for (var field in self.sumsmodel) {
|
|
339
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
340
|
+
}
|
|
341
|
+
this.footer.push(footerData);
|
|
342
|
+
this.other.push(otherInData);
|
|
343
|
+
},
|
|
344
|
+
userTypeChange () {
|
|
345
|
+
this.gasproperties=[]
|
|
346
|
+
if(this.$refs.paged.$refs.cri.model !==null) {
|
|
347
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties=''
|
|
348
|
+
|
|
349
|
+
console.log(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
350
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
351
|
+
}
|
|
352
|
+
else{
|
|
353
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
search(){
|
|
357
|
+
this.$refs.paged.$refs.cri.search()
|
|
358
|
+
},
|
|
359
|
+
cancel() {
|
|
360
|
+
this.show = false
|
|
361
|
+
},
|
|
362
|
+
selfSearch(args) {
|
|
363
|
+
args.condition = `${args.condition} ` + this.orgCondtionStr
|
|
364
|
+
// let f_orgstr = this.orgCondtionStr + 'and f_orgid = ' + this.f_orgid
|
|
365
|
+
// args.condition = `${args.condition} ` + f_orgstr
|
|
366
|
+
this.model.search(args.condition, args.model)
|
|
367
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
368
|
+
},
|
|
369
|
+
clear() {
|
|
370
|
+
//清空部门和人员
|
|
371
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
372
|
+
//部门和人员变为全选
|
|
373
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
374
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
375
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
376
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
377
|
+
})
|
|
378
|
+
},
|
|
379
|
+
show() {
|
|
380
|
+
this.criteriaShow = true
|
|
381
|
+
},
|
|
382
|
+
hidden() {
|
|
383
|
+
this.criteriaShow = !this.criteriaShow
|
|
384
|
+
},
|
|
385
|
+
showmsg(obj){
|
|
386
|
+
this.rowdata=obj
|
|
387
|
+
this.show=true
|
|
388
|
+
},
|
|
389
|
+
getRes(condition,obj) {
|
|
390
|
+
this.orgCondtionStr = condition
|
|
391
|
+
this.orgname = obj.orgnames[0]
|
|
392
|
+
this.depname = obj.depnames[0]
|
|
393
|
+
},
|
|
394
|
+
put() {
|
|
395
|
+
// 对Modelval进行排序
|
|
396
|
+
this.sortModelval()
|
|
397
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>非民用用气查询</th></tr><tr>`
|
|
398
|
+
for (let key of this.modelval) {
|
|
399
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
400
|
+
}
|
|
401
|
+
this.thead += '</tr>'
|
|
402
|
+
},
|
|
403
|
+
print() {
|
|
404
|
+
this.$refs.print.PrintAsFile()
|
|
405
|
+
this.printshow = false
|
|
406
|
+
},
|
|
407
|
+
dealmsg(val) {
|
|
408
|
+
this.rowdata=val
|
|
409
|
+
this.show=true
|
|
410
|
+
val.model = this.model.model
|
|
411
|
+
this.$dispatch('deal-msg', val)
|
|
412
|
+
},
|
|
413
|
+
close() {
|
|
414
|
+
this.printshow = false
|
|
415
|
+
this.all = false
|
|
416
|
+
},
|
|
417
|
+
// 对选择的列进行排序
|
|
418
|
+
sortModelval() {
|
|
419
|
+
let sortModel = []
|
|
420
|
+
Object.keys(this.fields).forEach((key) => {
|
|
421
|
+
if (this.modelval.includes(key)) {
|
|
422
|
+
sortModel.push(key)
|
|
423
|
+
}
|
|
424
|
+
})
|
|
425
|
+
this.modelval = sortModel
|
|
426
|
+
console.log('选择的打印的字段', this.modelval)
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
computed: {
|
|
430
|
+
getCondition() {
|
|
431
|
+
return {
|
|
432
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
433
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
434
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
getfield() {
|
|
438
|
+
return exportConfig.monthGasConfig
|
|
439
|
+
},
|
|
440
|
+
usertypes() {
|
|
441
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
442
|
+
},
|
|
443
|
+
f_state() {
|
|
444
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
445
|
+
},
|
|
446
|
+
metertypes() {
|
|
447
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
events: {
|
|
451
|
+
|
|
452
|
+
},
|
|
453
|
+
watch: {
|
|
454
|
+
'all'(val) {
|
|
455
|
+
if (val) {
|
|
456
|
+
this.modelval = this.bodyData
|
|
457
|
+
} else {
|
|
458
|
+
this.modelval = defaultPrint.config
|
|
459
|
+
this.put()
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
'modelval.length'() {
|
|
463
|
+
this.put()
|
|
464
|
+
},
|
|
465
|
+
sumsmodel: {
|
|
466
|
+
handler: function (val) {
|
|
467
|
+
this.getotherfooter();
|
|
468
|
+
},
|
|
469
|
+
deep: true
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
</script>
|
|
474
|
+
<style>
|
|
475
|
+
.datapanel {
|
|
476
|
+
color: #333;
|
|
477
|
+
background-color: white;
|
|
478
|
+
padding: 10px 20px;
|
|
479
|
+
border-radius:15px;
|
|
480
|
+
}
|
|
481
|
+
</style>
|