|
@@ -31,10 +31,11 @@
|
|
|
:navText="navText"
|
|
|
:loading="loading"
|
|
|
:setIndex="setIndex"
|
|
|
- :objectSpanMethod="spanMethod"
|
|
|
+ @load="load"
|
|
|
>
|
|
|
<template slot="customize">
|
|
|
- <el-button @click="openDialog({}, 5)" type="success">
|
|
|
+ <el-button @click="() => {}" type="warning"> 批量支付 </el-button>
|
|
|
+ <el-button @click="openDialog({}, 4)" type="success">
|
|
|
坏账设置
|
|
|
</el-button>
|
|
|
<el-button @click="batchExport" type="primary"> 导出excel </el-button>
|
|
@@ -70,16 +71,13 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template slot="status" slot-scope="props">
|
|
|
- {{
|
|
|
- props.scope.row.payStatus == 1
|
|
|
- ? "0"
|
|
|
- : props.scope.row[props.scope.column.property]
|
|
|
- }}
|
|
|
+ {{ backStatus(props.scope) }}
|
|
|
</template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
<el-button
|
|
|
+ v-if="props.scope.row.oId"
|
|
|
type="text"
|
|
|
- @click="openDialog(props.scope.row, type == 0 ? 3 : 4)"
|
|
|
+ @click="openDialog(props.scope.row, 3)"
|
|
|
>
|
|
|
查看详情
|
|
|
</el-button>
|
|
@@ -130,9 +128,7 @@
|
|
|
:dialogVisible.sync="orderDialogVisible"
|
|
|
/>
|
|
|
<arap-remarks
|
|
|
- :orderSn="activeOrderInfo.id"
|
|
|
- :remark="activeOrderInfo.remark"
|
|
|
- :id="activeOrderInfo.id"
|
|
|
+ :info="activeOrderInfo"
|
|
|
@search="search"
|
|
|
:dialogVisible.sync="remarkDialogVisible"
|
|
|
></arap-remarks>
|
|
@@ -144,8 +140,6 @@
|
|
|
:orderSn="activeOrderInfo.orderSn"
|
|
|
:checkFrom="type + 1"
|
|
|
></dislog-set>
|
|
|
- <!-- 查看详情 -->
|
|
|
- <dislog-arap-details :type="type" :dialogVisible.sync="arapDialogVisible" />
|
|
|
<!-- 坏账设置 -->
|
|
|
<dislog-bad-bill
|
|
|
:dialogVisible.sync="badBillDialogVisible"
|
|
@@ -162,7 +156,6 @@ 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 dislogBadBill from "../components/dislogBadBill.vue";
|
|
|
import { exportFn } from "@/utils/index.js";
|
|
|
import {
|
|
@@ -176,6 +169,7 @@ import {
|
|
|
countOrderNum,
|
|
|
commissionList,
|
|
|
sellerPercentageList,
|
|
|
+ monthOrderList,
|
|
|
} from "@/api/financed/index";
|
|
|
export default {
|
|
|
name: "cost",
|
|
@@ -185,7 +179,6 @@ export default {
|
|
|
pagination,
|
|
|
dislogTip,
|
|
|
dislogOrderDetails,
|
|
|
- dislogArapDetails,
|
|
|
arapRemarks,
|
|
|
dislogSet,
|
|
|
pictureList,
|
|
@@ -265,8 +258,9 @@ export default {
|
|
|
index: 0,
|
|
|
ch: "条",
|
|
|
num: true,
|
|
|
- choice: false,
|
|
|
+ choice: true,
|
|
|
addHide: true,
|
|
|
+ dontNum: false,
|
|
|
openCheckMore: true,
|
|
|
changeWidth: "240px",
|
|
|
custom: false,
|
|
@@ -343,6 +337,30 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableSet1: [
|
|
|
+ {
|
|
|
+ label: "时间",
|
|
|
+ prop: "monthTime",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单单号",
|
|
|
+ prop: "orderSn",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "类型",
|
|
|
+ prop: "billType",
|
|
|
+ scope: "type",
|
|
|
+ hidden: true,
|
|
|
+ values: {
|
|
|
+ 1: "月份",
|
|
|
+ 2: "季度",
|
|
|
+ 3: "半年",
|
|
|
+ 4: "年度",
|
|
|
+ 6: "完单",
|
|
|
+ 7: "退款",
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
label: "机构名称",
|
|
|
prop: "tenantName",
|
|
@@ -350,18 +368,17 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "已付分成(元)",
|
|
|
- prop: "payMoneyTotal",
|
|
|
+ prop: "payMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "已扣分成(元)",
|
|
|
- prop: "deductMoneyTotal",
|
|
|
- hidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "待付月份",
|
|
|
- prop: "month",
|
|
|
+ prop: "deductMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "待付分成(元)",
|
|
@@ -374,6 +391,8 @@ export default {
|
|
|
label: "待扣分成(元)",
|
|
|
prop: "deductMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "预付时间",
|
|
@@ -392,6 +411,12 @@ export default {
|
|
|
scope: "solt",
|
|
|
soltName: "divideCheckStatus",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "支付时间",
|
|
|
+ prop: "payTime",
|
|
|
+ scope: "aTimeList",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "备注",
|
|
|
prop: "remark",
|
|
@@ -399,6 +424,30 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableSet2: [
|
|
|
+ {
|
|
|
+ label: "时间",
|
|
|
+ prop: "monthTime",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单单号",
|
|
|
+ prop: "orderSn",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "类型",
|
|
|
+ prop: "billType",
|
|
|
+ scope: "type",
|
|
|
+ hidden: true,
|
|
|
+ values: {
|
|
|
+ 1: "月份",
|
|
|
+ 2: "季度",
|
|
|
+ 3: "半年",
|
|
|
+ 4: "年度",
|
|
|
+ 6: "完单",
|
|
|
+ 7: "退款",
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
label: "机构名称",
|
|
|
prop: "tenantName",
|
|
@@ -416,21 +465,20 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "已付提成(元)",
|
|
|
- prop: "payMoneyTotal",
|
|
|
+ prop: "payMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "已扣提成(元)",
|
|
|
- prop: "deductMoneyTotal",
|
|
|
- hidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "待审月份",
|
|
|
- prop: "month",
|
|
|
+ prop: "deductMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
- label: "待审提成(元)",
|
|
|
+ label: "待付提成(元)",
|
|
|
prop: "payMoney",
|
|
|
hidden: true,
|
|
|
scope: "solt",
|
|
@@ -440,6 +488,8 @@ export default {
|
|
|
label: "待扣提成(元)",
|
|
|
prop: "deductMoney",
|
|
|
hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "审核状态",
|
|
@@ -448,6 +498,13 @@ export default {
|
|
|
scope: "solt",
|
|
|
soltName: "divideCheckStatus",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "支付时间",
|
|
|
+ prop: "payTime",
|
|
|
+ scope: "aTimeList",
|
|
|
+ scope: "aTimeList",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "备注",
|
|
|
prop: "remark",
|
|
@@ -455,6 +512,16 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
tableSet3: [
|
|
|
+ {
|
|
|
+ label: "时间",
|
|
|
+ prop: "monthTime",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "订单单号",
|
|
|
+ prop: "orderSn",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "机构名称",
|
|
|
prop: "tenantName",
|
|
@@ -464,11 +531,8 @@ export default {
|
|
|
label: "已付佣金(元)",
|
|
|
prop: "payMoney",
|
|
|
hidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "待付月份",
|
|
|
- prop: "month",
|
|
|
- hidden: true,
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "status",
|
|
|
},
|
|
|
{
|
|
|
label: "待付佣金(元)",
|
|
@@ -484,6 +548,11 @@ export default {
|
|
|
scope: "solt",
|
|
|
soltName: "divideCheckStatus",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "支付时间",
|
|
|
+ prop: "payTime",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "备注",
|
|
|
prop: "remark",
|
|
@@ -494,7 +563,6 @@ export default {
|
|
|
total: 0, //一共多少条
|
|
|
tipDialogVisible: false,
|
|
|
orderDialogVisible: false,
|
|
|
- arapDialogVisible: false,
|
|
|
remarkDialogVisible: false,
|
|
|
examineDialogVisible: false,
|
|
|
badBillDialogVisible: false,
|
|
@@ -509,27 +577,6 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- spanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
- let t = [3, 5, 2][this.type - 1];
|
|
|
- if (columnIndex <= t) {
|
|
|
- const num = this.spanData[rowIndex];
|
|
|
- if (num) {
|
|
|
- return {
|
|
|
- rowspan: num,
|
|
|
- colspan: 1,
|
|
|
- };
|
|
|
- } else {
|
|
|
- return {
|
|
|
- rowspan: 0,
|
|
|
- colspan: 0,
|
|
|
- };
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // 设置序号
|
|
|
- setIndex(index) {
|
|
|
- return Object.keys(this.spanData).findIndex((e) => index == e) + 1;
|
|
|
- },
|
|
|
divideCheckStatus(e) {
|
|
|
var a = "";
|
|
|
switch (e) {
|
|
@@ -557,8 +604,7 @@ export default {
|
|
|
openDialog(data, type) {
|
|
|
this.activeOrderInfo = data;
|
|
|
this[
|
|
|
- ["tip", "examine", "remark", "order", "arap", "badBill"][type] +
|
|
|
- "DialogVisible"
|
|
|
+ ["tip", "examine", "remark", "order", "badBill"][type] + "DialogVisible"
|
|
|
] = true;
|
|
|
},
|
|
|
batchExport() {
|
|
@@ -583,6 +629,9 @@ export default {
|
|
|
let data = row[key].split(",").sort((a, b) => a - b);
|
|
|
return data;
|
|
|
},
|
|
|
+ setIndex(index) {
|
|
|
+ return index + 1;
|
|
|
+ },
|
|
|
changeSearch() {
|
|
|
this.search(2);
|
|
|
},
|
|
@@ -592,7 +641,12 @@ export default {
|
|
|
];
|
|
|
fn(this.formData)
|
|
|
.then((res) => {
|
|
|
- this.tableData = this.changeData(res.rows);
|
|
|
+ res.rows.forEach((e) => {
|
|
|
+ e.children = [];
|
|
|
+ e.hasChildren = true;
|
|
|
+ e.monthTime = this.parseTime(e.monthTime, "{y}-{m}");
|
|
|
+ });
|
|
|
+ this.tableData = res.rows;
|
|
|
this.total = res.total;
|
|
|
this.navText.index = res.total;
|
|
|
})
|
|
@@ -600,6 +654,29 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ load(tree, treeNode, resolve) {
|
|
|
+ monthOrderList({ divideLogId: tree.id })
|
|
|
+ .then((res) => {
|
|
|
+ // id冲突会报错
|
|
|
+ res.data.forEach((e) => {
|
|
|
+ e.oId = e.id;
|
|
|
+ e.id = e.id + 100086;
|
|
|
+ e.billType = e.orderType + 5;
|
|
|
+ e.monthTime = this.parseTime(e.monthTime, "{y}-{m}-{d}");
|
|
|
+ });
|
|
|
+ resolve(res.data);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ resolve([]);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 切换已付待付
|
|
|
+ backStatus({ row, column }) {
|
|
|
+ let { label, property } = column;
|
|
|
+ return ["0.00", row[property]][
|
|
|
+ (label.indexOf("已") != -1 ? 0 : 1) ^ row.payStatus
|
|
|
+ ];
|
|
|
+ },
|
|
|
changeData(data) {
|
|
|
if (this.type == 0) {
|
|
|
return data;
|