sale-client 3.6.41 → 3.6.42
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/revenue/comprehen/Bill/EticketV4/EticketRecordList.vue +11 -2
- package/src/filiale/gehua/OtherChargeNew.vue +1 -1
- package/src/filiale/rizhao/HighMeterCard.vue +1 -10
- package/src/filiale/wenxi/UserGeneralInfoTest.vue +1 -0
- package/src/filiale/xiangyun/cardChargeQuery1.vue +285 -285
package/package.json
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
@click="$parent.$parent.$parent.kp(row)">开票
|
|
143
143
|
</button>
|
|
144
144
|
<button class="btn btn-link" v-if="row.f_bill_state==='开票失败'"
|
|
145
|
-
@click="$parent.$parent.$parent.
|
|
145
|
+
@click="$parent.$parent.$parent.Rekp(row)">重新开票
|
|
146
146
|
</button>
|
|
147
147
|
<!-- <button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"-->
|
|
148
148
|
<!-- @click="$parent.$parent.$parent.fp_search(row)">电票查询-->
|
|
@@ -208,6 +208,15 @@ export default {
|
|
|
208
208
|
ready () {
|
|
209
209
|
},
|
|
210
210
|
methods: {
|
|
211
|
+
async Rekp (row) {
|
|
212
|
+
this.eticket_show = true
|
|
213
|
+
row.f_paper_name = row.f_user_name
|
|
214
|
+
row.f_email = row.f_mail_push
|
|
215
|
+
row.f_taxpayer_id = row.f_pay_id
|
|
216
|
+
row.f_address_phone = row.f_buy_address_phone
|
|
217
|
+
row.f_paper_accoun = row.f_buy_openbank
|
|
218
|
+
await this.$refs.eticketbill.openETicket(row.f_sell_id, row, row.f_charge_type)
|
|
219
|
+
},
|
|
211
220
|
search () {
|
|
212
221
|
this.$refs.paged.$refs.cri.search()
|
|
213
222
|
},
|
|
@@ -237,7 +246,7 @@ export default {
|
|
|
237
246
|
},
|
|
238
247
|
kp (row) {
|
|
239
248
|
this.eticket_show = true
|
|
240
|
-
this.$refs.eticketbill.
|
|
249
|
+
this.$refs.eticketbill.openETicket(row.f_sell_id, row, row.f_charge_type)
|
|
241
250
|
},
|
|
242
251
|
eticket_toggle () {
|
|
243
252
|
this.eticket_show = false
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
<button class="button_clear btn-gn" @click="clean()">取消</button>
|
|
169
169
|
</div>
|
|
170
170
|
</validator>
|
|
171
|
-
<upload :blodid="
|
|
171
|
+
<upload :blodid="row.f_userinfo_id" v-if="config.showupload" isremark="true" fusetype="其他收费"></upload>
|
|
172
172
|
</div>
|
|
173
173
|
<payment-code v-ref:paymentcode :payment="model.f_payment" :row="row" :money="model.f_collection"></payment-code>
|
|
174
174
|
<mis-pos-pay v-ref:mispospay :payment="model.f_payment" :row="row" :money="model.f_collection"></mis-pos-pay>
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
<button class="btn btn-info" @click="cam_switch(1)">打开视频1</button>
|
|
15
15
|
<button class="btn btn-info" @click="cam_switch(2)">打开视频2</button>
|
|
16
16
|
<button class="btn btn-info" @click="reloadVideo()">重载视频</button>
|
|
17
|
-
<!-- <button class="btn btn-info" @click="CloseVideo()">关闭</button>-->
|
|
18
17
|
<div style="display: inline-block;margin-left: 570px">
|
|
19
18
|
<strong class="operation">读取身份证:</strong>
|
|
20
19
|
<button class="btn btn-info readIDCard" @click=Begin()>读身份证</button>
|
|
@@ -217,13 +216,6 @@ export default {
|
|
|
217
216
|
setTimeout(this.onLoad,2000)
|
|
218
217
|
})
|
|
219
218
|
},
|
|
220
|
-
CloseVideo(){
|
|
221
|
-
window.location.href = 'cameraServicetis:0'
|
|
222
|
-
let url = `http://127.0.0.1:38088/video=close&camidx=${this.capID}`
|
|
223
|
-
this.$resetpost(url).then((res)=>{
|
|
224
|
-
setTimeout(this.onLoad,2000)
|
|
225
|
-
})
|
|
226
|
-
},
|
|
227
219
|
openApp () {
|
|
228
220
|
window.location.href = 'cameraServicetis:0' // 启动 CameraService 服务程序
|
|
229
221
|
|
|
@@ -945,14 +937,13 @@ export default {
|
|
|
945
937
|
document.getElementById('Police').value = msg.issueOrgan
|
|
946
938
|
document.getElementById('ActivityLFrom').value = msg.validStart
|
|
947
939
|
document.getElementById('ActivityLTo').value = msg.validEnd
|
|
948
|
-
// document.getElementById('DeviceNo').value = msg.validEnd
|
|
949
940
|
document.getElementById('PhotoBuffer').value = msg.fingerBase64
|
|
950
941
|
document.getElementById('PhotoDisplay').src = 'data:image/jpg;base64,' + msg.photoBase64
|
|
951
942
|
this.IdCardInfo = msg
|
|
952
943
|
},
|
|
953
944
|
close () {
|
|
945
|
+
|
|
954
946
|
this.show = !this.show
|
|
955
|
-
this.CloseVideo()
|
|
956
947
|
},
|
|
957
948
|
getSatate(){
|
|
958
949
|
this.$resetpost('http://127.0.0.1:38088/video=status').then((res)=>{
|
|
@@ -332,6 +332,7 @@ export default {
|
|
|
332
332
|
if (this.fileSaveData.userinfo.f_userinfo_id) {
|
|
333
333
|
if (this.row.f_user_state === '预备' && this.fileSaveData.userinfo.f_user_state === '正常') {
|
|
334
334
|
this.fileSaveData.userinfo.f_createfile_person = this.$login.f.name
|
|
335
|
+
this.fileSaveData.userinfo.f_open_date = this.$login.toStandardTimeString()
|
|
335
336
|
this.fileSaveData.modifyReason = this.reason = '建档(档案信息完善)'
|
|
336
337
|
} else {
|
|
337
338
|
this.reason = '其他'
|
|
@@ -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>
|