import { ref } from "vue";

// 新增用户 表单项
export const userFormItemList = ref([
  {
    key: 'account',
    label: '账号',
    type: 'input',
    placeholder: '请输入手机号',
    rules: [{ required: true, message: '请输入账号', trigger: 'blur' }], 
    custom: false,
    style: {},
  },
  {
    key: 'name',
    label: '姓名',
    type: 'input',
    placeholder: '请输入姓名',
    rules: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
    custom: false,
    style: {},
  },
  {
    key: 'gender',
    label: '性别',
    type: 'radio',
    selectList: [
      { label: '男', value: '1' },
      { label: '女', value: '0' }
    ],
    custom: false,
    style: {},
  },
  {
    key: 'phone',
    label: '手机号',
    type: 'input',
    placeholder: '请输入手机号',
    rules: [{ required: true, message: '请输入手机号', trigger: 'blur' }],
    custom: false,
    style: {},
  },
  {
    key: 'publicSeaFollowRecord',
    label: '公海跟进记录',
    type: 'switch',
    custom: false,
    style: {},
  },
  {
    key: 'historyFollowRecord',
    label: '历史跟进记录',
    type: 'switch',
    custom: false,
    style: {},
  },
  {
    key: 'customerHoldLimit',
    label: '客户持有上限',
    type: 'number',
    placeholder: '请输入',
    custom: false,
    unit:'个',
    style: {},
  },
  {
    key: 'dailyManualReturnLimit',
    label: '每日手动退回公海上限',
    type: 'number',
    placeholder: '请输入',
    custom: false,
    unit:'个',
    style: {},
  },
  {
    key: 'noFollowAutoReturnDays',
    label: '无跟进自动退回公海天数',
    type: 'number',
    placeholder: '请输入',
    custom: false,
    unit:'天',
    style: {},
  }
])


// 重置密码 表单项
export const resetPasswordFormItemList =  ref([
  {
    key: 'account',
    label: '账号',
    type: 'input',
    disabled: true, 
    custom: false,
    style: {},
  },
  {
    key: 'name',
    label: '姓名',
    type: 'input',
    disabled: true, 
    custom: false,
    style: {},
  },
  {
    key: 'newPassword',
    label: '新密码',
    type: 'password', 
    placeholder: '请输入新密码',
    rules: [
      { required: true, message: '请输入新密码', trigger: 'blur' }
    ],
    custom: false,
    style: {},
  },
]);