<template>
    <el-card shadow="always" class="search_header_top_row1">

        <el-form :inline="true" :model="filterForm" class="demo-form-inline">
            <el-form-item label="关键字">
                <el-input v-model.trim="filterForm.keyword" placeholder="请输入关键字" clearable />
            </el-form-item>
            <el-form-item label="装备名称">
                <el-input v-model.trim="filterForm.equipment" placeholder="请输入装备名称" clearable />
            </el-form-item>
            <el-form-item label="装备编号">
                <el-input v-model.trim="filterForm.equipment_code" placeholder="请输装备编号" clearable />
            </el-form-item>
            <el-form-item label="订单编号">
                <el-input v-model.trim="filterForm.order_code" placeholder="请输入订单编号" clearable />
            </el-form-item>
            <el-form-item label="求租方企业">
                <el-input v-model.trim="filterForm.q_company" placeholder="请输入求租方企业名称" clearable />
            </el-form-item>
            <el-form-item label="出租方企业">
                <el-input v-model.trim="filterForm.c_company" placeholder="请输入出租方企业名称" clearable />
            </el-form-item>
            <el-form-item label="时间范围">
                <el-date-picker v-model.trim="filterForm.dataRange" type="daterange" range-separator="To" start-placeholder="Start date"
                    end-placeholder="End date" />
            </el-form-item>
            <el-form-item >
                <el-button type="primary" @click="serachFn">查询</el-button>
                <el-button type="plain" @click="resetFn">重置</el-button>
          
            </el-form-item> 
            <el-form-item>
            <el-button type="primary" @click="exportFn">导出</el-button>
            </el-form-item> 
        </el-form>
 
    </el-card>
</template>

<script lang="ts" setup>
const emits = defineEmits(['search','reset','auditBatch','export','deleteBatch'])
 
const filterForm = reactive({
    keyword: '',
    equipment:'',   
    equipment_code:"",
    order_code:'',
    q_company:'',
    c_company:'',
    dataRange:''
})

const serachFn = () => {
    emits('search',filterForm)
}

const resetFn=()=>{
    emits('reset')
}

const exportFn =()=>{
    emits('export')
}
 
</script>

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