diff --git a/src/views/oilFinalStatement/oilFinalStatementAddList.vue b/src/views/oilFinalStatement/oilFinalStatementAddList.vue index a2c7f7d..6010c52 100644 --- a/src/views/oilFinalStatement/oilFinalStatementAddList.vue +++ b/src/views/oilFinalStatement/oilFinalStatementAddList.vue @@ -27,20 +27,8 @@ - - - - - + + import internalCompanyApi from '@/api/user/internalCompany' +import autocomplete from 'components/autocomplete/index.vue' export default { + components: { + autocomplete + }, data() { return { + configAutocomplete: { + serveTarget: internalCompanyApi.getLikeByCompanyType, + autocompleteKey: 'name', + labelKey: 'name', + valueKey: 'id', + placeholder: '企业名称', + querykey: 'customerId' + }, changeCompanyId: '', - oliList: ['0#柴', '-10#柴', '92#汽', '95#汽'], - baocunList: [], daixuanList: [], baocunDaixuanList: [], @@ -244,7 +242,6 @@ export default { tableHeight: document.documentElement.clientHeight - 495, selectedStaffList: [], setWait: true, - queryCompanyList: [], // 企业列表 staffData: [], selectedStaffData: [], submitDialog: false, @@ -451,14 +448,6 @@ export default { } this.submitDialog = true }, - companyOrginQuery(value) { - // 远程搜索 - if (value) { - internalCompanyApi.getLikeByCompanyType({ name: value }).then(res => { - this.queryCompanyList = res.data - }) - } - }, search() { // 搜索 if (!this.page.params.customerId) { diff --git a/src/views/oilFinalStatement/oilFinalStatementList.vue b/src/views/oilFinalStatement/oilFinalStatementList.vue index 7e0b7a3..cbf1898 100644 --- a/src/views/oilFinalStatement/oilFinalStatementList.vue +++ b/src/views/oilFinalStatement/oilFinalStatementList.vue @@ -14,19 +14,8 @@ - - - - - + + @@ -133,14 +122,24 @@ import oilFinalStatementListInfo from './oilFinalStatementListInfo' import internalCompanyApi from '@/api/user/internalCompany' import sysCustomerInfoApi from '@/api/user/sysCustomerInfo' +import autocomplete from 'components/autocomplete/index.vue' import { mapGetters } from 'vuex' export default { components: { - oilFinalStatementListInfo + oilFinalStatementListInfo, + autocomplete }, data() { return { + configAutocomplete: { + serveTarget: internalCompanyApi.getLikeByCompanyType, + autocompleteKey: 'name', + labelKey: 'name', + valueKey: 'id', + placeholder: '客户名称', + querykey: 'settlementId' + }, detailDrawer: false, thisloding: true, page: { @@ -151,7 +150,6 @@ export default { columns: [] }, userList: '', - queryCompanyList: [], tableHeight: document.documentElement.clientHeight - 300 - 50, filters: this.$options.filters, dataPage: [], @@ -314,14 +312,6 @@ export default { this.page.params = {} this.getByPage() }, - companyOrginQuery(value) { - // 远程搜索 - if (value) { - internalCompanyApi.getLikeByCompanyType({ name: value }).then(res => { - this.queryCompanyList = res.data - }) - } - }, getByPage() { // 分页查询