manage-client 3.2.257 → 3.2.259
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/filiale/fugu/ReportList.vue +420 -0
- package/src/filiale/fugu/sale.js +6 -0
- package/src/filiale/wenxi/WebHandQuery.vue +451 -0
- package/src/filiale/wenxi/WebmeterQuery.vue +77 -0
- package/src/filiale/wenxi/config/exportConfig.js +38 -0
- package/src/filiale/wenxi/webmeterManage.js +7 -0
- package/src/filiale/yuansheng/DayReportList.vue +424 -0
- package/src/filiale/yuansheng/sale.js +5 -0
|
@@ -0,0 +1,451 @@
|
|
|
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 like '%{}%'" 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 like '%{}%'" 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_price_name"
|
|
66
|
+
v-model="model.f_price_name"
|
|
67
|
+
:options="$parent.$parent.getPricenames"
|
|
68
|
+
condition="f_price_name = '{}'"
|
|
69
|
+
close-on-select></v-select>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="col-sm-2 form-group">
|
|
72
|
+
<label class="font_normal_body">气表品牌</label>
|
|
73
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
74
|
+
v-model="model.f_meter_brand"
|
|
75
|
+
:options="$parent.$parent.meterbrands"
|
|
76
|
+
condition="f_meter_brand = '{}'"
|
|
77
|
+
close-on-select></v-select>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
80
|
+
<label class="font_normal_body">用气量区间</label>
|
|
81
|
+
<div class="row">
|
|
82
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
|
|
83
|
+
condition="f_oughtamount >= {} " placeholder="">
|
|
84
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
85
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
|
|
86
|
+
condition="f_oughtamount <= {} " placeholder="">
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
90
|
+
<label class="font_normal_body">用气金额区间</label>
|
|
91
|
+
<div class="row">
|
|
92
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtfee1"
|
|
93
|
+
condition="f_oughtfee >= {} " placeholder="">
|
|
94
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
95
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtfee2"
|
|
96
|
+
condition="f_oughtfee <= {} " placeholder="">
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
100
|
+
<label class="font_normal_body"> 充值区间 </label>
|
|
101
|
+
<div class="row">
|
|
102
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
|
|
103
|
+
condition="f_collection >= {} " placeholder="">
|
|
104
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
105
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
|
|
106
|
+
condition="f_collection <= {} " placeholder="">
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="col-sm-2 form-group" >
|
|
110
|
+
<label class="font_normal_body" for="startDate">抄表日期</label>
|
|
111
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
112
|
+
v-model="model.startDate"
|
|
113
|
+
:value.sync="model.startDate"
|
|
114
|
+
:disabled-days-of-Week="[]"
|
|
115
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
116
|
+
:show-reset-button="reset">
|
|
117
|
+
</datepicker>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-2 form-group" >
|
|
120
|
+
<label class="font_normal_body" for="endDate">抄表日期</label>
|
|
121
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
122
|
+
v-model="model.endDate"
|
|
123
|
+
:value.sync="model.endDate"
|
|
124
|
+
:disabled-days-of-Week="[]"
|
|
125
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
126
|
+
:show-reset-button="reset">
|
|
127
|
+
</datepicker>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
130
|
+
<label class="font_normal_body">余额区间</label>
|
|
131
|
+
<div class="row">
|
|
132
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_jval1"
|
|
133
|
+
condition="f_jval >= {} " placeholder="">
|
|
134
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
135
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_jval2"
|
|
136
|
+
condition="f_jval <= {} " placeholder="">
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</criteria>
|
|
142
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
143
|
+
<template partial='head'>
|
|
144
|
+
<tr>
|
|
145
|
+
<th><nobr>客户编号</nobr></th>
|
|
146
|
+
<th><nobr>客户名称</nobr></th>
|
|
147
|
+
<th><nobr>小区名称</nobr></th>
|
|
148
|
+
<th><nobr>地址</nobr></th>
|
|
149
|
+
|
|
150
|
+
<th><nobr>表号</nobr></th>
|
|
151
|
+
<th><nobr>气表品牌</nobr></th>
|
|
152
|
+
<th><nobr>抄表日期</nobr></th>
|
|
153
|
+
<th><nobr>累计购气金额</nobr></th>
|
|
154
|
+
<th><nobr>累计使用量</nobr></th>
|
|
155
|
+
<th><nobr>系统余额</nobr></th>
|
|
156
|
+
<th><nobr>表上余额</nobr></th>
|
|
157
|
+
<th><nobr>当前周期已用气量</nobr></th>
|
|
158
|
+
<th><nobr>当前周期消费金额</nobr></th>
|
|
159
|
+
<th><nobr>本次气量</nobr></th>
|
|
160
|
+
<th><nobr>本次金额</nobr></th>
|
|
161
|
+
|
|
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
|
+
<th><nobr>三阶金额</nobr></th>
|
|
171
|
+
|
|
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
|
+
<th><nobr>过流保护</nobr></th>
|
|
181
|
+
<th><nobr>死表</nobr></th>
|
|
182
|
+
<th><nobr>上报类型</nobr></th>
|
|
183
|
+
</tr>
|
|
184
|
+
</template>
|
|
185
|
+
<template partial='body' partial='list'>
|
|
186
|
+
<tr >
|
|
187
|
+
<td style="text-align: left;"><nobr> <span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
188
|
+
<td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
189
|
+
<td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
190
|
+
<td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
|
|
191
|
+
|
|
192
|
+
<th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
|
|
193
|
+
<th style="text-align:center"><nobr>{{row.f_meter_brand}}</nobr></th>
|
|
194
|
+
<th style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></th>
|
|
195
|
+
<th style="text-align:center"><nobr>{{row.f_total_fee}}</nobr></th>
|
|
196
|
+
<th style="text-align:center"><nobr>{{row.f_total_gas}}</nobr></th>
|
|
197
|
+
<th style="text-align:center"><nobr>{{row.f_balance_amount}}</nobr></th>
|
|
198
|
+
<th style="text-align:center"><nobr>{{row.f_jval}}</nobr></th>
|
|
199
|
+
<th style="text-align:center"><nobr>{{row.cycleGas}}</nobr></th>
|
|
200
|
+
<th style="text-align:center"><nobr>{{row.cycleFee}}</nobr></th>
|
|
201
|
+
<th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
|
|
202
|
+
<th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
|
|
203
|
+
|
|
204
|
+
<th style="text-align:center"><nobr>{{row.f_stair1price}}</nobr></th>
|
|
205
|
+
<th style="text-align:center"><nobr>{{row.f_stairamount1}}</nobr></th>
|
|
206
|
+
<th style="text-align:center"><nobr>{{row.f_stair1fee}}</nobr></th>
|
|
207
|
+
<th style="text-align:center"><nobr>{{row.f_stair2price}}</nobr></th>
|
|
208
|
+
<th style="text-align:center"><nobr>{{row.f_stairamount2}}</nobr></th>
|
|
209
|
+
<th style="text-align:center"><nobr>{{row.f_stair2fee}}</nobr></th>
|
|
210
|
+
<th style="text-align:center"><nobr>{{row.f_stair3price}}</nobr></th>
|
|
211
|
+
<th style="text-align:center"><nobr>{{row.f_stairamount3}}</nobr></th>
|
|
212
|
+
<th style="text-align:center"><nobr>{{row.f_stair3fee}}</nobr></th>
|
|
213
|
+
|
|
214
|
+
<th style="text-align:center"><nobr>{{row.f_signal}}</nobr></th>
|
|
215
|
+
<th style="text-align:center"><nobr>{{row.f_snr}}</nobr></th>
|
|
216
|
+
<th style="text-align:center"><nobr>{{row.f_batteryLevel}}</nobr></th>
|
|
217
|
+
<th style="text-align:center"><nobr>{{row.f_networkShutValve}}</nobr></th>
|
|
218
|
+
<th style="text-align:center"><nobr>{{row.f_valveState}}</nobr></th>
|
|
219
|
+
<th style="text-align:center"><nobr>{{row.f_magneticInterference}}</nobr></th>
|
|
220
|
+
<th style="text-align:center"><nobr>{{row.f_valve_exception}}</nobr></th>
|
|
221
|
+
<th style="text-align:center"><nobr>{{row.f_SplitAlarm}}</nobr></th>
|
|
222
|
+
<th style="text-align:center"><nobr>{{row.f_overCurrentProtection}}</nobr></th>
|
|
223
|
+
<th style="text-align:center"><nobr>{{row.f_die_meter}}</nobr></th>
|
|
224
|
+
<th style="text-align:center"><nobr>{{row.f_upload_type}}</nobr></th>
|
|
225
|
+
</tr>
|
|
226
|
+
</template>
|
|
227
|
+
<template partial='foot'></template>
|
|
228
|
+
</data-grid>
|
|
229
|
+
</criteria-paged>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</template>
|
|
234
|
+
|
|
235
|
+
<script>
|
|
236
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
237
|
+
import exportConfig from './config/exportConfig'
|
|
238
|
+
import * as Util from './../../Util'
|
|
239
|
+
import plugins from './../../plugins/GetLoginInfoService'
|
|
240
|
+
|
|
241
|
+
let readySomething = async function (self) {
|
|
242
|
+
await self.$MagLoadParams.loadParam()
|
|
243
|
+
self.initParams()
|
|
244
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
245
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
|
|
246
|
+
}
|
|
247
|
+
export default {
|
|
248
|
+
title: '物联网抄表查询',
|
|
249
|
+
data () {
|
|
250
|
+
return {
|
|
251
|
+
show:false,
|
|
252
|
+
org:[this.$login.f.orgid],
|
|
253
|
+
orgcondition: ' and f_orgid = ' + this.$login.f.orgid,
|
|
254
|
+
//f_filialeid: this.$login.f.f_orgid,
|
|
255
|
+
detaillist: [],
|
|
256
|
+
meterbrands: [],
|
|
257
|
+
prices: [],
|
|
258
|
+
gasproperties:[],
|
|
259
|
+
condition:'',
|
|
260
|
+
rowdata:{},
|
|
261
|
+
getstart:'',
|
|
262
|
+
config: {
|
|
263
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
|
|
264
|
+
'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
|
|
265
|
+
},
|
|
266
|
+
sumsmodel: {},
|
|
267
|
+
orgid:[this.$login.f.orgid],
|
|
268
|
+
criteriaShow:false,
|
|
269
|
+
//默认打印列
|
|
270
|
+
defaultfield: [],
|
|
271
|
+
orgCondtionStr: '',
|
|
272
|
+
model: new PagedList('rs/sql/manage_webmeterHandQuery', 50,{
|
|
273
|
+
startDate: 'this.model.startDate',
|
|
274
|
+
endDate: 'this.model.endDate'
|
|
275
|
+
}),
|
|
276
|
+
showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
ready () {
|
|
280
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
281
|
+
readySomething(this).then(() => {
|
|
282
|
+
this.$emit('ready')
|
|
283
|
+
}).catch((error) => {
|
|
284
|
+
this.$emit('error', error)
|
|
285
|
+
})
|
|
286
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
|
|
287
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
|
|
288
|
+
this.$refs.paged.$refs.criteria.search()
|
|
289
|
+
},
|
|
290
|
+
methods: {
|
|
291
|
+
initParams() {
|
|
292
|
+
// 初始化气表品牌
|
|
293
|
+
let brandArr = []
|
|
294
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
295
|
+
let temp = {}
|
|
296
|
+
temp.label = item.label
|
|
297
|
+
temp.value = item.value.f_meter_brand
|
|
298
|
+
brandArr.push(temp)
|
|
299
|
+
})
|
|
300
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
301
|
+
//初始化气表价格
|
|
302
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
303
|
+
},
|
|
304
|
+
async updateParams() {
|
|
305
|
+
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
306
|
+
this.initParams()
|
|
307
|
+
},
|
|
308
|
+
getorg(obj) {
|
|
309
|
+
if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
310
|
+
this.orgcondition = " and f_orgid in " + plugins.convertToIn(obj)
|
|
311
|
+
}else{
|
|
312
|
+
this.orgcondition = " and f_orgid = " + this.$login.f.orgid
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
userTypeChange () {
|
|
316
|
+
this.gasproperties=[]
|
|
317
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
318
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties=''
|
|
319
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
320
|
+
}
|
|
321
|
+
else{
|
|
322
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
hidden(){
|
|
326
|
+
this.criteriaShow = !this.criteriaShow
|
|
327
|
+
},
|
|
328
|
+
cancel() {
|
|
329
|
+
this.show = false
|
|
330
|
+
},
|
|
331
|
+
clearmsg () {
|
|
332
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
333
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
334
|
+
})
|
|
335
|
+
},
|
|
336
|
+
getRes (obj) {
|
|
337
|
+
this.orgCondtionStr = condition
|
|
338
|
+
this.orgname = obj.orgnames[0]
|
|
339
|
+
this.depname = obj.depnames[0]
|
|
340
|
+
},
|
|
341
|
+
showmsg(obj){
|
|
342
|
+
this.rowdata=obj
|
|
343
|
+
this.show=true
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
search (args) {
|
|
347
|
+
args.condition = `${args.condition}`+this.orgcondition
|
|
348
|
+
this.condition = args.condition
|
|
349
|
+
this.model.search(args.condition, args.model)
|
|
350
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
351
|
+
// args.condition = `${args.condition}`
|
|
352
|
+
// if (this.orgcondition)
|
|
353
|
+
// args.condition = `${args.condition}` + this.orgcondition
|
|
354
|
+
// else
|
|
355
|
+
// args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
|
|
356
|
+
// this.model.search(args.condition, args.model)
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
watch: {
|
|
360
|
+
'model.rows'(val) {
|
|
361
|
+
//如果有合计 这里为true, 其他为false ,反正相反
|
|
362
|
+
this.showbottomsum=true;
|
|
363
|
+
if(val.length === 0){
|
|
364
|
+
this.sumsmodel = {}
|
|
365
|
+
this.showbottomsum=false;
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
'orgCondtionStr'(val) {
|
|
369
|
+
let res = val.match(/'(.*?)'/)
|
|
370
|
+
console.log('正则提取:',res && res[1])
|
|
371
|
+
if (res) {
|
|
372
|
+
this.f_filialeid = res[1]
|
|
373
|
+
// this.updateParams()
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
computed: {
|
|
378
|
+
getCondition() {
|
|
379
|
+
|
|
380
|
+
return {
|
|
381
|
+
condition: this.condition,
|
|
382
|
+
startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
|
|
383
|
+
endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
getstart(){
|
|
387
|
+
return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
388
|
+
},
|
|
389
|
+
getPricenames() {
|
|
390
|
+
let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
|
|
391
|
+
let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
|
|
392
|
+
let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
|
|
393
|
+
console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
|
|
394
|
+
console.log("查看f_orgid:",this.$login.f.f_orgid)
|
|
395
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
396
|
+
let rs = []
|
|
397
|
+
let priceArr = []
|
|
398
|
+
if ( pricetype.length >0) {
|
|
399
|
+
let params = {
|
|
400
|
+
f_price_type: pricetype[0],
|
|
401
|
+
filter: this.org[0],
|
|
402
|
+
prices: this.prices
|
|
403
|
+
}
|
|
404
|
+
console.log("打印一下params:",params)
|
|
405
|
+
this.$MagGetSaleParam.getPrice(params).forEach((item) => {
|
|
406
|
+
console.log("====================================》")
|
|
407
|
+
let temp = {}
|
|
408
|
+
temp.label = item.label
|
|
409
|
+
temp.value = item.value.f_price_name
|
|
410
|
+
priceArr.push(temp)
|
|
411
|
+
console.log("打印一下temp:",temp)
|
|
412
|
+
})
|
|
413
|
+
|
|
414
|
+
rs = [{label: '全部', value: ''}, ...priceArr]
|
|
415
|
+
}
|
|
416
|
+
if (rs.length === 0) {
|
|
417
|
+
console.log('rs读出来是空')
|
|
418
|
+
this.$refs.paged.$refs.criteria.model.f_price_name = ''
|
|
419
|
+
}
|
|
420
|
+
return rs
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
getfield () {
|
|
424
|
+
return exportConfig.webmeterHandConfig
|
|
425
|
+
},
|
|
426
|
+
usertypes() {
|
|
427
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
428
|
+
},
|
|
429
|
+
pricetypes() {
|
|
430
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
431
|
+
},
|
|
432
|
+
gasState() {
|
|
433
|
+
return [{label:'正常', value:'正常'},
|
|
434
|
+
{label:'异常', value:'异常'},
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
isChange() {
|
|
438
|
+
return [{label:'是', value:'是'},
|
|
439
|
+
{label:'否', value:'否'},
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
</script>
|
|
445
|
+
|
|
446
|
+
<style>
|
|
447
|
+
.showbottom{
|
|
448
|
+
height:95%
|
|
449
|
+
}
|
|
450
|
+
</style>
|
|
451
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<tab-button class="foot_tabset" :active="-1">
|
|
3
|
+
<tabs header="指令查询" v-if="permission('指令查询')">
|
|
4
|
+
<instruct-manage v-if="show.includes('指令查询')"></instruct-manage>
|
|
5
|
+
</tabs>
|
|
6
|
+
<tabs header="历史指令查询" v-if="permission('历史指令查询')">
|
|
7
|
+
<instruct-manage-history v-if="show.includes('历史指令查询')"></instruct-manage-history>
|
|
8
|
+
</tabs>
|
|
9
|
+
<tabs header="上报查询" v-if="permission('上报查询')">
|
|
10
|
+
<report-list v-if="show.includes('上报查询')"></report-list>
|
|
11
|
+
</tabs>
|
|
12
|
+
<tabs header="结算查询" v-if="permission('结算查询')">
|
|
13
|
+
<report-data-query v-if="show.includes('结算查询')"></report-data-query>
|
|
14
|
+
</tabs>
|
|
15
|
+
<tabs header="缴费查询" v-if="permission('缴费查询')">
|
|
16
|
+
<recharge-instruct-query v-if="show.includes('缴费查询')"></recharge-instruct-query>
|
|
17
|
+
</tabs>
|
|
18
|
+
<tabs header="异常查询" v-if="permission('异常查询')">
|
|
19
|
+
<meter-exception-list v-if="show.includes('异常查询')"></meter-exception-list>
|
|
20
|
+
</tabs>
|
|
21
|
+
<tabs header="用户失联" v-if="permission('用户失联')">
|
|
22
|
+
<user-lost-contact-analysis v-if="show.includes('用户失联')"></user-lost-contact-analysis>
|
|
23
|
+
</tabs>
|
|
24
|
+
<tabs header="失联查询" v-if="permission('失联查询')">
|
|
25
|
+
<lost-contact-analysis-list v-if="show.includes('失联查询')"></lost-contact-analysis-list>
|
|
26
|
+
</tabs>
|
|
27
|
+
<tabs header="用气查询" v-if="!newWebHand && permission('用气查询')">
|
|
28
|
+
<use-gas-statistics v-if="show.includes('用气查询')"></use-gas-statistics>
|
|
29
|
+
</tabs>
|
|
30
|
+
<tabs header="用气查询" v-if="newWebHand && permission('用气查询')">
|
|
31
|
+
<new-use-gas-statistics v-if="show.includes('用气查询')"></new-use-gas-statistics>
|
|
32
|
+
</tabs>
|
|
33
|
+
<tabs header="未用气查询" v-if="permission('未用气查询')">
|
|
34
|
+
<get-no-meteread-query v-if="show.includes('未用气查询')"></get-no-meteread-query>
|
|
35
|
+
</tabs>
|
|
36
|
+
<tabs header="物联网表结算分析" v-if="!newWebHand && permission('物联网表结算分析')">
|
|
37
|
+
<webmeter-settlement-analysis v-if="show.includes('物联网表结算分析')"></webmeter-settlement-analysis>
|
|
38
|
+
</tabs>
|
|
39
|
+
<tabs header="物联网表结算分析" v-if="newWebHand &&permission('物联网表结算分析')">
|
|
40
|
+
<new-webmeter-settlement-analysis v-if="show.includes('物联网表结算分析')"></new-webmeter-settlement-analysis>
|
|
41
|
+
</tabs>
|
|
42
|
+
<tabs header="物联网表抄表查询" v-if="permission('物联网表抄表查询')">
|
|
43
|
+
<web-hand-query v-if="show.includes('物联网表抄表查询')"></web-hand-query>
|
|
44
|
+
</tabs>
|
|
45
|
+
</tab-button>
|
|
46
|
+
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
import TabButton from './../../components/sale/common/TabButton'
|
|
51
|
+
import Tabs from './../../components/sale/common/Tabs'
|
|
52
|
+
|
|
53
|
+
export default {
|
|
54
|
+
title: '物联查询',
|
|
55
|
+
data () {
|
|
56
|
+
return {
|
|
57
|
+
newWebHand: this.$appdata.getSingleValue('新抄表'),
|
|
58
|
+
show: []
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
components: {Tabs, TabButton},
|
|
62
|
+
methods: {
|
|
63
|
+
permission (name) {
|
|
64
|
+
// 保留是为了后面可能也会和综合查询一样加权限
|
|
65
|
+
if (this.$login.r.find(value => value === '物联查询') || name === '历史指令查询') {
|
|
66
|
+
if (!this.$login.r.find(value => value === name)) {
|
|
67
|
+
return false
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<style scoped>
|
|
77
|
+
</style>
|
|
@@ -818,6 +818,44 @@ monthGasConfig: {
|
|
|
818
818
|
'f_insert_date': '抄表日期',
|
|
819
819
|
'f_last_insertdate': '上次抄表日期',
|
|
820
820
|
'f_valvestate': '阀门开启状态'
|
|
821
|
+
},
|
|
822
|
+
// 物联网表抄表
|
|
823
|
+
webmeterHandConfig: {
|
|
824
|
+
'f_userinfo_code': '用户编号',
|
|
825
|
+
'f_user_name': '用户名称',
|
|
826
|
+
'f_residential_area': '小区名称',
|
|
827
|
+
'f_address': '地址',
|
|
828
|
+
'f_meter_brand': '气表品牌',
|
|
829
|
+
'f_meternumber': '表号',
|
|
830
|
+
'f_oughtamount': '本期气量',
|
|
831
|
+
'f_oughtfee': '本期金额',
|
|
832
|
+
'f_jval': '表内剩余余额',
|
|
833
|
+
'f_hand_date': '抄表日期',
|
|
834
|
+
'f_total_fee': '累计购气金额',
|
|
835
|
+
'f_total_gas': '累计使用量',
|
|
836
|
+
'f_balance_amount': '系统余额',
|
|
837
|
+
'cycleGas': '当前周期已用气量',
|
|
838
|
+
'cycleFee': '当前周期消费金额',
|
|
839
|
+
'f_stair1price': '一阶气价',
|
|
840
|
+
'f_stairamount1': '一阶气量',
|
|
841
|
+
'f_stair1fee': '一阶金额',
|
|
842
|
+
'f_stair2price': '二阶气价',
|
|
843
|
+
'f_stairamount2': '二阶气量',
|
|
844
|
+
'f_stair2fee': '二阶金额',
|
|
845
|
+
'f_stair3price': '三阶气价',
|
|
846
|
+
'f_stairamount3': '三阶气量',
|
|
847
|
+
'f_stair3fee': '三阶金额',
|
|
848
|
+
'f_signal': '信号强度',
|
|
849
|
+
'f_snr': '信噪比',
|
|
850
|
+
'f_batteryLevel': '电压',
|
|
851
|
+
'f_networkShutValve': '阀门关闭标志',
|
|
852
|
+
'f_valveState': '阀门状态',
|
|
853
|
+
'f_magneticInterference': '磁干扰',
|
|
854
|
+
'f_valve_exception': '异常阀门',
|
|
855
|
+
'f_SplitAlarm': '拆表报警',
|
|
856
|
+
'f_overCurrentProtection': '过流保护',
|
|
857
|
+
'f_die_meter': '死表',
|
|
858
|
+
'f_upload_type': '上报类型'
|
|
821
859
|
}
|
|
822
860
|
|
|
823
861
|
}
|