manage-client 3.3.1 → 3.3.2
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/lib/package_2022-12-01-14-30-50.json +109 -0
- 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/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/FillCardQuery.vue +569 -569
- package/src/filiale/shanxian/FillGasQuery.vue +588 -588
- package/src/filiale/shanxian/LostContactAnalysisList.vue +632 -632
- package/src/filiale/shanxian/OtherChargeQuery.vue +684 -684
- package/src/filiale/shanxian/UserLostContactAnalysis.vue +583 -583
- package/src/filiale/shanxian/UserQuery.vue +959 -959
- package/src/filiale/shanxian/sale.js +26 -26
- 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 +964 -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 +72 -66
- package/.gradle/4.4/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
|
@@ -1,475 +1,475 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div class="basic-main">
|
|
4
|
-
<div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
7
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
-
<div class="row" >
|
|
9
|
-
<div class="col-sm-2">
|
|
10
|
-
<label class="font_normal_body">组织机构</label>
|
|
11
|
-
<res-select :initresid="$parent.$parent.org"
|
|
12
|
-
style="width:60%"
|
|
13
|
-
@res-select="$parent.$parent.getorg"
|
|
14
|
-
:is-mul=false
|
|
15
|
-
restype='organization'>
|
|
16
|
-
</res-select>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-2">
|
|
19
|
-
<label class="font_normal_body">客户编号</label>
|
|
20
|
-
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
21
|
-
condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
|
|
22
|
-
>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="col-sm-2">
|
|
25
|
-
<label class="font_normal_body">客户名称</label>
|
|
26
|
-
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
|
|
27
|
-
condition="f_user_name like '%{}%'" v-next-el='userid' v-el:username>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="col-sm-2">
|
|
30
|
-
<label class="font_normal_body">客户地址</label>
|
|
31
|
-
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
|
|
32
|
-
condition="f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="span" style="float:right;margin-top:10px">
|
|
35
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
36
|
-
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
37
|
-
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
38
|
-
:field="$parent.$parent.getfield"
|
|
39
|
-
sqlurl="rs/easyExcel/exportExcel" sql-name="manage_webmeterHandQuery" template-name='物联网表抄表'
|
|
40
|
-
:choose-col="true"></export-excel>
|
|
41
|
-
<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>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
45
|
-
<div class="col-sm-2">
|
|
46
|
-
<label class="font_normal_body">小 区</label>
|
|
47
|
-
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
|
|
48
|
-
condition="f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_residential_area>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="col-sm-2">
|
|
51
|
-
<label class="font_normal_body">表 号</label>
|
|
52
|
-
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
|
|
53
|
-
condition="f_meternumber = '{}'" v-next-el='meternumber' v-el:meternumber
|
|
54
|
-
>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="col-sm-2 form-group">
|
|
57
|
-
<label class="font_normal_body">气价类型</label>
|
|
58
|
-
<v-select :value.sync="model.pricetype" v-model="model.pricetype"
|
|
59
|
-
placeholder='气价类型' :options="$parent.$parent.pricetypes"
|
|
60
|
-
close-on-select>
|
|
61
|
-
</v-select>
|
|
62
|
-
</div>
|
|
63
|
-
<div class="col-sm-2 form-group">
|
|
64
|
-
<label class="font_normal_body">客户类型</label>
|
|
65
|
-
<v-select :value.sync="model.f_user_type"
|
|
66
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
67
|
-
condition="f_user_type = '{}'"
|
|
68
|
-
close-on-select></v-select>
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
<div class="col-sm-2 form-group">
|
|
72
|
-
<label class="font_normal_body">气价名称</label>
|
|
73
|
-
<v-select :value.sync="model.f_price_name"
|
|
74
|
-
v-model="model.f_price_name"
|
|
75
|
-
:options="$parent.$parent.getPricenames"
|
|
76
|
-
condition="f_price_name = '{}'"
|
|
77
|
-
close-on-select></v-select>
|
|
78
|
-
</div>
|
|
79
|
-
<div class="col-sm-2 form-group">
|
|
80
|
-
<label class="font_normal_body">气表品牌</label>
|
|
81
|
-
<v-select :value.sync="model.f_meter_brand"
|
|
82
|
-
v-model="model.f_meter_brand"
|
|
83
|
-
:options="$parent.$parent.meterbrands"
|
|
84
|
-
condition="f_meter_brand = '{}'"
|
|
85
|
-
close-on-select></v-select>
|
|
86
|
-
</div>
|
|
87
|
-
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
88
|
-
<label class="font_normal_body">用气量区间</label>
|
|
89
|
-
<div class="row">
|
|
90
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
|
|
91
|
-
condition="f_oughtamount >= {} " placeholder="">
|
|
92
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
93
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
|
|
94
|
-
condition="f_oughtamount <= {} " placeholder="">
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
98
|
-
<label class="font_normal_body">用气金额区间</label>
|
|
99
|
-
<div class="row">
|
|
100
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtfee1"
|
|
101
|
-
condition="f_oughtfee >= {} " placeholder="">
|
|
102
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
103
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtfee2"
|
|
104
|
-
condition="f_oughtfee <= {} " placeholder="">
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
108
|
-
<label class="font_normal_body"> 充值区间 </label>
|
|
109
|
-
<div class="row">
|
|
110
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
|
|
111
|
-
condition="f_collection >= {} " placeholder="">
|
|
112
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
113
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
|
|
114
|
-
condition="f_collection <= {} " placeholder="">
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="col-sm-2 form-group">
|
|
118
|
-
<label class="font_normal_body" for="startDate">抄表日期</label>
|
|
119
|
-
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
120
|
-
v-model="model.startDate"
|
|
121
|
-
:value.sync="model.startDate"
|
|
122
|
-
:disabled-days-of-Week="[]"
|
|
123
|
-
:format="'yyyy-MM-dd 00:00:00'"
|
|
124
|
-
:show-reset-button="reset">
|
|
125
|
-
</datepicker>
|
|
126
|
-
</div>
|
|
127
|
-
<div class="col-sm-2 form-group">
|
|
128
|
-
<label class="font_normal_body" for="endDate">抄表日期</label>
|
|
129
|
-
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
130
|
-
v-model="model.endDate"
|
|
131
|
-
:value.sync="model.endDate"
|
|
132
|
-
:disabled-days-of-Week="[]"
|
|
133
|
-
:format="'yyyy-MM-dd 23:59:59'"
|
|
134
|
-
:show-reset-button="reset">
|
|
135
|
-
</datepicker>
|
|
136
|
-
</div>
|
|
137
|
-
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
138
|
-
<label class="font_normal_body">余额区间</label>
|
|
139
|
-
<div class="row">
|
|
140
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_jval1"
|
|
141
|
-
condition="f_jval >= {} " placeholder="">
|
|
142
|
-
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
143
|
-
<input type="text" style="width:27%" class="input_search" v-model="model.f_jval2"
|
|
144
|
-
condition="f_jval <= {} " placeholder="">
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
</criteria>
|
|
150
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
151
|
-
<template partial='head'>
|
|
152
|
-
<tr>
|
|
153
|
-
<th><nobr>客户编号</nobr></th>
|
|
154
|
-
<th><nobr>客户名称</nobr></th>
|
|
155
|
-
<th><nobr>小区名称</nobr></th>
|
|
156
|
-
<th><nobr>地址</nobr></th>
|
|
157
|
-
|
|
158
|
-
<th><nobr>表号</nobr></th>
|
|
159
|
-
<th><nobr>气表品牌</nobr></th>
|
|
160
|
-
<th><nobr>抄表日期</nobr></th>
|
|
161
|
-
<th><nobr>累计购气金额</nobr></th>
|
|
162
|
-
<th><nobr>上期底数</nobr></th>
|
|
163
|
-
<th><nobr>本期底数</nobr></th>
|
|
164
|
-
<th><nobr>系统余额</nobr></th>
|
|
165
|
-
<th><nobr>表上余额</nobr></th>
|
|
166
|
-
<th><nobr>当前周期已用气量</nobr></th>
|
|
167
|
-
<th><nobr>当前周期消费金额</nobr></th>
|
|
168
|
-
<th><nobr>本次气量</nobr></th>
|
|
169
|
-
<th><nobr>本次金额</nobr></th>
|
|
170
|
-
|
|
171
|
-
<th><nobr>一阶气价</nobr></th>
|
|
172
|
-
<th><nobr>一阶气量</nobr></th>
|
|
173
|
-
<th><nobr>一阶金额</nobr></th>
|
|
174
|
-
<th><nobr>二阶气价</nobr></th>
|
|
175
|
-
<th><nobr>二阶气量</nobr></th>
|
|
176
|
-
<th><nobr>二阶金额</nobr></th>
|
|
177
|
-
<th><nobr>三阶气价</nobr></th>
|
|
178
|
-
<th><nobr>三阶气量</nobr></th>
|
|
179
|
-
<th><nobr>三阶金额</nobr></th>
|
|
180
|
-
|
|
181
|
-
<th><nobr>信号强度</nobr></th>
|
|
182
|
-
<th><nobr>信噪比</nobr></th>
|
|
183
|
-
<th><nobr>电压</nobr></th>
|
|
184
|
-
<th><nobr>阀门关闭标志</nobr></th>
|
|
185
|
-
<th><nobr>阀门状态</nobr></th>
|
|
186
|
-
<th><nobr>磁干扰</nobr></th>
|
|
187
|
-
<th><nobr>异常阀门</nobr></th>
|
|
188
|
-
<th><nobr>拆表报警</nobr></th>
|
|
189
|
-
<th><nobr>过流保护</nobr></th>
|
|
190
|
-
<th><nobr>死表</nobr></th>
|
|
191
|
-
<th><nobr>上报类型</nobr></th>
|
|
192
|
-
</tr>
|
|
193
|
-
</template>
|
|
194
|
-
<template partial='body' partial='list'>
|
|
195
|
-
<tr >
|
|
196
|
-
<td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
197
|
-
<td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
198
|
-
<td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
199
|
-
<td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
|
|
200
|
-
|
|
201
|
-
<th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
|
|
202
|
-
<th style="text-align:center"><nobr>{{row.f_meter_brand}}</nobr></th>
|
|
203
|
-
<th style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></th>
|
|
204
|
-
<th style="text-align:center"><nobr>{{row.f_total_fee}}</nobr></th>
|
|
205
|
-
<th style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></th>
|
|
206
|
-
<th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
|
|
207
|
-
<th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
|
|
208
|
-
<th style="text-align:center"><nobr>{{row.f_jval}}</nobr></th>
|
|
209
|
-
<th style="text-align:center"><nobr>{{row.cyclegas}}</nobr></th>
|
|
210
|
-
<th style="text-align:center"><nobr>{{row.cyclefee}}</nobr></th>
|
|
211
|
-
<th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
|
|
212
|
-
<th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
|
|
213
|
-
|
|
214
|
-
<th style="text-align:center"><nobr>{{row.f_stair1price}}</nobr></th>
|
|
215
|
-
<th style="text-align:center"><nobr>{{row.f_stairamount1}}</nobr></th>
|
|
216
|
-
<th style="text-align:center"><nobr>{{row.f_stair1fee}}</nobr></th>
|
|
217
|
-
<th style="text-align:center"><nobr>{{row.f_stair2price}}</nobr></th>
|
|
218
|
-
<th style="text-align:center"><nobr>{{row.f_stairamount2}}</nobr></th>
|
|
219
|
-
<th style="text-align:center"><nobr>{{row.f_stair2fee}}</nobr></th>
|
|
220
|
-
<th style="text-align:center"><nobr>{{row.f_stair3price}}</nobr></th>
|
|
221
|
-
<th style="text-align:center"><nobr>{{row.f_stairamount3}}</nobr></th>
|
|
222
|
-
<th style="text-align:center"><nobr>{{row.f_stair3fee}}</nobr></th>
|
|
223
|
-
|
|
224
|
-
<th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
|
|
225
|
-
<th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
|
|
226
|
-
<th style="text-align:center"><nobr>{{row.f_batteryLevel}}</nobr></th>
|
|
227
|
-
<th style="text-align:center"><nobr>{{row.f_networkShutValve}}</nobr></th>
|
|
228
|
-
<th style="text-align:center"><nobr>{{row.f_valveState}}</nobr></th>
|
|
229
|
-
<th style="text-align:center"><nobr>{{row.f_magneticInterference}}</nobr></th>
|
|
230
|
-
<th style="text-align:center"><nobr>{{row.f_valve_exception}}</nobr></th>
|
|
231
|
-
<th style="text-align:center"><nobr>{{row.f_SplitAlarm}}</nobr></th>
|
|
232
|
-
<th style="text-align:center"><nobr>{{row.f_overCurrentProtection}}</nobr></th>
|
|
233
|
-
<th style="text-align:center"><nobr>{{row.f_die_meter}}</nobr></th>
|
|
234
|
-
<th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
|
|
235
|
-
</tr>
|
|
236
|
-
</template>
|
|
237
|
-
<template partial='foot'></template>
|
|
238
|
-
</data-grid>
|
|
239
|
-
</criteria-paged>
|
|
240
|
-
</div>
|
|
241
|
-
<div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
|
|
242
|
-
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
243
|
-
</div>
|
|
244
|
-
</div>
|
|
245
|
-
</div>
|
|
246
|
-
</template>
|
|
247
|
-
|
|
248
|
-
<script>
|
|
249
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
250
|
-
import exportConfig from './config/exportConfig'
|
|
251
|
-
import * as Util from './../../Util'
|
|
252
|
-
import plugins from './../../plugins/GetLoginInfoService'
|
|
253
|
-
|
|
254
|
-
let readySomething = async function (self) {
|
|
255
|
-
await self.$MagLoadParams.loadParam()
|
|
256
|
-
self.initParams()
|
|
257
|
-
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
258
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
|
|
259
|
-
}
|
|
260
|
-
export default {
|
|
261
|
-
title: '物联网抄表查询',
|
|
262
|
-
data () {
|
|
263
|
-
return {
|
|
264
|
-
show:false,
|
|
265
|
-
org:[this.$login.f.orgid],
|
|
266
|
-
orgcondition: ' and f_orgid = ' + this.$login.f.orgid,
|
|
267
|
-
//f_filialeid: this.$login.f.f_orgid,
|
|
268
|
-
detaillist: [],
|
|
269
|
-
meterbrands: [],
|
|
270
|
-
prices: [],
|
|
271
|
-
gasproperties:[],
|
|
272
|
-
condition:'',
|
|
273
|
-
rowdata:{},
|
|
274
|
-
getstart:'',
|
|
275
|
-
config: {
|
|
276
|
-
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
|
|
277
|
-
'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
|
|
278
|
-
},
|
|
279
|
-
sumsmodel: {},
|
|
280
|
-
orgid:[this.$login.f.orgid],
|
|
281
|
-
criteriaShow:false,
|
|
282
|
-
//默认打印列
|
|
283
|
-
defaultfield: [],
|
|
284
|
-
orgCondtionStr: '',
|
|
285
|
-
model: new PagedList('rs/sql/manage_webmeterHandQuery', 50,{
|
|
286
|
-
startDate: 'this.model.startDate',
|
|
287
|
-
endDate: 'this.model.endDate'
|
|
288
|
-
}),
|
|
289
|
-
showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
ready () {
|
|
293
|
-
// this.$refs.paged.$refs.criteria.search()
|
|
294
|
-
readySomething(this).then(() => {
|
|
295
|
-
this.$emit('ready')
|
|
296
|
-
}).catch((error) => {
|
|
297
|
-
this.$emit('error', error)
|
|
298
|
-
})
|
|
299
|
-
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
300
|
-
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
301
|
-
// this.$refs.paged.$refs.criteria.search()
|
|
302
|
-
},
|
|
303
|
-
methods: {
|
|
304
|
-
// inputChange () {
|
|
305
|
-
// if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
|
|
306
|
-
// this.$refs.paged.$refs.criteria.model.startDate = ''
|
|
307
|
-
// this.$refs.paged.$refs.criteria.model.endDate = ''
|
|
308
|
-
// }else{
|
|
309
|
-
// this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
310
|
-
// this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
311
|
-
// }
|
|
312
|
-
// },
|
|
313
|
-
initParams() {
|
|
314
|
-
// 初始化气表品牌
|
|
315
|
-
let brandArr = []
|
|
316
|
-
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
317
|
-
let temp = {}
|
|
318
|
-
temp.label = item.label
|
|
319
|
-
temp.value = item.value.f_meter_brand
|
|
320
|
-
brandArr.push(temp)
|
|
321
|
-
})
|
|
322
|
-
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
323
|
-
//初始化气表价格
|
|
324
|
-
this.prices = this.$MagGetSaleParam.getPrices();
|
|
325
|
-
},
|
|
326
|
-
async updateParams() {
|
|
327
|
-
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
328
|
-
this.initParams()
|
|
329
|
-
},
|
|
330
|
-
getorg(obj) {
|
|
331
|
-
if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
332
|
-
this.orgcondition = " and f_orgid in " + plugins.convertToIn(obj)
|
|
333
|
-
}else{
|
|
334
|
-
this.orgcondition = " and f_orgid = " + this.$login.f.orgid
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
userTypeChange () {
|
|
338
|
-
this.gasproperties=[]
|
|
339
|
-
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
340
|
-
this.$refs.paged.$refs.criteria.model.f_gasproperties=''
|
|
341
|
-
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
342
|
-
}
|
|
343
|
-
else{
|
|
344
|
-
this.gasproperties =[{label: '全部', value: ''}]
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
hidden(){
|
|
348
|
-
this.criteriaShow = !this.criteriaShow
|
|
349
|
-
},
|
|
350
|
-
cancel() {
|
|
351
|
-
this.show = false
|
|
352
|
-
},
|
|
353
|
-
clearmsg () {
|
|
354
|
-
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
355
|
-
this.$refs.paged.$refs.criteria.model[key] = []
|
|
356
|
-
})
|
|
357
|
-
},
|
|
358
|
-
getRes (obj) {
|
|
359
|
-
this.orgCondtionStr = condition
|
|
360
|
-
this.orgname = obj.orgnames[0]
|
|
361
|
-
this.depname = obj.depnames[0]
|
|
362
|
-
},
|
|
363
|
-
showmsg(obj){
|
|
364
|
-
this.rowdata=obj
|
|
365
|
-
this.show=true
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
search (args) {
|
|
369
|
-
args.condition = `${args.condition}`+this.orgcondition
|
|
370
|
-
this.condition = args.condition
|
|
371
|
-
this.model.search(args.condition, args.model)
|
|
372
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
373
|
-
// args.condition = `${args.condition}`
|
|
374
|
-
// if (this.orgcondition)
|
|
375
|
-
// args.condition = `${args.condition}` + this.orgcondition
|
|
376
|
-
// else
|
|
377
|
-
// args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
|
|
378
|
-
// this.model.search(args.condition, args.model)
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
watch: {
|
|
383
|
-
'model.rows'(val) {
|
|
384
|
-
//如果有合计 这里为true, 其他为false ,反正相反
|
|
385
|
-
this.showbottomsum=true;
|
|
386
|
-
if(val.length === 0){
|
|
387
|
-
this.sumsmodel = {}
|
|
388
|
-
this.showbottomsum=false;
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
'orgCondtionStr'(val) {
|
|
392
|
-
let res = val.match(/'(.*?)'/)
|
|
393
|
-
console.log('正则提取:',res && res[1])
|
|
394
|
-
if (res) {
|
|
395
|
-
this.f_filialeid = res[1]
|
|
396
|
-
// this.updateParams()
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
computed: {
|
|
401
|
-
|
|
402
|
-
getCondition() {
|
|
403
|
-
|
|
404
|
-
return {
|
|
405
|
-
condition: this.condition,
|
|
406
|
-
startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
|
|
407
|
-
endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
getstart(){
|
|
411
|
-
return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
412
|
-
},
|
|
413
|
-
getPricenames() {
|
|
414
|
-
let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
|
|
415
|
-
let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
|
|
416
|
-
let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
|
|
417
|
-
console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
|
|
418
|
-
console.log("查看f_orgid:",this.$login.f.f_orgid)
|
|
419
|
-
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
420
|
-
let rs = []
|
|
421
|
-
let priceArr = []
|
|
422
|
-
if ( pricetype.length >0) {
|
|
423
|
-
let params = {
|
|
424
|
-
f_price_type: pricetype[0],
|
|
425
|
-
filter: this.org[0],
|
|
426
|
-
prices: this.prices
|
|
427
|
-
}
|
|
428
|
-
console.log("打印一下params:",params)
|
|
429
|
-
this.$MagGetSaleParam.getPrice(params).forEach((item) => {
|
|
430
|
-
console.log("====================================》")
|
|
431
|
-
let temp = {}
|
|
432
|
-
temp.label = item.label
|
|
433
|
-
temp.value = item.value.f_price_name
|
|
434
|
-
priceArr.push(temp)
|
|
435
|
-
console.log("打印一下temp:",temp)
|
|
436
|
-
})
|
|
437
|
-
|
|
438
|
-
rs = [{label: '全部', value: ''}, ...priceArr]
|
|
439
|
-
}
|
|
440
|
-
if (rs.length === 0) {
|
|
441
|
-
console.log('rs读出来是空')
|
|
442
|
-
this.$refs.paged.$refs.criteria.model.f_price_name = ''
|
|
443
|
-
}
|
|
444
|
-
return rs
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
getfield () {
|
|
448
|
-
return exportConfig.webmeterHandConfig
|
|
449
|
-
},
|
|
450
|
-
usertypes() {
|
|
451
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
452
|
-
},
|
|
453
|
-
pricetypes() {
|
|
454
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
455
|
-
},
|
|
456
|
-
gasState() {
|
|
457
|
-
return [{label:'正常', value:'正常'},
|
|
458
|
-
{label:'异常', value:'异常'},
|
|
459
|
-
]
|
|
460
|
-
},
|
|
461
|
-
isChange() {
|
|
462
|
-
return [{label:'是', value:'是'},
|
|
463
|
-
{label:'否', value:'否'},
|
|
464
|
-
]
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
</script>
|
|
469
|
-
|
|
470
|
-
<style>
|
|
471
|
-
.showbottom{
|
|
472
|
-
height:95%
|
|
473
|
-
}
|
|
474
|
-
</style>
|
|
475
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row" >
|
|
9
|
+
<div class="col-sm-2">
|
|
10
|
+
<label class="font_normal_body">组织机构</label>
|
|
11
|
+
<res-select :initresid="$parent.$parent.org"
|
|
12
|
+
style="width:60%"
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
:is-mul=false
|
|
15
|
+
restype='organization'>
|
|
16
|
+
</res-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2">
|
|
19
|
+
<label class="font_normal_body">客户编号</label>
|
|
20
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
21
|
+
condition="f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
|
|
22
|
+
>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-2">
|
|
25
|
+
<label class="font_normal_body">客户名称</label>
|
|
26
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
|
|
27
|
+
condition="f_user_name like '%{}%'" v-next-el='userid' v-el:username>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2">
|
|
30
|
+
<label class="font_normal_body">客户地址</label>
|
|
31
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
|
|
32
|
+
condition="f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="span" style="float:right;margin-top:10px">
|
|
35
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
36
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
37
|
+
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
38
|
+
:field="$parent.$parent.getfield"
|
|
39
|
+
sqlurl="rs/easyExcel/exportExcel" sql-name="manage_webmeterHandQuery" template-name='物联网表抄表'
|
|
40
|
+
:choose-col="true"></export-excel>
|
|
41
|
+
<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>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
45
|
+
<div class="col-sm-2">
|
|
46
|
+
<label class="font_normal_body">小 区</label>
|
|
47
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
|
|
48
|
+
condition="f_residential_area like '%{}%'" v-next-el='f_residential_area' v-el:f_residential_area>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-2">
|
|
51
|
+
<label class="font_normal_body">表 号</label>
|
|
52
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
|
|
53
|
+
condition="f_meternumber = '{}'" v-next-el='meternumber' v-el:meternumber
|
|
54
|
+
>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-2 form-group">
|
|
57
|
+
<label class="font_normal_body">气价类型</label>
|
|
58
|
+
<v-select :value.sync="model.pricetype" v-model="model.pricetype"
|
|
59
|
+
placeholder='气价类型' :options="$parent.$parent.pricetypes"
|
|
60
|
+
close-on-select>
|
|
61
|
+
</v-select>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-2 form-group">
|
|
64
|
+
<label class="font_normal_body">客户类型</label>
|
|
65
|
+
<v-select :value.sync="model.f_user_type"
|
|
66
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
67
|
+
condition="f_user_type = '{}'"
|
|
68
|
+
close-on-select></v-select>
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<div class="col-sm-2 form-group">
|
|
72
|
+
<label class="font_normal_body">气价名称</label>
|
|
73
|
+
<v-select :value.sync="model.f_price_name"
|
|
74
|
+
v-model="model.f_price_name"
|
|
75
|
+
:options="$parent.$parent.getPricenames"
|
|
76
|
+
condition="f_price_name = '{}'"
|
|
77
|
+
close-on-select></v-select>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-2 form-group">
|
|
80
|
+
<label class="font_normal_body">气表品牌</label>
|
|
81
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
82
|
+
v-model="model.f_meter_brand"
|
|
83
|
+
:options="$parent.$parent.meterbrands"
|
|
84
|
+
condition="f_meter_brand = '{}'"
|
|
85
|
+
close-on-select></v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
88
|
+
<label class="font_normal_body">用气量区间</label>
|
|
89
|
+
<div class="row">
|
|
90
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
|
|
91
|
+
condition="f_oughtamount >= {} " placeholder="">
|
|
92
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
93
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
|
|
94
|
+
condition="f_oughtamount <= {} " placeholder="">
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
98
|
+
<label class="font_normal_body">用气金额区间</label>
|
|
99
|
+
<div class="row">
|
|
100
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtfee1"
|
|
101
|
+
condition="f_oughtfee >= {} " placeholder="">
|
|
102
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
103
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtfee2"
|
|
104
|
+
condition="f_oughtfee <= {} " placeholder="">
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
108
|
+
<label class="font_normal_body"> 充值区间 </label>
|
|
109
|
+
<div class="row">
|
|
110
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
|
|
111
|
+
condition="f_collection >= {} " placeholder="">
|
|
112
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
113
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
|
|
114
|
+
condition="f_collection <= {} " placeholder="">
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="col-sm-2 form-group">
|
|
118
|
+
<label class="font_normal_body" for="startDate">抄表日期</label>
|
|
119
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
120
|
+
v-model="model.startDate"
|
|
121
|
+
:value.sync="model.startDate"
|
|
122
|
+
:disabled-days-of-Week="[]"
|
|
123
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
124
|
+
:show-reset-button="reset">
|
|
125
|
+
</datepicker>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="col-sm-2 form-group">
|
|
128
|
+
<label class="font_normal_body" for="endDate">抄表日期</label>
|
|
129
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
130
|
+
v-model="model.endDate"
|
|
131
|
+
:value.sync="model.endDate"
|
|
132
|
+
:disabled-days-of-Week="[]"
|
|
133
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
134
|
+
:show-reset-button="reset">
|
|
135
|
+
</datepicker>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
138
|
+
<label class="font_normal_body">余额区间</label>
|
|
139
|
+
<div class="row">
|
|
140
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_jval1"
|
|
141
|
+
condition="f_jval >= {} " placeholder="">
|
|
142
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
143
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_jval2"
|
|
144
|
+
condition="f_jval <= {} " placeholder="">
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</criteria>
|
|
150
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
151
|
+
<template partial='head'>
|
|
152
|
+
<tr>
|
|
153
|
+
<th><nobr>客户编号</nobr></th>
|
|
154
|
+
<th><nobr>客户名称</nobr></th>
|
|
155
|
+
<th><nobr>小区名称</nobr></th>
|
|
156
|
+
<th><nobr>地址</nobr></th>
|
|
157
|
+
|
|
158
|
+
<th><nobr>表号</nobr></th>
|
|
159
|
+
<th><nobr>气表品牌</nobr></th>
|
|
160
|
+
<th><nobr>抄表日期</nobr></th>
|
|
161
|
+
<th><nobr>累计购气金额</nobr></th>
|
|
162
|
+
<th><nobr>上期底数</nobr></th>
|
|
163
|
+
<th><nobr>本期底数</nobr></th>
|
|
164
|
+
<th><nobr>系统余额</nobr></th>
|
|
165
|
+
<th><nobr>表上余额</nobr></th>
|
|
166
|
+
<th><nobr>当前周期已用气量</nobr></th>
|
|
167
|
+
<th><nobr>当前周期消费金额</nobr></th>
|
|
168
|
+
<th><nobr>本次气量</nobr></th>
|
|
169
|
+
<th><nobr>本次金额</nobr></th>
|
|
170
|
+
|
|
171
|
+
<th><nobr>一阶气价</nobr></th>
|
|
172
|
+
<th><nobr>一阶气量</nobr></th>
|
|
173
|
+
<th><nobr>一阶金额</nobr></th>
|
|
174
|
+
<th><nobr>二阶气价</nobr></th>
|
|
175
|
+
<th><nobr>二阶气量</nobr></th>
|
|
176
|
+
<th><nobr>二阶金额</nobr></th>
|
|
177
|
+
<th><nobr>三阶气价</nobr></th>
|
|
178
|
+
<th><nobr>三阶气量</nobr></th>
|
|
179
|
+
<th><nobr>三阶金额</nobr></th>
|
|
180
|
+
|
|
181
|
+
<th><nobr>信号强度</nobr></th>
|
|
182
|
+
<th><nobr>信噪比</nobr></th>
|
|
183
|
+
<th><nobr>电压</nobr></th>
|
|
184
|
+
<th><nobr>阀门关闭标志</nobr></th>
|
|
185
|
+
<th><nobr>阀门状态</nobr></th>
|
|
186
|
+
<th><nobr>磁干扰</nobr></th>
|
|
187
|
+
<th><nobr>异常阀门</nobr></th>
|
|
188
|
+
<th><nobr>拆表报警</nobr></th>
|
|
189
|
+
<th><nobr>过流保护</nobr></th>
|
|
190
|
+
<th><nobr>死表</nobr></th>
|
|
191
|
+
<th><nobr>上报类型</nobr></th>
|
|
192
|
+
</tr>
|
|
193
|
+
</template>
|
|
194
|
+
<template partial='body' partial='list'>
|
|
195
|
+
<tr >
|
|
196
|
+
<td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
197
|
+
<td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
198
|
+
<td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
199
|
+
<td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
|
|
200
|
+
|
|
201
|
+
<th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
|
|
202
|
+
<th style="text-align:center"><nobr>{{row.f_meter_brand}}</nobr></th>
|
|
203
|
+
<th style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></th>
|
|
204
|
+
<th style="text-align:center"><nobr>{{row.f_total_fee}}</nobr></th>
|
|
205
|
+
<th style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></th>
|
|
206
|
+
<th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
|
|
207
|
+
<th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
|
|
208
|
+
<th style="text-align:center"><nobr>{{row.f_jval}}</nobr></th>
|
|
209
|
+
<th style="text-align:center"><nobr>{{row.cyclegas}}</nobr></th>
|
|
210
|
+
<th style="text-align:center"><nobr>{{row.cyclefee}}</nobr></th>
|
|
211
|
+
<th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
|
|
212
|
+
<th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
|
|
213
|
+
|
|
214
|
+
<th style="text-align:center"><nobr>{{row.f_stair1price}}</nobr></th>
|
|
215
|
+
<th style="text-align:center"><nobr>{{row.f_stairamount1}}</nobr></th>
|
|
216
|
+
<th style="text-align:center"><nobr>{{row.f_stair1fee}}</nobr></th>
|
|
217
|
+
<th style="text-align:center"><nobr>{{row.f_stair2price}}</nobr></th>
|
|
218
|
+
<th style="text-align:center"><nobr>{{row.f_stairamount2}}</nobr></th>
|
|
219
|
+
<th style="text-align:center"><nobr>{{row.f_stair2fee}}</nobr></th>
|
|
220
|
+
<th style="text-align:center"><nobr>{{row.f_stair3price}}</nobr></th>
|
|
221
|
+
<th style="text-align:center"><nobr>{{row.f_stairamount3}}</nobr></th>
|
|
222
|
+
<th style="text-align:center"><nobr>{{row.f_stair3fee}}</nobr></th>
|
|
223
|
+
|
|
224
|
+
<th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
|
|
225
|
+
<th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
|
|
226
|
+
<th style="text-align:center"><nobr>{{row.f_batteryLevel}}</nobr></th>
|
|
227
|
+
<th style="text-align:center"><nobr>{{row.f_networkShutValve}}</nobr></th>
|
|
228
|
+
<th style="text-align:center"><nobr>{{row.f_valveState}}</nobr></th>
|
|
229
|
+
<th style="text-align:center"><nobr>{{row.f_magneticInterference}}</nobr></th>
|
|
230
|
+
<th style="text-align:center"><nobr>{{row.f_valve_exception}}</nobr></th>
|
|
231
|
+
<th style="text-align:center"><nobr>{{row.f_SplitAlarm}}</nobr></th>
|
|
232
|
+
<th style="text-align:center"><nobr>{{row.f_overCurrentProtection}}</nobr></th>
|
|
233
|
+
<th style="text-align:center"><nobr>{{row.f_die_meter}}</nobr></th>
|
|
234
|
+
<th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
|
|
235
|
+
</tr>
|
|
236
|
+
</template>
|
|
237
|
+
<template partial='foot'></template>
|
|
238
|
+
</data-grid>
|
|
239
|
+
</criteria-paged>
|
|
240
|
+
</div>
|
|
241
|
+
<div class="flex" style="width:99%;height:98%;margin-bottom:0px" v-if="show">
|
|
242
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</template>
|
|
247
|
+
|
|
248
|
+
<script>
|
|
249
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
250
|
+
import exportConfig from './config/exportConfig'
|
|
251
|
+
import * as Util from './../../Util'
|
|
252
|
+
import plugins from './../../plugins/GetLoginInfoService'
|
|
253
|
+
|
|
254
|
+
let readySomething = async function (self) {
|
|
255
|
+
await self.$MagLoadParams.loadParam()
|
|
256
|
+
self.initParams()
|
|
257
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
258
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
|
|
259
|
+
}
|
|
260
|
+
export default {
|
|
261
|
+
title: '物联网抄表查询',
|
|
262
|
+
data () {
|
|
263
|
+
return {
|
|
264
|
+
show:false,
|
|
265
|
+
org:[this.$login.f.orgid],
|
|
266
|
+
orgcondition: ' and f_orgid = ' + this.$login.f.orgid,
|
|
267
|
+
//f_filialeid: this.$login.f.f_orgid,
|
|
268
|
+
detaillist: [],
|
|
269
|
+
meterbrands: [],
|
|
270
|
+
prices: [],
|
|
271
|
+
gasproperties:[],
|
|
272
|
+
condition:'',
|
|
273
|
+
rowdata:{},
|
|
274
|
+
getstart:'',
|
|
275
|
+
config: {
|
|
276
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
|
|
277
|
+
'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
|
|
278
|
+
},
|
|
279
|
+
sumsmodel: {},
|
|
280
|
+
orgid:[this.$login.f.orgid],
|
|
281
|
+
criteriaShow:false,
|
|
282
|
+
//默认打印列
|
|
283
|
+
defaultfield: [],
|
|
284
|
+
orgCondtionStr: '',
|
|
285
|
+
model: new PagedList('rs/sql/manage_webmeterHandQuery', 50,{
|
|
286
|
+
startDate: 'this.model.startDate',
|
|
287
|
+
endDate: 'this.model.endDate'
|
|
288
|
+
}),
|
|
289
|
+
showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
ready () {
|
|
293
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
294
|
+
readySomething(this).then(() => {
|
|
295
|
+
this.$emit('ready')
|
|
296
|
+
}).catch((error) => {
|
|
297
|
+
this.$emit('error', error)
|
|
298
|
+
})
|
|
299
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
300
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
301
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
302
|
+
},
|
|
303
|
+
methods: {
|
|
304
|
+
// inputChange () {
|
|
305
|
+
// if (this.$refs.paged.$refs.criteria.model.f_userinfo_code){
|
|
306
|
+
// this.$refs.paged.$refs.criteria.model.startDate = ''
|
|
307
|
+
// this.$refs.paged.$refs.criteria.model.endDate = ''
|
|
308
|
+
// }else{
|
|
309
|
+
// this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),0).substring(0,10) + ' 00:00:00'
|
|
310
|
+
// this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),0).substring(0,10) + ' 23:59:59'
|
|
311
|
+
// }
|
|
312
|
+
// },
|
|
313
|
+
initParams() {
|
|
314
|
+
// 初始化气表品牌
|
|
315
|
+
let brandArr = []
|
|
316
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
317
|
+
let temp = {}
|
|
318
|
+
temp.label = item.label
|
|
319
|
+
temp.value = item.value.f_meter_brand
|
|
320
|
+
brandArr.push(temp)
|
|
321
|
+
})
|
|
322
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
323
|
+
//初始化气表价格
|
|
324
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
325
|
+
},
|
|
326
|
+
async updateParams() {
|
|
327
|
+
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
328
|
+
this.initParams()
|
|
329
|
+
},
|
|
330
|
+
getorg(obj) {
|
|
331
|
+
if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
332
|
+
this.orgcondition = " and f_orgid in " + plugins.convertToIn(obj)
|
|
333
|
+
}else{
|
|
334
|
+
this.orgcondition = " and f_orgid = " + this.$login.f.orgid
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
userTypeChange () {
|
|
338
|
+
this.gasproperties=[]
|
|
339
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
340
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties=''
|
|
341
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
342
|
+
}
|
|
343
|
+
else{
|
|
344
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
hidden(){
|
|
348
|
+
this.criteriaShow = !this.criteriaShow
|
|
349
|
+
},
|
|
350
|
+
cancel() {
|
|
351
|
+
this.show = false
|
|
352
|
+
},
|
|
353
|
+
clearmsg () {
|
|
354
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
355
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
356
|
+
})
|
|
357
|
+
},
|
|
358
|
+
getRes (obj) {
|
|
359
|
+
this.orgCondtionStr = condition
|
|
360
|
+
this.orgname = obj.orgnames[0]
|
|
361
|
+
this.depname = obj.depnames[0]
|
|
362
|
+
},
|
|
363
|
+
showmsg(obj){
|
|
364
|
+
this.rowdata=obj
|
|
365
|
+
this.show=true
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
search (args) {
|
|
369
|
+
args.condition = `${args.condition}`+this.orgcondition
|
|
370
|
+
this.condition = args.condition
|
|
371
|
+
this.model.search(args.condition, args.model)
|
|
372
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
373
|
+
// args.condition = `${args.condition}`
|
|
374
|
+
// if (this.orgcondition)
|
|
375
|
+
// args.condition = `${args.condition}` + this.orgcondition
|
|
376
|
+
// else
|
|
377
|
+
// args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
|
|
378
|
+
// this.model.search(args.condition, args.model)
|
|
379
|
+
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
watch: {
|
|
383
|
+
'model.rows'(val) {
|
|
384
|
+
//如果有合计 这里为true, 其他为false ,反正相反
|
|
385
|
+
this.showbottomsum=true;
|
|
386
|
+
if(val.length === 0){
|
|
387
|
+
this.sumsmodel = {}
|
|
388
|
+
this.showbottomsum=false;
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
'orgCondtionStr'(val) {
|
|
392
|
+
let res = val.match(/'(.*?)'/)
|
|
393
|
+
console.log('正则提取:',res && res[1])
|
|
394
|
+
if (res) {
|
|
395
|
+
this.f_filialeid = res[1]
|
|
396
|
+
// this.updateParams()
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
computed: {
|
|
401
|
+
|
|
402
|
+
getCondition() {
|
|
403
|
+
|
|
404
|
+
return {
|
|
405
|
+
condition: this.condition,
|
|
406
|
+
startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
|
|
407
|
+
endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
getstart(){
|
|
411
|
+
return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
412
|
+
},
|
|
413
|
+
getPricenames() {
|
|
414
|
+
let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
|
|
415
|
+
let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
|
|
416
|
+
let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
|
|
417
|
+
console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
|
|
418
|
+
console.log("查看f_orgid:",this.$login.f.f_orgid)
|
|
419
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
420
|
+
let rs = []
|
|
421
|
+
let priceArr = []
|
|
422
|
+
if ( pricetype.length >0) {
|
|
423
|
+
let params = {
|
|
424
|
+
f_price_type: pricetype[0],
|
|
425
|
+
filter: this.org[0],
|
|
426
|
+
prices: this.prices
|
|
427
|
+
}
|
|
428
|
+
console.log("打印一下params:",params)
|
|
429
|
+
this.$MagGetSaleParam.getPrice(params).forEach((item) => {
|
|
430
|
+
console.log("====================================》")
|
|
431
|
+
let temp = {}
|
|
432
|
+
temp.label = item.label
|
|
433
|
+
temp.value = item.value.f_price_name
|
|
434
|
+
priceArr.push(temp)
|
|
435
|
+
console.log("打印一下temp:",temp)
|
|
436
|
+
})
|
|
437
|
+
|
|
438
|
+
rs = [{label: '全部', value: ''}, ...priceArr]
|
|
439
|
+
}
|
|
440
|
+
if (rs.length === 0) {
|
|
441
|
+
console.log('rs读出来是空')
|
|
442
|
+
this.$refs.paged.$refs.criteria.model.f_price_name = ''
|
|
443
|
+
}
|
|
444
|
+
return rs
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
getfield () {
|
|
448
|
+
return exportConfig.webmeterHandConfig
|
|
449
|
+
},
|
|
450
|
+
usertypes() {
|
|
451
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
452
|
+
},
|
|
453
|
+
pricetypes() {
|
|
454
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
455
|
+
},
|
|
456
|
+
gasState() {
|
|
457
|
+
return [{label:'正常', value:'正常'},
|
|
458
|
+
{label:'异常', value:'异常'},
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
isChange() {
|
|
462
|
+
return [{label:'是', value:'是'},
|
|
463
|
+
{label:'否', value:'否'},
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
</script>
|
|
469
|
+
|
|
470
|
+
<style>
|
|
471
|
+
.showbottom{
|
|
472
|
+
height:95%
|
|
473
|
+
}
|
|
474
|
+
</style>
|
|
475
|
+
|