优化收入和支出单的查询条件

This commit is contained in:
季圣华
2021-12-05 22:37:56 +08:00
parent 2c395b39d1
commit 82297eb257
3 changed files with 18 additions and 9 deletions

View File

@@ -27,9 +27,9 @@
</a-col> </a-col>
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item label="客户" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="往来单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select placeholder="选择客户" showSearch optionFilterProp="children" v-model="queryParam.organId"> <a-select placeholder="选择往来单位" showSearch optionFilterProp="children" v-model="queryParam.organId">
<a-select-option v-for="(item,index) in cusList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in organList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@@ -184,7 +184,7 @@
computed: { computed: {
}, },
created () { created () {
this.initCustomer() this.initOrgan()
this.initUser() this.initUser()
this.initPerson() this.initPerson()
}, },

View File

@@ -27,9 +27,9 @@
</a-col> </a-col>
<template v-if="toggleSearchStatus"> <template v-if="toggleSearchStatus">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item label="供应商" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="往来单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-select placeholder="选择供应商" showSearch optionFilterProp="children" v-model="queryParam.organId"> <a-select placeholder="选择往来单位" showSearch optionFilterProp="children" v-model="queryParam.organId">
<a-select-option v-for="(item,index) in supList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in organList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@@ -184,7 +184,7 @@
computed: { computed: {
}, },
created () { created () {
this.initSupplier() this.initOrgan()
this.initUser() this.initUser()
this.initPerson() this.initPerson()
}, },

View File

@@ -1,10 +1,11 @@
import {findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getPersonByType } from '@/api/api' import {findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail, getUserList, getPersonByType } from '@/api/api'
export const FinancialListMixin = { export const FinancialListMixin = {
data () { data () {
return { return {
supList: [], supList: [],
cusList: [], cusList: [],
organList: [],
retailList: [], retailList: [],
userList: [], userList: [],
personList: [] personList: []
@@ -77,6 +78,14 @@ export const FinancialListMixin = {
} }
}); });
}, },
initOrgan() {
let that = this;
findBySelectOrgan({}).then((res)=>{
if(res) {
that.organList = res;
}
});
},
initRetail() { initRetail() {
let that = this; let that = this;
findBySelectRetail({}).then((res)=>{ findBySelectRetail({}).then((res)=>{