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 bc7bbb68
authored
Jun 16, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增线上对账单汇总和分账记录查询功能,优化预付款明细页面
1 parent
cdb4529d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
181 additions
and
18 deletions
src/api/prepaymentManage.js
src/views/financeManage/ysprepaymentManage/index.vue
src/views/financeManage/ysprepaymentManage/onlineDetail.constant.js
src/views/financeManage/ysprepaymentManage/onlineDetail.vue
src/api/prepaymentManage.js
View file @
bc7bbb6
...
@@ -112,9 +112,33 @@ export function onlinePaymentDetailPage(data) {
...
@@ -112,9 +112,33 @@ export function onlinePaymentDetailPage(data) {
}
}
/**
/**
* 分页查询银盛线上对账单汇总-分账记录
*/
export
function
onlineDivisionMonthTotalPage
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.onlineStatementAccount.divisionMonthTotalPage"
;
return
request
(
data
,
"post"
);
}
/**
* 分页查询银盛线上对账单汇总-收款记录
* 分页查询银盛线上对账单汇总-收款记录
*/
*/
export
function
onlinePaymentMonthTotalPage
(
data
)
{
export
function
onlinePaymentMonthTotalPage
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.onlineStatementAccount.paymentMonthTotalPage"
;
data
.
method
=
"dj.api.smartcarlife.onlineStatementAccount.paymentMonthTotalPage"
;
return
request
(
data
,
"post"
);
return
request
(
data
,
"post"
);
}
}
/**
* 查询银盛线上对账单收款统计信息
*/
export
function
paymentCountTotal
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.onlineStatementAccount.paymentCountTotal"
;
return
request
(
data
,
"post"
);
}
/**
* 查询银盛线上对账单分账统计记录
*/
export
function
divisionCountTotal
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.onlineStatementAccount.divisionCountTotal"
;
return
request
(
data
,
"post"
);
}
src/views/financeManage/ysprepaymentManage/index.vue
View file @
bc7bbb6
...
@@ -391,11 +391,11 @@ export default {
...
@@ -391,11 +391,11 @@ export default {
});
});
},
},
handleOnlineDetail
(
row
)
{
handleOnlineDetail
(
row
)
{
const
{
merchantId
,
merchantName
,
yqMerchantId
,
yqMerchantName
}
=
row
;
const
{
yqMerchantId
,
yqMerchantName
}
=
row
;
const
{
startTradeTime
:
startTime
,
endTradeTime
:
endTime
}
=
this
.
getParams
();
const
{
startTradeTime
:
startTime
,
endTradeTime
:
endTime
}
=
this
.
getParams
();
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"ysprepaymentDetail"
,
name
:
"ysprepaymentDetail"
,
params
:
{
merchantId
,
merchantName
,
yqMerchantId
,
yqMerchantName
,
startTime
,
endTime
},
params
:
{
yqMerchantId
,
yqMerchantName
,
startTime
,
endTime
},
});
});
},
},
handleExport
()
{
handleExport
()
{
...
...
src/views/financeManage/ysprepaymentManage/onlineDetail.constant.js
View file @
bc7bbb6
...
@@ -14,16 +14,24 @@ function getFirstValue(row, props) {
...
@@ -14,16 +14,24 @@ function getFirstValue(row, props) {
const
textFormatter
=
props
=>
row
=>
getFirstValue
(
row
,
props
)
||
"-"
;
const
textFormatter
=
props
=>
row
=>
getFirstValue
(
row
,
props
)
||
"-"
;
const
amountFormatter
=
props
=>
row
=>
formatThousand
(
getFirstValue
(
row
,
props
));
const
amountFormatter
=
props
=>
row
=>
formatThousand
(
getFirstValue
(
row
,
props
));
const
tradeDetailFormatter
=
prop
=>
row
=>
row
.
tradeDetail
?.[
prop
]
||
"-"
;
const
tradeDetailFormatter
=
prop
=>
row
=>
row
.
tradeDetail
?.[
prop
]
||
"-"
;
const
typeObj
=
{
1
:
"平台方"
,
2
:
"服务商"
,
3
:
"门店"
,
4
:
"平台方"
,
};
export
const
ONLINE_DETAIL_TAB
=
{
export
const
ONLINE_DETAIL_TAB
=
{
SUMMARY_COLLECTION
:
"summery-collection"
,
SUMMARY_COLLECTION
:
"summery-collection"
,
DETAIL_COLLECTION
:
"detail-collection"
,
DETAIL_COLLECTION
:
"detail-collection"
,
SUMMARY_ALLOCATION
:
"summery_allocation"
,
DETAIL_ALLOCATION
:
"detail-allocation"
,
DETAIL_ALLOCATION
:
"detail-allocation"
,
};
};
export
const
ONLINE_DETAIL_TABLE_COLUMNS
=
{
export
const
ONLINE_DETAIL_TABLE_COLUMNS
=
{
// 汇总-收款
// 汇总-收款
[
ONLINE_DETAIL_TAB
.
SUMMARY_COLLECTION
]:
[
[
ONLINE_DETAIL_TAB
.
SUMMARY_COLLECTION
]:
{
tableColumns
:
[
{
{
label
:
"收款月份"
,
label
:
"收款月份"
,
prop
:
"tradeMonth"
,
prop
:
"tradeMonth"
,
...
@@ -52,8 +60,11 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
...
@@ -52,8 +60,11 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
formatter
:
amountFormatter
([
"tradeAmount"
]),
formatter
:
amountFormatter
([
"tradeAmount"
]),
},
},
],
],
tableSummary
:
[],
},
// 明细-收款
// 明细-收款
[
ONLINE_DETAIL_TAB
.
DETAIL_COLLECTION
]:
[
[
ONLINE_DETAIL_TAB
.
DETAIL_COLLECTION
]:
{
tableColumns
:
[
{
{
label
:
"收款时间"
,
label
:
"收款时间"
,
prop
:
"tradeTime"
,
prop
:
"tradeTime"
,
...
@@ -62,14 +73,17 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
...
@@ -62,14 +73,17 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
},
},
{
{
label
:
"园区店名"
,
label
:
"园区店名"
,
minWidth
:
120
,
prop
:
"yqMerchantName"
,
prop
:
"yqMerchantName"
,
},
},
{
{
label
:
"门店名称"
,
label
:
"门店名称"
,
minWidth
:
120
,
prop
:
"merchantName"
,
prop
:
"merchantName"
,
},
},
{
{
label
:
"收入所属公司"
,
label
:
"收入所属公司"
,
minWidth
:
120
,
prop
:
"realityPlatformMerchantName"
,
prop
:
"realityPlatformMerchantName"
,
},
},
{
{
...
@@ -103,8 +117,100 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
...
@@ -103,8 +117,100 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
minWidth
:
120
,
minWidth
:
120
,
},
},
],
],
tableSummary
:
[],
},
// 汇总-分账
[
ONLINE_DETAIL_TAB
.
SUMMARY_ALLOCATION
]:
{
tableColumns
:
[
{
label
:
"到账月份"
,
prop
:
"estimatedArrivalMonth"
,
minWidth
:
120
,
formatter
:
tradeDetailFormatter
([
"estimatedArrivalMonth"
]),
},
{
label
:
"园区店名"
,
prop
:
"yqMerchantName"
,
minWidth
:
120
,
formatter
:
tradeDetailFormatter
([
"yqMerchantName"
]),
},
{
label
:
"门店名称"
,
prop
:
"merchantName"
,
minWidth
:
140
,
formatter
:
tradeDetailFormatter
([
"merchantName"
]),
},
{
label
:
"收入所属公司"
,
prop
:
"realityPlatformMerchantName"
,
minWidth
:
140
,
formatter
:
tradeDetailFormatter
([
"realityPlatformMerchantName"
]),
},
{
label
:
"分账对象"
,
prop
:
"realityMerchantName"
,
minWidth
:
140
,
},
{
label
:
"分账对象类型"
,
prop
:
"targetMerchantType"
,
minWidth
:
120
,
formatter
:
(
row
)
=>
{
return
typeObj
[
row
?.
targetMerchantType
]
||
"-"
;
},
},
{
label
:
"轻改"
,
prop
:
"lightChangeAmount"
,
minWidth
:
90
,
formatter
:
amountFormatter
([
"lightChangeAmount"
]),
},
{
label
:
"权益"
,
prop
:
"equityAmount"
,
minWidth
:
90
,
formatter
:
amountFormatter
([
"equityAmount"
]),
},
{
label
:
"延保"
,
prop
:
"extendedWarrantyAmount"
,
minWidth
:
90
,
formatter
:
amountFormatter
([
"extendedWarrantyAmount"
]),
},
{
label
:
"待补录订单"
,
minWidth
:
100
,
prop
:
""
,
},
{
label
:
"分账金额合计"
,
prop
:
"glDivisionMoney"
,
minWidth
:
110
,
formatter
:
amountFormatter
([
"glDivisionMoney"
]),
},
{
label
:
"分账手续费"
,
prop
:
"serviceCharge"
,
minWidth
:
100
,
formatter
:
amountFormatter
([
"serviceCharge"
]),
},
{
label
:
"分账类型"
,
prop
:
"divisionFlag"
,
minWidth
:
120
,
formatter
:
tradeDetailFormatter
(
"divisionFlag"
),
},
],
tableSummary
:
[
"lightChangeAmount"
,
"equityAmount"
,
"extendedWarrantyAmount"
,
""
,
],
},
// 明细-分账
// 明细-分账
[
ONLINE_DETAIL_TAB
.
DETAIL_ALLOCATION
]:
[
[
ONLINE_DETAIL_TAB
.
DETAIL_ALLOCATION
]:
{
tableColumns
:
[
{
{
label
:
"分账日期"
,
label
:
"分账日期"
,
prop
:
"divisionDate"
,
prop
:
"divisionDate"
,
...
@@ -163,12 +269,6 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
...
@@ -163,12 +269,6 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
prop
:
"targetMerchantType"
,
prop
:
"targetMerchantType"
,
minWidth
:
120
,
minWidth
:
120
,
formatter
:
(
row
)
=>
{
formatter
:
(
row
)
=>
{
const
typeObj
=
{
1
:
"平台方"
,
2
:
"服务商"
,
3
:
"门店"
,
4
:
"平台方"
,
};
return
typeObj
[
row
?.
targetMerchantType
]
||
"-"
;
return
typeObj
[
row
?.
targetMerchantType
]
||
"-"
;
},
},
},
},
...
@@ -209,4 +309,6 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
...
@@ -209,4 +309,6 @@ export const ONLINE_DETAIL_TABLE_COLUMNS = {
formatter
:
tradeDetailFormatter
(
"divisionFlag"
),
formatter
:
tradeDetailFormatter
(
"divisionFlag"
),
},
},
],
],
tableSummary
:
[],
},
};
};
src/views/financeManage/ysprepaymentManage/onlineDetail.vue
View file @
bc7bbb6
...
@@ -18,11 +18,13 @@
...
@@ -18,11 +18,13 @@
</div>
</div>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"usedCarFundWarningManageTable"
<d2-table
:key=
"tableKey"
:key=
"tableKey"
ref=
"usedCarFundWarningManageTable"
show-summary
:before-search-fn=
"beforeSearchFn"
:before-search-fn=
"beforeSearchFn"
:get-list-api=
"getListApi"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:search-form=
"searchFormSearch"
:summary-method=
"getSummaries"
:table-params=
"tableParams"
>
:table-params=
"tableParams"
>
</d2-table>
</d2-table>
</div>
</div>
...
@@ -35,17 +37,26 @@
...
@@ -35,17 +37,26 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
onlineDivisionDetailPage
,
onlinePaymentDetailPage
,
onlinePaymentMonthTotalPage
}
from
"@api/prepaymentManage"
;
import
{
divisionCountTotal
,
onlineDivisionDetailPage
,
onlineDivisionMonthTotalPage
,
onlinePaymentDetailPage
,
onlinePaymentMonthTotalPage
,
paymentCountTotal
}
from
"@api/prepaymentManage"
;
import
{
mapActions
,
mapState
}
from
"vuex"
;
import
{
mapActions
,
mapState
}
from
"vuex"
;
import
{
formatThousand
}
from
"@/common/format"
;
import
reportTrackPageMixin
from
"@/mixins/reportTrackPageMixin"
;
import
reportTrackPageMixin
from
"@/mixins/reportTrackPageMixin"
;
import
{
ONLINE_DETAIL_TAB
,
ONLINE_DETAIL_TABLE_COLUMNS
}
from
"./onlineDetail.constant"
;
import
{
ONLINE_DETAIL_TAB
,
ONLINE_DETAIL_TABLE_COLUMNS
}
from
"./onlineDetail.constant"
;
const
ONLINE_DETAIL_API_MAP
=
{
const
ONLINE_DETAIL_API_MAP
=
{
[
ONLINE_DETAIL_TAB
.
SUMMARY_COLLECTION
]:
onlinePaymentMonthTotalPage
,
[
ONLINE_DETAIL_TAB
.
SUMMARY_COLLECTION
]:
onlinePaymentMonthTotalPage
,
[
ONLINE_DETAIL_TAB
.
DETAIL_COLLECTION
]:
onlinePaymentDetailPage
,
[
ONLINE_DETAIL_TAB
.
DETAIL_COLLECTION
]:
onlinePaymentDetailPage
,
[
ONLINE_DETAIL_TAB
.
SUMMARY_ALLOCATION
]:
onlineDivisionMonthTotalPage
,
[
ONLINE_DETAIL_TAB
.
DETAIL_ALLOCATION
]:
onlineDivisionDetailPage
,
[
ONLINE_DETAIL_TAB
.
DETAIL_ALLOCATION
]:
onlineDivisionDetailPage
,
};
};
const
TOTAL_API_MAP
=
{
[
ONLINE_DETAIL_TAB
.
SUMMARY_COLLECTION
]:
divisionCountTotal
,
[
ONLINE_DETAIL_TAB
.
DETAIL_COLLECTION
]:
divisionCountTotal
,
[
ONLINE_DETAIL_TAB
.
SUMMARY_ALLOCATION
]:
paymentCountTotal
,
[
ONLINE_DETAIL_TAB
.
DETAIL_ALLOCATION
]:
paymentCountTotal
,
};
export
default
{
export
default
{
name
:
"UsedCarPaymentManage"
,
name
:
"UsedCarPaymentManage"
,
components
:
{
components
:
{
...
@@ -65,6 +76,10 @@ export default {
...
@@ -65,6 +76,10 @@ export default {
name
:
ONLINE_DETAIL_TAB
.
DETAIL_COLLECTION
,
name
:
ONLINE_DETAIL_TAB
.
DETAIL_COLLECTION
,
},
},
{
{
label
:
"汇总-分账"
,
name
:
ONLINE_DETAIL_TAB
.
SUMMARY_ALLOCATION
,
},
{
label
:
"明细-分账"
,
label
:
"明细-分账"
,
name
:
ONLINE_DETAIL_TAB
.
DETAIL_ALLOCATION
,
name
:
ONLINE_DETAIL_TAB
.
DETAIL_ALLOCATION
,
},
},
...
@@ -77,7 +92,7 @@ export default {
...
@@ -77,7 +92,7 @@ export default {
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
Number
.
parseInt
(
Math
.
random
()
*
1000
),
listName
:
"list"
,
listName
:
"list"
,
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
ONLINE_DETAIL_TABLE_COLUMNS
[
ONLINE_DETAIL_TAB
.
SUMMARY_COLLECTION
],
tableColumns
:
ONLINE_DETAIL_TABLE_COLUMNS
[
ONLINE_DETAIL_TAB
.
SUMMARY_COLLECTION
]
.
tableColumns
,
},
},
detailInfo
:
{},
detailInfo
:
{},
};
};
...
@@ -87,11 +102,10 @@ export default {
...
@@ -87,11 +102,10 @@ export default {
dowloadList
:
state
=>
state
.
d2admin
.
user
.
dowloadList
,
dowloadList
:
state
=>
state
.
d2admin
.
user
.
dowloadList
,
}),
}),
routerInfo
()
{
routerInfo
()
{
console
.
log
(
this
.
$route
.
params
);
return
this
.
$route
.
params
;
return
this
.
$route
.
params
;
},
},
},
},
moun
ted
()
{
crea
ted
()
{
this
.
searchFormSearch
=
{
this
.
searchFormSearch
=
{
...
this
.
routerInfo
,
...
this
.
routerInfo
,
};
};
...
@@ -121,7 +135,7 @@ export default {
...
@@ -121,7 +135,7 @@ export default {
this
.
getListApi
=
ONLINE_DETAIL_API_MAP
[
this
.
activeName
];
this
.
getListApi
=
ONLINE_DETAIL_API_MAP
[
this
.
activeName
];
this
.
tableParams
=
{
this
.
tableParams
=
{
...
this
.
tableParams
,
...
this
.
tableParams
,
tableColumns
:
ONLINE_DETAIL_TABLE_COLUMNS
[
this
.
activeName
],
tableColumns
:
ONLINE_DETAIL_TABLE_COLUMNS
[
this
.
activeName
]
.
tableColumns
,
};
};
this
.
tableKey
=
this
.
activeName
;
this
.
tableKey
=
this
.
activeName
;
},
},
...
@@ -147,6 +161,29 @@ export default {
...
@@ -147,6 +161,29 @@ export default {
];
];
this
.
actionSetDownloadList
({
list
,
type
:
"dowloadList"
});
this
.
actionSetDownloadList
({
list
,
type
:
"dowloadList"
});
},
},
getSummaries
(
param
)
{
const
{
columns
}
=
param
;
const
sums
=
[];
TOTAL_API_MAP
[
this
.
activeName
](
this
.
getParams
()).
then
((
res
)
=>
{
const
keyList
=
ONLINE_DETAIL_TABLE_COLUMNS
[
this
.
activeName
].
tableSummary
;
columns
.
forEach
((
column
,
index
)
=>
{
if
(
index
===
0
)
{
sums
[
index
]
=
"合计"
;
return
;
}
const
key
=
column
.
property
;
if
(
keyList
.
includes
(
key
))
{
const
value
=
res
[
key
];
sums
[
index
]
=
value
!=
null
||
value
!=
undefined
?
formatThousand
(
value
)
:
0
;
}
else
{
sums
[
index
]
=
""
;
}
});
return
sums
;
});
return
sums
;
},
},
},
};
};
</
script
>
</
script
>
...
...
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