调整自行采购直接采购
This commit is contained in:
@@ -194,7 +194,7 @@
|
|||||||
:disabled="isPurchaseTypeDisabled"
|
:disabled="isPurchaseTypeDisabled"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-option v-for="item in purchaseTypeDeptOptions" :key="item.value" :label="item.label" :value="item.value" />
|
<el-option v-for="item in purchaseTypeDeptOptions" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -1101,7 +1101,7 @@ const DEPT_PURCHASE_TYPE = {
|
|||||||
BUSINESS_NEGOTIATION: '3',
|
BUSINESS_NEGOTIATION: '3',
|
||||||
ENTRUST_CENTER: '4',
|
ENTRUST_CENTER: '4',
|
||||||
INQUIRY: '5',
|
INQUIRY: '5',
|
||||||
/** 公开招标(部门自行采购下委托采购中心采购时可选择) */
|
DIRECT_PURCHASE: '6',
|
||||||
OPEN_TENDERING: '100',
|
OPEN_TENDERING: '100',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -2183,12 +2183,16 @@ const getPurchaseTypeDeptDelegationDict = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 部门采购方式下拉选项:根据采购途径动态切换字典 */
|
/** 部门采购方式下拉选项:根据采购途径动态切换字典,直接采购仅预算<2000时可选 */
|
||||||
const purchaseTypeDeptOptions = computed(() => {
|
const purchaseTypeDeptOptions = computed(() => {
|
||||||
if (isEntrustCenterChannel.value) {
|
if (isEntrustCenterChannel.value) {
|
||||||
return purchaseTypeDeptDelegationList.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,
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取学校采购形式字典
|
// 获取学校采购形式字典
|
||||||
|
|||||||
Reference in New Issue
Block a user