|
@@ -30,7 +30,6 @@
|
|
|
:tableData="tableData"
|
|
|
:navText="navText"
|
|
|
:loading="loading"
|
|
|
- :setIndex="setIndex"
|
|
|
@load="load"
|
|
|
@select="selectRow"
|
|
|
>
|
|
@@ -82,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"
|
|
@@ -461,6 +470,13 @@ export default {
|
|
|
prop: "tenantName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "实际订单金额(元)",
|
|
|
+ prop: "orderPrice",
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "price",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "角色名称",
|
|
|
prop: "roleName",
|
|
@@ -560,6 +576,13 @@ export default {
|
|
|
prop: "tenantName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "实际订单金额(元)",
|
|
|
+ prop: "orderPrice",
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "price",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "角色名称",
|
|
|
prop: "roleName",
|
|
@@ -644,6 +667,13 @@ export default {
|
|
|
prop: "tenantName",
|
|
|
hidden: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "实际订单金额(元)",
|
|
|
+ prop: "orderPrice",
|
|
|
+ scope: "solt",
|
|
|
+ soltName: "price",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
{
|
|
|
label: "角色名称",
|
|
|
prop: "roleName",
|
|
@@ -807,9 +837,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);
|
|
@@ -821,8 +848,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}");
|
|
|
});
|
|
@@ -835,7 +861,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) => {
|
|
@@ -848,9 +879,14 @@ export default {
|
|
|
this.type == 2 ? e.divideSellerMoney : e.brokerage;
|
|
|
}
|
|
|
});
|
|
|
- tree.active = true;
|
|
|
tree.children = res.data;
|
|
|
resolve(res.data);
|
|
|
+ if (tree.active) {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.setChildren(res.data, true);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ tree.active = true;
|
|
|
})
|
|
|
.catch(() => {
|
|
|
resolve([]);
|
|
@@ -1031,6 +1067,14 @@ export default {
|
|
|
{ label: "打款中", value: 3 },
|
|
|
{ label: "打款失败", value: 4 },
|
|
|
],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop1: "startPrice",
|
|
|
+ prop2: "endPrice",
|
|
|
+ ch: "-",
|
|
|
+ scope: "numList1",
|
|
|
+ placeholder1: "起始金额",
|
|
|
+ placeholder2: "结束金额",
|
|
|
}
|
|
|
);
|
|
|
}
|