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, + })); }); // 获取学校采购形式字典