fix: 更新优惠券页面,订单列表页面,代客下单页面

This commit is contained in:
2025-02-27 16:27:09 +08:00
parent 9ad7ed57c2
commit 022b88557f
15 changed files with 908 additions and 84 deletions

View File

@@ -1,7 +1,7 @@
import OrderApi from "@/api/order/order";
import type { editRequest } from "@/api/system/version";
import type { IContentConfig } from "@/components/CURD/types";
import { returnOptionsLabel } from "./config";
const contentConfig: IContentConfig = {
pageName: "sys:user",
table: {
@@ -11,7 +11,7 @@ const contentConfig: IContentConfig = {
pagination: {
background: true,
layout: "prev,pager,next,jumper,total,sizes",
pageSize: 20,
pageSize: 10,
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
@@ -27,31 +27,87 @@ const contentConfig: IContentConfig = {
cols: [
{ type: "selection", width: 50, align: "center" },
// { label: "id", align: "center", prop: "id", width: 100, show: true },
{
label: "平台类型",
align: "center",
prop: "platformType",
templet: "custom",
slotName: "options",
},
{
label: "订单号信息",
align: "center",
prop: "orderNo",
},
{
label: "商品信息",
align: "center",
templet: 'custom',
prop: 'goods',
slotName: 'goods',
width: 240,
},
{
label: "台桌信息",
align: "center",
templet: 'custom',
slotName: 'table',
width: 150,
},
{
label: "订单原金额 不含折扣价格",
align: "center",
prop: "originAmount",
width: 120,
hidden: true,
},
{
label: "支付金额",
align: "center",
prop: "payAmount",
width: 120,
},
{
label: "订单金额 (扣除各类折扣)",
align: "center",
prop: "orderAmount",
width: 120,
hidden: true,
},
{
label: "用餐模式",
align: "center",
prop: "dineMode",
width: 120,
templet: "custom",
slotName: "options",
},
{
label: "状态",
align: "center",
prop: "status",
width: 120,
templet: "custom",
slotName: "state",
},
{
label: "备注",
align: "center",
prop: "remark",
},
{
label: "创建时间",
align: "center",
prop: "createTime",
},
{
label: "操作",
align: "center",
fixed: "right",
width: 280,
templet: "tool",
operat: [
{
icon: "Document",
name: "detail",
text: "详情",
},
{
icon: "Printer",
name: "printer",
text: "开票",
},
],
width: 150,
templet: "custom",
slotName: 'operate'
},
],
};