|
|
@@ -75,41 +75,10 @@
|
|
|
<!-- <el-button type="primary" :size="size">导出已生成列表</el-button>-->
|
|
|
</template>
|
|
|
<template slot="menuLeft">
|
|
|
- <span style="font-family: '宋体',serif" v-if="this.userInfo.role_name !== 'administrator'">
|
|
|
- 余额(易宝):
|
|
|
- <span
|
|
|
- style="background-color: #494141;color: white; border-radius: 5px; margin:10px; padding:0 10px 0 10px ;">
|
|
|
- {{ censusPrice.accountsPayable }}
|
|
|
-<!-- {{ parseFloat(censusPrice.yeePayBalance | 0).toFixed(2) }}-->
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- <span type="warning" style="font-family: '宋体',serif" v-if="this.userInfo.role_name !== 'administrator'">
|
|
|
- 总金额:
|
|
|
- <span
|
|
|
- style="background-color: #967f1e;color: white; border-radius: 5px; margin:10px; padding:0 10px 0 10px ;">
|
|
|
- {{ censusPrice.accountsPayable }}
|
|
|
-<!-- {{ parseFloat(censusPrice.accountsPayable | 0).toFixed(2) }}-->
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- <span type="info" style="font-family: '宋体',serif">
|
|
|
- 已核销金额:
|
|
|
- <span
|
|
|
- style="background-color: #096e38;color: white; border-radius: 5px; margin:10px; padding:0 10px 0 10px ;">
|
|
|
- {{ censusPrice.handledAmount }}
|
|
|
-<!-- {{ parseFloat(censusPrice.handledAmount | 0).toFixed(2) }}-->
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- <span type="info" style="font-family: '宋体',serif">
|
|
|
- 未核销金额:
|
|
|
- <span
|
|
|
- style="background-color: #f60824;color: white; border-radius: 5px; margin:10px; padding:0 10px 0 10px ;">
|
|
|
- {{ censusPrice.untreatedAmount }}
|
|
|
-<!-- {{ parseFloat(censusPrice.untreatedAmount | 0).toFixed(2) }}-->
|
|
|
- </span>
|
|
|
- </span>
|
|
|
+ <IconFontComp :option="censusOption"></IconFontComp>
|
|
|
</template>
|
|
|
|
|
|
- <template slot="menuLeft" v-if="this.userInfo.role_name !== 'administrator'">
|
|
|
+ <template slot="menuRight" v-if="this.userInfo.role_name !== 'administrator'">
|
|
|
<el-button type="danger"
|
|
|
size="small"
|
|
|
icon="el-icon-money"
|
|
|
@@ -123,11 +92,13 @@
|
|
|
|
|
|
<script>
|
|
|
import {add, censusPrice, getDetail, getList, handlePointBills, remove, update, generateList} from "@/api/ldt_bills/pointbills";
|
|
|
+import IconFontComp from "./comps/iconfont";
|
|
|
import {mapGetters} from "vuex";
|
|
|
import moment from "moment";
|
|
|
import FileUtil from "@/util/fileUtil";
|
|
|
|
|
|
export default {
|
|
|
+ components:{IconFontComp},
|
|
|
data() {
|
|
|
return {
|
|
|
form: {},
|
|
|
@@ -139,7 +110,6 @@ export default {
|
|
|
type: -1
|
|
|
},
|
|
|
loading: true,
|
|
|
- censusPrice: {},
|
|
|
page: {
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
@@ -160,6 +130,9 @@ export default {
|
|
|
editBtn: false,
|
|
|
viewBtn: true,
|
|
|
selection: true,
|
|
|
+ searchBtn: false,
|
|
|
+ searchSize: "mini",
|
|
|
+ emptyBtn: false,
|
|
|
dialogClickModal: false,
|
|
|
column: [
|
|
|
{
|
|
|
@@ -391,7 +364,44 @@ export default {
|
|
|
},
|
|
|
]
|
|
|
},
|
|
|
- data: []
|
|
|
+ data: [],
|
|
|
+ censusOption: {
|
|
|
+ span: ()=>24/this.censusOption.data.length,
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ title: '易宝余额',
|
|
|
+ prop: "accountsPayable",
|
|
|
+ count: 0,
|
|
|
+ decimals: 2,
|
|
|
+ icon: 'el-icon-s-custom',
|
|
|
+ color: '0, 167, 208',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '应付总额',
|
|
|
+ prop: "accountsPayable",
|
|
|
+ count: 0,
|
|
|
+ decimals: 2,
|
|
|
+ icon: 'el-icon-paperclip',
|
|
|
+ color: '27, 201, 142',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '已核销',
|
|
|
+ prop: "handleAmount",
|
|
|
+ count: 0,
|
|
|
+ decimals: 2,
|
|
|
+ icon: 'el-icon-s-shop',
|
|
|
+ color: '230, 71, 88',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '未核销',
|
|
|
+ prop: "untreatedAmount",
|
|
|
+ count: 0,
|
|
|
+ decimals: 2,
|
|
|
+ icon: 'el-icon-s-shop',
|
|
|
+ color: '230, 71, 88',
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -592,9 +602,12 @@ export default {
|
|
|
this.onLoad(this.page, this.query);
|
|
|
},
|
|
|
onLoad(page, params = {}) {
|
|
|
- let values = {
|
|
|
- ...params,
|
|
|
- };
|
|
|
+ let values = {};
|
|
|
+ for (const item in params) {
|
|
|
+ if (params[item] !== undefined && params[item] !== -1) {
|
|
|
+ values[item] = params[item];
|
|
|
+ }
|
|
|
+ }
|
|
|
values.createTime = null;
|
|
|
values.createTimeRange = null;
|
|
|
this.loading = true;
|
|
|
@@ -608,20 +621,15 @@ export default {
|
|
|
},
|
|
|
getCensusPrice() {
|
|
|
censusPrice().then(res => {
|
|
|
- this.censusPrice = res.data.data;
|
|
|
+ this.censusOption.data.forEach(ele=>{
|
|
|
+ ele.count = res.data.data[ele.prop]?res.data.data[ele.prop]:0;
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
//搜索状态改变
|
|
|
searchStateChange() {
|
|
|
setTimeout(() => {
|
|
|
- const newQuery = {};
|
|
|
- this.page.currentPage = 1;
|
|
|
- for (const item in this.query) {
|
|
|
- if (this.query[item] !== undefined && this.query[item] !== -1) {
|
|
|
- newQuery[item] = this.query[item];
|
|
|
- }
|
|
|
- }
|
|
|
- this.onLoad(this.page, newQuery);
|
|
|
+ this.onLoad(this.page, this.query);
|
|
|
}, 100);
|
|
|
},
|
|
|
//生成列表并到处
|