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

const searchConfig: ISearchConfig = {
  pageName: "sys:user",
  isExpand: true,
  formItems: [
    {
      type: "input",
      label: "挂账人",
      prop: "debtor",
      attrs: {
        placeholder: "请输入挂账人名称",
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
    {
      type: "input",
      label: "手机号",
      prop: "mobile",
      attrs: {
        placeholder: "请输入手机号",
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
    {
      type: "select",
      label: "状态",
      prop: "status",
      attrs: {
        placeholder: "请选择状态",
        clearable: true,
        style: {
          width: "200px",
        },
      },
      initialValue: '',
      options: [
        { label: "停用", value: '0' },
        { label: "启用", value: '1' },
      ],
    },
    {
      type: "select",
      label: "还款状态",
      prop: "repaymentStatus",
      attrs: {
        placeholder: "请选择还款状态",
        clearable: true,
        style: {
          width: "200px",
        },
      },
      initialValue: '',
      options: [
        { label: "有欠款", value: '0' },
        { label: "无欠款", value: '1' },
      ],
    },
  ],
};

export default searchConfig;
