fix: 账户交易记录,bug修复。
This commit is contained in:
@@ -253,6 +253,11 @@ getDicts('deal_category').then(result => {
|
|||||||
queryAccountParams.value.type = null
|
queryAccountParams.value.type = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 如果是复制模式,重置交易时间
|
||||||
|
if(flag.value!=null){
|
||||||
|
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
||||||
|
}
|
||||||
|
|
||||||
// 编辑和复制时,如果是储蓄账户,自动回填储蓄账户类型并显示筛选框
|
// 编辑和复制时,如果是储蓄账户,自动回填储蓄账户类型并显示筛选框
|
||||||
if(form.value.type === '1' && form.value.accountId) {
|
if(form.value.type === '1' && form.value.accountId) {
|
||||||
debitTypeShow.value = true
|
debitTypeShow.value = true
|
||||||
@@ -265,19 +270,24 @@ getDicts('deal_category').then(result => {
|
|||||||
tempDebitTypeName.value = dictStr(currentAccount.debitType, result.data)
|
tempDebitTypeName.value = dictStr(currentAccount.debitType, result.data)
|
||||||
})
|
})
|
||||||
queryAccountParams.value.debitType = currentAccount.debitType
|
queryAccountParams.value.debitType = currentAccount.debitType
|
||||||
}
|
// 只筛选匹配储蓄账户类型的账户
|
||||||
accountNameList.value = [response.rows.filter(item => item.debitType === tempDebitType.value)]
|
accountNameList.value = [response.rows.filter(item => item.debitType === tempDebitType.value)]
|
||||||
|
} else {
|
||||||
|
// 如果没有找到储蓄账户类型,显示所有储蓄账户
|
||||||
|
accountNameList.value = [response.rows]
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
} else {
|
||||||
|
// 非储蓄账户(信用卡等),清除储蓄账户类型筛选条件
|
||||||
// 如果是复制模式,重置交易时间
|
queryAccountParams.value.debitType = null
|
||||||
if(flag.value!=null){
|
debitTypeShow.value = false
|
||||||
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
tempDebitType.value = null
|
||||||
}
|
tempDebitTypeName.value = null
|
||||||
|
// 加载对应类型的账户列表
|
||||||
listAccounts(queryAccountParams.value).then((response) => {
|
listAccounts(queryAccountParams.value).then((response) => {
|
||||||
accountNameList.value = [response.rows]
|
accountNameList.value = [response.rows]
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(form.value)
|
console.log(form.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user