优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user