diff --git a/manager/src/views/promotion/live/live.vue b/manager/src/views/promotion/live/live.vue index b7d7498c..da943fd3 100644 --- a/manager/src/views/promotion/live/live.vue +++ b/manager/src/views/promotion/live/live.vue @@ -119,14 +119,13 @@ export default { { title: "直播状态", render: (h, params) => { - return h( - "span", - params.row.status == "NEW" - ? "未开始" - : params.row.status == "START" - ? "直播中" - : "已结束" - ); + if(params.row.status == "NEW"){ + return h("div", [h("tag", {props: {color: "blue"}}, "未开始")]); + }else if(params.row.status == "START"){ + return h("div", [h("tag", {props: {color: "green"}}, "直播中")]); + }else{ + return h("div", [h("tag", {props: {color: "volcano"}}, "已结束")]); + } }, }, { diff --git a/seller/src/views/goods/goods-seller/goods.vue b/seller/src/views/goods/goods-seller/goods.vue index df95601d..48bae50e 100644 --- a/seller/src/views/goods/goods-seller/goods.vue +++ b/seller/src/views/goods/goods-seller/goods.vue @@ -170,32 +170,11 @@ export default { width: 130, render: (h, params) => { if (params.row.isAuth == "TOBEAUDITED") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "待审核", - }, - }), - ]); + return h("Tag", {props: {color: "blue",},},"待审核"); } else if (params.row.isAuth == "PASS") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "审核通过", - }, - }), - ]); + return h("Tag", {props: {color: "green",},},"通过"); } else if (params.row.isAuth == "REFUSE") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "审核拒绝", - }, - }), - ]); + return h("Tag", {props: {color: "red",},},"审核拒绝"); } }, }, @@ -260,11 +239,11 @@ export default { width: 130, render: (h, params) => { if (params.row.goodsType === 'PHYSICAL_GOODS') { - return h("div", "实物商品"); + return h("Tag", {props: {color: "geekblue"}},"实物商品"); } else if (params.row.goodsType === 'VIRTUAL_GOODS') { - return h("div", "虚拟商品"); + return h("Tag", {props: {color: "purple"}},"虚拟商品"); } else { - return h("div", "电子卡券"); + return h("Tag", {props: {color: "cyan"}},"电子卡券"); } }, }, @@ -297,32 +276,11 @@ export default { width: 120, render: (h, params) => { if (params.row.isAuth == "PASS") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "审核通过", - }, - }), - ]); + return h("Tag", {props: {color: "green"}},"通过"); } else if (params.row.isAuth == "TOBEAUDITED") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "待审核", - }, - }), - ]); + return h("Tag", {props: {color: "volcano"}},"待审核"); } else if (params.row.isAuth == "REFUSE") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "审核拒绝", - }, - }), - ]); + return h("Tag", {props: {color: "red"}},"审核拒绝"); } }, }, @@ -333,28 +291,12 @@ export default { sortable: false, render: (h, params) => { if (params.row.marketEnable == "DOWN") { - return h("div", [ - h("Badge", { - props: { - status: "error", - text: "下架", - }, - }), - ]); + return h("Tag", {props: {color: "red"}},"下架"); } else if (params.row.marketEnable == "UPPER") { - return h("div", [ - h("Badge", { - props: { - status: "success", - text: "上架", - }, - }), - ]); - } else { + return h("Tag", {props: {color: "green"}},"上架"); } }, }, - { title: "操作", key: "action", diff --git a/seller/src/views/logistics/index.vue b/seller/src/views/logistics/index.vue index a8e7bc91..d773df85 100644 --- a/seller/src/views/logistics/index.vue +++ b/seller/src/views/logistics/index.vue @@ -134,21 +134,18 @@ export default { key: "name", minWidth: 120 }, - { title: "状态", key: "disabled", minWidth: 50, render(h, params) { - return h("Badge", { - props: { - status: params.row.disabled ? "success" : "error", - text: params.row.disabled ? "开启" : "关闭", - }, - }); + if(params.row.disabled){ + return h("div", [h("tag", {props: {color: "green"}}, "开启")]); + }else{ + return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]); + } }, }, - { title: "操作", key: "action", diff --git a/seller/src/views/member/memberComment.vue b/seller/src/views/member/memberComment.vue index c4eb28ff..e0c1f486 100644 --- a/seller/src/views/member/memberComment.vue +++ b/seller/src/views/member/memberComment.vue @@ -210,11 +210,11 @@ export default { width: 100, render: (h, params) => { if (params.row.grade == "GOOD") { - return h("Badge", {props: {status: "success", text: "好评"}}) + return h("Tag", {props: {color: "green",},}, "好评"); } else if (params.row.grade == "MODERATE") { - return h("Badge", {props: {status: "success", text: "中评"}}) - } else if (params.row.grade == "WORSE") { - return h("Badge", {props: {status: "error", text: "差评"}}) + return h("Tag", {props: {color: "orange",},}, "中评"); + } else { + return h("Tag", {props: {color: "red",},}, "差评"); } } }, @@ -224,9 +224,9 @@ export default { width: 100, render: (h, params) => { if (params.row.status === "OPEN") { - return h("Badge", {props: {status: "success", text: "展示"}}) + return h("Tag", {props: {color: "green"}},"展示") } else { - return h("Badge", {props: {status: "error", text: "隐藏"}}) + return h("Tag", {props: {color: "red"}},"隐藏") } }, }, @@ -236,9 +236,9 @@ export default { width: 110, render: (h, params) => { if (params.row.replyStatus) { - return h("Badge", {props: {status: "success", text: "已回复"}}) + return h("Tag", {props: {color: "green"}},"已回复") } else { - return h("Badge", {props: {status: "error", text: "未回复"}}) + return h("Tag", {props: {color: "blue"}},"未回复") } }, }, @@ -334,7 +334,7 @@ export default { this.loading = false; if (res.success) { this.data = res.result.records; - this.total = res.result.total; + this.total = res.result.total; } }); }, diff --git a/seller/src/views/order/after-order/orderComplaint.vue b/seller/src/views/order/after-order/orderComplaint.vue index 0b3f8fcf..3e606386 100644 --- a/seller/src/views/order/after-order/orderComplaint.vue +++ b/seller/src/views/order/after-order/orderComplaint.vue @@ -185,17 +185,17 @@ key: "complainStatus", render: (h, params) => { if (params.row.complainStatus == "NEW") { - return h('div', [h('span', { }, '新投诉'),]); + return h('div', [h('tag',{props: {color: "purple"}}, '新投诉'),]); } else if (params.row.complainStatus == "CANCEL") { - return h('div', [h('span', { }, '已撤销'),]); + return h('div', [h('tag', {props: {color: "cyan"}}, '已撤销'),]); } else if (params.row.complainStatus == "WAIT_APPEAL") { - return h('div', [h('span', { }, '待申诉'),]); + return h('div', [h('tag', {props: {color: "volcano"}}, '待申诉'),]); } else if (params.row.complainStatus == "COMMUNICATION") { - return h('div', [h('span', { }, '对话中'),]); + return h('div', [h('tag', {props: {color: "orange"}}, '对话中'),]); }else if (params.row.complainStatus == "WAIT_ARBITRATION") { - return h('div', [h('span', { }, '等待仲裁'),]); + return h('div', [h('tag', {props: {color: "blue"}}, '等待仲裁'),]); }else if (params.row.complainStatus == "COMPLETE") { - return h('div', [h('span', { }, '已完成'),]); + return h('div', [h('tag', {props: {color: "green"}}, '已完成'),]); } } }, diff --git a/seller/src/views/order/after-order/returnGoodsOrder.vue b/seller/src/views/order/after-order/returnGoodsOrder.vue index 297ffb39..1842d8ed 100644 --- a/seller/src/views/order/after-order/returnGoodsOrder.vue +++ b/seller/src/views/order/after-order/returnGoodsOrder.vue @@ -176,25 +176,23 @@ width: 120, render: (h, params) => { if (params.row.serviceStatus == "APPLY") { - return h('div', [h('span', { }, '申请售后'),]); + return h('div', [h('tag', {props: {color: "blue"}}, '申请中'),]); } else if (params.row.serviceStatus == "PASS") { - return h('div', [h('span', { }, '审核通过'),]); + return h('div', [h('tag', {props: {color: "cyan"}}, '通过售后'),]); } else if (params.row.serviceStatus == "REFUSE") { - return h('div', [h('span', { }, '审核拒绝'),]); + return h('div', [h('tag', {props: {color: "volcano"}}, '拒绝售后'),]); } else if (params.row.serviceStatus == "BUYER_RETURN") { - return h('div', [h('span', { }, '买家退货,待卖家收货'),]); - }else if (params.row.serviceStatus == "SELLER_RE_DELIVERY") { - return h('div', [h('span', { }, '商家换货/补发'),]); - }else if (params.row.serviceStatus == "SELLER_CONFIRM") { - return h('div', [h('span', { }, '卖家确认收货'),]); - }else if (params.row.serviceStatus == "SELLER_TERMINATION") { - return h('div', [h('span', { }, '卖家终止售后'),]); - }else if (params.row.serviceStatus == "BUYER_CONFIRM") { - return h('div', [h('span', { }, '买家确认收货'),]); - }else if (params.row.serviceStatus == "BUYER_CANCEL") { - return h('div', [h('span', { }, '买家取消售后'),]); - }else if (params.row.serviceStatus == "COMPLETE") { - return h('div', [h('span', { }, '完成'),]); + return h('div', [h('tag', {props: {color: "orange"}}, '买家退货,待卖家收货'),]); + } else if (params.row.serviceStatus == "SELLER_CONFIRM") { + return h('div', [h('tag', {props: {color: "gold"}}, '卖家确认收货'),]); + } else if (params.row.serviceStatus == "SELLER_TERMINATION") { + return h('div', [h('tag', {props: {color: "lime"}}, '卖家终止售后'),]); + } else if (params.row.serviceStatus == "BUYER_CANCEL") { + return h('div', [h('tag', {props: {color: "purple"}}, '买家取消售后'),]); + } else if (params.row.serviceStatus == "COMPLETE") { + return h('div', [h('tag', {props: {color: "green"}}, '完成售后'),]); + }else if (params.row.serviceStatus == "WAIT_REFUND") { + return h('div', [h('tag', {props: {color: "geekblue"}}, '待平台退款'),]); } } }, diff --git a/seller/src/views/order/after-order/returnMoneyOrder.vue b/seller/src/views/order/after-order/returnMoneyOrder.vue index cc41f994..10a51621 100644 --- a/seller/src/views/order/after-order/returnMoneyOrder.vue +++ b/seller/src/views/order/after-order/returnMoneyOrder.vue @@ -182,27 +182,17 @@ minWidth: 120, render: (h, params) => { if (params.row.serviceStatus == "APPLY") { - return h('div', [h('span', { }, '申请售后'),]); + return h('div', [h('tag', {props: {color: "blue"}}, '申请中'),]); } else if (params.row.serviceStatus == "PASS") { - return h('div', [h('span', { }, '审核通过'),]); + return h('div', [h('tag', {props: {color: "cyan"}}, '通过售后'),]); } else if (params.row.serviceStatus == "REFUSE") { - return h('div', [h('span', { }, '审核拒绝'),]); - } else if (params.row.serviceStatus == "BUYER_RETURN") { - return h('div', [h('span', { }, '买家退货,待卖家收货'),]); - }else if (params.row.serviceStatus == "SELLER_RE_DELIVERY") { - return h('div', [h('span', { }, '商家换货/补发'),]); - }else if (params.row.serviceStatus == "SELLER_CONFIRM") { - return h('div', [h('span', { }, '卖家确认收货'),]); - }else if (params.row.serviceStatus == "SELLER_TERMINATION") { - return h('div', [h('span', { }, '卖家终止售后'),]); - }else if (params.row.serviceStatus == "BUYER_CONFIRM") { - return h('div', [h('span', { }, '买家确认收货'),]); - }else if (params.row.serviceStatus == "BUYER_CANCEL") { - return h('div', [h('span', { }, '买家取消售后'),]); + return h('div', [h('tag', {props: {color: "volcano"}}, '拒绝售后'),]); + } else if (params.row.serviceStatus == "BUYER_CANCEL") { + return h('div', [h('tag', {props: {color: "purple"}}, '买家取消售后'),]); + } else if (params.row.serviceStatus == "COMPLETE") { + return h('div', [h('tag', {props: {color: "green"}}, '完成售后'),]); }else if (params.row.serviceStatus == "WAIT_REFUND") { - return h('div', [h('span', { }, '等待平台退款'),]); - }else if (params.row.serviceStatus == "COMPLETE") { - return h('div', [h('span', { }, '完成'),]); + return h('div', [h('tag', {props: {color: "geekblue"}}, '待平台退款'),]); } } }, diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue index 4bc99a0b..76303816 100644 --- a/seller/src/views/order/order/orderList.vue +++ b/seller/src/views/order/order/orderList.vue @@ -126,19 +126,19 @@ export default { minWidth: 100, render: (h, params) => { if (params.row.orderStatus == "UNPAID") { - return h("div", [h("span", {}, "未付款")]); + return h("div", [h("tag", {props: {color: "magenta"}}, "未付款")]); } else if (params.row.orderStatus == "PAID") { - return h("div", [h("span", {}, "已付款")]); + return h("div", [h("tag", {props: {color: "blue"}}, "已付款")]); } else if (params.row.orderStatus == "UNDELIVERED") { - return h("div", [h("span", {}, "待发货")]); + return h("div", [h("tag", {props: {color: "geekblue"}}, "待发货")]); } else if (params.row.orderStatus == "DELIVERED") { - return h("div", [h("span", {}, "已发货")]); + return h("div", [h("tag", {props: {color: "cyan"}}, "已发货")]); } else if (params.row.orderStatus == "COMPLETED") { - return h("div", [h("span", {}, "已完成")]); + return h("div", [h("tag", {props: {color: "green"}}, "已完成")]); } else if (params.row.orderStatus == "TAKE") { - return h("div", [h("span", {}, "待核验")]); + return h("div", [h("tag", {props: {color: "volcano"}}, "待核验")]); } else if (params.row.orderStatus == "CANCELLED") { - return h("div", [h("span", {}, "已取消")]); + return h("div", [h("tag", {props: {color: "red"}}, "已取消")]); } }, }, diff --git a/seller/src/views/order/order/virtualOrderList.vue b/seller/src/views/order/order/virtualOrderList.vue index a95e5875..513160da 100644 --- a/seller/src/views/order/order/virtualOrderList.vue +++ b/seller/src/views/order/order/virtualOrderList.vue @@ -135,19 +135,19 @@ export default { minWidth: 100, render: (h, params) => { if (params.row.orderStatus == "UNPAID") { - return h("div", [h("span", {}, "未付款")]); + return h("div", [h("tag", {props: {color: "magenta"}}, "未付款")]); } else if (params.row.orderStatus == "PAID") { - return h("div", [h("span", {}, "已付款")]); + return h("div", [h("tag", {props: {color: "blue"}}, "已付款")]); } else if (params.row.orderStatus == "UNDELIVERED") { - return h("div", [h("span", {}, "待发货")]); + return h("div", [h("tag", {props: {color: "geekblue"}}, "待发货")]); } else if (params.row.orderStatus == "DELIVERED") { - return h("div", [h("span", {}, "已发货")]); + return h("div", [h("tag", {props: {color: "cyan"}}, "已发货")]); } else if (params.row.orderStatus == "COMPLETED") { - return h("div", [h("span", {}, "已完成")]); + return h("div", [h("tag", {props: {color: "green"}}, "已完成")]); } else if (params.row.orderStatus == "TAKE") { - return h("div", [h("span", {}, "待核验")]); + return h("div", [h("tag", {props: {color: "volcano"}}, "待核验")]); } else if (params.row.orderStatus == "CANCELLED") { - return h("div", [h("span", {}, "已取消")]); + return h("div", [h("tag", {props: {color: "red"}}, "已取消")]); } }, }, diff --git a/seller/src/views/order/receiptManager/receipt.vue b/seller/src/views/order/receiptManager/receipt.vue index d03ff3eb..6a90eb37 100644 --- a/seller/src/views/order/receiptManager/receipt.vue +++ b/seller/src/views/order/receiptManager/receipt.vue @@ -161,17 +161,10 @@ tooltip: true, render: (h, params) => { if(params.row.receiptStatus == 0){ - return h( - "div", - "未开票" - ); + return h("div", [h("tag", {props: {color: "volcano"}}, "未开票")]); }else{ - return h( - "div", - "已开票" - ); + return h("div", [h("tag", {props: {color: "green"}}, "未开票")]); } - }, }, { @@ -180,19 +173,19 @@ width: 90, render: (h, params) => { if (params.row.orderStatus == "UNPAID") { - return h('div', [h('span', { }, '未付款'),]); + return h("div", [h("tag", {props: {color: "magenta"}}, "未付款")]); } else if (params.row.orderStatus == "PAID") { - return h('div', [h('span', { }, '已付款'),]); + return h("div", [h("tag", {props: {color: "blue"}}, "已付款")]); } else if (params.row.orderStatus == "UNDELIVERED") { - return h('div', [h('span', { }, '待发货'),]); - }else if (params.row.orderStatus == "DELIVERED") { - return h('div', [h('span', { }, '已发货'),]); - }else if (params.row.orderStatus == "COMPLETED") { - return h('div', [h('span', { }, '已完成'),]); - }else if (params.row.orderStatus == "TAKE") { - return h('div', [h('span', { }, '待核验'),]); - }else if (params.row.orderStatus == "CANCELLED") { - return h('div', [h('span', { }, '已取消'),]); + return h("div", [h("tag", {props: {color: "geekblue"}}, "待发货")]); + } else if (params.row.orderStatus == "DELIVERED") { + return h("div", [h("tag", {props: {color: "cyan"}}, "已发货")]); + } else if (params.row.orderStatus == "COMPLETED") { + return h("div", [h("tag", {props: {color: "green"}}, "已完成")]); + } else if (params.row.orderStatus == "TAKE") { + return h("div", [h("tag", {props: {color: "volcano"}}, "待核验")]); + } else if (params.row.orderStatus == "CANCELLED") { + return h("div", [h("tag", {props: {color: "red"}}, "已取消")]); } } }, diff --git a/seller/src/views/shop/bill/accountStatementBill.vue b/seller/src/views/shop/bill/accountStatementBill.vue index e944f432..8fa895ba 100644 --- a/seller/src/views/shop/bill/accountStatementBill.vue +++ b/seller/src/views/shop/bill/accountStatementBill.vue @@ -132,15 +132,13 @@ width: 100, render: (h, params) => { if (params.row.billStatus == "OUT") { - return h( "Badge", {props: { status: "success",text: "已出账" } }) - } else if (params.row.billStatus == "EXAMINE") { - return h( "Badge", {props: { status: "success",text: "已审核" } }) + return h("Tag", {props: {color: "blue",},},"已出账"); } else if (params.row.billStatus == "CHECK") { - return h( "Badge", {props: { status: "success",text: "已对账" } }) - } else if (params.row.billStatus == "PAY") { - return h( "Badge", {props: { status: "success",text: "已付款" } }) - }else if (params.row.billStatus == "COMPLETE") { - return h( "Badge", {props: { status: "success",text: "已完成" } }) + return h("Tag", {props: {color: "geekblue",},},"已对账"); + } else if (params.row.billStatus == "EXAMINE") { + return h("Tag", {props: {color: "purple",},},"已审核"); + } else { + return h("Tag", {props: {color: "green",},},"已付款"); } } }, diff --git a/seller/src/views/shop/bill/storeBill.vue b/seller/src/views/shop/bill/storeBill.vue index 1797db66..035c76c8 100644 --- a/seller/src/views/shop/bill/storeBill.vue +++ b/seller/src/views/shop/bill/storeBill.vue @@ -143,15 +143,13 @@ width: 100, render: (h, params) => { if (params.row.billStatus == "OUT") { - return h( "Badge", {props: { status: "success",text: "已出账" } }) - } else if (params.row.billStatus == "EXAMINE") { - return h( "Badge", {props: { status: "success",text: "已审核" } }) + return h("Tag", {props: {color: "blue",},},"已出账"); } else if (params.row.billStatus == "CHECK") { - return h( "Badge", {props: { status: "success",text: "已对账" } }) - } else if (params.row.billStatus == "PAY") { - return h( "Badge", {props: { status: "success",text: "已付款" } }) - }else if (params.row.billStatus == "COMPLETE") { - return h( "Badge", {props: { status: "success",text: "已完成" } }) + return h("Tag", {props: {color: "geekblue",},},"已对账"); + } else if (params.row.billStatus == "EXAMINE") { + return h("Tag", {props: {color: "purple",},},"已审核"); + } else { + return h("Tag", {props: {color: "green",},},"已付款"); } } }, diff --git a/seller/src/views/shop/ship/logistics.vue b/seller/src/views/shop/ship/logistics.vue index 94fe169e..c9479e2d 100644 --- a/seller/src/views/shop/ship/logistics.vue +++ b/seller/src/views/shop/ship/logistics.vue @@ -58,10 +58,10 @@ minWidth: 120, sortable: true, render: (h, params) => { - if (params.row.selected === null || params.row.selected === "") { - return h( "Badge", {props: { status: "error",text: "关闭" } }) - } else if (params.row.selected !== "") { - return h( "Badge", {props: { status: "success",text: "开启" } }) + if(params.row.selected === null || params.row.selected === ""){ + return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]); + }else{ + return h("div", [h("tag", {props: {color: "green"}}, "开启")]); } } },