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: 'project',
      type: 'select',
      label: '项目',  
      clearable : true,
      options : xm
    },
    {
      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 
    },  
    {
      field: 'source',
      type: 'select',
      label: '来源', 
      clearable : true,
      options : ly
    }, 
  ]
}
