Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7eb7a1c
authored
Jun 09, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化RecordTransfer组件,更新费用类别显示逻辑
1 parent
41e47121
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
48 deletions
src/views/financeManage/YJTheAssetData/index.vue
src/views/financeManage/components/RecordTransfer.vue
src/views/financeManage/YJTheAssetData/index.vue
View file @
c7eb7a1
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
:label-width=
"labelWidth"
:label-width=
"labelWidth"
:search-form=
"searchForm"
>
:search-form=
"searchForm"
>
<!-- 同步状态 -->
<!-- 同步状态 -->
<div
slot=
"jdSyncStatusHtml"
>
<
!--
<
div
slot=
"jdSyncStatusHtml"
>
<el-select
v-model=
"searchForm.jdSyncType"
<el-select
v-model=
"searchForm.jdSyncType"
placeholder=
"请选择"
placeholder=
"请选择"
style=
"width: 45%;margin-right: 10px;"
style=
"width: 45%;margin-right: 10px;"
...
@@ -45,12 +45,6 @@
...
@@ -45,12 +45,6 @@
:label=
"item.confValue"
:label=
"item.confValue"
:value=
"item.confId"
>
:value=
"item.confId"
>
</el-option>
</el-option>
<!--
<el-option
label=
"流水明细"
value=
"1"
></el-option>
<el-option
label=
"回单"
value=
"2"
></el-option>
<el-option
label=
"快照"
value=
"3"
></el-option>
-->
</el-select>
</el-select>
<el-select
v-model=
"searchForm.jdSyncStatus"
<el-select
v-model=
"searchForm.jdSyncStatus"
placeholder=
"请选择"
placeholder=
"请选择"
...
@@ -65,7 +59,7 @@
...
@@ -65,7 +59,7 @@
:value=
"item.confId"
>
:value=
"item.confId"
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
-->
<!-- 交易金额 -->
<!-- 交易金额 -->
<div
slot=
"transactionMoneyHtml"
>
<div
slot=
"transactionMoneyHtml"
>
<InputRange
end-placeholder=
"最大金额"
<InputRange
end-placeholder=
"最大金额"
...
@@ -213,7 +207,7 @@ export default {
...
@@ -213,7 +207,7 @@ export default {
transactionTime
:
""
,
transactionTime
:
""
,
receiptStatus
:
""
,
receiptStatus
:
""
,
receiptJdSync
:
""
,
receiptJdSync
:
""
,
jdSyncType
:
""
,
//
jdSyncType: "",
jdSyncStatus
:
""
,
jdSyncStatus
:
""
,
dataSource
:
""
,
dataSource
:
""
,
uses
:
""
,
uses
:
""
,
...
@@ -308,11 +302,12 @@ export default {
...
@@ -308,11 +302,12 @@ export default {
// optionLabel: 'confValue',
// optionLabel: 'confValue',
// optionsName: 'jdSyncOpt'
// optionsName: 'jdSyncOpt'
//
}
,
//
}
,
//
{
// label: "同步状态",
// name: "jdSyncStatus",
// addHtml: "jdSyncStatusHtml",
//
}
,
{
{
label
:
"同步状态"
,
name
:
"jdSyncStatus"
,
addHtml
:
"jdSyncStatusHtml"
,
}
,
{
label
:
"交易时间"
,
label
:
"交易时间"
,
name
:
"transactionTime"
,
name
:
"transactionTime"
,
// addHtml: "transactionTimeHtml"
// addHtml: "transactionTimeHtml"
...
@@ -429,19 +424,6 @@ export default {
...
@@ -429,19 +424,6 @@ export default {
return
this
.
baseData
.
receiptStatusOpt
.
find
(
item
=>
item
.
confId
===
cellValue
.
receiptStatus
)?.
confValue
;
return
this
.
baseData
.
receiptStatusOpt
.
find
(
item
=>
item
.
confId
===
cellValue
.
receiptStatus
)?.
confValue
;
}
,
}
,
}
,
{
}
,
{
label
:
"同步状态(快照)"
,
prop
:
"h5JdSync"
,
width
:
"150px"
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
jdSyncOpt
.
find
(
item
=>
item
.
confId
===
cellValue
.
h5JdSync
)?.
confValue
;
}
,
className
:
(
cellValue
)
=>
{
return
{
0
:
"redSpot"
,
1
:
"greenSpot"
,
}
[
cellValue
.
h5JdSync
];
}
,
}
,
{
label
:
"数据来源"
,
label
:
"数据来源"
,
prop
:
"dataSource"
,
prop
:
"dataSource"
,
width
:
"100px"
,
width
:
"100px"
,
...
@@ -574,25 +556,25 @@ export default {
...
@@ -574,25 +556,25 @@ export default {
delete
this
.
searchFormSearch
.
amtMin
;
delete
this
.
searchFormSearch
.
amtMin
;
delete
this
.
searchFormSearch
.
amtMax
;
delete
this
.
searchFormSearch
.
amtMax
;
}
}
if
(
this
.
searchFormSearch
.
jdSyncType
==
"1"
)
{
//
if (this.searchFormSearch.jdSyncType == "1")
{
this
.
searchFormSearch
.
jdSync
=
this
.
searchFormSearch
.
jdSyncStatus
;
//
this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus;
}
else
if
(
this
.
searchFormSearch
.
jdSyncType
==
"2"
)
{
//
}
else
if
(
this
.
searchFormSearch
.
jdSyncType
==
"2"
)
{
this
.
searchFormSearch
.
receiptJdSync
=
this
.
searchFormSearch
.
jdSyncStatus
;
//
this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus;
}
else
if
(
this
.
searchFormSearch
.
jdSyncType
==
"3"
)
{
//
}
else
if
(
this
.
searchFormSearch
.
jdSyncType
==
"3"
)
{
this
.
searchFormSearch
.
h5JdSync
=
this
.
searchFormSearch
.
jdSyncStatus
;
//
this.searchFormSearch.h5JdSync = this.searchFormSearch.jdSyncStatus;
}
else
{
//
}
else
{
if
(
this
.
searchFormSearch
.
jdSyncStatus
==
0
||
this
.
searchFormSearch
.
jdSyncStatus
==
1
)
{
//
if (this.searchFormSearch.jdSyncStatus == 0 || this.searchFormSearch.jdSyncStatus == 1)
{
this
.
searchFormSearch
.
jdSync
=
this
.
searchFormSearch
.
jdSyncStatus
;
//
this.searchFormSearch.jdSync = this.searchFormSearch.jdSyncStatus;
this
.
searchFormSearch
.
receiptJdSync
=
this
.
searchFormSearch
.
jdSyncStatus
;
//
this.searchFormSearch.receiptJdSync = this.searchFormSearch.jdSyncStatus;
this
.
searchFormSearch
.
h5JdSync
=
this
.
searchFormSearch
.
jdSyncStatus
;
//
this.searchFormSearch.h5JdSync = this.searchFormSearch.jdSyncStatus;
}
else
{
//
}
else
{
delete
this
.
searchFormSearch
.
jdSync
;
//
delete this.searchFormSearch.jdSync;
delete
this
.
searchFormSearch
.
receiptJdSync
;
//
delete this.searchFormSearch.receiptJdSync;
delete
this
.
searchFormSearch
.
h5JdSync
;
//
delete this.searchFormSearch.h5JdSync;
}
//
}
}
//
}
delete
this
.
searchFormSearch
.
jdSyncType
;
//
delete this.searchFormSearch.jdSyncType;
delete
this
.
searchFormSearch
.
jdSyncStatus
;
//
delete this.searchFormSearch.jdSyncStatus;
resolve
();
resolve
();
}
);
}
);
}
,
}
,
...
@@ -645,7 +627,7 @@ export default {
...
@@ -645,7 +627,7 @@ export default {
transactionTime
:
""
,
transactionTime
:
""
,
receiptStatus
:
""
,
receiptStatus
:
""
,
receiptJdSync
:
""
,
receiptJdSync
:
""
,
jdSyncType
:
""
,
//
jdSyncType: "",
jdSyncStatus
:
""
,
jdSyncStatus
:
""
,
dataSource
:
""
,
dataSource
:
""
,
uses
:
""
,
uses
:
""
,
...
...
src/views/financeManage/components/RecordTransfer.vue
View file @
c7eb7a1
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<span
v-for=
"item in editData.expenseCategoryList"
<span
v-for=
"item in editData.expenseCategoryList"
:key=
"item.expenseCategoryId"
:key=
"item.expenseCategoryId"
class=
"expense-category-item"
>
class=
"expense-category-item"
>
{{
item
.
expenseCategoryName
}}
{{
getCategoryTxt
(
item
)
}}
</span>
</span>
</div>
</div>
</
template
>
</
template
>
...
@@ -71,6 +71,9 @@
...
@@ -71,6 +71,9 @@
<
script
>
<
script
>
import
{
getTransferRecord
}
from
"@api/accountManage"
;
import
{
getTransferRecord
}
from
"@api/accountManage"
;
import
{
deepClone
,
downLoadFile
,
Util
}
from
"@/common/util"
;
import
{
deepClone
,
downLoadFile
,
Util
}
from
"@/common/util"
;
import
{
EXPENSE_CATEGORY_OPTIONS
,
}
from
"../accountStateManage/marketTransfer"
;
export
default
{
export
default
{
name
:
"RecordTransfer"
,
name
:
"RecordTransfer"
,
...
@@ -204,7 +207,7 @@ export default {
...
@@ -204,7 +207,7 @@ export default {
addHtml
:
"expenseCategoryHtml"
,
addHtml
:
"expenseCategoryHtml"
,
},
},
...(
record
.
expenseCategoryList
||
[]).
map
(
item
=>
({
...(
record
.
expenseCategoryList
||
[]).
map
(
item
=>
({
label
:
`
${
item
.
expenseCategoryName
}
金额`
,
label
:
EXPENSE_CATEGORY_OPTIONS
.
find
(
i
=>
i
.
id
==
item
.
expenseCategoryId
).
label
+
"金额"
,
name
:
`expenseAmount_
${
item
.
expenseCategoryId
}
`
,
name
:
`expenseAmount_
${
item
.
expenseCategoryId
}
`
,
type
:
"showTxt"
,
type
:
"showTxt"
,
formatter
:
row
=>
row
[
`expenseAmount_
${
item
.
expenseCategoryId
}
`
]
??
""
,
formatter
:
row
=>
row
[
`expenseAmount_
${
item
.
expenseCategoryId
}
`
]
??
""
,
...
@@ -213,6 +216,7 @@ export default {
...
@@ -213,6 +216,7 @@ export default {
label
:
"收款账户"
,
label
:
"收款账户"
,
name
:
"rcvBankName"
,
name
:
"rcvBankName"
,
type
:
"showTxt"
,
type
:
"showTxt"
,
formatter
:
row
=>
row
.
rcvName
+
" / "
+
row
.
rcvAcc
,
},
},
];
];
formData
.
splice
(
amountIndex
,
0
,
...
expenseFields
);
formData
.
splice
(
amountIndex
,
0
,
...
expenseFields
);
...
@@ -251,6 +255,9 @@ export default {
...
@@ -251,6 +255,9 @@ export default {
this
.
logList
=
this
.
editData
.
logList
||
[];
this
.
logList
=
this
.
editData
.
logList
||
[];
});
});
},
},
getCategoryTxt
(
item
)
{
return
EXPENSE_CATEGORY_OPTIONS
.
find
(
i
=>
i
.
id
==
item
.
expenseCategoryId
)?.
label
||
item
.
expenseCategoryName
;
},
dealTabList
()
{
dealTabList
()
{
const
statusObj
=
{
const
statusObj
=
{
1
:
"审批中"
,
1
:
"审批中"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment