sale-client 3.6.171 → 3.6.172
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
|
@@ -24,4 +24,6 @@ export default function () {
|
|
|
24
24
|
Vue.component('user-meterinfodetail', (resolve) => { require(['./leftview/meterinfodetail'], resolve) })
|
|
25
25
|
// 欠费查询
|
|
26
26
|
Vue.component('sale-arrears-query', (resolve) => { require(['./machineHandManage/ArrearsQuery'], resolve) })
|
|
27
|
+
// 机表查询
|
|
28
|
+
Vue.component('un-handplan-query', (resolve) => { require(['./unHandplanQuery'], resolve) })
|
|
27
29
|
}
|
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search" v-if="!show">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
7
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
8
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
|
|
11
|
+
<div class="col-sm-2 form-group">
|
|
12
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
13
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
14
|
+
v-model="model.startDate"
|
|
15
|
+
:value.sync="model.startDate"
|
|
16
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
17
|
+
:show-reset-button="true">
|
|
18
|
+
</datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label for="endDate" class="font_normal_body"> 至  </label>
|
|
22
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
23
|
+
v-model="model.endDate"
|
|
24
|
+
:value.sync="model.endDate"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="true">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label class="font_normal_body">客户编号</label>
|
|
31
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
32
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group">
|
|
35
|
+
<label class="font_normal_body">客户名称</label>
|
|
36
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
37
|
+
condition="f_user_name = '{}'" placeholder="客户名称">
|
|
38
|
+
</div>
|
|
39
|
+
<div class="span" style="float:right;">
|
|
40
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
41
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
42
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
43
|
+
:field="$parent.$parent.getfield"
|
|
44
|
+
sqlurl="rs/logic/saleExport" sql-name="unsalehandplanQuery" template-name='抄表查询导出'
|
|
45
|
+
:choose-col="true"></export-excel>
|
|
46
|
+
|
|
47
|
+
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
51
|
+
<res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" :show-component="['company','department','operator']" v-ref:sel></res-select-group>
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
55
|
+
<!--<label class="font_normal_body">小区名称</label>-->
|
|
56
|
+
<!--<v-select :value.sync="model.f_residential_area"-->
|
|
57
|
+
<!--class="select_list select"-->
|
|
58
|
+
<!--enter-push-->
|
|
59
|
+
<!--multiple = "true"-->
|
|
60
|
+
<!--v-model="model.f_residential_area"-->
|
|
61
|
+
<!--style="width: 60%"-->
|
|
62
|
+
<!--condition="f_residential_area in {}"-->
|
|
63
|
+
<!--:options='$parent.$parent.residentialArea' placeholder='选择小区'-->
|
|
64
|
+
<!--close-on-select>-->
|
|
65
|
+
|
|
66
|
+
<!--</v-select>-->
|
|
67
|
+
<!--</div>-->
|
|
68
|
+
|
|
69
|
+
<div class="col-sm-2 form-group">
|
|
70
|
+
<label class="font_normal_body">客户地址</label>
|
|
71
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
72
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-2 form-group">
|
|
75
|
+
<label class="font_normal_body">客户类型</label>
|
|
76
|
+
<v-select :value.sync="model.f_user_type"
|
|
77
|
+
@change="$parent.$parent.userTypeChange()"
|
|
78
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
79
|
+
condition="f_user_type = '{}'"
|
|
80
|
+
close-on-select></v-select>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="col-sm-2 form-group">
|
|
83
|
+
<label class="font_normal_body">用气性质</label>
|
|
84
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
85
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
86
|
+
condition="f_gasproperties = '{}'"
|
|
87
|
+
close-on-select></v-select>
|
|
88
|
+
</div>
|
|
89
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
90
|
+
<!--<label class="font_normal_body">气价类型</label>-->
|
|
91
|
+
<!--<v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
|
|
92
|
+
<!--placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
|
|
93
|
+
<!--close-on-select v-ref:type>-->
|
|
94
|
+
<!--</v-select>-->
|
|
95
|
+
<!--</div>-->
|
|
96
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
97
|
+
<!--<label class="font_normal_body">气价名称</label>-->
|
|
98
|
+
<!--<v-select :value.sync="model.f_price_name"-->
|
|
99
|
+
<!--v-model="model.f_price_name"-->
|
|
100
|
+
<!--:options="$parent.$parent.getPricenames"-->
|
|
101
|
+
<!--condition="f_price_name = '{}'"-->
|
|
102
|
+
<!--close-on-select></v-select>-->
|
|
103
|
+
<!--</div>-->
|
|
104
|
+
|
|
105
|
+
<div class="col-sm-2 form-group">
|
|
106
|
+
<label class="font_normal_body">气表品牌</label>
|
|
107
|
+
<v-select :value.sync="model.f_meter_brand" multiple
|
|
108
|
+
v-model="model.f_meter_brand"
|
|
109
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
110
|
+
condition="f_meter_brand in {}"
|
|
111
|
+
close-on-select></v-select>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-sm-2 form-group">
|
|
114
|
+
<label class="font_normal_body">期间用气量</label>
|
|
115
|
+
<input type="text" style="width:30%" class="input_search" title="大于等于"
|
|
116
|
+
v-model="model.f_oughtamount_big" condition="f_oughtamount >= {}" placeholder='大于等于'>
|
|
117
|
+
<input type="text" style="width:30%" class="input_search" title="小于等于"
|
|
118
|
+
v-model="model.f_oughtamount_small" condition="f_oughtamount <= {}" placeholder='小于等于'>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-2 form-group">
|
|
121
|
+
<label class="font_normal_body">期间用气金额</label>
|
|
122
|
+
<input type="text" style="width:30%" class="input_search" title="大于等于"
|
|
123
|
+
v-model="model.f_oughtfee_big" condition="f_oughtfee >= {}" placeholder='大于等于'>
|
|
124
|
+
<input type="text" style="width:30%" class="input_search" title="小于等于"
|
|
125
|
+
v-model="model.f_oughtfee_small" condition="f_oughtfee <= {}" placeholder='小于等于'>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="col-sm-2 form-group">
|
|
128
|
+
<label class="font_normal_body"> 表 号  </label>
|
|
129
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
130
|
+
condition="f_meternumber = '{}' " placeholder="表号">
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<!--表册片区-->
|
|
134
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
135
|
+
<!--<label class="font_normal_body">表册片区</label>-->
|
|
136
|
+
<!--<v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"-->
|
|
137
|
+
<!--@change="$parent.$parent.inputtorchange"-->
|
|
138
|
+
<!--multiple-->
|
|
139
|
+
<!--:options='$parent.$parent.bookSlice' placeholder='片区/表册'-->
|
|
140
|
+
<!--style="width:60%"-->
|
|
141
|
+
<!--close-on-select-->
|
|
142
|
+
<!--condition="f_book_slice_area in {}"></v-select>-->
|
|
143
|
+
<!--</div>-->
|
|
144
|
+
<div class="col-sm-2 form-group">
|
|
145
|
+
<label class="font_normal_body">抄 表 册</label>
|
|
146
|
+
<v-select :value.sync="model.f_meter_book" v-model="model.f_meter_book"
|
|
147
|
+
:options='$parent.$parent.meterbooks' placeholder='抄表册'
|
|
148
|
+
style="width:60%"
|
|
149
|
+
multiple
|
|
150
|
+
close-on-select
|
|
151
|
+
condition="f_meter_book_num in {}"></v-select>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</criteria>
|
|
157
|
+
|
|
158
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid :classname="$parent.classname">
|
|
159
|
+
<template partial='head'>
|
|
160
|
+
<tr>
|
|
161
|
+
<th>
|
|
162
|
+
<nobr>客户编号</nobr>
|
|
163
|
+
</th>
|
|
164
|
+
<th>
|
|
165
|
+
<nobr>客户名称</nobr>
|
|
166
|
+
</th>
|
|
167
|
+
<th>
|
|
168
|
+
<nobr>客户地址</nobr>
|
|
169
|
+
</th>
|
|
170
|
+
<th>
|
|
171
|
+
<nobr>客户状态</nobr>
|
|
172
|
+
</th>
|
|
173
|
+
<th>
|
|
174
|
+
<nobr>气表状态</nobr>
|
|
175
|
+
</th>
|
|
176
|
+
<th>
|
|
177
|
+
<nobr>气表类型</nobr>
|
|
178
|
+
</th>
|
|
179
|
+
<th>
|
|
180
|
+
<nobr>客户类型</nobr>
|
|
181
|
+
</th>
|
|
182
|
+
<th>
|
|
183
|
+
<nobr>用户性质</nobr>
|
|
184
|
+
</th>
|
|
185
|
+
<th>
|
|
186
|
+
<nobr>气表品牌</nobr>
|
|
187
|
+
</th>
|
|
188
|
+
<th>
|
|
189
|
+
<nobr>表号</nobr>
|
|
190
|
+
</th>
|
|
191
|
+
<th>
|
|
192
|
+
<nobr>抄表册名称</nobr>
|
|
193
|
+
</th>
|
|
194
|
+
<th>
|
|
195
|
+
<nobr>册内排序</nobr>
|
|
196
|
+
</th>
|
|
197
|
+
<th>
|
|
198
|
+
<nobr>开户时间</nobr>
|
|
199
|
+
</th>
|
|
200
|
+
<th>
|
|
201
|
+
<nobr>期间初次上报日期</nobr>
|
|
202
|
+
</th>
|
|
203
|
+
<th>
|
|
204
|
+
<nobr>期间最后上报日期</nobr>
|
|
205
|
+
</th>
|
|
206
|
+
<th>
|
|
207
|
+
<nobr>期间上报次数</nobr>
|
|
208
|
+
</th>
|
|
209
|
+
|
|
210
|
+
<th>
|
|
211
|
+
<nobr>期间用气量</nobr>
|
|
212
|
+
</th>
|
|
213
|
+
<th>
|
|
214
|
+
<nobr>期间用气金额</nobr>
|
|
215
|
+
</th>
|
|
216
|
+
<th>
|
|
217
|
+
<nobr>机表未抄期数</nobr>
|
|
218
|
+
</th>
|
|
219
|
+
<th>
|
|
220
|
+
<nobr>物联未报天数</nobr>
|
|
221
|
+
</th>
|
|
222
|
+
<th>
|
|
223
|
+
<nobr>部门</nobr>
|
|
224
|
+
</th>
|
|
225
|
+
<th>
|
|
226
|
+
<nobr>公司</nobr>
|
|
227
|
+
</th>
|
|
228
|
+
</tr>
|
|
229
|
+
</template>
|
|
230
|
+
<template partial='body'>
|
|
231
|
+
<td style="text-align: center;">
|
|
232
|
+
<nobr>
|
|
233
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
|
|
234
|
+
</td>
|
|
235
|
+
<td style="text-align: center;">
|
|
236
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
237
|
+
</td>
|
|
238
|
+
<td style="text-align: center;">
|
|
239
|
+
<nobr>{{row.f_address}}</nobr>
|
|
240
|
+
</td>
|
|
241
|
+
<td style="text-align: center;">
|
|
242
|
+
<nobr>{{row.f_user_state}}</nobr>
|
|
243
|
+
</td>
|
|
244
|
+
<td style="text-align: center;">
|
|
245
|
+
<nobr>{{row.f_table_state}}</nobr>
|
|
246
|
+
</td>
|
|
247
|
+
<td style="text-align: center;">
|
|
248
|
+
<nobr>{{row.f_meter_classify}}</nobr>
|
|
249
|
+
</td>
|
|
250
|
+
<td style="text-align: center;">
|
|
251
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
252
|
+
</td>
|
|
253
|
+
<td style="text-align: center;">
|
|
254
|
+
<nobr>{{row.f_gasproperties}}</nobr>
|
|
255
|
+
</td>
|
|
256
|
+
<td style="text-align: center;">
|
|
257
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
258
|
+
</td>
|
|
259
|
+
<td style="text-align: center;">
|
|
260
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
261
|
+
</td>
|
|
262
|
+
<td style="text-align: center;">
|
|
263
|
+
<nobr>{{row.f_book_name}}</nobr>
|
|
264
|
+
</td>
|
|
265
|
+
<td style="text-align: center;">
|
|
266
|
+
<nobr>{{row.f_meter_book_sort}}</nobr>
|
|
267
|
+
</td>
|
|
268
|
+
<td style="text-align: center;">
|
|
269
|
+
<nobr>{{row.f_open_date}}</nobr>
|
|
270
|
+
</td>
|
|
271
|
+
<td style="text-align: center;">
|
|
272
|
+
<nobr>{{row.f_hand_min_date}}</nobr>
|
|
273
|
+
</td>
|
|
274
|
+
<td style="text-align: center;">
|
|
275
|
+
<nobr>{{row.f_hand_max_date}}</nobr>
|
|
276
|
+
</td>
|
|
277
|
+
<td style="text-align: center;">
|
|
278
|
+
<nobr>{{row.f_number}}</nobr>
|
|
279
|
+
</td>
|
|
280
|
+
<td style="text-align: center;">
|
|
281
|
+
<nobr>{{row.f_oughtamount}}</nobr>
|
|
282
|
+
</td>
|
|
283
|
+
<td style="text-align: center;">
|
|
284
|
+
<nobr>{{row.f_oughtfee}}</nobr>
|
|
285
|
+
</td>
|
|
286
|
+
<td style="text-align: center;">
|
|
287
|
+
<nobr>{{row.f_hand_month}}</nobr>
|
|
288
|
+
</td>
|
|
289
|
+
<td style="text-align: center;">
|
|
290
|
+
<nobr>{{row.f_webhand_day}}</nobr>
|
|
291
|
+
</td>
|
|
292
|
+
|
|
293
|
+
<td style="text-align: center;">
|
|
294
|
+
<nobr>{{row.f_depname}}</nobr>
|
|
295
|
+
</td>
|
|
296
|
+
<td style="text-align: center;">
|
|
297
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
298
|
+
</td>
|
|
299
|
+
</template>
|
|
300
|
+
<template partial='foot'></template>
|
|
301
|
+
</data-grid>
|
|
302
|
+
</criteria-paged>
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
<div class="flex" v-if="show">
|
|
308
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
309
|
+
</div>
|
|
310
|
+
<work-busy :is-busy="iswork" v-show="iswork"></work-busy>
|
|
311
|
+
</div>
|
|
312
|
+
</template>
|
|
313
|
+
|
|
314
|
+
<script>
|
|
315
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
let readySomething = async function (self) {
|
|
319
|
+
// 加载抄表册
|
|
320
|
+
|
|
321
|
+
await self.$LoadParams.loadMeterBook(self.f_filialeid)
|
|
322
|
+
self.loadMeterBooks()
|
|
323
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
324
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
325
|
+
await self.$LoadParams.loadParam()
|
|
326
|
+
self.initParams()
|
|
327
|
+
console.log('开始查询')
|
|
328
|
+
}
|
|
329
|
+
export default {
|
|
330
|
+
props: ['data'],
|
|
331
|
+
title: '未抄查询',
|
|
332
|
+
data () {
|
|
333
|
+
return {
|
|
334
|
+
iswork: false,
|
|
335
|
+
other: [],
|
|
336
|
+
footer: [],
|
|
337
|
+
data: {},
|
|
338
|
+
model: new PagedList('rs/sql/unsalehandplanQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
|
|
339
|
+
initres: {
|
|
340
|
+
org: [this.$login.f.orgid],
|
|
341
|
+
dep: [],
|
|
342
|
+
user: []
|
|
343
|
+
},
|
|
344
|
+
show: false,
|
|
345
|
+
rowdata: {},
|
|
346
|
+
criteriaShow: false,
|
|
347
|
+
residentialArea: [],
|
|
348
|
+
orgCondtionStr: '',
|
|
349
|
+
modelval: [],
|
|
350
|
+
gasproperties: [],
|
|
351
|
+
inputtouPerson: [],
|
|
352
|
+
meterbrands: [],
|
|
353
|
+
printshow: false,
|
|
354
|
+
f_filialeid: this.$login.f.f_orgid,
|
|
355
|
+
all: false,
|
|
356
|
+
fields: {},
|
|
357
|
+
thead: '',
|
|
358
|
+
tfoot: '',
|
|
359
|
+
showupload: false,
|
|
360
|
+
selected: {},
|
|
361
|
+
|
|
362
|
+
// 下拉框
|
|
363
|
+
|
|
364
|
+
// 合计数据
|
|
365
|
+
sumsmodel: {},
|
|
366
|
+
defaultfield: [],
|
|
367
|
+
config: {
|
|
368
|
+
defaultPrint1: [
|
|
369
|
+
'f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_pregas', 'f_preamount', 'f_collection', 'f_balance', 'f_curbalance', 'f_idnumber'
|
|
370
|
+
],
|
|
371
|
+
defaultPrint: ['f_userinfo_code', 'f_address', 'f_user_name', 'f_meternumber'],
|
|
372
|
+
excelHeaders: {'f_userinfo_code': '客户编号',
|
|
373
|
+
'f_user_name': '客户名称',
|
|
374
|
+
'f_address': '客户地址',
|
|
375
|
+
'f_user_state': '客户状态',
|
|
376
|
+
'f_table_state': '表具状态',
|
|
377
|
+
'f_meter_classify': '气表类型',
|
|
378
|
+
'f_user_type': '客户类型',
|
|
379
|
+
'f_gasproperties': '用户性质',
|
|
380
|
+
'f_meter_brand': '气表品牌',
|
|
381
|
+
'f_meternumber': '表号',
|
|
382
|
+
'f_book_name': '抄表册名称',
|
|
383
|
+
'f_meter_book_sort': '册内排序',
|
|
384
|
+
'f_open_date': '开户时间',
|
|
385
|
+
'f_hand_min_date': '期间初次上报日期',
|
|
386
|
+
'f_hand_max_date': '期间最后上报日期',
|
|
387
|
+
'f_number': '期间上报次数',
|
|
388
|
+
'f_oughtamount': '期间用气量',
|
|
389
|
+
'f_oughtfee': '期间用气金额',
|
|
390
|
+
'f_hand_month': '机表未抄期数',
|
|
391
|
+
'f_webhand_day': '物联未报天数',
|
|
392
|
+
'f_depname': '部门',
|
|
393
|
+
'f_orgname': '公司'
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
batchmoneyShow: false,
|
|
397
|
+
prices: [],
|
|
398
|
+
bgl: [{label: '全部', value: ''}, {label: '有', value: '1'}, {label: '无', value: '0'}],
|
|
399
|
+
meterbooks: [{label: '全部', value: ''}], // 抄表册
|
|
400
|
+
tempfalg: false,
|
|
401
|
+
lastorgstr: '',
|
|
402
|
+
allorgid: [],
|
|
403
|
+
inputtores: [{label: '全部', value: ''}], // 抄表员
|
|
404
|
+
// 表册片区
|
|
405
|
+
bookSlice: [{label: '全部', value: ''}],
|
|
406
|
+
imgshow: false,
|
|
407
|
+
imgfilename: '',
|
|
408
|
+
percent: 0,
|
|
409
|
+
progressShow: false,
|
|
410
|
+
uuida: '',
|
|
411
|
+
timer: '',
|
|
412
|
+
condition: ' 1 = 1'
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
ready () {
|
|
416
|
+
this.getaddress()
|
|
417
|
+
readySomething(this).then(() => {
|
|
418
|
+
this.$emit('ready')
|
|
419
|
+
}).catch((error) => {
|
|
420
|
+
this.$emit('error', error)
|
|
421
|
+
})
|
|
422
|
+
},
|
|
423
|
+
methods: {
|
|
424
|
+
loadMeterBooks () {
|
|
425
|
+
this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
|
|
426
|
+
},
|
|
427
|
+
progressclose () {
|
|
428
|
+
this.progressShow = false
|
|
429
|
+
if (this.timer != null) {
|
|
430
|
+
clearInterval(this.timer)
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
async initmeterbook (orgstr) {
|
|
434
|
+
if (orgstr == null) {
|
|
435
|
+
orgstr = this.f_filialeid
|
|
436
|
+
}
|
|
437
|
+
// 获取新的抄表册,先去清理所有的抄表册
|
|
438
|
+
this.$GetSaleParam.meterbooks = []
|
|
439
|
+
// 开始加载新的抄表册
|
|
440
|
+
await this.$LoadParams.loadMeterBook(orgstr)
|
|
441
|
+
this.meterbooks = [{label: '全部', value: ''}, ...this.$GetSaleParam.getMeterBooks()]
|
|
442
|
+
},
|
|
443
|
+
// 初始化片区
|
|
444
|
+
async initSlice (val) {
|
|
445
|
+
if (val) {
|
|
446
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
|
447
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
448
|
+
userid: this.$login.f.id
|
|
449
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
450
|
+
let arr = getAllArea.data.filter((res) => {
|
|
451
|
+
return res.parentid == val
|
|
452
|
+
})
|
|
453
|
+
this.bookSlice = []
|
|
454
|
+
arr.forEach((res) => {
|
|
455
|
+
this.bookSlice.push({label: res.name, value: res.name})
|
|
456
|
+
})
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
// 表册片区和抄表册关联
|
|
460
|
+
async inputtorchange () {
|
|
461
|
+
this.$set('$refs.paged.$refs.cri.model.f_meter_book', [])
|
|
462
|
+
let val2 = this.$refs.paged.$refs.cri.model.f_book_slice_area
|
|
463
|
+
if ((val2.length > 0)) {
|
|
464
|
+
let condition = ` 1=1 and f_orgid ='${this.f_filialeid}' and f_book_state='有效' `
|
|
465
|
+
let aaa = '('
|
|
466
|
+
val2.forEach((item) => {
|
|
467
|
+
aaa = aaa + `'${item}',`
|
|
468
|
+
})
|
|
469
|
+
aaa = aaa + `'')`
|
|
470
|
+
condition = condition + ` and f_book_slice_area in ${aaa} `
|
|
471
|
+
let param = {
|
|
472
|
+
items: '*',
|
|
473
|
+
tablename: 't_meter_book',
|
|
474
|
+
condition: condition,
|
|
475
|
+
orderitem: 'id'
|
|
476
|
+
}
|
|
477
|
+
let getMeterBooks = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取营收参数出错!!!'})
|
|
478
|
+
if (getMeterBooks.data) {
|
|
479
|
+
if (getMeterBooks.data.length > 0) {
|
|
480
|
+
let rs = []
|
|
481
|
+
getMeterBooks.data.forEach((item) => {
|
|
482
|
+
let temp = {
|
|
483
|
+
label: item.f_book_name,
|
|
484
|
+
value: item.id
|
|
485
|
+
}
|
|
486
|
+
rs.push(temp)
|
|
487
|
+
})
|
|
488
|
+
this.meterbooks = [{label: '全部', value: ''}, ...rs]
|
|
489
|
+
} else {
|
|
490
|
+
this.meterbooks = [{label: '全部', value: ''}]
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
} else {
|
|
494
|
+
this.meterbooks = [{label: '全部', value: ''}]
|
|
495
|
+
this.initmeterbook()
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
|
|
499
|
+
async getinputtores () {
|
|
500
|
+
// 获取抄表员
|
|
501
|
+
let rs = []
|
|
502
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
503
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
504
|
+
let temp = {
|
|
505
|
+
label: this.$login.f.f_gasman[i].name,
|
|
506
|
+
value: this.$login.f.f_gasman[i].name
|
|
507
|
+
}
|
|
508
|
+
rs.push(temp)
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
this.inputtores = [{label: '全部', value: ''}, ...rs]
|
|
512
|
+
this.inputtores.push({label: '微信公众号', value: '微信公众号'})
|
|
513
|
+
},
|
|
514
|
+
async updateParams () {
|
|
515
|
+
await this.$LoadParams.loadParam(this.f_filialeid)
|
|
516
|
+
this.inputtores = []
|
|
517
|
+
this.inputtores.push({label: '全部', value: ''})
|
|
518
|
+
this.initSlice(this.f_filialeid)
|
|
519
|
+
if (this.allorgid != null) {
|
|
520
|
+
this.allorgid.forEach((res) => {
|
|
521
|
+
this.inputtores = this.inputtores.concat(this.$GetSaleParam.getresinputtor(res))
|
|
522
|
+
})
|
|
523
|
+
}
|
|
524
|
+
this.initParams(this.f_filialeid)
|
|
525
|
+
},
|
|
526
|
+
imgclose () {
|
|
527
|
+
this.imgshow = false
|
|
528
|
+
},
|
|
529
|
+
imgShow (val) {
|
|
530
|
+
this.imgfilename = `rs/image/file/` + val
|
|
531
|
+
this.imgshow = true
|
|
532
|
+
},
|
|
533
|
+
initParams () {
|
|
534
|
+
// 初始化气表品牌
|
|
535
|
+
let brandArr = []
|
|
536
|
+
this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
537
|
+
let temp = {}
|
|
538
|
+
temp.label = item.label
|
|
539
|
+
temp.value = item.label
|
|
540
|
+
brandArr.push(temp)
|
|
541
|
+
})
|
|
542
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
543
|
+
// 初始化气表价格
|
|
544
|
+
this.prices = this.$GetSaleParam.getPrice(this.$login.f.orgid)
|
|
545
|
+
},
|
|
546
|
+
async getaddress () {
|
|
547
|
+
let HttpReset = new HttpResetClass()
|
|
548
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
549
|
+
data: {
|
|
550
|
+
condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
|
|
551
|
+
}
|
|
552
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
553
|
+
console.log('小区', data)
|
|
554
|
+
let house = [{label: '全部', value: ''}]
|
|
555
|
+
for (let row of data.data) {
|
|
556
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
557
|
+
}
|
|
558
|
+
this.residentialArea = house
|
|
559
|
+
},
|
|
560
|
+
Fileinput () {
|
|
561
|
+
this.batchmoneyShow = true
|
|
562
|
+
},
|
|
563
|
+
search () {
|
|
564
|
+
this.$refs.paged.$refs.cri.search()
|
|
565
|
+
},
|
|
566
|
+
cancel () {
|
|
567
|
+
this.show = false
|
|
568
|
+
},
|
|
569
|
+
selfSearch (args) {
|
|
570
|
+
if (this.data) {
|
|
571
|
+
this.$parent.$parent.$parent.data.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
572
|
+
this.$parent.$parent.$parent.data.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
573
|
+
}
|
|
574
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
575
|
+
this.condition = args.condition
|
|
576
|
+
this.model.search(args.condition, args.model)
|
|
577
|
+
},
|
|
578
|
+
clear () {
|
|
579
|
+
// 清空部门和人员
|
|
580
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
581
|
+
// 部门和人员变为全选
|
|
582
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
583
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
584
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
585
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
586
|
+
})
|
|
587
|
+
this.$refs.paged.$refs.cri.model.f_meter_classify = []
|
|
588
|
+
},
|
|
589
|
+
show () {
|
|
590
|
+
this.criteriaShow = true
|
|
591
|
+
},
|
|
592
|
+
hidden () {
|
|
593
|
+
this.criteriaShow = !this.criteriaShow
|
|
594
|
+
},
|
|
595
|
+
async getRes (condition, obj) {
|
|
596
|
+
console.log('condition:----------', condition)
|
|
597
|
+
console.log('obj:----------', obj)
|
|
598
|
+
this.orgCondtionStr = condition
|
|
599
|
+
},
|
|
600
|
+
stamp () {
|
|
601
|
+
this.all = false
|
|
602
|
+
// 默认选择要打印的列
|
|
603
|
+
this.modelval = this.defaultPrint1
|
|
604
|
+
this.fields = this.getfield
|
|
605
|
+
this.printshow = true
|
|
606
|
+
this.put()
|
|
607
|
+
},
|
|
608
|
+
put () {
|
|
609
|
+
// 对Modelval进行排序
|
|
610
|
+
this.sortModelval()
|
|
611
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>抄表查询统计报表</th></tr><tr>`
|
|
612
|
+
for (let key of this.modelval) {
|
|
613
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
614
|
+
}
|
|
615
|
+
this.thead += '</tr>'
|
|
616
|
+
},
|
|
617
|
+
print () {
|
|
618
|
+
this.$refs.print.PrintAsFile()
|
|
619
|
+
this.printshow = false
|
|
620
|
+
},
|
|
621
|
+
dealmsg (val) {
|
|
622
|
+
this.rowdata = val
|
|
623
|
+
this.show = true
|
|
624
|
+
val.model = this.model.model
|
|
625
|
+
this.$dispatch('deal-msg', val)
|
|
626
|
+
},
|
|
627
|
+
close () {
|
|
628
|
+
this.printshow = false
|
|
629
|
+
this.all = false
|
|
630
|
+
},
|
|
631
|
+
|
|
632
|
+
userTypeChange () {
|
|
633
|
+
this.gasproperties = []
|
|
634
|
+
if (this.$refs.paged.$refs.cri.model !== null) {
|
|
635
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
636
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
637
|
+
} else {
|
|
638
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
// 对选择的列进行排序
|
|
642
|
+
sortModelval () {
|
|
643
|
+
let sortModel = []
|
|
644
|
+
Object.keys(this.fields).forEach((key) => {
|
|
645
|
+
if (this.modelval.includes(key)) {
|
|
646
|
+
sortModel.push(key)
|
|
647
|
+
}
|
|
648
|
+
})
|
|
649
|
+
this.modelval = sortModel
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
watch: {
|
|
653
|
+
'model.rows' (val) {
|
|
654
|
+
if (val.length === 0) {
|
|
655
|
+
this.sumsmodel = {}
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
'all' (val) {
|
|
659
|
+
if (val) {
|
|
660
|
+
this.modelval = this.bodyData
|
|
661
|
+
} else {
|
|
662
|
+
this.modelval = this.defaultPrint1
|
|
663
|
+
this.put()
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
'modelval.length' () {
|
|
667
|
+
this.put()
|
|
668
|
+
},
|
|
669
|
+
},
|
|
670
|
+
computed: {
|
|
671
|
+
banklist () {
|
|
672
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
|
|
673
|
+
},
|
|
674
|
+
getCondition () {
|
|
675
|
+
return {
|
|
676
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
677
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
678
|
+
condition: this.condition
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
getfield () {
|
|
682
|
+
return this.config.excelHeaders
|
|
683
|
+
},
|
|
684
|
+
usertypes () {
|
|
685
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
686
|
+
},
|
|
687
|
+
accountsState () {
|
|
688
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('下账状态')]
|
|
689
|
+
},
|
|
690
|
+
meterstate () {
|
|
691
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表状态')]
|
|
692
|
+
},
|
|
693
|
+
handstate () {
|
|
694
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('表单状态')]
|
|
695
|
+
},
|
|
696
|
+
// inputtor() {
|
|
697
|
+
// return [{label: '全部', value: ''}, ...this.$appdata.getParam('抄表员')]
|
|
698
|
+
// },
|
|
699
|
+
pricetypes () {
|
|
700
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
701
|
+
},
|
|
702
|
+
getPricenames () {
|
|
703
|
+
let f_filialeid = this.f_filialeid
|
|
704
|
+
let result = []
|
|
705
|
+
this.$GetSaleParam.prices.forEach((item) => {
|
|
706
|
+
if (item.f_state === '有效' && f_filialeid == item.f_filialeid) {
|
|
707
|
+
let value = {
|
|
708
|
+
label: item.f_price_name,
|
|
709
|
+
value: item
|
|
710
|
+
}
|
|
711
|
+
result.push(value)
|
|
712
|
+
}
|
|
713
|
+
})
|
|
714
|
+
return Array.from(new Set(result))
|
|
715
|
+
},
|
|
716
|
+
inputtores () {
|
|
717
|
+
// 获取抄表员
|
|
718
|
+
console.log('获取抄表员', this.$login.f)
|
|
719
|
+
let rs = []
|
|
720
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
721
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
722
|
+
let temp = {
|
|
723
|
+
label: this.$login.f.f_gasman[i].name,
|
|
724
|
+
value: this.$login.f.f_gasman[i].name
|
|
725
|
+
}
|
|
726
|
+
rs.push(temp)
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return [...rs]
|
|
730
|
+
},
|
|
731
|
+
whetherPay () {
|
|
732
|
+
return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
},
|
|
736
|
+
events: {
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
</script>
|