apply-clients 3.0.10-220 → 3.0.10-221
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
|
@@ -1349,7 +1349,7 @@
|
|
|
1349
1349
|
// }
|
|
1350
1350
|
// if (this.show_data.fields[i].label === '用气性质') {
|
|
1351
1351
|
let http = new HttpResetClass()
|
|
1352
|
-
|
|
1352
|
+
let condition = " f_filialeid in ('" + this.$login.f.orgid + "') and f_state='有效' AND (getdate() between f_perform_date and f_end_date or f_end_date is null)"
|
|
1353
1353
|
// let condition = "1=1"
|
|
1354
1354
|
let res = await http.load('POST', 'rs/sql/singleTable', {
|
|
1355
1355
|
data: {
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<table class="table table-condensed" style="margin-top:15px; margin-left:5%; width:90%;text-algin:center;">
|
|
4
|
-
<thead>
|
|
5
|
-
<tr>
|
|
6
|
-
<th style="text-align:center"><nobr>操作</nobr></th>
|
|
7
|
-
<th style="text-align:center"><nobr>序号</nobr></th>
|
|
8
|
-
<th style="text-align:center"><nobr>单价</nobr></th>
|
|
9
|
-
<th style="text-align:center"><nobr>户数</nobr></th>
|
|
10
|
-
<th style="text-align:center"><nobr>小计</nobr></th>
|
|
11
|
-
<th style="text-align:center"><nobr>备注</nobr></th>
|
|
12
|
-
</tr>
|
|
13
|
-
</thead>
|
|
14
|
-
<tbody>
|
|
15
|
-
<tr v-for="row in stairmodel">
|
|
16
|
-
<td><nobr>
|
|
17
|
-
<button class="glyphicon glyphicon-minus btn-danger" @click.stop="delGas($index,row)"></button>
|
|
18
|
-
<button class="glyphicon glyphicon-plus btn-success" @click.stop="addGas()"></button>
|
|
19
|
-
</nobr></td>
|
|
20
|
-
<td>{{$index+1}}</td>
|
|
21
|
-
<!-- <td>{{row.f_price_name}}</td>-->
|
|
22
|
-
<td style="text-align:center">
|
|
23
|
-
<input class="input_search" style="width: 100px" type="number" v-model="row.f_install_price" :disabled="isDisable"
|
|
24
|
-
placeholder="单价" @change="moneyChange">
|
|
25
|
-
</td>
|
|
26
|
-
<td style="text-align:center">
|
|
27
|
-
<input class="input_search" style="width: 100px" type="number" v-model="row.f_payment_number" :disabled="isDisable"
|
|
28
|
-
placeholder="户数" @change="moneyChange">
|
|
29
|
-
</td>
|
|
30
|
-
<td style="text-align:center">
|
|
31
|
-
<input class="input_search" style="width: 100px" type="number" v-model="row.f_payment_subtotal" :disabled="isDisable"
|
|
32
|
-
placeholder="小计" readonly="readonly">
|
|
33
|
-
</td>
|
|
34
|
-
<td style="text-align:center">
|
|
35
|
-
<input class="input_search" style="width: 100px" type="text" v-model="row.f_payment_remarks" :disabled="isDisable"
|
|
36
|
-
placeholder="备注">
|
|
37
|
-
</td>
|
|
38
|
-
</tr>
|
|
39
|
-
</tbody>
|
|
40
|
-
</table>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
</template>
|
|
44
|
-
<script>
|
|
45
|
-
/**
|
|
46
|
-
*阶梯气价管理组件
|
|
47
|
-
*/
|
|
48
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
49
|
-
export default {
|
|
50
|
-
data () {
|
|
51
|
-
return {
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
props: ['stairmodel','f_payment_money'],
|
|
55
|
-
watch: {
|
|
56
|
-
'stairmodel' (val) {
|
|
57
|
-
// val.push({})
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
addGas () {
|
|
62
|
-
this.stairmodel.push({
|
|
63
|
-
f_install_price: 0,
|
|
64
|
-
f_payment_number: 0,
|
|
65
|
-
f_payment_subtotal: 0,
|
|
66
|
-
f_payment_remarks: ''
|
|
67
|
-
})
|
|
68
|
-
},
|
|
69
|
-
delGas (index,row) {
|
|
70
|
-
console.log("删除数组:" + JSON.stringify(row))
|
|
71
|
-
if (this.stairmodel.length > 1) {
|
|
72
|
-
this.stairmodel.splice(index, 1)
|
|
73
|
-
this.moneyChange()
|
|
74
|
-
}
|
|
75
|
-
if (row.id) {
|
|
76
|
-
//删除原单价明细
|
|
77
|
-
let http = new HttpResetClass()
|
|
78
|
-
let data = {
|
|
79
|
-
id: row.id
|
|
80
|
-
}
|
|
81
|
-
http.load('POST', 'rs/logic/deletePaymentDetailed', {data: data}, {resolveMsg: null, rejectMsg: '删除明细失败'}).then((res) => {
|
|
82
|
-
console.log("删除明细:" + JSON.stringify(res))
|
|
83
|
-
this.moneyChange()
|
|
84
|
-
})
|
|
85
|
-
/* let http = new HttpResetClass()
|
|
86
|
-
http.load('DELETE', `rs/entity/t_price_count/${row.id}`).then((res) => {
|
|
87
|
-
console.log("删除明细:" + JSON.stringify(res))
|
|
88
|
-
}) */
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
async moneyChange () {
|
|
92
|
-
let sum = 0
|
|
93
|
-
for (let i = 0; i < this.stairmodel.length; i++) {
|
|
94
|
-
this.stairmodel[i].f_payment_subtotal = this.stairmodel[i].f_install_price * this.stairmodel[i].f_payment_number
|
|
95
|
-
sum = sum + this.stairmodel[i].f_payment_subtotal
|
|
96
|
-
console.log("进入金额计算:" + this.stairmodel[i].f_payment_subtotal)
|
|
97
|
-
}
|
|
98
|
-
this.f_payment_money = sum
|
|
99
|
-
},
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
</script>
|
|
103
|
-
<style>
|
|
104
|
-
input { outline:none; }
|
|
105
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<table class="table table-condensed" style="margin-top:15px; margin-left:5%; width:90%;text-algin:center;">
|
|
4
|
+
<thead>
|
|
5
|
+
<tr>
|
|
6
|
+
<th style="text-align:center"><nobr>操作</nobr></th>
|
|
7
|
+
<th style="text-align:center"><nobr>序号</nobr></th>
|
|
8
|
+
<th style="text-align:center"><nobr>单价</nobr></th>
|
|
9
|
+
<th style="text-align:center"><nobr>户数</nobr></th>
|
|
10
|
+
<th style="text-align:center"><nobr>小计</nobr></th>
|
|
11
|
+
<th style="text-align:center"><nobr>备注</nobr></th>
|
|
12
|
+
</tr>
|
|
13
|
+
</thead>
|
|
14
|
+
<tbody>
|
|
15
|
+
<tr v-for="row in stairmodel">
|
|
16
|
+
<td><nobr>
|
|
17
|
+
<button class="glyphicon glyphicon-minus btn-danger" @click.stop="delGas($index,row)"></button>
|
|
18
|
+
<button class="glyphicon glyphicon-plus btn-success" @click.stop="addGas()"></button>
|
|
19
|
+
</nobr></td>
|
|
20
|
+
<td>{{$index+1}}</td>
|
|
21
|
+
<!-- <td>{{row.f_price_name}}</td>-->
|
|
22
|
+
<td style="text-align:center">
|
|
23
|
+
<input class="input_search" style="width: 100px" type="number" v-model="row.f_install_price" :disabled="isDisable"
|
|
24
|
+
placeholder="单价" @change="moneyChange">
|
|
25
|
+
</td>
|
|
26
|
+
<td style="text-align:center">
|
|
27
|
+
<input class="input_search" style="width: 100px" type="number" v-model="row.f_payment_number" :disabled="isDisable"
|
|
28
|
+
placeholder="户数" @change="moneyChange">
|
|
29
|
+
</td>
|
|
30
|
+
<td style="text-align:center">
|
|
31
|
+
<input class="input_search" style="width: 100px" type="number" v-model="row.f_payment_subtotal" :disabled="isDisable"
|
|
32
|
+
placeholder="小计" readonly="readonly">
|
|
33
|
+
</td>
|
|
34
|
+
<td style="text-align:center">
|
|
35
|
+
<input class="input_search" style="width: 100px" type="text" v-model="row.f_payment_remarks" :disabled="isDisable"
|
|
36
|
+
placeholder="备注">
|
|
37
|
+
</td>
|
|
38
|
+
</tr>
|
|
39
|
+
</tbody>
|
|
40
|
+
</table>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
</template>
|
|
44
|
+
<script>
|
|
45
|
+
/**
|
|
46
|
+
*阶梯气价管理组件
|
|
47
|
+
*/
|
|
48
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
49
|
+
export default {
|
|
50
|
+
data () {
|
|
51
|
+
return {
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
props: ['stairmodel','f_payment_money'],
|
|
55
|
+
watch: {
|
|
56
|
+
'stairmodel' (val) {
|
|
57
|
+
// val.push({})
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
addGas () {
|
|
62
|
+
this.stairmodel.push({
|
|
63
|
+
f_install_price: 0,
|
|
64
|
+
f_payment_number: 0,
|
|
65
|
+
f_payment_subtotal: 0,
|
|
66
|
+
f_payment_remarks: ''
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
delGas (index,row) {
|
|
70
|
+
console.log("删除数组:" + JSON.stringify(row))
|
|
71
|
+
if (this.stairmodel.length > 1) {
|
|
72
|
+
this.stairmodel.splice(index, 1)
|
|
73
|
+
this.moneyChange()
|
|
74
|
+
}
|
|
75
|
+
if (row.id) {
|
|
76
|
+
//删除原单价明细
|
|
77
|
+
let http = new HttpResetClass()
|
|
78
|
+
let data = {
|
|
79
|
+
id: row.id
|
|
80
|
+
}
|
|
81
|
+
http.load('POST', 'rs/logic/deletePaymentDetailed', {data: data}, {resolveMsg: null, rejectMsg: '删除明细失败'}).then((res) => {
|
|
82
|
+
console.log("删除明细:" + JSON.stringify(res))
|
|
83
|
+
this.moneyChange()
|
|
84
|
+
})
|
|
85
|
+
/* let http = new HttpResetClass()
|
|
86
|
+
http.load('DELETE', `rs/entity/t_price_count/${row.id}`).then((res) => {
|
|
87
|
+
console.log("删除明细:" + JSON.stringify(res))
|
|
88
|
+
}) */
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
async moneyChange () {
|
|
92
|
+
let sum = 0
|
|
93
|
+
for (let i = 0; i < this.stairmodel.length; i++) {
|
|
94
|
+
this.stairmodel[i].f_payment_subtotal = this.stairmodel[i].f_install_price * this.stairmodel[i].f_payment_number
|
|
95
|
+
sum = sum + this.stairmodel[i].f_payment_subtotal
|
|
96
|
+
console.log("进入金额计算:" + this.stairmodel[i].f_payment_subtotal)
|
|
97
|
+
}
|
|
98
|
+
this.f_payment_money = sum
|
|
99
|
+
},
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
</script>
|
|
103
|
+
<style>
|
|
104
|
+
input { outline:none; }
|
|
105
|
+
</style>
|