import useSelectStore from '@/store/commonSelect/common'
import { getPageListData } from '@/api/main/system/system'
let ly = useSelectStore().dictSourceList
let xm = useSelectStore().dictProjectList
let gdlx = useSelectStore().dictOrderTypeList
let slr = useSelectStore().workorderUserList


export const searchFormConfig = {
  labelWidth: '120px',
  itemStyle: {
    padding: '0px'
  },
  colLayout: {
    span: 6
  },
  formItems: [
    {
      field: 'workordercode',
      type: 'input',
      label: '工单编号',
      clearable: true,
    },
    // {
    //   field: 'firsttype',
    //   type: 'select',
    //   clearable: true,
    //   label: '工单类别',
    //   options: [
    //     {
    //       value: '1000',
    //       title: '咨询',
    //     },
    //     {
    //       value: '2000',
    //       title: '建议',
    //     },
    //     {
    //       value: '3000',
    //       title: '投诉',
    //     },
    //     {
    //       value: '4000',
    //       title: '客户转运',
    //     }]
    // },
    {
      field: 'workordercate',
      type: 'elCascader',
      label: '工单类型',
      clearable: true,
      options: gdlx,
      props: {
        value: 'id',
        children: 'children',
      }
    },
    {
      field: 'caller',
      type: 'input',
      label: '来电人',
      clearable: true,
    },
    {
      field: 'callnum',
      type: 'input',
      label: '手机号',
      clearable: true,
    },
    {
      field: 'createuser',
      type: 'select',
      clearable: true,
      label: '受理人',
      options: slr
    }
  ]
}
