优化收入和支出单的查询条件
This commit is contained in:
@@ -27,9 +27,9 @@
|
||||
</a-col>
|
||||
<template v-if="toggleSearchStatus">
|
||||
<a-col :md="6" :sm="24">
|
||||
<a-form-item label="客户" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<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-form-item label="往来单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-select placeholder="选择往来单位" showSearch optionFilterProp="children" v-model="queryParam.organId">
|
||||
<a-select-option v-for="(item,index) in organList" :key="index" :value="item.id">
|
||||
{{ item.supplier }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
@@ -184,7 +184,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initCustomer()
|
||||
this.initOrgan()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
},
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
</a-col>
|
||||
<template v-if="toggleSearchStatus">
|
||||
<a-col :md="6" :sm="24">
|
||||
<a-form-item label="供应商" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<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-form-item label="往来单位" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-select placeholder="选择往来单位" showSearch optionFilterProp="children" v-model="queryParam.organId">
|
||||
<a-select-option v-for="(item,index) in organList" :key="index" :value="item.id">
|
||||
{{ item.supplier }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
@@ -184,7 +184,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSupplier()
|
||||
this.initOrgan()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
},
|
||||
|
||||
@@ -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 = {
|
||||
data () {
|
||||
return {
|
||||
supList: [],
|
||||
cusList: [],
|
||||
organList: [],
|
||||
retailList: [],
|
||||
userList: [],
|
||||
personList: []
|
||||
@@ -77,6 +78,14 @@ export const FinancialListMixin = {
|
||||
}
|
||||
});
|
||||
},
|
||||
initOrgan() {
|
||||
let that = this;
|
||||
findBySelectOrgan({}).then((res)=>{
|
||||
if(res) {
|
||||
that.organList = res;
|
||||
}
|
||||
});
|
||||
},
|
||||
initRetail() {
|
||||
let that = this;
|
||||
findBySelectRetail({}).then((res)=>{
|
||||
|
||||
Reference in New Issue
Block a user