From e55df9616c68ca79571b821b00ba03e4f2cdb0cd Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Mon, 26 Jan 2026 16:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E8=BD=AC=EF=BC=8C=E9=A2=86=E6=96=99?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business-examine/receive-apply/index.vue | 37 +++++++++- .../directApplyRecord.vue | 74 ++++++++++++++++--- 2 files changed, 99 insertions(+), 12 deletions(-) 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 @@