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: 'workorderstate',
      type: 'select',
      label: '工单状态', 
      clearable : true,
      options : [
        {
          title : '待交办',
          value : 1
        },
        {
          title : '待接单',
          value : 2
        },
        {
          title : '待处理',
          value : 3
        },
        {
          title : '待审核',
          value : 4
        },
        {
          title : '待回访',
          value : 5
        },
        {
          title : '已完结',
          value : 6
        },
      ]
    }, 
    {
      field: 'source',
      type: 'select',
      label: '来源', 
      clearable : true,
      options : ly
    }, 
  ]
}
