manage-client 4.1.77 → 4.1.78
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/sale/config/exportConfig.js +6 -24
- package/src/filiale/liaoyuan/HandplanRatioQuery.vue +9 -7
- package/src/filiale/liaoyuan/WebHandplanRatioQuery.vue +5 -5
- package/src/filiale/liaoyuan/sale.js +1 -1
- package/src/filiale/yangchun/OtherChargeQuery.vue +446 -395
package/package.json
CHANGED
|
@@ -1941,7 +1941,7 @@ export default {
|
|
|
1941
1941
|
},
|
|
1942
1942
|
GasStatistics: {
|
|
1943
1943
|
'f_userinfo_code': '客户编号',
|
|
1944
|
-
'f_user_name': '
|
|
1944
|
+
'f_user_name': '客户姓名',
|
|
1945
1945
|
'f_residential_area': '小区',
|
|
1946
1946
|
'f_address': '地址',
|
|
1947
1947
|
'f_user_phone': '电话',
|
|
@@ -1952,33 +1952,15 @@ export default {
|
|
|
1952
1952
|
'f_meter_classify': '表具类型',
|
|
1953
1953
|
'f_meter_title': '表描述',
|
|
1954
1954
|
'f_price_name': '气价名称',
|
|
1955
|
-
'f_detailprice': '气价详情',
|
|
1956
1955
|
'f_gasproperties': '用气性质',
|
|
1957
|
-
'
|
|
1958
|
-
'f_last_balance': '期初余额',
|
|
1956
|
+
'f_balance': '期初余额',
|
|
1959
1957
|
'f_last_tablebase': '起方',
|
|
1960
|
-
'f_last_shengyu_gas': '起方(液晶)',
|
|
1961
1958
|
'f_tablebase': '止方',
|
|
1962
|
-
'
|
|
1963
|
-
'
|
|
1964
|
-
'
|
|
1965
|
-
'f_real_fee': '期间用气金额',
|
|
1966
|
-
'f_pregas': '期间充值气量',
|
|
1967
|
-
'f_during_price': '期间充值单价',
|
|
1968
|
-
'f_collection': '期间充值金额',
|
|
1969
|
-
'f_bq_f_pregas': '期间补气量',
|
|
1959
|
+
'f_oughtamount': '期间用气量',
|
|
1960
|
+
'f_oughtfee': '期间用气金额',
|
|
1961
|
+
'f_collection': '期末充值金额',
|
|
1970
1962
|
'f_bq_preamount': '期间补气金额',
|
|
1971
|
-
'
|
|
1972
|
-
'f_remain_curbalance': '期末余额',
|
|
1973
|
-
'f_remain_stair1price': '一阶剩余单价',
|
|
1974
|
-
'f_remain_stair1amount': '一阶剩余气量',
|
|
1975
|
-
'f_remain_stair1fee': '一阶剩余金额',
|
|
1976
|
-
'f_remain_stair2price': '二阶剩余单价',
|
|
1977
|
-
'f_remain_stair2amount': '二阶剩余气量',
|
|
1978
|
-
'f_remain_stair2fee': '二阶剩余金额',
|
|
1979
|
-
'f_remain_stair3price': '三阶剩余单价',
|
|
1980
|
-
'f_remain_stair3amount': '三阶剩余气量',
|
|
1981
|
-
'f_remain_stair3fee': '三阶剩余金额',
|
|
1963
|
+
'f_curbalance': '期末余额',
|
|
1982
1964
|
'f_gas_state': '用气状态',
|
|
1983
1965
|
'f_changetable_state': '是否换表',
|
|
1984
1966
|
'f_first_input_date': '首次抄表时间',
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
43
|
-
<res-select-group :show-component="['company','department']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
43
|
+
<res-select-group :show-component="['company','department','slicearea']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
44
44
|
<div class="col-sm-2 form-group">
|
|
45
45
|
<label class="font_normal_body">小区名称</label>
|
|
46
46
|
<v-select :value.sync="model.f_residential_area"
|
|
@@ -351,10 +351,10 @@
|
|
|
351
351
|
this.inputtores.push({label: "微信公众号", value: "微信公众号"})
|
|
352
352
|
},
|
|
353
353
|
async updateParams() {
|
|
354
|
-
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
355
|
-
this.inputtores = [];
|
|
356
|
-
this.inputtores.push({label: "全部", value: ""})
|
|
357
|
-
await this.initSlice(this.f_filialeid)
|
|
354
|
+
// await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
355
|
+
// this.inputtores = [];
|
|
356
|
+
// this.inputtores.push({label: "全部", value: ""})
|
|
357
|
+
// await this.initSlice(this.f_filialeid)
|
|
358
358
|
if(this.allorgid!=null){
|
|
359
359
|
this.allorgid.forEach((res)=>{
|
|
360
360
|
this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
|
|
@@ -431,8 +431,10 @@
|
|
|
431
431
|
//查询多个抄表员时条件
|
|
432
432
|
args.condition += ` and f_inputtor in ( ${str} )`
|
|
433
433
|
}
|
|
434
|
-
|
|
435
|
-
this.
|
|
434
|
+
let ratio1 = this.ratio-0
|
|
435
|
+
let ratio2 = 0-this.ratio
|
|
436
|
+
let condition = `${args.condition} ` + this.orgCondtionStr + ` and amount_ratio>=${ratio1} and amount_ratio<=${ratio2}`
|
|
437
|
+
this.model.search(condition, args.model)
|
|
436
438
|
},
|
|
437
439
|
clear() {
|
|
438
440
|
//清空部门和人员
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
43
|
-
<res-select-group :show-component="['company','department']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
43
|
+
<res-select-group :show-component="['company','department','slicearea']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
44
44
|
<div class="col-sm-2 form-group">
|
|
45
45
|
<label class="font_normal_body">小区名称</label>
|
|
46
46
|
<v-select :value.sync="model.f_residential_area"
|
|
@@ -364,10 +364,8 @@ export default {
|
|
|
364
364
|
this.inputtores.push({label: "微信公众号", value: "微信公众号"})
|
|
365
365
|
},
|
|
366
366
|
async updateParams () {
|
|
367
|
-
await this.$MagLoadParams.loadParam(this.f_filialeid)
|
|
368
367
|
this.inputtores = [];
|
|
369
368
|
this.inputtores.push({label: "全部", value: ""})
|
|
370
|
-
await this.initSlice(this.f_filialeid)
|
|
371
369
|
if (this.allorgid != null) {
|
|
372
370
|
this.allorgid.forEach((res) => {
|
|
373
371
|
this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
|
|
@@ -444,8 +442,10 @@ export default {
|
|
|
444
442
|
//查询多个抄表员时条件
|
|
445
443
|
args.condition += ` and f_inputtor in ( ${str} )`
|
|
446
444
|
}
|
|
447
|
-
|
|
448
|
-
this.
|
|
445
|
+
let ratio1 = this.ratio-0
|
|
446
|
+
let ratio2 = 0-this.ratio
|
|
447
|
+
let condition = `${args.condition} ` + this.orgCondtionStr + ` and amount_ratio>=${ratio1} and amount_ratio<=${ratio2}`
|
|
448
|
+
this.model.search(condition, args.model)
|
|
449
449
|
},
|
|
450
450
|
clear () {
|
|
451
451
|
//清空部门和人员
|
|
@@ -14,7 +14,7 @@ export default function () {
|
|
|
14
14
|
// 机表抄表环比查询
|
|
15
15
|
Vue.component('handplan-ratio-query', (resolve) => { require(['./HandplanRatioQuery.vue'], resolve) })
|
|
16
16
|
// 机表抄表查询
|
|
17
|
-
Vue.component('webhandplan
|
|
17
|
+
Vue.component('webhandplan-ratio-query', (resolve) => { require(['./WebHandplanRatioQuery.vue'], resolve) })
|
|
18
18
|
// 换表查询
|
|
19
19
|
Vue.component('change-meter-query', (resolve) => {
|
|
20
20
|
require(['./ChangeMeterQuery'], resolve)
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
<div class="row">
|
|
10
10
|
<div class="col-sm-2 form-group">
|
|
11
11
|
<label class="font_normal_body">模糊查询</label>
|
|
12
|
-
<input type="text" class="input_search" style="width:60%"
|
|
12
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.searchQuery"
|
|
13
|
+
placeholder='编号 名称 地址 电话 表号 备用电话 租户电话'
|
|
13
14
|
condition="(f_userinfo_code like '%{}%' OR f_user_name like '%{}%' OR f_user_phone like '%{}%' OR f_address like '%{}%' OR f_meternumber like '%{}%' OR f_rent_phone like '%{}%' OR f_zuhu_phone like '%{}%')">
|
|
14
15
|
</div>
|
|
15
16
|
<div class="col-sm-2 form-group">
|
|
@@ -54,27 +55,34 @@
|
|
|
54
55
|
</div>
|
|
55
56
|
|
|
56
57
|
<div class="span" style="float:right;">
|
|
57
|
-
<button class="btn button_clear" v-if="$login.r.includes('其他收费确认收款')"
|
|
58
|
+
<button class="btn button_clear" v-if="$login.r.includes('其他收费确认收款')"
|
|
59
|
+
@click="$parent.$parent.batchConfirmPay()">批量确认收款
|
|
60
|
+
</button>
|
|
58
61
|
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
59
62
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
60
63
|
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
61
64
|
|
|
62
65
|
<export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
|
|
63
66
|
:field="$parent.$parent.getfield" :header="$parent.$parent.other"
|
|
64
|
-
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery"
|
|
67
|
+
sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery"
|
|
68
|
+
template-name='其他收费查询导出'
|
|
65
69
|
:choose-col="true"
|
|
66
70
|
v-if="this.$login.r.includes('其他收费查询导出')"
|
|
67
71
|
></export-excel>
|
|
68
|
-
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
|
|
69
|
-
|
|
72
|
+
<print-data :sum-field="$parent.$parent.getfield" :model="$parent.model"
|
|
73
|
+
:field="$parent.$parent.getfield"
|
|
74
|
+
:defaultfield="$parent.$parent.defaultfield"
|
|
70
75
|
titletable="其他收费记录"
|
|
71
76
|
:sumsmodel="$parent.$parent.sumsmodel"></print-data>
|
|
72
|
-
<div style="float: right"
|
|
77
|
+
<div style="float: right" class="button_spacing"
|
|
78
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
79
|
+
@click="$parent.$parent.hidden()"></div>
|
|
73
80
|
</div>
|
|
74
81
|
</div>
|
|
75
82
|
|
|
76
83
|
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
77
|
-
<res-select-group :initres="$parent.$parent.initres" :cascade
|
|
84
|
+
<res-select-group :initres="$parent.$parent.initres" :cascade=true @re-res="$parent.$parent.getRes"
|
|
85
|
+
v-ref:sel></res-select-group>
|
|
78
86
|
<div class="col-sm-2 form-group">
|
|
79
87
|
<label class="font_normal_body">客户名称</label>
|
|
80
88
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
@@ -93,7 +101,7 @@
|
|
|
93
101
|
:value.sync="model.f_brand_spec" multiple
|
|
94
102
|
:options='$parent.$parent.chargetype'
|
|
95
103
|
@change="$parent.$parent.setTypename"
|
|
96
|
-
|
|
104
|
+
clear-button></v-select>
|
|
97
105
|
</div>
|
|
98
106
|
<div class="col-sm-2 form-group">
|
|
99
107
|
<label class="font_normal_body">品名规格</label>
|
|
@@ -103,7 +111,7 @@
|
|
|
103
111
|
:value.sync="model.f_typename" multiple
|
|
104
112
|
:options='$parent.$parent.typeNameList'
|
|
105
113
|
@change="$parent.$parent.setTypenumber"
|
|
106
|
-
|
|
114
|
+
clear-button>
|
|
107
115
|
</v-select>
|
|
108
116
|
</div>
|
|
109
117
|
<div class="col-sm-2 form-group">
|
|
@@ -156,7 +164,7 @@
|
|
|
156
164
|
multiple="true"
|
|
157
165
|
:value.sync="model.f_state"
|
|
158
166
|
:options='$parent.$parent.chargeState'
|
|
159
|
-
|
|
167
|
+
clear-button>
|
|
160
168
|
</v-select>
|
|
161
169
|
</div>
|
|
162
170
|
|
|
@@ -169,7 +177,7 @@
|
|
|
169
177
|
multiple="true"
|
|
170
178
|
:value.sync="model.f_payment"
|
|
171
179
|
:options='$parent.$parent.payments'
|
|
172
|
-
|
|
180
|
+
clear-button>
|
|
173
181
|
</v-select>
|
|
174
182
|
</div>
|
|
175
183
|
<div class="col-sm-2 form-group">
|
|
@@ -188,7 +196,7 @@
|
|
|
188
196
|
<v-select :value.sync="model.f_meter_classify" multiple
|
|
189
197
|
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_classify"
|
|
190
198
|
condition="f_meter_classify in {}"
|
|
191
|
-
|
|
199
|
+
></v-select>
|
|
192
200
|
</div>
|
|
193
201
|
<div class="col-sm-2 form-group">
|
|
194
202
|
<label class="font_normal_body">气表品牌</label>
|
|
@@ -196,7 +204,7 @@
|
|
|
196
204
|
v-model="model.f_meter_brand"
|
|
197
205
|
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
198
206
|
condition="f_meter_brand in {}"
|
|
199
|
-
|
|
207
|
+
></v-select>
|
|
200
208
|
</div>
|
|
201
209
|
<div class="col-sm-2 form-group">
|
|
202
210
|
<label class="font_normal_body" title="收据起始编号">收据票号</label>
|
|
@@ -216,16 +224,28 @@
|
|
|
216
224
|
condition="f_audit_state in {}"
|
|
217
225
|
></v-select>
|
|
218
226
|
</div>
|
|
227
|
+
<div class="col-sm-2 form-group">
|
|
228
|
+
<label class="font_normal_body">收  款</label>
|
|
229
|
+
<v-select :value.sync="model.f_collection"
|
|
230
|
+
v-model="model.f_collection"
|
|
231
|
+
:options='$parent.$parent.collection'
|
|
232
|
+
placeholder='请选择'
|
|
233
|
+
condition="f_money {}"
|
|
234
|
+
close-on-select clear-button>
|
|
235
|
+
</v-select>
|
|
236
|
+
</div>
|
|
219
237
|
</div>
|
|
220
238
|
</div>
|
|
221
239
|
</criteria>
|
|
222
240
|
|
|
223
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" :optional="true"
|
|
241
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" :optional="true" v-ref:grid>
|
|
224
242
|
<template partial='head'>
|
|
225
243
|
<tr>
|
|
226
|
-
<th><nobr>操作</nobr></th>
|
|
227
244
|
<th>
|
|
228
|
-
|
|
245
|
+
<nobr>操作</nobr>
|
|
246
|
+
</th>
|
|
247
|
+
<th>
|
|
248
|
+
<!-- <nobr>客户编号</nobr>-->
|
|
229
249
|
<data-order field="f_userinfo_code" name="客户编号"
|
|
230
250
|
:order.sync="$parent.$parent.$parent.orderFields.f_userinfo_code"></data-order>
|
|
231
251
|
</th>
|
|
@@ -242,7 +262,7 @@
|
|
|
242
262
|
<nobr>身份证号</nobr>
|
|
243
263
|
</th>
|
|
244
264
|
<th>
|
|
245
|
-
<!-- <nobr>客户地址</nobr>-->
|
|
265
|
+
<!-- <nobr>客户地址</nobr>-->
|
|
246
266
|
<data-order field="f_address" name="客户地址"
|
|
247
267
|
:order.sync="$parent.$parent.$parent.orderFields.f_address"></data-order>
|
|
248
268
|
</th>
|
|
@@ -305,7 +325,7 @@
|
|
|
305
325
|
<nobr>状态</nobr>
|
|
306
326
|
</th>
|
|
307
327
|
<th>
|
|
308
|
-
<!-- <nobr>收费日期</nobr>-->
|
|
328
|
+
<!-- <nobr>收费日期</nobr>-->
|
|
309
329
|
<data-order field="f_operate_date" name="收费日期"
|
|
310
330
|
:order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
|
|
311
331
|
</th>
|
|
@@ -327,122 +347,131 @@
|
|
|
327
347
|
<th>
|
|
328
348
|
<nobr>审核状态</nobr>
|
|
329
349
|
</th>
|
|
330
|
-
<th
|
|
350
|
+
<th>
|
|
351
|
+
<nobr>附件</nobr>
|
|
352
|
+
</th>
|
|
331
353
|
|
|
332
354
|
<!--<th><nobr>查看详情</nobr></th>-->
|
|
333
355
|
</tr>
|
|
334
356
|
</template>
|
|
335
357
|
<template partial='body'>
|
|
336
|
-
<td style="text-align: center;"><nobr>
|
|
337
|
-
<button v-if="$login.r.includes('其他收费确认收款')" class="button_search button_spacing width-60"
|
|
338
|
-
:class="{ 'disabled-button': row.f_audit_state === '审核通过' }"
|
|
339
|
-
:disabled="row.f_audit_state === '审核通过'"
|
|
340
|
-
@click.stop="$parent.$parent.$parent.confirmPay(row)">确认收款</button>
|
|
341
|
-
</nobr></td>
|
|
342
358
|
<td style="text-align: center;">
|
|
343
359
|
<nobr>
|
|
344
|
-
<
|
|
360
|
+
<button v-if="$login.r.includes('其他收费确认收款')" class="button_search button_spacing width-60"
|
|
361
|
+
:class="{ 'disabled-button': row.f_audit_state === '审核通过' }"
|
|
362
|
+
:disabled="row.f_audit_state === '审核通过'"
|
|
363
|
+
@click.stop="$parent.$parent.$parent.confirmPay(row)">确认收款
|
|
364
|
+
</button>
|
|
365
|
+
</nobr>
|
|
366
|
+
</td>
|
|
367
|
+
<td style="text-align: center;">
|
|
368
|
+
<nobr>
|
|
369
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{ row.f_userinfo_code }}</a></span></nobr>
|
|
345
370
|
</td>
|
|
346
371
|
<td style="text-align: center;">
|
|
347
|
-
<nobr>{{row.f_olduserinfo_code}}</nobr>
|
|
372
|
+
<nobr>{{ row.f_olduserinfo_code }}</nobr>
|
|
348
373
|
</td>
|
|
349
374
|
<td style="text-align: center;">
|
|
350
|
-
<nobr>{{row.id}}</nobr>
|
|
375
|
+
<nobr>{{ row.id }}</nobr>
|
|
351
376
|
</td>
|
|
352
377
|
<td style="text-align: center;">
|
|
353
|
-
<nobr>{{row.f_user_name}}</nobr>
|
|
378
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
354
379
|
</td>
|
|
355
380
|
<td style="text-align: center;">
|
|
356
|
-
<nobr>{{row.f_idnumber}}</nobr>
|
|
381
|
+
<nobr>{{ row.f_idnumber }}</nobr>
|
|
357
382
|
</td>
|
|
358
383
|
<td style="text-align: center;">
|
|
359
|
-
<nobr>{{row.f_address}}</nobr>
|
|
384
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
360
385
|
</td>
|
|
361
386
|
<td style="text-align: center;">
|
|
362
|
-
<nobr>{{row.f_meternumber}}</nobr>
|
|
387
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
363
388
|
</td>
|
|
364
389
|
<td style="text-align: center;">
|
|
365
|
-
<nobr>{{row.f_user_phone}}</nobr>
|
|
390
|
+
<nobr>{{ row.f_user_phone }}</nobr>
|
|
366
391
|
</td>
|
|
367
392
|
<td style="text-align: center;">
|
|
368
|
-
<nobr>{{row.f_meter_classify}}</nobr>
|
|
393
|
+
<nobr>{{ row.f_meter_classify }}</nobr>
|
|
369
394
|
</td>
|
|
370
395
|
<td style="text-align: center;">
|
|
371
|
-
<nobr>{{row.f_meter_brand}}</nobr>
|
|
396
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
372
397
|
</td>
|
|
373
398
|
<td style="text-align: center;">
|
|
374
|
-
<nobr>{{row.f_card_id}}</nobr>
|
|
399
|
+
<nobr>{{ row.f_card_id }}</nobr>
|
|
375
400
|
</td>
|
|
376
401
|
|
|
377
402
|
<td style="text-align: center;">
|
|
378
|
-
<nobr>{{row.f_bill_number}}</nobr>
|
|
403
|
+
<nobr>{{ row.f_bill_number }}</nobr>
|
|
379
404
|
</td>
|
|
380
405
|
<td style="text-align: center;">
|
|
381
|
-
<nobr>{{row.f_brand_spec}}</nobr>
|
|
406
|
+
<nobr>{{ row.f_brand_spec }}</nobr>
|
|
382
407
|
</td>
|
|
383
408
|
<td style="text-align: center;">
|
|
384
|
-
<nobr>{{row.f_typename}}</nobr>
|
|
409
|
+
<nobr>{{ row.f_typename }}</nobr>
|
|
385
410
|
</td>
|
|
386
411
|
<td style="text-align: center;">
|
|
387
|
-
<nobr>{{row.f_typenumber}}</nobr>
|
|
412
|
+
<nobr>{{ row.f_typenumber }}</nobr>
|
|
388
413
|
</td>
|
|
389
414
|
<td style="text-align: center;">
|
|
390
|
-
<nobr>{{row.f_unitprice}}</nobr>
|
|
415
|
+
<nobr>{{ row.f_unitprice }}</nobr>
|
|
391
416
|
</td>
|
|
392
417
|
<td style="text-align: center;">
|
|
393
|
-
<nobr>{{row.f_number}}</nobr>
|
|
418
|
+
<nobr>{{ row.f_number }}</nobr>
|
|
394
419
|
</td>
|
|
395
420
|
<td style="text-align: center;">
|
|
396
|
-
<nobr>{{row.f_overlength_unitprice}}</nobr>
|
|
421
|
+
<nobr>{{ row.f_overlength_unitprice }}</nobr>
|
|
397
422
|
</td>
|
|
398
423
|
<td style="text-align: center;">
|
|
399
|
-
<nobr>{{row.f_overlength_number}}</nobr>
|
|
424
|
+
<nobr>{{ row.f_overlength_number }}</nobr>
|
|
400
425
|
</td>
|
|
401
426
|
<td style="text-align: center;">
|
|
402
|
-
<nobr>{{row.f_discounts_money_detail}}</nobr>
|
|
427
|
+
<nobr>{{ row.f_discounts_money_detail }}</nobr>
|
|
403
428
|
</td>
|
|
404
429
|
<td style="text-align: center;">
|
|
405
|
-
<nobr>{{row.f_actual_materials_detail}}</nobr>
|
|
430
|
+
<nobr>{{ row.f_actual_materials_detail }}</nobr>
|
|
406
431
|
</td>
|
|
407
432
|
<td style="text-align: center;">
|
|
408
|
-
<nobr>{{row.f_disc_money}}</nobr>
|
|
433
|
+
<nobr>{{ row.f_disc_money }}</nobr>
|
|
409
434
|
</td>
|
|
410
435
|
<td style="text-align: center;">
|
|
411
|
-
<nobr>{{row.f_money}}</nobr>
|
|
436
|
+
<nobr>{{ row.f_money }}</nobr>
|
|
412
437
|
</td>
|
|
413
438
|
<td style="text-align: center;">
|
|
414
|
-
<nobr>{{row.f_payment}}</nobr>
|
|
439
|
+
<nobr>{{ row.f_payment }}</nobr>
|
|
415
440
|
</td>
|
|
416
441
|
<td style="text-align: center;">
|
|
417
|
-
<nobr>{{row.f_state}}</nobr>
|
|
442
|
+
<nobr>{{ row.f_state }}</nobr>
|
|
418
443
|
</td>
|
|
419
444
|
<td style="text-align: center;">
|
|
420
|
-
<nobr>{{row.f_operate_date}}</nobr>
|
|
445
|
+
<nobr>{{ row.f_operate_date }}</nobr>
|
|
421
446
|
</td>
|
|
422
447
|
<td style="text-align: center;">
|
|
423
|
-
<nobr>{{row.f_service_person}}</nobr>
|
|
448
|
+
<nobr>{{ row.f_service_person }}</nobr>
|
|
424
449
|
</td>
|
|
425
450
|
<td style="text-align: center;">
|
|
426
|
-
<nobr>{{row.f_comments}}</nobr>
|
|
451
|
+
<nobr>{{ row.f_comments }}</nobr>
|
|
427
452
|
</td>
|
|
428
453
|
<td style="text-align: center;">
|
|
429
|
-
<nobr>{{row.f_operator}}</nobr>
|
|
454
|
+
<nobr>{{ row.f_operator }}</nobr>
|
|
430
455
|
</td>
|
|
431
456
|
<td style="text-align: center;">
|
|
432
|
-
<nobr>{{row.f_depname}}</nobr>
|
|
457
|
+
<nobr>{{ row.f_depname }}</nobr>
|
|
433
458
|
</td>
|
|
434
459
|
<td style="text-align: center;">
|
|
435
|
-
<nobr>{{row.f_orgname}}</nobr>
|
|
460
|
+
<nobr>{{ row.f_orgname }}</nobr>
|
|
436
461
|
</td>
|
|
437
462
|
<td style="text-align: center;">
|
|
438
|
-
<nobr>{{row.f_audit_state}}</nobr>
|
|
463
|
+
<nobr>{{ row.f_audit_state }}</nobr>
|
|
464
|
+
</td>
|
|
465
|
+
<td style="text-align: center;">
|
|
466
|
+
<nobr>
|
|
467
|
+
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">
|
|
468
|
+
查看
|
|
469
|
+
</button>
|
|
470
|
+
</nobr>
|
|
439
471
|
</td>
|
|
440
|
-
<td style="text-align: center;"><nobr>
|
|
441
|
-
<button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
|
|
442
|
-
</nobr></td>
|
|
443
472
|
|
|
444
473
|
<!--<td style="text-align: center;">-->
|
|
445
|
-
|
|
474
|
+
<!--<button class="btn btn-link" @click.stop="$parent.$parent.$parent.showchargedetail(row)">查看</button>-->
|
|
446
475
|
<!--</td>-->
|
|
447
476
|
</template>
|
|
448
477
|
<template partial='foot'></template>
|
|
@@ -456,383 +485,405 @@
|
|
|
456
485
|
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
457
486
|
汇总信息
|
|
458
487
|
</td>
|
|
459
|
-
<td
|
|
460
|
-
|
|
488
|
+
<td
|
|
489
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
490
|
+
收款合计: {{ sumsmodel.f_money }}
|
|
461
491
|
</td>
|
|
462
|
-
<td
|
|
463
|
-
|
|
492
|
+
<td
|
|
493
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
494
|
+
总户数合计: {{ sumsmodel.hushu }}
|
|
464
495
|
</td>
|
|
465
496
|
</tr>
|
|
466
497
|
</table>
|
|
467
498
|
|
|
468
499
|
</div>
|
|
469
500
|
<div class="flex" v-if="show">
|
|
470
|
-
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
|
|
501
|
+
<user-info-detail-manage-new :f_userinfo_id="rowdata.f_userinfo_id"
|
|
502
|
+
@cancel-main="cancel"></user-info-detail-manage-new>
|
|
471
503
|
</div>
|
|
472
504
|
</div>
|
|
473
|
-
<modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;"
|
|
505
|
+
<modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle
|
|
506
|
+
backdrop="false">
|
|
474
507
|
<article slot="modal-body">
|
|
475
|
-
<upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false"
|
|
508
|
+
<upload :blodid="selected.f_userinfo_id" v-ref:upload isupload="false" takeimg="false" fusetype="收费"
|
|
509
|
+
:isremark="false" style="width:auto"></upload>
|
|
476
510
|
</article>
|
|
477
511
|
<footer slot="modal-footer" class="modal-footer">
|
|
478
512
|
</footer>
|
|
479
513
|
</modal>
|
|
480
514
|
</div>
|
|
481
515
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
516
|
+
<modal v-if="showdetail" :show.sync="showdetail" title="详细记录" v-ref:modal large backdrop="false">
|
|
517
|
+
<article slot="modal-body" class="modal-body">
|
|
518
|
+
<other-charge-detail-query :otherchargeid="otherchargeid"></other-charge-detail-query>
|
|
519
|
+
</article>
|
|
520
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
521
|
+
</footer>
|
|
522
|
+
</modal>
|
|
489
523
|
|
|
490
524
|
</template>
|
|
491
525
|
|
|
492
526
|
<script>
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
527
|
+
import {PagedList, HttpResetClass} from 'vue-client'
|
|
528
|
+
import defaultPrint from './config/DefaultPrint'
|
|
529
|
+
import exportConfig from './config/exportConfig'
|
|
530
|
+
import OtherChargeDetailQuery from "./OtherChargeDetailQuery";
|
|
497
531
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
532
|
+
let readySomething = async function (self) {
|
|
533
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
534
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
535
|
+
// self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
536
|
+
// self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
537
|
+
// await self.$refs.paged.$refs.cri.search()
|
|
538
|
+
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
539
|
+
await self.$MagLoadParams.loadParam()
|
|
506
540
|
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
541
|
+
self.initParams()
|
|
542
|
+
self.initSecuritypersons()
|
|
543
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
544
|
+
}
|
|
545
|
+
export default {
|
|
546
|
+
components: {
|
|
547
|
+
OtherChargeDetailQuery
|
|
548
|
+
},
|
|
549
|
+
props: ['data'],
|
|
550
|
+
title: '其他收费查询',
|
|
551
|
+
data() {
|
|
552
|
+
return {
|
|
553
|
+
data: {},
|
|
554
|
+
other: [],
|
|
555
|
+
footer: [],
|
|
556
|
+
model: new PagedList('api/af-revenue/sql/otherChargeQuery', 20, {orderitem: this.orderitem ? `${this.orderitem}` : " 'f_operate_date desc'"}, {
|
|
557
|
+
f_money: 0,
|
|
558
|
+
hushu: 0
|
|
559
|
+
}),
|
|
560
|
+
criteriaShow: false,
|
|
561
|
+
orgCondtionStr: '',
|
|
562
|
+
modelval: [],
|
|
563
|
+
printshow: false,
|
|
564
|
+
all: false,
|
|
565
|
+
fields: {},
|
|
566
|
+
config: {
|
|
567
|
+
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']
|
|
568
|
+
},
|
|
569
|
+
//排序
|
|
570
|
+
orderitem: 'f_operate_date desc',
|
|
571
|
+
orderFields: {
|
|
572
|
+
f_operate_date: 'no'
|
|
573
|
+
},
|
|
574
|
+
//默认打印列
|
|
575
|
+
defaultfield: [],
|
|
576
|
+
thead: '',
|
|
577
|
+
tfoot: '',
|
|
578
|
+
initres: {
|
|
579
|
+
org: [this.$login.f.orgid],
|
|
580
|
+
dep: [],
|
|
581
|
+
user: [],
|
|
582
|
+
},
|
|
583
|
+
show: false,
|
|
584
|
+
showdetail: false,
|
|
585
|
+
otherchargeid: '',
|
|
586
|
+
rowdata: {},
|
|
587
|
+
meterbrands: [],
|
|
588
|
+
services: [],
|
|
589
|
+
//合计数据
|
|
590
|
+
sumsmodel: {},
|
|
591
|
+
showupload: false,
|
|
592
|
+
selected: {},
|
|
593
|
+
// 用气性质
|
|
594
|
+
gasproperties: [],
|
|
595
|
+
// 品名规格
|
|
596
|
+
typeNameList: [],
|
|
597
|
+
// 型号
|
|
598
|
+
typenumberList: [],
|
|
599
|
+
selectedRows: []
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
ready() {
|
|
603
|
+
readySomething(this).then(() => {
|
|
604
|
+
this.$emit('ready')
|
|
605
|
+
}).catch((error) => {
|
|
606
|
+
this.$emit('error', error)
|
|
607
|
+
})
|
|
608
|
+
},
|
|
609
|
+
methods: {
|
|
610
|
+
batchConfirmPay() {
|
|
611
|
+
if (this.$refs.paged.$refs.grid.getRowData() === 0) {
|
|
612
|
+
this.$showMessage('请先选择要确认的收款项!');
|
|
613
|
+
return;
|
|
563
614
|
}
|
|
615
|
+
this.$showMessage(`是否确认批量收款,数量 ${this.$refs.paged.$refs.grid.getRowData().length} 个`, ['confirm', 'cancel']).then(
|
|
616
|
+
(response) => {
|
|
617
|
+
if (response === 'confirm') {
|
|
618
|
+
const rowIds = this.$refs.paged.$refs.grid.getRowData().map(row => row.id)
|
|
619
|
+
const sql = `update t_othercharge
|
|
620
|
+
set f_audit_state = '审核通过'
|
|
621
|
+
where id in (${rowIds.map(id => `'${id}'`).join(', ')})`
|
|
622
|
+
console.log(sql)
|
|
623
|
+
const updateData = this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql}}, {
|
|
624
|
+
resolveMsg: '已确认',
|
|
625
|
+
rejectMsg: '审核失败!!!'
|
|
626
|
+
});
|
|
627
|
+
updateData.then(() => {
|
|
628
|
+
this.$refs.paged.$refs.cri.model.f_audit_state = ['未审核']
|
|
629
|
+
this.search();
|
|
630
|
+
});
|
|
631
|
+
} else if (response === 'cancel') {
|
|
632
|
+
this.$dispatch('cancel');
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
);
|
|
636
|
+
},
|
|
637
|
+
confirmPay(row) {
|
|
638
|
+
console.log('---------', row)
|
|
639
|
+
this.otherchargeid = row.f_othercharge_id
|
|
640
|
+
this.$showMessage('是否确认收款?', ['confirm', 'cancel']).then(
|
|
641
|
+
(response) => {
|
|
642
|
+
if (response === 'confirm') {
|
|
643
|
+
let sql = `update t_othercharge
|
|
644
|
+
set f_audit_state = '审核通过'
|
|
645
|
+
where id = '${row.id}'`
|
|
646
|
+
let updateData = this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sql}}, {
|
|
647
|
+
resolveMsg: '已确认',
|
|
648
|
+
rejectMsg: '审核失败!!!'
|
|
649
|
+
})
|
|
650
|
+
this.search()
|
|
651
|
+
} else if (response === 'cancel') {
|
|
652
|
+
this.$dispatch('cancel')
|
|
653
|
+
}
|
|
654
|
+
})
|
|
564
655
|
},
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
656
|
+
view(row) {
|
|
657
|
+
this.showupload = true
|
|
658
|
+
this.selected = row
|
|
659
|
+
},
|
|
660
|
+
initParams() {
|
|
661
|
+
// 初始化气表品牌
|
|
662
|
+
let brandArr = []
|
|
663
|
+
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
664
|
+
let temp = {}
|
|
665
|
+
temp.label = item.label
|
|
666
|
+
temp.value = item.value.f_meter_brand
|
|
667
|
+
brandArr.push(temp)
|
|
570
668
|
})
|
|
669
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
571
670
|
},
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
(
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
this.$refs.paged.$refs.cri.model.f_audit_state =['未审核']
|
|
587
|
-
this.search();
|
|
588
|
-
});
|
|
589
|
-
} else if (response === 'cancel') {
|
|
590
|
-
this.$dispatch('cancel');
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
);
|
|
594
|
-
},
|
|
595
|
-
confirmPay(row){
|
|
596
|
-
console.log('---------',row)
|
|
597
|
-
this.otherchargeid = row.f_othercharge_id
|
|
598
|
-
this.$showMessage('是否确认收款?', ['confirm', 'cancel']).then(
|
|
599
|
-
(response) => {
|
|
600
|
-
if (response === 'confirm') {
|
|
601
|
-
let sql = `update t_othercharge set f_audit_state = '审核通过' where id = '${row.id}'`
|
|
602
|
-
let updateData = this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sql}}, {resolveMsg: '已确认', rejectMsg: '审核失败!!!'})
|
|
603
|
-
this.search()
|
|
604
|
-
} else if (response === 'cancel') {
|
|
605
|
-
this.$dispatch('cancel')
|
|
671
|
+
// 初始化安检人
|
|
672
|
+
initSecuritypersons() {
|
|
673
|
+
let origin = this.$appdata.getSingleValue('服务人员来源')
|
|
674
|
+
if (origin) {
|
|
675
|
+
try {
|
|
676
|
+
this.services = []
|
|
677
|
+
let http = new HttpResetClass()
|
|
678
|
+
http.load('post', '/rs/search', {
|
|
679
|
+
source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
|
|
680
|
+
userid: this.$login.f.id
|
|
681
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
682
|
+
console.log('获取安检人员', res.data)
|
|
683
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
684
|
+
this.services.push({label: res.data[i].name, value: res.data[i].name})
|
|
606
685
|
}
|
|
607
686
|
})
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
this.showupload = true
|
|
611
|
-
this.selected= row
|
|
612
|
-
},
|
|
613
|
-
initParams() {
|
|
614
|
-
// 初始化气表品牌
|
|
615
|
-
let brandArr = []
|
|
616
|
-
this.$MagGetSaleParam.getGasbrand().forEach((item) => {
|
|
617
|
-
let temp = {}
|
|
618
|
-
temp.label = item.label
|
|
619
|
-
temp.value = item.value.f_meter_brand
|
|
620
|
-
brandArr.push(temp)
|
|
621
|
-
})
|
|
622
|
-
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
623
|
-
},
|
|
624
|
-
// 初始化安检人
|
|
625
|
-
initSecuritypersons () {
|
|
626
|
-
let origin = this.$appdata.getSingleValue('服务人员来源')
|
|
627
|
-
if (origin) {
|
|
628
|
-
try {
|
|
629
|
-
this.services = []
|
|
630
|
-
let http = new HttpResetClass()
|
|
631
|
-
http.load('post', '/rs/search', {
|
|
632
|
-
source: `this.getParentByType($organization$).getChildByName($${origin}$).getUsers()`,
|
|
633
|
-
userid: this.$login.f.id
|
|
634
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
635
|
-
console.log('获取安检人员', res.data)
|
|
636
|
-
for (let i = 0; i < res.data.length; i++) {
|
|
637
|
-
this.services.push({label: res.data[i].name, value: res.data[i].name})
|
|
638
|
-
}
|
|
639
|
-
})
|
|
640
|
-
} catch (e) {
|
|
641
|
-
console.log('获取安检人员失败')
|
|
642
|
-
}
|
|
643
|
-
}else {
|
|
644
|
-
this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
getotherfooter(){
|
|
648
|
-
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
649
|
-
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
650
|
-
this.other=[];
|
|
651
|
-
this.footer=[];
|
|
652
|
-
let exportdata = this.getCondition;
|
|
653
|
-
let otherInData=[];
|
|
654
|
-
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
655
|
-
let footerData=[],exportfield=this.getfield;
|
|
656
|
-
footerData.push("合计");
|
|
657
|
-
let self = this;
|
|
658
|
-
for(var field in self.sumsmodel){
|
|
659
|
-
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
660
|
-
}
|
|
661
|
-
this.footer.push(footerData);
|
|
662
|
-
this.other.push(otherInData);
|
|
663
|
-
},
|
|
664
|
-
search(){
|
|
665
|
-
this.$refs.paged.$refs.cri.search()
|
|
666
|
-
},
|
|
667
|
-
async selfSearch(args) {
|
|
668
|
-
if (this.data) {
|
|
669
|
-
this.$parent.$parent.$parent.data.startDate=this.$refs.paged.$refs.cri.model.startDate
|
|
670
|
-
this.$parent.$parent.$parent.data.endDate=this.$refs.paged.$refs.cri.model.endDate
|
|
687
|
+
} catch (e) {
|
|
688
|
+
console.log('获取安检人员失败')
|
|
671
689
|
}
|
|
672
|
-
|
|
690
|
+
} else {
|
|
691
|
+
this.services = [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
getotherfooter() {
|
|
695
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
696
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
697
|
+
this.other = [];
|
|
698
|
+
this.footer = [];
|
|
699
|
+
let exportdata = this.getCondition;
|
|
700
|
+
let otherInData = [];
|
|
701
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
702
|
+
let footerData = [], exportfield = this.getfield;
|
|
703
|
+
footerData.push("合计");
|
|
704
|
+
let self = this;
|
|
705
|
+
for (var field in self.sumsmodel) {
|
|
706
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
707
|
+
}
|
|
708
|
+
this.footer.push(footerData);
|
|
709
|
+
this.other.push(otherInData);
|
|
710
|
+
},
|
|
711
|
+
search() {
|
|
712
|
+
this.$refs.paged.$refs.cri.search()
|
|
713
|
+
},
|
|
714
|
+
async selfSearch(args) {
|
|
715
|
+
if (this.data) {
|
|
716
|
+
this.$parent.$parent.$parent.data.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
717
|
+
this.$parent.$parent.$parent.data.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
718
|
+
}
|
|
719
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
673
720
|
await this.model.search(args.condition, args.model)
|
|
674
721
|
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
675
|
-
this.sumsmodel.hushu =[...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
|
|
676
|
-
if(this.sumsmodel.hushu===null){
|
|
722
|
+
this.sumsmodel.hushu = [...new Set(this.$refs.paged.$refs.grid.model.rows.map(item => item.f_userinfo_code))].length
|
|
723
|
+
if (this.sumsmodel.hushu === null) {
|
|
677
724
|
this.sumsmodel.hushu = 0
|
|
678
725
|
}
|
|
679
726
|
},
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}
|
|
742
|
-
})
|
|
743
|
-
this.modelval = sortModel
|
|
744
|
-
console.log('选择的打印的字段', this.modelval)
|
|
745
|
-
},
|
|
746
|
-
showchargedetail(row){
|
|
747
|
-
this.showdetail=true
|
|
748
|
-
this.otherchargeid=row.id
|
|
749
|
-
},
|
|
750
|
-
userTypeChange (f_user_type) {
|
|
751
|
-
this.gasproperties = []
|
|
752
|
-
if (f_user_type) {
|
|
753
|
-
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
754
|
-
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
755
|
-
} else {
|
|
756
|
-
this.gasproperties = [{label: '全部', value: ''}]
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
setTypename (val) {
|
|
760
|
-
this.typenumberList = []
|
|
761
|
-
this.typeNameList = this.$appdata.getParam(val)
|
|
762
|
-
},
|
|
763
|
-
setTypenumber (val) {
|
|
764
|
-
this.typenumberList = this.$appdata.getParam(val)
|
|
765
|
-
},
|
|
766
|
-
sort (field, rule) {
|
|
767
|
-
// 将所有排序方式设为不排序,实现相互排斥
|
|
768
|
-
for (let key in this.orderFields) {
|
|
769
|
-
if (key === field) {
|
|
770
|
-
this.orderFields[key] = rule
|
|
771
|
-
} else {
|
|
772
|
-
this.orderFields[key] = 'no'
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
// 如果新规则不排序,还原为默认排序
|
|
776
|
-
if (rule === 'no') {
|
|
777
|
-
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
778
|
-
} else {
|
|
779
|
-
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
727
|
+
clear() {
|
|
728
|
+
//清空部门和人员
|
|
729
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
|
|
730
|
+
//部门和人员变为全选
|
|
731
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
|
|
732
|
+
this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
|
|
733
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
734
|
+
this.$refs.paged.$refs.cri.model[key] = []
|
|
735
|
+
})
|
|
736
|
+
},
|
|
737
|
+
show() {
|
|
738
|
+
this.criteriaShow = true
|
|
739
|
+
},
|
|
740
|
+
hidden() {
|
|
741
|
+
this.criteriaShow = !this.criteriaShow
|
|
742
|
+
},
|
|
743
|
+
getRes(obj) {
|
|
744
|
+
this.orgCondtionStr = obj
|
|
745
|
+
},
|
|
746
|
+
cancel() {
|
|
747
|
+
this.show = false
|
|
748
|
+
},
|
|
749
|
+
dealmsg(val) {
|
|
750
|
+
console.log('---------------dealmsg')
|
|
751
|
+
this.rowdata = val
|
|
752
|
+
this.show = true
|
|
753
|
+
val.model = this.model.model
|
|
754
|
+
this.$dispatch('deal-msg', val)
|
|
755
|
+
},
|
|
756
|
+
stamp() {
|
|
757
|
+
this.all = false
|
|
758
|
+
//默认选择要打印的列
|
|
759
|
+
this.modelval = defaultPrint.config
|
|
760
|
+
this.fields = this.getfield
|
|
761
|
+
console.log('所有打印字段', this.fields)
|
|
762
|
+
this.printshow = true
|
|
763
|
+
this.put()
|
|
764
|
+
},
|
|
765
|
+
put() {
|
|
766
|
+
// 对Modelval进行排序
|
|
767
|
+
this.sortModelval()
|
|
768
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>其他收费查询统计报表</th></tr><tr>`
|
|
769
|
+
for (let key of this.modelval) {
|
|
770
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
771
|
+
}
|
|
772
|
+
this.thead += '</tr>'
|
|
773
|
+
},
|
|
774
|
+
print() {
|
|
775
|
+
this.$refs.print.PrintAsFile()
|
|
776
|
+
this.printshow = false
|
|
777
|
+
},
|
|
778
|
+
close() {
|
|
779
|
+
this.printshow = false
|
|
780
|
+
this.all = false
|
|
781
|
+
},
|
|
782
|
+
// 对选择的列进行排序
|
|
783
|
+
sortModelval() {
|
|
784
|
+
let sortModel = []
|
|
785
|
+
Object.keys(this.fields).forEach((key) => {
|
|
786
|
+
if (this.modelval.includes(key)) {
|
|
787
|
+
sortModel.push(key)
|
|
780
788
|
}
|
|
781
|
-
|
|
782
|
-
|
|
789
|
+
})
|
|
790
|
+
this.modelval = sortModel
|
|
791
|
+
console.log('选择的打印的字段', this.modelval)
|
|
792
|
+
},
|
|
793
|
+
showchargedetail(row) {
|
|
794
|
+
this.showdetail = true
|
|
795
|
+
this.otherchargeid = row.id
|
|
796
|
+
},
|
|
797
|
+
userTypeChange(f_user_type) {
|
|
798
|
+
this.gasproperties = []
|
|
799
|
+
if (f_user_type) {
|
|
800
|
+
this.$refs.paged.$refs.cri.model.f_gasproperties = ''
|
|
801
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
|
|
802
|
+
} else {
|
|
803
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
783
804
|
}
|
|
784
805
|
},
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
806
|
+
setTypename(val) {
|
|
807
|
+
this.typenumberList = []
|
|
808
|
+
this.typeNameList = this.$appdata.getParam(val)
|
|
809
|
+
},
|
|
810
|
+
setTypenumber(val) {
|
|
811
|
+
this.typenumberList = this.$appdata.getParam(val)
|
|
812
|
+
},
|
|
813
|
+
sort(field, rule) {
|
|
814
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
815
|
+
for (let key in this.orderFields) {
|
|
816
|
+
if (key === field) {
|
|
817
|
+
this.orderFields[key] = rule
|
|
789
818
|
} else {
|
|
790
|
-
this.
|
|
791
|
-
this.put()
|
|
819
|
+
this.orderFields[key] = 'no'
|
|
792
820
|
}
|
|
793
|
-
}
|
|
794
|
-
|
|
821
|
+
}
|
|
822
|
+
// 如果新规则不排序,还原为默认排序
|
|
823
|
+
if (rule === 'no') {
|
|
824
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
825
|
+
} else {
|
|
826
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
this.search()
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
watch: {
|
|
833
|
+
'all'(val) {
|
|
834
|
+
if (val) {
|
|
835
|
+
this.modelval = this.bodyData
|
|
836
|
+
} else {
|
|
837
|
+
this.modelval = defaultPrint.config
|
|
795
838
|
this.put()
|
|
796
|
-
},
|
|
797
|
-
sumsmodel:{
|
|
798
|
-
handler: function(val) {
|
|
799
|
-
this.getotherfooter();
|
|
800
|
-
},
|
|
801
|
-
deep: true
|
|
802
839
|
}
|
|
803
840
|
},
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
userTypes() {
|
|
820
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
821
|
-
},
|
|
822
|
-
chargeState() {
|
|
823
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
824
|
-
},
|
|
825
|
-
metertypes() {
|
|
826
|
-
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
827
|
-
},
|
|
828
|
-
payments() {
|
|
829
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
|
|
830
|
-
},
|
|
831
|
-
auditState() {
|
|
832
|
-
return [{label: '全部', value: ''}, {label: '未审核', value: '未审核'}, {label: '审核通过', value: '审核通过'}]
|
|
833
|
-
}
|
|
841
|
+
'modelval.length'() {
|
|
842
|
+
this.put()
|
|
843
|
+
},
|
|
844
|
+
sumsmodel: {
|
|
845
|
+
handler: function (val) {
|
|
846
|
+
this.getotherfooter();
|
|
847
|
+
},
|
|
848
|
+
deep: true
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
computed: {
|
|
852
|
+
getCondition() {
|
|
853
|
+
return {
|
|
854
|
+
condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
|
|
855
|
+
orderitem: this.orderitem ? `${this.orderitem}` : " f_operate_date desc"
|
|
834
856
|
}
|
|
835
|
-
|
|
857
|
+
},
|
|
858
|
+
service_person() {
|
|
859
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('服务人员')]
|
|
860
|
+
},
|
|
861
|
+
getfield() {
|
|
862
|
+
return exportConfig.otherchargeConfig
|
|
863
|
+
},
|
|
864
|
+
chargetype() {
|
|
865
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('其他收费类型查询')]
|
|
866
|
+
},
|
|
867
|
+
userTypes() {
|
|
868
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
|
|
869
|
+
},
|
|
870
|
+
chargeState() {
|
|
871
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
|
|
872
|
+
},
|
|
873
|
+
metertypes() {
|
|
874
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
875
|
+
},
|
|
876
|
+
payments() {
|
|
877
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')]
|
|
878
|
+
},
|
|
879
|
+
auditState() {
|
|
880
|
+
return [{label: '全部', value: ''}, {label: '未审核', value: '未审核'}, {label: '审核通过', value: '审核通过'}]
|
|
881
|
+
},
|
|
882
|
+
collection() {
|
|
883
|
+
return [{label: '全部', value: ''}, {label: '等于0', value: '= 0'}, {label: '不等于0', value: '!= 0'}]
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
}
|
|
836
887
|
</script>
|
|
837
888
|
<style>
|
|
838
889
|
.disabled-button {
|