fix: 预算金额>=2000时自动清空直接采购方式
This commit is contained in:
@@ -1441,6 +1441,16 @@ watch(
|
|||||||
{ immediate: true }
|
{ 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万,服务类目,特殊服务类目)
|
// 判断是否自动选择网上商城采购方式(5万<=金额<30万,服务类目,特殊服务类目)
|
||||||
const isAutoSelectPurchaseType = computed(() => {
|
const isAutoSelectPurchaseType = computed(() => {
|
||||||
if (!dataForm.budget) return false;
|
if (!dataForm.budget) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user