sale-client 3.5.24 → 3.5.25
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/.babelrc +5 -5
- package/package.json +1 -1
- package/src/components/charge/ChargeList.vue +76 -52
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MeterParam.vue +24 -4
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
package/.babelrc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": ["es2015", "stage-2"],
|
|
3
|
-
"plugins": ["transform-runtime"],
|
|
4
|
-
"comments": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"presets": ["es2015", "stage-2"],
|
|
3
|
+
"plugins": ["transform-runtime"],
|
|
4
|
+
"comments": false
|
|
5
|
+
}
|
package/package.json
CHANGED
|
@@ -326,11 +326,11 @@
|
|
|
326
326
|
*/
|
|
327
327
|
import {HttpResetClass, PagedList} from 'vue-client'
|
|
328
328
|
import DetailManage from './DetailManage'
|
|
329
|
-
import Vue from
|
|
329
|
+
import Vue from 'vue'
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
let cardBtnGen = async function (self, val) {
|
|
332
332
|
self.cardInfo = val.data
|
|
333
|
-
|
|
333
|
+
let getUser = null
|
|
334
334
|
// 判断读卡是否需要卡密码
|
|
335
335
|
console.log('读卡上的信息', self.cardInfo)
|
|
336
336
|
|
|
@@ -342,8 +342,32 @@
|
|
|
342
342
|
self.readCardParam = self.model.rows[0].f_card_password
|
|
343
343
|
self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(self.model.rows[0].f_card_password)
|
|
344
344
|
} else {
|
|
345
|
-
self
|
|
346
|
-
|
|
345
|
+
if (self.cardInfo.Factory == 'JiBiao' || self.cardInfo.Factory == 'JiChengADSystem') {
|
|
346
|
+
// 获取用户信息
|
|
347
|
+
getUser = await self.$resetpost('rs/sql/sale_getUser', {
|
|
348
|
+
data: {
|
|
349
|
+
condition: `f_meter_type in ('机表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
|
|
350
|
+
and u.f_filialeid = '${self.$login.f.orgid}' and f_whether_hairpin != '未发'`,
|
|
351
|
+
orderitem: `${self.orderitem} Desc`
|
|
352
|
+
}
|
|
353
|
+
}, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
|
|
354
|
+
} else {
|
|
355
|
+
// 获取用户信息
|
|
356
|
+
getUser = await self.$resetpost('rs/sql/sale_getUser', {
|
|
357
|
+
data: {
|
|
358
|
+
condition: `gb.f_meter_type in ('气量卡表', '金额卡表','物联网表') and u.f_card_id='${self.cardInfo.CardID}'
|
|
359
|
+
and u.f_filialeid = '${self.$login.f.orgid}' and f_alias='${self.cardInfo.Factory}' and f_whether_hairpin != '未发'`,
|
|
360
|
+
orderitem: `${self.orderitem} Desc`
|
|
361
|
+
}
|
|
362
|
+
}, {resolveMsg: '读卡成功', rejectMsg: '读卡失败'})
|
|
363
|
+
}
|
|
364
|
+
if (getUser.data.length == 1 && getUser.data[0].f_alias === self.cardInfo.Factory) {
|
|
365
|
+
self.readCardParam = getUser.data[0].f_card_password
|
|
366
|
+
self.cardInfo = await self.$refs.paged.$refs.cri.$refs.readcard.readCard2(getUser.data.f_card_password)
|
|
367
|
+
} else {
|
|
368
|
+
self.$showAlert('此卡需要先获取客户信息。请通过条件查询该客户信息之后进行读卡!!', 'warning', 2000)
|
|
369
|
+
return
|
|
370
|
+
}
|
|
347
371
|
}
|
|
348
372
|
}
|
|
349
373
|
}
|
|
@@ -421,12 +445,12 @@
|
|
|
421
445
|
let hasMatchingData = false
|
|
422
446
|
getUser.data.forEach((res, index) => {
|
|
423
447
|
if (self.model.rows[0].f_userfiles_id == res.f_userfiles_id) {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
448
|
+
self.model.rows = [getUser.data[index]]
|
|
449
|
+
self.model.state = '正确'
|
|
450
|
+
hasMatchingData = true
|
|
451
|
+
self.$dispatch('dblclick', getUser.data[index], 0, self.cardInfo)
|
|
452
|
+
}
|
|
453
|
+
})
|
|
430
454
|
if (!hasMatchingData) {
|
|
431
455
|
self.model.rows = getUser.data
|
|
432
456
|
self.model.pageIndex = 1
|
|
@@ -548,12 +572,12 @@
|
|
|
548
572
|
let hasMatchingData = false
|
|
549
573
|
getUser.data.forEach((res, index) => {
|
|
550
574
|
if (self.model.rows[0].f_userfiles_id == res.f_userfiles_id) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
575
|
+
self.model.rows = [getUser.data[index]]
|
|
576
|
+
self.model.state = '正确'
|
|
577
|
+
hasMatchingData = true
|
|
578
|
+
self.$dispatch('dblclick', getUser.data[index], 0, self.cardInfo)
|
|
579
|
+
}
|
|
580
|
+
})
|
|
557
581
|
if (!hasMatchingData) {
|
|
558
582
|
self.model.rows = getUser.data
|
|
559
583
|
self.model.pageIndex = 1
|
|
@@ -640,7 +664,7 @@
|
|
|
640
664
|
// 读卡是否需要额外参数
|
|
641
665
|
readCardNeedParam: false,
|
|
642
666
|
readCardParam: {},
|
|
643
|
-
|
|
667
|
+
systemTimes: '',
|
|
644
668
|
userCode: '',
|
|
645
669
|
userName: '',
|
|
646
670
|
userAddress: '',
|
|
@@ -656,9 +680,9 @@
|
|
|
656
680
|
|
|
657
681
|
// 流水记录显示
|
|
658
682
|
recordModel: {rows: []},
|
|
659
|
-
|
|
683
|
+
clientWidth: document.body.clientWidth,
|
|
660
684
|
showCardError: false
|
|
661
|
-
|
|
685
|
+
}
|
|
662
686
|
},
|
|
663
687
|
props: {
|
|
664
688
|
orderitem: {
|
|
@@ -681,7 +705,7 @@
|
|
|
681
705
|
window.onresize = () => {
|
|
682
706
|
return (() => {
|
|
683
707
|
this.clientWidth = document.body.clientWidth
|
|
684
|
-
|
|
708
|
+
})()
|
|
685
709
|
}
|
|
686
710
|
},
|
|
687
711
|
methods: {
|
|
@@ -699,16 +723,16 @@
|
|
|
699
723
|
clear () {
|
|
700
724
|
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
701
725
|
this.$refs.paged.$refs.cri.model[key] = []
|
|
702
|
-
|
|
726
|
+
})
|
|
703
727
|
},
|
|
704
728
|
initQueryParam () {
|
|
705
729
|
let arr = []
|
|
706
730
|
this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
707
731
|
let temp = {}
|
|
708
732
|
temp.label = item.label
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
733
|
+
temp.value = item.value.f_meter_brand
|
|
734
|
+
arr.push(temp)
|
|
735
|
+
})
|
|
712
736
|
this.meterbrand = [{label: '全部', value: ''}, ...arr]
|
|
713
737
|
},
|
|
714
738
|
search () {
|
|
@@ -738,32 +762,32 @@
|
|
|
738
762
|
},
|
|
739
763
|
|
|
740
764
|
async selfSearch (args) {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
765
|
+
if (!this.f_orgid) {
|
|
766
|
+
this.getorg([this.$login.f.orgid])
|
|
767
|
+
}
|
|
768
|
+
if (this.f_orgid) {
|
|
769
|
+
args.condition = `u.f_filialeid in ${this.f_orgid} and ${args.condition}`
|
|
770
|
+
}
|
|
771
|
+
this.excelCondition = args.condition
|
|
772
|
+
args.condition = `${args.condition}`
|
|
773
|
+
if (this.defbtn === '发卡售气') {
|
|
774
|
+
args.condition = `${args.condition} and f_whether_hairpin = '未发' and f_meter_classify like '%卡表%'`
|
|
775
|
+
}
|
|
776
|
+
this.isPager = true
|
|
777
|
+
this.criteriaShow = true
|
|
778
|
+
this.$parent.warningInfo = null
|
|
779
|
+
this.cardInfo = ''
|
|
780
|
+
if (!this.specialCondition) {
|
|
781
|
+
if (args.condition.includes('1!=1')) {
|
|
782
|
+
args.condition = args.condition.replace('1!=1', '1=1')
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
this.specialCondition = false
|
|
762
786
|
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
787
|
+
await this.model.search(args.condition, args.model)
|
|
788
|
+
if (this.model.rows.length == 1) {
|
|
789
|
+
this.$parent.toBusiness(this.model.rows[0])
|
|
790
|
+
}
|
|
767
791
|
},
|
|
768
792
|
cardBtn (val) {
|
|
769
793
|
this.clear()
|
|
@@ -885,8 +909,8 @@
|
|
|
885
909
|
},
|
|
886
910
|
computed: {
|
|
887
911
|
authArr () {
|
|
888
|
-
console.log('this.$login.r:',this.$login.r)
|
|
889
|
-
console.log('this.$login.r.includes:',this.$login.r.includes('收费综合导出权限'))
|
|
912
|
+
console.log('this.$login.r:', this.$login.r)
|
|
913
|
+
console.log('this.$login.r.includes:', this.$login.r.includes('收费综合导出权限'))
|
|
890
914
|
return this.$login.r ? this.$login.r : []
|
|
891
915
|
}
|
|
892
916
|
}
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
<!--@change="$parent.$parent.$parent.select()" style="width: 22px;height: 22px"/>-->
|
|
42
42
|
<!--</th>-->
|
|
43
43
|
<th><nobr>读取类型</nobr></th>
|
|
44
|
-
|
|
44
|
+
<!--<th><nobr>读取内容</nobr></th>-->
|
|
45
45
|
<th><nobr>数据日期</nobr></th>
|
|
46
46
|
<th><nobr>用量合计</nobr></th>
|
|
47
47
|
<th><nobr>插入日期</nobr></th>
|
|
48
|
+
<th v-for="(key,value) in $parent.$parent.$parent.jsonFields"><nobr>{{value}}</nobr></th>
|
|
48
49
|
</tr>
|
|
49
50
|
</template>
|
|
50
51
|
<template partial='body' partial='list' v-ref:grid>
|
|
@@ -54,10 +55,11 @@
|
|
|
54
55
|
<!--:checked="$parent.$parent.$parent.ischecked($parent.model.pageIndex-1,$index)" style="width: 22px;height: 22px;"/>-->
|
|
55
56
|
<!--</td>-->
|
|
56
57
|
<td style="text-align:center"><nobr>{{row.f_type}}</nobr></td>
|
|
57
|
-
|
|
58
|
+
<!--<td style="text-align:center"><nobr>{{row.f_data}}</nobr></td>-->
|
|
58
59
|
<td style="text-align:center"><nobr>{{row.f_data_date}}</nobr></td>
|
|
59
60
|
<td style="text-align:center"><nobr>{{row.f_data_total}}</nobr></td>
|
|
60
61
|
<td style="text-align:center"><nobr>{{row.f_insert_date}}</nobr></td>
|
|
62
|
+
<td style="text-align:center" v-for="(key,value) in $parent.$parent.$parent.jsonFields"><nobr>{{row[key]}}</nobr></td>
|
|
61
63
|
</tr>
|
|
62
64
|
</template>
|
|
63
65
|
<template partial='foot'></template>
|
|
@@ -82,6 +84,18 @@
|
|
|
82
84
|
all: [],
|
|
83
85
|
// row数据
|
|
84
86
|
rowsdata: [],
|
|
87
|
+
jsonFields: {
|
|
88
|
+
factoryFlow: '工况流量',
|
|
89
|
+
dataDate: '记录时间',
|
|
90
|
+
factoryTotal: '工况累积量',
|
|
91
|
+
temperature: '温度',
|
|
92
|
+
standardTotal: '标况累积量',
|
|
93
|
+
pressure: '压力',
|
|
94
|
+
standardFlow: '标流量',
|
|
95
|
+
Result: '结果',
|
|
96
|
+
state: '状态',
|
|
97
|
+
error: '错误'
|
|
98
|
+
},
|
|
85
99
|
fields: {'f_preamount': '购气金额', 'f_pregas': '购气量', 'f_operate_date': '缴费时间', 'f_operator': '操作员', 'f_comments': '备注'},
|
|
86
100
|
defaultfield: [
|
|
87
101
|
'f_preamount', 'f_pregas', 'f_operate_date', 'f_operator', 'f_comments'
|
|
@@ -93,9 +107,15 @@
|
|
|
93
107
|
this.$refs.paged.$refs.criteria.search()
|
|
94
108
|
},
|
|
95
109
|
methods: {
|
|
96
|
-
search () {
|
|
110
|
+
// search () {
|
|
111
|
+
// this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userfiles_id = '${this.row.f_userfiles_id}'`
|
|
112
|
+
// this.model.search(this.condition, this.model)
|
|
113
|
+
// },
|
|
114
|
+
async search () {
|
|
97
115
|
this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userfiles_id = '${this.row.f_userfiles_id}'`
|
|
98
|
-
this
|
|
116
|
+
let res = await this.$resetpost('rs/logic/sale_meterparamQuery', {condition: this.condition})
|
|
117
|
+
this.model = res.data
|
|
118
|
+
// this.model.search(this.condition, this.model)
|
|
99
119
|
},
|
|
100
120
|
},
|
|
101
121
|
computed: {
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|