修改分销订单显示问题
parent
7874931b1f
commit
f3ef286aa7
|
@ -102,19 +102,7 @@
|
||||||
slot: 'goodsMsg',
|
slot: 'goodsMsg',
|
||||||
minWidth: 150
|
minWidth: 150
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "退款金额",
|
|
||||||
key: "returnMoney",
|
|
||||||
minWidth:80,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
if(params.row.sellBackRebate == null){
|
|
||||||
return h("div", this.$options.filters.unitPrice(0, '¥'));
|
|
||||||
}else{
|
|
||||||
return h("div", this.$options.filters.unitPrice(params.row.sellBackRebate, '¥'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "分销商",
|
title: "分销商",
|
||||||
key: "distributionName",
|
key: "distributionName",
|
||||||
|
@ -134,7 +122,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "佣金金额",
|
title: "佣金金额",
|
||||||
key: "rebateGrade",
|
key: "rebate",
|
||||||
minWidth:80,
|
minWidth:80,
|
||||||
sortable: false,
|
sortable: false,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
|
@ -237,11 +225,11 @@
|
||||||
},
|
},
|
||||||
filterStatusColor (status) { // 状态tag标签颜色
|
filterStatusColor (status) { // 状态tag标签颜色
|
||||||
const arr = [
|
const arr = [
|
||||||
{status: 'WAIT_BILL', color: 'magenta'},
|
{status: 'WAIT_BILL', color: 'blue'},
|
||||||
{status: 'WAIT_CASH', color: 'warning'},
|
{status: 'WAIT_CASH', color: 'orange'},
|
||||||
{status: 'COMPLETE_CASH', color: 'success'},
|
{status: 'COMPLETE_CASH', color: 'green'},
|
||||||
{status: 'CANCEL', color: 'default'},
|
{status: 'CANCEL', color: 'red'},
|
||||||
{status: 'REFUND', color: 'error'},
|
{status: 'REFUND', color: 'magenta'},
|
||||||
]
|
]
|
||||||
for (let i=0;i<arr.length;i++) {
|
for (let i=0;i<arr.length;i++) {
|
||||||
if (arr[i].status === status) {
|
if (arr[i].status === status) {
|
||||||
|
|
|
@ -49,38 +49,7 @@ export default {
|
||||||
tooltip: true,
|
tooltip: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
title: "实付金额",
|
|
||||||
key: "orderPrice",
|
|
||||||
width: 130,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
if (params.row.orderPrice == null) {
|
|
||||||
return h("div", this.$options.filters.unitPrice(0, "¥"));
|
|
||||||
} else {
|
|
||||||
return h(
|
|
||||||
"div",
|
|
||||||
this.$options.filters.unitPrice(params.row.orderPrice, "¥")
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "退款金额",
|
|
||||||
key: "returnMoney",
|
|
||||||
width: 130,
|
|
||||||
sortable: false,
|
|
||||||
render: (h, params) => {
|
|
||||||
if (params.row.orderPrice == null) {
|
|
||||||
return h("div", this.$options.filters.unitPrice(0, "¥"));
|
|
||||||
} else {
|
|
||||||
return h(
|
|
||||||
"div",
|
|
||||||
this.$options.filters.unitPrice(params.row.returnMoney, "¥")
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "商品名称",
|
title: "商品名称",
|
||||||
key: "goodsName",
|
key: "goodsName",
|
||||||
|
@ -94,27 +63,32 @@ export default {
|
||||||
sortable: false,
|
sortable: false,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.distributionOrderStatus == "COMPLETE_CASH") {
|
if (params.row.distributionOrderStatus == "COMPLETE_CASH") {
|
||||||
return h("div", "提现完成");
|
return h("Tag", { props: { color: "green" } },"提现完成");
|
||||||
} else if (params.row.distributionOrderStatus == "WAIT_BILL") {
|
} else if (params.row.distributionOrderStatus == "WAIT_BILL") {
|
||||||
return h("div", "待结算");
|
return h("Tag", { props: { color: "blue" } } ,"待结算");
|
||||||
} else if (params.row.distributionOrderStatus == "WAIT_CASH") {
|
} else if (params.row.distributionOrderStatus == "WAIT_CASH") {
|
||||||
return h("div", "待提现");
|
return h("Tag", { props: { color: "orange" } }, "待提现");
|
||||||
|
} else if (params.row.distributionOrderStatus == "CANCEL") {
|
||||||
|
return h("Tag", { props: { color: "red" } }, "订单已取消");
|
||||||
|
}else if (params.row.distributionOrderStatus == "REFUND") {
|
||||||
|
return h("Tag", { props: { color: "magenta" } }, "退款");
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "佣金金额",
|
title: "佣金金额",
|
||||||
key: "rebateGrade",
|
key: "rebate",
|
||||||
width: 120,
|
width: 120,
|
||||||
sortable: false,
|
sortable: false,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.rebateGrade == null) {
|
if (params.row.rebate == null) {
|
||||||
return h("div", this.$options.filters.unitPrice(0, "¥"));
|
return h("div", this.$options.filters.unitPrice(0, "¥"));
|
||||||
} else {
|
} else {
|
||||||
return h(
|
return h(
|
||||||
"div",
|
"div",
|
||||||
this.$options.filters.unitPrice(params.row.rebateGrade, "¥")
|
this.$options.filters.unitPrice(params.row.rebate, "¥")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue