|
@@ -1,5 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div id="ActivityList">
|
|
<div id="ActivityList">
|
|
|
|
+ <el-date-picker type="months" placeholder="选择一个或多个月">
|
|
|
|
+ </el-date-picker>
|
|
<el-radio-group
|
|
<el-radio-group
|
|
v-model="type"
|
|
v-model="type"
|
|
@change="changeSearch"
|
|
@change="changeSearch"
|
|
@@ -29,6 +31,7 @@
|
|
:tableData="tableData"
|
|
:tableData="tableData"
|
|
:navText="navText"
|
|
:navText="navText"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
|
+ :setIndex="setIndex"
|
|
:objectSpanMethod="spanMethod"
|
|
:objectSpanMethod="spanMethod"
|
|
>
|
|
>
|
|
<template slot="customize">
|
|
<template slot="customize">
|
|
@@ -58,7 +61,7 @@
|
|
</template>
|
|
</template>
|
|
<template slot="divideCheckStatus" slot-scope="props">
|
|
<template slot="divideCheckStatus" slot-scope="props">
|
|
<div>
|
|
<div>
|
|
- {{ divideCheckStatus(props.scope.row.divideCheckStatus) }}
|
|
|
|
|
|
+ {{ divideCheckStatus(props.scope.row.checkStatus) }}
|
|
<span style="color: #409eff" v-if="props.scope.row.roleName">
|
|
<span style="color: #409eff" v-if="props.scope.row.roleName">
|
|
({{ props.scope.row.roleName }})
|
|
({{ props.scope.row.roleName }})
|
|
</span>
|
|
</span>
|
|
@@ -154,6 +157,7 @@ import {
|
|
orderList,
|
|
orderList,
|
|
sellerList,
|
|
sellerList,
|
|
tenantList,
|
|
tenantList,
|
|
|
|
+ companyList,
|
|
orderExport,
|
|
orderExport,
|
|
tenantExport,
|
|
tenantExport,
|
|
sellerExport,
|
|
sellerExport,
|
|
@@ -174,6 +178,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ value5: [],
|
|
showTabList: [
|
|
showTabList: [
|
|
[
|
|
[
|
|
{
|
|
{
|
|
@@ -330,27 +335,27 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "已付分成(元)",
|
|
label: "已付分成(元)",
|
|
- prop: "divideCompanyMoney",
|
|
|
|
|
|
+ prop: "payMoneyTotal",
|
|
hidden: true,
|
|
hidden: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "已扣分成(元)",
|
|
label: "已扣分成(元)",
|
|
- prop: "divideCompanyMoney",
|
|
|
|
|
|
+ prop: "deductMoneyTotal",
|
|
hidden: true,
|
|
hidden: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "待付月份",
|
|
label: "待付月份",
|
|
- prop: "divideCompanyMoney",
|
|
|
|
|
|
+ prop: "month",
|
|
hidden: true,
|
|
hidden: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "待付分成(元)",
|
|
label: "待付分成(元)",
|
|
- prop: "divideCompanyMoney",
|
|
|
|
|
|
+ prop: "payMoney",
|
|
hidden: true,
|
|
hidden: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "待扣分成(元)",
|
|
label: "待扣分成(元)",
|
|
- prop: "divideCompanyMoney",
|
|
|
|
|
|
+ prop: "deductMoney",
|
|
hidden: true,
|
|
hidden: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -479,27 +484,12 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- // 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");
|
|
|
|
|
|
+ this.init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
spanMethod({ row, column, rowIndex, columnIndex }) {
|
|
spanMethod({ row, column, rowIndex, columnIndex }) {
|
|
let t = [3, 5, 2][this.type - 1];
|
|
let t = [3, 5, 2][this.type - 1];
|
|
- if (columnIndex > 0 && columnIndex <= t) {
|
|
|
|
|
|
+ if (columnIndex <= t) {
|
|
const num = this.spanData[rowIndex];
|
|
const num = this.spanData[rowIndex];
|
|
if (num) {
|
|
if (num) {
|
|
return {
|
|
return {
|
|
@@ -514,6 +504,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 设置序号
|
|
|
|
+ setIndex(index) {
|
|
|
|
+ return Object.keys(this.spanData).findIndex((e) => index == e) + 1;
|
|
|
|
+ },
|
|
divideCheckStatus(e) {
|
|
divideCheckStatus(e) {
|
|
var a = "";
|
|
var a = "";
|
|
switch (e) {
|
|
switch (e) {
|
|
@@ -568,14 +562,13 @@ export default {
|
|
return data;
|
|
return data;
|
|
},
|
|
},
|
|
changeSearch() {
|
|
changeSearch() {
|
|
- return;
|
|
|
|
this.search(2);
|
|
this.search(2);
|
|
},
|
|
},
|
|
getDataList(data) {
|
|
getDataList(data) {
|
|
- const fn = [orderList, tenantList, sellerList][this.type];
|
|
|
|
|
|
+ const fn = [orderList, companyList, sellerList][this.type];
|
|
fn(data)
|
|
fn(data)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
- this.tableData = res.rows;
|
|
|
|
|
|
+ this.tableData = this.changeData(res.rows);
|
|
this.total = res.total;
|
|
this.total = res.total;
|
|
this.navText.index = res.total;
|
|
this.navText.index = res.total;
|
|
})
|
|
})
|
|
@@ -583,12 +576,33 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ changeData(data) {
|
|
|
|
+ if (this.type == 0) {
|
|
|
|
+ return data;
|
|
|
|
+ }
|
|
|
|
+ let total = 0;
|
|
|
|
+ let arr = [];
|
|
|
|
+ data.forEach((ele) => {
|
|
|
|
+ const monthList = ele.monthList;
|
|
|
|
+ delete ele.monthList;
|
|
|
|
+ this.spanData[total] = monthList.length;
|
|
|
|
+ total += monthList.length;
|
|
|
|
+ monthList.map((e) => {
|
|
|
|
+ Object.keys(e).forEach((key) => {
|
|
|
|
+ e[key] = e[key] || ele[key];
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ arr.push(...monthList);
|
|
|
|
+ });
|
|
|
|
+ return arr;
|
|
|
|
+ },
|
|
search(v) {
|
|
search(v) {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
if (v === 2) {
|
|
if (v === 2) {
|
|
this.formData = {
|
|
this.formData = {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
|
+ month: "",
|
|
};
|
|
};
|
|
}
|
|
}
|
|
this.getDataList(this.backData());
|
|
this.getDataList(this.backData());
|
|
@@ -634,25 +648,23 @@ export default {
|
|
placeholder: "机构选择",
|
|
placeholder: "机构选择",
|
|
scope: "systemtenantlist",
|
|
scope: "systemtenantlist",
|
|
},
|
|
},
|
|
- {
|
|
|
|
- prop1: "startTime",
|
|
|
|
- prop2: "endTime",
|
|
|
|
- placeholder1: key + "开始时间",
|
|
|
|
- placeholder2: key + "结束时间",
|
|
|
|
- scope: "moreDataPicker",
|
|
|
|
- },
|
|
|
|
];
|
|
];
|
|
if (this.type != 0) {
|
|
if (this.type != 0) {
|
|
- data.unshift(
|
|
|
|
|
|
+ data.push(
|
|
{
|
|
{
|
|
- prop: "divideStatus",
|
|
|
|
|
|
+ prop: "month",
|
|
|
|
+ scope: "moreMonth",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: "checkStatus",
|
|
placeholder: "审核状态",
|
|
placeholder: "审核状态",
|
|
scope: "select",
|
|
scope: "select",
|
|
options: [
|
|
options: [
|
|
{ label: "待审核", value: 0 },
|
|
{ label: "待审核", value: 0 },
|
|
{ label: "已通过", value: 1 },
|
|
{ label: "已通过", value: 1 },
|
|
- { label: "未通过", value: 2 },
|
|
|
|
- { label: "已撤销", value: 3 },
|
|
|
|
|
|
+ { label: "未通过", value: -1 },
|
|
|
|
+ { label: "待支付", value: 2 },
|
|
|
|
+ { label: "已支付", value: 3 },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -666,10 +678,19 @@ export default {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
if (this.type == 0) {
|
|
if (this.type == 0) {
|
|
- data.push({
|
|
|
|
- prop: "orderSn",
|
|
|
|
- placeholder: "订单单号",
|
|
|
|
- });
|
|
|
|
|
|
+ data.push(
|
|
|
|
+ {
|
|
|
|
+ prop1: "startTime",
|
|
|
|
+ prop2: "endTime",
|
|
|
|
+ placeholder1: key + "开始时间",
|
|
|
|
+ placeholder2: key + "结束时间",
|
|
|
|
+ scope: "moreDataPicker",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ prop: "orderSn",
|
|
|
|
+ placeholder: "订单单号",
|
|
|
|
+ }
|
|
|
|
+ );
|
|
}
|
|
}
|
|
if (this.type == 0 || this.type == 2) {
|
|
if (this.type == 0 || this.type == 2) {
|
|
data.push({
|
|
data.push({
|