From 77a0c38a7a51b66a7a27f833898b3e24bef6759b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com>
Date: Mon, 9 Mar 2026 17:41:08 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=87=AA=E8=A1=8C=E9=87=87?=
=?UTF-8?q?=E8=B4=AD=E7=9B=B4=E6=8E=A5=E9=87=87=E8=B4=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/purchase/purchasingrequisition/add.vue | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue
index 67756eb..0e30e36 100644
--- a/src/views/purchase/purchasingrequisition/add.vue
+++ b/src/views/purchase/purchasingrequisition/add.vue
@@ -194,7 +194,7 @@
:disabled="isPurchaseTypeDisabled"
style="width: 100%"
>
-
+
@@ -1101,7 +1101,7 @@ const DEPT_PURCHASE_TYPE = {
BUSINESS_NEGOTIATION: '3',
ENTRUST_CENTER: '4',
INQUIRY: '5',
- /** 公开招标(部门自行采购下委托采购中心采购时可选择) */
+ DIRECT_PURCHASE: '6',
OPEN_TENDERING: '100',
} as const;
@@ -2183,12 +2183,16 @@ const getPurchaseTypeDeptDelegationDict = async () => {
}
};
-/** 部门采购方式下拉选项:根据采购途径动态切换字典 */
+/** 部门采购方式下拉选项:根据采购途径动态切换字典,直接采购仅预算<2000时可选 */
const purchaseTypeDeptOptions = computed(() => {
if (isEntrustCenterChannel.value) {
return purchaseTypeDeptDelegationList.value;
}
- return purchaseTypeDeptList.value;
+ const budget = Number(dataForm.budget) || 0;
+ return purchaseTypeDeptList.value.map((item: any) => ({
+ ...item,
+ disabled: item.value === DEPT_PURCHASE_TYPE.DIRECT_PURCHASE && budget >= 2000,
+ }));
});
// 获取学校采购形式字典