sale-client 3.5.165 → 3.5.166
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
|
@@ -0,0 +1,287 @@
|
|
|
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='search' 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':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
|
|
10
|
+
class="form-group">
|
|
11
|
+
<label class="font_normal_body">组织机构</label>
|
|
12
|
+
<res-select :initresid='$parent.$parent.curorgid'
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
class="select select_list"
|
|
15
|
+
restype='organization'
|
|
16
|
+
style="width: 60%">
|
|
17
|
+
</res-select>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label for="f_bank_name" class="font_normal_body">银行名称:</label>
|
|
21
|
+
<v-select id="f_bank_name"
|
|
22
|
+
v-model="model.f_bank_name"
|
|
23
|
+
placeholder='银行名称'
|
|
24
|
+
condition="(s.f_bank_name= '{}' or s.bankname='{}') "
|
|
25
|
+
:value.sync="model.f_bank_name"
|
|
26
|
+
:options='$parent.$parent.bankname'
|
|
27
|
+
close-on-select ></v-select>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-2 form-group">
|
|
30
|
+
<label for="msg" class="font_normal_body" title="对账信息">对账信息:</label>
|
|
31
|
+
<v-select id="msg"
|
|
32
|
+
v-model="model.msg"
|
|
33
|
+
placeholder='对账信息'
|
|
34
|
+
condition="msg = '{}' "
|
|
35
|
+
:value.sync="model.msg"
|
|
36
|
+
:options='$parent.$parent.msg'
|
|
37
|
+
close-on-select ></v-select>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="col-sm-2 form-group">
|
|
40
|
+
<label for="startDate" class="font_normal_body">开始日期:</label>
|
|
41
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
42
|
+
v-model="model.startDate" style="width: 55%"
|
|
43
|
+
:value.sync="model.startDate"
|
|
44
|
+
condition="(f_trade_date >= '{} 00:00:00' or f_operate_date >= '{} 00:00:00')"
|
|
45
|
+
:disabled-days-of-Week="[]"
|
|
46
|
+
:format="'yyyy-MM-dd'"
|
|
47
|
+
:show-reset-button="reset">
|
|
48
|
+
</datepicker>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-2 form-group">
|
|
51
|
+
<label for="endDate" class="font_normal_body"> 结束日期:</label>
|
|
52
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
53
|
+
v-model="model.endDate" style="width: 55%"
|
|
54
|
+
:value.sync="model.endDate"
|
|
55
|
+
condition="(f_trade_date < '{} 23:59:59' or f_operate_date < '{} 23:59:59' )"
|
|
56
|
+
:disabled-days-of-Week="[]"
|
|
57
|
+
:format="'yyyy-MM-dd'"
|
|
58
|
+
:show-reset-button="reset">
|
|
59
|
+
</datepicker>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
<div class="form-group button-range" style="float: right">
|
|
63
|
+
<button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
|
|
64
|
+
<!-- <export-excel :data="{orderitem: 'msg_id,f_delivery_date DESC',condition: condition,startDate: this.model.startDate,endDate: this.model.endDate,bankname: this.model.f_bank_name[0]}"-->
|
|
65
|
+
<!-- bean="银行对账查询导出" sqlurl="rs/logic/exportfile"></export-excel>-->
|
|
66
|
+
<export-excel :data="$parent.$parent.getCondition" sql-name="bankPayment"
|
|
67
|
+
template-name="银行对账查询导出" sqlurl="rs/logic/saleExport"
|
|
68
|
+
:field="$parent.$parent.getfield" :choose-col="true"></export-excel>
|
|
69
|
+
<div style="float: right" class="button_spacing"
|
|
70
|
+
:class="{'button_shrink_top': $parent.$parent.criteriaShow,'button_shrink_bottom': !$parent.$parent.criteriaShow}"
|
|
71
|
+
@click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"></div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
75
|
+
|
|
76
|
+
<div class="col-sm-2 form-group">
|
|
77
|
+
<label class="font_normal_body">用户编号:</label>
|
|
78
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
|
79
|
+
condition="f_userinfo_code = '{}'" placeholder='用户编号'>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="col-sm-2 form-group">
|
|
82
|
+
<label class="font_normal_body"> 订单号:</label>
|
|
83
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_serial_id"
|
|
84
|
+
condition="(f_serial_id = '{}' or f_trade_number = '{}')" placeholder='订单号'>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</criteria>
|
|
90
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
91
|
+
<template partial='head'>
|
|
92
|
+
<tr>
|
|
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
|
+
<th>银行日期</th>
|
|
102
|
+
<th>燃气方记录是否有效</th>
|
|
103
|
+
<th>对账信息</th>
|
|
104
|
+
<th>操作</th>
|
|
105
|
+
</tr>
|
|
106
|
+
</template>
|
|
107
|
+
<template partial='body'>
|
|
108
|
+
<td style="text-align: center;">{{$index+1}}</td>
|
|
109
|
+
<td>{{row.f_userinfo_code}}</td>
|
|
110
|
+
<th>{{row.f_bank_name?row.f_bank_name:row.bankname}}</th>
|
|
111
|
+
<td>{{row.f_serial_id}}</td>
|
|
112
|
+
<td>{{row.f_trade_number}}</td>
|
|
113
|
+
<td>{{row.f_collection}}</td>
|
|
114
|
+
<td>{{row.f_total_charge}}</td>
|
|
115
|
+
<td>{{row.f_operate_date}}</td>
|
|
116
|
+
<td>{{row.f_trade_date}}</td>
|
|
117
|
+
<td>{{row.f_state}}</td>
|
|
118
|
+
<td>{{row.msg}}</td>
|
|
119
|
+
<td>
|
|
120
|
+
<button type="button" name="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.chargecal(row)"
|
|
121
|
+
v-if="row.msg === '燃气方单方面账单' && row.maxid !== '' && row.maxid!== null">冲正</button>
|
|
122
|
+
<!-- <button type="button" name="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.charge(row)"-->
|
|
123
|
+
<!-- v-if="row.msg === '银行方单方面账单'&& row.f_userinfo_id !=='' && row.f_userinfo_id !==null" >缴费</button>-->
|
|
124
|
+
<button type="button" name="button" class="button_search button_spacing width-60" @click="$parent.$parent.$parent.charge(row)"
|
|
125
|
+
v-if="row.msg === '银行方单方面账单'" >缴费</button>
|
|
126
|
+
<!-- <span v-if="row.f_type !== 1 && row.msg !== '对账成功' && row.msg !== '燃气方单方面账单'">需人工处理</span>-->
|
|
127
|
+
<span v-if="row.msg === '对账成功'">正常</span>
|
|
128
|
+
</td>
|
|
129
|
+
</template>
|
|
130
|
+
<!--<template partial='foot'>-->
|
|
131
|
+
<!--<td style="text-align: center;">合计</td>-->
|
|
132
|
+
<!--<td style="text-align: center;"></td>-->
|
|
133
|
+
<!--<td style="text-align: center;"></td>-->
|
|
134
|
+
<!--<td style="text-align: center;"></td>-->
|
|
135
|
+
<!--<td style="text-align: center;"></td>-->
|
|
136
|
+
<!--<td style="text-align: center;">{{model.sums.f_collection.toFixed(2)}}</td>-->
|
|
137
|
+
<!--<td style="text-align: center;">{{model.sums.f_total_charge.toFixed(2)}}</td>-->
|
|
138
|
+
<!--<td style="text-align: center;"></td>-->
|
|
139
|
+
<!--<td style="text-align: center;"></td>-->
|
|
140
|
+
<!--<td style="text-align: center;"></td>-->
|
|
141
|
+
<!--<td style="text-align: center;"></td>-->
|
|
142
|
+
<!--<td style="text-align: center;"></td>-->
|
|
143
|
+
<!--</template>-->
|
|
144
|
+
</data-grid>
|
|
145
|
+
</criteria-paged>
|
|
146
|
+
<table class="table-hover">
|
|
147
|
+
<tr style="position: relative" class="table-bordered">
|
|
148
|
+
<td
|
|
149
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
150
|
+
汇总信息
|
|
151
|
+
</td>
|
|
152
|
+
<td
|
|
153
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
154
|
+
燃气方金额汇总: {{model.sums.f_collection.toFixed(2)}}
|
|
155
|
+
</td>
|
|
156
|
+
<td
|
|
157
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
158
|
+
银行金额汇总: {{model.sums.f_total_charge.toFixed(2)}}
|
|
159
|
+
</td>
|
|
160
|
+
<td
|
|
161
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
162
|
+
差额汇总: {{((model.sums.f_total_charge -0) - (model.sums.f_collection.toFixed(2) -0)).toFixed(2)}}
|
|
163
|
+
</td>
|
|
164
|
+
</tr>
|
|
165
|
+
</table>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</template>
|
|
169
|
+
<script>
|
|
170
|
+
import { PagedList } from 'vue-client'
|
|
171
|
+
import Vue from 'vue'
|
|
172
|
+
|
|
173
|
+
export default {
|
|
174
|
+
title: '银行对账',
|
|
175
|
+
data () {
|
|
176
|
+
return {
|
|
177
|
+
resid: [], // 存放新增的f_files表中id
|
|
178
|
+
criteriaShow:false,
|
|
179
|
+
curorgid: [this.$login.f.orgid],
|
|
180
|
+
model: new PagedList('rs/sql/bankPayment', 20, {bankname: 'this.model.f_bank_name[0]', startDate: 'this.model.startDate', endDate: 'this.model.endDate', orderitem: '"delivery_date DESC "'}, {f_collection: '', f_total_charge: ''}),
|
|
181
|
+
bodydata: ['f_userinfo_code', 'f_bank_name', 'f_serial_id', 'f_trade_number', 'f_collection', 'f_total_charge', 'f_operate_date', 'f_state', 'msg'],
|
|
182
|
+
header: ['用户编号', '银行名称', '燃气方流水号', '银行流水号', '燃气方金额', '银行金额', '燃气方日期', '银行日期', '燃气方记录是否有效', '对账信息']
|
|
183
|
+
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
props: [],
|
|
187
|
+
ready () {
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
search () {
|
|
191
|
+
this.$refs.paged.$refs.cri.search()
|
|
192
|
+
},
|
|
193
|
+
selfSearch (args) {
|
|
194
|
+
if (!this.f_orgid) {
|
|
195
|
+
this.getorg([this.$login.f.orgid])
|
|
196
|
+
}
|
|
197
|
+
console.log('查询。。。', this.f_orgid)
|
|
198
|
+
if (this.f_orgid) {
|
|
199
|
+
args.condition = `${args.condition} and f_orgid in ${this.f_orgid}`
|
|
200
|
+
}
|
|
201
|
+
this.model.search(args.condition, args.model)
|
|
202
|
+
},
|
|
203
|
+
async chargecal (row) {
|
|
204
|
+
let param = {
|
|
205
|
+
f_sell_id: row.maxid,
|
|
206
|
+
f_cancel_reason: '',
|
|
207
|
+
f_orgid: Vue.$login.f.orgid,
|
|
208
|
+
f_orgname: Vue.$login.f.orgs,
|
|
209
|
+
f_depid: Vue.$login.f.depids,
|
|
210
|
+
f_depname: Vue.$login.f.deps,
|
|
211
|
+
f_zoneid: Vue.$login.f.zoneid,
|
|
212
|
+
f_zones: Vue.$login.f.zones
|
|
213
|
+
}
|
|
214
|
+
await Vue.resetpost('rs/logic/commonCancel', {data: param}, {resolveMsg: '撤销成功', rejectMsg: '撤销失败'})
|
|
215
|
+
this.$refs.paged.$refs.cri.search()
|
|
216
|
+
},
|
|
217
|
+
getorg (val) {
|
|
218
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
219
|
+
this.f_filialeid = val[0]
|
|
220
|
+
},
|
|
221
|
+
// 微信单方账单,系统可缴费
|
|
222
|
+
async charge (row) {
|
|
223
|
+
let str1 = JSON.parse(row.f_attach)
|
|
224
|
+
if (str1.isHand == 0) {
|
|
225
|
+
let data = {
|
|
226
|
+
f_user_id: str1.f_user_id,
|
|
227
|
+
f_userfiles_id: str1.f_userfiles_id,
|
|
228
|
+
f_card_id: str1.f_card_id,
|
|
229
|
+
f_collection: str1.f_collection,
|
|
230
|
+
f_preamount: str1.f_preamount,
|
|
231
|
+
f_totalcost: str1.f_totalcost,
|
|
232
|
+
f_pregas: str1.f_pregas,
|
|
233
|
+
f_terminal_num: str1.f_terminal_num,
|
|
234
|
+
f_payment: str1.f_payment,
|
|
235
|
+
isGasValue: 0,
|
|
236
|
+
f_print: '普通收据',
|
|
237
|
+
f_serial_id: row.f_trade_number,
|
|
238
|
+
f_delivery_date: row.f_trade_date,
|
|
239
|
+
f_operate_date: row.f_operate_date,
|
|
240
|
+
f_unit: 'yuan'
|
|
241
|
+
}
|
|
242
|
+
console.log('data', data)
|
|
243
|
+
this.$resetpost('rs/logic/thirdPay', data, {
|
|
244
|
+
resolveMsg: '',
|
|
245
|
+
rejectMsg: '保存记录出错!!!'
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
this.$refs.paged.$refs.cri.search()
|
|
249
|
+
}
|
|
250
|
+
// })
|
|
251
|
+
},
|
|
252
|
+
events: {
|
|
253
|
+
// 删除Resid数组元素
|
|
254
|
+
'delResid' (val) {
|
|
255
|
+
this.resid.$remove({id: val, f_biobid: ''})
|
|
256
|
+
// this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
|
|
257
|
+
},
|
|
258
|
+
// 增加Resid数组元素
|
|
259
|
+
'resid' (val) {
|
|
260
|
+
console.log('-=', val)
|
|
261
|
+
this.resid.push({id: val, f_biobid: ''})
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
computed: {
|
|
265
|
+
bankname () {
|
|
266
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
|
|
267
|
+
},
|
|
268
|
+
msg () {
|
|
269
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('对账信息')]
|
|
270
|
+
},
|
|
271
|
+
filiales () {
|
|
272
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('分公司')]
|
|
273
|
+
},
|
|
274
|
+
getCondition () {
|
|
275
|
+
return {condition: this.$refs.paged.$refs.cri.condition, orderitem: 'delivery_date DESC ' }
|
|
276
|
+
},
|
|
277
|
+
getfield () {
|
|
278
|
+
let data = {}
|
|
279
|
+
this.bodydata.forEach((value, index) => {
|
|
280
|
+
data[this.bodydata[index]] = this.header[index]
|
|
281
|
+
})
|
|
282
|
+
return data
|
|
283
|
+
console.log('field' + data)
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
</script>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// 分公司特殊组件页面注册
|
|
2
2
|
let specialComp = {
|
|
3
3
|
'high-meter-idcard': (resolve) => { require(['./HighMeterIdCard'], resolve) },
|
|
4
|
+
'bank-payment': (resolve) => { require(['./BankPayment'], resolve) },
|
|
4
5
|
// 机表抄表
|
|
5
6
|
'file-address-list': (resolve) => { require(['./FileAddressList'], resolve) },
|
|
6
7
|
'file-user-files': (resolve) => { require(['./FileUserFiles'], resolve) },
|