| | |
| | | }, |
| | | }, |
| | | { |
| | | title: "订单状态", |
| | | key: "orderStatus", |
| | | width: 120, |
| | | render: (h, params) => { |
| | | if (params.row.orderStatus === "UNPAID") { |
| | | return h("Tag", { props: { color: "orange" } }, "未付款"); |
| | | } else if (params.row.orderStatus === "PAID") { |
| | | return h("Tag", { props: { color: "green" } }, "已付款"); |
| | | } else if(params.row.orderStatus === "UNDELIVERED"){ |
| | | return h("Tag", { props: { color: "orange" } }, "待发货"); |
| | | }else if(params.row.orderStatus === "DELIVERED"){ |
| | | return h("Tag", { props: { color: "green" } }, "已发货"); |
| | | }else if(params.row.orderStatus === "COMPLETED"){ |
| | | return h("Tag", { props: { color: "green" } }, "已完成"); |
| | | }else if(params.row.orderStatus === "STAY_PICKED_UP"){ |
| | | return h("Tag", { props: { color: "orange" } }, "待自提"); |
| | | }else if(params.row.orderStatus === "CANCELLED"){ |
| | | return h("Tag", { props: { color: "purple" } }, "已关闭"); |
| | | }else if(params.row.orderStatus === "TAKE"){ |
| | | return h("Tag", { props: { color: "orange" } }, "待核验"); |
| | | }else{ |
| | | return h("Tag", { props: { color: "purple" } }, "未知"); |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | title: "有效时间", |
| | | width: 150, |
| | | render: (h, params) => { |