|
@@ -5,9 +5,9 @@
|
|
|
@change="changeSearch"
|
|
|
style="margin-bottom: 10px"
|
|
|
>
|
|
|
- <el-radio-button label="1">应收账款</el-radio-button>
|
|
|
- <el-radio-button label="2">机构分成</el-radio-button>
|
|
|
- <el-radio-button label="3">业务员提成</el-radio-button>
|
|
|
+ <el-radio-button :label="0">应收账款</el-radio-button>
|
|
|
+ <el-radio-button :label="1">机构分成</el-radio-button>
|
|
|
+ <el-radio-button :label="2">业务员提成</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
<search-box-new
|
|
|
ref="searchBox"
|
|
@@ -16,6 +16,15 @@
|
|
|
@search="search"
|
|
|
@init="init"
|
|
|
/>
|
|
|
+ <div class="dis_flex_order_li">
|
|
|
+ <div class="list" v-for="(item, index) in showTabList[type]" :key="index">
|
|
|
+ <img :src="item.img" alt="" />
|
|
|
+ <div class="right">
|
|
|
+ <h4>{{ item.label }}:</h4>
|
|
|
+ <p>{{ countInfo[item.prop] }}{{ item.ch || "元" }}</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<table-list
|
|
|
:key="type"
|
|
|
rowKey="id"
|
|
@@ -69,7 +78,7 @@
|
|
|
</template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
<el-button
|
|
|
- v-if="type == 1"
|
|
|
+ v-if="type == 0"
|
|
|
type="text"
|
|
|
:disabled="props.scope.row.creditStatus == 1"
|
|
|
@click="openDialog(props.scope.row, 1)"
|
|
@@ -129,6 +138,7 @@ import {
|
|
|
sellerList,
|
|
|
tenantList,
|
|
|
orderExport,
|
|
|
+ countOrderNum,
|
|
|
} from "@/api/financed/index";
|
|
|
export default {
|
|
|
name: "cost",
|
|
@@ -142,6 +152,39 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ showTabList: [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ label: "合同金额",
|
|
|
+ prop: "orderPriceTotal",
|
|
|
+ img: require("@/assets/images/合同金额@2x.png"),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已收账款",
|
|
|
+ prop: "orderReceivedTotal",
|
|
|
+ img: require("@/assets/images/已收款@2x.png"),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "未收账款",
|
|
|
+ prop: "orderUncollectedTotal",
|
|
|
+ img: require("@/assets/images/未收款@2x.png"),
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ label: "待付账款",
|
|
|
+ prop: "sellerPay",
|
|
|
+ img: require("@/assets/images/未收款@2x.png"),
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ label: "待付账款",
|
|
|
+ prop: "tenantPay",
|
|
|
+ img: require("@/assets/images/未收款@2x.png"),
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ ],
|
|
|
loading: false, //当前表单加载是否加载动画
|
|
|
navText: {
|
|
|
title: "应收应付",
|
|
@@ -159,7 +202,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
},
|
|
|
// 表单
|
|
|
- tableSet1: [
|
|
|
+ tableSet0: [
|
|
|
{
|
|
|
label: "下单时间",
|
|
|
prop: "buyTime",
|
|
@@ -226,7 +269,7 @@ export default {
|
|
|
hidden: true,
|
|
|
},
|
|
|
],
|
|
|
- tableSet2: [
|
|
|
+ tableSet1: [
|
|
|
{
|
|
|
label: "下单时间",
|
|
|
prop: "startTime",
|
|
@@ -271,7 +314,7 @@ export default {
|
|
|
hidden: true,
|
|
|
},
|
|
|
],
|
|
|
- tableSet3: [
|
|
|
+ tableSet2: [
|
|
|
{
|
|
|
label: "下单时间",
|
|
|
prop: "buyTime",
|
|
@@ -331,9 +374,10 @@ export default {
|
|
|
tipDialogVisible: false,
|
|
|
orderDialogVisible: false,
|
|
|
remarkDialogVisible: false,
|
|
|
- type: 1,
|
|
|
+ type: 0,
|
|
|
activeOrderInfo: {},
|
|
|
roleList: [],
|
|
|
+ countInfo: {},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -347,7 +391,7 @@ export default {
|
|
|
] = true;
|
|
|
},
|
|
|
batchExport() {
|
|
|
- const fn = [orderExport, orderExport, orderExport][this.type - 1];
|
|
|
+ const fn = [orderExport, orderExport, orderExport][this.type];
|
|
|
fn(this.backData()).then((res) => {
|
|
|
if (res.msg) {
|
|
|
exportFn(res.msg, "导出应收应付数据");
|
|
@@ -369,7 +413,7 @@ export default {
|
|
|
this.search(2);
|
|
|
},
|
|
|
getDataList(data) {
|
|
|
- const fn = [orderList, tenantList, sellerList][this.type - 1];
|
|
|
+ const fn = [orderList, tenantList, sellerList][this.type];
|
|
|
fn(data)
|
|
|
.then((res) => {
|
|
|
this.tableData = res.rows;
|
|
@@ -406,6 +450,7 @@ export default {
|
|
|
},
|
|
|
init() {
|
|
|
this.getRoleList();
|
|
|
+ this.getCountOrderNum();
|
|
|
this.search(2);
|
|
|
},
|
|
|
getRoleList() {
|
|
@@ -413,6 +458,11 @@ export default {
|
|
|
this.roleList = res.rows;
|
|
|
});
|
|
|
},
|
|
|
+ getCountOrderNum() {
|
|
|
+ countOrderNum().then((res) => {
|
|
|
+ this.countInfo = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
tableSet() {
|
|
@@ -484,4 +534,45 @@ export default {
|
|
|
content: ",";
|
|
|
}
|
|
|
}
|
|
|
+.dis_flex_order_li {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ & > .list {
|
|
|
+ user-select: none;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.3s;
|
|
|
+ box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.2);
|
|
|
+ &:hover {
|
|
|
+ transform: scale(1.04);
|
|
|
+ }
|
|
|
+ width: 136px;
|
|
|
+ height: 44px;
|
|
|
+ border-radius: 6px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-right: 10px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ & > img {
|
|
|
+ margin-left: 2px;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ }
|
|
|
+ & > .right {
|
|
|
+ flex: 1;
|
|
|
+ padding-left: 4px;
|
|
|
+ & > h4 {
|
|
|
+ color: #000;
|
|
|
+ margin: 0;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ & > p {
|
|
|
+ font-size: 12px;
|
|
|
+ color: red;
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|