sale-client 4.3.51 → 4.3.52
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/filiale/hongYa/Stairinfo.vue +156 -0
- package/src/filiale/hongYa/sale.js +1 -0
- 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/9.3.0/checksums/checksums.lock +0 -0
- package/.gradle/9.3.0/fileChanges/last-build.bin +0 -0
- package/.gradle/9.3.0/fileHashes/fileHashes.lock +0 -0
- package/.gradle/9.3.0/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
package/package.json
CHANGED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!--<partial-view v-ref:pv>-->
|
|
3
|
+
<div id="stair" class="panel panel-info auto;" style="height:auto">
|
|
4
|
+
<div class="panel-heading" style="height: 35px;">
|
|
5
|
+
<h4 style="margin-top: auto">阶梯使用情况</h4>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="progress" id="srair" style="margin-top:auto; margin-bottom: auto;">
|
|
8
|
+
<div class="progress-bar" :class="cls[n]" :style="{width: widths[n]}" v-for="n in jt">{{content[n]}}</div>
|
|
9
|
+
</div>
|
|
10
|
+
<table class="table table-bordered self-table " id="table1" >
|
|
11
|
+
<thead>
|
|
12
|
+
<th><nobr>气阶</nobr></th><th><nobr>上限</nobr></th><th><nobr>已用</nobr></th><th><nobr>未用</nobr></th><th><nobr>单价</nobr></th>
|
|
13
|
+
</thead>
|
|
14
|
+
<tbody>
|
|
15
|
+
<tr>
|
|
16
|
+
<td>一阶</td>
|
|
17
|
+
<td>{{(mydata.f_stair1ceiling - 0).toFixed(2)}}</td>
|
|
18
|
+
<td>{{mydata.f_hasuse1 > 0 ? mydata.f_hasuse1 : 0}}</td>
|
|
19
|
+
<td>{{((mydata.f_stair1ceiling - 0) - mydata.f_hasuse1).toFixed(2)}}</td>
|
|
20
|
+
<td>{{(mydata.f_stair1price - 0)}}</td>
|
|
21
|
+
</tr>
|
|
22
|
+
<tr v-if="jt === 2">
|
|
23
|
+
<td>二阶</td>
|
|
24
|
+
<td>无上限</td>
|
|
25
|
+
<td>{{mydata.f_hasuse2 > 0 ? mydata.f_hasuse2 : 0}}</td>
|
|
26
|
+
<td>无上限</td><td>{{(mydata.f_stair2price - 0)}}</td>
|
|
27
|
+
</tr>
|
|
28
|
+
<tr v-if="jt > 2">
|
|
29
|
+
<td>二阶</td>
|
|
30
|
+
<td>{{(mydata.f_stair2ceiling - 0).toFixed(2)}}</td>
|
|
31
|
+
<td>{{mydata.f_hasuse2 > 0 ? mydata.f_hasuse2 : 0}}</td>
|
|
32
|
+
<td>{{((mydata.f_stair2ceiling - 0) - (mydata.f_stair1ceiling - 0)- (mydata.f_hasuse2 > 0 ? mydata.f_hasuse2 : 0)).toFixed(2) }}</td>
|
|
33
|
+
<td>{{(mydata.f_stair2price - 0)}}</td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr v-if="jt === 3">
|
|
36
|
+
<td>三阶</td>
|
|
37
|
+
<td>无上限</td>
|
|
38
|
+
<td>{{mydata.f_hasuse3 > 0 ? mydata.f_hasuse3 : 0}}</td>
|
|
39
|
+
<td>无上限</td>
|
|
40
|
+
<td>{{(mydata.f_stair3price- 0)}}</td>
|
|
41
|
+
</tr>
|
|
42
|
+
<tr v-if=" jt > 3">
|
|
43
|
+
<td>三阶</td>
|
|
44
|
+
<td>{{mydata.f_stair3ceiling.toFixed(2)}}</td>
|
|
45
|
+
<td>{{mydata.f_hasuse3 > 0 ? mydata.f_hasuse3 : 0}}</td>
|
|
46
|
+
<td>{{((mydata.f_stair3ceiling- 0) - (mydata.f_stair2ceiling -0) - (mydata.f_hasuse3 > 0 ? mydata.f_hasuse3 : 0)).toFixed(2)}}</td>
|
|
47
|
+
<td>{{mydata.f_stair3price}}</td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr v-if="jt === 4">
|
|
50
|
+
<td>四阶</td>
|
|
51
|
+
<td>无上限</td>
|
|
52
|
+
<td>{{mydata.f_hasuse4 > 0 ? mydata.f_hasuse4 : 0}}</td>
|
|
53
|
+
<td>无上限</td>
|
|
54
|
+
<td>{{(mydata.f_stair4price - 0)}}</td>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr v-if="jt > 4">
|
|
57
|
+
<td>四阶</td>
|
|
58
|
+
<td>{{(mydata.f_stair4ceiling-0).toFixed(2)}}</td>
|
|
59
|
+
<td>{{mydata.f_hasuse4 > 0 ? mydata.f_hasuse4 : 0}}</td>
|
|
60
|
+
<td>{{((mydata.f_stair4ceiling-0) - (mydata.f_stair3ceiling-0) - (mydata.f_hasuse4 > 0 ? mydata.f_hasuse4 : 0)).toFixed(2)}}</td>
|
|
61
|
+
<td>{{(mydata.f_stair4ceiling-0)}}</td>
|
|
62
|
+
</tr>
|
|
63
|
+
</tbody>
|
|
64
|
+
</table>
|
|
65
|
+
</div>
|
|
66
|
+
<!--</partial-view>-->
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script>
|
|
70
|
+
/**
|
|
71
|
+
*阶梯气价相关信息组件
|
|
72
|
+
*/
|
|
73
|
+
import co from 'co'
|
|
74
|
+
import {HttpResetClass} from 'vue-client'
|
|
75
|
+
|
|
76
|
+
let getdata = function * (self) {
|
|
77
|
+
self.data.f_userinfo_id = self.data.f_userinfo_id + ''
|
|
78
|
+
let http = new HttpResetClass()
|
|
79
|
+
let a = yield http.load('POST', 'api/af-revenue/logic/commonCal', {data: {model: self.data, isGasValue: 0, value: 0}}, {resolveMsg: null, rejectMsg: '获取阶梯使用情况出错'})
|
|
80
|
+
self.jt = a.data.chargeprice.length
|
|
81
|
+
self.mydata = a.data
|
|
82
|
+
self.calhasuse(self.mydata)
|
|
83
|
+
if (self.jt === 1) {
|
|
84
|
+
self.cls = ['progress-bar-success']
|
|
85
|
+
self.widths = ['100%']
|
|
86
|
+
self.content = [self.mydata.f_stair1price + '元/m³']
|
|
87
|
+
} else if (self.jt === 2) {
|
|
88
|
+
self.cls = ['progress-bar-success', 'progress-bar-danger']
|
|
89
|
+
self.widths = ['50%', '50%']
|
|
90
|
+
self.content = [self.mydata.f_stair1price + '元/m³', self.mydata.f_stair2price + '元/m³']
|
|
91
|
+
} else if (self.jt === 3) {
|
|
92
|
+
self.cls = ['progress-bar-success', 'progress-bar-warning', 'progress-bar-danger']
|
|
93
|
+
self.widths = ['33%', '34%', '33%']
|
|
94
|
+
self.content = [self.mydata.f_stair1price + '元/m³', self.mydata.f_stair2price + '元/m³', self.mydata.f_stair3price + '元/m³']
|
|
95
|
+
} else if (self.jt === 4) {
|
|
96
|
+
self.cls = ['progress-bar-success', ' progress-bar-info', 'progress-bar-warning', 'progress-bar-danger']
|
|
97
|
+
self.widths = ['25%', '25%', '25%', '25%']
|
|
98
|
+
self.content = [self.mydata.f_stair1price + '元/m³', self.mydata.f_stair2price + '元/m³', self.mydata.f_stair3price + '元/m³', self.mydata.f_stair4price + '元/m³']
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export default {
|
|
103
|
+
props: ['data'],
|
|
104
|
+
data () {
|
|
105
|
+
return {
|
|
106
|
+
myChart: {},
|
|
107
|
+
jt: 0,
|
|
108
|
+
width: 0,
|
|
109
|
+
widths: [],
|
|
110
|
+
cls: [],
|
|
111
|
+
length: 0,
|
|
112
|
+
mydata: '',
|
|
113
|
+
values: 0
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
methods: {
|
|
117
|
+
getd () {
|
|
118
|
+
this.mydata = ''
|
|
119
|
+
let gen = getdata(this)
|
|
120
|
+
co(gen)
|
|
121
|
+
},
|
|
122
|
+
calhasuse (value) {
|
|
123
|
+
value.f_hasuse1 = ((value.sumamount - 0) >= (value.f_stair1ceiling - 0) ? (value.f_stair1ceiling - 0) : (value.sumamount - 0)).toFixed(2)
|
|
124
|
+
value.f_hasuse2 = ((value.sumamount - 0) >= (value.f_stair2ceiling - 0) ? (value.f_stair2ceiling - 0) - (value.f_stair1ceiling - 0) : (value.sumamount - 0) - (value.f_stair1ceiling - 0)).toFixed(2)
|
|
125
|
+
value.f_hasuse3 = ((value.sumamount - 0) >= (value.f_stair3ceiling - 0) ? (value.f_stair3ceiling - 0) - (value.f_stair2ceiling - 0) : (value.sumamount - 0) - (value.f_stair2ceiling - 0)).toFixed(2)
|
|
126
|
+
value.f_hasuse4 = ((value.sumamount - 0) >= (value.f_stair4ceiling - 0) ? (value.f_stair4ceiling - 0) - (value.f_stair3ceiling - 0) : (value.sumamount - 0) - (value.f_stair3ceiling - 0)).toFixed(2)
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
watch: {
|
|
130
|
+
|
|
131
|
+
'data' (val) {
|
|
132
|
+
this.getd()
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
ready () {
|
|
136
|
+
this.getd()
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
</script>
|
|
140
|
+
<style media="screen">
|
|
141
|
+
#srair{
|
|
142
|
+
height: 30px;
|
|
143
|
+
margin-top:10px;
|
|
144
|
+
margin-bottom: 10px;
|
|
145
|
+
}
|
|
146
|
+
#srair .progress-bar {
|
|
147
|
+
line-height: 25px !important;
|
|
148
|
+
}
|
|
149
|
+
#table1{
|
|
150
|
+
text-align:center;
|
|
151
|
+
}
|
|
152
|
+
.self-table > tbody > tr > td {
|
|
153
|
+
padding: 3px;
|
|
154
|
+
text-align: center;
|
|
155
|
+
}
|
|
156
|
+
</style>
|
|
@@ -39,4 +39,5 @@ export default function () {
|
|
|
39
39
|
require(['./components/charge/business/machine/MachineMeterCenter'], resolve)
|
|
40
40
|
})
|
|
41
41
|
Vue.component('user-info-detail-manage-new', (resolve) => { require(['./UserInfoDetailManageNew'], resolve) })
|
|
42
|
+
Vue.component('stairinfo', (resolve) => { require(['./Stairinfo'], resolve) })
|
|
42
43
|
}
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|