<template>
  <toolbar-container :fields="fields" v-on="$listeners" />
</template>

<script>
import AUDITTYPE from '@/const/auditType';
import SCENETYPE from '@/const/sceneType';

export default {
  name: 'SceneVerifyToolbar',

  data() {
    return {
      fields: [
        {
          type: 'text',
          name: 'name',
          label: '机构名称'
        },
        {
          type: 'AddressSelect',
          name: 'area',
          label: '所在地区',
          defaultValue: [],
          format: val => val[2] || null
        },
        {
          type: 'select',
          name: 'type',
          label: '机构类型',
          options: SCENETYPE
        },
        {
          type: 'text',
          name: 'personPhonenumber',
          label: '申请人手机号码'
        },
        {
          type: 'dateArray',
          name: 'date',
          label: '申请时间',
          apiName: ['startTime', 'endTime']
        },
        {
          type: 'select',
          name: 'auditStatus',
          label: '审核状态',
          options: AUDITTYPE,
          format: val => val,
          defaultValue: 1
        }
      ]
    };
  }
};
</script>

<style type="scss" scoped></style>
