From a6b4a7b2d16d10eb8ef6cd4f2b518db23098c79d Mon Sep 17 00:00:00 2001
From: weicw <594098497@qq.com>
Date: Fri, 6 Nov 2026 08:10:31 +0800
Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=87=AD=E8=AF=81=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=85=B3=E8=81=94=E8=BF=90=E5=8D=95=E6=89=B9=E6=AC=A1?=
=?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E7=AD=9B?=
=?UTF-8?q?=E9=80=89=E4=B8=8E=E9=A1=B9=E7=9B=AE=E5=88=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 搜索表单新增项目下拉筛选,查询参数透传 projectId
- 运单批次表格在运单批次号后新增项目列,同一批次跨项目时显示「多个项目」
---
src/views/business/voucher-manage.vue | 32 +++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)
diff --git a/src/views/business/voucher-manage.vue b/src/views/business/voucher-manage.vue
index 54fb8b2..fc3dac2 100644
--- a/src/views/business/voucher-manage.vue
+++ b/src/views/business/voucher-manage.vue
@@ -389,6 +389,18 @@
v-model="batchQuery.batchNo"
clearable
placeholder="请输入" /> {
batchTarget.value = voucher?.id ? voucher : undefined;
batchSelection.value = [];
batchVisible.value = true;
+ if (!projectOptions.value.length) await loadProjects();
await loadBatches();
if (voucher?.waybillBatchNo) {
const currentBatch = batchRows.value.find(item => item.batchNo === voucher.waybillBatchNo);
@@ -1033,6 +1055,7 @@ const openBatchDialog = async row => {
const loadBatches = async () => {
const res = await api.getWaybillBatches(batchPage.current, batchPage.size, {
batchNo: batchQuery.batchNo,
+ projectId: batchQuery.projectId,
createUser: batchQuery.createUser,
waybillCount: batchQuery.waybillCount,
createTimeStart: batchCreateRange.value?.[0] ? `${batchCreateRange.value[0]} 00:00:00` : '',
@@ -1054,7 +1077,12 @@ const handleWaybillCountInput = value => {
}
};
const resetBatchQuery = () => {
- Object.assign(batchQuery, { batchNo: '', createUser: '', waybillCount: undefined });
+ Object.assign(batchQuery, {
+ batchNo: '',
+ projectId: '',
+ createUser: '',
+ waybillCount: undefined,
+ });
batchCreateRange.value = [];
batchPage.current = 1;
loadBatches();