manage-client 3.3.262 → 3.3.264
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/components/SellReport/fugou/FgUserGasType.vue +172 -0
- package/src/components/SellReport/fugou/FgUserTags.vue +172 -0
- package/src/components/SellReport/rongchang/RcSellData.vue +172 -0
- package/src/components/sale/businessquery/GasInspection.vue +7 -1
- package/src/components/sale/businessquery/InspectListGas.vue +7 -1
- package/src/components/sale/businessquery/InspectListUser.vue +7 -1
- package/src/components/webmeter/DrillData/UserGasEform.vue +3 -1
- package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +29 -1
- package/src/filiale/ancheng/exportConfig.js +4 -1
- package/src/filiale/ningjin/GasInspection.vue +593 -0
- package/src/filiale/ningjin/InspectListGas.vue +575 -0
- package/src/filiale/ningjin/MeterExceptionList.vue +1 -1
- package/src/filiale/ningjin/sale.js +8 -0
- package/src/filiale/rongcheng/RecordInfoQuery.vue +13 -0
- package/src/filiale/shanxian/InspectListUserNew.vue +2 -2
- package/src/filiale/tongchuan/sale.js +1 -3
- package/src/reportManage.js +13 -1
|
@@ -426,7 +426,10 @@ export default{
|
|
|
426
426
|
'f_date': '抄表区间',
|
|
427
427
|
'f_input_day': '天数',
|
|
428
428
|
'f_oughtamount': '用气量',
|
|
429
|
-
'f_oughtfee': '用气金额'
|
|
429
|
+
'f_oughtfee': '用气金额',
|
|
430
|
+
'f_paper_name': '法人单位名称',
|
|
431
|
+
'f_taxpayer_id': '统一社会信用代码',
|
|
432
|
+
'f_operate_date': '缴费时间'
|
|
430
433
|
},
|
|
431
434
|
notgasConfig: {
|
|
432
435
|
'f_userinfo_code': '客户编号', 'f_user_name': '客户名称', 'f_olduserinfo_code': '档案编号', 'f_user_phone': '客户电话', 'f_credentials': '证件类型',
|
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex" v-if="!show">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
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
|
+
<right-tree @re-res="$parent.$parent.getorg"
|
|
12
|
+
:initresid='$parent.$parent.org'></right-tree>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="col-sm-2 form-group ">
|
|
16
|
+
<label for="startDate" class="font_normal_body">抄表开始 </label>
|
|
17
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
18
|
+
v-model="model.startDate"
|
|
19
|
+
style="width:60%"
|
|
20
|
+
:value.sync="model.startDate"
|
|
21
|
+
:disabled-days-of-Week="[]"
|
|
22
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
23
|
+
:show-reset-button="reset">
|
|
24
|
+
</datepicker>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-sm-2 form-group ">
|
|
27
|
+
<label for="startDate" class="font_normal_body">抄表结束 </label>
|
|
28
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
29
|
+
v-model="model.endDate"
|
|
30
|
+
style="width:60%"
|
|
31
|
+
:value.sync="model.endDate"
|
|
32
|
+
:disabled-days-of-Week="[]"
|
|
33
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
34
|
+
:show-reset-button="reset">
|
|
35
|
+
</datepicker>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="col-sm-2 form-group ">
|
|
39
|
+
<label for="f_gasproperties"class="font_normal_body">用气性质 </label>
|
|
40
|
+
<v-select id="f_gasproperties"
|
|
41
|
+
style="width:60%"
|
|
42
|
+
v-model="model.f_gasproperties"
|
|
43
|
+
placeholder='用气性质'
|
|
44
|
+
:value.sync="model.f_gasproperties"
|
|
45
|
+
:options='$parent.$parent.gasproperties'
|
|
46
|
+
condition="f_gasproperties = '{}'"
|
|
47
|
+
close-on-select >
|
|
48
|
+
</v-select>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div class="span" style="float:right;">
|
|
52
|
+
<button class="btn button_search" @click="search()">查询</button>
|
|
53
|
+
<button class="btn button_clear" @click="$parent.$parent.clear()">清空</button>
|
|
54
|
+
<export-excel
|
|
55
|
+
:data="$parent.$parent.getCondition"
|
|
56
|
+
:field="$parent.$parent.getfield"
|
|
57
|
+
:footer="$parent.$parent.footer"
|
|
58
|
+
:header="$parent.$parent.other"
|
|
59
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile"
|
|
60
|
+
:sql-name="$parent.$parent.sqlName"
|
|
61
|
+
template-name='用气稽查导出' :choose-col="true"></export-excel>
|
|
62
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield" :defaultfield="$parent.$parent.defaultfield" print-name="稽查查询打印" :sumsmodel="$parent.$parent.sumsmodel" ></print-data>
|
|
63
|
+
<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>
|
|
64
|
+
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
68
|
+
<div class="col-sm-2 form-group">
|
|
69
|
+
<label class="font_normal_body">客户状态  </label>
|
|
70
|
+
<v-select :value.sync="model.f_user_state"
|
|
71
|
+
v-model="model.f_user_state"
|
|
72
|
+
:options='$parent.$parent.userstates' placeholder='请选择'
|
|
73
|
+
condition="f_user_state = '{}'"
|
|
74
|
+
close-on-select></v-select>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="col-sm-2 form-group">
|
|
77
|
+
<label class="font_normal_body">气表状态 </label>
|
|
78
|
+
<v-select :value.sync="model.f_table_state"
|
|
79
|
+
v-model="model.f_table_state"
|
|
80
|
+
:options='$parent.$parent.tablestate' placeholder='请选择'
|
|
81
|
+
condition="f_table_state = '{}'"
|
|
82
|
+
close-on-select></v-select>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-2 form-group">
|
|
85
|
+
<label class="font_normal_body">表  号 </label>
|
|
86
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
|
|
87
|
+
condition="f_meternumber = '{}'" placeholder='表号'>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-sm-2 form-group ">
|
|
90
|
+
<label class="font_normal_body">用户类型 </label>
|
|
91
|
+
<v-select :value.sync="model.f_user_type"
|
|
92
|
+
@change="$parent.$parent.userTypeChange()"
|
|
93
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
94
|
+
condition="f_user_type = '{}'"
|
|
95
|
+
close-on-select></v-select>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
<div class="col-sm-2 form-group">
|
|
99
|
+
<label class="font_normal_body">客户名称 </label>
|
|
100
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
101
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称">
|
|
102
|
+
</div>
|
|
103
|
+
<div class="col-sm-2 form-group">
|
|
104
|
+
<label class="font_normal_body">客户编号 </label>
|
|
105
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
|
|
106
|
+
condition="f_userinfo_code = '{}' " placeholder="客户编号">
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col-sm-2 form-group">
|
|
109
|
+
<label class="font_normal_body" title="旧客户编号">档案编号 </label>
|
|
110
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_olduserinfo_code"
|
|
111
|
+
condition="f_olduserinfo_code = '{}' " placeholder="档案编号">
|
|
112
|
+
</div>
|
|
113
|
+
<div class="col-sm-2 form-group">
|
|
114
|
+
<label class="font_normal_body">表箱号  </label>
|
|
115
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_metertitles"
|
|
116
|
+
condition="f_metertitles = '{}'" placeholder="表箱号">
|
|
117
|
+
</div>
|
|
118
|
+
<div class="col-sm-2 form-group">
|
|
119
|
+
<label class="font_normal_body">客户地址 </label>
|
|
120
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
121
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="col-sm-2 form-group">
|
|
124
|
+
<label class="font_normal_body">客户电话 </label>
|
|
125
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
126
|
+
condition="f_user_phone like '%{}%'" placeholder="客户电话">
|
|
127
|
+
</div>
|
|
128
|
+
<div class="col-sm-2 form-group">
|
|
129
|
+
<label class="font_normal_body">气表品牌 </label>
|
|
130
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
131
|
+
v-model="model.f_meter_brand"
|
|
132
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
133
|
+
condition="f_meter_brand = '{}'"
|
|
134
|
+
close-on-select></v-select>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="col-sm-2 form-group">
|
|
137
|
+
<label class="font_normal_body">表册片区 </label>
|
|
138
|
+
<v-select :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
|
|
139
|
+
:options='$parent.$parent.bookSlice' placeholder='片区/表册'
|
|
140
|
+
style="width:60%"
|
|
141
|
+
close-on-select
|
|
142
|
+
condition="f_book_slice_area = '{}'"></v-select>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="col-sm-2 ">
|
|
145
|
+
<label for="f_meter_classify"class="font_normal_body">表类型  </label>
|
|
146
|
+
<v-select id="f_meter_classify"
|
|
147
|
+
v-model="model.meter_classify"
|
|
148
|
+
placeholder='表类型'
|
|
149
|
+
style="width:70%"
|
|
150
|
+
:value.sync="model.meter_classify"
|
|
151
|
+
:options='$parent.$parent.f_meter_classify'
|
|
152
|
+
condition="f_meter_classify like '%{}'"
|
|
153
|
+
:value-single="true"
|
|
154
|
+
close-on-select >
|
|
155
|
+
</v-select>
|
|
156
|
+
</div>
|
|
157
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
158
|
+
<label class="font_normal_body">欠费月数 </label>
|
|
159
|
+
<div class="row">
|
|
160
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummin"
|
|
161
|
+
placeholder="">
|
|
162
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
163
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_month_nummax"
|
|
164
|
+
placeholder="">
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
169
|
+
<label class="font_normal_body">欠费条数 </label>
|
|
170
|
+
<div class="row">
|
|
171
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummin"
|
|
172
|
+
placeholder="">
|
|
173
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
174
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_nummax"
|
|
175
|
+
placeholder="">
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
179
|
+
<label class="font_normal_body">总欠费气量</label>
|
|
180
|
+
<div class="row">
|
|
181
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmin"
|
|
182
|
+
placeholder="">
|
|
183
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
184
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_gasmax"
|
|
185
|
+
placeholder="">
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
189
|
+
<label class="font_normal_body">总欠费金额</label>
|
|
190
|
+
<div class="row">
|
|
191
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemin"
|
|
192
|
+
placeholder="">
|
|
193
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
194
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.f_totalowe_feemax"
|
|
195
|
+
placeholder="">
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
199
|
+
<label class="font_normal_body">欠费月平均气量</label>
|
|
200
|
+
<div class="row">
|
|
201
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmin"
|
|
202
|
+
placeholder="">
|
|
203
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
204
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.qianfei_avg_gasmax"
|
|
205
|
+
placeholder="">
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
<div class="col-sm-2 form-group flex-row" style="white-space: nowrap">
|
|
209
|
+
<label class="font_normal_body">用气量  </label>
|
|
210
|
+
<div class="row">
|
|
211
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_min"
|
|
212
|
+
placeholder="">
|
|
213
|
+
<label class="font_normal_body"> ≤ x ≤ </label>
|
|
214
|
+
<input type="text" style="width:30%" class="input_search" v-model="model.model.f_oughtamount_max"
|
|
215
|
+
placeholder="">
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
|
|
220
|
+
</div>
|
|
221
|
+
</criteria>
|
|
222
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
223
|
+
<template partial='head'>
|
|
224
|
+
<tr>
|
|
225
|
+
<th><nobr>序号</nobr></th>
|
|
226
|
+
<th><nobr>客户编号</nobr></th>
|
|
227
|
+
<th><nobr>客户电话</nobr></th>
|
|
228
|
+
<th><nobr>档案编号</nobr></th>
|
|
229
|
+
<th><nobr>表号</nobr></th>
|
|
230
|
+
<th><nobr>客户名称</nobr></th>
|
|
231
|
+
<th><nobr>地址</nobr></th>
|
|
232
|
+
<th><nobr>表箱号</nobr></th>
|
|
233
|
+
<th><nobr>用户类型</nobr></th>
|
|
234
|
+
<th><nobr>用气性质</nobr></th>
|
|
235
|
+
<th><nobr>表具状态</nobr></th>
|
|
236
|
+
<th><nobr>气表品牌</nobr></th>
|
|
237
|
+
<th><nobr>表册片区</nobr></th>
|
|
238
|
+
<th><nobr>当前表底数</nobr></th>
|
|
239
|
+
<th><nobr>最后抄表日期</nobr></th>
|
|
240
|
+
<th><nobr>用气量</nobr></th>
|
|
241
|
+
<th><nobr>用气金额</nobr></th>
|
|
242
|
+
<th><nobr>欠费月数</nobr></th>
|
|
243
|
+
<th><nobr>欠费条数</nobr></th>
|
|
244
|
+
<th><nobr>欠费月平均气量</nobr></th>
|
|
245
|
+
<th><nobr>欠费气量</nobr></th>
|
|
246
|
+
<th><nobr>欠费金额</nobr></th>
|
|
247
|
+
</tr>
|
|
248
|
+
</template>
|
|
249
|
+
<template partial='body'>
|
|
250
|
+
<td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
|
|
251
|
+
<td style="text-align: center;"><nobr>
|
|
252
|
+
<span @click="$parent.$parent.$parent.showmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
253
|
+
</nobr> </td>
|
|
254
|
+
<td style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
255
|
+
<td style="text-align: center;"><nobr>{{row.f_olduserinfo_code}}</nobr></td>
|
|
256
|
+
<td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
257
|
+
<th style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></th>
|
|
258
|
+
<th style="text-align: center;"><nobr>{{row.f_address}}</nobr></th>
|
|
259
|
+
<th style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></th>
|
|
260
|
+
<th style="text-align: center;"><nobr>{{row.f_user_type}}</nobr></th>
|
|
261
|
+
<th style="text-align: center;"><nobr>{{row.f_gasproperties}}</nobr></th>
|
|
262
|
+
<th style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></th>
|
|
263
|
+
<th style="text-align: center;"><nobr>{{row.f_meter_brand}}</nobr></th>
|
|
264
|
+
<th style="text-align: center;"><nobr>{{row.f_book_slice_area}}</nobr></th>
|
|
265
|
+
<th style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></th>
|
|
266
|
+
<th style="text-align: center;"><nobr>{{row.end_time}}</nobr></th>
|
|
267
|
+
<th style="text-align: center;"><nobr>{{row.f_oughtamount}}</nobr></th>
|
|
268
|
+
<th style="text-align: center;"><nobr>{{row.f_oughtfee}}</nobr></th>
|
|
269
|
+
<th style="text-align: center;"><nobr>{{row.qianfei_month_num}}</nobr></th>
|
|
270
|
+
<th style="text-align: center;"><nobr>{{row.qianfei_num}}</nobr></th>
|
|
271
|
+
<th style="text-align: center;"><nobr>{{row.qianfei_avg_gas}}</nobr></th>
|
|
272
|
+
<th style="text-align: center;"><nobr>{{row.f_totalowe_gas}}</nobr></th>
|
|
273
|
+
<th style="text-align: center;"><nobr>{{row.f_totalowe_fee}}</nobr></th>
|
|
274
|
+
</template>
|
|
275
|
+
</data-grid>
|
|
276
|
+
</criteria-paged>
|
|
277
|
+
<table class="table-hover">
|
|
278
|
+
<tr style="position: relative" class="table-bordered">
|
|
279
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
280
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #f2f6fa;padding: 0px 10px 0px 10px;font-weight: bold">总用气量:  {{sumsmodel.f_oughtamount}}</td>
|
|
281
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总用气金额:  {{sumsmodel.f_oughtfee}}</td>
|
|
282
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费条数:  {{sumsmodel.qianfei_num}}</td>
|
|
283
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费气量: {{sumsmodel.f_totalowe_gas}}</td>
|
|
284
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">总欠费金额: {{sumsmodel.f_totalowe_fee}}</td>
|
|
285
|
+
</tr>
|
|
286
|
+
</table>
|
|
287
|
+
</div>
|
|
288
|
+
<div class="flex" v-if="show">
|
|
289
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
290
|
+
</div>
|
|
291
|
+
</div></div>
|
|
292
|
+
</template>
|
|
293
|
+
<script>
|
|
294
|
+
/**
|
|
295
|
+
*用户档案查询列表以及添加操作组件
|
|
296
|
+
*/
|
|
297
|
+
import { PagedList } from 'vue-client'
|
|
298
|
+
import Vue from 'vue'
|
|
299
|
+
import plugin from 'system-clients/src/plugins/GetLoginInfoService'
|
|
300
|
+
import exportConfig from "../../components/sale/config/exportConfig";
|
|
301
|
+
|
|
302
|
+
let readySomething = async function (self) {
|
|
303
|
+
await self.$MagLoadParams.loadParam()
|
|
304
|
+
self.initParams()
|
|
305
|
+
self.initSlice(self.$login.f.orgid)
|
|
306
|
+
let year = new Date().getFullYear()
|
|
307
|
+
self.$refs.paged.$refs.cri.model.startDate = year+'-01-01 00:00:00'
|
|
308
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
309
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
310
|
+
}
|
|
311
|
+
export default {
|
|
312
|
+
title: '用气稽查',
|
|
313
|
+
data () {
|
|
314
|
+
return {
|
|
315
|
+
other:[],
|
|
316
|
+
footer:[],
|
|
317
|
+
org:[this.$login.f.orgid],
|
|
318
|
+
criteriaShow: false,
|
|
319
|
+
filialeNameStr: null,
|
|
320
|
+
filialeCodeStr: `and f_orgid = ${this.$login.f.orgid}`,
|
|
321
|
+
userid: this.$login.f.id,
|
|
322
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
323
|
+
model: new PagedList('api/af-revenue/sql/getGasInspection', 50,{mycondition:'this.model.model.mycondition'},{
|
|
324
|
+
f_oughtamount:0,
|
|
325
|
+
f_oughtfee:0,
|
|
326
|
+
qianfei_num:0,
|
|
327
|
+
f_totalowe_gas:0,
|
|
328
|
+
f_totalowe_fee:0
|
|
329
|
+
}),
|
|
330
|
+
rows: null,
|
|
331
|
+
//orgid:'',
|
|
332
|
+
sumsmodel: {},
|
|
333
|
+
sqlName:'getGasInspection',
|
|
334
|
+
config: {
|
|
335
|
+
defaultPrint: ['f_userinfo_code','f_user_id']
|
|
336
|
+
},
|
|
337
|
+
show:false,
|
|
338
|
+
rowdata:{},
|
|
339
|
+
initres: {
|
|
340
|
+
org:[this.$login.f.orgid],
|
|
341
|
+
dep:[],
|
|
342
|
+
user:[],
|
|
343
|
+
},
|
|
344
|
+
// qianfei_month_nummin:null,
|
|
345
|
+
// qianfei_month_nummax:null,
|
|
346
|
+
// qianfei_nummin:null,
|
|
347
|
+
// qianfei_nummax:null,
|
|
348
|
+
// qianfei_avg_gasmin:null,
|
|
349
|
+
// qianfei_avg_gasmax:null,
|
|
350
|
+
// f_totalowe_feemin:null,
|
|
351
|
+
// f_totalowe_feemax:null,
|
|
352
|
+
// f_totalowe_gasmin:null,
|
|
353
|
+
// f_totalowe_gasmax:null,
|
|
354
|
+
mycondition:null,
|
|
355
|
+
defaultfield: [],
|
|
356
|
+
meterbrands: [],
|
|
357
|
+
// 表册片区
|
|
358
|
+
bookSlice:[]
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
watch:{
|
|
362
|
+
sumsmodel:{
|
|
363
|
+
handler: function(val) {
|
|
364
|
+
this.getotherfooter();
|
|
365
|
+
},
|
|
366
|
+
deep: true
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
ready () {
|
|
370
|
+
readySomething(this).then(() => {
|
|
371
|
+
this.$emit('ready')
|
|
372
|
+
}).catch((error) => {
|
|
373
|
+
this.$emit('error', error)
|
|
374
|
+
})
|
|
375
|
+
},
|
|
376
|
+
methods: {
|
|
377
|
+
// 初始化抄表册片区
|
|
378
|
+
async initSlice (val) {
|
|
379
|
+
if (val) {
|
|
380
|
+
let getAllArea = await this.$resetpost('/rs/search', {
|
|
381
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
|
382
|
+
userid: this.$login.f.id
|
|
383
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
384
|
+
let arr = getAllArea.data.filter((res) => {
|
|
385
|
+
return res.parentid == val
|
|
386
|
+
})
|
|
387
|
+
this.bookSlice = [{label: '全部',value: ''}]
|
|
388
|
+
arr.forEach((res) => {
|
|
389
|
+
this.bookSlice.push({label: res.name, value: res.name})
|
|
390
|
+
})
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
initParams () {
|
|
394
|
+
// 初始化气表品牌
|
|
395
|
+
let brandArr = []
|
|
396
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
397
|
+
let temp = {}
|
|
398
|
+
temp.label = item.label
|
|
399
|
+
temp.value = item.value.f_meter_brand
|
|
400
|
+
brandArr.push(temp)
|
|
401
|
+
})
|
|
402
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
403
|
+
},
|
|
404
|
+
getotherfooter(){
|
|
405
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
406
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
407
|
+
this.other=[];
|
|
408
|
+
this.footer=[];
|
|
409
|
+
// let exportdata = this.$refs.paged.$refs.cri.model.model.mycondition;
|
|
410
|
+
let otherInData=[];
|
|
411
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
412
|
+
let footerData=[],exportfield=this.getfield;
|
|
413
|
+
footerData.push("合计");
|
|
414
|
+
let self = this;
|
|
415
|
+
for(var field in self.sumsmodel){
|
|
416
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
417
|
+
}
|
|
418
|
+
this.footer.push(footerData);
|
|
419
|
+
this.other.push(otherInData);
|
|
420
|
+
},
|
|
421
|
+
cancel() {
|
|
422
|
+
this.show = false
|
|
423
|
+
},
|
|
424
|
+
showmsg(obj){
|
|
425
|
+
this.rowdata=obj
|
|
426
|
+
this.show=true
|
|
427
|
+
},
|
|
428
|
+
async getorg (obj) {
|
|
429
|
+
console.log('组织变化',obj)
|
|
430
|
+
if(obj && obj.resids && obj.resids[0]){
|
|
431
|
+
this.initSlice(obj.resids[0])
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
if(obj.resids.length>0){
|
|
435
|
+
this.filialeCodeStr =" and f_orgid in " + plugin.convertToIn(obj.resids)
|
|
436
|
+
}
|
|
437
|
+
else{
|
|
438
|
+
this.filialeCodeStr= " and f_orgid = " + this.$login.f.orgid
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
userTypeChange () {
|
|
442
|
+
this.gasproperties=[]
|
|
443
|
+
if(this.$refs.paged.model.model !==null) {
|
|
444
|
+
this.$refs.paged.model.model.f_gasproperties=''
|
|
445
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
|
|
446
|
+
// this.gasproperties.push({label: '全部', value: ''})
|
|
447
|
+
console.log(this.gasproperties )
|
|
448
|
+
}
|
|
449
|
+
else{
|
|
450
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
search () {
|
|
454
|
+
this.$refs.paged.$refs.cri.search()
|
|
455
|
+
},
|
|
456
|
+
selfSearch (args) {
|
|
457
|
+
let a = " and 1=1 "
|
|
458
|
+
let m=this.$refs.paged.$refs.cri.model.model;
|
|
459
|
+
if(m.qianfei_month_nummin!=null && m.qianfei_month_nummin!=''){
|
|
460
|
+
a += " and qianfei_month_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummin
|
|
461
|
+
}
|
|
462
|
+
if(m.qianfei_month_nummax!=null&&m.qianfei_month_nummax!=''){
|
|
463
|
+
a+=' and qianfei_month_num <= '+this.$refs.paged.$refs.cri.model.model.qianfei_month_nummax
|
|
464
|
+
}
|
|
465
|
+
if(m.qianfei_nummin!=null&&m.qianfei_nummin!=''){
|
|
466
|
+
a += " and qianfei_num >= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummin
|
|
467
|
+
}
|
|
468
|
+
if(m.qianfei_nummax!=null&&m.qianfei_nummax!=''){
|
|
469
|
+
a +=" and qianfei_num <= "+this.$refs.paged.$refs.cri.model.model.qianfei_nummax
|
|
470
|
+
}
|
|
471
|
+
if(m.qianfei_avg_gasmin!=null&&m.qianfei_avg_gasmin!=''){
|
|
472
|
+
a +=" and qianfei_avg_gas >= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmin
|
|
473
|
+
}
|
|
474
|
+
if(m.qianfei_avg_gasmax!=null&&m.qianfei_avg_gasmax!=''){
|
|
475
|
+
a += " and qianfei_avg_gas <= "+this.$refs.paged.$refs.cri.model.model.qianfei_avg_gasmax
|
|
476
|
+
}
|
|
477
|
+
if(m.f_totalowe_feemin!=null&&m.f_totalowe_feemin!=''){
|
|
478
|
+
a += " and f_totalowe_fee >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemin
|
|
479
|
+
}
|
|
480
|
+
if(m.f_totalowe_feemax!=null&&m.f_totalowe_feemax!=''){
|
|
481
|
+
a += " and f_totalowe_fee <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_feemax
|
|
482
|
+
}
|
|
483
|
+
if(m.f_totalowe_gasmin!=null&&m.f_totalowe_gasmin!=''){
|
|
484
|
+
a += " and f_totalowe_gas >= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmin
|
|
485
|
+
}
|
|
486
|
+
if(m.f_totalowe_gasmax!=null&&m.f_totalowe_gasmax!=''){
|
|
487
|
+
a += " and f_totalowe_gas <= "+this.$refs.paged.$refs.cri.model.model.f_totalowe_gasmax
|
|
488
|
+
}
|
|
489
|
+
if (m.f_oughtamount_min) {
|
|
490
|
+
a += " and f_oughtamount >= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_min
|
|
491
|
+
}
|
|
492
|
+
if (m.f_oughtamount_max) {
|
|
493
|
+
a += " and f_oughtamount <= "+this.$refs.paged.$refs.cri.model.model.f_oughtamount_max
|
|
494
|
+
}
|
|
495
|
+
if (m.f_book_slice_area) {
|
|
496
|
+
a += ` and f_book_slice_area = '${this.$refs.paged.$refs.cri.model.model.f_book_slice_area}'`
|
|
497
|
+
}
|
|
498
|
+
if(this.$refs.paged.$refs.cri.model.startDate){
|
|
499
|
+
this.model.params.startDate = `'${this.$refs.paged.$refs.cri.model.startDate}' `
|
|
500
|
+
}else{
|
|
501
|
+
this.model.params.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
if(this.$refs.paged.$refs.cri.model.endDate){
|
|
505
|
+
this.model.params.endDate = `'${this.$refs.paged.$refs.cri.model.endDate}' `
|
|
506
|
+
}else{
|
|
507
|
+
this.model.params.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
508
|
+
}
|
|
509
|
+
this.mycondition = a
|
|
510
|
+
args.condition = args.condition+ ` ${this.filialeCodeStr}`
|
|
511
|
+
args.condition = args.condition+ ` ${a}`
|
|
512
|
+
console.log("拼接的condition", args.condition, this.model)
|
|
513
|
+
this.model.search(args.condition, args.model)
|
|
514
|
+
},
|
|
515
|
+
hidden(){
|
|
516
|
+
this.criteriaShow = !this.criteriaShow
|
|
517
|
+
},
|
|
518
|
+
clear(){
|
|
519
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
520
|
+
if (key != 'startDate' && key != 'endDate')
|
|
521
|
+
if (key == 'model')
|
|
522
|
+
this.$refs.paged.$refs.cri.model[key] = {}
|
|
523
|
+
else
|
|
524
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
525
|
+
})
|
|
526
|
+
this.$refs.paged.$refs.cri.model.contain_newfile='是'
|
|
527
|
+
let year = new Date().getFullYear()
|
|
528
|
+
this.$refs.paged.$refs.cri.model.startDate = year+'-01-01'
|
|
529
|
+
this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString()
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
},
|
|
533
|
+
computed: {
|
|
534
|
+
userstates (){
|
|
535
|
+
return this.$appdata.getParam('用户状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')] : []
|
|
536
|
+
},
|
|
537
|
+
tablestate() {
|
|
538
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('气表状态')]
|
|
539
|
+
},
|
|
540
|
+
getfield() {
|
|
541
|
+
return exportConfig.gasInspectionConfig
|
|
542
|
+
},
|
|
543
|
+
usertypes() {
|
|
544
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
545
|
+
},
|
|
546
|
+
gasproperties() {
|
|
547
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用气性质')]
|
|
548
|
+
},
|
|
549
|
+
f_meter_classify(){
|
|
550
|
+
return [{label: '全部', value: ''}, {label: '卡表', value: '卡表'},{label: '机表', value: '机表'},{label: '网表', value: '物联网表'} ]
|
|
551
|
+
// return [{label: '卡表', value: '卡表'}]
|
|
552
|
+
},
|
|
553
|
+
getCondition () {
|
|
554
|
+
let result = {
|
|
555
|
+
condition: '',
|
|
556
|
+
startDate: '',
|
|
557
|
+
endDate: '',
|
|
558
|
+
mycondition:''
|
|
559
|
+
}
|
|
560
|
+
result.condition = this.$refs.paged.$refs.cri.condition + this.filialeCodeStr
|
|
561
|
+
result.condition = result.condition + this.mycondition
|
|
562
|
+
let temp2 = this.$refs.paged.$refs.cri
|
|
563
|
+
if (temp2.model.startDate && temp2.model.endDate) {
|
|
564
|
+
result.startDate = ` '${temp2.model.startDate}'`
|
|
565
|
+
result.endDate = ` '${temp2.model.endDate}'`
|
|
566
|
+
} if (!temp2.model.startDate && !temp2.model.endDate) {
|
|
567
|
+
result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
568
|
+
result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
569
|
+
}
|
|
570
|
+
if (temp2.model.startDate&&!temp2.model.endDate) {
|
|
571
|
+
result.startDate = ` '${temp2.model.startDate}'`
|
|
572
|
+
result.endDate = this.$login.toStandardDateString() + ' 23:59:59'
|
|
573
|
+
} if (temp2.model.endDate&&!temp2.model.startDate) {
|
|
574
|
+
result.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
575
|
+
result.endDate = ` '${temp2.model.endDate}'`
|
|
576
|
+
}
|
|
577
|
+
if (temp2.model.contain_newfile==='否'){
|
|
578
|
+
result.condition = result.condition+" and f_open_date not between " + result.startDate + " and " + result.endDate
|
|
579
|
+
}
|
|
580
|
+
return result
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
</script>
|
|
585
|
+
<style media="screen">
|
|
586
|
+
.divtext {
|
|
587
|
+
min-width: 50px;
|
|
588
|
+
max-width: 200px;
|
|
589
|
+
border: 1px solid green;
|
|
590
|
+
display: inline-block;
|
|
591
|
+
}
|
|
592
|
+
</style>
|
|
593
|
+
|