manage-client 3.3.177 → 3.3.178
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
|
@@ -316,9 +316,17 @@
|
|
|
316
316
|
<v-select :value.sync="model.f_terminal_name" multiple
|
|
317
317
|
v-model="model.f_terminal_name"
|
|
318
318
|
:options='$parent.$parent.posEquipment' placeholder='请选择'
|
|
319
|
-
condition="
|
|
319
|
+
condition="f_terminal_name in {}"
|
|
320
320
|
close-on-select></v-select>
|
|
321
321
|
</div>
|
|
322
|
+
<div class="col-sm-2 form-group">
|
|
323
|
+
<label for="endDate" class="font_normal_body">操作人员</label>
|
|
324
|
+
<input type="text" style="width:60%"
|
|
325
|
+
class="input_search"
|
|
326
|
+
v-model="model.f_operator"
|
|
327
|
+
condition="f_operator like '%{}%'"
|
|
328
|
+
placeholder='请输入操作人员'>
|
|
329
|
+
</div>
|
|
322
330
|
</div>
|
|
323
331
|
</div>
|
|
324
332
|
</criteria>
|
|
@@ -1048,6 +1056,7 @@
|
|
|
1048
1056
|
if(this.IdCardInfo!=''){
|
|
1049
1057
|
args.condition +=` and f_idnumber='${this.IdCardInfo}'`
|
|
1050
1058
|
}
|
|
1059
|
+
this.condition = args.condition
|
|
1051
1060
|
this.model.search(args.condition, args.model)
|
|
1052
1061
|
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
|
|
1053
1062
|
this.card=''
|
|
@@ -300,6 +300,14 @@
|
|
|
300
300
|
condition="f_result_state = '{}'"
|
|
301
301
|
close-on-select></v-select>
|
|
302
302
|
</div>
|
|
303
|
+
<div class="col-sm-2 form-group">
|
|
304
|
+
<label for="endDate" class="font_normal_body">操作人员</label>
|
|
305
|
+
<input type="text" style="width:60%"
|
|
306
|
+
class="input_search"
|
|
307
|
+
v-model="model.f_operator"
|
|
308
|
+
condition="f_operator like '%{}%'"
|
|
309
|
+
placeholder='请输入操作人员'>
|
|
310
|
+
</div>
|
|
303
311
|
</div>
|
|
304
312
|
</div>
|
|
305
313
|
</criteria>
|
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row" >
|
|
3
|
+
<div class="basic-main" @keyup.enter="search" >
|
|
4
|
+
<div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width:60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
15
|
+
:show-reset-button="true"
|
|
16
|
+
condition="f_operate_date >= '{}'">
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label class="font_normal_body">结束日期</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width:60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
25
|
+
:show-reset-button="true"
|
|
26
|
+
condition="f_operate_date <= '{}'">
|
|
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 like '%{}%' " placeholder="客户编号">
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-2 form-group">
|
|
35
|
+
<label class="font_normal_body" title="旧客户编号">档案编号</label>
|
|
36
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
37
|
+
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<!--
|
|
42
|
+
-->
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
<div class="span" style="float:right;">
|
|
46
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
47
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
48
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
49
|
+
|
|
50
|
+
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
51
|
+
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
52
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出'
|
|
53
|
+
:choose-col="true">
|
|
54
|
+
</export-excel>
|
|
55
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
56
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
57
|
+
titletable="换表记录"
|
|
58
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
59
|
+
<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>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
63
|
+
<res-select-group :initres="$parent.$parent.initres" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
64
|
+
<div class="col-sm-2 form-group">
|
|
65
|
+
<label class="font_normal_body">客户名称</label>
|
|
66
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
67
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
68
|
+
</div>
|
|
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_user_phone"
|
|
72
|
+
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
73
|
+
</div>
|
|
74
|
+
<div class="col-sm-2 form-group">
|
|
75
|
+
<label class="font_normal_body">客户地址</label>
|
|
76
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
77
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-2 form-group">
|
|
80
|
+
<label class="font_normal_body">用户类型</label>
|
|
81
|
+
<v-select :value.sync="model.f_user_type"
|
|
82
|
+
v-model="model.f_user_type"
|
|
83
|
+
:options='$parent.$parent.userTypes' placeholder='请选择'
|
|
84
|
+
condition="f_user_type = '{}'"
|
|
85
|
+
close-on-select></v-select>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col-sm-2 form-group">
|
|
88
|
+
<label class="font_normal_body">新表品牌</label>
|
|
89
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
90
|
+
v-model="model.f_meter_brand"
|
|
91
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
92
|
+
condition="f_meter_brand = '{}'"
|
|
93
|
+
close-on-select></v-select>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="col-sm-2 form-group">
|
|
96
|
+
<label class="font_normal_body">旧表品牌</label>
|
|
97
|
+
<v-select :value.sync="model.f_meter_brand_old"
|
|
98
|
+
v-model="model.f_meter_brand_old"
|
|
99
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
100
|
+
condition="f_meter_brand_old = '{}'"
|
|
101
|
+
close-on-select></v-select>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="col-sm-2 form-group">
|
|
104
|
+
<label class="font_normal_body">换表类型</label>
|
|
105
|
+
<v-select :value.sync="model.f_type"
|
|
106
|
+
v-model="model.f_type"
|
|
107
|
+
:options='$parent.$parent.changeTypes' placeholder='请选择'
|
|
108
|
+
condition="f_type = '{}'"
|
|
109
|
+
close-on-select></v-select>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="col-sm-2 form-group">
|
|
112
|
+
<label class="font_normal_body">换 表 人</label>
|
|
113
|
+
<v-select :value.sync="model.f_change_operator"
|
|
114
|
+
v-model="model.f_change_operator"
|
|
115
|
+
:options='$parent.$parent.changePerson' placeholder='请选择'
|
|
116
|
+
condition="f_change_operator = '{}'"
|
|
117
|
+
close-on-select></v-select>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-2 form-group">
|
|
120
|
+
<label class="font_normal_body">卡  号</label>
|
|
121
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_card_id"
|
|
122
|
+
condition="f_card_id = '{}'" placeholder='卡号'>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="col-sm-2 form-group">
|
|
125
|
+
<label class="font_normal_body">换表状态</label>
|
|
126
|
+
<v-select :value.sync="model.f_state"
|
|
127
|
+
v-model="model.f_state"
|
|
128
|
+
:options='$parent.$parent.charge_state' placeholder='请选择'
|
|
129
|
+
condition="f_state = '{}'"
|
|
130
|
+
close-on-select></v-select>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="col-sm-2 form-group">
|
|
133
|
+
<label class="font_normal_body">旧表类型</label>
|
|
134
|
+
<v-select :value.sync="model.f_meter_type_old"
|
|
135
|
+
v-model="model.f_meter_type_old"
|
|
136
|
+
:options='$parent.$parent.meterClassify' placeholder='请选择'
|
|
137
|
+
condition="f_meter_type_old = '{}'"
|
|
138
|
+
close-on-select></v-select>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="col-sm-2 form-group">
|
|
141
|
+
<label class="font_normal_body">新表类型</label>
|
|
142
|
+
<v-select :value.sync="model.f_meter_type"
|
|
143
|
+
v-model="model.f_meter_type"
|
|
144
|
+
:options='$parent.$parent.meterClassify' placeholder='请选择'
|
|
145
|
+
condition="f_meter_type = '{}'"
|
|
146
|
+
close-on-select></v-select>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="col-sm-2 form-group">
|
|
149
|
+
<label class="font_normal_body">是否免费</label>
|
|
150
|
+
<v-select :value.sync="model.f_changemeter_fee"
|
|
151
|
+
v-model="model.f_changemeter_fee"
|
|
152
|
+
:options='$parent.$parent.changemeter_fee' placeholder='请选择'
|
|
153
|
+
condition="f_changemeter_fee {}"
|
|
154
|
+
close-on-select></v-select>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="col-sm-2 form-group">
|
|
157
|
+
<label class="font_normal_body">付款方式</label>
|
|
158
|
+
<v-select id="f_payment"
|
|
159
|
+
v-model="model.f_payment"
|
|
160
|
+
placeholder='请选择'
|
|
161
|
+
condition="f_payment ='{}'"
|
|
162
|
+
:value.sync="model.f_payment"
|
|
163
|
+
:options='$parent.$parent.payments'
|
|
164
|
+
close-on-select clear-button>
|
|
165
|
+
</v-select>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="col-sm-2 form-group">
|
|
168
|
+
<label class="font_normal_body">表  号</label>
|
|
169
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
170
|
+
condition="f_meternumber = '{}'" placeholder='表号'>
|
|
171
|
+
</div>
|
|
172
|
+
<div class="col-sm-2 form-group">
|
|
173
|
+
<label class="font_normal_body">表 封 号</label>
|
|
174
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
|
|
175
|
+
condition="f_metertitles = '{}'" placeholder='表封号'>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="col-sm-2 form-group">
|
|
178
|
+
<label class="font_normal_body">旧 表 号</label>
|
|
179
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber_old"
|
|
180
|
+
condition="f_meternumber_old = '{}'" placeholder='旧表号'>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="col-sm-2 form-group">
|
|
183
|
+
<label class="font_normal_body">旧 卡 号</label>
|
|
184
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_card_old"
|
|
185
|
+
condition="f_card_old = '{}'" placeholder='旧卡号'>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</criteria>
|
|
190
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid @dblclick="$parent.$parent.toBusiness">
|
|
191
|
+
<template partial='head'>
|
|
192
|
+
<tr>
|
|
193
|
+
<th>
|
|
194
|
+
<!--<nobr>客户编号</nobr>-->
|
|
195
|
+
<data-order field="f_userinfo_code" name="客户编号"
|
|
196
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
197
|
+
</th>
|
|
198
|
+
<th>
|
|
199
|
+
<nobr>客户名称</nobr>
|
|
200
|
+
</th>
|
|
201
|
+
<th>
|
|
202
|
+
<nobr>档案编号</nobr>
|
|
203
|
+
</th>
|
|
204
|
+
<th>
|
|
205
|
+
<nobr>付款方式</nobr>
|
|
206
|
+
</th>
|
|
207
|
+
<th>
|
|
208
|
+
<nobr>气表底数</nobr>
|
|
209
|
+
</th>
|
|
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
|
+
<data-order field="f_address" name="客户地址"
|
|
222
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
223
|
+
</th>
|
|
224
|
+
<th>
|
|
225
|
+
<nobr>换表类型</nobr>
|
|
226
|
+
</th>
|
|
227
|
+
<th>
|
|
228
|
+
<nobr>换表费</nobr>
|
|
229
|
+
</th>
|
|
230
|
+
<th>
|
|
231
|
+
<nobr>旧表号</nobr>
|
|
232
|
+
</th>
|
|
233
|
+
<th>
|
|
234
|
+
<nobr>新表号</nobr>
|
|
235
|
+
</th>
|
|
236
|
+
<th>
|
|
237
|
+
<nobr>表封号</nobr>
|
|
238
|
+
</th>
|
|
239
|
+
<th>
|
|
240
|
+
<nobr>旧阶梯累计</nobr>
|
|
241
|
+
</th>
|
|
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
|
+
</th>
|
|
269
|
+
<th>
|
|
270
|
+
<!-- <nobr>换表日期</nobr>-->
|
|
271
|
+
<data-order field="f_operate_date" name="换表日期"
|
|
272
|
+
:order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
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><nobr>旧表类型</nobr></th>
|
|
284
|
+
<th><nobr>新表类型</nobr></th>
|
|
285
|
+
<th><nobr>用户类型</nobr></th>
|
|
286
|
+
<th><nobr>附件</nobr></th>
|
|
287
|
+
</tr>
|
|
288
|
+
</template>
|
|
289
|
+
<template partial='body'>
|
|
290
|
+
<td style="text-align: center;"><nobr>
|
|
291
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
292
|
+
</nobr> </td>
|
|
293
|
+
<td style="text-align: center;">
|
|
294
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
295
|
+
</td>
|
|
296
|
+
<td style="text-align: center;">
|
|
297
|
+
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
298
|
+
</td>
|
|
299
|
+
<td style="text-align: center;">
|
|
300
|
+
<nobr>{{row.f_payment}}</nobr>
|
|
301
|
+
</td>
|
|
302
|
+
<td style="text-align: center;">
|
|
303
|
+
<nobr>{{row.f_meter_base}}</nobr>
|
|
304
|
+
</td>
|
|
305
|
+
<td style="text-align: center;">
|
|
306
|
+
<nobr>{{row.f_balance_amount}}</nobr>
|
|
307
|
+
</td>
|
|
308
|
+
<td style="text-align: center;">
|
|
309
|
+
<nobr>{{row.leigougas}}</nobr>
|
|
310
|
+
</td>
|
|
311
|
+
<td style="text-align: center;">
|
|
312
|
+
<nobr>{{row.leigoumoney}}</nobr>
|
|
313
|
+
</td>
|
|
314
|
+
<td style="text-align: center;">
|
|
315
|
+
<nobr>{{row.f_address}}</nobr>
|
|
316
|
+
</td>
|
|
317
|
+
|
|
318
|
+
<td style="text-align: center;">
|
|
319
|
+
<nobr>{{row.f_type}}</nobr>
|
|
320
|
+
</td>
|
|
321
|
+
<td style="text-align: center;">
|
|
322
|
+
<nobr>{{row.f_changemeter_fee}}</nobr>
|
|
323
|
+
</td>
|
|
324
|
+
<td style="text-align: center;">
|
|
325
|
+
<nobr>{{row.f_meternumber_old}}</nobr>
|
|
326
|
+
</td>
|
|
327
|
+
<td style="text-align: center;">
|
|
328
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
329
|
+
</td>
|
|
330
|
+
<td style="text-align: center;">
|
|
331
|
+
<nobr>{{row.f_metertitles}}</nobr>
|
|
332
|
+
</td>
|
|
333
|
+
<td style="text-align: center;">
|
|
334
|
+
<nobr>{{row.f_ladder_sync}}</nobr>
|
|
335
|
+
</td>
|
|
336
|
+
<td style="text-align: center;">
|
|
337
|
+
<nobr>{{row.f_stair_use}}</nobr>
|
|
338
|
+
</td>
|
|
339
|
+
<td style="text-align: center;">
|
|
340
|
+
<nobr>{{row.f_meter_brand_old}}</nobr>
|
|
341
|
+
</td>
|
|
342
|
+
<td style="text-align: center;">
|
|
343
|
+
<nobr>{{row.f_meter_brand}}</nobr>
|
|
344
|
+
</td>
|
|
345
|
+
<td style="text-align: center;">
|
|
346
|
+
<nobr>{{row.f_remanent_gas}}</nobr>
|
|
347
|
+
</td>
|
|
348
|
+
<td style="text-align: center;">
|
|
349
|
+
<nobr>{{row.f_remanent_money}}</nobr>
|
|
350
|
+
</td>
|
|
351
|
+
<td style="text-align: center;">
|
|
352
|
+
<nobr>{{row.f_serial_number}}</nobr>
|
|
353
|
+
</td>
|
|
354
|
+
<td style="text-align: center;">
|
|
355
|
+
<nobr>{{row.f_comments}}</nobr>
|
|
356
|
+
</td>
|
|
357
|
+
<td style="text-align: center;">
|
|
358
|
+
<nobr>{{row.f_change_operator}}</nobr>
|
|
359
|
+
</td>
|
|
360
|
+
<td style="text-align: center;">
|
|
361
|
+
<nobr>{{row.f_state}}</nobr>
|
|
362
|
+
</td>
|
|
363
|
+
<td style="text-align: center;">
|
|
364
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
365
|
+
</td>
|
|
366
|
+
<td style="text-align: center;">
|
|
367
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
368
|
+
</td>
|
|
369
|
+
<td style="text-align: center;">
|
|
370
|
+
<nobr>{{row.f_depname}}</nobr>
|
|
371
|
+
</td>
|
|
372
|
+
<td style="text-align: center;">
|
|
373
|
+
<nobr>{{row.f_orgname}}</nobr>
|
|
374
|
+
</td>
|
|
375
|
+
<td style="text-align: center;">
|
|
376
|
+
<nobr>{{row.f_meter_type_old}}</nobr>
|
|
377
|
+
</td>
|
|
378
|
+
<td style="text-align: center;">
|
|
379
|
+
<nobr>{{row.f_meter_type}}</nobr>
|
|
380
|
+
</td>
|
|
381
|
+
<td style="text-align: center;">
|
|
382
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
383
|
+
</td>
|
|
384
|
+
<td style="text-align: center;"><nobr>
|
|
385
|
+
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
|
|
386
|
+
</nobr></td>
|
|
387
|
+
</template>
|
|
388
|
+
<template partial='foot'></template>
|
|
389
|
+
</data-grid>
|
|
390
|
+
</criteria-paged>
|
|
391
|
+
<table class="table-hover">
|
|
392
|
+
<tr style="position: relative" class="table-bordered">
|
|
393
|
+
<td
|
|
394
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
395
|
+
汇总信息
|
|
396
|
+
</td>
|
|
397
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
398
|
+
表上余额合计: {{sumsmodel.f_balance_amount}}
|
|
399
|
+
</td>
|
|
400
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
401
|
+
换表费合计: {{sumsmodel.f_changemeter_fee}}
|
|
402
|
+
</td>
|
|
403
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
404
|
+
补气量合计: {{sumsmodel.f_remanent_gas}}
|
|
405
|
+
</td>
|
|
406
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
407
|
+
补气金额合计: {{sumsmodel.f_remanent_money}}
|
|
408
|
+
</td>
|
|
409
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
410
|
+
户数合计: {{sumsmodel.hushu}}
|
|
411
|
+
</td>
|
|
412
|
+
</tr>
|
|
413
|
+
</table>
|
|
414
|
+
</div>
|
|
415
|
+
<div class="flex" v-if="show">
|
|
416
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
417
|
+
</div>
|
|
418
|
+
</div>
|
|
419
|
+
<modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
420
|
+
<article slot="modal-body">
|
|
421
|
+
<upload :blodid="selected.f_userinfo_id" v-ref:upload :isremark="false" fusetype="换表&清零" ></upload>
|
|
422
|
+
</article>
|
|
423
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
424
|
+
</footer>
|
|
425
|
+
</modal>
|
|
426
|
+
</div>
|
|
427
|
+
</template>
|
|
428
|
+
<script>
|
|
429
|
+
import {PagedList} from 'vue-client'
|
|
430
|
+
import defaultPrint from './config/DefaultPrint'
|
|
431
|
+
import exportConfig from './config/exportConfig'
|
|
432
|
+
let readySomething = async function (self) {
|
|
433
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
434
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
435
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
436
|
+
// self.$refs.paged.$refs.cri.search()
|
|
437
|
+
await self.$MagLoadParams.loadParam()
|
|
438
|
+
self.initParams()
|
|
439
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
440
|
+
}
|
|
441
|
+
export default {
|
|
442
|
+
props:['data'],
|
|
443
|
+
title: '换表查询',
|
|
444
|
+
data() {
|
|
445
|
+
return {
|
|
446
|
+
data: {},
|
|
447
|
+
other:[],
|
|
448
|
+
footer:[],
|
|
449
|
+
meterbrands: [],
|
|
450
|
+
pricenames: [],
|
|
451
|
+
model: new PagedList('api/af-revenue/sql/changeMeterQuery', 20, {orderitem: this.orderitem?'"' + this.orderitem + ' "':`'f_operate_date desc'`}, {f_balance_amount: 0,f_changemeter_fee: 0,f_remanent_money:0,f_remanent_gas:0,hushu:0}),
|
|
452
|
+
criteriaShow: false,
|
|
453
|
+
orgCondtionStr: '',
|
|
454
|
+
modelval: [],
|
|
455
|
+
printshow: false,
|
|
456
|
+
all: false,
|
|
457
|
+
fields: {},
|
|
458
|
+
initres: {
|
|
459
|
+
org:[this.$login.f.orgid],
|
|
460
|
+
dep:[],
|
|
461
|
+
user:[],
|
|
462
|
+
},
|
|
463
|
+
config: {
|
|
464
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_type', 'f_changemeter_fee', 'f_meternumber_old', 'f_meternumber', 'f_change_operator', 'f_state', 'f_operate_date']
|
|
465
|
+
},
|
|
466
|
+
//排序
|
|
467
|
+
orderitem:'f_operate_date desc',
|
|
468
|
+
orderFields: {
|
|
469
|
+
f_operate_date: 'no'
|
|
470
|
+
},
|
|
471
|
+
show:false,
|
|
472
|
+
rowdata:{},
|
|
473
|
+
showupload:false,
|
|
474
|
+
selected:{},
|
|
475
|
+
thead: '',
|
|
476
|
+
tfoot: '',
|
|
477
|
+
defaultfield: [],
|
|
478
|
+
// tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
|
|
479
|
+
//合计数据
|
|
480
|
+
sumsmodel: {},
|
|
481
|
+
changemeter_fee:[
|
|
482
|
+
{label: '全部', value: ''},
|
|
483
|
+
{label: '销售', value: '> 0'},
|
|
484
|
+
{label: '免费', value: '= 0'}
|
|
485
|
+
]
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
},
|
|
489
|
+
ready() {
|
|
490
|
+
this.startDate=this.$parent.startDate
|
|
491
|
+
this.endDate=this.$parent.endDate
|
|
492
|
+
readySomething(this)
|
|
493
|
+
},
|
|
494
|
+
methods: {
|
|
495
|
+
view(row){
|
|
496
|
+
this.showupload = true
|
|
497
|
+
this.selected= row
|
|
498
|
+
console.log("11",row)
|
|
499
|
+
},
|
|
500
|
+
search(){
|
|
501
|
+
this.$refs.paged.$refs.cri.search()
|
|
502
|
+
},
|
|
503
|
+
cancel() {
|
|
504
|
+
this.show = false
|
|
505
|
+
},
|
|
506
|
+
showmsg(obj){
|
|
507
|
+
this.rowdata=obj
|
|
508
|
+
this.show=true
|
|
509
|
+
},
|
|
510
|
+
getotherfooter () {
|
|
511
|
+
this.other = [];
|
|
512
|
+
this.footer = [];
|
|
513
|
+
let exportdata = this.getCondition;
|
|
514
|
+
let otherInData = [];
|
|
515
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
516
|
+
let footerData = [], exportfield = this.getfield;
|
|
517
|
+
footerData.push("合计");
|
|
518
|
+
let self = this;
|
|
519
|
+
for (var field in self.sumsmodel) {
|
|
520
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
521
|
+
}
|
|
522
|
+
this.footer.push(footerData);
|
|
523
|
+
this.other.push(otherInData);
|
|
524
|
+
},
|
|
525
|
+
async initParams() {
|
|
526
|
+
// 初始化气表品牌
|
|
527
|
+
let brandArr = []
|
|
528
|
+
await this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
529
|
+
let temp = {}
|
|
530
|
+
temp.label = item.label
|
|
531
|
+
temp.value = item.value.f_meter_brand
|
|
532
|
+
brandArr.push(temp)
|
|
533
|
+
})
|
|
534
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
535
|
+
},
|
|
536
|
+
async selfSearch(args) {
|
|
537
|
+
if (this.data) {
|
|
538
|
+
this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
|
|
539
|
+
this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
|
|
540
|
+
}
|
|
541
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
542
|
+
args.condition = args.condition.replace(/f_zones/, "f_slice_area")
|
|
543
|
+
await this.model.search(args.condition, args.model)
|
|
544
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
545
|
+
|
|
546
|
+
this.sumsmodel.hushu=[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
|
|
547
|
+
|
|
548
|
+
},
|
|
549
|
+
clear() {
|
|
550
|
+
//清空部门和人员
|
|
551
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
552
|
+
//部门和人员变为全选
|
|
553
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
554
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
555
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
556
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
557
|
+
})
|
|
558
|
+
},
|
|
559
|
+
show() {
|
|
560
|
+
this.criteriaShow = true
|
|
561
|
+
},
|
|
562
|
+
hidden() {
|
|
563
|
+
this.criteriaShow = !this.criteriaShow
|
|
564
|
+
},
|
|
565
|
+
getRes(obj) {
|
|
566
|
+
this.orgCondtionStr = obj
|
|
567
|
+
},
|
|
568
|
+
stamp() {
|
|
569
|
+
this.all = false
|
|
570
|
+
//默认选择要打印的列
|
|
571
|
+
this.modelval = defaultPrint.config
|
|
572
|
+
this.fields = this.getfield
|
|
573
|
+
this.printshow = true
|
|
574
|
+
this.put()
|
|
575
|
+
},
|
|
576
|
+
dealmsg(val) {
|
|
577
|
+
val.model = this.model.model
|
|
578
|
+
this.$dispatch('deal-msg', val)
|
|
579
|
+
},
|
|
580
|
+
put() {
|
|
581
|
+
// 对Modelval进行排序
|
|
582
|
+
this.sortModelval()
|
|
583
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
|
|
584
|
+
for (let key of this.modelval) {
|
|
585
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
586
|
+
}
|
|
587
|
+
this.thead += '</tr>'
|
|
588
|
+
},
|
|
589
|
+
print() {
|
|
590
|
+
this.$refs.print.PrintAsFile()
|
|
591
|
+
this.printshow = false
|
|
592
|
+
},
|
|
593
|
+
close() {
|
|
594
|
+
this.printshow = false
|
|
595
|
+
this.all = false
|
|
596
|
+
},
|
|
597
|
+
// 对选择的列进行排序
|
|
598
|
+
sortModelval() {
|
|
599
|
+
let sortModel = []
|
|
600
|
+
Object.keys(this.fields).forEach((key) => {
|
|
601
|
+
if (this.modelval.includes(key)) {
|
|
602
|
+
sortModel.push(key)
|
|
603
|
+
}
|
|
604
|
+
})
|
|
605
|
+
this.modelval = sortModel
|
|
606
|
+
console.log('选择的打印的字段', this.modelval)
|
|
607
|
+
},
|
|
608
|
+
sort (field, rule) {
|
|
609
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
610
|
+
for (let key in this.orderFields) {
|
|
611
|
+
if (key === field) {
|
|
612
|
+
this.orderFields[key] = rule
|
|
613
|
+
} else {
|
|
614
|
+
this.orderFields[key] = 'no'
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
// 如果新规则不排序,还原为默认排序
|
|
618
|
+
if (rule === 'no') {
|
|
619
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
620
|
+
} else {
|
|
621
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
this.search()
|
|
625
|
+
},
|
|
626
|
+
},
|
|
627
|
+
watch: {
|
|
628
|
+
'all'(val) {
|
|
629
|
+
if (val) {
|
|
630
|
+
this.modelval = this.bodyData
|
|
631
|
+
} else {
|
|
632
|
+
this.modelval = defaultPrint.config
|
|
633
|
+
this.put()
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
'modelval.length'() {
|
|
637
|
+
this.put()
|
|
638
|
+
},
|
|
639
|
+
sumsmodel:{
|
|
640
|
+
handler: function(val) {
|
|
641
|
+
this.getotherfooter();
|
|
642
|
+
},
|
|
643
|
+
deep: true
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
computed: {
|
|
647
|
+
// getstart(){
|
|
648
|
+
// return `开始时间:${this.$refs.paged.$refs.cri.model.startDate} 结束时间:${this.$refs.paged.$refs.cri.model.endDate}`
|
|
649
|
+
// },
|
|
650
|
+
getCondition() {
|
|
651
|
+
return {
|
|
652
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
653
|
+
orderitem: this.orderitem?`${this.orderitem}`: " f_operate_date desc"}
|
|
654
|
+
},
|
|
655
|
+
getfield() {
|
|
656
|
+
return exportConfig.changemeterConfig
|
|
657
|
+
},
|
|
658
|
+
changeTypes() {
|
|
659
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')]
|
|
660
|
+
},
|
|
661
|
+
userTypes() {
|
|
662
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
663
|
+
},
|
|
664
|
+
meterClassify() {
|
|
665
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
666
|
+
},
|
|
667
|
+
changePerson() {
|
|
668
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')]
|
|
669
|
+
},
|
|
670
|
+
charge_state() {
|
|
671
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
672
|
+
},
|
|
673
|
+
payments() {
|
|
674
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
</script>
|
|
679
|
+
<style scoped>
|
|
680
|
+
.showbottom{
|
|
681
|
+
height:95%
|
|
682
|
+
}
|
|
683
|
+
</style>
|
|
@@ -655,6 +655,8 @@ export default {
|
|
|
655
655
|
'f_changemeter_fee': '换表费',
|
|
656
656
|
'f_meternumber_old': '旧表号',
|
|
657
657
|
'f_meternumber': '新表号',
|
|
658
|
+
'f_ladder_sync': '旧阶梯累计',
|
|
659
|
+
'f_stair_use': '旧阶梯用量',
|
|
658
660
|
'f_meter_brand_old': '旧气表品牌',
|
|
659
661
|
'f_meter_brand': '新气表品牌',
|
|
660
662
|
'f_remanent_gas': '补气量',
|