feat: 新增订单状态

This commit is contained in:
wangsongsole 2023-05-08 15:54:42 +08:00
parent 570427fb2f
commit f458f8f5b5
1 changed files with 141 additions and 140 deletions

View File

@ -1,222 +1,223 @@
export const Column = [ export const Column = [
{ {
title: "订单号", title: '订单号',
name: "order_number", name: 'order_number',
prop: "order_number", prop: 'order_number',
type: "normal", type: 'normal',
width: "150px" width: '150px'
}, },
{ {
title: "兑换码-批次ID", title: '兑换码-批次ID',
name: "code_batch_id", name: 'code_batch_id',
prop: "code_batch_id", prop: 'code_batch_id',
type: "normal", type: 'normal',
width: "80px" width: '80px'
}, },
{ {
title: "商品名称", title: '商品名称',
prop: "product_name", prop: 'product_name',
name: "product_name", name: 'product_name',
width: "120px", width: '120px',
type: "normal" type: 'normal'
}, },
{ {
title: "官方价格", title: '官方价格',
name: "official_price", name: 'official_price',
prop: "official_price", prop: 'official_price',
type: "normal", type: 'normal',
width: "80px" width: '80px'
}, },
{ {
title: "合同价(成本价)", title: '合同价(成本价)',
name: "cost", name: 'cost',
type: "slot", type: 'slot',
prop: "cost", prop: 'cost',
width: "120px" width: '120px'
}, },
{ {
title: "分销商", title: '分销商',
name: "reseller_name", name: 'reseller_name',
type: "normal", type: 'normal',
prop: "reseller_name", prop: 'reseller_name',
width: "auto" width: 'auto'
}, },
{ {
title: "归属key批次", title: '归属key批次',
name: "key_batch_id", name: 'key_batch_id',
prop: "key_batch_id", prop: 'key_batch_id',
width: "80px", width: '80px',
type: "normal" type: 'normal'
}, },
{ {
title: "归属营销计划", title: '归属营销计划',
name: "plan_title", name: 'plan_title',
prop: "plan_title", prop: 'plan_title',
width: "auto", width: 'auto',
type: "normal" type: 'normal'
}, },
{ {
title: "购买数量", title: '购买数量',
name: "num", name: 'num',
type: "normal", type: 'normal',
prop: "num", prop: 'num',
width: "50px" width: '50px'
}, },
{ {
title: "订单状态", title: '订单状态',
name: "statusDom", name: 'statusDom',
prop: "statusDom", prop: 'statusDom',
type: "slot", type: 'slot',
width: "80px" width: '80px'
}, },
{ {
title: "支付状态", title: '支付状态',
name: "pay_status", name: 'pay_status',
prop: "pay_status", prop: 'pay_status',
type: "slot", type: 'slot',
width: "80px" width: '80px'
}, },
{ {
title: "操作", title: '操作',
prop: "opearo", prop: 'opearo',
name: "opearo", name: 'opearo',
type: "slot", type: 'slot',
width: "160px" width: '160px'
}, },
{ {
title: "平台批次号", title: '平台批次号',
name: "channel_activity_id", name: 'channel_activity_id',
type: "slot", type: 'slot',
prop: "channel_activity_id", prop: 'channel_activity_id',
width: "auto" width: 'auto'
}, },
{ {
title: "创建时间", title: '创建时间',
name: "create_time", name: 'create_time',
prop: "create_time", prop: 'create_time',
width: "130px", width: '130px',
type: "normal" type: 'normal'
}, },
{ {
title: "更新时间", title: '更新时间',
name: "status_modify_time", name: 'status_modify_time',
prop: "status_modify_time", prop: 'status_modify_time',
width: "130px", width: '130px',
type: "slot" type: 'slot'
}, },
{ {
title: "账号", title: '账号',
name: "account", name: 'account',
type: "slot", type: 'slot',
prop: "account", prop: 'account',
width: "auto" width: 'auto'
}, },
{ {
title: "商品类型", title: '商品类型',
name: "product_type", name: 'product_type',
prop: "product_type", prop: 'product_type',
width: "50px", width: '50px',
type: "slot" type: 'slot'
}, },
{ {
title: "订单类型", title: '订单类型',
name: "order_type", name: 'order_type',
prop: "order_type", prop: 'order_type',
width: "50px", width: '50px',
type: "slot" type: 'slot'
}, },
{ {
title: "核销状态", title: '核销状态',
name: "usage_status", name: 'usage_status',
prop: "usage_status", prop: 'usage_status',
width: "50px", width: '50px',
type: "slot" type: 'slot'
}, },
{ {
title: "减扣(元)", title: '减扣(元)',
name: "discount_amount", name: 'discount_amount',
prop: "discount_amount", prop: 'discount_amount',
type: "normal", type: 'normal',
width: "80px" width: '80px'
}, },
{ {
title: "券后价(元)", title: '券后价(元)',
name: "pay_amount", name: 'pay_amount',
prop: "pay_amount", prop: 'pay_amount',
type: "normal", type: 'normal',
width: "80px" width: '80px'
}, },
{ {
title: "key", title: 'key',
name: "key", name: 'key',
prop: "key", prop: 'key',
width: "140px", width: '140px',
type: "normal" type: 'normal'
} }
]; ];
export const options = [ export const options = [
{ {
key: "1", key: '1',
text: "key查询" text: 'key查询'
}, },
{ {
key: "2", key: '2',
text: "通用查询" text: '通用查询'
}, },
{ {
key: "3", key: '3',
text: "key批次" text: 'key批次'
}, },
{ {
key: "4", key: '4',
text: "兑换码批次ID" text: '兑换码批次ID'
}, },
{ {
key: "5", key: '5',
text: "平台批次号" text: '平台批次号'
} }
]; ];
export const filterList = [ export const filterList = [
{ {
id: 0, id: 0,
label: "订单状态", label: '订单状态',
prop: "status", prop: 'status',
menuList: [ menuList: [
{ id: 1, name: "直充-充值中" }, { id: 0, name: '直充-待充值' },
{ id: 2, name: "直充-已完成" }, { id: 1, name: '直充-充值中' },
{ id: 3, name: "直充-充值失败" }, { id: 2, name: '直充-已完成' },
{ id: 4, name: "直充-已取消" }, { id: 3, name: '直充-充值失败' },
{ id: 111, name: "立减金-待领取" }, { id: 4, name: '直充-已取消' },
{ id: 222, name: "立减金-已领取" }, { id: 111, name: '立减金-待领取' },
{ id: 5, name: "立减金-已过期" } { id: 222, name: '立减金-已领取' },
{ id: 5, name: '立减金-已过期' }
] ]
}, },
{ {
id: 1, id: 1,
label: "支付状态", label: '支付状态',
prop: "pay_status", prop: 'pay_status',
menuList: [ menuList: [
{ id: 1, name: "待支付" }, { id: 1, name: '待支付' },
{ id: 2, name: "已支付" }, { id: 2, name: '已支付' },
{ id: 3, name: "已退款" } { id: 3, name: '已退款' }
] ]
}, },
{ {
id: 3, id: 3,
label: "核销状态", label: '核销状态',
prop: "voucher_status", prop: 'voucher_status',
menuList: [ menuList: [
{ id: '1,3', name: "未核销" },/*融入过期状态3 */ { id: '1,3', name: '未核销' } /*融入过期状态3 */,
{ id: 2, name: "已核销" }, { id: 2, name: '已核销' },
// { id: 3, name: "已过期" }, // { id: 3, name: "已过期" },
{ id: 4, name: "已退款" } { id: 4, name: '已退款' }
] ]
} }
]; ];
export const rules = { export const rules = {
account: [{ type: "required", message: "请输入账号" }] account: [{ type: 'required', message: '请输入账号' }]
}; };