import type { ISearchConfig } from "@/components/CURD/types";

const searchConfig: ISearchConfig = {
  pageName: "sys:user",
  formItems: [
    {
      type: "input",
      label: "挂账人",
      prop: "keywords",
      attrs: {
        placeholder: "请输入挂账人或手机号",
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
    {
      type: "select",
      label: "还款状态",
      prop: "repaymentStatus",
      attrs: {
        placeholder: "请选择还款状态",
        clearable: true,
        style: {
          width: "200px",
        },
      },
      initialValue: '',
      options: [
        { label: "未还款", value: 'unpaid' },
        { label: "部分还款", value: 'partial' },
        { label: "已还清", value: 'paid' },
      ],
    },
  ],
};

export default searchConfig;
