manage-client 1.22.51-ca → 1.22.52-ca
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
CHANGED
|
@@ -1,543 +1,543 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex:1;" class="flex basic-main">
|
|
3
|
-
<button class="btn btn-xs" v-show="!this.criteriaShow" @click="this.show()">
|
|
4
|
-
<span class="glyphicon glyphicon-chevron-down" style="color: #000;"></span>
|
|
5
|
-
</button>
|
|
6
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
7
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
|
|
8
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
9
|
-
<div class="row">
|
|
10
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
11
|
-
<label class="font_normal_body _zoom4">用户姓名</label>
|
|
12
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_user_name"
|
|
13
|
-
condition="f_user_name like '%{}%'" placeholder="用户姓名">
|
|
14
|
-
</div>
|
|
15
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
16
|
-
<label class="font_normal_body _zoom4">用户电话</label>
|
|
17
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_user_phone"
|
|
18
|
-
condition="f_user_phone like '%{}%'" placeholder="用户电话">
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
21
|
-
<label class="font_normal_body _zoom4">小区名称</label>
|
|
22
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_residential_area"
|
|
23
|
-
condition="f_residential_area like '%{}%'" placeholder='小区名称'>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
26
|
-
<label class="font_normal_body _zoom4">用户地址</label>
|
|
27
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_address"
|
|
28
|
-
condition="f_address like '%{}%'" placeholder='用户地址'>
|
|
29
|
-
</div>
|
|
30
|
-
<div style = "float:right;margin-top:10px" class="col-sm-3">
|
|
31
|
-
<button class="btn btn-success" @click="search()">查询</button>
|
|
32
|
-
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
33
|
-
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
34
|
-
|
|
35
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
36
|
-
:field="$parent.$parent.getExportField"
|
|
37
|
-
sqlurl="rs/logic/exportfile" sql-name="meterQuery" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
38
|
-
|
|
39
|
-
<!-- <button class="btn" @click="$parent.$parent.hidden()" style="margin-left: 10px">-->
|
|
40
|
-
<!-- <span class="glyphicon glyphicon-chevron-up"></span>-->
|
|
41
|
-
<!-- </button>-->
|
|
42
|
-
<div style="float: right" class="button_spacing"
|
|
43
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
44
|
-
@click="$parent.$parent.hidden()"></div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="row">
|
|
48
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
-
<label class="font_normal_body _zoom4">表号</label>
|
|
50
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_meternumber"
|
|
51
|
-
condition="f_meternumber like '%{}%'" placeholder='表号'>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
54
|
-
<label class="font_normal_body _zoom4">卡号</label>
|
|
55
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_card_id"
|
|
56
|
-
condition="f_card_id like '%{}%'" placeholder='卡号'>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
59
|
-
<label class="font_normal_body _zoom4">发卡状态</label>
|
|
60
|
-
<v-select :value.sync="model.f_whether_hairpin" v-model="model.f_whether_hairpin"
|
|
61
|
-
:options='$parent.$parent.cardStates' placeholder='请选择'
|
|
62
|
-
condition="f_whether_hairpin = '{}'"
|
|
63
|
-
close-on-select></v-select>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
66
|
-
<label class="font_normal_body _zoom4">用户类型</label>
|
|
67
|
-
<v-select :value.sync="model.f_user_type"
|
|
68
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
69
|
-
condition="f_user_type = '{}'"
|
|
70
|
-
close-on-select></v-select>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
73
|
-
<label class="font_normal_body _zoom4">用气性质</label>
|
|
74
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
75
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
76
|
-
condition="f_gasproperties = '{}'"
|
|
77
|
-
close-on-select></v-select>
|
|
78
|
-
</div>
|
|
79
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
80
|
-
<label class="font_normal_body _zoom4">设备类型</label>
|
|
81
|
-
<v-select :value.sync="model.f_devices_type"
|
|
82
|
-
v-model="model.f_devices_type"
|
|
83
|
-
multiple
|
|
84
|
-
:options='$parent.$parent.deviceTypes' placeholder='请选择'
|
|
85
|
-
></v-select>
|
|
86
|
-
</div>
|
|
87
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
88
|
-
<label class="font_normal_body _zoom4">气价名称</label>
|
|
89
|
-
<v-select :value.sync="model.f_price_name"
|
|
90
|
-
v-model="model.f_price_name"
|
|
91
|
-
:options='$parent.$parent.pricenames' placeholder='请选择'
|
|
92
|
-
condition="f_price_name = '{}'"
|
|
93
|
-
close-on-select></v-select>
|
|
94
|
-
</div>
|
|
95
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
96
|
-
<label class="font_normal_body _zoom4">气表分类</label>
|
|
97
|
-
<v-select :value.sync="model.f_meter_classify"
|
|
98
|
-
v-model="model.f_meter_classify"
|
|
99
|
-
:options='$parent.$parent.metertypes' placeholder='请选择'
|
|
100
|
-
condition="f_meter_classify = '{}'"
|
|
101
|
-
close-on-select></v-select>
|
|
102
|
-
</div>
|
|
103
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
104
|
-
<label class="font_normal_body _zoom4">气表品牌</label>
|
|
105
|
-
<v-select :value.sync="model.f_meter_brand"
|
|
106
|
-
v-model="model.f_meter_brand"
|
|
107
|
-
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
108
|
-
condition="f_meter_brand = '{}'"
|
|
109
|
-
close-on-select></v-select>
|
|
110
|
-
</div>
|
|
111
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
112
|
-
<label class="font_normal_body _zoom4">气表状态</label>
|
|
113
|
-
<v-select :value.sync="model.f_table_state"
|
|
114
|
-
v-model="model.f_table_state"
|
|
115
|
-
:options='$parent.$parent.tablestate' placeholder='请选择'
|
|
116
|
-
condition="f_table_state = '{}'"
|
|
117
|
-
close-on-select></v-select>
|
|
118
|
-
</div>
|
|
119
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
120
|
-
<label class="font_normal_body _zoom4">片区</label>
|
|
121
|
-
<v-select :value.sync="model.f_slice_area"
|
|
122
|
-
v-model="model.f_slice_area"
|
|
123
|
-
:options='$parent.$parent.sliceArea' placeholder='请选择'
|
|
124
|
-
condition="f_slice_area = '{}'"
|
|
125
|
-
close-on-select></v-select>
|
|
126
|
-
</div>
|
|
127
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
128
|
-
<label for="startDate" class="font_normal_body _zoom4">开始日期</label>
|
|
129
|
-
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
130
|
-
v-model="model.startDate"
|
|
131
|
-
:value.sync="model.startDate"
|
|
132
|
-
:format="'yyyy-MM-dd'"
|
|
133
|
-
:show-reset-button="true"
|
|
134
|
-
condition="f_createfile_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
135
|
-
|
|
136
|
-
</datepicker>
|
|
137
|
-
</div>
|
|
138
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
139
|
-
<label for="endDate" class="font_normal_body _zoom4">结束日期</label>
|
|
140
|
-
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
141
|
-
v-model="model.endDate"
|
|
142
|
-
:value.sync="model.endDate"
|
|
143
|
-
:format="'yyyy-MM-dd'"
|
|
144
|
-
:show-reset-button="true"
|
|
145
|
-
condition="f_createfile_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
146
|
-
</datepicker>
|
|
147
|
-
</div>
|
|
148
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
149
|
-
<label class="font_normal_body _zoom4">起始卡号</label>
|
|
150
|
-
<input type="number" class="form-control _zoom6" v-model="model.startf_card_id"
|
|
151
|
-
condition=" f_card_id >= '{}' " placeholder='起始卡号'>
|
|
152
|
-
</div>
|
|
153
|
-
|
|
154
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
155
|
-
<label class="font_normal_body _zoom4">结束卡号</label>
|
|
156
|
-
<input type="number" class="form-control _zoom6" v-model="model.endf_card_id"
|
|
157
|
-
condition=" f_card_id <= '{}' " placeholder='结束卡号'>
|
|
158
|
-
</div>
|
|
159
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
160
|
-
<label class="font_normal_body _zoom4">行政区域</label>
|
|
161
|
-
<v-select
|
|
162
|
-
:value.sync="model.f_distinct"
|
|
163
|
-
v-model="model.f_distinct"
|
|
164
|
-
:value-single="true"
|
|
165
|
-
condition=" f_distinct = '{}' "
|
|
166
|
-
:options='$parent.$parent.distinct' placeholder='行政区域'
|
|
167
|
-
close-on-select></v-select>
|
|
168
|
-
</div>
|
|
169
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
170
|
-
<label for="f_gas_area" class="font_normal_body _zoom4">用气区域</label>
|
|
171
|
-
<input id="f_gas_area" type="text" class="form-control _zoom6" v-model="model.f_gas_area"
|
|
172
|
-
condition=" f_gas_area like '%{}%' " placeholder='用气区域'>
|
|
173
|
-
</div>
|
|
174
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
175
|
-
<label for="f_point_name" class="font_normal_body _zoom4">用气点</label>
|
|
176
|
-
<input id="f_point_name" type="text" class="form-control _zoom6" v-model="model.f_point_name"
|
|
177
|
-
condition=" f_point_name like '%{}%' " placeholder='用气点'>
|
|
178
|
-
</div>
|
|
179
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
180
|
-
<label for="f_jb_type_code" class="font_normal_body _zoom4">基表型号</label>
|
|
181
|
-
<input id="f_jb_type_code" type="text" class="form-control _zoom6" v-model="model.f_jb_type_code"
|
|
182
|
-
condition=" f_jb_type_code like '%{}%' " placeholder='基表型号'>
|
|
183
|
-
</div>
|
|
184
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
185
|
-
<label for="f_barcode" class="font_normal_body _zoom4">计量表编号</label>
|
|
186
|
-
<input id="f_barcode" type="text" class="form-control _zoom6" v-model="model.f_barcode"
|
|
187
|
-
condition=" f_barcode like '%{}%' " placeholder='计量表编号'>
|
|
188
|
-
</div>
|
|
189
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
190
|
-
<label class="font_normal_body _zoom4">抄表员</label>
|
|
191
|
-
<v-select
|
|
192
|
-
:value.sync="model.f_inputtor"
|
|
193
|
-
v-model="model.f_inputtor"
|
|
194
|
-
:value-single="true"
|
|
195
|
-
condition=" f_inputtor = '{}' "
|
|
196
|
-
:options='$parent.$parent.inputtores' placeholder='抄表员'
|
|
197
|
-
close-on-select></v-select>
|
|
198
|
-
</div>
|
|
199
|
-
<div class="col-sm-2 form-group form-fix-width">
|
|
200
|
-
<label class="font_normal_body _zoom4">表具现状</label>
|
|
201
|
-
<v-select
|
|
202
|
-
:value.sync="model.f_meter_state"
|
|
203
|
-
v-model="model.f_meter_state"
|
|
204
|
-
:value-single="true"
|
|
205
|
-
condition=" f_meter_state = '{}' "
|
|
206
|
-
:search="false"
|
|
207
|
-
:options='$parent.$parent.meter_states' placeholder='表具现状'
|
|
208
|
-
close-on-select></v-select>
|
|
209
|
-
</div>
|
|
210
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
211
|
-
<label class="font_normal_body _zoom4">是否第二套档案</label>
|
|
212
|
-
<v-select :value.sync="model.f_second_state"
|
|
213
|
-
v-model="model.f_second_state"
|
|
214
|
-
:search="false"
|
|
215
|
-
:value-single="true"
|
|
216
|
-
:options='$parent.$parent.second_states' placeholder='请选择'
|
|
217
|
-
></v-select>
|
|
218
|
-
</div>
|
|
219
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
220
|
-
<label class="font_normal_body _zoom4">小区ID</label>
|
|
221
|
-
<input type="text" class="form-control _zoom6" v-model="model.
|
|
222
|
-
condition="
|
|
223
|
-
</div>
|
|
224
|
-
<div class="col-sm-2 form-group form-fix-width" >
|
|
225
|
-
<label class="font_normal_body _zoom4">用户状态</label>
|
|
226
|
-
<v-select :value.sync="model.f_user_state"
|
|
227
|
-
v-model="model.f_user_state"
|
|
228
|
-
:search="false"
|
|
229
|
-
:value-single="true"
|
|
230
|
-
condition=" f_user_state = '{}' "
|
|
231
|
-
close-on-select
|
|
232
|
-
:options='$parent.$parent.userstate' placeholder='请选择'
|
|
233
|
-
></v-select>
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
237
|
-
</criteria>
|
|
238
|
-
|
|
239
|
-
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
240
|
-
<template partial='head'>
|
|
241
|
-
<tr>
|
|
242
|
-
<th><nobr>卡号</nobr></th>
|
|
243
|
-
<th><nobr>小区id</nobr></th>
|
|
244
|
-
<th><nobr>用户姓名</nobr></th>
|
|
245
|
-
<th><nobr>用户地址</nobr></th>
|
|
246
|
-
<th><nobr>行政区域</nobr></th>
|
|
247
|
-
<th><nobr>用气区域</nobr></th>
|
|
248
|
-
<th><nobr>用气点</nobr></th>
|
|
249
|
-
<th><nobr>点火时间</nobr></th>
|
|
250
|
-
<th><nobr>抄表员</nobr></th>
|
|
251
|
-
<th><nobr>基表型号</nobr></th>
|
|
252
|
-
<th><nobr>计量表编号</nobr></th>
|
|
253
|
-
<th><nobr>表号</nobr></th>
|
|
254
|
-
<th><nobr>气表品牌</nobr></th>
|
|
255
|
-
<th><nobr>气表型号</nobr></th>
|
|
256
|
-
<th><nobr>气表状态</nobr></th>
|
|
257
|
-
<th><nobr>用户类型</nobr></th>
|
|
258
|
-
<th><nobr>用气性质</nobr></th>
|
|
259
|
-
<th><nobr>用气设备</nobr></th>
|
|
260
|
-
<th><nobr>气价类型</nobr></th>
|
|
261
|
-
<th><nobr>气价名称</nobr></th>
|
|
262
|
-
<th><nobr>用户状态</nobr></th>
|
|
263
|
-
</tr>
|
|
264
|
-
</template>
|
|
265
|
-
<template partial='body'>
|
|
266
|
-
<td style="text-align: center;"><nobr>
|
|
267
|
-
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_card_id}}</a></span></nobr>
|
|
268
|
-
</td>
|
|
269
|
-
<td style="text-align: center;"><nobr>{{row.f_residential_area_id}}</nobr></td>
|
|
270
|
-
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
271
|
-
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
272
|
-
<td style="text-align: center;"><nobr>{{row.f_distinct}}</nobr></td>
|
|
273
|
-
<td style="text-align: center;"><nobr>{{row.f_gas_area}}</nobr></td>
|
|
274
|
-
<td style="text-align: center;"><nobr>{{row.f_point_name}}</nobr></td>
|
|
275
|
-
<td style="text-align: center;"><nobr>{{row.f_fire_date}}</nobr></td>
|
|
276
|
-
<td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
|
|
277
|
-
<td style="text-align: center;"><nobr>{{row.f_jb_type_code}}</nobr></td>
|
|
278
|
-
<td style="text-align: center;"><nobr>{{row.f_barcode}}</nobr></td>
|
|
279
|
-
<td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
280
|
-
<td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
|
|
281
|
-
<td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
|
|
282
|
-
<td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
|
|
283
|
-
<td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
|
|
284
|
-
<td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
|
|
285
|
-
<td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
|
|
286
|
-
<td style="text-align: center;"><nobr>{{row.f_price_type}}</nobr></td>
|
|
287
|
-
<td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
|
|
288
|
-
<td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
|
|
289
|
-
</template>
|
|
290
|
-
<template partial='foot'>
|
|
291
|
-
|
|
292
|
-
</template>
|
|
293
|
-
</data-grid>
|
|
294
|
-
</criteria-paged>
|
|
295
|
-
</div>
|
|
296
|
-
</template>
|
|
297
|
-
|
|
298
|
-
<script>
|
|
299
|
-
import { PagedList } from 'vue-client'
|
|
300
|
-
import exportConfig from '../config/exportConfig'
|
|
301
|
-
|
|
302
|
-
let readySomething = async function(self){
|
|
303
|
-
await self.$MagLoadParams.loadParam()
|
|
304
|
-
self.initParams()
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export default {
|
|
308
|
-
data() {
|
|
309
|
-
return {
|
|
310
|
-
model: new PagedList('rs/sql/meterQuery', 20,{},{f_balance_amount: 0,f_balance_gas: 0}),
|
|
311
|
-
criteriaShow: true,
|
|
312
|
-
second_states: [{label: '全部', value: ''},{label: '否', value: '否'}, {label: '是', value: '是'}],
|
|
313
|
-
filialeNameStr: null,
|
|
314
|
-
filialeCodeStr: this.$login.f.f_orgids,
|
|
315
|
-
userid: this.$login.f.id,
|
|
316
|
-
deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
|
|
317
|
-
source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
318
|
-
distinct: this.$appdata.getParam('行政区域'),
|
|
319
|
-
modelval: [],
|
|
320
|
-
printshow: false,
|
|
321
|
-
all: false,
|
|
322
|
-
fields: {},
|
|
323
|
-
thead: '',
|
|
324
|
-
tfoot: '',
|
|
325
|
-
|
|
326
|
-
// 气表下拉值
|
|
327
|
-
meterbrands: [],
|
|
328
|
-
// 气价下拉值
|
|
329
|
-
pricenames: [],
|
|
330
|
-
|
|
331
|
-
//合计数据
|
|
332
|
-
sumsmodel: {}
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
ready(){
|
|
336
|
-
readySomething(this).then(() => {
|
|
337
|
-
this.$emit('ready')
|
|
338
|
-
}).catch((error) => {
|
|
339
|
-
this.$emit('error', error)
|
|
340
|
-
})
|
|
341
|
-
},
|
|
342
|
-
methods: {
|
|
343
|
-
dealmsg (val) {
|
|
344
|
-
console.log('---------------dealmsg')
|
|
345
|
-
val.model = this.model.model
|
|
346
|
-
this.$dispatch('deal-msg',val)
|
|
347
|
-
},
|
|
348
|
-
initParams () {
|
|
349
|
-
|
|
350
|
-
// 初始化气表品牌
|
|
351
|
-
let brandArr = []
|
|
352
|
-
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
353
|
-
let temp = {}
|
|
354
|
-
temp.label = item.label
|
|
355
|
-
temp.value = item.value.f_meter_brand
|
|
356
|
-
brandArr.push(temp)
|
|
357
|
-
})
|
|
358
|
-
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
359
|
-
|
|
360
|
-
// 初始化气价信息
|
|
361
|
-
console.log('初始化气价。。', this.$MagGetSaleParam.getPrice())
|
|
362
|
-
|
|
363
|
-
let priceArr = []
|
|
364
|
-
this.$MagGetSaleParam.getPrice().forEach((item) => {
|
|
365
|
-
let temp = {}
|
|
366
|
-
temp.label = item.label
|
|
367
|
-
temp.value = item.value.f_price_name
|
|
368
|
-
priceArr.push(temp)
|
|
369
|
-
})
|
|
370
|
-
|
|
371
|
-
this.pricenames = [{label: '全部', value: ''}, ...priceArr]
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
selfSearch (args) {
|
|
376
|
-
if (args.model.f_devices_type){
|
|
377
|
-
args.model.f_devices_type.forEach(item=>{
|
|
378
|
-
args.condition += ` and f_devices_type like '%${item}%' `
|
|
379
|
-
})
|
|
380
|
-
}
|
|
381
|
-
if(this.$refs.paged.$refs.cri.model.f_second_state){
|
|
382
|
-
if(this.$refs.paged.$refs.cri.model.f_second_state==='是'){
|
|
383
|
-
args.condition = `${args.condition} and f_second_state is not null`
|
|
384
|
-
}else {
|
|
385
|
-
args.condition = `${args.condition} and f_second_state is null`
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
this.$refs.paged.$refs.cri.condition = args.condition
|
|
389
|
-
this.model.search(args.condition, args.model)
|
|
390
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
391
|
-
},
|
|
392
|
-
clear(){
|
|
393
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
394
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
395
|
-
})
|
|
396
|
-
},
|
|
397
|
-
show(){
|
|
398
|
-
this.criteriaShow = true
|
|
399
|
-
},
|
|
400
|
-
hidden(){
|
|
401
|
-
this.criteriaShow = false
|
|
402
|
-
},
|
|
403
|
-
getRes(obj) {
|
|
404
|
-
this.filialeNameStr = obj.res
|
|
405
|
-
this.filialeCodeStr = obj.resids
|
|
406
|
-
},
|
|
407
|
-
stamp () {
|
|
408
|
-
this.all = false
|
|
409
|
-
//默认选择要打印的列
|
|
410
|
-
this.modelval = defaultPrint.config
|
|
411
|
-
this.fields = this.getfield
|
|
412
|
-
console.log('所有打印字段',this.fields)
|
|
413
|
-
this.printshow = true
|
|
414
|
-
this.put()
|
|
415
|
-
},
|
|
416
|
-
put () {
|
|
417
|
-
// 对Modelval进行排序
|
|
418
|
-
this.sortModelval()
|
|
419
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
|
|
420
|
-
for (let key of this.modelval) {
|
|
421
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
422
|
-
}
|
|
423
|
-
this.thead += '</tr>'
|
|
424
|
-
},
|
|
425
|
-
print () {
|
|
426
|
-
this.$refs.print.PrintAsFile()
|
|
427
|
-
this.printshow = false
|
|
428
|
-
},
|
|
429
|
-
close () {
|
|
430
|
-
this.printshow = false
|
|
431
|
-
this.all = false
|
|
432
|
-
},
|
|
433
|
-
// 对选择的列进行排序
|
|
434
|
-
sortModelval () {
|
|
435
|
-
let sortModel = []
|
|
436
|
-
Object.keys(this.fields).forEach((key) => {
|
|
437
|
-
if (this.modelval.includes(key)) {
|
|
438
|
-
sortModel.push(key)
|
|
439
|
-
}
|
|
440
|
-
})
|
|
441
|
-
this.modelval = sortModel
|
|
442
|
-
console.log('选择的打印的字段', this.modelval)
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
watch:{
|
|
446
|
-
'all' (val) {
|
|
447
|
-
if (val) {
|
|
448
|
-
this.modelval = this.bodyData
|
|
449
|
-
} else {
|
|
450
|
-
this.modelval = defaultPrint.config
|
|
451
|
-
this.put()
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
'modelval.length' () {
|
|
455
|
-
this.put()
|
|
456
|
-
},
|
|
457
|
-
},
|
|
458
|
-
computed:{
|
|
459
|
-
getCondition(){
|
|
460
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}`}
|
|
461
|
-
},
|
|
462
|
-
inputtores () {
|
|
463
|
-
return this.$appdata.getParam('抄表员')
|
|
464
|
-
},
|
|
465
|
-
meter_states () {
|
|
466
|
-
return this.$appdata.getParam('表具现状')
|
|
467
|
-
},
|
|
468
|
-
getfield(){
|
|
469
|
-
let data = {}
|
|
470
|
-
this.bodyData.forEach((value, index)=>{
|
|
471
|
-
data[this.bodyData[index]] = this.headData[index]
|
|
472
|
-
})
|
|
473
|
-
//合计字段打印
|
|
474
|
-
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
475
|
-
if(this.sumsmodel){
|
|
476
|
-
Object.keys(this.sumsmodel).forEach((key) => {
|
|
477
|
-
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
478
|
-
})
|
|
479
|
-
}else{
|
|
480
|
-
this.tfoot += '暂无'
|
|
481
|
-
}
|
|
482
|
-
this.tfoot += '</th></tr>'
|
|
483
|
-
return data
|
|
484
|
-
},
|
|
485
|
-
getExportField () {
|
|
486
|
-
return exportConfig.meterConfig
|
|
487
|
-
},
|
|
488
|
-
areas () {
|
|
489
|
-
console.log('小区获取区县。。。。。', this.$login.f.f_allArea)
|
|
490
|
-
let rs = []
|
|
491
|
-
for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
|
|
492
|
-
let temp = {
|
|
493
|
-
label: this.$login.f.f_allArea[i].label,
|
|
494
|
-
value: this.$login.f.f_allArea[i].label
|
|
495
|
-
}
|
|
496
|
-
rs.push(temp)
|
|
497
|
-
}
|
|
498
|
-
// return rs
|
|
499
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
500
|
-
},
|
|
501
|
-
usertypes () {
|
|
502
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
503
|
-
},
|
|
504
|
-
cardStates () {
|
|
505
|
-
return [
|
|
506
|
-
{label: '全部', value: ''},
|
|
507
|
-
{label: '未发卡', value: '未发'},
|
|
508
|
-
{label: '已发卡', value: '已发'},
|
|
509
|
-
]
|
|
510
|
-
},
|
|
511
|
-
gasproperties () {
|
|
512
|
-
let rs = []
|
|
513
|
-
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
514
|
-
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
515
|
-
}
|
|
516
|
-
return [{label: '全部', value: ''}, ...rs]
|
|
517
|
-
},
|
|
518
|
-
|
|
519
|
-
metertypes () {
|
|
520
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
521
|
-
},
|
|
522
|
-
// meterbrands () {
|
|
523
|
-
// let arr = []
|
|
524
|
-
// this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
525
|
-
// let temp = {}
|
|
526
|
-
// temp.label = item.label
|
|
527
|
-
// temp.value = item.value.f_meter_brand
|
|
528
|
-
// arr.push(temp)
|
|
529
|
-
// })
|
|
530
|
-
// return [{label: '全部', value: ''}, ...arr]
|
|
531
|
-
// },
|
|
532
|
-
tablestate () {
|
|
533
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('表状态')]
|
|
534
|
-
},
|
|
535
|
-
userstate () {
|
|
536
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
|
|
537
|
-
},
|
|
538
|
-
sliceArea () {
|
|
539
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('所属区域')]
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;" class="flex basic-main">
|
|
3
|
+
<button class="btn btn-xs" v-show="!this.criteriaShow" @click="this.show()">
|
|
4
|
+
<span class="glyphicon glyphicon-chevron-down" style="color: #000;"></span>
|
|
5
|
+
</button>
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
7
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri v-show="$parent.criteriaShow">
|
|
8
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
11
|
+
<label class="font_normal_body _zoom4">用户姓名</label>
|
|
12
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_user_name"
|
|
13
|
+
condition="f_user_name like '%{}%'" placeholder="用户姓名">
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
16
|
+
<label class="font_normal_body _zoom4">用户电话</label>
|
|
17
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_user_phone"
|
|
18
|
+
condition="f_user_phone like '%{}%'" placeholder="用户电话">
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
21
|
+
<label class="font_normal_body _zoom4">小区名称</label>
|
|
22
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_residential_area"
|
|
23
|
+
condition="f_residential_area like '%{}%'" placeholder='小区名称'>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
26
|
+
<label class="font_normal_body _zoom4">用户地址</label>
|
|
27
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_address"
|
|
28
|
+
condition="f_address like '%{}%'" placeholder='用户地址'>
|
|
29
|
+
</div>
|
|
30
|
+
<div style = "float:right;margin-top:10px" class="col-sm-3">
|
|
31
|
+
<button class="btn btn-success" @click="search()">查询</button>
|
|
32
|
+
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
33
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
34
|
+
|
|
35
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
36
|
+
:field="$parent.$parent.getExportField"
|
|
37
|
+
sqlurl="rs/logic/exportfile" sql-name="meterQuery" template-name='表具查询导出' :choose-col="true"></export-excel>
|
|
38
|
+
|
|
39
|
+
<!-- <button class="btn" @click="$parent.$parent.hidden()" style="margin-left: 10px">-->
|
|
40
|
+
<!-- <span class="glyphicon glyphicon-chevron-up"></span>-->
|
|
41
|
+
<!-- </button>-->
|
|
42
|
+
<div style="float: right" class="button_spacing"
|
|
43
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
44
|
+
@click="$parent.$parent.hidden()"></div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row">
|
|
48
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
49
|
+
<label class="font_normal_body _zoom4">表号</label>
|
|
50
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_meternumber"
|
|
51
|
+
condition="f_meternumber like '%{}%'" placeholder='表号'>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
54
|
+
<label class="font_normal_body _zoom4">卡号</label>
|
|
55
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_card_id"
|
|
56
|
+
condition="f_card_id like '%{}%'" placeholder='卡号'>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
59
|
+
<label class="font_normal_body _zoom4">发卡状态</label>
|
|
60
|
+
<v-select :value.sync="model.f_whether_hairpin" v-model="model.f_whether_hairpin"
|
|
61
|
+
:options='$parent.$parent.cardStates' placeholder='请选择'
|
|
62
|
+
condition="f_whether_hairpin = '{}'"
|
|
63
|
+
close-on-select></v-select>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
66
|
+
<label class="font_normal_body _zoom4">用户类型</label>
|
|
67
|
+
<v-select :value.sync="model.f_user_type"
|
|
68
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
69
|
+
condition="f_user_type = '{}'"
|
|
70
|
+
close-on-select></v-select>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
73
|
+
<label class="font_normal_body _zoom4">用气性质</label>
|
|
74
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
75
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
76
|
+
condition="f_gasproperties = '{}'"
|
|
77
|
+
close-on-select></v-select>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
80
|
+
<label class="font_normal_body _zoom4">设备类型</label>
|
|
81
|
+
<v-select :value.sync="model.f_devices_type"
|
|
82
|
+
v-model="model.f_devices_type"
|
|
83
|
+
multiple
|
|
84
|
+
:options='$parent.$parent.deviceTypes' placeholder='请选择'
|
|
85
|
+
></v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
88
|
+
<label class="font_normal_body _zoom4">气价名称</label>
|
|
89
|
+
<v-select :value.sync="model.f_price_name"
|
|
90
|
+
v-model="model.f_price_name"
|
|
91
|
+
:options='$parent.$parent.pricenames' placeholder='请选择'
|
|
92
|
+
condition="f_price_name = '{}'"
|
|
93
|
+
close-on-select></v-select>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
96
|
+
<label class="font_normal_body _zoom4">气表分类</label>
|
|
97
|
+
<v-select :value.sync="model.f_meter_classify"
|
|
98
|
+
v-model="model.f_meter_classify"
|
|
99
|
+
:options='$parent.$parent.metertypes' placeholder='请选择'
|
|
100
|
+
condition="f_meter_classify = '{}'"
|
|
101
|
+
close-on-select></v-select>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
104
|
+
<label class="font_normal_body _zoom4">气表品牌</label>
|
|
105
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
106
|
+
v-model="model.f_meter_brand"
|
|
107
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
108
|
+
condition="f_meter_brand = '{}'"
|
|
109
|
+
close-on-select></v-select>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
112
|
+
<label class="font_normal_body _zoom4">气表状态</label>
|
|
113
|
+
<v-select :value.sync="model.f_table_state"
|
|
114
|
+
v-model="model.f_table_state"
|
|
115
|
+
:options='$parent.$parent.tablestate' placeholder='请选择'
|
|
116
|
+
condition="f_table_state = '{}'"
|
|
117
|
+
close-on-select></v-select>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
120
|
+
<label class="font_normal_body _zoom4">片区</label>
|
|
121
|
+
<v-select :value.sync="model.f_slice_area"
|
|
122
|
+
v-model="model.f_slice_area"
|
|
123
|
+
:options='$parent.$parent.sliceArea' placeholder='请选择'
|
|
124
|
+
condition="f_slice_area = '{}'"
|
|
125
|
+
close-on-select></v-select>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
128
|
+
<label for="startDate" class="font_normal_body _zoom4">开始日期</label>
|
|
129
|
+
<datepicker id="startDate" placeholder="开始日期" class="_zoom6"
|
|
130
|
+
v-model="model.startDate"
|
|
131
|
+
:value.sync="model.startDate"
|
|
132
|
+
:format="'yyyy-MM-dd'"
|
|
133
|
+
:show-reset-button="true"
|
|
134
|
+
condition="f_createfile_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
135
|
+
|
|
136
|
+
</datepicker>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
139
|
+
<label for="endDate" class="font_normal_body _zoom4">结束日期</label>
|
|
140
|
+
<datepicker id="endDate" placeholder="结束日期" class="_zoom6"
|
|
141
|
+
v-model="model.endDate"
|
|
142
|
+
:value.sync="model.endDate"
|
|
143
|
+
:format="'yyyy-MM-dd'"
|
|
144
|
+
:show-reset-button="true"
|
|
145
|
+
condition="f_createfile_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
146
|
+
</datepicker>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
149
|
+
<label class="font_normal_body _zoom4">起始卡号</label>
|
|
150
|
+
<input type="number" class="form-control _zoom6" v-model="model.startf_card_id"
|
|
151
|
+
condition=" f_card_id >= '{}' " placeholder='起始卡号'>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
155
|
+
<label class="font_normal_body _zoom4">结束卡号</label>
|
|
156
|
+
<input type="number" class="form-control _zoom6" v-model="model.endf_card_id"
|
|
157
|
+
condition=" f_card_id <= '{}' " placeholder='结束卡号'>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
160
|
+
<label class="font_normal_body _zoom4">行政区域</label>
|
|
161
|
+
<v-select
|
|
162
|
+
:value.sync="model.f_distinct"
|
|
163
|
+
v-model="model.f_distinct"
|
|
164
|
+
:value-single="true"
|
|
165
|
+
condition=" f_distinct = '{}' "
|
|
166
|
+
:options='$parent.$parent.distinct' placeholder='行政区域'
|
|
167
|
+
close-on-select></v-select>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
170
|
+
<label for="f_gas_area" class="font_normal_body _zoom4">用气区域</label>
|
|
171
|
+
<input id="f_gas_area" type="text" class="form-control _zoom6" v-model="model.f_gas_area"
|
|
172
|
+
condition=" f_gas_area like '%{}%' " placeholder='用气区域'>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
175
|
+
<label for="f_point_name" class="font_normal_body _zoom4">用气点</label>
|
|
176
|
+
<input id="f_point_name" type="text" class="form-control _zoom6" v-model="model.f_point_name"
|
|
177
|
+
condition=" f_point_name like '%{}%' " placeholder='用气点'>
|
|
178
|
+
</div>
|
|
179
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
180
|
+
<label for="f_jb_type_code" class="font_normal_body _zoom4">基表型号</label>
|
|
181
|
+
<input id="f_jb_type_code" type="text" class="form-control _zoom6" v-model="model.f_jb_type_code"
|
|
182
|
+
condition=" f_jb_type_code like '%{}%' " placeholder='基表型号'>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
185
|
+
<label for="f_barcode" class="font_normal_body _zoom4">计量表编号</label>
|
|
186
|
+
<input id="f_barcode" type="text" class="form-control _zoom6" v-model="model.f_barcode"
|
|
187
|
+
condition=" f_barcode like '%{}%' " placeholder='计量表编号'>
|
|
188
|
+
</div>
|
|
189
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
190
|
+
<label class="font_normal_body _zoom4">抄表员</label>
|
|
191
|
+
<v-select
|
|
192
|
+
:value.sync="model.f_inputtor"
|
|
193
|
+
v-model="model.f_inputtor"
|
|
194
|
+
:value-single="true"
|
|
195
|
+
condition=" f_inputtor = '{}' "
|
|
196
|
+
:options='$parent.$parent.inputtores' placeholder='抄表员'
|
|
197
|
+
close-on-select></v-select>
|
|
198
|
+
</div>
|
|
199
|
+
<div class="col-sm-2 form-group form-fix-width">
|
|
200
|
+
<label class="font_normal_body _zoom4">表具现状</label>
|
|
201
|
+
<v-select
|
|
202
|
+
:value.sync="model.f_meter_state"
|
|
203
|
+
v-model="model.f_meter_state"
|
|
204
|
+
:value-single="true"
|
|
205
|
+
condition=" f_meter_state = '{}' "
|
|
206
|
+
:search="false"
|
|
207
|
+
:options='$parent.$parent.meter_states' placeholder='表具现状'
|
|
208
|
+
close-on-select></v-select>
|
|
209
|
+
</div>
|
|
210
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
211
|
+
<label class="font_normal_body _zoom4">是否第二套档案</label>
|
|
212
|
+
<v-select :value.sync="model.f_second_state"
|
|
213
|
+
v-model="model.f_second_state"
|
|
214
|
+
:search="false"
|
|
215
|
+
:value-single="true"
|
|
216
|
+
:options='$parent.$parent.second_states' placeholder='请选择'
|
|
217
|
+
></v-select>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
220
|
+
<label class="font_normal_body _zoom4">小区ID</label>
|
|
221
|
+
<input type="text" class="form-control _zoom6" v-model="model.oldid"
|
|
222
|
+
condition="oldid = '{}'" placeholder='小区ID'>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="col-sm-2 form-group form-fix-width" >
|
|
225
|
+
<label class="font_normal_body _zoom4">用户状态</label>
|
|
226
|
+
<v-select :value.sync="model.f_user_state"
|
|
227
|
+
v-model="model.f_user_state"
|
|
228
|
+
:search="false"
|
|
229
|
+
:value-single="true"
|
|
230
|
+
condition=" f_user_state = '{}' "
|
|
231
|
+
close-on-select
|
|
232
|
+
:options='$parent.$parent.userstate' placeholder='请选择'
|
|
233
|
+
></v-select>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
</criteria>
|
|
238
|
+
|
|
239
|
+
<data-grid :model="model" partial='list' v-ref:grid :classname="$parent.classname">
|
|
240
|
+
<template partial='head'>
|
|
241
|
+
<tr>
|
|
242
|
+
<th><nobr>卡号</nobr></th>
|
|
243
|
+
<th><nobr>小区id</nobr></th>
|
|
244
|
+
<th><nobr>用户姓名</nobr></th>
|
|
245
|
+
<th><nobr>用户地址</nobr></th>
|
|
246
|
+
<th><nobr>行政区域</nobr></th>
|
|
247
|
+
<th><nobr>用气区域</nobr></th>
|
|
248
|
+
<th><nobr>用气点</nobr></th>
|
|
249
|
+
<th><nobr>点火时间</nobr></th>
|
|
250
|
+
<th><nobr>抄表员</nobr></th>
|
|
251
|
+
<th><nobr>基表型号</nobr></th>
|
|
252
|
+
<th><nobr>计量表编号</nobr></th>
|
|
253
|
+
<th><nobr>表号</nobr></th>
|
|
254
|
+
<th><nobr>气表品牌</nobr></th>
|
|
255
|
+
<th><nobr>气表型号</nobr></th>
|
|
256
|
+
<th><nobr>气表状态</nobr></th>
|
|
257
|
+
<th><nobr>用户类型</nobr></th>
|
|
258
|
+
<th><nobr>用气性质</nobr></th>
|
|
259
|
+
<th><nobr>用气设备</nobr></th>
|
|
260
|
+
<th><nobr>气价类型</nobr></th>
|
|
261
|
+
<th><nobr>气价名称</nobr></th>
|
|
262
|
+
<th><nobr>用户状态</nobr></th>
|
|
263
|
+
</tr>
|
|
264
|
+
</template>
|
|
265
|
+
<template partial='body'>
|
|
266
|
+
<td style="text-align: center;"><nobr>
|
|
267
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_card_id}}</a></span></nobr>
|
|
268
|
+
</td>
|
|
269
|
+
<td style="text-align: center;"><nobr>{{row.f_residential_area_id}}</nobr></td>
|
|
270
|
+
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
271
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
272
|
+
<td style="text-align: center;"><nobr>{{row.f_distinct}}</nobr></td>
|
|
273
|
+
<td style="text-align: center;"><nobr>{{row.f_gas_area}}</nobr></td>
|
|
274
|
+
<td style="text-align: center;"><nobr>{{row.f_point_name}}</nobr></td>
|
|
275
|
+
<td style="text-align: center;"><nobr>{{row.f_fire_date}}</nobr></td>
|
|
276
|
+
<td style="text-align: center;"><nobr>{{row.f_inputtor}}</nobr></td>
|
|
277
|
+
<td style="text-align: center;"><nobr>{{row.f_jb_type_code}}</nobr></td>
|
|
278
|
+
<td style="text-align: center;"><nobr>{{row.f_barcode}}</nobr></td>
|
|
279
|
+
<td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
280
|
+
<td style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></td>
|
|
281
|
+
<td style="text-align: center;"><nobr>{{row.f_meter_style}}</nobr></td>
|
|
282
|
+
<td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
|
|
283
|
+
<td style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></td>
|
|
284
|
+
<td style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></td>
|
|
285
|
+
<td style="text-align: center;"><nobr>{{row.f_devices_type}}</nobr></td>
|
|
286
|
+
<td style="text-align: center;"><nobr>{{row.f_price_type}}</nobr></td>
|
|
287
|
+
<td style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
|
|
288
|
+
<td style="text-align: center;"><nobr>{{row.f_user_state}}</nobr></td>
|
|
289
|
+
</template>
|
|
290
|
+
<template partial='foot'>
|
|
291
|
+
|
|
292
|
+
</template>
|
|
293
|
+
</data-grid>
|
|
294
|
+
</criteria-paged>
|
|
295
|
+
</div>
|
|
296
|
+
</template>
|
|
297
|
+
|
|
298
|
+
<script>
|
|
299
|
+
import { PagedList } from 'vue-client'
|
|
300
|
+
import exportConfig from '../config/exportConfig'
|
|
301
|
+
|
|
302
|
+
let readySomething = async function(self){
|
|
303
|
+
await self.$MagLoadParams.loadParam()
|
|
304
|
+
self.initParams()
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export default {
|
|
308
|
+
data() {
|
|
309
|
+
return {
|
|
310
|
+
model: new PagedList('rs/sql/meterQuery', 20,{},{f_balance_amount: 0,f_balance_gas: 0}),
|
|
311
|
+
criteriaShow: true,
|
|
312
|
+
second_states: [{label: '全部', value: ''},{label: '否', value: '否'}, {label: '是', value: '是'}],
|
|
313
|
+
filialeNameStr: null,
|
|
314
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
|
315
|
+
userid: this.$login.f.id,
|
|
316
|
+
deviceTypes: this.$appdata.getParam('设备类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('设备类型')] : [],
|
|
317
|
+
source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
318
|
+
distinct: this.$appdata.getParam('行政区域'),
|
|
319
|
+
modelval: [],
|
|
320
|
+
printshow: false,
|
|
321
|
+
all: false,
|
|
322
|
+
fields: {},
|
|
323
|
+
thead: '',
|
|
324
|
+
tfoot: '',
|
|
325
|
+
|
|
326
|
+
// 气表下拉值
|
|
327
|
+
meterbrands: [],
|
|
328
|
+
// 气价下拉值
|
|
329
|
+
pricenames: [],
|
|
330
|
+
|
|
331
|
+
//合计数据
|
|
332
|
+
sumsmodel: {}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
ready(){
|
|
336
|
+
readySomething(this).then(() => {
|
|
337
|
+
this.$emit('ready')
|
|
338
|
+
}).catch((error) => {
|
|
339
|
+
this.$emit('error', error)
|
|
340
|
+
})
|
|
341
|
+
},
|
|
342
|
+
methods: {
|
|
343
|
+
dealmsg (val) {
|
|
344
|
+
console.log('---------------dealmsg')
|
|
345
|
+
val.model = this.model.model
|
|
346
|
+
this.$dispatch('deal-msg',val)
|
|
347
|
+
},
|
|
348
|
+
initParams () {
|
|
349
|
+
|
|
350
|
+
// 初始化气表品牌
|
|
351
|
+
let brandArr = []
|
|
352
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
353
|
+
let temp = {}
|
|
354
|
+
temp.label = item.label
|
|
355
|
+
temp.value = item.value.f_meter_brand
|
|
356
|
+
brandArr.push(temp)
|
|
357
|
+
})
|
|
358
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
359
|
+
|
|
360
|
+
// 初始化气价信息
|
|
361
|
+
console.log('初始化气价。。', this.$MagGetSaleParam.getPrice())
|
|
362
|
+
|
|
363
|
+
let priceArr = []
|
|
364
|
+
this.$MagGetSaleParam.getPrice().forEach((item) => {
|
|
365
|
+
let temp = {}
|
|
366
|
+
temp.label = item.label
|
|
367
|
+
temp.value = item.value.f_price_name
|
|
368
|
+
priceArr.push(temp)
|
|
369
|
+
})
|
|
370
|
+
|
|
371
|
+
this.pricenames = [{label: '全部', value: ''}, ...priceArr]
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
},
|
|
375
|
+
selfSearch (args) {
|
|
376
|
+
if (args.model.f_devices_type){
|
|
377
|
+
args.model.f_devices_type.forEach(item=>{
|
|
378
|
+
args.condition += ` and f_devices_type like '%${item}%' `
|
|
379
|
+
})
|
|
380
|
+
}
|
|
381
|
+
if(this.$refs.paged.$refs.cri.model.f_second_state){
|
|
382
|
+
if(this.$refs.paged.$refs.cri.model.f_second_state==='是'){
|
|
383
|
+
args.condition = `${args.condition} and f_second_state is not null`
|
|
384
|
+
}else {
|
|
385
|
+
args.condition = `${args.condition} and f_second_state is null`
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
this.$refs.paged.$refs.cri.condition = args.condition
|
|
389
|
+
this.model.search(args.condition, args.model)
|
|
390
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
391
|
+
},
|
|
392
|
+
clear(){
|
|
393
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
394
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
395
|
+
})
|
|
396
|
+
},
|
|
397
|
+
show(){
|
|
398
|
+
this.criteriaShow = true
|
|
399
|
+
},
|
|
400
|
+
hidden(){
|
|
401
|
+
this.criteriaShow = false
|
|
402
|
+
},
|
|
403
|
+
getRes(obj) {
|
|
404
|
+
this.filialeNameStr = obj.res
|
|
405
|
+
this.filialeCodeStr = obj.resids
|
|
406
|
+
},
|
|
407
|
+
stamp () {
|
|
408
|
+
this.all = false
|
|
409
|
+
//默认选择要打印的列
|
|
410
|
+
this.modelval = defaultPrint.config
|
|
411
|
+
this.fields = this.getfield
|
|
412
|
+
console.log('所有打印字段',this.fields)
|
|
413
|
+
this.printshow = true
|
|
414
|
+
this.put()
|
|
415
|
+
},
|
|
416
|
+
put () {
|
|
417
|
+
// 对Modelval进行排序
|
|
418
|
+
this.sortModelval()
|
|
419
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>表具查询统计报表</th></tr><tr>`
|
|
420
|
+
for (let key of this.modelval) {
|
|
421
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
422
|
+
}
|
|
423
|
+
this.thead += '</tr>'
|
|
424
|
+
},
|
|
425
|
+
print () {
|
|
426
|
+
this.$refs.print.PrintAsFile()
|
|
427
|
+
this.printshow = false
|
|
428
|
+
},
|
|
429
|
+
close () {
|
|
430
|
+
this.printshow = false
|
|
431
|
+
this.all = false
|
|
432
|
+
},
|
|
433
|
+
// 对选择的列进行排序
|
|
434
|
+
sortModelval () {
|
|
435
|
+
let sortModel = []
|
|
436
|
+
Object.keys(this.fields).forEach((key) => {
|
|
437
|
+
if (this.modelval.includes(key)) {
|
|
438
|
+
sortModel.push(key)
|
|
439
|
+
}
|
|
440
|
+
})
|
|
441
|
+
this.modelval = sortModel
|
|
442
|
+
console.log('选择的打印的字段', this.modelval)
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
watch:{
|
|
446
|
+
'all' (val) {
|
|
447
|
+
if (val) {
|
|
448
|
+
this.modelval = this.bodyData
|
|
449
|
+
} else {
|
|
450
|
+
this.modelval = defaultPrint.config
|
|
451
|
+
this.put()
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
'modelval.length' () {
|
|
455
|
+
this.put()
|
|
456
|
+
},
|
|
457
|
+
},
|
|
458
|
+
computed:{
|
|
459
|
+
getCondition(){
|
|
460
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}`}
|
|
461
|
+
},
|
|
462
|
+
inputtores () {
|
|
463
|
+
return this.$appdata.getParam('抄表员')
|
|
464
|
+
},
|
|
465
|
+
meter_states () {
|
|
466
|
+
return this.$appdata.getParam('表具现状')
|
|
467
|
+
},
|
|
468
|
+
getfield(){
|
|
469
|
+
let data = {}
|
|
470
|
+
this.bodyData.forEach((value, index)=>{
|
|
471
|
+
data[this.bodyData[index]] = this.headData[index]
|
|
472
|
+
})
|
|
473
|
+
//合计字段打印
|
|
474
|
+
this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
|
|
475
|
+
if(this.sumsmodel){
|
|
476
|
+
Object.keys(this.sumsmodel).forEach((key) => {
|
|
477
|
+
this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
|
|
478
|
+
})
|
|
479
|
+
}else{
|
|
480
|
+
this.tfoot += '暂无'
|
|
481
|
+
}
|
|
482
|
+
this.tfoot += '</th></tr>'
|
|
483
|
+
return data
|
|
484
|
+
},
|
|
485
|
+
getExportField () {
|
|
486
|
+
return exportConfig.meterConfig
|
|
487
|
+
},
|
|
488
|
+
areas () {
|
|
489
|
+
console.log('小区获取区县。。。。。', this.$login.f.f_allArea)
|
|
490
|
+
let rs = []
|
|
491
|
+
for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
|
|
492
|
+
let temp = {
|
|
493
|
+
label: this.$login.f.f_allArea[i].label,
|
|
494
|
+
value: this.$login.f.f_allArea[i].label
|
|
495
|
+
}
|
|
496
|
+
rs.push(temp)
|
|
497
|
+
}
|
|
498
|
+
// return rs
|
|
499
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
500
|
+
},
|
|
501
|
+
usertypes () {
|
|
502
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
503
|
+
},
|
|
504
|
+
cardStates () {
|
|
505
|
+
return [
|
|
506
|
+
{label: '全部', value: ''},
|
|
507
|
+
{label: '未发卡', value: '未发'},
|
|
508
|
+
{label: '已发卡', value: '已发'},
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
gasproperties () {
|
|
512
|
+
let rs = []
|
|
513
|
+
if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
|
|
514
|
+
rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
515
|
+
}
|
|
516
|
+
return [{label: '全部', value: ''}, ...rs]
|
|
517
|
+
},
|
|
518
|
+
|
|
519
|
+
metertypes () {
|
|
520
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
521
|
+
},
|
|
522
|
+
// meterbrands () {
|
|
523
|
+
// let arr = []
|
|
524
|
+
// this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
525
|
+
// let temp = {}
|
|
526
|
+
// temp.label = item.label
|
|
527
|
+
// temp.value = item.value.f_meter_brand
|
|
528
|
+
// arr.push(temp)
|
|
529
|
+
// })
|
|
530
|
+
// return [{label: '全部', value: ''}, ...arr]
|
|
531
|
+
// },
|
|
532
|
+
tablestate () {
|
|
533
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('表状态')]
|
|
534
|
+
},
|
|
535
|
+
userstate () {
|
|
536
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
|
|
537
|
+
},
|
|
538
|
+
sliceArea () {
|
|
539
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('所属区域')]
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
</script>
|