|
@@ -30,8 +30,8 @@
|
|
|
:tableData="tableData"
|
|
|
:navText="navText"
|
|
|
:loading="loading"
|
|
|
- :setIndex="setIndex"
|
|
|
@load="load"
|
|
|
+ @check="check"
|
|
|
>
|
|
|
<template slot="customize">
|
|
|
<el-button v-if="type !== 0" @click="exportSH" type="success">
|
|
@@ -81,6 +81,16 @@
|
|
|
<template slot="status" slot-scope="props">
|
|
|
{{ backStatus(props.scope) | formatPrice }}
|
|
|
</template>
|
|
|
+ <template slot="price" slot-scope="props">
|
|
|
+ <div v-if="props.scope.row.oId">
|
|
|
+ {{
|
|
|
+ $methodsTools.decimalPoint(
|
|
|
+ props.scope.row.orderPrice - props.scope.row.pretaxBrokerage
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ <div v-else>--</div>
|
|
|
+ </template>
|
|
|
<template slot="btn" slot-scope="props">
|
|
|
<el-button
|
|
|
v-if="props.scope.row.oId || type == 0"
|
|
@@ -454,6 +464,13 @@ export default {
|
|
|
prop: "tenantName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "实际订单金额(元)",
|
|
|
+ prop: "orderPrice",
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "price",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "角色名称",
|
|
|
prop: "roleName",
|
|
@@ -553,6 +570,13 @@ export default {
|
|
|
prop: "tenantName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "实际订单金额(元)",
|
|
|
+ prop: "orderPrice",
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "price",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "角色名称",
|
|
|
prop: "roleName",
|
|
@@ -637,6 +661,13 @@ export default {
|
|
|
prop: "tenantName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "实际订单金额(元)",
|
|
|
+ prop: "orderPrice",
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "price",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "角色名称",
|
|
|
prop: "roleName",
|
|
@@ -690,15 +721,39 @@ export default {
|
|
|
countInfo: {},
|
|
|
spanData: {},
|
|
|
maps: new Map(),
|
|
|
+ expandList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ check(value, row) {
|
|
|
+ return;
|
|
|
+ if (row.oId) return;
|
|
|
+ const index = this.tableData.findIndex((e) => e.id == row.id);
|
|
|
+ if (this.expandList[index] === true) {
|
|
|
+ this.expandList[index] = false;
|
|
|
+ this.$refs.tableList.$refs.pagerset.clearSelection();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.expandList[index] = true;
|
|
|
+ const box = document.querySelectorAll(".el-table__row--level-0")[index];
|
|
|
+ const btn = box.querySelector(".el-table__expand-icon");
|
|
|
+ btn.onclick = () => {
|
|
|
+ //
|
|
|
+ };
|
|
|
+ const event = new MouseEvent("click", {
|
|
|
+ view: window,
|
|
|
+ bubbles: true,
|
|
|
+ cancelable: true,
|
|
|
+ });
|
|
|
+ btn.dispatchEvent(event);
|
|
|
+ },
|
|
|
getRoles(roleId) {
|
|
|
- if (this.$store.state.user.rolesId?.length > 0 &&
|
|
|
- this.$store.state.user.rolesId.includes(roleId) ||
|
|
|
+ if (
|
|
|
+ (this.$store.state.user.rolesId?.length > 0 &&
|
|
|
+ this.$store.state.user.rolesId.includes(roleId)) ||
|
|
|
this.$store.state.user.rolesId.includes(1)
|
|
|
) {
|
|
|
return false;
|
|
@@ -798,9 +853,6 @@ export default {
|
|
|
let data = row[key].split(",").sort((a, b) => a - b);
|
|
|
return data;
|
|
|
},
|
|
|
- setIndex(index) {
|
|
|
- return index + 1;
|
|
|
- },
|
|
|
changeSearch() {
|
|
|
this.maps.clear();
|
|
|
this.search(2);
|
|
@@ -812,8 +864,7 @@ export default {
|
|
|
fn(this.formData)
|
|
|
.then((res) => {
|
|
|
this.type != 0 &&
|
|
|
- res.rows.forEach((e) => {
|
|
|
- e.children = [];
|
|
|
+ res.rows.forEach((e, i) => {
|
|
|
e.hasChildren = true;
|
|
|
e.monthTime = this.parseTime(e.monthTime, "{y}-{m}");
|
|
|
});
|
|
@@ -826,7 +877,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
load(tree, treeNode, resolve) {
|
|
|
- monthOrderList({ divideLogId: tree.id, roleId: this.formData.roleId })
|
|
|
+ monthOrderList({
|
|
|
+ divideLogId: tree.id,
|
|
|
+ roleId: this.formData.roleId,
|
|
|
+ startPrice: this.formData.startPrice,
|
|
|
+ endPrice: this.formData.endPrice,
|
|
|
+ })
|
|
|
.then((res) => {
|
|
|
// id冲突会报错
|
|
|
res.data.forEach((e) => {
|
|
@@ -838,7 +894,10 @@ export default {
|
|
|
e.divideCompanyMoney =
|
|
|
this.type == 2 ? e.divideSellerMoney : e.brokerage;
|
|
|
}
|
|
|
+ // this.$refs.tableList.$refs.pagerset.toggleRowSelection(e);
|
|
|
});
|
|
|
+ // let allCheckData = this.$refs.tableList.allCheckData;
|
|
|
+ // allCheckData.push(...res.data);
|
|
|
resolve(res.data);
|
|
|
})
|
|
|
.catch(() => {
|
|
@@ -958,6 +1017,14 @@ export default {
|
|
|
{ label: "打款中", value: 3 },
|
|
|
{ label: "打款失败", value: 4 },
|
|
|
],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop1: "startPrice",
|
|
|
+ prop2: "endPrice",
|
|
|
+ ch: "-",
|
|
|
+ scope: "numList1",
|
|
|
+ placeholder1: "起始金额",
|
|
|
+ placeholder2: "结束金额",
|
|
|
}
|
|
|
);
|
|
|
}
|