|
|
@ -248,7 +248,7 @@ import { |
|
|
|
OrderSourceEnum, |
|
|
|
OrderSourceEnum, |
|
|
|
OrderStatusEnum, |
|
|
|
OrderStatusEnum, |
|
|
|
PayStatusEnum, |
|
|
|
PayStatusEnum, |
|
|
|
ReceiptStatusEnum, |
|
|
|
ReceiptStatusEnum |
|
|
|
} from '@/common/enum/order' |
|
|
|
} from '@/common/enum/order' |
|
|
|
import { PaymentMethodEnum } from '@/common/enum/payment' |
|
|
|
import { PaymentMethodEnum } from '@/common/enum/payment' |
|
|
|
import { DeliveryForm, ExtractForm, CancelForm } from './modules' |
|
|
|
import { DeliveryForm, ExtractForm, CancelForm } from './modules' |
|
|
@ -259,45 +259,45 @@ const columns = [ |
|
|
|
title: '商品信息', |
|
|
|
title: '商品信息', |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
dataIndex: 'goods', |
|
|
|
dataIndex: 'goods', |
|
|
|
scopedSlots: { customRender: 'goods' }, |
|
|
|
scopedSlots: { customRender: 'goods' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '单价/数量', |
|
|
|
title: '单价/数量', |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
scopedSlots: { customRender: 'unit_price' }, |
|
|
|
scopedSlots: { customRender: 'unit_price' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '实付款', |
|
|
|
title: '实付款', |
|
|
|
align: 'center', |
|
|
|
align: 'center', |
|
|
|
dataIndex: 'pay_price', |
|
|
|
dataIndex: 'pay_price', |
|
|
|
scopedSlots: { customRender: 'pay_price' }, |
|
|
|
scopedSlots: { customRender: 'pay_price' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '买家', |
|
|
|
title: '买家', |
|
|
|
dataIndex: 'user', |
|
|
|
dataIndex: 'user', |
|
|
|
scopedSlots: { customRender: 'user' }, |
|
|
|
scopedSlots: { customRender: 'user' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '支付方式', |
|
|
|
title: '支付方式', |
|
|
|
dataIndex: 'pay_method', |
|
|
|
dataIndex: 'pay_method', |
|
|
|
scopedSlots: { customRender: 'pay_method' }, |
|
|
|
scopedSlots: { customRender: 'pay_method' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '配送方式', |
|
|
|
title: '配送方式', |
|
|
|
dataIndex: 'delivery_type', |
|
|
|
dataIndex: 'delivery_type', |
|
|
|
scopedSlots: { customRender: 'delivery_type' }, |
|
|
|
scopedSlots: { customRender: 'delivery_type' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '交易状态', |
|
|
|
title: '交易状态', |
|
|
|
dataIndex: 'status', |
|
|
|
dataIndex: 'status', |
|
|
|
scopedSlots: { customRender: 'status' }, |
|
|
|
scopedSlots: { customRender: 'status' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
title: '操作', |
|
|
|
dataIndex: 'action', |
|
|
|
dataIndex: 'action', |
|
|
|
width: '180px', |
|
|
|
width: '180px', |
|
|
|
scopedSlots: { customRender: 'action' }, |
|
|
|
scopedSlots: { customRender: 'action' } |
|
|
|
}, |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
// 搜索关键词类型枚举 |
|
|
|
// 搜索关键词类型枚举 |
|
|
@ -306,7 +306,7 @@ const SearchTypeEnum = [ |
|
|
|
{ name: '会员昵称', value: 20 }, |
|
|
|
{ name: '会员昵称', value: 20 }, |
|
|
|
{ name: '会员ID', value: 30 }, |
|
|
|
{ name: '会员ID', value: 30 }, |
|
|
|
{ name: '收货人姓名', value: 40 }, |
|
|
|
{ name: '收货人姓名', value: 40 }, |
|
|
|
{ name: '收货人电话', value: 50 }, |
|
|
|
{ name: '收货人电话', value: 50 } |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
@ -317,7 +317,7 @@ export default { |
|
|
|
UserItem, |
|
|
|
UserItem, |
|
|
|
DeliveryForm, |
|
|
|
DeliveryForm, |
|
|
|
ExtractForm, |
|
|
|
ExtractForm, |
|
|
|
CancelForm, |
|
|
|
CancelForm |
|
|
|
}, |
|
|
|
}, |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
@ -340,7 +340,7 @@ export default { |
|
|
|
pageSizeOptions: ['15', '30', '50', '100', '200', '300', '400', '500'], |
|
|
|
pageSizeOptions: ['15', '30', '50', '100', '200', '300', '400', '500'], |
|
|
|
showTotal: (total) => `共 ${total} 条记录`, // 显示总数 |
|
|
|
showTotal: (total) => `共 ${total} 条记录`, // 显示总数 |
|
|
|
// 自提门店列表 |
|
|
|
// 自提门店列表 |
|
|
|
shopList: [], |
|
|
|
shopList: [] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
beforeCreate () { |
|
|
|
beforeCreate () { |
|
|
@ -355,14 +355,14 @@ export default { |
|
|
|
ReceiptStatusEnum, |
|
|
|
ReceiptStatusEnum, |
|
|
|
PaymentMethodEnum, |
|
|
|
PaymentMethodEnum, |
|
|
|
SearchTypeEnum, |
|
|
|
SearchTypeEnum, |
|
|
|
simpleImage: Empty.PRESENTED_IMAGE_SIMPLE, |
|
|
|
simpleImage: Empty.PRESENTED_IMAGE_SIMPLE |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
// 监听路由变化 |
|
|
|
// 监听路由变化 |
|
|
|
$route () { |
|
|
|
$route () { |
|
|
|
this.init() |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created () { |
|
|
|
created () { |
|
|
|
// 初始化页面 |
|
|
|
// 初始化页面 |
|
|
@ -416,7 +416,7 @@ export default { |
|
|
|
[OrderStatusEnum.NORMAL.value]: '', |
|
|
|
[OrderStatusEnum.NORMAL.value]: '', |
|
|
|
[OrderStatusEnum.CANCELLED.value]: 'red', |
|
|
|
[OrderStatusEnum.CANCELLED.value]: 'red', |
|
|
|
[OrderStatusEnum.APPLY_CANCEL.value]: 'red', |
|
|
|
[OrderStatusEnum.APPLY_CANCEL.value]: 'red', |
|
|
|
[OrderStatusEnum.COMPLETED.value]: 'green', |
|
|
|
[OrderStatusEnum.COMPLETED.value]: 'green' |
|
|
|
} |
|
|
|
} |
|
|
|
return ColorEnum[orderStatus] |
|
|
|
return ColorEnum[orderStatus] |
|
|
|
}, |
|
|
|
}, |
|
|
@ -470,7 +470,7 @@ export default { |
|
|
|
app.handleRefresh() |
|
|
|
app.handleRefresh() |
|
|
|
}) |
|
|
|
}) |
|
|
|
.finally((result) => modal.destroy()) |
|
|
|
.finally((result) => modal.destroy()) |
|
|
|
}, |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -487,8 +487,8 @@ export default { |
|
|
|
// 审核取消订单 |
|
|
|
// 审核取消订单 |
|
|
|
handleCancel (record) { |
|
|
|
handleCancel (record) { |
|
|
|
this.$refs.CancelForm.show(record) |
|
|
|
this.$refs.CancelForm.show(record) |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style lang="less" scoped> |
|
|
|
<style lang="less" scoped> |
|
|
|