|
@@ -8,6 +8,7 @@
|
|
|
<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-button :label="3">佣金结算</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
<search-box-new
|
|
|
ref="searchBox"
|
|
@@ -16,24 +17,19 @@
|
|
|
@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>
|
|
|
+ <picture-list
|
|
|
+ :fn="getCountOrderNum"
|
|
|
+ :list="showTabList[type]"
|
|
|
+ ></picture-list>
|
|
|
<table-list
|
|
|
:key="type"
|
|
|
rowKey="id"
|
|
|
ref="tableList"
|
|
|
- @openDialog="(row) => openDialog(row, 0)"
|
|
|
:tableSets="tableSet"
|
|
|
:tableData="tableData"
|
|
|
:navText="navText"
|
|
|
:loading="loading"
|
|
|
+ :objectSpanMethod="spanMethod"
|
|
|
>
|
|
|
<template slot="customize">
|
|
|
<el-button @click="batchExport" type="primary"> 导出excel </el-button>
|
|
@@ -75,11 +71,14 @@
|
|
|
></el-checkbox>
|
|
|
</template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
+ <el-button type="text" @click="openDialog(props.scope.row, type + 3)">
|
|
|
+ 查看详情
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
v-if="type == 0"
|
|
|
type="text"
|
|
|
:disabled="props.scope.row.creditStatus == 1"
|
|
|
- @click="openDialog(props.scope.row, 1)"
|
|
|
+ @click="openDialog(props.scope.row, 0)"
|
|
|
>
|
|
|
催款提醒
|
|
|
</el-button>
|
|
@@ -90,14 +89,14 @@
|
|
|
props.scope.row.creditStatus == 1 ||
|
|
|
props.scope.row.divideCheckStatus == 3
|
|
|
"
|
|
|
- @click="openDialog(props.scope.row, 2)"
|
|
|
+ @click="openDialog(props.scope.row, 1)"
|
|
|
>
|
|
|
点击审核
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
style="color: #e6a23c"
|
|
|
- @click="openDialog(props.scope.row, 3)"
|
|
|
+ @click="openDialog(props.scope.row, 2)"
|
|
|
>
|
|
|
修改备注
|
|
|
</el-button>
|
|
@@ -135,6 +134,8 @@
|
|
|
:orderSn="activeOrderInfo.orderSn"
|
|
|
:checkFrom="type + 1"
|
|
|
></dislog-set>
|
|
|
+ <!-- 查看详情 -->
|
|
|
+ <dislog-arap-details :type="type" :dialogVisible.sync="arapDialogVisible" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -146,6 +147,8 @@ import pagination from "@/components/pagination";
|
|
|
import dislogTip from "./dislogTip.vue";
|
|
|
import dislogOrderDetails from "../components/dislogOrderDetails.vue";
|
|
|
import arapRemarks from "../components/arapRemarks.vue";
|
|
|
+import pictureList from "@/components/Comon/pictureList.vue";
|
|
|
+import dislogArapDetails from "../components/dislogArapDetails.vue";
|
|
|
import { exportFn } from "@/utils/index.js";
|
|
|
import {
|
|
|
orderList,
|
|
@@ -164,41 +167,75 @@ export default {
|
|
|
pagination,
|
|
|
dislogTip,
|
|
|
dislogOrderDetails,
|
|
|
+ dislogArapDetails,
|
|
|
arapRemarks,
|
|
|
dislogSet,
|
|
|
+ pictureList,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
showTabList: [
|
|
|
[
|
|
|
{
|
|
|
- label: "合同金额",
|
|
|
+ label: "未收账款",
|
|
|
+ prop: "orderUncollectedTotal",
|
|
|
+ img: "未收款",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ label: "代付分成",
|
|
|
prop: "orderPriceTotal",
|
|
|
- img: require("@/assets/images/合同金额@2x.png"),
|
|
|
+ img: "未收款",
|
|
|
},
|
|
|
{
|
|
|
- label: "已收账款",
|
|
|
+ label: "待扣分成",
|
|
|
prop: "orderReceivedTotal",
|
|
|
- img: require("@/assets/images/已收款@2x.png"),
|
|
|
+ img: "已退款",
|
|
|
},
|
|
|
{
|
|
|
- label: "未收账款",
|
|
|
+ label: "已扣分成",
|
|
|
+ prop: "orderUncollectedTotal",
|
|
|
+ img: "成本金额",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已付分成",
|
|
|
prop: "orderUncollectedTotal",
|
|
|
- img: require("@/assets/images/未收款@2x.png"),
|
|
|
+ img: "已收款",
|
|
|
},
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
- label: "待付账款",
|
|
|
- prop: "sellerPay",
|
|
|
- img: require("@/assets/images/未收款@2x.png"),
|
|
|
+ label: "代付分成",
|
|
|
+ prop: "orderPriceTotal",
|
|
|
+ img: "未收款",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待扣分成",
|
|
|
+ prop: "orderReceivedTotal",
|
|
|
+ img: "已退款",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已扣分成",
|
|
|
+ prop: "orderUncollectedTotal",
|
|
|
+ img: "成本金额",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已付分成",
|
|
|
+ prop: "orderUncollectedTotal",
|
|
|
+ img: "已收款",
|
|
|
},
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
- label: "待付账款",
|
|
|
+ label: "待付佣金",
|
|
|
+ prop: "sellerPay",
|
|
|
+ img: "未收款",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已付佣金",
|
|
|
prop: "tenantPay",
|
|
|
- img: require("@/assets/images/未收款@2x.png"),
|
|
|
+ mg: "已收款",
|
|
|
},
|
|
|
],
|
|
|
],
|
|
@@ -211,7 +248,7 @@ export default {
|
|
|
choice: false,
|
|
|
addHide: true,
|
|
|
openCheckMore: true,
|
|
|
- changeWidth: "160px",
|
|
|
+ changeWidth: "240px",
|
|
|
custom: false,
|
|
|
},
|
|
|
formData: {
|
|
@@ -230,7 +267,6 @@ export default {
|
|
|
label: "订单单号",
|
|
|
prop: "orderSn",
|
|
|
hidden: true,
|
|
|
- scope: "openDialog",
|
|
|
},
|
|
|
{
|
|
|
label: "机构名称",
|
|
@@ -288,23 +324,32 @@ export default {
|
|
|
],
|
|
|
tableSet1: [
|
|
|
{
|
|
|
- label: "下单时间",
|
|
|
- prop: "startTime",
|
|
|
+ label: "机构名称",
|
|
|
+ prop: "tenantName",
|
|
|
hidden: true,
|
|
|
- scope: "aTimeList",
|
|
|
},
|
|
|
{
|
|
|
- label: "订单单号",
|
|
|
- prop: "orderSn",
|
|
|
+ label: "已付分成(元)",
|
|
|
+ prop: "divideCompanyMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
- label: "机构名称",
|
|
|
- prop: "tenantName",
|
|
|
+ label: "已扣分成(元)",
|
|
|
+ prop: "divideCompanyMoney",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待付月份",
|
|
|
+ prop: "divideCompanyMoney",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待付分成(元)",
|
|
|
+ prop: "divideCompanyMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
- label: "待付账款(元)",
|
|
|
+ label: "待扣分成(元)",
|
|
|
prop: "divideCompanyMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
@@ -332,17 +377,6 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableSet2: [
|
|
|
- {
|
|
|
- label: "下单时间",
|
|
|
- prop: "buyTime",
|
|
|
- hidden: true,
|
|
|
- scope: "aTimeList",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "订单单号",
|
|
|
- prop: "orderSn",
|
|
|
- hidden: true,
|
|
|
- },
|
|
|
{
|
|
|
label: "机构名称",
|
|
|
prop: "tenantName",
|
|
@@ -359,18 +393,62 @@ export default {
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
- label: "待付账款(元)",
|
|
|
+ label: "已付提成(元)",
|
|
|
prop: "divideSellerMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
- label: "预付时间",
|
|
|
- prop: "predictReceiveTime",
|
|
|
+ label: "已扣提成(元)",
|
|
|
+ prop: "divideSellerMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
- label: "剩余天数",
|
|
|
- prop: "predictReceiveDay",
|
|
|
+ label: "待审月份",
|
|
|
+ prop: "divideSellerMoney",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待审提成(元)",
|
|
|
+ prop: "divideSellerMoney",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待扣提成(元)",
|
|
|
+ prop: "divideSellerMoney",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "审核状态",
|
|
|
+ prop: "divideCheckStatus",
|
|
|
+ hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "divideCheckStatus",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "remark",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableSet3: [
|
|
|
+ {
|
|
|
+ label: "机构名称",
|
|
|
+ prop: "tenantName",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已付佣金(元)",
|
|
|
+ prop: "divideSellerMoney",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待付月份",
|
|
|
+ prop: "divideSellerMoney",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "待付佣金(元)",
|
|
|
+ prop: "divideSellerMoney",
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
@@ -387,21 +465,54 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableData: [], //表单数据
|
|
|
- total: 0, //一共多少条
|
|
|
+ total: 4, //一共多少条
|
|
|
tipDialogVisible: false,
|
|
|
orderDialogVisible: false,
|
|
|
+ arapDialogVisible: false,
|
|
|
remarkDialogVisible: false,
|
|
|
examineDialogVisible: false,
|
|
|
- type: 0,
|
|
|
+ type: 1,
|
|
|
activeOrderInfo: {},
|
|
|
roleList: [],
|
|
|
countInfo: {},
|
|
|
+ spanData: {},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.init();
|
|
|
+ // this.init();
|
|
|
+ let data = [
|
|
|
+ { tenantName: 1, chi: [{}, {}, {}] },
|
|
|
+ { tenantName: 2, chi: [{}, {}] },
|
|
|
+ { tenantName: 3, chi: [{}] },
|
|
|
+ ];
|
|
|
+ let total = 0;
|
|
|
+ data.forEach((ele) => {
|
|
|
+ this.spanData[total] = ele.chi.length;
|
|
|
+ total += ele.chi.length;
|
|
|
+ ele.chi.map((e) => {
|
|
|
+ e.tenantName = ele.tenantName;
|
|
|
+ });
|
|
|
+ this.tableData.push(...ele.chi);
|
|
|
+ });
|
|
|
+ console.log(this.spanData, "this.spanData");
|
|
|
},
|
|
|
methods: {
|
|
|
+ spanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
+ if (columnIndex === 1) {
|
|
|
+ const num = this.spanData[rowIndex];
|
|
|
+ if (num) {
|
|
|
+ return {
|
|
|
+ rowspan: num,
|
|
|
+ colspan: 1,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ rowspan: 0,
|
|
|
+ colspan: 0,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
divideCheckStatus(e) {
|
|
|
var a = "";
|
|
|
switch (e) {
|
|
@@ -429,7 +540,8 @@ export default {
|
|
|
openDialog(data, type) {
|
|
|
this.activeOrderInfo = data;
|
|
|
this[
|
|
|
- ["order", "tip", "examine", "remark"][type] + "DialogVisible"
|
|
|
+ ["tip", "examine", "remark", "order", "arap", "arap", "arap"][type] +
|
|
|
+ "DialogVisible"
|
|
|
] = true;
|
|
|
},
|
|
|
batchExport() {
|
|
@@ -495,7 +607,6 @@ export default {
|
|
|
},
|
|
|
init() {
|
|
|
this.getRoleList();
|
|
|
- this.getCountOrderNum();
|
|
|
this.search(2);
|
|
|
},
|
|
|
getRoleList() {
|
|
@@ -504,8 +615,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getCountOrderNum() {
|
|
|
- countOrderNum().then((res) => {
|
|
|
- this.countInfo = res.data;
|
|
|
+ return countOrderNum().then((res) => {
|
|
|
+ return Promise.resolve(res);
|
|
|
});
|
|
|
},
|
|
|
},
|
|
@@ -514,34 +625,23 @@ export default {
|
|
|
return this["tableSet" + this.type];
|
|
|
},
|
|
|
formList() {
|
|
|
+ const key = ["订单", "分成", "提成", "分成"][this.type];
|
|
|
let data = [
|
|
|
{
|
|
|
- prop: "creditStatus",
|
|
|
- placeholder: "账款状态",
|
|
|
- scope: "select",
|
|
|
- options: [
|
|
|
- { label: "已结清", value: 1 },
|
|
|
- { label: "未结清", value: 0 },
|
|
|
- ],
|
|
|
+ prop: "tenantId",
|
|
|
+ placeholder: "机构选择",
|
|
|
+ scope: "systemtenantlist",
|
|
|
},
|
|
|
{
|
|
|
prop1: "startTime",
|
|
|
prop2: "endTime",
|
|
|
- placeholder1: "开始时间",
|
|
|
- placeholder2: "结束时间",
|
|
|
+ placeholder1: key + "开始时间",
|
|
|
+ placeholder2: key + "结束时间",
|
|
|
scope: "moreDataPicker",
|
|
|
},
|
|
|
];
|
|
|
- if (this.type != 1) {
|
|
|
+ if (this.type != 0) {
|
|
|
data.unshift(
|
|
|
- {
|
|
|
- prop: "roleId",
|
|
|
- placeholder: "角色选择",
|
|
|
- scope: "select",
|
|
|
- options: this.roleList,
|
|
|
- selectValue: "roleId",
|
|
|
- selectLabel: "roleName",
|
|
|
- },
|
|
|
{
|
|
|
prop: "divideStatus",
|
|
|
placeholder: "审核状态",
|
|
@@ -554,15 +654,25 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- prop: "tenantId",
|
|
|
- placeholder: "机构选择",
|
|
|
- scope: "systemtenantlist",
|
|
|
+ prop: "roleId",
|
|
|
+ placeholder: "审核角色",
|
|
|
+ scope: "select",
|
|
|
+ options: this.roleList,
|
|
|
+ selectValue: "roleId",
|
|
|
+ selectLabel: "roleName",
|
|
|
}
|
|
|
);
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ if (this.type == 0) {
|
|
|
+ data.push({
|
|
|
+ prop: "orderSn",
|
|
|
+ placeholder: "订单单号",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (this.type == 0 || this.type == 2) {
|
|
|
data.push({
|
|
|
prop: "keyNo",
|
|
|
- placeholder: "机构/业务号",
|
|
|
+ placeholder: "业务员号",
|
|
|
});
|
|
|
}
|
|
|
return data;
|
|
@@ -579,45 +689,4 @@ 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>
|