manage-client 4.0.23 → 4.0.25
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
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
'f_meternumber': '表号','f_meter_brand': '气表品牌','f_instruct_type': '指令类型',
|
|
377
377
|
'f_instruct_state': '执行状态','f_receive_state': '执行结果','f_inputtor': '指令生成人','f_instruct_date': '指令时间',
|
|
378
378
|
'note':'操作内容','f_info':'操作原因','f_operator':'操作人(记录)','f_operate_date':'操作时间(记录)','f_operate_type':'操作类型','f_state':'操作状态',
|
|
379
|
-
'f_orgname': '组织机构'
|
|
379
|
+
'f_orgname': '组织机构', 'f_instruct_title': '指令标题'
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
382
|
instructtitle: [],
|
|
@@ -226,6 +226,7 @@
|
|
|
226
226
|
<th><nobr>生产日期</nobr></th>
|
|
227
227
|
<th><nobr>超期提醒</nobr></th>
|
|
228
228
|
<!--设备信息-->
|
|
229
|
+
<th><nobr>设备类型</nobr></th>
|
|
229
230
|
<th><nobr>设备名称</nobr></th>
|
|
230
231
|
<th><nobr>数量</nobr></th>
|
|
231
232
|
<th><nobr>生产日期</nobr></th>
|
|
@@ -360,6 +361,9 @@
|
|
|
360
361
|
</td>
|
|
361
362
|
|
|
362
363
|
<!--设备信息-->
|
|
364
|
+
<td style="text-align: center;">
|
|
365
|
+
<nobr>{{row.f_devices_type}}</nobr>
|
|
366
|
+
</td>
|
|
363
367
|
<td style="text-align: center;">
|
|
364
368
|
<nobr>{{row.f_brand}}</nobr>
|
|
365
369
|
</td>
|
|
@@ -0,0 +1,526 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex" :class="{showbottom:showbottomsum}" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
8
|
+
<div class="row" >
|
|
9
|
+
<div class="col-sm-2">
|
|
10
|
+
<label class="font_normal_body">组织机构</label>
|
|
11
|
+
<res-select :initresid="$parent.$parent.org"
|
|
12
|
+
style="width:60%"
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
:is-mul=false
|
|
15
|
+
restype='organization'>
|
|
16
|
+
</res-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2">
|
|
19
|
+
<label class="font_normal_body">客户编号</label>
|
|
20
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_userinfo_code" placeholder='客户编号'
|
|
21
|
+
condition="ss.f_userinfo_code = '{}'" v-next-el='f_userinfo_code' v-el:meternumber
|
|
22
|
+
>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-2">
|
|
25
|
+
<label class="font_normal_body">客户名称</label>
|
|
26
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_username" placeholder='客户名称'
|
|
27
|
+
condition="ss.f_user_name = '{}'" v-next-el='userid' v-el:username>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2">
|
|
30
|
+
<label class="font_normal_body">客户地址</label>
|
|
31
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_address" placeholder='客户地址'
|
|
32
|
+
condition="ss.f_address like '%{}%'" v-next-el='f_address' v-el:f_address>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="span" style="float:right;margin-top:10px">
|
|
35
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
36
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
|
|
37
|
+
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
38
|
+
:field="$parent.$parent.getfield"
|
|
39
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="gasStatisticsQuery" template-name='用气量统计表'
|
|
40
|
+
:choose-col="true"></export-excel>
|
|
41
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
|
|
42
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
43
|
+
titletable="缴费记录报表" :starthead="$parent.$parent.getstart"
|
|
44
|
+
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
45
|
+
<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>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
49
|
+
<div class="col-sm-2">
|
|
50
|
+
<label class="font_normal_body">电 话</label>
|
|
51
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_user_phone" placeholder='电话'
|
|
52
|
+
condition="ss.f_user_phone = '{}'" v-next-el='f_user_phone' v-el:f_user_phone
|
|
53
|
+
>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="col-sm-2">
|
|
56
|
+
<label class="font_normal_body">小 区</label>
|
|
57
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_residential_area" placeholder='小区'
|
|
58
|
+
condition="ss.f_residential_area = '{}'" v-next-el='f_residential_area' v-el:f_residential_area>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-sm-2">
|
|
61
|
+
<label class="font_normal_body">表 号</label>
|
|
62
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_meternumber" placeholder='表号'
|
|
63
|
+
condition="ss.f_meternumber = '{}'" v-next-el='meternumber' v-el:meternumber
|
|
64
|
+
>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="col-sm-2">
|
|
67
|
+
<label class="font_normal_body">燃气证号</label>
|
|
68
|
+
<input @keyup.enter="search" style="width:60%" type="text" class="input_search" v-model="model.f_gascode" placeholder='燃气证号'
|
|
69
|
+
condition="ss.f_gascode like '%{}%'" v-next-el='f_gascode' v-el:f_gascode
|
|
70
|
+
>
|
|
71
|
+
</div>
|
|
72
|
+
<!-- <div class="col-sm-2 form-group">-->
|
|
73
|
+
<!-- <label class="font_normal_body">气价类型</label>-->
|
|
74
|
+
<!-- <v-select :value.sync="model.pricetype" v-model="model.pricetype"-->
|
|
75
|
+
<!-- placeholder='气价类型' :options="$parent.$parent.pricetypes"-->
|
|
76
|
+
<!-- condition="ss.f_price_type = '{}'"-->
|
|
77
|
+
<!-- close-on-select>-->
|
|
78
|
+
<!-- </v-select>-->
|
|
79
|
+
<!-- </div>-->
|
|
80
|
+
<div class="col-sm-2 form-group">
|
|
81
|
+
<label class="font_normal_body">气价名称</label>
|
|
82
|
+
<v-select :value.sync="model.f_price_name"
|
|
83
|
+
v-model="model.f_price_name"
|
|
84
|
+
:options="$parent.$parent.getPricenames"
|
|
85
|
+
condition="ss.f_price_name = '{}'"
|
|
86
|
+
close-on-select></v-select>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="col-sm-2 form-group">
|
|
89
|
+
<label class="font_normal_body">气表品牌</label>
|
|
90
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
91
|
+
v-model="model.f_meter_brand"
|
|
92
|
+
:options="$parent.$parent.meterbrands"
|
|
93
|
+
condition="ss.f_meter_brand = '{}'"
|
|
94
|
+
close-on-select></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_changetable_state"
|
|
99
|
+
v-model="model.f_changetable_state"
|
|
100
|
+
:options="$parent.$parent.isChange"
|
|
101
|
+
condition="ss.f_changetable_state = '{}'"
|
|
102
|
+
close-on-select></v-select>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-sm-2 form-group">
|
|
105
|
+
<label class="font_normal_body">用气状态</label>
|
|
106
|
+
<v-select :value.sync="model.f_gas_state"
|
|
107
|
+
v-model="model.f_gas_state"
|
|
108
|
+
:options="$parent.$parent.gasState"
|
|
109
|
+
condition="ss.f_gas_state = '{}'"
|
|
110
|
+
close-on-select></v-select>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="col-sm-2 form-group">
|
|
113
|
+
<label class="font_normal_body">气表状态</label>
|
|
114
|
+
<v-select :value.sync="model.f_table_state"
|
|
115
|
+
v-model="model.f_table_state"
|
|
116
|
+
:options="$parent.$parent.tableState"
|
|
117
|
+
condition="f_table_state = '{}'"
|
|
118
|
+
close-on-select></v-select>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
121
|
+
<label class="font_normal_body">用气量区间</label>
|
|
122
|
+
<div class="row">
|
|
123
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount1"
|
|
124
|
+
condition="ss.f_oughtamount >= {} " placeholder="">
|
|
125
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
126
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_oughtamount2"
|
|
127
|
+
condition="ss.f_oughtamount <= {} " placeholder="">
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
131
|
+
<label class="font_normal_body"> 充值区间 </label>
|
|
132
|
+
<div class="row">
|
|
133
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection1"
|
|
134
|
+
condition="ss.f_collection >= {} " placeholder="">
|
|
135
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
136
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_collection2"
|
|
137
|
+
condition="ss.f_collection <= {} " placeholder="">
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="col-sm-2 form-group" >
|
|
141
|
+
<label class="font_normal_body" for="startDate">开始时间</label>
|
|
142
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
143
|
+
v-model="model.startDate"
|
|
144
|
+
:value.sync="model.startDate"
|
|
145
|
+
:disabled-days-of-Week="[]"
|
|
146
|
+
:format="'yyyy-MM-dd 00:00:00'"
|
|
147
|
+
:show-reset-button="reset">
|
|
148
|
+
</datepicker>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="col-sm-2 form-group" >
|
|
151
|
+
<label class="font_normal_body" for="endDate">结束时间</label>
|
|
152
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
153
|
+
v-model="model.endDate"
|
|
154
|
+
:value.sync="model.endDate"
|
|
155
|
+
:disabled-days-of-Week="[]"
|
|
156
|
+
:format="'yyyy-MM-dd 23:59:59'"
|
|
157
|
+
:show-reset-button="reset">
|
|
158
|
+
</datepicker>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
161
|
+
<label class="font_normal_body">余额区间</label>
|
|
162
|
+
<div class="row">
|
|
163
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_sta"
|
|
164
|
+
condition="ss.f_balance_amount >= {} " placeholder="">
|
|
165
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
166
|
+
<input type="text" style="width:27%" class="input_search" v-model="model.f_balance_amount_end"
|
|
167
|
+
condition="ss.f_balance_amount <= {} " placeholder="">
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
<div class="col-sm-2 form-group">
|
|
171
|
+
<label class="font_normal_body">用气性质</label>
|
|
172
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
173
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
174
|
+
condition="f_gasproperties = '{}'"
|
|
175
|
+
close-on-select></v-select>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</criteria>
|
|
180
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
|
|
181
|
+
<template partial='head'>
|
|
182
|
+
<tr>
|
|
183
|
+
<th><nobr>客户编号</nobr></th>
|
|
184
|
+
<th><nobr>客户名称</nobr></th>
|
|
185
|
+
<th><nobr>小区</nobr></th>
|
|
186
|
+
<th><nobr>地址</nobr></th>
|
|
187
|
+
<th><nobr>电话</nobr></th>
|
|
188
|
+
|
|
189
|
+
<th><nobr>气表状态</nobr></th>
|
|
190
|
+
<th><nobr>燃气证号</nobr></th>
|
|
191
|
+
<th><nobr>气表品牌</nobr></th>
|
|
192
|
+
<th><nobr>表号</nobr></th>
|
|
193
|
+
<th><nobr>表具类型</nobr></th>
|
|
194
|
+
<th><nobr>表描述</nobr></th>
|
|
195
|
+
<th><nobr>气价名称</nobr></th>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
<th><nobr>用气性质</nobr></th>
|
|
199
|
+
<th><nobr>期初余额</nobr></th>
|
|
200
|
+
<th><nobr>起方</nobr></th>
|
|
201
|
+
<th><nobr>止方</nobr></th>
|
|
202
|
+
<th><nobr>期间用气量</nobr></th>
|
|
203
|
+
|
|
204
|
+
<th><nobr>期间用气金额</nobr></th>
|
|
205
|
+
<th><nobr>期间充值金额</nobr></th>
|
|
206
|
+
<th><nobr>期末余额</nobr></th>
|
|
207
|
+
<th><nobr>用气状态</nobr></th>
|
|
208
|
+
<th><nobr>是否换表</nobr></th>
|
|
209
|
+
<th><nobr>最后通讯日期</nobr></th>
|
|
210
|
+
</tr>
|
|
211
|
+
</template>
|
|
212
|
+
<template partial='body' partial='list'>
|
|
213
|
+
<tr >
|
|
214
|
+
<td style="text-align: left;"><nobr> <span @click="$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
215
|
+
<td style="text-align: left;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
216
|
+
<td style="text-align: left;"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
217
|
+
<td style="text-align: left;"><nobr>{{row.f_address}}</nobr></td>
|
|
218
|
+
<td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
219
|
+
|
|
220
|
+
<td style="text-align:center"><nobr>{{row.f_table_state}}</nobr></td>
|
|
221
|
+
<td style="text-align:center"><nobr>{{row.f_gascode}}</nobr></td>
|
|
222
|
+
<th style="text-align:center"><nobr>{{row.f_meter_brand}}</nobr></th>
|
|
223
|
+
<th style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></th>
|
|
224
|
+
<th style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></th>
|
|
225
|
+
<th style="text-align:center"><nobr>{{row.f_meter_title}}</nobr></th>
|
|
226
|
+
<th style="text-align:center"><nobr>{{row.f_price_name}}</nobr></th>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
<th style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></th>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<th style="text-align:center"><nobr>{{row.f_balance}}</nobr></th>
|
|
233
|
+
<th style="text-align:center"><nobr>{{row.f_last_tablebase}}</nobr></th>
|
|
234
|
+
<th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
|
|
235
|
+
<th style="text-align:center"><nobr>{{row.f_oughtamount}}</nobr></th>
|
|
236
|
+
<th style="text-align:center"><nobr>{{row.f_oughtfee}}</nobr></th>
|
|
237
|
+
|
|
238
|
+
<th style="text-align:center"><nobr>{{row.f_collection}}</nobr></th>
|
|
239
|
+
<th style="text-align:center"><nobr>{{row.f_curbalance}}</nobr></th>
|
|
240
|
+
<th style="text-align:center"><nobr>{{row.f_gas_state}}</nobr></th>
|
|
241
|
+
<th style="text-align:center"><nobr>{{row.f_changetable_state}}</nobr></th>
|
|
242
|
+
<th style="text-align:center"><nobr>{{row.f_input_date}}</nobr></th>
|
|
243
|
+
</tr>
|
|
244
|
+
</template>
|
|
245
|
+
<template partial='foot'></template>
|
|
246
|
+
</data-grid>
|
|
247
|
+
</criteria-paged>
|
|
248
|
+
<table class="table-hover">
|
|
249
|
+
<tr style="position: relative" class="table-bordered">
|
|
250
|
+
<td
|
|
251
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
252
|
+
汇总信息
|
|
253
|
+
</td>
|
|
254
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
255
|
+
期间用气量: {{sumsmodel.f_oughtamount}}
|
|
256
|
+
</td>
|
|
257
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
258
|
+
期间用气金额: {{sumsmodel.f_oughtfee}}
|
|
259
|
+
</td>
|
|
260
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
261
|
+
期间充值金额: {{sumsmodel.f_collection}}
|
|
262
|
+
</td>
|
|
263
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
264
|
+
一阶气量合计: {{sumsmodel.f_stairamount1}}
|
|
265
|
+
</td>
|
|
266
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
267
|
+
一阶气费合计: {{sumsmodel.f_stair1fee}}
|
|
268
|
+
</td>
|
|
269
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
270
|
+
二阶气量合计: {{sumsmodel.f_stairamount2}}
|
|
271
|
+
</td>
|
|
272
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
273
|
+
二阶气费合计: {{sumsmodel.f_stair2fee}}
|
|
274
|
+
</td>
|
|
275
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
276
|
+
三阶气量合计: {{sumsmodel.f_stairamount3}}
|
|
277
|
+
</td>
|
|
278
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
279
|
+
三阶气费合计: {{sumsmodel.f_stair3fee}}
|
|
280
|
+
</td>
|
|
281
|
+
</tr>
|
|
282
|
+
</table>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
<div class="flex-row" style="width:99%;height:98%;margin-bottom:0px" v-if="showdetail">
|
|
287
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
288
|
+
</div>
|
|
289
|
+
</template>
|
|
290
|
+
|
|
291
|
+
<script>
|
|
292
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
293
|
+
import exportConfig from '../../components/sale/config/exportConfig'
|
|
294
|
+
import * as Util from '../../Util'
|
|
295
|
+
import plugins from '../../plugins/GetLoginInfoService'
|
|
296
|
+
|
|
297
|
+
let readySomething = async function (self) {
|
|
298
|
+
await self.$MagLoadParams.loadParam()
|
|
299
|
+
self.initParams()
|
|
300
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
301
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
|
|
302
|
+
}
|
|
303
|
+
export default {
|
|
304
|
+
title: '用气量统计表',
|
|
305
|
+
data () {
|
|
306
|
+
return {
|
|
307
|
+
show:false,
|
|
308
|
+
org:[this.$login.f.orgid],
|
|
309
|
+
orgcondition: ' and ss.f_orgid = ' + this.$login.f.orgid,
|
|
310
|
+
//f_filialeid: this.$login.f.f_orgid,
|
|
311
|
+
detaillist: [],
|
|
312
|
+
meterbrands: [],
|
|
313
|
+
prices: [],
|
|
314
|
+
gasproperties:[],
|
|
315
|
+
condition:'',
|
|
316
|
+
rowdata:{},
|
|
317
|
+
getstart:'',
|
|
318
|
+
config: {
|
|
319
|
+
defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_meternumber', 'f_gasproperties', 'f_balance', 'f_last_tablebase','f_tablebase',
|
|
320
|
+
'f_oughtamount', 'f_oughtfee', 'f_collection', 'f_curbalance', 'f_gas_state', 'f_changetable_state', 'f_input_date']
|
|
321
|
+
},
|
|
322
|
+
sumsmodel: {},
|
|
323
|
+
orgid:[this.$login.f.orgid],
|
|
324
|
+
criteriaShow:false,
|
|
325
|
+
showdetail:false,
|
|
326
|
+
//默认打印列
|
|
327
|
+
defaultfield: [],
|
|
328
|
+
orgCondtionStr: '',
|
|
329
|
+
model: new PagedList('rs/sql/queryGasRecord', 50,{
|
|
330
|
+
startDate: 'this.model.startDate',
|
|
331
|
+
endDate: 'this.model.endDate'
|
|
332
|
+
},{
|
|
333
|
+
f_oughtamount: 0,
|
|
334
|
+
f_oughtfee: 0,
|
|
335
|
+
f_collection:0,
|
|
336
|
+
f_stairamount1:0,
|
|
337
|
+
f_stair1fee:0,
|
|
338
|
+
f_stairamount2:0,
|
|
339
|
+
f_stair2fee:0,
|
|
340
|
+
f_stairamount3:0,
|
|
341
|
+
f_stair3fee:0
|
|
342
|
+
}),
|
|
343
|
+
showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
ready () {
|
|
347
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
348
|
+
readySomething(this).then(() => {
|
|
349
|
+
this.$emit('ready')
|
|
350
|
+
}).catch((error) => {
|
|
351
|
+
this.$emit('error', error)
|
|
352
|
+
})
|
|
353
|
+
this.$refs.paged.$refs.criteria.model.startDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
|
|
354
|
+
this.$refs.paged.$refs.criteria.model.endDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
|
|
355
|
+
this.$refs.paged.$refs.criteria.model.inputStartDate = Util.addDate(new Date(),-1).substring(0,10) + ' 00:00:00'
|
|
356
|
+
this.$refs.paged.$refs.criteria.model.inputEndDate = Util.addDate(new Date(),-1).substring(0,10) + ' 23:59:59'
|
|
357
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
358
|
+
},
|
|
359
|
+
methods: {
|
|
360
|
+
initParams() {
|
|
361
|
+
// 初始化气表品牌
|
|
362
|
+
let brandArr = []
|
|
363
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
364
|
+
let temp = {}
|
|
365
|
+
temp.label = item.label
|
|
366
|
+
temp.value = item.value.f_meter_brand
|
|
367
|
+
brandArr.push(temp)
|
|
368
|
+
})
|
|
369
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
370
|
+
//初始化气表价格
|
|
371
|
+
this.prices = this.$MagGetSaleParam.getPrices();
|
|
372
|
+
},
|
|
373
|
+
async updateParams() {
|
|
374
|
+
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
375
|
+
this.initParams()
|
|
376
|
+
},
|
|
377
|
+
getorg(obj) {
|
|
378
|
+
if(plugins.convertToIn(obj)!==null&&plugins.convertToIn(obj)!==''){
|
|
379
|
+
this.orgcondition = " and ss.f_orgid in " + plugins.convertToIn(obj)
|
|
380
|
+
}else{
|
|
381
|
+
this.orgcondition = " and ss.f_orgid = " + this.$login.f.orgid
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
userTypeChange () {
|
|
385
|
+
this.gasproperties=[]
|
|
386
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
387
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties=''
|
|
388
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
389
|
+
}
|
|
390
|
+
else{
|
|
391
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
hidden(){
|
|
395
|
+
this.criteriaShow = !this.criteriaShow
|
|
396
|
+
},
|
|
397
|
+
cancel() {
|
|
398
|
+
this.showdetail = false
|
|
399
|
+
},
|
|
400
|
+
clearmsg () {
|
|
401
|
+
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
402
|
+
this.$refs.paged.$refs.criteria.model[key] = []
|
|
403
|
+
})
|
|
404
|
+
},
|
|
405
|
+
getRes (obj) {
|
|
406
|
+
this.orgCondtionStr = condition
|
|
407
|
+
this.orgname = obj.orgnames[0]
|
|
408
|
+
this.depname = obj.depnames[0]
|
|
409
|
+
},
|
|
410
|
+
showmsg(obj){
|
|
411
|
+
this.rowdata=obj
|
|
412
|
+
this.showdetail=true
|
|
413
|
+
},
|
|
414
|
+
|
|
415
|
+
search (args) {
|
|
416
|
+
args.condition = `${args.condition}`+this.orgcondition
|
|
417
|
+
this.condition = args.condition
|
|
418
|
+
this.model.search(args.condition, args.model)
|
|
419
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
420
|
+
// args.condition = `${args.condition}`
|
|
421
|
+
// if (this.orgcondition)
|
|
422
|
+
// args.condition = `${args.condition}` + this.orgcondition
|
|
423
|
+
// else
|
|
424
|
+
// args.condition = `${args.condition}` + 'and m.f_orgid in ' + '(' + this.$login.f.orgid + ')'
|
|
425
|
+
// this.model.search(args.condition, args.model)
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
watch: {
|
|
429
|
+
'model.rows'(val) {
|
|
430
|
+
//如果有合计 这里为true, 其他为false ,反正相反
|
|
431
|
+
this.showbottomsum=true;
|
|
432
|
+
if(val.length === 0){
|
|
433
|
+
this.sumsmodel = {}
|
|
434
|
+
this.showbottomsum=false;
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
'orgCondtionStr'(val) {
|
|
438
|
+
let res = val.match(/'(.*?)'/)
|
|
439
|
+
console.log('正则提取:',res && res[1])
|
|
440
|
+
if (res) {
|
|
441
|
+
this.f_filialeid = res[1]
|
|
442
|
+
// this.updateParams()
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
computed: {
|
|
447
|
+
getCondition() {
|
|
448
|
+
|
|
449
|
+
return {
|
|
450
|
+
condition: this.condition,
|
|
451
|
+
startDate:`${this.$refs.paged.$refs.criteria.model.startDate}`,
|
|
452
|
+
endDate:`${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
getstart(){
|
|
456
|
+
return `开始时间:${this.$refs.paged.$refs.criteria.model.startDate} 结束时间:${this.$refs.paged.$refs.criteria.model.endDate}`
|
|
457
|
+
},
|
|
458
|
+
getPricenames() {
|
|
459
|
+
let f_user_type = this.$refs.paged.$refs.criteria.model.f_user_type;
|
|
460
|
+
let f_gasproperties = this.$refs.paged.$refs.criteria.model.f_gasproperties;
|
|
461
|
+
let pricetype = this.$refs.paged.$refs.criteria.model.pricetype;
|
|
462
|
+
console.log("打印一下:",f_user_type,f_gasproperties,pricetype,this.f_filialeid,this.prices)
|
|
463
|
+
console.log("查看f_orgid:",this.$login.f.f_orgid)
|
|
464
|
+
if(this.$refs.paged.$refs.criteria.model !==null) {
|
|
465
|
+
let rs = []
|
|
466
|
+
let priceArr = []
|
|
467
|
+
if ( pricetype.length >0) {
|
|
468
|
+
let params = {
|
|
469
|
+
f_price_type: pricetype[0],
|
|
470
|
+
filter: this.org[0],
|
|
471
|
+
prices: this.prices
|
|
472
|
+
}
|
|
473
|
+
console.log("打印一下params:",params)
|
|
474
|
+
this.$MagGetSaleParam.getPrice(params).forEach((item) => {
|
|
475
|
+
console.log("====================================》")
|
|
476
|
+
let temp = {}
|
|
477
|
+
temp.label = item.label
|
|
478
|
+
temp.value = item.value.f_price_name
|
|
479
|
+
priceArr.push(temp)
|
|
480
|
+
console.log("打印一下temp:",temp)
|
|
481
|
+
})
|
|
482
|
+
|
|
483
|
+
rs = [{label: '全部', value: ''}, ...priceArr]
|
|
484
|
+
}
|
|
485
|
+
if (rs.length === 0) {
|
|
486
|
+
console.log('rs读出来是空')
|
|
487
|
+
this.$refs.paged.$refs.criteria.model.f_price_name = ''
|
|
488
|
+
}
|
|
489
|
+
return rs
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
getfield () {
|
|
493
|
+
return exportConfig.GasStatistics
|
|
494
|
+
},
|
|
495
|
+
usertypes() {
|
|
496
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
497
|
+
},
|
|
498
|
+
gasproperties() {
|
|
499
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
500
|
+
},
|
|
501
|
+
pricetypes() {
|
|
502
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')]
|
|
503
|
+
},
|
|
504
|
+
tableState() {
|
|
505
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
|
|
506
|
+
},
|
|
507
|
+
gasState() {
|
|
508
|
+
return [{label:'正常', value:'正常'},
|
|
509
|
+
{label:'异常', value:'异常'},
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
isChange() {
|
|
513
|
+
return [{label:'是', value:'是'},
|
|
514
|
+
{label:'否', value:'否'},
|
|
515
|
+
]
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
</script>
|
|
520
|
+
|
|
521
|
+
<style>
|
|
522
|
+
.showbottom{
|
|
523
|
+
height:95%
|
|
524
|
+
}
|
|
525
|
+
</style>
|
|
526
|
+
|