manage-client 4.0.42 → 4.0.44
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/bayan/OtherChargeDetailQuery.vue +74 -0
- package/src/filiale/bayan/OtherChargeQuery.vue +729 -0
- package/src/filiale/bayan/RecordInfoQuery.vue +1432 -0
- package/src/filiale/bayan/config/exportConfig.js +20 -1
- package/src/filiale/bayan/sale.js +8 -0
- package/src/filiale/meihekou/AreaGeneralQuery.vue +3 -1
- package/src/filiale/rongcheng/ChargeQuery.vue +14 -1
- package/src/filiale/xinkang/ManageBrandHouseCount.vue +23 -31
|
@@ -0,0 +1,729 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main" @keyup.enter="search">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
|
|
6
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
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
|
+
<div class="col-sm-2 form-group">
|
|
11
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
12
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
13
|
+
v-model="model.startDate"
|
|
14
|
+
:value.sync="model.startDate"
|
|
15
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
16
|
+
:show-reset-button="true"
|
|
17
|
+
condition="f_operate_date >= '{}'">
|
|
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
|
+
condition="f_operate_date <= '{}'">
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2 form-group">
|
|
31
|
+
<label class="font_normal_body">客户编号</label>
|
|
32
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
33
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-2 form-group">
|
|
36
|
+
<label class="font_normal_body" title="旧客户编号">档案编号</label>
|
|
37
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
38
|
+
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="span" style="float:right;">
|
|
42
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
44
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
45
|
+
|
|
46
|
+
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
47
|
+
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
48
|
+
:defaultselect="$parent.$parent.defaultexport"
|
|
49
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
|
|
50
|
+
:choose-col="true"></export-excel>
|
|
51
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
52
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
53
|
+
titletable="其他收费记录"
|
|
54
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
55
|
+
<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>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
60
|
+
<res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
61
|
+
<div class="col-sm-2 form-group">
|
|
62
|
+
<label class="font_normal_body">客户名称</label>
|
|
63
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
64
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
65
|
+
</div>
|
|
66
|
+
<div class="col-sm-2 form-group">
|
|
67
|
+
<label class="font_normal_body">客户地址</label>
|
|
68
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
69
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="col-sm-2 form-group">
|
|
72
|
+
<label class="font_normal_body">收费类型</label>
|
|
73
|
+
<v-select v-model="model.f_brand_spec"
|
|
74
|
+
placeholder='请选择'
|
|
75
|
+
condition="f_brand_spec in {}"
|
|
76
|
+
:value.sync="model.f_brand_spec" multiple
|
|
77
|
+
:options='$parent.$parent.chargetype'
|
|
78
|
+
@change="$parent.$parent.setTypename"
|
|
79
|
+
close-on-select clear-button></v-select>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-2 form-group">
|
|
82
|
+
<label class="font_normal_body">品名规格</label>
|
|
83
|
+
<v-select v-model="model.f_typename"
|
|
84
|
+
placeholder='请选择'
|
|
85
|
+
condition="f_typename in {}"
|
|
86
|
+
:value.sync="model.f_typename" multiple
|
|
87
|
+
:options='$parent.$parent.typeNameList'
|
|
88
|
+
@change="$parent.$parent.setTypenumber"
|
|
89
|
+
close-on-select clear-button>
|
|
90
|
+
</v-select>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-sm-2 form-group">
|
|
93
|
+
<label class="font_normal_body">型  号</label>
|
|
94
|
+
<v-select v-model="model.f_typenumber"
|
|
95
|
+
placeholder='请选择'
|
|
96
|
+
condition="f_typenumber = '{}'"
|
|
97
|
+
:value.sync="model.f_typenumber"
|
|
98
|
+
:options='$parent.$parent.typenumberList'
|
|
99
|
+
close-on-select clear-button>
|
|
100
|
+
</v-select>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="col-sm-2 form-group">
|
|
103
|
+
<label class="font_normal_body">表  号</label>
|
|
104
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
105
|
+
condition="f_meternumber = '{}'" placeholder='表号'>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="col-sm-2 form-group">
|
|
108
|
+
<label class="font_normal_body">卡  号</label>
|
|
109
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
|
|
110
|
+
condition="f_card_id = '{}'" placeholder='卡号'>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="col-sm-2 form-group">
|
|
113
|
+
<label class="font_normal_body">用户类型</label>
|
|
114
|
+
<v-select id="f_user_type"
|
|
115
|
+
v-model="model.f_user_type"
|
|
116
|
+
placeholder='请选择'
|
|
117
|
+
condition="f_user_type ='{}'"
|
|
118
|
+
:value.sync="model.f_user_type"
|
|
119
|
+
@change="$parent.$parent.userTypeChange(model.f_user_type)"
|
|
120
|
+
:options='$parent.$parent.userTypes'
|
|
121
|
+
close-on-select clear-button></v-select>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="col-sm-2 form-group">
|
|
124
|
+
<label class="font_normal_body">用气性质</label>
|
|
125
|
+
<v-select id="f_gasproperties"
|
|
126
|
+
v-model="model.f_gasproperties"
|
|
127
|
+
placeholder='请选择'
|
|
128
|
+
condition="f_gasproperties ='{}'"
|
|
129
|
+
:value.sync="model.f_gasproperties"
|
|
130
|
+
:options='$parent.$parent.gasproperties'
|
|
131
|
+
close-on-select clear-button></v-select>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="col-sm-2 form-group">
|
|
134
|
+
<label class="font_normal_body">收费状态</label>
|
|
135
|
+
<v-select id="f_state"
|
|
136
|
+
v-model="model.f_state"
|
|
137
|
+
placeholder='请选择'
|
|
138
|
+
condition="f_state in {}"
|
|
139
|
+
multiple="true"
|
|
140
|
+
:value.sync="model.f_state"
|
|
141
|
+
:options='$parent.$parent.chargeState'
|
|
142
|
+
close-on-select clear-button>
|
|
143
|
+
</v-select>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<div class="col-sm-2 form-group">
|
|
147
|
+
<label class="font_normal_body">付款方式</label>
|
|
148
|
+
<v-select id="f_payment"
|
|
149
|
+
v-model="model.f_payment"
|
|
150
|
+
placeholder='请选择'
|
|
151
|
+
condition="f_payment in {}"
|
|
152
|
+
multiple="true"
|
|
153
|
+
:value.sync="model.f_payment"
|
|
154
|
+
:options='$parent.$parent.payments'
|
|
155
|
+
close-on-select clear-button>
|
|
156
|
+
</v-select>
|
|
157
|
+
</div>
|
|
158
|
+
<div class="col-sm-2 form-group">
|
|
159
|
+
<label class="font_normal_body">服务人员</label>
|
|
160
|
+
<v-select id="f_service_person"
|
|
161
|
+
v-model="model.f_service_person"
|
|
162
|
+
placeholder='请选择'
|
|
163
|
+
condition="f_service_person ='{}'"
|
|
164
|
+
:value.sync="model.f_service_person"
|
|
165
|
+
:options='$parent.$parent.services'
|
|
166
|
+
close-on-select clear-button>
|
|
167
|
+
</v-select>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="col-sm-2 form-group">
|
|
170
|
+
<label class="font_normal_body">气表类型</label>
|
|
171
|
+
<v-select :value.sync="model.f_meter_classify" multiple
|
|
172
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
|
|
173
|
+
condition="f_meter_classify in {}"
|
|
174
|
+
close-on-select></v-select>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="col-sm-2 form-group">
|
|
177
|
+
<label class="font_normal_body">气表品牌</label>
|
|
178
|
+
<v-select :value.sync="model.f_meter_brand" multiple
|
|
179
|
+
v-model="model.f_meter_brand"
|
|
180
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
181
|
+
condition="f_meter_brand in {}"
|
|
182
|
+
close-on-select></v-select>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="col-sm-2 form-group">
|
|
185
|
+
<label class="font_normal_body" title="收据起始编号">收据票号</label>
|
|
186
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_start"
|
|
187
|
+
condition="f_bill_number >= '{}'" placeholder="收据起始编号">
|
|
188
|
+
</div>
|
|
189
|
+
<div class="col-sm-2 form-group">
|
|
190
|
+
<label class="font_normal_body" title="收据终止编号">收据票号</label>
|
|
191
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_bill_number_end"
|
|
192
|
+
condition="f_bill_number <= '{}'" placeholder="收据终止编号">
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</criteria>
|
|
197
|
+
|
|
198
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
199
|
+
<template partial='head'>
|
|
200
|
+
<tr>
|
|
201
|
+
<th>
|
|
202
|
+
<!-- <nobr>客户编号</nobr>-->
|
|
203
|
+
<data-order field="f_userinfo_code" name="客户编号"
|
|
204
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
205
|
+
</th>
|
|
206
|
+
<th>
|
|
207
|
+
<nobr>档案编号</nobr>
|
|
208
|
+
</th>
|
|
209
|
+
<th>
|
|
210
|
+
<nobr>收费编号</nobr>
|
|
211
|
+
</th>
|
|
212
|
+
<th>
|
|
213
|
+
<nobr>客户名称</nobr>
|
|
214
|
+
</th>
|
|
215
|
+
<th>
|
|
216
|
+
<nobr>身份证号</nobr>
|
|
217
|
+
</th>
|
|
218
|
+
<th>
|
|
219
|
+
<!-- <nobr>客户地址</nobr>-->
|
|
220
|
+
<data-order field="f_address" name="客户地址"
|
|
221
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
222
|
+
</th>
|
|
223
|
+
<th>
|
|
224
|
+
<nobr>表号</nobr>
|
|
225
|
+
</th>
|
|
226
|
+
<th>
|
|
227
|
+
<nobr>客户电话</nobr>
|
|
228
|
+
</th>
|
|
229
|
+
<th>
|
|
230
|
+
<nobr>气表类型</nobr>
|
|
231
|
+
</th>
|
|
232
|
+
<th>
|
|
233
|
+
<nobr>气表品牌</nobr>
|
|
234
|
+
</th>
|
|
235
|
+
<th>
|
|
236
|
+
<nobr>卡号</nobr>
|
|
237
|
+
</th>
|
|
238
|
+
<th>
|
|
239
|
+
<nobr>收据票号</nobr>
|
|
240
|
+
</th>
|
|
241
|
+
|
|
242
|
+
<th>
|
|
243
|
+
<nobr>收费类型</nobr>
|
|
244
|
+
</th>
|
|
245
|
+
<th>
|
|
246
|
+
<nobr>品名规格</nobr>
|
|
247
|
+
</th>
|
|
248
|
+
<th>
|
|
249
|
+
<nobr>型号</nobr>
|
|
250
|
+
</th>
|
|
251
|
+
<th>
|
|
252
|
+
<nobr>单价</nobr>
|
|
253
|
+
</th>
|
|
254
|
+
<th>
|
|
255
|
+
<nobr>数量</nobr>
|
|
256
|
+
</th>
|
|
257
|
+
<th>
|
|
258
|
+
<nobr>收款</nobr>
|
|
259
|
+
</th>
|
|
260
|
+
<th>
|
|
261
|
+
<nobr>付款方式</nobr>
|
|
262
|
+
</th>
|
|
263
|
+
<th>
|
|
264
|
+
<nobr>状态</nobr>
|
|
265
|
+
</th>
|
|
266
|
+
<th>
|
|
267
|
+
<!-- <nobr>收费日期</nobr>-->
|
|
268
|
+
<data-order field="f_operate_date" name="收费日期"
|
|
269
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
270
|
+
</th>
|
|
271
|
+
<th>
|
|
272
|
+
<nobr>服务人员</nobr>
|
|
273
|
+
</th>
|
|
274
|
+
<th>
|
|
275
|
+
<nobr>备注</nobr>
|
|
276
|
+
</th>
|
|
277
|
+
<th>
|
|
278
|
+
<nobr>人员</nobr>
|
|
279
|
+
</th>
|
|
280
|
+
<th>
|
|
281
|
+
<nobr>部门</nobr>
|
|
282
|
+
</th>
|
|
283
|
+
<th>
|
|
284
|
+
<nobr>公司</nobr>
|
|
285
|
+
</th>
|
|
286
|
+
<th><nobr>附件</nobr></th>
|
|
287
|
+
<!--<th><nobr>查看详情</nobr></th>-->
|
|
288
|
+
</tr>
|
|
289
|
+
</template>
|
|
290
|
+
<template partial='body'>
|
|
291
|
+
<td style="text-align: center;">
|
|
292
|
+
<nobr>
|
|
293
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr>
|
|
294
|
+
</td>
|
|
295
|
+
<td style="text-align: center;">
|
|
296
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
297
|
+
</td>
|
|
298
|
+
<td style="text-align: center;">
|
|
299
|
+
<nobr>{{row.id}}</nobr>
|
|
300
|
+
</td>
|
|
301
|
+
<td style="text-align: center;">
|
|
302
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
303
|
+
</td>
|
|
304
|
+
<td style="text-align: center;">
|
|
305
|
+
<nobr>{{row.f_idnumber}}</nobr>
|
|
306
|
+
</td>
|
|
307
|
+
<td style="text-align: center;">
|
|
308
|
+
<nobr>{{row.f_address}}</nobr>
|
|
309
|
+
</td>
|
|
310
|
+
<td style="text-align: center;">
|
|
311
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
312
|
+
</td>
|
|
313
|
+
<td style="text-align: center;">
|
|
314
|
+
<nobr>{{row.f_user_phone}}</nobr>
|
|
315
|
+
</td>
|
|
316
|
+
<td style="text-align: center;">
|
|
317
|
+
<nobr>{{row.f_meter_classify}}</nobr>
|
|
318
|
+
</td>
|
|
319
|
+
<td style="text-align: center;">
|
|
320
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
321
|
+
</td>
|
|
322
|
+
<td style="text-align: center;">
|
|
323
|
+
<nobr>{{row.f_card_id}}</nobr>
|
|
324
|
+
</td>
|
|
325
|
+
|
|
326
|
+
<td style="text-align: center;">
|
|
327
|
+
<nobr>{{row.f_bill_number}}</nobr>
|
|
328
|
+
</td>
|
|
329
|
+
<td style="text-align: center;">
|
|
330
|
+
<nobr>{{row.f_brand_spec}}</nobr>
|
|
331
|
+
</td>
|
|
332
|
+
<td style="text-align: center;">
|
|
333
|
+
<nobr>{{row.f_typename}}</nobr>
|
|
334
|
+
</td>
|
|
335
|
+
<td style="text-align: center;">
|
|
336
|
+
<nobr>{{row.f_typenumber}}</nobr>
|
|
337
|
+
</td>
|
|
338
|
+
<td style="text-align: center;">
|
|
339
|
+
<nobr>{{row.f_unitprice}}</nobr>
|
|
340
|
+
</td>
|
|
341
|
+
<td style="text-align: center;">
|
|
342
|
+
<nobr>{{row.f_number}}</nobr>
|
|
343
|
+
</td>
|
|
344
|
+
<td style="text-align: center;">
|
|
345
|
+
<nobr>{{row.f_money}}</nobr>
|
|
346
|
+
</td>
|
|
347
|
+
<td style="text-align: center;">
|
|
348
|
+
<nobr>{{row.f_payment}}</nobr>
|
|
349
|
+
</td>
|
|
350
|
+
<td style="text-align: center;">
|
|
351
|
+
<nobr>{{row.f_state}}</nobr>
|
|
352
|
+
</td>
|
|
353
|
+
<td style="text-align: center;">
|
|
354
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
355
|
+
</td>
|
|
356
|
+
<td style="text-align: center;">
|
|
357
|
+
<nobr>{{row.f_service_person}}</nobr>
|
|
358
|
+
</td>
|
|
359
|
+
<td style="text-align: center;">
|
|
360
|
+
<nobr>{{row.f_comments}}</nobr>
|
|
361
|
+
</td>
|
|
362
|
+
<td style="text-align: center;">
|
|
363
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
364
|
+
</td>
|
|
365
|
+
<td style="text-align: center;">
|
|
366
|
+
<nobr>{{row.f_depname}}</nobr>
|
|
367
|
+
</td>
|
|
368
|
+
<td style="text-align: center;">
|
|
369
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
370
|
+
</td>
|
|
371
|
+
<td style="text-align: center;"><nobr>
|
|
372
|
+
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
|
|
373
|
+
</nobr></td>
|
|
374
|
+
<!--<td style="text-align: center;">-->
|
|
375
|
+
<!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
|
|
376
|
+
<!--</td>-->
|
|
377
|
+
</template>
|
|
378
|
+
<template partial='foot'></template>
|
|
379
|
+
</data-grid>
|
|
380
|
+
|
|
381
|
+
</criteria-paged>
|
|
382
|
+
|
|
383
|
+
<table class="table-hover">
|
|
384
|
+
<tr style="position: relative" class="table-bordered">
|
|
385
|
+
<td
|
|
386
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
387
|
+
汇总信息
|
|
388
|
+
</td>
|
|
389
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
390
|
+
收款合计: {{sumsmodel.f_money}}
|
|
391
|
+
</td>
|
|
392
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
393
|
+
总户数合计: {{sumsmodel.hushu}}
|
|
394
|
+
</td>
|
|
395
|
+
</tr>
|
|
396
|
+
</table>
|
|
397
|
+
|
|
398
|
+
</div>
|
|
399
|
+
<div class="flex" v-if="show">
|
|
400
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
<modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
404
|
+
<article slot="modal-body">
|
|
405
|
+
<upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费" :isremark="false" style="width:auto" ></upload>
|
|
406
|
+
</article>
|
|
407
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
408
|
+
</footer>
|
|
409
|
+
</modal>
|
|
410
|
+
</div>
|
|
411
|
+
|
|
412
|
+
<modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
|
|
413
|
+
<article slot="modal-body" class="modal-body">
|
|
414
|
+
<other-charge-detail-query :otherchargeid="otherchargeid" ></other-charge-detail-query>
|
|
415
|
+
</article>
|
|
416
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
417
|
+
</footer>
|
|
418
|
+
</modal>
|
|
419
|
+
|
|
420
|
+
</template>
|
|
421
|
+
|
|
422
|
+
<script>
|
|
423
|
+
import {PagedList,HttpResetClass} from 'vue-client'
|
|
424
|
+
import defaultPrint from './config/DefaultPrint'
|
|
425
|
+
import exportConfig from './config/exportConfig'
|
|
426
|
+
import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
|
|
427
|
+
|
|
428
|
+
let readySomething = async function (self) {
|
|
429
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
430
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
431
|
+
// self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
432
|
+
// self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
433
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
434
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
435
|
+
await self.$MagLoadParams.loadParam()
|
|
436
|
+
|
|
437
|
+
self.initParams()
|
|
438
|
+
self.initSecuritypersons()
|
|
439
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
440
|
+
}
|
|
441
|
+
export default {
|
|
442
|
+
components: {
|
|
443
|
+
OtherChargeDetailQuery
|
|
444
|
+
},
|
|
445
|
+
props:['data'],
|
|
446
|
+
title: '其他收费查询',
|
|
447
|
+
data() {
|
|
448
|
+
return {
|
|
449
|
+
data: {},
|
|
450
|
+
other:[],
|
|
451
|
+
footer:[],
|
|
452
|
+
model: new PagedList('api/af-revenue/sql/otherChargeQuery', 20, {orderitem: this.orderitem?`${this.orderitem}`: " 'f_operate_date desc'"}, {f_money: 0,hushu:0}),
|
|
453
|
+
criteriaShow: false,
|
|
454
|
+
orgCondtionStr: '',
|
|
455
|
+
modelval: [],
|
|
456
|
+
printshow: false,
|
|
457
|
+
all: false,
|
|
458
|
+
fields: {},
|
|
459
|
+
config: {
|
|
460
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_brand_spec', 'f_typename', 'f_typenumber', 'f_unitprice', 'f_number', 'f_money','f_operate_date', 'f_operator']
|
|
461
|
+
},
|
|
462
|
+
//排序
|
|
463
|
+
orderitem:'f_operate_date desc',
|
|
464
|
+
orderFields: {
|
|
465
|
+
f_operate_date: 'no'
|
|
466
|
+
},
|
|
467
|
+
//默认打印列
|
|
468
|
+
defaultfield: [],
|
|
469
|
+
thead: '',
|
|
470
|
+
tfoot: '',
|
|
471
|
+
initres: {
|
|
472
|
+
org:[this.$login.f.orgid],
|
|
473
|
+
dep:[],
|
|
474
|
+
user:[],
|
|
475
|
+
},
|
|
476
|
+
show:false,
|
|
477
|
+
showdetail:false,
|
|
478
|
+
otherchargeid:'',
|
|
479
|
+
rowdata:{},
|
|
480
|
+
meterbrands: [],
|
|
481
|
+
services:[],
|
|
482
|
+
//合计数据
|
|
483
|
+
sumsmodel: {},
|
|
484
|
+
showupload:false,
|
|
485
|
+
selected:{},
|
|
486
|
+
// 用气性质
|
|
487
|
+
gasproperties: [],
|
|
488
|
+
// 品名规格
|
|
489
|
+
typeNameList: [],
|
|
490
|
+
// 型号
|
|
491
|
+
typenumberList: []
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
ready() {
|
|
495
|
+
readySomething(this).then(() => {
|
|
496
|
+
this.$emit('ready')
|
|
497
|
+
}).catch((error) => {
|
|
498
|
+
this.$emit('error', error)
|
|
499
|
+
})
|
|
500
|
+
},
|
|
501
|
+
methods: {
|
|
502
|
+
view(row){
|
|
503
|
+
this.showupload = true
|
|
504
|
+
this.selected= row
|
|
505
|
+
},
|
|
506
|
+
initParams() {
|
|
507
|
+
// 初始化气表品牌
|
|
508
|
+
let brandArr = []
|
|
509
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
510
|
+
let temp = {}
|
|
511
|
+
temp.label = item.label
|
|
512
|
+
temp.value = item.value.f_meter_brand
|
|
513
|
+
brandArr.push(temp)
|
|
514
|
+
})
|
|
515
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
516
|
+
},
|
|
517
|
+
// 初始化安检人
|
|
518
|
+
initSecuritypersons () {
|
|
519
|
+
let origin = this.$appdata.getSingleValue('服务人员来源')
|
|
520
|
+
if (origin) {
|
|
521
|
+
try {
|
|
522
|
+
this.services = []
|
|
523
|
+
let http = new HttpResetClass()
|
|
524
|
+
http.load('post', '/rs/search', {
|
|
525
|
+
source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
|
|
526
|
+
userid: this.$login.f.id
|
|
527
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
528
|
+
console.log('获取安检人员', res.data)
|
|
529
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
530
|
+
this.services.push({label: res.data[i].name, value: res.data[i].name})
|
|
531
|
+
}
|
|
532
|
+
})
|
|
533
|
+
} catch (e) {
|
|
534
|
+
console.log('获取安检人员失败')
|
|
535
|
+
}
|
|
536
|
+
}else {
|
|
537
|
+
this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
getotherfooter(){
|
|
541
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
542
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
543
|
+
this.other=[];
|
|
544
|
+
this.footer=[];
|
|
545
|
+
let exportdata = this.getCondition;
|
|
546
|
+
let otherInData=[];
|
|
547
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
548
|
+
let footerData=[],exportfield=this.getfield;
|
|
549
|
+
footerData.push("合计");
|
|
550
|
+
let self = this;
|
|
551
|
+
for(var field in self.sumsmodel){
|
|
552
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
553
|
+
}
|
|
554
|
+
this.footer.push(footerData);
|
|
555
|
+
this.other.push(otherInData);
|
|
556
|
+
},
|
|
557
|
+
search(){
|
|
558
|
+
this.$refs.paged.$refs.cri.search()
|
|
559
|
+
},
|
|
560
|
+
async selfSearch(args) {
|
|
561
|
+
if (this.data) {
|
|
562
|
+
this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
|
|
563
|
+
this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
|
|
564
|
+
}
|
|
565
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
566
|
+
await this.model.search(args.condition, args.model)
|
|
567
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
568
|
+
this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
|
|
569
|
+
if(this.sumsmodel.hushu===null){
|
|
570
|
+
this.sumsmodel.hushu = 0
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
clear() {
|
|
574
|
+
//清空部门和人员
|
|
575
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
576
|
+
//部门和人员变为全选
|
|
577
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
578
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
579
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
580
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
581
|
+
})
|
|
582
|
+
},
|
|
583
|
+
show() {
|
|
584
|
+
this.criteriaShow = true
|
|
585
|
+
},
|
|
586
|
+
hidden() {
|
|
587
|
+
this.criteriaShow = !this.criteriaShow
|
|
588
|
+
},
|
|
589
|
+
getRes(obj) {
|
|
590
|
+
this.orgCondtionStr = obj
|
|
591
|
+
},
|
|
592
|
+
cancel() {
|
|
593
|
+
this.show = false
|
|
594
|
+
},
|
|
595
|
+
dealmsg(val) {
|
|
596
|
+
console.log('---------------dealmsg')
|
|
597
|
+
this.rowdata=val
|
|
598
|
+
this.show=true
|
|
599
|
+
val.model = this.model.model
|
|
600
|
+
this.$dispatch('deal-msg', val)
|
|
601
|
+
},
|
|
602
|
+
stamp() {
|
|
603
|
+
this.all = false
|
|
604
|
+
//默认选择要打印的列
|
|
605
|
+
this.modelval = defaultPrint.config
|
|
606
|
+
this.fields = this.getfield
|
|
607
|
+
console.log('所有打印字段', this.fields)
|
|
608
|
+
this.printshow = true
|
|
609
|
+
this.put()
|
|
610
|
+
},
|
|
611
|
+
put() {
|
|
612
|
+
// 对Modelval进行排序
|
|
613
|
+
this.sortModelval()
|
|
614
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
|
|
615
|
+
for (let key of this.modelval) {
|
|
616
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
617
|
+
}
|
|
618
|
+
this.thead += '</tr>'
|
|
619
|
+
},
|
|
620
|
+
print() {
|
|
621
|
+
this.$refs.print.PrintAsFile()
|
|
622
|
+
this.printshow = false
|
|
623
|
+
},
|
|
624
|
+
close() {
|
|
625
|
+
this.printshow = false
|
|
626
|
+
this.all = false
|
|
627
|
+
},
|
|
628
|
+
// 对选择的列进行排序
|
|
629
|
+
sortModelval() {
|
|
630
|
+
let sortModel = []
|
|
631
|
+
Object.keys(this.fields).forEach((key) => {
|
|
632
|
+
if (this.modelval.includes(key)) {
|
|
633
|
+
sortModel.push(key)
|
|
634
|
+
}
|
|
635
|
+
})
|
|
636
|
+
this.modelval = sortModel
|
|
637
|
+
console.log('选择的打印的字段', this.modelval)
|
|
638
|
+
},
|
|
639
|
+
showchargedetail(row){
|
|
640
|
+
this.showdetail=true
|
|
641
|
+
this.otherchargeid=row.id
|
|
642
|
+
},
|
|
643
|
+
userTypeChange (f_user_type) {
|
|
644
|
+
this.gasproperties = []
|
|
645
|
+
if (f_user_type) {
|
|
646
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
647
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
648
|
+
} else {
|
|
649
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
setTypename (val) {
|
|
653
|
+
this.typenumberList = []
|
|
654
|
+
this.typeNameList = this.$appdata.getParam(val)
|
|
655
|
+
},
|
|
656
|
+
setTypenumber (val) {
|
|
657
|
+
this.typenumberList = this.$appdata.getParam(val)
|
|
658
|
+
},
|
|
659
|
+
sort (field, rule) {
|
|
660
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
661
|
+
for (let key in this.orderFields) {
|
|
662
|
+
if (key === field) {
|
|
663
|
+
this.orderFields[key] = rule
|
|
664
|
+
} else {
|
|
665
|
+
this.orderFields[key] = 'no'
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
// 如果新规则不排序,还原为默认排序
|
|
669
|
+
if (rule === 'no') {
|
|
670
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
671
|
+
} else {
|
|
672
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
this.search()
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
watch: {
|
|
679
|
+
'all'(val) {
|
|
680
|
+
if (val) {
|
|
681
|
+
this.modelval = this.bodyData
|
|
682
|
+
} else {
|
|
683
|
+
this.modelval = defaultPrint.config
|
|
684
|
+
this.put()
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
'modelval.length'() {
|
|
688
|
+
this.put()
|
|
689
|
+
},
|
|
690
|
+
sumsmodel:{
|
|
691
|
+
handler: function(val) {
|
|
692
|
+
this.getotherfooter();
|
|
693
|
+
},
|
|
694
|
+
deep: true
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
computed: {
|
|
698
|
+
getCondition() {
|
|
699
|
+
return {
|
|
700
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
701
|
+
orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
|
|
702
|
+
},
|
|
703
|
+
service_person() {
|
|
704
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
|
|
705
|
+
},
|
|
706
|
+
getfield() {
|
|
707
|
+
return exportConfig.otherchargeConfig
|
|
708
|
+
},
|
|
709
|
+
defaultexport(){
|
|
710
|
+
return exportConfig.otherchargeExportConfig
|
|
711
|
+
},
|
|
712
|
+
chargetype() {
|
|
713
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('品名及规格')]
|
|
714
|
+
},
|
|
715
|
+
userTypes() {
|
|
716
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
717
|
+
},
|
|
718
|
+
chargeState() {
|
|
719
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
720
|
+
},
|
|
721
|
+
metertypes() {
|
|
722
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
723
|
+
},
|
|
724
|
+
payments() {
|
|
725
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
</script>
|