search.vue 4.53 KB
<!--
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2024-01-23 09:44:44
-->
<template>
  <dialogBox :isButton="false" :isFullscreen="false" width="50%" @closeDialog="closeDialog" v-model="myValue"
    title="高级搜索">
    <el-form :model="ruleForm" ref="ruleForm" label-width="100px">
      <el-row>
        <el-col :span="8">
          <el-form-item label="受理开始时间" prop="slkssj">
            <el-date-picker v-model="ruleForm.slkssj" value-format="yyyy-MM-dd" class="width100" type="date"
              placeholder="请选择日期" clearable>
            </el-date-picker>
          </el-form-item>
        </el-col>        
        <el-col :span="8">
          <el-form-item label="受理结束时间" prop="sljssj">
            <el-date-picker v-model="ruleForm.sljssj" value-format="yyyy-MM-dd" class="width100" type="date"
              placeholder="请选择日期" clearable>
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="受理人员" prop="slry">
            <el-input v-model.trim="ruleForm.slry" clearable placeholder="请输入义务人"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <!-- <el-col :span="8">
          <el-form-item label="办理环节" prop="stepcfgid">
            <el-select
                v-model="queryForm.stepcfgid"
                class="width100"
                filterable
                @change="handleSelect('stepCfg', 'stepCfgName', 'stepcfgid')"
                @clear="handleEmpty('stepCfgName')"
                clearable
                placeholder="请选择办理环节">
                <el-option
                  v-for="item in dictData['stepCfg']"
                  :key="item.dcode"
                  :label="item.dname"
                  :value="item.dcode">
                </el-option>
              </el-select>
          </el-form-item>
        </el-col> -->
        <el-col :span="8">
          <el-form-item label="原不动产权证号" prop="ybdcqzh">
            <el-input v-model.trim="ruleForm.ybdcqzh" clearable placeholder="请输入申请业务名称"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="合同号" prop="zjzl">
            <el-input v-model.trim="ruleForm.qlrmc" clearable placeholder="请输入合同号"></el-input>
          </el-form-item>
        </el-col>
     
        <!-- <el-col :span="8" class="btnColRight">
          <el-button type="primary" icon="el-icon-search" @click="submitForm('ruleForm')">查询</el-button>
        </el-col> -->
      </el-row>
      
      <el-row class="search-btn">
        <el-button type="text" @click.native="closeDialog">收起搜索</el-button>
        <el-button type="primary" icon="el-icon-search" @click="submitForm('ruleForm')">查询</el-button>
        <el-button icon="el-icon-refresh-left" @click="resetForm('ruleForm')">重置</el-button>
      </el-row>
    </el-form>
  </dialogBox>
</template>
<script>
  import { mapGetters } from "vuex";
  export default {
    props: {
      value: { type: Boolean, default: false },
      advancedForm: { type: Object, default: "" }
    },
    computed: {
      ...mapGetters(["dictData", "transfer"]),
    },
    data () {
      return {
        myValue: this.value,
        ruleForm: {
          sqywmc: '',
          qlrmc: '',
          ywrmc: '',
          slsj: '',
          stepcfgid: '',
          ybdcqzh: '',
        }
      }
    },
    watch: {
      value (val) {
        this.myValue = val
      },
      advancedForm () {
        this.ruleForm = { ...this.advancedForm }
      }
    },


    methods: {
      /**
       * @description: closeDialog
       * @author: renchao
       */
      closeDialog () {
        this.$emit('input', false)
      },
      /**
       * @description: resetForm
       * @author: renchao
       */
      resetForm () {
        this.$refs['ruleForm'].resetFields()
        this.ruleForm = {
          sqywmc: '',
          qlrmc: '',
          ywrmc: '',
          slsj: '',
          ybdcqzh: '',
        }
      },
      /**
       * @description: submitForm
       * @author: renchao
       */
      submitForm () {
        this.$emit('getSearch', _.cloneDeep(this.ruleForm))
        this.$emit('input', false)
        this.$refs['ruleForm'].resetFields()

      }
    }
  }
</script>
<style scoped lang='scss'>
  @import "~@/styles/public.scss";

  .search-btn {
    padding: 0 20px 20px 20px;
    text-align: right;
  }

  /deep/.el-icon-date {
    display: none;
  }
</style>