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