Merge pull request '更新' (#21) from zyj into master

Reviewed-on: #21
pull/24/head^2
zhangyouji 1 year ago
commit c8ab3b999b
  1. 39
      src/views/oilFinalStatement/oilFinalStatementAddList.vue
  2. 36
      src/views/oilFinalStatement/oilFinalStatementList.vue

@ -27,20 +27,8 @@
<!-- 搜索部分开始 --> <!-- 搜索部分开始 -->
<el-form label-width="90px" :inline="true" :model="page" :size="$store.getters.size"> <el-form label-width="90px" :inline="true" :model="page" :size="$store.getters.size">
<el-col :span="18"> <el-col :span="18">
<el-form-item> <autocomplete class="mr20" :params="page.params" :config="configAutocomplete" />
<el-select
v-model="page.params.customerId"
remote
filterable
:remote-method="companyOrginQuery"
clearable
placeholder="请输入企业名称"
@keyup.enter.native="getByPage"
ref="changeName"
>
<el-option v-for="item in queryCompanyList" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
</el-form-item>
<el-form-item prop="createTimeRange"> <el-form-item prop="createTimeRange">
<el-date-picker <el-date-picker
v-model="page.params.createTimeRange" v-model="page.params.createTimeRange"
@ -219,13 +207,23 @@
<script> <script>
import internalCompanyApi from '@/api/user/internalCompany' import internalCompanyApi from '@/api/user/internalCompany'
import autocomplete from 'components/autocomplete/index.vue'
export default { export default {
components: {
autocomplete
},
data() { data() {
return { return {
configAutocomplete: {
serveTarget: internalCompanyApi.getLikeByCompanyType,
autocompleteKey: 'name',
labelKey: 'name',
valueKey: 'id',
placeholder: '企业名称',
querykey: 'customerId'
},
changeCompanyId: '', changeCompanyId: '',
oliList: ['0#柴', '-10#柴', '92#汽', '95#汽'], oliList: ['0#柴', '-10#柴', '92#汽', '95#汽'],
baocunList: [], baocunList: [],
daixuanList: [], daixuanList: [],
baocunDaixuanList: [], baocunDaixuanList: [],
@ -244,7 +242,6 @@ export default {
tableHeight: document.documentElement.clientHeight - 495, tableHeight: document.documentElement.clientHeight - 495,
selectedStaffList: [], selectedStaffList: [],
setWait: true, setWait: true,
queryCompanyList: [], //
staffData: [], staffData: [],
selectedStaffData: [], selectedStaffData: [],
submitDialog: false, submitDialog: false,
@ -451,14 +448,6 @@ export default {
} }
this.submitDialog = true this.submitDialog = true
}, },
companyOrginQuery(value) {
//
if (value) {
internalCompanyApi.getLikeByCompanyType({ name: value }).then(res => {
this.queryCompanyList = res.data
})
}
},
search() { search() {
// //
if (!this.page.params.customerId) { if (!this.page.params.customerId) {

@ -14,19 +14,8 @@
<el-option label="炼厂" value="2" /> <el-option label="炼厂" value="2" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item>
<el-select <autocomplete class="mr20" :params="page.params" :config="configAutocomplete" />
v-model="page.params.settlementId"
remote
filterable
:remote-method="companyOrginQuery"
clearable
placeholder="客户名称"
@keyup.enter.native="getByPage"
>
<el-option v-for="item in queryCompanyList" :key="item.id" :label="item.name" :value="item.id" />
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-select v-model="page.params.auditState" clearable placeholder="审核状态"> <el-select v-model="page.params.auditState" clearable placeholder="审核状态">
@ -133,14 +122,24 @@
import oilFinalStatementListInfo from './oilFinalStatementListInfo' import oilFinalStatementListInfo from './oilFinalStatementListInfo'
import internalCompanyApi from '@/api/user/internalCompany' import internalCompanyApi from '@/api/user/internalCompany'
import sysCustomerInfoApi from '@/api/user/sysCustomerInfo' import sysCustomerInfoApi from '@/api/user/sysCustomerInfo'
import autocomplete from 'components/autocomplete/index.vue'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
components: { components: {
oilFinalStatementListInfo oilFinalStatementListInfo,
autocomplete
}, },
data() { data() {
return { return {
configAutocomplete: {
serveTarget: internalCompanyApi.getLikeByCompanyType,
autocompleteKey: 'name',
labelKey: 'name',
valueKey: 'id',
placeholder: '客户名称',
querykey: 'settlementId'
},
detailDrawer: false, detailDrawer: false,
thisloding: true, thisloding: true,
page: { page: {
@ -151,7 +150,6 @@ export default {
columns: [] columns: []
}, },
userList: '', userList: '',
queryCompanyList: [],
tableHeight: document.documentElement.clientHeight - 300 - 50, tableHeight: document.documentElement.clientHeight - 300 - 50,
filters: this.$options.filters, filters: this.$options.filters,
dataPage: [], dataPage: [],
@ -314,14 +312,6 @@ export default {
this.page.params = {} this.page.params = {}
this.getByPage() this.getByPage()
}, },
companyOrginQuery(value) {
//
if (value) {
internalCompanyApi.getLikeByCompanyType({ name: value }).then(res => {
this.queryCompanyList = res.data
})
}
},
getByPage() { getByPage() {
// //

Loading…
Cancel
Save