From 10227b512d2307b4ca961f11e75dfb66f1ec8b71 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 16:57:48 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9A=82=E5=AD=98?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purchasingrequisition/add.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 5388483..67756eb 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -2529,17 +2529,14 @@ const handleSubmit = async () => { } }; -// 暂存 +// 暂存(跳过表单校验,允许部分填写) const handleTempStore = async () => { if (loading.value) return; loading.value = true; try { - const valid = await formRef.value?.validate().catch(() => {}); - if (!valid) { - loading.value = false; - return false; - } + // 暂存模式不进行表单校验,允许用户部分填写后保存 + // 提交时才会执行完整的校验规则 const submitData: any = { ...dataForm, 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 02/11] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=87=AA=E8=A1=8C?= =?UTF-8?q?=E9=87=87=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, + })); }); // 获取学校采购形式字典 From 67891627f8f941fe2811bdc07318dd48d08808ae 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:57:29 +0800 Subject: [PATCH 03/11] =?UTF-8?q?fix:=20=E9=A2=84=E7=AE=97=E9=87=91?= =?UTF-8?q?=E9=A2=9D>=3D2000=E6=97=B6=E8=87=AA=E5=8A=A8=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E9=87=87=E8=B4=AD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purchasingrequisition/add.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 0e30e36..161ae02 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -1441,6 +1441,16 @@ watch( { immediate: true } ); +watch( + () => dataForm.budget, + (budget) => { + const budgetNum = Number(budget) || 0; + if (budgetNum >= 2000 && dataForm.purchaseType === DEPT_PURCHASE_TYPE.DIRECT_PURCHASE) { + dataForm.purchaseType = ''; + } + } +); + // 判断是否自动选择网上商城采购方式(5万<=金额<30万,服务类目,特殊服务类目) const isAutoSelectPurchaseType = computed(() => { if (!dataForm.budget) return false; From 3ce63a6c5a79fd490d23e619a5a83c6ad7b16272 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 21:09:53 +0800 Subject: [PATCH 04/11] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=9A=82=E5=AD=98?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purchasingrequisition/add.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 161ae02..47b94d4 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -14,7 +14,7 @@ - - -
- + + + 基础信息 + + + 暂存时,基础信息必填 + + Date: Mon, 9 Mar 2026 21:13:16 +0800 Subject: [PATCH 05/11] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=9A=82=E5=AD=98?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purchasingrequisition/add.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 47b94d4..0f5155f 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -14,7 +14,7 @@ - Date: Mon, 9 Mar 2026 21:30:32 +0800 Subject: [PATCH 06/11] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=9A=82=E5=AD=98?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/purchase/purchasingrequisition/add.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 0f5155f..85214c5 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -136,7 +136,6 @@ -
From 0a32e457a53226dc1d968882378a65680d2facd4 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 21:42:42 +0800 Subject: [PATCH 07/11] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=9A=82=E5=AD=98?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchase/purchasingrequisition/add.vue | 106 ++++++++++++++++-- 1 file changed, 98 insertions(+), 8 deletions(-) diff --git a/src/views/purchase/purchasingrequisition/add.vue b/src/views/purchase/purchasingrequisition/add.vue index 85214c5..4545a4e 100644 --- a/src/views/purchase/purchasingrequisition/add.vue +++ b/src/views/purchase/purchasingrequisition/add.vue @@ -846,12 +846,7 @@
@@ -863,10 +858,10 @@