sale-client 3.6.40 → 3.6.41
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
|
@@ -508,9 +508,9 @@ export default {
|
|
|
508
508
|
// //设置颜色模式 只针对截图
|
|
509
509
|
bb () {
|
|
510
510
|
let camidx = 0
|
|
511
|
-
if (this.
|
|
511
|
+
if (this.capID === 1) {
|
|
512
512
|
camidx = 0
|
|
513
|
-
} else if (this.
|
|
513
|
+
} else if (this.capID === 2) {
|
|
514
514
|
camidx = 1
|
|
515
515
|
} else {
|
|
516
516
|
this.$showAlert('请先打开视频', 'warning', 2000)
|
|
@@ -1,285 +1,285 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="flex">
|
|
4
|
-
<div class="basic-main" :class="{'basic-main':!selectRow,'binary-left':selectRow}" style="height: 98%;">
|
|
5
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
-
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch"
|
|
7
|
-
v-show="$parent.searchshow">
|
|
8
|
-
<div novalidate class="form-inline auto" partial>
|
|
9
|
-
<div class="row">
|
|
10
|
-
<res-select-group :style="$parent.$parent.style" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
|
|
11
|
-
<div
|
|
12
|
-
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
13
|
-
class="form-group">
|
|
14
|
-
<label class="font_normal_body">用户编号</label>
|
|
15
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_code"
|
|
16
|
-
condition="ui.f_userinfo_code like '%{}%'" placeholder='用户编号'>
|
|
17
|
-
</div>
|
|
18
|
-
<div style="float:right;margin-top: 8px" class="span">
|
|
19
|
-
<button class="button_spacing button_search" @click="search()">查 询</button>
|
|
20
|
-
<export-excel v-if="$parent.$parent.excelTable"
|
|
21
|
-
class="auto"
|
|
22
|
-
:data="{condition: $parent.$parent.condition}"
|
|
23
|
-
:field="$parent.$parent.getfield"
|
|
24
|
-
:footer="$parent.$parent.footer"
|
|
25
|
-
sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="cardChargeQuery"
|
|
26
|
-
template-name='卡表收费查询'
|
|
27
|
-
:choose-col="true"></export-excel>
|
|
28
|
-
<div
|
|
29
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
30
|
-
@click="$parent.$parent.hidden()"
|
|
31
|
-
class="button_spacing"
|
|
32
|
-
style="float: right"></div>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
36
|
-
<div
|
|
37
|
-
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
38
|
-
class="form-group">
|
|
39
|
-
<label class="font_normal_body">收费编号</label>
|
|
40
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.id"
|
|
41
|
-
condition="sg.id = '{}'" placeholder='用户编号'>
|
|
42
|
-
</div>
|
|
43
|
-
<div
|
|
44
|
-
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
45
|
-
class="form-group">
|
|
46
|
-
<label class="font_normal_body">用户姓名</label>
|
|
47
|
-
<input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
|
|
48
|
-
condition="ui.f_user_name = '{}'" placeholder='用户姓名'>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="col-sm-2 form-group">
|
|
51
|
-
<label class="font_normal_body">客户类型</label>
|
|
52
|
-
<v-select :value.sync="model.f_user_type"
|
|
53
|
-
@change="$parent.$parent.userTypeChange()"
|
|
54
|
-
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
55
|
-
condition="sg.f_user_type = '{}'"
|
|
56
|
-
close-on-select></v-select>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="col-sm-2 form-group">
|
|
59
|
-
<label class="font_normal_body">用气性质</label>
|
|
60
|
-
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
61
|
-
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
62
|
-
condition="sg.f_gasproperties = '{}'"
|
|
63
|
-
close-on-select></v-select>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="col-sm-2 form-group">
|
|
66
|
-
<label class="font_normal_body">购气方式</label>
|
|
67
|
-
<v-select :value.sync="model.f_payment" v-model="model.f_payment"
|
|
68
|
-
:options='$parent.$parent.payments' placeholder='请选择'
|
|
69
|
-
condition="sg.payments = '{}'"
|
|
70
|
-
close-on-select></v-select>
|
|
71
|
-
</div>
|
|
72
|
-
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}">
|
|
73
|
-
<label class="font_normal_body">气表品牌</label>
|
|
74
|
-
<v-select :value.sync="model.f_meter_brand" multiple
|
|
75
|
-
v-model="model.f_meter_brand"
|
|
76
|
-
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
77
|
-
condition="gd.f_meter_brand in {}"
|
|
78
|
-
close-on-select></v-select>
|
|
79
|
-
</div>
|
|
80
|
-
<div
|
|
81
|
-
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
82
|
-
class="form-group">
|
|
83
|
-
<label class="font_normal_body">开始日期</label>
|
|
84
|
-
<datepicker placeholder="开始日期" v-model="model.startDate" :value.sync="model.startDate" style="width:60%"
|
|
85
|
-
:format="'yyyy-MM-dd 00:00:00'" condition="sg.f_operate_date >= '{}'">
|
|
86
|
-
</datepicker>
|
|
87
|
-
</div>
|
|
88
|
-
<div
|
|
89
|
-
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
90
|
-
class="form-group">
|
|
91
|
-
<label class="font_normal_body">结束日期</label>
|
|
92
|
-
<datepicker placeholder="结束日期" v-model="model.endDate" :value.sync="model.endDate" style="width:60%"
|
|
93
|
-
:format="'yyyy-MM-dd 23:59:59'" condition="sg.f_operate_date <= '{}'">
|
|
94
|
-
</datepicker>
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
</criteria>
|
|
99
|
-
<data-grid :model="model" v-ref:grid class="list_area table_sy" partial='list'>
|
|
100
|
-
<template partial='head'>
|
|
101
|
-
<tr>
|
|
102
|
-
<th v-for="(key,value ) in $parent.$parent.$parent.getfield" ><nobr>{{value}}</nobr></th>
|
|
103
|
-
</tr>
|
|
104
|
-
</template>
|
|
105
|
-
<template partial='body'>
|
|
106
|
-
<td style="text-align: center;" v-for="(key,value ) in $parent.$parent.$parent.getfield"><nobr>{{row[key]}}</nobr></td>
|
|
107
|
-
</template>
|
|
108
|
-
</data-grid>
|
|
109
|
-
</criteria-paged>
|
|
110
|
-
<table class="table-hover">
|
|
111
|
-
<tr style="position: relative" class="table-bordered">
|
|
112
|
-
<td
|
|
113
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
114
|
-
汇总信息
|
|
115
|
-
</td>
|
|
116
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold"
|
|
117
|
-
v-for="(key,value ) in sumFields">
|
|
118
|
-
{{value}}合计: {{sumsmodel[key]}}
|
|
119
|
-
</td>
|
|
120
|
-
</tr>
|
|
121
|
-
</table>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
</template>
|
|
126
|
-
|
|
127
|
-
<script>
|
|
128
|
-
import {PagedList} from 'vue-client'
|
|
129
|
-
|
|
130
|
-
let loadParamGem = async function (self) {
|
|
131
|
-
self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
132
|
-
self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
133
|
-
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
134
|
-
self.initMeterBrands()
|
|
135
|
-
}
|
|
136
|
-
export default {
|
|
137
|
-
'title': '卡表收费查询',
|
|
138
|
-
data () {
|
|
139
|
-
return {
|
|
140
|
-
payments: this.$appdata.getParam('付款方式'),
|
|
141
|
-
usertypes: this.$appdata.getParam('客户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('客户类型')] : [],
|
|
142
|
-
refunds: [{label: '全部', value: ''}, {label: '是', value: 'is not null'}, {label: '否', value: 'is null'}],
|
|
143
|
-
model: new PagedList('rs/sql/cardChargeQuery', 20, {}, {
|
|
144
|
-
f_pregas: 0,
|
|
145
|
-
f_realamount: 0,
|
|
146
|
-
f_stair_gas1: 0,
|
|
147
|
-
f_stair_money1: 0,
|
|
148
|
-
f_stair_gas2: 0,
|
|
149
|
-
f_stair_money2: 0,
|
|
150
|
-
f_stair_gas3: 0,
|
|
151
|
-
f_stair_money3: 0
|
|
152
|
-
}),
|
|
153
|
-
// 控制查询条件显示
|
|
154
|
-
searchshow: true,
|
|
155
|
-
criteriaShow: false,
|
|
156
|
-
initres: {
|
|
157
|
-
org: [this.$login.f.orgid],
|
|
158
|
-
dep: [],
|
|
159
|
-
user: []
|
|
160
|
-
},
|
|
161
|
-
gasproperties: [],
|
|
162
|
-
meterbrands: [],
|
|
163
|
-
// 控制样式
|
|
164
|
-
editList: false,
|
|
165
|
-
excelTable: true,
|
|
166
|
-
condition: '',
|
|
167
|
-
getfield: {
|
|
168
|
-
'id': '收费编号',
|
|
169
|
-
'f_meternumber': '表号',
|
|
170
|
-
'f_userinfo_code': '用户编号',
|
|
171
|
-
'f_user_name': '用户姓名',
|
|
172
|
-
'f_meter_brand': '气表品牌',
|
|
173
|
-
'f_operate_date': '本次缴费时间',
|
|
174
|
-
'f_last_selldate':'上次缴费时间',
|
|
175
|
-
'f_stair_gas1': '一阶气量',
|
|
176
|
-
'f_stair_price1': '一阶气价',
|
|
177
|
-
'f_stair_money1': '一阶气费',
|
|
178
|
-
'f_stair_gas2': '二阶气量',
|
|
179
|
-
'f_stair_price2': '二阶气价',
|
|
180
|
-
'f_stair_money2': '二阶气费',
|
|
181
|
-
'f_stair_gas3': '三阶气量',
|
|
182
|
-
'f_stair_price3': '三阶气价',
|
|
183
|
-
'f_stair_money3': '三阶气费',
|
|
184
|
-
'f_pregas': '购气气量',
|
|
185
|
-
'f_address': '地址',
|
|
186
|
-
'f_user_type': '客户类型',
|
|
187
|
-
'f_realamount': '应收金额',
|
|
188
|
-
'f_preprice': '应收气价',
|
|
189
|
-
'f_operator': '操作员',
|
|
190
|
-
'f_depname': '所属部门',
|
|
191
|
-
'f_orgname': '所属公司',
|
|
192
|
-
'f_gasproperties':'用气性质',
|
|
193
|
-
'f_payment':'购气方式'
|
|
194
|
-
},
|
|
195
|
-
sumsmodel: 0,
|
|
196
|
-
sumFields: {
|
|
197
|
-
'f_pregas': '购气气量',
|
|
198
|
-
'f_realamount': '购气金额',
|
|
199
|
-
'f_stair_gas1': '一阶气量',
|
|
200
|
-
'f_stair_money1': '一阶气费',
|
|
201
|
-
'f_stair_gas2': '二阶气量',
|
|
202
|
-
'f_stair_money2': '二阶气费',
|
|
203
|
-
'f_stair_gas3': '三阶气量',
|
|
204
|
-
'f_stair_money3': '三阶气费'
|
|
205
|
-
},
|
|
206
|
-
footer: [],
|
|
207
|
-
f_orgid: ''
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
ready () {
|
|
211
|
-
loadParamGem(this)
|
|
212
|
-
},
|
|
213
|
-
computed: {
|
|
214
|
-
},
|
|
215
|
-
methods: {
|
|
216
|
-
userTypeChange () {
|
|
217
|
-
this.gasproperties = []
|
|
218
|
-
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
219
|
-
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
220
|
-
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
221
|
-
} else {
|
|
222
|
-
this.gasproperties = [{label: '全部', value: ''}]
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
hidden () {
|
|
226
|
-
this.criteriaShow = !this.criteriaShow
|
|
227
|
-
},
|
|
228
|
-
getorg (val) {
|
|
229
|
-
this.f_orgid = val
|
|
230
|
-
},
|
|
231
|
-
initMeterBrands () {
|
|
232
|
-
// 初始化气表品牌
|
|
233
|
-
let brandArr = []
|
|
234
|
-
this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
235
|
-
let temp = {}
|
|
236
|
-
temp.label = item.label
|
|
237
|
-
temp.value = item.value.f_meter_brand
|
|
238
|
-
brandArr.push(temp)
|
|
239
|
-
})
|
|
240
|
-
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
241
|
-
},
|
|
242
|
-
search () {
|
|
243
|
-
this.$refs.paged.$refs.criteria.search()
|
|
244
|
-
},
|
|
245
|
-
selfSearch (args) {
|
|
246
|
-
if (!this.f_orgid) {
|
|
247
|
-
this.getorg([this.$login.f.orgid])
|
|
248
|
-
}
|
|
249
|
-
if (this.f_orgid) {
|
|
250
|
-
args.condition = `${args.condition} ${this.f_orgid}`
|
|
251
|
-
}
|
|
252
|
-
args.condition = args.condition.replace('f_orgid', 'sg.f_orgid')
|
|
253
|
-
this.model.search(args.condition, args.model)
|
|
254
|
-
this.condition = args.condition
|
|
255
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
256
|
-
},
|
|
257
|
-
getotherfooter () {
|
|
258
|
-
this.footer = []
|
|
259
|
-
let footerData = [], exportfield = this.getfield
|
|
260
|
-
footerData.push('合计')
|
|
261
|
-
let self = this
|
|
262
|
-
for (var field in self.sumsmodel) {
|
|
263
|
-
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
264
|
-
}
|
|
265
|
-
this.footer.push(footerData)
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
watch: {
|
|
269
|
-
sumsmodel: {
|
|
270
|
-
handler: function (val) {
|
|
271
|
-
this.getotherfooter()
|
|
272
|
-
},
|
|
273
|
-
deep: true
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
</script>
|
|
278
|
-
<style>
|
|
279
|
-
.datapanel {
|
|
280
|
-
color: #333;
|
|
281
|
-
background-color: white;
|
|
282
|
-
padding: 10px 20px;
|
|
283
|
-
border-radius: 15px;
|
|
284
|
-
}
|
|
285
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="flex">
|
|
4
|
+
<div class="basic-main" :class="{'basic-main':!selectRow,'binary-left':selectRow}" style="height: 98%;">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch"
|
|
7
|
+
v-show="$parent.searchshow">
|
|
8
|
+
<div novalidate class="form-inline auto" partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<res-select-group :style="$parent.$parent.style" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
|
|
11
|
+
<div
|
|
12
|
+
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
13
|
+
class="form-group">
|
|
14
|
+
<label class="font_normal_body">用户编号</label>
|
|
15
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_code"
|
|
16
|
+
condition="ui.f_userinfo_code like '%{}%'" placeholder='用户编号'>
|
|
17
|
+
</div>
|
|
18
|
+
<div style="float:right;margin-top: 8px" class="span">
|
|
19
|
+
<button class="button_spacing button_search" @click="search()">查 询</button>
|
|
20
|
+
<export-excel v-if="$parent.$parent.excelTable"
|
|
21
|
+
class="auto"
|
|
22
|
+
:data="{condition: $parent.$parent.condition}"
|
|
23
|
+
:field="$parent.$parent.getfield"
|
|
24
|
+
:footer="$parent.$parent.footer"
|
|
25
|
+
sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="cardChargeQuery"
|
|
26
|
+
template-name='卡表收费查询'
|
|
27
|
+
:choose-col="true"></export-excel>
|
|
28
|
+
<div
|
|
29
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
30
|
+
@click="$parent.$parent.hidden()"
|
|
31
|
+
class="button_spacing"
|
|
32
|
+
style="float: right"></div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
36
|
+
<div
|
|
37
|
+
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
38
|
+
class="form-group">
|
|
39
|
+
<label class="font_normal_body">收费编号</label>
|
|
40
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.id"
|
|
41
|
+
condition="sg.id = '{}'" placeholder='用户编号'>
|
|
42
|
+
</div>
|
|
43
|
+
<div
|
|
44
|
+
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
45
|
+
class="form-group">
|
|
46
|
+
<label class="font_normal_body">用户姓名</label>
|
|
47
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
|
|
48
|
+
condition="ui.f_user_name = '{}'" placeholder='用户姓名'>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-2 form-group">
|
|
51
|
+
<label class="font_normal_body">客户类型</label>
|
|
52
|
+
<v-select :value.sync="model.f_user_type"
|
|
53
|
+
@change="$parent.$parent.userTypeChange()"
|
|
54
|
+
:options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
|
|
55
|
+
condition="sg.f_user_type = '{}'"
|
|
56
|
+
close-on-select></v-select>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-sm-2 form-group">
|
|
59
|
+
<label class="font_normal_body">用气性质</label>
|
|
60
|
+
<v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
|
|
61
|
+
:options='$parent.$parent.gasproperties' placeholder='请选择'
|
|
62
|
+
condition="sg.f_gasproperties = '{}'"
|
|
63
|
+
close-on-select></v-select>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="col-sm-2 form-group">
|
|
66
|
+
<label class="font_normal_body">购气方式</label>
|
|
67
|
+
<v-select :value.sync="model.f_payment" v-model="model.f_payment"
|
|
68
|
+
:options='$parent.$parent.payments' placeholder='请选择'
|
|
69
|
+
condition="sg.payments = '{}'"
|
|
70
|
+
close-on-select></v-select>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}">
|
|
73
|
+
<label class="font_normal_body">气表品牌</label>
|
|
74
|
+
<v-select :value.sync="model.f_meter_brand" multiple
|
|
75
|
+
v-model="model.f_meter_brand"
|
|
76
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
77
|
+
condition="gd.f_meter_brand in {}"
|
|
78
|
+
close-on-select></v-select>
|
|
79
|
+
</div>
|
|
80
|
+
<div
|
|
81
|
+
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
82
|
+
class="form-group">
|
|
83
|
+
<label class="font_normal_body">开始日期</label>
|
|
84
|
+
<datepicker placeholder="开始日期" v-model="model.startDate" :value.sync="model.startDate" style="width:60%"
|
|
85
|
+
:format="'yyyy-MM-dd 00:00:00'" condition="sg.f_operate_date >= '{}'">
|
|
86
|
+
</datepicker>
|
|
87
|
+
</div>
|
|
88
|
+
<div
|
|
89
|
+
:class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
90
|
+
class="form-group">
|
|
91
|
+
<label class="font_normal_body">结束日期</label>
|
|
92
|
+
<datepicker placeholder="结束日期" v-model="model.endDate" :value.sync="model.endDate" style="width:60%"
|
|
93
|
+
:format="'yyyy-MM-dd 23:59:59'" condition="sg.f_operate_date <= '{}'">
|
|
94
|
+
</datepicker>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</criteria>
|
|
99
|
+
<data-grid :model="model" v-ref:grid class="list_area table_sy" partial='list'>
|
|
100
|
+
<template partial='head'>
|
|
101
|
+
<tr>
|
|
102
|
+
<th v-for="(key,value ) in $parent.$parent.$parent.getfield" ><nobr>{{value}}</nobr></th>
|
|
103
|
+
</tr>
|
|
104
|
+
</template>
|
|
105
|
+
<template partial='body'>
|
|
106
|
+
<td style="text-align: center;" v-for="(key,value ) in $parent.$parent.$parent.getfield"><nobr>{{row[key]}}</nobr></td>
|
|
107
|
+
</template>
|
|
108
|
+
</data-grid>
|
|
109
|
+
</criteria-paged>
|
|
110
|
+
<table class="table-hover">
|
|
111
|
+
<tr style="position: relative" class="table-bordered">
|
|
112
|
+
<td
|
|
113
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
114
|
+
汇总信息
|
|
115
|
+
</td>
|
|
116
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold"
|
|
117
|
+
v-for="(key,value ) in sumFields">
|
|
118
|
+
{{value}}合计: {{sumsmodel[key]}}
|
|
119
|
+
</td>
|
|
120
|
+
</tr>
|
|
121
|
+
</table>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</template>
|
|
126
|
+
|
|
127
|
+
<script>
|
|
128
|
+
import {PagedList} from 'vue-client'
|
|
129
|
+
|
|
130
|
+
let loadParamGem = async function (self) {
|
|
131
|
+
self.$refs.paged.$refs.criteria.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
|
|
132
|
+
self.$refs.paged.$refs.criteria.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
|
|
133
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
134
|
+
self.initMeterBrands()
|
|
135
|
+
}
|
|
136
|
+
export default {
|
|
137
|
+
'title': '卡表收费查询',
|
|
138
|
+
data () {
|
|
139
|
+
return {
|
|
140
|
+
payments: this.$appdata.getParam('付款方式'),
|
|
141
|
+
usertypes: this.$appdata.getParam('客户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('客户类型')] : [],
|
|
142
|
+
refunds: [{label: '全部', value: ''}, {label: '是', value: 'is not null'}, {label: '否', value: 'is null'}],
|
|
143
|
+
model: new PagedList('rs/sql/cardChargeQuery', 20, {}, {
|
|
144
|
+
f_pregas: 0,
|
|
145
|
+
f_realamount: 0,
|
|
146
|
+
f_stair_gas1: 0,
|
|
147
|
+
f_stair_money1: 0,
|
|
148
|
+
f_stair_gas2: 0,
|
|
149
|
+
f_stair_money2: 0,
|
|
150
|
+
f_stair_gas3: 0,
|
|
151
|
+
f_stair_money3: 0
|
|
152
|
+
}),
|
|
153
|
+
// 控制查询条件显示
|
|
154
|
+
searchshow: true,
|
|
155
|
+
criteriaShow: false,
|
|
156
|
+
initres: {
|
|
157
|
+
org: [this.$login.f.orgid],
|
|
158
|
+
dep: [],
|
|
159
|
+
user: []
|
|
160
|
+
},
|
|
161
|
+
gasproperties: [],
|
|
162
|
+
meterbrands: [],
|
|
163
|
+
// 控制样式
|
|
164
|
+
editList: false,
|
|
165
|
+
excelTable: true,
|
|
166
|
+
condition: '',
|
|
167
|
+
getfield: {
|
|
168
|
+
'id': '收费编号',
|
|
169
|
+
'f_meternumber': '表号',
|
|
170
|
+
'f_userinfo_code': '用户编号',
|
|
171
|
+
'f_user_name': '用户姓名',
|
|
172
|
+
'f_meter_brand': '气表品牌',
|
|
173
|
+
'f_operate_date': '本次缴费时间',
|
|
174
|
+
'f_last_selldate': '上次缴费时间',
|
|
175
|
+
'f_stair_gas1': '一阶气量',
|
|
176
|
+
'f_stair_price1': '一阶气价',
|
|
177
|
+
'f_stair_money1': '一阶气费',
|
|
178
|
+
'f_stair_gas2': '二阶气量',
|
|
179
|
+
'f_stair_price2': '二阶气价',
|
|
180
|
+
'f_stair_money2': '二阶气费',
|
|
181
|
+
'f_stair_gas3': '三阶气量',
|
|
182
|
+
'f_stair_price3': '三阶气价',
|
|
183
|
+
'f_stair_money3': '三阶气费',
|
|
184
|
+
'f_pregas': '购气气量',
|
|
185
|
+
'f_address': '地址',
|
|
186
|
+
'f_user_type': '客户类型',
|
|
187
|
+
'f_realamount': '应收金额',
|
|
188
|
+
'f_preprice': '应收气价',
|
|
189
|
+
'f_operator': '操作员',
|
|
190
|
+
'f_depname': '所属部门',
|
|
191
|
+
'f_orgname': '所属公司',
|
|
192
|
+
'f_gasproperties': '用气性质',
|
|
193
|
+
'f_payment': '购气方式'
|
|
194
|
+
},
|
|
195
|
+
sumsmodel: 0,
|
|
196
|
+
sumFields: {
|
|
197
|
+
'f_pregas': '购气气量',
|
|
198
|
+
'f_realamount': '购气金额',
|
|
199
|
+
'f_stair_gas1': '一阶气量',
|
|
200
|
+
'f_stair_money1': '一阶气费',
|
|
201
|
+
'f_stair_gas2': '二阶气量',
|
|
202
|
+
'f_stair_money2': '二阶气费',
|
|
203
|
+
'f_stair_gas3': '三阶气量',
|
|
204
|
+
'f_stair_money3': '三阶气费'
|
|
205
|
+
},
|
|
206
|
+
footer: [],
|
|
207
|
+
f_orgid: ''
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
ready () {
|
|
211
|
+
loadParamGem(this)
|
|
212
|
+
},
|
|
213
|
+
computed: {
|
|
214
|
+
},
|
|
215
|
+
methods: {
|
|
216
|
+
userTypeChange () {
|
|
217
|
+
this.gasproperties = []
|
|
218
|
+
if (this.$refs.paged.$refs.criteria.model !== null) {
|
|
219
|
+
this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
|
|
220
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_user_type[0])
|
|
221
|
+
} else {
|
|
222
|
+
this.gasproperties = [{label: '全部', value: ''}]
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
hidden () {
|
|
226
|
+
this.criteriaShow = !this.criteriaShow
|
|
227
|
+
},
|
|
228
|
+
getorg (val) {
|
|
229
|
+
this.f_orgid = val
|
|
230
|
+
},
|
|
231
|
+
initMeterBrands () {
|
|
232
|
+
// 初始化气表品牌
|
|
233
|
+
let brandArr = []
|
|
234
|
+
this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
235
|
+
let temp = {}
|
|
236
|
+
temp.label = item.label
|
|
237
|
+
temp.value = item.value.f_meter_brand
|
|
238
|
+
brandArr.push(temp)
|
|
239
|
+
})
|
|
240
|
+
this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
|
|
241
|
+
},
|
|
242
|
+
search () {
|
|
243
|
+
this.$refs.paged.$refs.criteria.search()
|
|
244
|
+
},
|
|
245
|
+
selfSearch (args) {
|
|
246
|
+
if (!this.f_orgid) {
|
|
247
|
+
this.getorg([this.$login.f.orgid])
|
|
248
|
+
}
|
|
249
|
+
if (this.f_orgid) {
|
|
250
|
+
args.condition = `${args.condition} ${this.f_orgid}`
|
|
251
|
+
}
|
|
252
|
+
args.condition = args.condition.replace('f_orgid', 'sg.f_orgid')
|
|
253
|
+
this.model.search(args.condition, args.model)
|
|
254
|
+
this.condition = args.condition
|
|
255
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
256
|
+
},
|
|
257
|
+
getotherfooter () {
|
|
258
|
+
this.footer = []
|
|
259
|
+
let footerData = [], exportfield = this.getfield
|
|
260
|
+
footerData.push('合计')
|
|
261
|
+
let self = this
|
|
262
|
+
for (var field in self.sumsmodel) {
|
|
263
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
264
|
+
}
|
|
265
|
+
this.footer.push(footerData)
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
watch: {
|
|
269
|
+
sumsmodel: {
|
|
270
|
+
handler: function (val) {
|
|
271
|
+
this.getotherfooter()
|
|
272
|
+
},
|
|
273
|
+
deep: true
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
</script>
|
|
278
|
+
<style>
|
|
279
|
+
.datapanel {
|
|
280
|
+
color: #333;
|
|
281
|
+
background-color: white;
|
|
282
|
+
padding: 10px 20px;
|
|
283
|
+
border-radius: 15px;
|
|
284
|
+
}
|
|
285
|
+
</style>
|