diff --git a/src/views/business-examine/receive-apply/index.vue b/src/views/business-examine/receive-apply/index.vue index 3e8368ce..60263fc0 100644 --- a/src/views/business-examine/receive-apply/index.vue +++ b/src/views/business-examine/receive-apply/index.vue @@ -23,6 +23,23 @@ style="width: 130px" /> + + + + + + import { getReceiveApplyApi } from '@/api/receive-apply/index.js' +import {getImpUnitListApi} from "@/api/materialsStation"; import { getToken, setToken, setExpiresIn } from '@/utils/auth' export default { @@ -130,7 +148,8 @@ export default { keyWord: '', // 关键字 taskStatus: '1', // 审核状态 startTime: '', // 开始时间 - endTime: '' // 结束时间 + endTime: '', // 结束时间 + impUnitName: '', // 分公司 }, // 审核状态 statusOptions: [ @@ -152,7 +171,8 @@ export default { { label: '领料人', prop: 'leasePerson' }, { label: '领料人电话', prop: 'phone' }, { label: '状态', prop: 'taskStatus' } - ] + ], + impUnitOptions: [], // 分公司下拉选 } }, async created() { @@ -215,6 +235,7 @@ export default { // if (this.statusOptions.length > 1) { // this.queryParams.taskStatus = this.statusOptions[1].value // } + this.getImpUnitOptions() this.getList() } }, @@ -242,6 +263,18 @@ export default { this.$refs.queryForm.resetFields() this.getList() }, + + async getImpUnitOptions() { + try { + const res = await getImpUnitListApi() + this.impUnitOptions = res.data.map(item => ({ + label: item.impUnitName, + value: item.impUnitName + })) + } catch (e) { + console.error('获取分公司下拉失败:', e) + } + }, // 获取列表 async getList() { try { diff --git a/src/views/business/businessHandlingRecord/directApplyRecord.vue b/src/views/business/businessHandlingRecord/directApplyRecord.vue index 4fbccc1a..d2c4a835 100644 --- a/src/views/business/businessHandlingRecord/directApplyRecord.vue +++ b/src/views/business/businessHandlingRecord/directApplyRecord.vue @@ -1,7 +1,7 @@