Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuzhenWang
yd-csf-front
Commits
769a2101
Commit
769a2101
authored
Apr 07, 2026
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改更新数据的时候第一次默认数据不显示
parent
c3092767
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
src/views/financialCenter/financialBilling.vue
+3
-1
src/views/financialCenter/receivables.vue
+8
-5
No files found.
src/views/financialCenter/financialBilling.vue
View file @
769a2101
...
...
@@ -382,7 +382,9 @@ const addCheckRecordConfig = [
labelKey
:
'realName'
,
onChangeExtraFields
:
{
broker
:
'realName'
,
// 自动同步 raw.name 到 reconciliationCompany
reconciliationCompanyCode
:
'code'
reconciliationCompanyCode
:
'code'
,
team
:
'deptName'
,
teamBizId
:
'deptBizId'
,
},
transform
:
res
=>
{
return
res
?.
data
.
records
||
[]
...
...
src/views/financialCenter/receivables.vue
View file @
769a2101
...
...
@@ -196,7 +196,7 @@
<
script
setup
name=
"Receivables"
>
import
CommonPage
from
'@/components/commonPage'
import
CommonDialog
from
'@/components/commonDialog'
import
{
ref
,
reactive
,
onMounted
,
computed
}
from
'vue'
import
{
ref
,
reactive
,
onMounted
,
computed
,
nextTick
}
from
'vue'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
MoreFilled
}
from
'@element-plus/icons-vue'
import
{
...
...
@@ -696,11 +696,14 @@ const handleSelect = async (e, row) => {
}
else
if
(
e
===
'updateData'
)
{
editStatus
.
value
=
'update'
addReceivablesDialogVisible
.
value
=
true
if
(
addRecordRef
.
value
)
{
addReceivablesFormModel
.
value
=
{
...
selectedRow
.
value
}
// 2. 使用 nextTick 等待 DOM 更新
nextTick
(()
=>
{
// 3. 此时 addRecordRef.value 一定存在了
if
(
addRecordRef
.
value
&&
selectedRow
.
value
)
{
addReceivablesFormModel
.
value
=
{
...
selectedRow
.
value
};
console
.
log
(
'赋值成功:'
,
addReceivablesFormModel
.
value
);
}
});
console
.
log
(
'更新数据'
,
selectedRow
.
value
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment