This commit is contained in:
2026-10-30 11:19:57 +08:00
parent a2ef3542f4
commit 8cc8b4fb94
13 changed files with 218 additions and 74 deletions
@@ -48,7 +48,12 @@ async function loadOptions(keyword = '') {
} catch (failure) { if (sequence === optionSequence) error.value = getApiErrorDetails(failure, '业务订单加载失败') }
finally { if (sequence === optionSequence) optionsLoading.value = false }
}
function changeBusinessType() { form.businessId = ''; options.value = []; void loadOptions() }
function changeBusinessType() {
form.businessId = ''; options.value = []
// 切换业务时重置结算选择,采购不能沿用上一业务的账期选择。
form.settlementMode = form.businessType === 'OVERSEAS_PROCUREMENT' ? 'WALLET' : ''
void loadOptions()
}
const selected = computed(() => props.business || options.value.find(row => row.businessId === form.businessId))
const selectedItem = computed(() => manualItems.value.find(item => item.feeCode === form.feeItemCode))
let existingSequence = 0