sale-client 4.2.21 → 4.2.23
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/build/dev-server.js +45 -25
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +2 -0
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/jinhong/machineDown.vue +7 -8
- package/src/filiale/jinhong/plugins/LoadParams.js +1 -1
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/InsuranceManage.vue +58 -58
- package/src/filiale/ronghao/MachineChargeService.js +149 -149
- package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
- package/src/filiale/ronghao/PaymentCode.vue +174 -174
- package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
- package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
- package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
- package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
- package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
- package/src/filiale/ronghao/Upload.vue +654 -654
- package/src/filiale/ronghao/cardDown.vue +1141 -1141
- package/src/filiale/ronghao/changemeterOperate.vue +315 -315
- package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
- package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
- package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
- package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
- package/src/filiale/ronghao/machineDown.vue +1176 -1176
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +2217 -2217
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
|
@@ -1,423 +1,423 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="basic-main" style="height: 98%">
|
|
3
|
-
<div class="flex">
|
|
4
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
6
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
-
<div class="row">
|
|
8
|
-
<div
|
|
9
|
-
class="col-sm-2 form-group">
|
|
10
|
-
<label class="font_normal_body">组织机构</label>
|
|
11
|
-
<res-select :initresid='$parent.$parent.curorgid'
|
|
12
|
-
@res-select="$parent.$parent.getorg"
|
|
13
|
-
class="select select_list"
|
|
14
|
-
restype='organization'
|
|
15
|
-
style="width: 60%">
|
|
16
|
-
</res-select>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="col-sm-2 form-group">
|
|
19
|
-
<label class="font_normal_body">银行名称</label>
|
|
20
|
-
<v-select
|
|
21
|
-
v-model="model.bankName"
|
|
22
|
-
placeholder='银行名称'
|
|
23
|
-
condition="f_bank_type = '{}'"
|
|
24
|
-
:value.sync="model.bankName"
|
|
25
|
-
:options='$parent.$parent.bankName'
|
|
26
|
-
close-on-select></v-select>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="col-sm-2 form-group">
|
|
29
|
-
<label class="font_normal_body">对账信息</label>
|
|
30
|
-
<v-select
|
|
31
|
-
v-model="model.letter"
|
|
32
|
-
placeholder='对账信息'
|
|
33
|
-
condition="msg = '{}'"
|
|
34
|
-
:value.sync="model.letter"
|
|
35
|
-
:options='$parent.$parent.letter'
|
|
36
|
-
close-on-select></v-select>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-sm-2 form-group">
|
|
39
|
-
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
40
|
-
<datepicker id="startDate" placeholder="开始日期"
|
|
41
|
-
v-model="model.startDate" style="width: 55%"
|
|
42
|
-
:value.sync="model.startDate"
|
|
43
|
-
condition="f_datatime >= '{} 00:00:00'"
|
|
44
|
-
:disabled-days-of-Week="[]"
|
|
45
|
-
:format="'yyyy-MM-dd'"
|
|
46
|
-
:show-reset-button="reset">
|
|
47
|
-
</datepicker>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="col-sm-2 form-group">
|
|
50
|
-
<label for="endDate" class="font_normal_body"> 结束日期</label>
|
|
51
|
-
<datepicker id="endDate" placeholder="结束日期"
|
|
52
|
-
v-model="model.endDate" style="width: 55%"
|
|
53
|
-
:value.sync="model.endDate"
|
|
54
|
-
condition="f_datatime <= '{} 23:59:59'"
|
|
55
|
-
:disabled-days-of-Week="[]"
|
|
56
|
-
:format="'yyyy-MM-dd'"
|
|
57
|
-
:show-reset-button="reset">
|
|
58
|
-
</datepicker>
|
|
59
|
-
</div>
|
|
60
|
-
<div class="span" style="float:right;">
|
|
61
|
-
<button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
|
|
62
|
-
<!--<button class="button_search button_spacing width-60" v-if="$parent.$parent.showallcharge"-->
|
|
63
|
-
<!-- @click="$parent.$parent.allcharge()" v-el:cx>全部缴费</button>-->
|
|
64
|
-
<!--<button class="button_search button_spacing width-60" v-if="$parent.$parent.showallcharge || $parent.$parent.showallcharge1"-->
|
|
65
|
-
<!-- @click="$parent.$parent.allcharge1()" v-el:cx>全部标记退款</button>-->
|
|
66
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
67
|
-
:field="$parent.$parent.getfield"
|
|
68
|
-
sqlurl="api/af-revenue/logic/saleExport" progress="saleGetExportProgress" sql-name="QrPaydetail"
|
|
69
|
-
template-name='聚合支付对账查询导出' :choose-col="true"></export-excel>
|
|
70
|
-
<!--<div-->
|
|
71
|
-
<!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
|
|
72
|
-
<!-- @click="$parent.$parent.hidden()"-->
|
|
73
|
-
<!-- class="button_spacing"-->
|
|
74
|
-
<!-- style="float: right">-->
|
|
75
|
-
<!--</div>-->
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</criteria>
|
|
80
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
81
|
-
<template partial='head'>
|
|
82
|
-
<tr>
|
|
83
|
-
<th>序号</th>
|
|
84
|
-
<th>用户编号</th>
|
|
85
|
-
<th>用户姓名</th>
|
|
86
|
-
<th>用户类型</th>
|
|
87
|
-
<th>表号</th>
|
|
88
|
-
<th>用户地址</th>
|
|
89
|
-
<th>支付类型</th>
|
|
90
|
-
<th>银行金额</th>
|
|
91
|
-
<th>系统金额</th>
|
|
92
|
-
<th style="white-space: nowrap;">银行方日期</th>
|
|
93
|
-
<th>燃气方日期</th>
|
|
94
|
-
<th>银行流水号</th>
|
|
95
|
-
<th>系统流水号</th>
|
|
96
|
-
<th>对账信息</th>
|
|
97
|
-
<th>所属公司</th>
|
|
98
|
-
<th>所属部门</th>
|
|
99
|
-
<th>操作人员</th>
|
|
100
|
-
<!--<th>操作</th>-->
|
|
101
|
-
</tr>
|
|
102
|
-
</template>
|
|
103
|
-
<template partial='body'>
|
|
104
|
-
<td style="text-align: center;">
|
|
105
|
-
<nobr>{{$index+1}}</nobr>
|
|
106
|
-
</td>
|
|
107
|
-
<td style="text-align: center;">
|
|
108
|
-
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
109
|
-
</td>
|
|
110
|
-
<td style="text-align: center;">
|
|
111
|
-
<nobr>{{row.f_user_name}}</nobr>
|
|
112
|
-
</td>
|
|
113
|
-
<td style="text-align: center;">
|
|
114
|
-
<nobr>{{row.f_user_type}}</nobr>
|
|
115
|
-
</td>
|
|
116
|
-
<td style="text-align: center;">
|
|
117
|
-
<nobr>{{row.f_meternumber}}</nobr>
|
|
118
|
-
</td>
|
|
119
|
-
<td style="text-align: center;">
|
|
120
|
-
<nobr>{{row.f_address}}</nobr>
|
|
121
|
-
</td>
|
|
122
|
-
<td style="text-align: center;">
|
|
123
|
-
<nobr>{{$parent.$parent.$parent.getPayTypeLable(row.f_trade_type)}}</nobr>
|
|
124
|
-
</td>
|
|
125
|
-
<td style="text-align: center;">
|
|
126
|
-
<nobr>{{row.f_total_fee}}</nobr>
|
|
127
|
-
</td>
|
|
128
|
-
<td style="text-align: center;">
|
|
129
|
-
<nobr>{{row.f_collection}}</nobr>
|
|
130
|
-
</td>
|
|
131
|
-
<td style="text-align: center;">
|
|
132
|
-
<nobr>{{row.f_datatime}}</nobr>
|
|
133
|
-
</td>
|
|
134
|
-
<td style="text-align: center;">
|
|
135
|
-
<nobr>{{row.f_operate_date}}</nobr>
|
|
136
|
-
</td>
|
|
137
|
-
<td style="text-align: center;">
|
|
138
|
-
<nobr>{{row.f_transaction_id}}</nobr>
|
|
139
|
-
</td>
|
|
140
|
-
<td style="text-align: center;">
|
|
141
|
-
<nobr>{{row.f_serial_id}}</nobr>
|
|
142
|
-
</td>
|
|
143
|
-
<td style="text-align: center;">{{row.msg}}</td>
|
|
144
|
-
<td style="text-align: center;">{{row.f_orgname}}</td>
|
|
145
|
-
<td style="text-align: center;">{{row.f_depname}}</td>
|
|
146
|
-
<td style="text-align: center;">{{row.f_operator}}</td>
|
|
147
|
-
|
|
148
|
-
<!--<td>-->
|
|
149
|
-
<!-- <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.charge1(row)"-->
|
|
150
|
-
<!-- v-if="row.msg === '银行单方面账单'">标记已退款</button>-->
|
|
151
|
-
<!-- <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.charge(row)"-->
|
|
152
|
-
<!-- v-if="row.msg === '银行单方面账单' && row.f_trade_type === 'MICROPAY'">缴费-->
|
|
153
|
-
<!-- </button>-->
|
|
154
|
-
<!--</td>-->
|
|
155
|
-
</template>
|
|
156
|
-
</data-grid>
|
|
157
|
-
|
|
158
|
-
</criteria-paged>
|
|
159
|
-
<table class="table-hover">
|
|
160
|
-
<tr style="position: relative" class="table-bordered">
|
|
161
|
-
<td
|
|
162
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
163
|
-
汇总信息
|
|
164
|
-
</td>
|
|
165
|
-
<td
|
|
166
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
167
|
-
微信金额汇总: {{sumsmodel.f_total_fee}}
|
|
168
|
-
</td>
|
|
169
|
-
<td
|
|
170
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
171
|
-
收费金额汇总: {{sumsmodel.f_collection}}
|
|
172
|
-
</td>
|
|
173
|
-
<td
|
|
174
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
175
|
-
差额汇总: {{((sumsmodel.f_total_fee -0) - (sumsmodel.f_collection -0)).toFixed(2)}}
|
|
176
|
-
</td>
|
|
177
|
-
|
|
178
|
-
</tr>
|
|
179
|
-
</table>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
</div>
|
|
184
|
-
</template>
|
|
185
|
-
<script>
|
|
186
|
-
import {PagedList} from 'vue-client'
|
|
187
|
-
import Vue from 'vue'
|
|
188
|
-
|
|
189
|
-
let readyGen = async function (self) {
|
|
190
|
-
self.getfield = self.config.excelHeaders
|
|
191
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
192
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
193
|
-
|
|
194
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export default {
|
|
198
|
-
title: '聚合支付对账',
|
|
199
|
-
data () {
|
|
200
|
-
return {
|
|
201
|
-
model: new PagedList('api/af-revenue/sql/QrPaydetail', 20,
|
|
202
|
-
{}, {f_collection: '', f_total_fee: ''}),
|
|
203
|
-
config: {
|
|
204
|
-
// 导出列要和查询列相同
|
|
205
|
-
excelHeaders: {
|
|
206
|
-
'f_userinfo_code': '用户编号',
|
|
207
|
-
'f_user_name': '用户姓名',
|
|
208
|
-
'f_trade_type': '支付类型',
|
|
209
|
-
'f_total_fee': '微信金额',
|
|
210
|
-
'f_collection': '收费记录金额',
|
|
211
|
-
'f_datatime': '交易日期',
|
|
212
|
-
'f_operate_date': '燃气方日期',
|
|
213
|
-
'f_transaction_id': '微信订单号',
|
|
214
|
-
'f_serial_id': '收费订单号',
|
|
215
|
-
'msg': '对账信息',
|
|
216
|
-
'f_orgname': '所属公司',
|
|
217
|
-
'f_depname': '所属部门',
|
|
218
|
-
'f_operator': '操作人员',
|
|
219
|
-
'f_address': '用户地址',
|
|
220
|
-
'f_meternumber': '表号'
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
letter: [
|
|
224
|
-
{label: '全部', value: ''},
|
|
225
|
-
{label: '银行单方面账单', value: '银行单方面账单'},
|
|
226
|
-
{label: '燃气方单方面账单', value: '燃气方单方面账单'},
|
|
227
|
-
{label: '对账成功', value: '对账成功'}
|
|
228
|
-
],
|
|
229
|
-
getfield: {},
|
|
230
|
-
criteriaShow: false,
|
|
231
|
-
condition2: '',
|
|
232
|
-
f_orgid: '',
|
|
233
|
-
bankName: [],
|
|
234
|
-
msg: [],
|
|
235
|
-
resid: [], // 存放新增的f_files表中id
|
|
236
|
-
// 公司下拉
|
|
237
|
-
// curorgid: [this.$login.f.orgid],
|
|
238
|
-
initres: {
|
|
239
|
-
org: [this.$login.f.orgid],
|
|
240
|
-
dep: [],
|
|
241
|
-
user: []
|
|
242
|
-
},
|
|
243
|
-
initresgroup: ['company', 'department', 'operator'],
|
|
244
|
-
orgCondtionStr: '',
|
|
245
|
-
// 合计数据
|
|
246
|
-
sumsmodel: {},
|
|
247
|
-
showallcharge: false,
|
|
248
|
-
showallcharge1: false
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
props: [],
|
|
252
|
-
ready () {
|
|
253
|
-
readyGen(this)
|
|
254
|
-
this.getBankName()
|
|
255
|
-
},
|
|
256
|
-
methods: {
|
|
257
|
-
hidden () {
|
|
258
|
-
this.criteriaShow = !this.criteriaShow
|
|
259
|
-
},
|
|
260
|
-
getorg (val) {
|
|
261
|
-
this.f_orgid = this.$login.convertToIn(val)
|
|
262
|
-
this.f_filialeid = val[0]
|
|
263
|
-
},
|
|
264
|
-
getBankName () {
|
|
265
|
-
this.bankName = [{label: '全部', value: ''}, ...this.$appdata.getParam('聚合支付银行名称')]
|
|
266
|
-
},
|
|
267
|
-
getRes (condition, obj) {
|
|
268
|
-
if (condition.indexOf('f_orgid') > 0) {
|
|
269
|
-
let temp = condition.substring(condition.indexOf("f_orgid in ('") + 13)
|
|
270
|
-
this.f_orgid = temp.substring(temp.indexOf("')") - 4, 3)
|
|
271
|
-
} else {
|
|
272
|
-
this.f_orgid = this.$login.f.orgid
|
|
273
|
-
}
|
|
274
|
-
this.orgCondtionStr = condition
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
getotherfooter () {
|
|
278
|
-
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
279
|
-
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
280
|
-
this.other = []
|
|
281
|
-
this.footer = []
|
|
282
|
-
// let exportdata = this.getCondition;
|
|
283
|
-
let otherInData = []
|
|
284
|
-
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
285
|
-
let footerData = [], exportfield = this.getfield
|
|
286
|
-
footerData.push('合计')
|
|
287
|
-
let self = this
|
|
288
|
-
for (var field in self.sumsmodel) {
|
|
289
|
-
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
290
|
-
}
|
|
291
|
-
this.footer.push(footerData)
|
|
292
|
-
this.other.push(otherInData)
|
|
293
|
-
},
|
|
294
|
-
search () {
|
|
295
|
-
this.$refs.paged.$refs.cri.search()
|
|
296
|
-
},
|
|
297
|
-
selfSearch (args) {
|
|
298
|
-
if (!this.f_orgid) {
|
|
299
|
-
this.getorg([this.$login.f.orgid])
|
|
300
|
-
}
|
|
301
|
-
console.log('查询。。。', this.f_orgid)
|
|
302
|
-
this.showallcharge1 = false
|
|
303
|
-
this.showallcharge = false
|
|
304
|
-
if (!this.orgCondtionStr) {
|
|
305
|
-
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
306
|
-
} else {
|
|
307
|
-
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
308
|
-
}
|
|
309
|
-
this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
310
|
-
this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
311
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
312
|
-
this.condition2 = args.condition
|
|
313
|
-
this.model.search(args.condition, args.model)
|
|
314
|
-
// 只有选择微信支付和微信单方面账单时才能全部缴费
|
|
315
|
-
if (this.model.model.letter[0] === '银行单方面账单' && this.model.model.payType[0] === 'MICROPAY') {
|
|
316
|
-
this.showallcharge = true
|
|
317
|
-
} else if (this.model.model.payType[0] === 'MICROPAY') {
|
|
318
|
-
this.showallcharge1 = true
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
// 系统单方账单,系统可冲正
|
|
322
|
-
async chargecal (row) {
|
|
323
|
-
if (row.f_meter_type === '物联网表' || row.f_meter_type === '机表') {
|
|
324
|
-
let param = {
|
|
325
|
-
f_sell_id: row.maxid,
|
|
326
|
-
f_cancel_reason: '',
|
|
327
|
-
f_orgid: Vue.$login.f.orgid,
|
|
328
|
-
f_orgname: Vue.$login.f.orgs,
|
|
329
|
-
f_depid: Vue.$login.f.depids,
|
|
330
|
-
f_depname: Vue.$login.f.deps,
|
|
331
|
-
f_zoneid: Vue.$login.f.zoneid,
|
|
332
|
-
f_zones: Vue.$login.f.zones
|
|
333
|
-
}
|
|
334
|
-
await Vue.resetpost('api/af-revenue/logic/commonCancel', {data: param}, {resolveMsg: '撤销成功', rejectMsg: '撤销失败'})
|
|
335
|
-
this.search()
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
async allcharge () {
|
|
339
|
-
console.log('1=====>' + this.condition2)
|
|
340
|
-
// if (!this.$login.r.find(value => value == '微信缴费权限')) {
|
|
341
|
-
// this.$showMessage('当前登录用户没有微信缴费权限, 请联系管理员!')
|
|
342
|
-
// return
|
|
343
|
-
// }
|
|
344
|
-
let condition = this.condition2
|
|
345
|
-
let item = '已下单'
|
|
346
|
-
await this.$resetpost('api/af-revenue/logic/dealAllwxBill', {data: {condition: condition, item: item}}, {warnMsg: `确定进行全部缴费吗?`, resolveMsg: '收费成功!!', rejectMsg: '收费出错!!!'})
|
|
347
|
-
},
|
|
348
|
-
async allcharge1 () {
|
|
349
|
-
// if (!this.$login.r.find(value => value == '微信缴费权限')) {
|
|
350
|
-
// this.$showMessage('当前登录用户没有微信缴费权限, 请联系管理员!')
|
|
351
|
-
// return
|
|
352
|
-
// }
|
|
353
|
-
let condition = this.condition2
|
|
354
|
-
let item = '已退款'
|
|
355
|
-
await this.$resetpost('api/af-revenue/logic/dealAllwxBill', {data: {condition: condition, item: item}}, {warnMsg: `确定标记以下所有订单为已退款吗, 该操作无法撤销, 请谨慎操作?`, resolveMsg: '标记为已退款成功', rejectMsg: '标记为已退款失败!!!'})
|
|
356
|
-
},
|
|
357
|
-
// 微信单方账单,系统可缴费(将微信已支付改成已下单,微信会自动扫状态,并插入收费记录)
|
|
358
|
-
async charge (row) {
|
|
359
|
-
// if (!this.$login.r.find(value => value == '微信缴费权限')) {
|
|
360
|
-
// this.$showMessage('当前登录用户没有微信缴费权限, 请联系管理员!')
|
|
361
|
-
// return
|
|
362
|
-
// }
|
|
363
|
-
let sql = `update t_weixinreturnxml set f_order_state = '已下单' where id = '${row.id}'`
|
|
364
|
-
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sql}}, {warnMsg: `确定进行缴费吗?`, resolveMsg: '收费成功!!', rejectMsg: '收费出错!!!'})
|
|
365
|
-
// this.search()
|
|
366
|
-
},
|
|
367
|
-
// 标记为已退款
|
|
368
|
-
async charge1 (row) {
|
|
369
|
-
let sql = `update t_weixinreturnxml set f_order_state = '已退款' where id = '${row.id}'`
|
|
370
|
-
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sql}}, {warnMsg: `确定标记该笔订单为已退款吗, 该操作无法撤销, 请谨慎操作?`, resolveMsg: '标记为已退款成功', rejectMsg: '标记为已退款失败!!!'})
|
|
371
|
-
// this.search()
|
|
372
|
-
},
|
|
373
|
-
modify (row) {
|
|
374
|
-
console.log('返回数据1', row)
|
|
375
|
-
this.$showMessage('确认重置微信支付状态么?', ['confirm', 'cancel']).then((res) => {
|
|
376
|
-
if (res === 'confirm') {
|
|
377
|
-
let data = {
|
|
378
|
-
f_transaction_id: row.f_transaction_id
|
|
379
|
-
}
|
|
380
|
-
this.$resetpost('api/af-revenue/logic/weChatMeter', data, {resolveMsg: null, rejectMsg: '重置出错!!!'}).then((res) => {
|
|
381
|
-
console.log('返回数据3', res)
|
|
382
|
-
this.$refs.paged.$refs.cri.search()
|
|
383
|
-
this.$showAlert(`重置成功!`, 'success', 4000)
|
|
384
|
-
// this.search()
|
|
385
|
-
}).catch((error) => {
|
|
386
|
-
console.log('重置异常', res)
|
|
387
|
-
})
|
|
388
|
-
}
|
|
389
|
-
})
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
events: {
|
|
393
|
-
// 删除Resid数组元素
|
|
394
|
-
'delResid' (val) {
|
|
395
|
-
this.resid.$remove({id: val, f_biobid: ''})
|
|
396
|
-
// this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
|
|
397
|
-
},
|
|
398
|
-
// 增加Resid数组元素
|
|
399
|
-
'resid' (val) {
|
|
400
|
-
console.log('-=', val)
|
|
401
|
-
this.resid.push({id: val, f_biobid: ''})
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
computed: {
|
|
405
|
-
getCondition () {
|
|
406
|
-
return {
|
|
407
|
-
orgid: this.f_orgid,
|
|
408
|
-
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
409
|
-
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
410
|
-
condition: this.condition2
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
watch: {
|
|
415
|
-
sumsmodel: {
|
|
416
|
-
handler: function (val) {
|
|
417
|
-
this.getotherfooter()
|
|
418
|
-
},
|
|
419
|
-
deep: true
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 98%">
|
|
3
|
+
<div class="flex">
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
6
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div
|
|
9
|
+
class="col-sm-2 form-group">
|
|
10
|
+
<label class="font_normal_body">组织机构</label>
|
|
11
|
+
<res-select :initresid='$parent.$parent.curorgid'
|
|
12
|
+
@res-select="$parent.$parent.getorg"
|
|
13
|
+
class="select select_list"
|
|
14
|
+
restype='organization'
|
|
15
|
+
style="width: 60%">
|
|
16
|
+
</res-select>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="col-sm-2 form-group">
|
|
19
|
+
<label class="font_normal_body">银行名称</label>
|
|
20
|
+
<v-select
|
|
21
|
+
v-model="model.bankName"
|
|
22
|
+
placeholder='银行名称'
|
|
23
|
+
condition="f_bank_type = '{}'"
|
|
24
|
+
:value.sync="model.bankName"
|
|
25
|
+
:options='$parent.$parent.bankName'
|
|
26
|
+
close-on-select></v-select>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-sm-2 form-group">
|
|
29
|
+
<label class="font_normal_body">对账信息</label>
|
|
30
|
+
<v-select
|
|
31
|
+
v-model="model.letter"
|
|
32
|
+
placeholder='对账信息'
|
|
33
|
+
condition="msg = '{}'"
|
|
34
|
+
:value.sync="model.letter"
|
|
35
|
+
:options='$parent.$parent.letter'
|
|
36
|
+
close-on-select></v-select>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-2 form-group">
|
|
39
|
+
<label for="startDate" class="font_normal_body">开始日期</label>
|
|
40
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
41
|
+
v-model="model.startDate" style="width: 55%"
|
|
42
|
+
:value.sync="model.startDate"
|
|
43
|
+
condition="f_datatime >= '{} 00:00:00'"
|
|
44
|
+
:disabled-days-of-Week="[]"
|
|
45
|
+
:format="'yyyy-MM-dd'"
|
|
46
|
+
:show-reset-button="reset">
|
|
47
|
+
</datepicker>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="col-sm-2 form-group">
|
|
50
|
+
<label for="endDate" class="font_normal_body"> 结束日期</label>
|
|
51
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
52
|
+
v-model="model.endDate" style="width: 55%"
|
|
53
|
+
:value.sync="model.endDate"
|
|
54
|
+
condition="f_datatime <= '{} 23:59:59'"
|
|
55
|
+
:disabled-days-of-Week="[]"
|
|
56
|
+
:format="'yyyy-MM-dd'"
|
|
57
|
+
:show-reset-button="reset">
|
|
58
|
+
</datepicker>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="span" style="float:right;">
|
|
61
|
+
<button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
|
|
62
|
+
<!--<button class="button_search button_spacing width-60" v-if="$parent.$parent.showallcharge"-->
|
|
63
|
+
<!-- @click="$parent.$parent.allcharge()" v-el:cx>全部缴费</button>-->
|
|
64
|
+
<!--<button class="button_search button_spacing width-60" v-if="$parent.$parent.showallcharge || $parent.$parent.showallcharge1"-->
|
|
65
|
+
<!-- @click="$parent.$parent.allcharge1()" v-el:cx>全部标记退款</button>-->
|
|
66
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
67
|
+
:field="$parent.$parent.getfield"
|
|
68
|
+
sqlurl="api/af-revenue/logic/saleExport" progress="saleGetExportProgress" sql-name="QrPaydetail"
|
|
69
|
+
template-name='聚合支付对账查询导出' :choose-col="true"></export-excel>
|
|
70
|
+
<!--<div-->
|
|
71
|
+
<!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
|
|
72
|
+
<!-- @click="$parent.$parent.hidden()"-->
|
|
73
|
+
<!-- class="button_spacing"-->
|
|
74
|
+
<!-- style="float: right">-->
|
|
75
|
+
<!--</div>-->
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</criteria>
|
|
80
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
81
|
+
<template partial='head'>
|
|
82
|
+
<tr>
|
|
83
|
+
<th>序号</th>
|
|
84
|
+
<th>用户编号</th>
|
|
85
|
+
<th>用户姓名</th>
|
|
86
|
+
<th>用户类型</th>
|
|
87
|
+
<th>表号</th>
|
|
88
|
+
<th>用户地址</th>
|
|
89
|
+
<th>支付类型</th>
|
|
90
|
+
<th>银行金额</th>
|
|
91
|
+
<th>系统金额</th>
|
|
92
|
+
<th style="white-space: nowrap;">银行方日期</th>
|
|
93
|
+
<th>燃气方日期</th>
|
|
94
|
+
<th>银行流水号</th>
|
|
95
|
+
<th>系统流水号</th>
|
|
96
|
+
<th>对账信息</th>
|
|
97
|
+
<th>所属公司</th>
|
|
98
|
+
<th>所属部门</th>
|
|
99
|
+
<th>操作人员</th>
|
|
100
|
+
<!--<th>操作</th>-->
|
|
101
|
+
</tr>
|
|
102
|
+
</template>
|
|
103
|
+
<template partial='body'>
|
|
104
|
+
<td style="text-align: center;">
|
|
105
|
+
<nobr>{{$index+1}}</nobr>
|
|
106
|
+
</td>
|
|
107
|
+
<td style="text-align: center;">
|
|
108
|
+
<nobr>{{row.f_userinfo_code}}</nobr>
|
|
109
|
+
</td>
|
|
110
|
+
<td style="text-align: center;">
|
|
111
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
112
|
+
</td>
|
|
113
|
+
<td style="text-align: center;">
|
|
114
|
+
<nobr>{{row.f_user_type}}</nobr>
|
|
115
|
+
</td>
|
|
116
|
+
<td style="text-align: center;">
|
|
117
|
+
<nobr>{{row.f_meternumber}}</nobr>
|
|
118
|
+
</td>
|
|
119
|
+
<td style="text-align: center;">
|
|
120
|
+
<nobr>{{row.f_address}}</nobr>
|
|
121
|
+
</td>
|
|
122
|
+
<td style="text-align: center;">
|
|
123
|
+
<nobr>{{$parent.$parent.$parent.getPayTypeLable(row.f_trade_type)}}</nobr>
|
|
124
|
+
</td>
|
|
125
|
+
<td style="text-align: center;">
|
|
126
|
+
<nobr>{{row.f_total_fee}}</nobr>
|
|
127
|
+
</td>
|
|
128
|
+
<td style="text-align: center;">
|
|
129
|
+
<nobr>{{row.f_collection}}</nobr>
|
|
130
|
+
</td>
|
|
131
|
+
<td style="text-align: center;">
|
|
132
|
+
<nobr>{{row.f_datatime}}</nobr>
|
|
133
|
+
</td>
|
|
134
|
+
<td style="text-align: center;">
|
|
135
|
+
<nobr>{{row.f_operate_date}}</nobr>
|
|
136
|
+
</td>
|
|
137
|
+
<td style="text-align: center;">
|
|
138
|
+
<nobr>{{row.f_transaction_id}}</nobr>
|
|
139
|
+
</td>
|
|
140
|
+
<td style="text-align: center;">
|
|
141
|
+
<nobr>{{row.f_serial_id}}</nobr>
|
|
142
|
+
</td>
|
|
143
|
+
<td style="text-align: center;">{{row.msg}}</td>
|
|
144
|
+
<td style="text-align: center;">{{row.f_orgname}}</td>
|
|
145
|
+
<td style="text-align: center;">{{row.f_depname}}</td>
|
|
146
|
+
<td style="text-align: center;">{{row.f_operator}}</td>
|
|
147
|
+
|
|
148
|
+
<!--<td>-->
|
|
149
|
+
<!-- <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.charge1(row)"-->
|
|
150
|
+
<!-- v-if="row.msg === '银行单方面账单'">标记已退款</button>-->
|
|
151
|
+
<!-- <button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.charge(row)"-->
|
|
152
|
+
<!-- v-if="row.msg === '银行单方面账单' && row.f_trade_type === 'MICROPAY'">缴费-->
|
|
153
|
+
<!-- </button>-->
|
|
154
|
+
<!--</td>-->
|
|
155
|
+
</template>
|
|
156
|
+
</data-grid>
|
|
157
|
+
|
|
158
|
+
</criteria-paged>
|
|
159
|
+
<table class="table-hover">
|
|
160
|
+
<tr style="position: relative" class="table-bordered">
|
|
161
|
+
<td
|
|
162
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
163
|
+
汇总信息
|
|
164
|
+
</td>
|
|
165
|
+
<td
|
|
166
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
167
|
+
微信金额汇总: {{sumsmodel.f_total_fee}}
|
|
168
|
+
</td>
|
|
169
|
+
<td
|
|
170
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
171
|
+
收费金额汇总: {{sumsmodel.f_collection}}
|
|
172
|
+
</td>
|
|
173
|
+
<td
|
|
174
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
175
|
+
差额汇总: {{((sumsmodel.f_total_fee -0) - (sumsmodel.f_collection -0)).toFixed(2)}}
|
|
176
|
+
</td>
|
|
177
|
+
|
|
178
|
+
</tr>
|
|
179
|
+
</table>
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
</div>
|
|
184
|
+
</template>
|
|
185
|
+
<script>
|
|
186
|
+
import {PagedList} from 'vue-client'
|
|
187
|
+
import Vue from 'vue'
|
|
188
|
+
|
|
189
|
+
let readyGen = async function (self) {
|
|
190
|
+
self.getfield = self.config.excelHeaders
|
|
191
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
192
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
193
|
+
|
|
194
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export default {
|
|
198
|
+
title: '聚合支付对账',
|
|
199
|
+
data () {
|
|
200
|
+
return {
|
|
201
|
+
model: new PagedList('api/af-revenue/sql/QrPaydetail', 20,
|
|
202
|
+
{}, {f_collection: '', f_total_fee: ''}),
|
|
203
|
+
config: {
|
|
204
|
+
// 导出列要和查询列相同
|
|
205
|
+
excelHeaders: {
|
|
206
|
+
'f_userinfo_code': '用户编号',
|
|
207
|
+
'f_user_name': '用户姓名',
|
|
208
|
+
'f_trade_type': '支付类型',
|
|
209
|
+
'f_total_fee': '微信金额',
|
|
210
|
+
'f_collection': '收费记录金额',
|
|
211
|
+
'f_datatime': '交易日期',
|
|
212
|
+
'f_operate_date': '燃气方日期',
|
|
213
|
+
'f_transaction_id': '微信订单号',
|
|
214
|
+
'f_serial_id': '收费订单号',
|
|
215
|
+
'msg': '对账信息',
|
|
216
|
+
'f_orgname': '所属公司',
|
|
217
|
+
'f_depname': '所属部门',
|
|
218
|
+
'f_operator': '操作人员',
|
|
219
|
+
'f_address': '用户地址',
|
|
220
|
+
'f_meternumber': '表号'
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
letter: [
|
|
224
|
+
{label: '全部', value: ''},
|
|
225
|
+
{label: '银行单方面账单', value: '银行单方面账单'},
|
|
226
|
+
{label: '燃气方单方面账单', value: '燃气方单方面账单'},
|
|
227
|
+
{label: '对账成功', value: '对账成功'}
|
|
228
|
+
],
|
|
229
|
+
getfield: {},
|
|
230
|
+
criteriaShow: false,
|
|
231
|
+
condition2: '',
|
|
232
|
+
f_orgid: '',
|
|
233
|
+
bankName: [],
|
|
234
|
+
msg: [],
|
|
235
|
+
resid: [], // 存放新增的f_files表中id
|
|
236
|
+
// 公司下拉
|
|
237
|
+
// curorgid: [this.$login.f.orgid],
|
|
238
|
+
initres: {
|
|
239
|
+
org: [this.$login.f.orgid],
|
|
240
|
+
dep: [],
|
|
241
|
+
user: []
|
|
242
|
+
},
|
|
243
|
+
initresgroup: ['company', 'department', 'operator'],
|
|
244
|
+
orgCondtionStr: '',
|
|
245
|
+
// 合计数据
|
|
246
|
+
sumsmodel: {},
|
|
247
|
+
showallcharge: false,
|
|
248
|
+
showallcharge1: false
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
props: [],
|
|
252
|
+
ready () {
|
|
253
|
+
readyGen(this)
|
|
254
|
+
this.getBankName()
|
|
255
|
+
},
|
|
256
|
+
methods: {
|
|
257
|
+
hidden () {
|
|
258
|
+
this.criteriaShow = !this.criteriaShow
|
|
259
|
+
},
|
|
260
|
+
getorg (val) {
|
|
261
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
262
|
+
this.f_filialeid = val[0]
|
|
263
|
+
},
|
|
264
|
+
getBankName () {
|
|
265
|
+
this.bankName = [{label: '全部', value: ''}, ...this.$appdata.getParam('聚合支付银行名称')]
|
|
266
|
+
},
|
|
267
|
+
getRes (condition, obj) {
|
|
268
|
+
if (condition.indexOf('f_orgid') > 0) {
|
|
269
|
+
let temp = condition.substring(condition.indexOf("f_orgid in ('") + 13)
|
|
270
|
+
this.f_orgid = temp.substring(temp.indexOf("')") - 4, 3)
|
|
271
|
+
} else {
|
|
272
|
+
this.f_orgid = this.$login.f.orgid
|
|
273
|
+
}
|
|
274
|
+
this.orgCondtionStr = condition
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
getotherfooter () {
|
|
278
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
279
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
280
|
+
this.other = []
|
|
281
|
+
this.footer = []
|
|
282
|
+
// let exportdata = this.getCondition;
|
|
283
|
+
let otherInData = []
|
|
284
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
285
|
+
let footerData = [], exportfield = this.getfield
|
|
286
|
+
footerData.push('合计')
|
|
287
|
+
let self = this
|
|
288
|
+
for (var field in self.sumsmodel) {
|
|
289
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
290
|
+
}
|
|
291
|
+
this.footer.push(footerData)
|
|
292
|
+
this.other.push(otherInData)
|
|
293
|
+
},
|
|
294
|
+
search () {
|
|
295
|
+
this.$refs.paged.$refs.cri.search()
|
|
296
|
+
},
|
|
297
|
+
selfSearch (args) {
|
|
298
|
+
if (!this.f_orgid) {
|
|
299
|
+
this.getorg([this.$login.f.orgid])
|
|
300
|
+
}
|
|
301
|
+
console.log('查询。。。', this.f_orgid)
|
|
302
|
+
this.showallcharge1 = false
|
|
303
|
+
this.showallcharge = false
|
|
304
|
+
if (!this.orgCondtionStr) {
|
|
305
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
306
|
+
} else {
|
|
307
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
308
|
+
}
|
|
309
|
+
this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
310
|
+
this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
311
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
312
|
+
this.condition2 = args.condition
|
|
313
|
+
this.model.search(args.condition, args.model)
|
|
314
|
+
// 只有选择微信支付和微信单方面账单时才能全部缴费
|
|
315
|
+
if (this.model.model.letter[0] === '银行单方面账单' && this.model.model.payType[0] === 'MICROPAY') {
|
|
316
|
+
this.showallcharge = true
|
|
317
|
+
} else if (this.model.model.payType[0] === 'MICROPAY') {
|
|
318
|
+
this.showallcharge1 = true
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
// 系统单方账单,系统可冲正
|
|
322
|
+
async chargecal (row) {
|
|
323
|
+
if (row.f_meter_type === '物联网表' || row.f_meter_type === '机表') {
|
|
324
|
+
let param = {
|
|
325
|
+
f_sell_id: row.maxid,
|
|
326
|
+
f_cancel_reason: '',
|
|
327
|
+
f_orgid: Vue.$login.f.orgid,
|
|
328
|
+
f_orgname: Vue.$login.f.orgs,
|
|
329
|
+
f_depid: Vue.$login.f.depids,
|
|
330
|
+
f_depname: Vue.$login.f.deps,
|
|
331
|
+
f_zoneid: Vue.$login.f.zoneid,
|
|
332
|
+
f_zones: Vue.$login.f.zones
|
|
333
|
+
}
|
|
334
|
+
await Vue.resetpost('api/af-revenue/logic/commonCancel', {data: param}, {resolveMsg: '撤销成功', rejectMsg: '撤销失败'})
|
|
335
|
+
this.search()
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
async allcharge () {
|
|
339
|
+
console.log('1=====>' + this.condition2)
|
|
340
|
+
// if (!this.$login.r.find(value => value == '微信缴费权限')) {
|
|
341
|
+
// this.$showMessage('当前登录用户没有微信缴费权限, 请联系管理员!')
|
|
342
|
+
// return
|
|
343
|
+
// }
|
|
344
|
+
let condition = this.condition2
|
|
345
|
+
let item = '已下单'
|
|
346
|
+
await this.$resetpost('api/af-revenue/logic/dealAllwxBill', {data: {condition: condition, item: item}}, {warnMsg: `确定进行全部缴费吗?`, resolveMsg: '收费成功!!', rejectMsg: '收费出错!!!'})
|
|
347
|
+
},
|
|
348
|
+
async allcharge1 () {
|
|
349
|
+
// if (!this.$login.r.find(value => value == '微信缴费权限')) {
|
|
350
|
+
// this.$showMessage('当前登录用户没有微信缴费权限, 请联系管理员!')
|
|
351
|
+
// return
|
|
352
|
+
// }
|
|
353
|
+
let condition = this.condition2
|
|
354
|
+
let item = '已退款'
|
|
355
|
+
await this.$resetpost('api/af-revenue/logic/dealAllwxBill', {data: {condition: condition, item: item}}, {warnMsg: `确定标记以下所有订单为已退款吗, 该操作无法撤销, 请谨慎操作?`, resolveMsg: '标记为已退款成功', rejectMsg: '标记为已退款失败!!!'})
|
|
356
|
+
},
|
|
357
|
+
// 微信单方账单,系统可缴费(将微信已支付改成已下单,微信会自动扫状态,并插入收费记录)
|
|
358
|
+
async charge (row) {
|
|
359
|
+
// if (!this.$login.r.find(value => value == '微信缴费权限')) {
|
|
360
|
+
// this.$showMessage('当前登录用户没有微信缴费权限, 请联系管理员!')
|
|
361
|
+
// return
|
|
362
|
+
// }
|
|
363
|
+
let sql = `update t_weixinreturnxml set f_order_state = '已下单' where id = '${row.id}'`
|
|
364
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sql}}, {warnMsg: `确定进行缴费吗?`, resolveMsg: '收费成功!!', rejectMsg: '收费出错!!!'})
|
|
365
|
+
// this.search()
|
|
366
|
+
},
|
|
367
|
+
// 标记为已退款
|
|
368
|
+
async charge1 (row) {
|
|
369
|
+
let sql = `update t_weixinreturnxml set f_order_state = '已退款' where id = '${row.id}'`
|
|
370
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sql}}, {warnMsg: `确定标记该笔订单为已退款吗, 该操作无法撤销, 请谨慎操作?`, resolveMsg: '标记为已退款成功', rejectMsg: '标记为已退款失败!!!'})
|
|
371
|
+
// this.search()
|
|
372
|
+
},
|
|
373
|
+
modify (row) {
|
|
374
|
+
console.log('返回数据1', row)
|
|
375
|
+
this.$showMessage('确认重置微信支付状态么?', ['confirm', 'cancel']).then((res) => {
|
|
376
|
+
if (res === 'confirm') {
|
|
377
|
+
let data = {
|
|
378
|
+
f_transaction_id: row.f_transaction_id
|
|
379
|
+
}
|
|
380
|
+
this.$resetpost('api/af-revenue/logic/weChatMeter', data, {resolveMsg: null, rejectMsg: '重置出错!!!'}).then((res) => {
|
|
381
|
+
console.log('返回数据3', res)
|
|
382
|
+
this.$refs.paged.$refs.cri.search()
|
|
383
|
+
this.$showAlert(`重置成功!`, 'success', 4000)
|
|
384
|
+
// this.search()
|
|
385
|
+
}).catch((error) => {
|
|
386
|
+
console.log('重置异常', res)
|
|
387
|
+
})
|
|
388
|
+
}
|
|
389
|
+
})
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
events: {
|
|
393
|
+
// 删除Resid数组元素
|
|
394
|
+
'delResid' (val) {
|
|
395
|
+
this.resid.$remove({id: val, f_biobid: ''})
|
|
396
|
+
// this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
|
|
397
|
+
},
|
|
398
|
+
// 增加Resid数组元素
|
|
399
|
+
'resid' (val) {
|
|
400
|
+
console.log('-=', val)
|
|
401
|
+
this.resid.push({id: val, f_biobid: ''})
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
computed: {
|
|
405
|
+
getCondition () {
|
|
406
|
+
return {
|
|
407
|
+
orgid: this.f_orgid,
|
|
408
|
+
startDate: this.$refs.paged.$refs.cri.model.startDate,
|
|
409
|
+
endDate: this.$refs.paged.$refs.cri.model.endDate,
|
|
410
|
+
condition: this.condition2
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
watch: {
|
|
415
|
+
sumsmodel: {
|
|
416
|
+
handler: function (val) {
|
|
417
|
+
this.getotherfooter()
|
|
418
|
+
},
|
|
419
|
+
deep: true
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
</script>
|