会计账簿-搜索功能完善

main
mo 1 year ago
parent 983968e397
commit 6628ccc350

@ -9,6 +9,56 @@
v-show="showSearch" v-show="showSearch"
label-width="68px" label-width="68px"
> >
<el-form-item label="账簿名称" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入账簿名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="业务实体" prop="company">
<el-select
v-model="queryParams.company"
placeholder="请选择业务实体"
value-key="id"
@change="handleCompanyChange1"
>
<el-option
v-for="item in organizationList"
:key="item.id"
:value="item"
:label="item.organizationName"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="细分类型" prop="type">
<el-select
v-model="queryParams.type"
placeholder="请选择细分类型"
@keyup.enter.native="handleQuery"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.label"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="会计年度" prop="year">
<el-date-picker
popper-class="due_year"
v-model="queryParams.year"
value-format="yyyy"
type="year"
placeholder="请选择会计年份"
@keyup.enter.native="handleQuery"
>
</el-date-picker>
</el-form-item>
<el-form-item label="会计期间" prop="period"> <el-form-item label="会计期间" prop="period">
<el-date-picker <el-date-picker
popper-class="due_month" popper-class="due_month"
@ -20,15 +70,14 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="业务组织" prop="company"> <el-form-item label="账簿来源" prop="source">
<el-input <el-input
v-model="queryParams.company" v-model="queryParams.source"
placeholder="请输入业务组织" placeholder="请输入账簿来源"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery" <el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button >搜索</el-button
@ -341,13 +390,12 @@ export default {
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
uri: null,
companyId: null,
company: null, company: null,
type: null, type: null,
year: null, year: null,
period: null, period: null,
inputPassword: null, name: null,
source: null,
}, },
// //
form: {}, form: {},
@ -372,6 +420,17 @@ export default {
type1: "明细账", type1: "明细账",
type2: "日记账", type2: "日记账",
organizationList: [], organizationList: [],
options: [
{
label: "总账",
},
{
label: "明细账",
},
{
label: "日记账",
},
],
}; };
}, },
created() { created() {
@ -414,6 +473,9 @@ export default {
this.form.companyId = val.id; this.form.companyId = val.id;
this.form.company = val.organizationName; this.form.company = val.organizationName;
}, },
handleCompanyChange1(val) {
this.queryParams.company = val.organizationName;
},
/** 取消按钮 */ /** 取消按钮 */
cancel() { cancel() {
this.open = false; this.open = false;

Loading…
Cancel
Save