sale-client 3.6.554 → 3.6.555
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/base/rightview/CardList.vue +2 -2
- package/src/filiale/haile/CardList.vue +2 -1
- package/src/filiale/haile/UserBaseInfoNew.vue +51 -1
- package/src/filiale/haile/sale.js +2 -0
- package/src/filiale/haile/valveRecord.vue +58 -0
- package/src/filiale/jingyang/sale.js +3 -0
- package/src/filiale/jingyang/wechatValidate.vue +61 -0
- package/src/filiale/jingyang/wechatValidateManage.vue +64 -29
- package/src/filiale/jingyang/wechatValidateRefund.vue +306 -0
- package/src/filiale/wuhai/CardList.vue +4 -4
- package/src/filiale/wuhai/ShowCardSellGas.vue +24 -15
package/package.json
CHANGED
|
@@ -301,9 +301,9 @@
|
|
|
301
301
|
search () {
|
|
302
302
|
let condition = '1=1'
|
|
303
303
|
if (this.f_orgid) {
|
|
304
|
-
condition += `and (u.f_filialeid in ${this.f_orgid} or
|
|
304
|
+
condition += `and (u.f_filialeid in ${this.f_orgid} or u.f_orgid in ${this.f_orgid}) `
|
|
305
305
|
} else {
|
|
306
|
-
condition += `and (u.f_filialeid = '${this.$login.f.orgid}' or
|
|
306
|
+
condition += `and (u.f_filialeid = '${this.$login.f.orgid}' or u.f_orgid ='${this.$login.f.orgid}')`
|
|
307
307
|
}
|
|
308
308
|
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
309
309
|
if (a.data.length === 0) {
|
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
<price-adjustment-detail :data="row" v-if="row.type === '价格补差'"></price-adjustment-detail>
|
|
151
151
|
<gasloss-detail :data="row" v-if="row.type === '气损收费' || row.type === '气损收费撤销'"></gasloss-detail>
|
|
152
152
|
<garbage-detail :data="row" v-if="row.type === '垃圾费收费'"></garbage-detail>
|
|
153
|
+
<valve-record :data="row" v-if="row.type === '机表开阀' || row.type === '机表关阀'"></valve-record>
|
|
153
154
|
</div>
|
|
154
155
|
<div style="margin-top: 8px;background: #FFF;" v-if="!$parent.$parent.$parent.isSelected(row)">
|
|
155
156
|
<span>{{row.f_describe}}</span>
|
|
@@ -339,7 +340,7 @@
|
|
|
339
340
|
f_money: `'${result.data.sell.f_collection}'`,
|
|
340
341
|
f_omoney: `'${result.data.sell.f_delaypay}'`,
|
|
341
342
|
f_balance: `'${result.data.sell.f_curbalance}'`,
|
|
342
|
-
f_operator: `'${
|
|
343
|
+
f_operator: `'${result.data.sell.f_operator}'`
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
346
|
console.log('最终打印的数据', this.bookData)
|
|
@@ -165,6 +165,8 @@
|
|
|
165
165
|
class="button_search" type="button" @click="openUser">开户</button>
|
|
166
166
|
<button v-if="row.f_meter_type.includes('物联网表')"
|
|
167
167
|
class="button_search" type="button" @click="valvecontrol">开关阀</button>
|
|
168
|
+
<button v-if="row.f_meter_type.includes('机表')"
|
|
169
|
+
class="button_search" type="button" @click="jiBiaoValveControl">机表开关阀</button>
|
|
168
170
|
<button v-if="row.f_meter_type.includes('物联网表')"
|
|
169
171
|
class="button_search" type="button" @click="zdfk">开关自动阀控</button>
|
|
170
172
|
<div
|
|
@@ -247,6 +249,24 @@
|
|
|
247
249
|
<button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='valveoperate(false)'>关阀</button>
|
|
248
250
|
</footer>
|
|
249
251
|
</modal>
|
|
252
|
+
<!--阀控管理弹框-->
|
|
253
|
+
<modal :show.sync="jiBiaoValve">
|
|
254
|
+
<header slot="modal-header" class="modal-header">
|
|
255
|
+
<button type="button" class="close" @click="close()"><span>×</span></button>
|
|
256
|
+
<h4 class="modal-title" align="center">机表阀门管理</h4>
|
|
257
|
+
</header>
|
|
258
|
+
<article slot="modal-body" class="modal-body">
|
|
259
|
+
<div class="form-group " style="padding-left: 8px">
|
|
260
|
+
<label class="font_normal_body" :class="operateReason?'text-info':'text-danger'">操作原因</label>
|
|
261
|
+
<textarea class="form-control" style="width:80%" v-model="operateReason" rows="3" placeholder="请填写操作原因"></textarea>
|
|
262
|
+
</div>
|
|
263
|
+
</article>
|
|
264
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
265
|
+
<button type="button" class="button_search btn-ln fr" :disabled="!operateReason" @click='jiBiaoValveOperate(true)'>开阀</button>
|
|
266
|
+
|
|
267
|
+
<button type="button" class="btn btn-info btn-ln fr" :disabled="!operateReason" @click='jiBiaoValveOperate(false)'>关阀</button>
|
|
268
|
+
</footer>
|
|
269
|
+
</modal>
|
|
250
270
|
</div>
|
|
251
271
|
</template>
|
|
252
272
|
|
|
@@ -272,7 +292,8 @@
|
|
|
272
292
|
valveLimit: false,
|
|
273
293
|
// 开关阀操作原因
|
|
274
294
|
operateReason: '',
|
|
275
|
-
valve: false
|
|
295
|
+
valve: false,
|
|
296
|
+
jiBiaoValve: false
|
|
276
297
|
}
|
|
277
298
|
},
|
|
278
299
|
|
|
@@ -383,8 +404,16 @@
|
|
|
383
404
|
this.$showAlert('您没有开关阀权限,请联系管理员!!', 'warning', 3000)
|
|
384
405
|
}
|
|
385
406
|
},
|
|
407
|
+
jiBiaoValveControl () {
|
|
408
|
+
if (this.$login.r.includes('开关阀')) {
|
|
409
|
+
this.jiBiaoValve = true
|
|
410
|
+
} else {
|
|
411
|
+
this.$showAlert('您没有开关阀权限,请联系管理员!!', 'warning', 3000)
|
|
412
|
+
}
|
|
413
|
+
},
|
|
386
414
|
close () {
|
|
387
415
|
this.valve = false
|
|
416
|
+
this.jiBiaoValve = false
|
|
388
417
|
this.operateReason = ''
|
|
389
418
|
},
|
|
390
419
|
// 开关阀操作
|
|
@@ -407,6 +436,27 @@
|
|
|
407
436
|
this.valve = false
|
|
408
437
|
this.operateReason = ''
|
|
409
438
|
})
|
|
439
|
+
},
|
|
440
|
+
async jiBiaoValveOperate (oper) {
|
|
441
|
+
let msg = oper ? '机表开阀' : '机表关阀'
|
|
442
|
+
let data = {
|
|
443
|
+
f_operator: Vue.$login.f.name,
|
|
444
|
+
f_operatorid: Vue.$login.f.id,
|
|
445
|
+
f_orgid: Vue.$login.f.orgid,
|
|
446
|
+
f_orgname: Vue.$login.f.orgs,
|
|
447
|
+
f_depid: Vue.$login.f.depids,
|
|
448
|
+
f_depname: Vue.$login.f.deps,
|
|
449
|
+
f_comments: this.operateReason,
|
|
450
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
451
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
452
|
+
f_user_id: this.row.f_user_id,
|
|
453
|
+
f_operat_type: msg
|
|
454
|
+
}
|
|
455
|
+
await this.$resetpost('rs/logic/jiBiaoValveOperate', {data: data},
|
|
456
|
+
{warnMsg: `确定要进行${msg}操作吗?`, resolveMsg: `${msg}成功`, rejectMsg: `${msg}失败`}).then(res => {
|
|
457
|
+
this.jiBiaoValve = false
|
|
458
|
+
this.operateReason = ''
|
|
459
|
+
})
|
|
410
460
|
}
|
|
411
461
|
},
|
|
412
462
|
watch: {
|
|
@@ -27,4 +27,6 @@ export default function () {
|
|
|
27
27
|
// 机表查询
|
|
28
28
|
Vue.component('un-handplan-query', (resolve) => { require(['./unHandplanQuery'], resolve) })
|
|
29
29
|
Vue.component('card-list', (resolve) => { require(['./CardList'], resolve) })
|
|
30
|
+
// 机表关阀开阀详情小组件
|
|
31
|
+
Vue.component('valve-record', (resolve) => { require(['./valveRecord'], resolve) })
|
|
30
32
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<partial-view v-ref:pv>
|
|
4
|
+
<div class="row">
|
|
5
|
+
<label class = "col-sm-4">客户名称:</label>
|
|
6
|
+
<span style="padding:0" class = "col-sm-8">{{model.f_user_name}}</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<label class = "col-sm-4">客户编号:</label>
|
|
10
|
+
<span class = "col-sm-8" style="text-align:left">{{model.f_userinfo_id}}</span>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="row">
|
|
13
|
+
<label class = "col-sm-4">开关阀原因:</label>
|
|
14
|
+
<pre style="padding:0" class = "col-sm-8">{{model.f_comments}}</pre>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="row">
|
|
17
|
+
<label class = "col-sm-4">操作人:</label>
|
|
18
|
+
<span class = "col-sm-8" style="text-align:left">{{model.f_operator}}</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="row">
|
|
21
|
+
<label class = "col-sm-4">操作时间:</label>
|
|
22
|
+
<span class = "col-sm-8" style="text-align:left">{{data.f_operate_date}}</span>
|
|
23
|
+
</div>
|
|
24
|
+
</partial-view>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
export default {
|
|
30
|
+
title: '销户详情',
|
|
31
|
+
props: ['data'],
|
|
32
|
+
data () {
|
|
33
|
+
return {
|
|
34
|
+
model: {}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
ready () {
|
|
38
|
+
let sql = 'singleTable_OrderBy'
|
|
39
|
+
let condition = {
|
|
40
|
+
items: 'r.f_userinfo_id,f_operate_date,f_comments,f_operator,t.f_user_name',
|
|
41
|
+
tablename: 't_record r left join (select f_user_name,f_userinfo_id from t_userinfo)t on t.f_userinfo_id = r.f_userinfo_id',
|
|
42
|
+
condition: 'id = ' + this.data.id,
|
|
43
|
+
orderitem: 'id'
|
|
44
|
+
}
|
|
45
|
+
this.$info(`加载数据中..., sql:${sql}`)
|
|
46
|
+
this.$refs.pv.load('rs/logic/getOneData', {data: {sql: sql, params: condition}}).then((a) => {
|
|
47
|
+
this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
|
|
48
|
+
this.model = a.data
|
|
49
|
+
}).catch((error) => {
|
|
50
|
+
if (error.status) {
|
|
51
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
throw error
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
@@ -39,4 +39,7 @@ export default function () {
|
|
|
39
39
|
Vue.component('wechat-validate-manage', (resolve) => { require(['./wechatValidateManage.vue'], resolve) })
|
|
40
40
|
// pos对账界面
|
|
41
41
|
Vue.component('query-instruct', (resolve) => { require(['./QueryInstruct.vue'], resolve) })
|
|
42
|
+
// 自助机对账
|
|
43
|
+
Vue.component('wechat-validate', (resolve) => { require(['./wechatValidate.vue'], resolve) })
|
|
44
|
+
Vue.component('wechat-validate-refund', (resolve) => { require(['./wechatValidateRefund.vue'], resolve) })
|
|
42
45
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- <div v-if="listpage">-->
|
|
3
|
+
<tab-button v-ref:list>
|
|
4
|
+
<tabs header="自助机对账明细">
|
|
5
|
+
<wechat-validate-manage @deal-msg="dealMsg"></wechat-validate-manage>
|
|
6
|
+
</tabs>
|
|
7
|
+
<tabs header="自助机对账退费">
|
|
8
|
+
<wechat-validate-refund @deal-msg="dealMsg"></wechat-validate-refund>
|
|
9
|
+
</tabs>
|
|
10
|
+
</tab-button>
|
|
11
|
+
<!-- </div>-->
|
|
12
|
+
<!-- <div v-if="!listpage">-->
|
|
13
|
+
<!-- <meter-info-manage :row="rowData" :f_start_date="f_start_date" :f_end_date="f_end_date"></meter-info-manage>-->
|
|
14
|
+
<!-- </div>-->
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import TabButton from '../../components/revenue/comprehen/common/TabButton'
|
|
19
|
+
import Tabs from '../../components/revenue/comprehen/common/Tabs'
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: 'wechatValidate',
|
|
24
|
+
title: '自助机对账',
|
|
25
|
+
data () {
|
|
26
|
+
return {// 页面开关
|
|
27
|
+
f_start_date: '',
|
|
28
|
+
f_end_date: '',
|
|
29
|
+
listpage: true,
|
|
30
|
+
width: {
|
|
31
|
+
left: '100%',
|
|
32
|
+
right: '0%'
|
|
33
|
+
},
|
|
34
|
+
// searchNumber:'',
|
|
35
|
+
rowData: {},
|
|
36
|
+
show: [true]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
components: {Tabs, TabButton},
|
|
40
|
+
ready () {
|
|
41
|
+
console.log(this.$refs.list)
|
|
42
|
+
console.log('自助机对账')
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
cancel (obj) {
|
|
46
|
+
this.listpage = true
|
|
47
|
+
},
|
|
48
|
+
dealMsg (obj) {
|
|
49
|
+
this.rowData = obj
|
|
50
|
+
this.listpage = false
|
|
51
|
+
console.log(obj.model)
|
|
52
|
+
this.f_start_date = obj.model.startDate
|
|
53
|
+
this.f_end_date = obj.model.endDate
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<style scoped>
|
|
60
|
+
|
|
61
|
+
</style>
|
|
@@ -49,6 +49,12 @@
|
|
|
49
49
|
|
|
50
50
|
<div class="span" style="float:right;">
|
|
51
51
|
<button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
|
|
52
|
+
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
53
|
+
:footer="$parent.$parent.footer"
|
|
54
|
+
:field="$parent.$parent.getExportField"
|
|
55
|
+
:header="$parent.$parent.other"
|
|
56
|
+
sqlurl="rs/logic/saleExport" sql-name="wechatSelling" template-name='自助机对账导出'
|
|
57
|
+
:choose-col="true"></export-excel>
|
|
52
58
|
<div
|
|
53
59
|
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
54
60
|
@click="$parent.$parent.hidden()"
|
|
@@ -181,12 +187,12 @@
|
|
|
181
187
|
<td v-if="row.pay_state==='对账成功'" style="text-align: center;">
|
|
182
188
|
<div v-if="!$parent.$parent.$parent.authArr.includes('无卡退费')">
|
|
183
189
|
<span>正常</span>
|
|
184
|
-
<button type="button" name="button" class="btn btn-link"
|
|
190
|
+
<button type="button" name="button" class="btn btn-link" v-if="this.$login.r.includes('自助机对账退款')"
|
|
185
191
|
@click="$parent.$parent.$parent.updateState(row)">退款
|
|
186
192
|
</button>
|
|
187
193
|
</div>
|
|
188
194
|
<div v-else>
|
|
189
|
-
<button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.chargecal(row)">
|
|
195
|
+
<button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.chargecal(row)" v-if="this.$login.r.includes('自助机对账退款')">
|
|
190
196
|
无卡退款
|
|
191
197
|
</button>
|
|
192
198
|
</div>
|
|
@@ -200,7 +206,7 @@
|
|
|
200
206
|
</button>
|
|
201
207
|
</td>
|
|
202
208
|
<td v-if="row.pay_state==='自助机单方面账单'" style="text-align: center;">
|
|
203
|
-
<button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.updateState(row)">
|
|
209
|
+
<button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.updateState(row)" v-if="this.$login.r.includes('自助机对账退款')">
|
|
204
210
|
退款
|
|
205
211
|
</button>
|
|
206
212
|
<button type="button" name="button" class="btn btn-link" @click="$parent.$parent.$parent.charge(row)">缴费
|
|
@@ -281,7 +287,30 @@ export default {
|
|
|
281
287
|
initres: {
|
|
282
288
|
org: [this.$login.f.orgid]
|
|
283
289
|
},
|
|
284
|
-
msgData: []
|
|
290
|
+
msgData: [],
|
|
291
|
+
getExportField: {
|
|
292
|
+
'f_userinfo_code': '客户编号',
|
|
293
|
+
'f_user_name': '客户姓名',
|
|
294
|
+
'f_user_phone': '客户电话',
|
|
295
|
+
'f_address': '客户地址',
|
|
296
|
+
'f_meter_classify': '气表类型',
|
|
297
|
+
'f_bank_name': '缴费银行',
|
|
298
|
+
'f_terminal_num': '终端编号',
|
|
299
|
+
'f_transaction_id': '订单号',
|
|
300
|
+
'f_total_fee': '订单金额',
|
|
301
|
+
'f_time_out': '订单发生日期',
|
|
302
|
+
'f_states': '订单状态',
|
|
303
|
+
'f_payment': '付款方式',
|
|
304
|
+
'f_pregas': '购气量',
|
|
305
|
+
'f_collection': '购气金额',
|
|
306
|
+
'f_delivery_date': '系统收费时间',
|
|
307
|
+
'f_charge_state': '系统收费状态',
|
|
308
|
+
'f_write_card': '系统写卡状态',
|
|
309
|
+
'f_operator': '操作人'
|
|
310
|
+
},
|
|
311
|
+
condition2: '',
|
|
312
|
+
other: [],
|
|
313
|
+
footer: []
|
|
285
314
|
}
|
|
286
315
|
},
|
|
287
316
|
props: [],
|
|
@@ -357,23 +386,23 @@ export default {
|
|
|
357
386
|
search () {
|
|
358
387
|
this.$refs.paged.$refs.cri.search()
|
|
359
388
|
},
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
389
|
+
getotherfooter () {
|
|
390
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
391
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
392
|
+
this.other = []
|
|
393
|
+
this.footer = []
|
|
394
|
+
// let exportdata = this.getCondition;
|
|
395
|
+
let otherInData = []
|
|
396
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
397
|
+
let footerData = [], exportfield = this.getfield
|
|
398
|
+
footerData.push('合计')
|
|
399
|
+
let self = this
|
|
400
|
+
for (var field in self.sumsmodel) {
|
|
401
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
402
|
+
}
|
|
403
|
+
this.footer.push(footerData)
|
|
404
|
+
this.other.push(otherInData)
|
|
405
|
+
},
|
|
377
406
|
selfSearch (args) {
|
|
378
407
|
this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
379
408
|
this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
@@ -383,6 +412,7 @@ export default {
|
|
|
383
412
|
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
384
413
|
}
|
|
385
414
|
// args.condition = `${args.condition}` + `and f_orgid = '${this.$login.f.orgid}'`
|
|
415
|
+
this.condition2 = args.condition
|
|
386
416
|
this.model.search(args.condition, args.model)
|
|
387
417
|
}
|
|
388
418
|
|
|
@@ -391,15 +421,20 @@ export default {
|
|
|
391
421
|
computed: {
|
|
392
422
|
authArr () {
|
|
393
423
|
return this.$login.r ? this.$login.r : []
|
|
424
|
+
},
|
|
425
|
+
getCondition () {
|
|
426
|
+
return {
|
|
427
|
+
condition: this.condition2
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
watch: {
|
|
432
|
+
sumsmodel: {
|
|
433
|
+
handler: function (val) {
|
|
434
|
+
this.getotherfooter()
|
|
435
|
+
},
|
|
436
|
+
deep: true
|
|
394
437
|
}
|
|
395
438
|
}
|
|
396
|
-
// watch: {
|
|
397
|
-
// sumsmodel: {
|
|
398
|
-
// handler: function (val) {
|
|
399
|
-
// this.getotherfooter()
|
|
400
|
-
// },
|
|
401
|
-
// deep: true
|
|
402
|
-
// }
|
|
403
|
-
// }
|
|
404
439
|
}
|
|
405
440
|
</script>
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 98%">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
|
|
8
|
+
<res-select-group :initres="$parent.$parent.initres" :show-component="['company']"
|
|
9
|
+
@re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
10
|
+
|
|
11
|
+
<div class="col-sm-2 form-group">
|
|
12
|
+
<label for="startDate" class="font_normal_body">退费开始日期</label>
|
|
13
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
14
|
+
v-model="model.startDate" style="width: 60%"
|
|
15
|
+
:value.sync="model.startDate"
|
|
16
|
+
condition="f_delivery_date >= '{} 00:00:00'"
|
|
17
|
+
:disabled-days-of-Week="[]"
|
|
18
|
+
:format="'yyyy-MM-dd'"
|
|
19
|
+
:show-reset-button="reset">
|
|
20
|
+
</datepicker>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-2 form-group">
|
|
23
|
+
<label for="endDate" class="font_normal_body">结束日期</label>
|
|
24
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
25
|
+
v-model="model.endDate" style="width: 60%"
|
|
26
|
+
:value.sync="model.endDate"
|
|
27
|
+
condition="f_delivery_date <= '{} 23:59:59'"
|
|
28
|
+
:disabled-days-of-Week="[]"
|
|
29
|
+
:format="'yyyy-MM-dd'"
|
|
30
|
+
:show-reset-button="reset">
|
|
31
|
+
</datepicker>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-sm-2 form-group">
|
|
34
|
+
<label class="font_normal_body">客户编号</label>
|
|
35
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
|
|
36
|
+
placeholder='客户编号'
|
|
37
|
+
condition="f_userinfo_code = '{}'">
|
|
38
|
+
</div>
|
|
39
|
+
<div class="form-group col-sm-2">
|
|
40
|
+
<label class="font_normal_body">终端编号</label>
|
|
41
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_terminal_num"
|
|
42
|
+
placeholder='终端编号'
|
|
43
|
+
condition="f_terminal_num like '%{}%'">
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div class="span" style="float:right;">
|
|
47
|
+
<button class="button_search button_spacing width-60" @click="search()" v-el:cx>查询</button>
|
|
48
|
+
<export-excel :data="$parent.$parent.getCondition" class="button_export button_spacing"
|
|
49
|
+
:footer="$parent.$parent.footer"
|
|
50
|
+
:field="$parent.$parent.getExportField"
|
|
51
|
+
:header="$parent.$parent.other"
|
|
52
|
+
sqlurl="rs/logic/saleExport" sql-name="wechatSelling" template-name='自助机对账退费导出'
|
|
53
|
+
:choose-col="true"></export-excel>
|
|
54
|
+
<div
|
|
55
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
56
|
+
@click="$parent.$parent.hidden()"
|
|
57
|
+
class="button_spacing"
|
|
58
|
+
style="float: right">
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
63
|
+
<div class="form-group col-sm-2">
|
|
64
|
+
<label class="font_normal_body">客户名称</label>
|
|
65
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
|
|
66
|
+
placeholder='客户名称'
|
|
67
|
+
condition="f_user_name = '{}'">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="form-group col-sm-2">
|
|
70
|
+
<label class="font_normal_body"> 电话 </label>
|
|
71
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_phone" placeholder='电话'
|
|
72
|
+
condition="f_user_phone like '{}%'">
|
|
73
|
+
</div>
|
|
74
|
+
<div class="form-group col-sm-2">
|
|
75
|
+
<label class="font_normal_body">客户地址</label>
|
|
76
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_address" placeholder='客户地址'
|
|
77
|
+
condition="f_address like '%{}%'">
|
|
78
|
+
</div>
|
|
79
|
+
<!--<div class="col-sm-2 form-group">-->
|
|
80
|
+
<!--<label class="font_normal_body">订单状态</label>-->
|
|
81
|
+
<!--<v-select-->
|
|
82
|
+
<!--v-model="model.msg"-->
|
|
83
|
+
<!--placeholder='订单状态'-->
|
|
84
|
+
<!--condition="f_states like '%{}%'"-->
|
|
85
|
+
<!--:value.sync="model.msg"-->
|
|
86
|
+
<!--:options='$parent.$parent.letter'-->
|
|
87
|
+
<!--close-on-select ></v-select>-->
|
|
88
|
+
<!--</div>-->
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</criteria>
|
|
92
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
93
|
+
<template partial='head'>
|
|
94
|
+
<tr>
|
|
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
|
+
<th>付款方式</th>
|
|
106
|
+
<th>购气量</th>
|
|
107
|
+
<th>购气金额</th>
|
|
108
|
+
<th>系统收费时间</th>
|
|
109
|
+
<th>系统收费状态</th>
|
|
110
|
+
<th>系统写卡状态</th>
|
|
111
|
+
<th>操作人</th>
|
|
112
|
+
<th>退款时间</th>
|
|
113
|
+
<th>备注</th>
|
|
114
|
+
</tr>
|
|
115
|
+
</template>
|
|
116
|
+
<template partial='body'>
|
|
117
|
+
<td style="text-align: center;">
|
|
118
|
+
<nobr>{{ $index + 1 }}</nobr>
|
|
119
|
+
</td>
|
|
120
|
+
<td style="text-align: center;">
|
|
121
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
122
|
+
</td>
|
|
123
|
+
<td style="text-align: center;">
|
|
124
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
125
|
+
</td>
|
|
126
|
+
<td style="text-align: center;">
|
|
127
|
+
<nobr>{{ row.f_user_phone }}</nobr>
|
|
128
|
+
</td>
|
|
129
|
+
<td style="text-align: center;">
|
|
130
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
131
|
+
</td>
|
|
132
|
+
<td style="text-align: center;">
|
|
133
|
+
<nobr>{{ row.f_terminal_num }}</nobr>
|
|
134
|
+
</td>
|
|
135
|
+
<td style="text-align: center;">
|
|
136
|
+
<nobr>{{ row.f_transaction_id }}</nobr>
|
|
137
|
+
</td>
|
|
138
|
+
<td style="text-align: center;">
|
|
139
|
+
<nobr>{{ row.f_total_fee }}</nobr>
|
|
140
|
+
</td>
|
|
141
|
+
<td style="text-align: center;">
|
|
142
|
+
<nobr>{{ row.f_time_out }}</nobr>
|
|
143
|
+
</td>
|
|
144
|
+
<td style="text-align: center;">
|
|
145
|
+
<nobr>{{ row.f_states }}</nobr>
|
|
146
|
+
</td>
|
|
147
|
+
<td style="text-align: center;">
|
|
148
|
+
<nobr>{{ row.f_payment }}</nobr>
|
|
149
|
+
</td>
|
|
150
|
+
<td style="text-align: center;">
|
|
151
|
+
<nobr>{{ row.f_pregas }}</nobr>
|
|
152
|
+
</td>
|
|
153
|
+
<td style="text-align: center;">
|
|
154
|
+
<nobr>{{ row.f_collection }}</nobr>
|
|
155
|
+
</td>
|
|
156
|
+
<td style="text-align: center;">
|
|
157
|
+
<nobr>{{ row.f_delivery_date }}</nobr>
|
|
158
|
+
</td>
|
|
159
|
+
<td style="text-align: center;">
|
|
160
|
+
<nobr>{{ row.f_charge_state }}</nobr>
|
|
161
|
+
</td>
|
|
162
|
+
<td style="text-align: center;">
|
|
163
|
+
<nobr>{{ row.f_write_card }}</nobr>
|
|
164
|
+
</td>
|
|
165
|
+
<td style="text-align: center;">
|
|
166
|
+
<nobr>{{ row.f_operator }}</nobr>
|
|
167
|
+
</td>
|
|
168
|
+
<td style="text-align: center;">
|
|
169
|
+
<nobr>{{ row.f_operate_date }}</nobr>
|
|
170
|
+
</td>
|
|
171
|
+
<td style="text-align: center;">
|
|
172
|
+
<nobr>{{ row.f_comments }}</nobr>
|
|
173
|
+
</td>
|
|
174
|
+
|
|
175
|
+
</template>
|
|
176
|
+
</data-grid>
|
|
177
|
+
</criteria-paged>
|
|
178
|
+
</div>
|
|
179
|
+
</template>
|
|
180
|
+
<script>
|
|
181
|
+
import {PagedList} from 'vue-client'
|
|
182
|
+
import Vue from 'vue'
|
|
183
|
+
|
|
184
|
+
let readyGen = async function (self) {
|
|
185
|
+
// self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
186
|
+
// self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
187
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export default {
|
|
191
|
+
title: '自助机对账',
|
|
192
|
+
data () {
|
|
193
|
+
return {
|
|
194
|
+
model: new PagedList('rs/sql/wechatSelling', 20, {}, {f_total_fee: '', f_collection: ''}),
|
|
195
|
+
criteriaShow: false,
|
|
196
|
+
show: false,
|
|
197
|
+
watchComment: '',
|
|
198
|
+
orgCondtionStr: '',
|
|
199
|
+
getfield: {},
|
|
200
|
+
// 合计数据
|
|
201
|
+
sumsmodel: {},
|
|
202
|
+
initres: {
|
|
203
|
+
org: [this.$login.f.orgid]
|
|
204
|
+
},
|
|
205
|
+
msgData: [],
|
|
206
|
+
getExportField: {
|
|
207
|
+
'f_userinfo_code': '客户编号',
|
|
208
|
+
'f_user_name': '客户姓名',
|
|
209
|
+
'f_user_phone': '客户电话',
|
|
210
|
+
'f_address': '客户地址',
|
|
211
|
+
'f_meter_classify': '气表类型',
|
|
212
|
+
'f_bank_name': '缴费银行',
|
|
213
|
+
'f_terminal_num': '终端编号',
|
|
214
|
+
'f_transaction_id': '订单号',
|
|
215
|
+
'f_total_fee': '订单金额',
|
|
216
|
+
'f_time_out': '订单发生日期',
|
|
217
|
+
'f_states': '订单状态',
|
|
218
|
+
'f_payment': '付款方式',
|
|
219
|
+
'f_pregas': '购气量',
|
|
220
|
+
'f_collection': '购气金额',
|
|
221
|
+
'f_delivery_date': '系统收费时间',
|
|
222
|
+
'f_charge_state': '系统收费状态',
|
|
223
|
+
'f_write_card': '系统写卡状态',
|
|
224
|
+
'f_operator': '操作人',
|
|
225
|
+
'f_operate_date': '退款时间'
|
|
226
|
+
},
|
|
227
|
+
condition2: '',
|
|
228
|
+
other: [],
|
|
229
|
+
footer: []
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
props: [],
|
|
233
|
+
ready () {
|
|
234
|
+
readyGen(this)
|
|
235
|
+
},
|
|
236
|
+
methods: {
|
|
237
|
+
async getRes (condition, obj) {
|
|
238
|
+
this.orgCondtionStr = condition
|
|
239
|
+
},
|
|
240
|
+
hidden () {
|
|
241
|
+
this.criteriaShow = !this.criteriaShow
|
|
242
|
+
},
|
|
243
|
+
updateState (val) {
|
|
244
|
+
this.show = true
|
|
245
|
+
this.msgData = val
|
|
246
|
+
},
|
|
247
|
+
close () {
|
|
248
|
+
this.show = false
|
|
249
|
+
this.watchComment = ''
|
|
250
|
+
this.msgData = []
|
|
251
|
+
},
|
|
252
|
+
search () {
|
|
253
|
+
this.$refs.paged.$refs.cri.search()
|
|
254
|
+
},
|
|
255
|
+
getotherfooter () {
|
|
256
|
+
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
257
|
+
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
258
|
+
this.other = []
|
|
259
|
+
this.footer = []
|
|
260
|
+
// let exportdata = this.getCondition;
|
|
261
|
+
let otherInData = []
|
|
262
|
+
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
|
|
263
|
+
let footerData = [], exportfield = this.getfield
|
|
264
|
+
footerData.push('合计')
|
|
265
|
+
let self = this
|
|
266
|
+
for (var field in self.sumsmodel) {
|
|
267
|
+
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
|
|
268
|
+
}
|
|
269
|
+
this.footer.push(footerData)
|
|
270
|
+
this.other.push(otherInData)
|
|
271
|
+
},
|
|
272
|
+
selfSearch (args) {
|
|
273
|
+
this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
|
|
274
|
+
this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
|
|
275
|
+
if (!this.orgCondtionStr) {
|
|
276
|
+
args.condition = `${args.condition}` + `and f_orgid = '${this.$login.f.orgid}'` + `and f_bill_state = '4'`
|
|
277
|
+
} else {
|
|
278
|
+
args.condition = `${args.condition}` + this.orgCondtionStr + `and f_bill_state = '4'`
|
|
279
|
+
}
|
|
280
|
+
// args.condition = `${args.condition}` + `and f_orgid = '${this.$login.f.orgid}'`
|
|
281
|
+
this.condition2 = args.condition
|
|
282
|
+
this.model.search(args.condition, args.model)
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
},
|
|
286
|
+
events: {},
|
|
287
|
+
computed: {
|
|
288
|
+
authArr () {
|
|
289
|
+
return this.$login.r ? this.$login.r : []
|
|
290
|
+
},
|
|
291
|
+
getCondition () {
|
|
292
|
+
return {
|
|
293
|
+
condition: this.condition2
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
watch: {
|
|
298
|
+
sumsmodel: {
|
|
299
|
+
handler: function (val) {
|
|
300
|
+
this.getotherfooter()
|
|
301
|
+
},
|
|
302
|
+
deep: true
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
</script>
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
} else if (type === '机表收费' || type === '机表收费撤销') {
|
|
435
435
|
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
436
436
|
if (title === '热敏收据补打') {
|
|
437
|
-
name = 'rs/report/
|
|
437
|
+
name = 'rs/report/machine_bill_thermal'
|
|
438
438
|
} else {
|
|
439
439
|
name = 'rs/report/fmy_machine_bill'
|
|
440
440
|
}
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
} else if (type === '物联网收费' || type === '物联网收费撤销' || type === '物联网开户') {
|
|
449
449
|
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
450
450
|
if (title === '热敏收据补打') {
|
|
451
|
-
name = 'rs/report/
|
|
451
|
+
name = 'rs/report/iot_bill_thermal'
|
|
452
452
|
} else {
|
|
453
453
|
name = 'rs/report/fmy_iot_bill'
|
|
454
454
|
}
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
} else if (type === '发卡售气') {
|
|
479
479
|
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
480
480
|
if (title === '热敏收据补打') {
|
|
481
|
-
name = 'rs/report/
|
|
481
|
+
name = 'rs/report/sendCard_bill_thermal'
|
|
482
482
|
} else {
|
|
483
483
|
name = 'rs/report/fmy_sendCard_bill'
|
|
484
484
|
}
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
} else if (type === '卡表收费' || type === '卡表收费撤销' || type === '卡表收费撤销') {
|
|
497
497
|
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
498
498
|
if (title === '热敏收据补打') {
|
|
499
|
-
name = 'rs/report/
|
|
499
|
+
name = 'rs/report/machine_bill_thermal'
|
|
500
500
|
} else {
|
|
501
501
|
name = 'rs/report/fmy_card_bill'
|
|
502
502
|
}
|
|
@@ -189,6 +189,8 @@
|
|
|
189
189
|
<validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
|
|
190
190
|
<print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="close"
|
|
191
191
|
:data='row' @printok="printok" v-ref:printbill></print-bill>
|
|
192
|
+
<print-bill-thermal :show="print_thermal" :bill-config='config' :bill-data='billData' :data='row'
|
|
193
|
+
@toggle="close" @printok="printok" v-ref:printbilljs></print-bill-thermal>
|
|
192
194
|
<div style="text-align:right; height: 25%">
|
|
193
195
|
<strong style="color:red;margin-right: 5px">{{ $refs.givechange.promptText }}</strong>
|
|
194
196
|
<strong style="font-size: large"
|
|
@@ -375,23 +377,29 @@ let initCardGen = async function (self) {
|
|
|
375
377
|
// 开始打票
|
|
376
378
|
if (self.config.hasPrint) {
|
|
377
379
|
if (self.model.f_print.indexOf('电子发票') == -1) {
|
|
378
|
-
if (self
|
|
379
|
-
|
|
380
|
-
self.billData.url = 'rs/report/fmy_sendCard_bill'
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
if (self.row.f_meter_type === '金额卡表' && self.$appdata.getSingleValue('金额气量区分卡表票据')) {
|
|
384
|
-
self.billData.url = 'rs/report/fee_sendCard_bill'
|
|
385
|
-
}
|
|
386
|
-
if (self.config.hasBillManage) {
|
|
387
|
-
// 启用发票管理,获取票据管理中的票号并存储记录 d
|
|
380
|
+
if (self.model.f_print[0] == '热敏收据') {
|
|
381
|
+
self.billData.url = 'rs/report/sendCard_bill_thermal'
|
|
388
382
|
self.row.id = res.data.id
|
|
389
|
-
self.
|
|
390
|
-
self.row.f_bill_style = self.model.f_print[0]
|
|
391
|
-
self.print = true
|
|
383
|
+
self.print_thermal = true
|
|
392
384
|
} else {
|
|
393
|
-
self.
|
|
394
|
-
|
|
385
|
+
if (self.$login.r.includes('非民用纸质票据拆分')) {
|
|
386
|
+
if (self.row.f_user_type === '非民用') {
|
|
387
|
+
self.billData.url = 'rs/report/fmy_sendCard_bill'
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
if (self.row.f_meter_type === '金额卡表' && self.$appdata.getSingleValue('金额气量区分卡表票据')) {
|
|
391
|
+
self.billData.url = 'rs/report/fee_sendCard_bill'
|
|
392
|
+
}
|
|
393
|
+
if (self.config.hasBillManage) {
|
|
394
|
+
// 启用发票管理,获取票据管理中的票号并存储记录 d
|
|
395
|
+
self.row.id = res.data.id
|
|
396
|
+
self.row.f_bill_type = '发卡售气'
|
|
397
|
+
self.row.f_bill_style = self.model.f_print[0]
|
|
398
|
+
self.print = true
|
|
399
|
+
} else {
|
|
400
|
+
self.row.id = res.data.id
|
|
401
|
+
self.print = true
|
|
402
|
+
}
|
|
395
403
|
}
|
|
396
404
|
} else {
|
|
397
405
|
if (self.model.f_print[0] === '电子发票') {
|
|
@@ -496,6 +504,7 @@ export default {
|
|
|
496
504
|
f_privilege_money: 0,
|
|
497
505
|
f_after_discount: 0
|
|
498
506
|
},
|
|
507
|
+
print_thermal: false,
|
|
499
508
|
cardallot: null,
|
|
500
509
|
calculatedetail: '',
|
|
501
510
|
|