feat(对账): 新增批量对账功能并优化对账流程
- 添加批量对账模式,支持按金额批量选择账单 - 优化rowKey处理逻辑 - 调整对账表单验证规则,增加金额校验 - 修改时间单位从月到天,提高精确度 - 优化选中账单展示,增加标记和计数功能 - 修复SelectDropdownRender组件选项更新问题
This commit is contained in:
@@ -34,16 +34,18 @@ const VNodes = defineComponent({
|
||||
});
|
||||
|
||||
const items = ref<{ value: string }[]>(props.options || []);
|
||||
const value = ref(props.value);
|
||||
// const value = computed(() => props.value || items.value[0]?.value);
|
||||
const value = ref(props.value || items.value[0]?.value);
|
||||
const inputRef = ref();
|
||||
const inputValue = ref('');
|
||||
|
||||
// 监听 props.value 变化,更新本地 value
|
||||
watch(
|
||||
() => props.value,
|
||||
() => props.options,
|
||||
(newValue) => {
|
||||
value.value = newValue;
|
||||
value.value = props.value && props.value !== '' ? props.value : newValue.value[0]?.value;
|
||||
},
|
||||
{ immediate: true, deep: true },
|
||||
);
|
||||
|
||||
// 监听本地 value 变化,触发 update:value 事件
|
||||
|
||||
Reference in New Issue
Block a user