search.vue
4.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!--
* @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>