fix : 调整台账显示信息

This commit is contained in:
2024-06-30 20:09:53 +08:00
parent 7daa4b676d
commit c226715097
2 changed files with 3 additions and 4 deletions

View File

@@ -257,14 +257,12 @@ const getBaseInfo = async () => {
try {
const {code, data} = await getBaseInfoApi(route.query.id)
baseForm.value.setValues(data)
await init()
} catch {
}
}
const init = async () => {
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
console.log('data',data)
if (data) {
if (code===1000) {
tableData.value = data
baseForm.value.setValues(data)
}
@@ -277,6 +275,7 @@ const init = async () => {
// }
}
getBaseInfo()
init()
const headBtnClick = (key) => {
switch (key) {
case 'add':