import {
  queryProvincesApi
} from '@/api/base/projDept'

export const queryProvinces = () => {
  queryProvincesApi().then(res => {
    formLabel[0].f_selList = res.data.map(item => {
      return {
        label: item.areaName,
        value: item.areaId
      }
    })
  }).catch(err => {})
}

export const formLabel = [
    { f_label: '地区', f_model: 'areaId', f_type: 'sel', f_selList: [] },
    { f_label: '项目部名称', f_model: 'departName', f_type: 'ipt' },
    { f_label: '负责人', f_model: 'headUser', f_type: 'ipt' },
]
export const columnsList = [
    { t_props: 'departName', t_label: '项目部名称', },
    { t_props: 'departTypeName', t_label: '项目部类型' },
    { t_props: 'areaName', t_label: '地区' },
    { t_props: 'headUser', t_label: '负责人', },
    { t_props: 'headUserPhone', t_label: '电话', t_slot: 'headUserPhone' },
    { t_props: 'remarks', t_label: '备注', },
]

export const dialogConfig = {
    outerWidth: '40%',
    outerTitle: '',
    outerVisible: false,
}
