87 lines
1.8 KiB
TypeScript
87 lines
1.8 KiB
TypeScript
import type { ISearchConfig } from "@/components/CURD/types";
|
|
import { statusOptions, payTypeOptions } from "./config";
|
|
const searchConfig: ISearchConfig = {
|
|
pageName: "sys:user",
|
|
inline: false,
|
|
isExpandable: false,
|
|
formItems: [
|
|
{
|
|
type: "radio-button",
|
|
label: "订单状态",
|
|
prop: "status",
|
|
attrs: {
|
|
placeholder: "请选择订单状态",
|
|
clearable: true,
|
|
},
|
|
options: statusOptions,
|
|
initialValue: "",
|
|
},
|
|
{
|
|
type: "radio-button",
|
|
label: "支付方式",
|
|
prop: "payType",
|
|
attrs: {
|
|
placeholder: "请选择支付方式",
|
|
clearable: true,
|
|
},
|
|
options: payTypeOptions,
|
|
initialValue: "",
|
|
},
|
|
{
|
|
type: "input",
|
|
label: "订单编号",
|
|
prop: "orderNo",
|
|
attrs: {
|
|
placeholder: "请输入订单编号",
|
|
clearable: true,
|
|
style: {
|
|
width: "200px",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
type: "input",
|
|
label: "台桌名称",
|
|
prop: "tableName",
|
|
attrs: {
|
|
placeholder: "请输入台桌名称",
|
|
clearable: true,
|
|
style: {
|
|
width: "200px",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
type: "input",
|
|
label: "商品名称",
|
|
prop: "productName",
|
|
attrs: {
|
|
placeholder: "请输入商品名称",
|
|
clearable: true,
|
|
style: {
|
|
width: "200px",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
type: "date-picker",
|
|
label: "时间范围",
|
|
prop: "createAt",
|
|
attrs: {
|
|
showFastEdit: true,
|
|
type: "daterange",
|
|
"range-separator": "~",
|
|
"start-placeholder": "开始时间",
|
|
"end-placeholder": "截止时间",
|
|
"value-format": "YYYY-MM-DD",
|
|
clearable: true,
|
|
style: {
|
|
width: "300px",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default searchConfig;
|