import { FormConfig } from "/@/components/PageSearch";
import { goodTypeOptions, statusList } from "/@/utils/status";
import { basicStatusOptions, goodSourceOptions } from "/@/views/invoiceInOut/productManager/config/columns";

const searchFormConfig: FormConfig = {
  formItems: [
    {
      field: "timer",
      type: "date_picker",
      otherOptions: {
        type: "daterange",
        startProp: "start",
        endProp: "end",
        startPlaceholder: "创建开始时间",
        endPlaceholder: "创建结束时间"
      }
    },
    {
      field: 'good_type',
      type: 'select',
      options: goodTypeOptions,
      placeholder: '商品类型',
      otherOptions: { disabled: true }
    },
    {
      type: 'select',
      placeholder: '成本类型',
      field: 'basic_status',
      options: basicStatusOptions,
      otherOptions: { disabled: true }
    },
    {
      field: 'good_source',
      type: 'select',
      options: goodSourceOptions,
      placeholder: '商品来源',
      otherOptions: { disabled: true }
    },
    {
      field: 'skuCode',
      type: 'input',
      placeholder: '商品编码'
    },
    {
      type: 'select',
      field: 'status',
      options: statusList,
      placeholder: '状态',
      otherOptions: { disabled: true }
    },
    {
      field: 'is_combind',
      type: 'select',
      placeholder: '组合类型',
      otherOptions: { disabled: true },
      options: [
        { value: '0', label: '非组合商品' },
        { value: '1', label: '组合商品' },
      ],
    },
  ]
};

export default searchFormConfig;
