| | |
| | | <Option value="CLOSED">已作废</Option> |
| | | </Select> |
| | | </Form-item> |
| | | <Form-item label="活动时间"> |
| | | <Form-item label="领取时间"> |
| | | <DatePicker |
| | | v-model="selectDate" |
| | | type="daterange" |
| | | type="datetimerange" |
| | | clearable |
| | | placeholder="选择起始时间" |
| | | style="width: 200px" |
| | |
| | | }, |
| | | }, |
| | | { |
| | | 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) => { |
| | |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | title: "领取时间", |
| | | width: 150, |
| | | render: (h, params) => { |
| | | return h("div", { |
| | | domProps: { |
| | | innerHTML: |
| | | params.row.claimTime, |
| | | }, |
| | | }); |
| | | }, |
| | | }, |
| | | ], |
| | | data: [], // 表单数据 |
| | | total: 0, // 表单数据总数 |