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 55ef0a16
authored
Jul 22, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug fix
1 parent
aa346f55
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
196 additions
and
81 deletions
src/components/d2-table/index.vue
src/views/financeManage/exceptionOrderManage/components/abnormalFlowProcessDrawer.vue
src/views/financeManage/exceptionOrderManage/constants/abnormalFlow.js
src/views/financeManage/exceptionOrderManage/detail.vue
src/views/residentManage/journalRecord/constants.js
src/components/d2-table/index.vue
View file @
55ef0a1
...
@@ -66,12 +66,12 @@
...
@@ -66,12 +66,12 @@
"
"
:src=
"require('@/assets/icon-edit2.png')"
:src=
"require('@/assets/icon-edit2.png')"
@
click=
"handleHeaderBatch(item)"
/>
@
click=
"handleHeaderBatch(item)"
/>
<el-popover
v-if=
"item.isPopConfig"
<el-tooltip
v-if=
"item.isPopConfig"
effect=
"dark"
placement=
"top-start"
placement=
"top-start"
trigger=
"hover"
:content=
"item.isPopConfig.text"
width=
"200"
:open-delay=
"200"
:content=
"item.isPopConfig.text"
>
:popper-class=
"item.isPopConfig.popperClass || 'd2-table__header-tooltip'"
>
<template
#
reference
>
<img
style=
"
<img
style=
"
cursor: pointer;
cursor: pointer;
margin-left: 5px;
margin-left: 5px;
...
@@ -79,10 +79,8 @@
...
@@ -79,10 +79,8 @@
height: 13.33px;
height: 13.33px;
vertical-align: middle;
vertical-align: middle;
"
"
:src=
"require('@/assets/mark.png')"
/>
:src=
"require('@/assets/mark.png')"
/>
</
template
>
</el-tooltip>
</el-popover>
</
template
>
</
template
>
<
template
v-for=
"(sub, sIndex) in item.children"
>
<
template
v-for=
"(sub, sIndex) in item.children"
>
<el-table-column
:key=
"`sub-$
{index}-${sIndex}`"
<el-table-column
:key=
"`sub-$
{index}-${sIndex}`"
...
@@ -206,12 +204,12 @@
...
@@ -206,12 +204,12 @@
vertical-align: middle;"
vertical-align: middle;"
:src=
"require('@/assets/icon-edit2.png')"
:src=
"require('@/assets/icon-edit2.png')"
@
click=
"handleHeaderBatch(item)"
/>
@
click=
"handleHeaderBatch(item)"
/>
<el-popover
v-if=
"item.isPopConfig"
<el-tooltip
v-if=
"item.isPopConfig"
effect=
"dark"
placement=
"top-start"
placement=
"top-start"
trigger=
"hover"
:content=
"item.isPopConfig.text"
width=
"200"
:open-delay=
"200"
:content=
"item.isPopConfig.text"
>
:popper-class=
"item.isPopConfig.popperClass || 'd2-table__header-tooltip'"
>
<template
#
reference
>
<img
style=
"
<img
style=
"
cursor: pointer;
cursor: pointer;
margin-left: 5px;
margin-left: 5px;
...
@@ -219,10 +217,8 @@
...
@@ -219,10 +217,8 @@
height: 13.33px;
height: 13.33px;
vertical-align: middle;
vertical-align: middle;
"
"
:src=
"require('@/assets/mark.png')"
/>
:src=
"require('@/assets/mark.png')"
/>
</
template
>
</el-tooltip>
</el-popover>
</
template
>
</
template
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<slot
v-if=
"item.addHtml"
<slot
v-if=
"item.addHtml"
...
@@ -869,4 +865,10 @@ export default {
...
@@ -869,4 +865,10 @@ export default {
margin-bottom
:
8px
;
margin-bottom
:
8px
;
}
}
}
}
.d2-table__header-tooltip
{
max-width
:
320px
;
line-height
:
20px
;
white-space
:
normal
;
}
</
style
>
</
style
>
src/views/financeManage/exceptionOrderManage/components/abnormalFlowProcessDrawer.vue
View file @
55ef0a1
...
@@ -72,7 +72,8 @@
...
@@ -72,7 +72,8 @@
placeholder=
"请选择延期截止时间"
placeholder=
"请选择延期截止时间"
style=
"width: 100%"
style=
"width: 100%"
type=
"date"
type=
"date"
value-format=
"yyyy-MM-dd"
>
value-format=
"yyyy-MM-dd"
:picker-options=
"extensionDeadlinePickerOptions"
>
</el-date-picker>
</el-date-picker>
<div
class=
"form-tip"
>
<div
class=
"form-tip"
>
根据异常类型默认延期3天,可修改
根据异常类型默认延期3天,可修改
...
@@ -108,9 +109,9 @@ import {
...
@@ -108,9 +109,9 @@ import {
approvePcAbnormalFlowDeclaration
,
approvePcAbnormalFlowDeclaration
,
getPcAbnormalFlowDeclarationDetail
,
getPcAbnormalFlowDeclarationDetail
,
}
from
"@/api/finance"
;
}
from
"@/api/finance"
;
import
{
afterRangePickerOptions
}
from
"@/components/glsx-combi-form/common"
;
import
{
import
{
getAbnormalTypeLabel
,
getAbnormalTypeLabel
,
getApprovalStatusMeta
,
getDefaultExtensionDate
,
getDefaultExtensionDate
,
getDrawerMode
,
getDrawerMode
,
mapApproveFormToApi
,
mapApproveFormToApi
,
...
@@ -171,6 +172,7 @@ export default {
...
@@ -171,6 +172,7 @@ export default {
loading
:
false
,
loading
:
false
,
submitting
:
false
,
submitting
:
false
,
detailInfo
:
null
,
detailInfo
:
null
,
extensionDeadlinePickerOptions
:
afterRangePickerOptions
,
validateRemark
,
validateRemark
,
validateExtension
,
validateExtension
,
approveForm
:
{
approveForm
:
{
...
@@ -237,8 +239,8 @@ export default {
...
@@ -237,8 +239,8 @@ export default {
key
:
"firstRoundStatusLabel"
,
key
:
"firstRoundStatusLabel"
,
col
:
12
,
col
:
12
,
className
:
(
info
)
=>
{
className
:
(
info
)
=>
{
const
meta
=
getApprovalStatusMeta
(
info
.
firstRoundStatusLabel
)
;
const
meta
=
info
.
firstRoundStatusMeta
;
return
STATUS_COLOR_MAP
[
meta
.
spotClass
]
||
STATUS_COLOR_MAP
.
ashSpot
;
return
STATUS_COLOR_MAP
[
meta
?
.
spotClass
]
||
STATUS_COLOR_MAP
.
ashSpot
;
},
},
},
},
{
title
:
"审批人"
,
key
:
"firstRoundApprover"
,
col
:
12
},
{
title
:
"审批人"
,
key
:
"firstRoundApprover"
,
col
:
12
},
...
@@ -255,8 +257,8 @@ export default {
...
@@ -255,8 +257,8 @@ export default {
key
:
"secondRoundStatusLabel"
,
key
:
"secondRoundStatusLabel"
,
col
:
12
,
col
:
12
,
className
:
(
info
)
=>
{
className
:
(
info
)
=>
{
const
meta
=
getApprovalStatusMeta
(
info
.
secondRoundStatusLabel
)
;
const
meta
=
info
.
secondRoundStatusMeta
;
return
STATUS_COLOR_MAP
[
meta
.
spotClass
]
||
STATUS_COLOR_MAP
.
ashSpot
;
return
STATUS_COLOR_MAP
[
meta
?
.
spotClass
]
||
STATUS_COLOR_MAP
.
ashSpot
;
},
},
},
},
{
title
:
"审批人"
,
key
:
"secondRoundApprover"
,
col
:
12
},
{
title
:
"审批人"
,
key
:
"secondRoundApprover"
,
col
:
12
},
...
...
src/views/financeManage/exceptionOrderManage/constants/abnormalFlow.js
View file @
55ef0a1
/** 异常流水审批状态(Swagger AbnormalFlowApprovalStatus 1~5) */
/** 异常流水审批状态(Swagger AbnormalFlowApprovalStatus 1~5) */
import
{
Util
}
from
"@/common/util"
function
formatDate
(
val
)
{
return
val
?
Util
.
dateFormate
(
val
,
"YYYY-MM-DD HH:mm:ss"
)
:
"-"
}
export
const
APPROVAL_STATUS
=
{
export
const
APPROVAL_STATUS
=
{
WAIT_REGIONAL
:
1
,
WAIT_REGIONAL
:
1
,
REGIONAL_REJECTED
:
2
,
REGIONAL_REJECTED
:
2
,
...
@@ -34,12 +40,44 @@ export const APPROVAL_STATUS_LIST = [
...
@@ -34,12 +40,44 @@ export const APPROVAL_STATUS_LIST = [
},
},
{
{
value
:
APPROVAL_STATUS
.
APPROVED
,
value
:
APPROVAL_STATUS
.
APPROVED
,
label
:
"审批通过"
,
label
:
"
后台
审批通过"
,
tagType
:
"success"
,
tagType
:
"success"
,
spotClass
:
"greenSpot"
spotClass
:
"greenSpot"
}
}
]
]
/** 审批日志状态(同数值在不同 approvalSource 下含义不同) */
export
const
APPROVAL_LOG_STATUS_LIST
=
[
{
value
:
APPROVAL_STATUS
.
REGIONAL_REJECTED
,
approvalSource
:
0
,
label
:
"区域经理审批驳回"
,
tagType
:
"danger"
,
spotClass
:
"redSpot"
,
},
{
value
:
APPROVAL_STATUS
.
WAIT_BACKEND
,
approvalSource
:
0
,
label
:
"区域经理审批通过"
,
tagType
:
"success"
,
spotClass
:
"greenSpot"
,
},
{
value
:
APPROVAL_STATUS
.
BACKEND_REJECTED
,
approvalSource
:
1
,
label
:
"后台审批驳回"
,
tagType
:
"danger"
,
spotClass
:
"redSpot"
,
},
{
value
:
APPROVAL_STATUS
.
APPROVED
,
approvalSource
:
1
,
label
:
"后台审批通过"
,
tagType
:
"success"
,
spotClass
:
"greenSpot"
,
},
]
/** 异常类型(Swagger AbnormalFlowType) */
/** 异常类型(Swagger AbnormalFlowType) */
export
const
ABNORMAL_TYPE_LIST
=
[
export
const
ABNORMAL_TYPE_LIST
=
[
{
value
:
1
,
label
:
"已付款未录单"
},
{
value
:
1
,
label
:
"已付款未录单"
},
...
@@ -90,6 +128,38 @@ export function getApprovalStatusMeta(status) {
...
@@ -90,6 +128,38 @@ export function getApprovalStatusMeta(status) {
return
item
||
{
label
:
"-"
,
tagType
:
"info"
,
spotClass
:
"ashSpot"
}
return
item
||
{
label
:
"-"
,
tagType
:
"info"
,
spotClass
:
"ashSpot"
}
}
}
export
function
getApprovalLogStatusMeta
(
status
,
approvalSource
=
0
)
{
const
normalized
=
normalizeStatus
(
status
)
const
source
=
String
(
approvalSource
)
const
item
=
APPROVAL_LOG_STATUS_LIST
.
find
(
(
s
)
=>
s
.
value
===
normalized
&&
String
(
s
.
approvalSource
)
===
source
)
return
item
||
getApprovalStatusMeta
(
status
)
}
function
buildRoundStatusFields
(
statusLabel
,
statusMeta
)
{
return
{
statusLabel
,
statusMeta
,
}
}
function
buildRoundDisplayFromLog
(
log
,
approvalSource
)
{
if
(
!
log
)
{
return
null
}
const
meta
=
getApprovalLogStatusMeta
(
log
.
approvalStatus
,
log
.
approvalSource
??
approvalSource
)
return
{
...
buildRoundStatusFields
(
meta
.
label
,
meta
),
approver
:
log
.
operatorName
||
"-"
,
time
:
formatDate
(
log
.
createdDate
),
remark
:
log
.
remark
||
"-"
,
}
}
export
function
getAbnormalTypeLabel
(
type
)
{
export
function
getAbnormalTypeLabel
(
type
)
{
const
item
=
ABNORMAL_TYPE_LIST
.
find
(
const
item
=
ABNORMAL_TYPE_LIST
.
find
(
(
t
)
=>
t
.
value
===
Number
(
type
)
||
t
.
label
===
type
(
t
)
=>
t
.
value
===
Number
(
type
)
||
t
.
label
===
type
...
@@ -127,22 +197,26 @@ function getLatestLog(logs, approvalSource) {
...
@@ -127,22 +197,26 @@ function getLatestLog(logs, approvalSource) {
function
getFirstRoundDisplay
(
approvalStatus
,
regionalLog
)
{
function
getFirstRoundDisplay
(
approvalStatus
,
regionalLog
)
{
const
status
=
normalizeStatus
(
approvalStatus
)
const
status
=
normalizeStatus
(
approvalStatus
)
const
pendingMeta
=
getApprovalStatusMeta
(
APPROVAL_STATUS
.
WAIT_REGIONAL
)
const
rejectedMeta
=
getApprovalStatusMeta
(
APPROVAL_STATUS
.
REGIONAL_REJECTED
)
if
(
status
===
APPROVAL_STATUS
.
WAIT_REGIONAL
)
{
if
(
status
===
APPROVAL_STATUS
.
WAIT_REGIONAL
)
{
return
{
return
{
firstRoundStatusLabel
:
"待区域经理审批"
,
firstRoundStatusLabel
:
pendingMeta
.
label
,
firstRoundStatusMeta
:
pendingMeta
,
firstRoundApprover
:
"-"
,
firstRoundApprover
:
"-"
,
firstRoundTime
:
"-"
,
firstRoundTime
:
"-"
,
firstRoundRemark
:
"-"
firstRoundRemark
:
"-"
,
}
}
}
}
if
(
status
===
APPROVAL_STATUS
.
REGIONAL_REJECTED
)
{
if
(
status
===
APPROVAL_STATUS
.
REGIONAL_REJECTED
)
{
const
logDisplay
=
buildRoundDisplayFromLog
(
regionalLog
,
0
)
return
{
return
{
firstRoundStatusLabel
:
regionalLog
firstRoundStatusLabel
:
logDisplay
?.
statusLabel
||
rejectedMeta
.
label
,
?
getApprovalStatusMeta
(
regionalLog
.
approvalStatus
).
label
firstRoundStatusMeta
:
logDisplay
?.
statusMeta
||
rejectedMeta
,
:
"区域经理审批驳回"
,
firstRoundApprover
:
logDisplay
?.
approver
||
"-"
,
firstRoundApprover
:
regionalLog
?
regionalLog
.
operatorName
||
"-"
:
"-"
,
firstRoundTime
:
logDisplay
?.
time
||
"-"
,
firstRoundTime
:
regionalLog
?
regionalLog
.
createdDate
||
"-"
:
"-"
,
firstRoundRemark
:
logDisplay
?.
remark
||
"-"
,
firstRoundRemark
:
regionalLog
?
regionalLog
.
remark
||
"-"
:
"-"
}
}
}
}
if
(
if
(
...
@@ -150,63 +224,76 @@ function getFirstRoundDisplay(approvalStatus, regionalLog) {
...
@@ -150,63 +224,76 @@ function getFirstRoundDisplay(approvalStatus, regionalLog) {
||
status
===
APPROVAL_STATUS
.
BACKEND_REJECTED
||
status
===
APPROVAL_STATUS
.
BACKEND_REJECTED
||
status
===
APPROVAL_STATUS
.
APPROVED
||
status
===
APPROVAL_STATUS
.
APPROVED
)
{
)
{
if
(
regionalLog
)
{
const
logDisplay
=
buildRoundDisplayFromLog
(
regionalLog
,
0
)
if
(
logDisplay
)
{
return
{
return
{
firstRoundStatusLabel
:
getApprovalStatusMeta
(
regionalLog
.
approvalStatus
).
label
,
firstRoundStatusLabel
:
logDisplay
.
statusLabel
,
firstRoundApprover
:
regionalLog
.
operatorName
||
"-"
,
firstRoundStatusMeta
:
logDisplay
.
statusMeta
,
firstRoundTime
:
regionalLog
.
createdDate
||
"-"
,
firstRoundApprover
:
logDisplay
.
approver
,
firstRoundRemark
:
regionalLog
.
remark
||
"-"
firstRoundTime
:
logDisplay
.
time
,
firstRoundRemark
:
logDisplay
.
remark
,
}
}
}
}
return
{
return
{
firstRoundStatusLabel
:
"-"
,
firstRoundStatusLabel
:
"-"
,
firstRoundStatusMeta
:
{
label
:
"-"
,
tagType
:
"info"
,
spotClass
:
"ashSpot"
},
firstRoundApprover
:
"-"
,
firstRoundApprover
:
"-"
,
firstRoundTime
:
"-"
,
firstRoundTime
:
"-"
,
firstRoundRemark
:
"-"
firstRoundRemark
:
"-"
,
}
}
}
}
if
(
regionalLog
)
{
const
logDisplay
=
buildRoundDisplayFromLog
(
regionalLog
,
0
)
if
(
logDisplay
)
{
return
{
return
{
firstRoundStatusLabel
:
getApprovalStatusMeta
(
regionalLog
.
approvalStatus
).
label
,
firstRoundStatusLabel
:
logDisplay
.
statusLabel
,
firstRoundApprover
:
regionalLog
.
operatorName
||
"-"
,
firstRoundStatusMeta
:
logDisplay
.
statusMeta
,
firstRoundTime
:
regionalLog
.
createdDate
||
"-"
,
firstRoundApprover
:
logDisplay
.
approver
,
firstRoundRemark
:
regionalLog
.
remark
||
"-"
firstRoundTime
:
logDisplay
.
time
,
firstRoundRemark
:
logDisplay
.
remark
,
}
}
}
}
return
{
return
{
firstRoundStatusLabel
:
"待区域经理审批"
,
firstRoundStatusLabel
:
pendingMeta
.
label
,
firstRoundStatusMeta
:
pendingMeta
,
firstRoundApprover
:
"-"
,
firstRoundApprover
:
"-"
,
firstRoundTime
:
"-"
,
firstRoundTime
:
"-"
,
firstRoundRemark
:
"-"
firstRoundRemark
:
"-"
,
}
}
}
}
function
getSecondRoundDisplay
(
approvalStatus
,
hqLog
)
{
function
getSecondRoundDisplay
(
approvalStatus
,
hqLog
)
{
const
status
=
normalizeStatus
(
approvalStatus
)
const
status
=
normalizeStatus
(
approvalStatus
)
const
pendingMeta
=
getApprovalStatusMeta
(
APPROVAL_STATUS
.
WAIT_BACKEND
)
if
(
status
===
APPROVAL_STATUS
.
WAIT_BACKEND
)
{
if
(
status
===
APPROVAL_STATUS
.
WAIT_BACKEND
)
{
return
{
return
{
secondRoundStatusLabel
:
"待后台审批"
,
secondRoundStatusLabel
:
pendingMeta
.
label
,
secondRoundStatusMeta
:
pendingMeta
,
secondRoundApprover
:
"-"
,
secondRoundApprover
:
"-"
,
secondRoundTime
:
"-"
,
secondRoundTime
:
"-"
,
secondRoundRemark
:
"-"
,
secondRoundRemark
:
"-"
,
extensionDeadline
:
"-"
extensionDeadline
:
"-"
,
}
}
}
}
if
(
hqLog
)
{
const
logDisplay
=
buildRoundDisplayFromLog
(
hqLog
,
1
)
if
(
logDisplay
)
{
return
{
return
{
secondRoundStatusLabel
:
getApprovalStatusMeta
(
hqLog
.
approvalStatus
).
label
,
secondRoundStatusLabel
:
logDisplay
.
statusLabel
,
secondRoundApprover
:
hqLog
.
operatorName
||
"-"
,
secondRoundStatusMeta
:
logDisplay
.
statusMeta
,
secondRoundTime
:
hqLog
.
createdDate
||
"-"
,
secondRoundApprover
:
logDisplay
.
approver
,
secondRoundRemark
:
hqLog
.
remark
||
"-"
,
secondRoundTime
:
logDisplay
.
time
,
extensionDeadline
:
"-"
secondRoundRemark
:
logDisplay
.
remark
,
extensionDeadline
:
"-"
,
}
}
}
}
const
declarationMeta
=
getApprovalStatusMeta
(
status
)
return
{
return
{
secondRoundStatusLabel
:
getApprovalStatusMeta
(
status
).
label
,
secondRoundStatusLabel
:
declarationMeta
.
label
,
secondRoundStatusMeta
:
declarationMeta
,
secondRoundApprover
:
"-"
,
secondRoundApprover
:
"-"
,
secondRoundTime
:
"-"
,
secondRoundTime
:
"-"
,
secondRoundRemark
:
"-"
,
secondRoundRemark
:
"-"
,
extensionDeadline
:
"-"
extensionDeadline
:
"-"
,
}
}
}
}
...
@@ -216,7 +303,9 @@ function getSecondRoundDisplay(approvalStatus, hqLog) {
...
@@ -216,7 +303,9 @@ function getSecondRoundDisplay(approvalStatus, hqLog) {
export
function
mapPcDeclarationDetail
(
apiData
,
rowData
=
{})
{
export
function
mapPcDeclarationDetail
(
apiData
,
rowData
=
{})
{
const
{
tradeInfo
=
{},
declarationInfo
=
{},
approvalLogs
=
[]
}
=
apiData
||
{}
const
{
tradeInfo
=
{},
declarationInfo
=
{},
approvalLogs
=
[]
}
=
apiData
||
{}
const
approvalStatus
=
normalizeStatus
(
const
approvalStatus
=
normalizeStatus
(
rowData
.
declarationApprovalStatus
??
apiData
?.
declarationApprovalStatus
rowData
.
declarationApprovalStatus
??
apiData
?.
declarationApprovalStatus
??
declarationInfo
.
approvalStatus
)
)
const
regionalLog
=
getLatestLog
(
approvalLogs
,
0
)
const
regionalLog
=
getLatestLog
(
approvalLogs
,
0
)
const
hqLog
=
getLatestLog
(
approvalLogs
,
1
)
const
hqLog
=
getLatestLog
(
approvalLogs
,
1
)
...
@@ -229,7 +318,7 @@ export function mapPcDeclarationDetail(apiData, rowData = {}) {
...
@@ -229,7 +318,7 @@ export function mapPcDeclarationDetail(apiData, rowData = {}) {
notRefundedTotalPrice
:
notRefundedTotalPrice
:
tradeInfo
.
notRefundedTotalPrice
??
rowData
.
notRefundedTotalPrice
,
tradeInfo
.
notRefundedTotalPrice
??
rowData
.
notRefundedTotalPrice
,
posTrmNo
:
tradeInfo
.
posTrmNo
||
rowData
.
posTrmNo
||
"-"
,
posTrmNo
:
tradeInfo
.
posTrmNo
||
rowData
.
posTrmNo
||
"-"
,
payDate
:
tradeInfo
.
payDate
||
rowData
.
payDate
||
"-"
,
payDate
:
formatDate
(
tradeInfo
.
payDate
||
rowData
.
payDate
)
,
yqMerchantName
:
yqMerchantName
:
tradeInfo
.
yqMerchantName
||
rowData
.
yqMerchantName
||
rowData
.
merchantName
||
"-"
,
tradeInfo
.
yqMerchantName
||
rowData
.
yqMerchantName
||
rowData
.
merchantName
||
"-"
,
payChannel
:
tradeInfo
.
payChannel
||
rowData
.
payChannel
||
"-"
,
payChannel
:
tradeInfo
.
payChannel
||
rowData
.
payChannel
||
"-"
,
...
@@ -251,7 +340,7 @@ export function mapPcDeclarationDetail(apiData, rowData = {}) {
...
@@ -251,7 +340,7 @@ export function mapPcDeclarationDetail(apiData, rowData = {}) {
||
rowData
.
refundStatus
||
rowData
.
refundStatus
||
"-"
,
||
"-"
,
reporterName
:
declarationInfo
.
createdBy
||
"-"
,
reporterName
:
declarationInfo
.
createdBy
||
"-"
,
reportTime
:
declarationInfo
.
createdDate
||
"-"
,
reportTime
:
formatDate
(
declarationInfo
.
createdDate
)
,
abnormalType
:
declarationInfo
.
abnormalType
,
abnormalType
:
declarationInfo
.
abnormalType
,
abnormalTypeLabel
:
getAbnormalTypeLabel
(
declarationInfo
.
abnormalType
),
abnormalTypeLabel
:
getAbnormalTypeLabel
(
declarationInfo
.
abnormalType
),
reportRemark
:
declarationInfo
.
remark
||
"-"
,
reportRemark
:
declarationInfo
.
remark
||
"-"
,
...
...
src/views/financeManage/exceptionOrderManage/detail.vue
View file @
55ef0a1
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
</div>
</div>
<div
class=
"date-range"
>
<div
class=
"date-range"
>
统计周期:
统计周期:
{{
routerInfo
.
startTime
&&
routerInfo
.
startTime
.
split
(
" "
)[
0
]
}}
至
{{
formatDateTime
(
routerInfo
.
startTime
,
"YYYY-MM-DD"
)
}}
至
{{
routerInfo
.
endTime
&&
routerInfo
.
endTime
.
split
(
" "
)[
0
]
}}
{{
formatDateTime
(
routerInfo
.
endTime
,
"YYYY-MM-DD"
)
}}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -457,7 +457,12 @@ export default {
...
@@ -457,7 +457,12 @@ export default {
prop
:
"notRefundedTotalPrice"
,
prop
:
"notRefundedTotalPrice"
,
formatter
:
(
row
)
=>
"¥"
+
row
.
notRefundedTotalPrice
formatter
:
(
row
)
=>
"¥"
+
row
.
notRefundedTotalPrice
},
},
{
label
:
"支付时间"
,
prop
:
"payDate"
,
width
:
"160px"
},
{
label
:
"支付时间"
,
prop
:
"payDate"
,
width
:
"160px"
,
formatter
:
(
row
)
=>
this
.
formatDateTime
(
row
.
payDate
)
},
{
label
:
"支付渠道"
,
prop
:
"payChannel"
},
{
label
:
"支付渠道"
,
prop
:
"payChannel"
},
{
label
:
"收款来源"
,
prop
:
"payType"
,
addHtml
:
"payType"
},
{
label
:
"收款来源"
,
prop
:
"payType"
,
addHtml
:
"payType"
},
{
label
:
"所属流量方"
,
prop
:
"merchantName"
,
width
:
"180px"
},
{
label
:
"所属流量方"
,
prop
:
"merchantName"
,
width
:
"180px"
},
...
@@ -491,9 +496,19 @@ export default {
...
@@ -491,9 +496,19 @@ export default {
prop
:
"totalAmount"
,
prop
:
"totalAmount"
,
formatter
:
(
row
)
=>
"¥"
+
row
.
totalAmount
formatter
:
(
row
)
=>
"¥"
+
row
.
totalAmount
},
},
{
label
:
"订单时间"
,
prop
:
"orderDate"
,
width
:
"160px"
},
{
label
:
"订单时间"
,
prop
:
"orderDate"
,
width
:
"160px"
,
formatter
:
(
row
)
=>
this
.
formatDateTime
(
row
.
orderDate
)
},
{
label
:
"交易参考号"
,
prop
:
"tradeNo"
,
width
:
"150px"
},
{
label
:
"交易参考号"
,
prop
:
"tradeNo"
,
width
:
"150px"
},
{
label
:
"支付时间"
,
prop
:
"payDate"
,
width
:
"160px"
},
{
label
:
"支付时间"
,
prop
:
"payDate"
,
width
:
"160px"
,
formatter
:
(
row
)
=>
this
.
formatDateTime
(
row
.
payDate
)
},
{
label
:
"支付方式"
,
prop
:
"payType"
,
addHtml
:
"payType"
},
{
label
:
"支付方式"
,
prop
:
"payType"
,
addHtml
:
"payType"
},
{
label
:
"所属流量方"
,
prop
:
"merchantName"
,
width
:
"180px"
},
{
label
:
"所属流量方"
,
prop
:
"merchantName"
,
width
:
"180px"
},
{
label
:
"所属园区店"
,
prop
:
"yqMerchantName"
,
width
:
"180px"
},
{
label
:
"所属园区店"
,
prop
:
"yqMerchantName"
,
width
:
"180px"
},
...
@@ -525,9 +540,19 @@ export default {
...
@@ -525,9 +540,19 @@ export default {
prop
:
"totalAmount"
,
prop
:
"totalAmount"
,
formatter
:
(
row
)
=>
"¥"
+
row
.
totalAmount
formatter
:
(
row
)
=>
"¥"
+
row
.
totalAmount
},
},
{
label
:
"订单时间"
,
prop
:
"orderDate"
,
width
:
"160px"
},
{
label
:
"订单时间"
,
prop
:
"orderDate"
,
width
:
"160px"
,
formatter
:
(
row
)
=>
this
.
formatDateTime
(
row
.
orderDate
)
},
{
label
:
"交易参考号"
,
prop
:
"outTradeNo"
,
width
:
"150px"
},
{
label
:
"交易参考号"
,
prop
:
"outTradeNo"
,
width
:
"150px"
},
{
label
:
"支付时间"
,
prop
:
"payDate"
,
width
:
"160px"
},
{
label
:
"支付时间"
,
prop
:
"payDate"
,
width
:
"160px"
,
formatter
:
(
row
)
=>
this
.
formatDateTime
(
row
.
payDate
)
},
{
label
:
"支付方式"
,
prop
:
"payType"
,
addHtml
:
"payType"
},
{
label
:
"支付方式"
,
prop
:
"payType"
,
addHtml
:
"payType"
},
{
label
:
"所属流量方"
,
prop
:
"merchantName"
,
width
:
"180px"
},
{
label
:
"所属流量方"
,
prop
:
"merchantName"
,
width
:
"180px"
},
{
label
:
"所属园区店"
,
prop
:
"yqMerchantName"
,
width
:
"180px"
},
{
label
:
"所属园区店"
,
prop
:
"yqMerchantName"
,
width
:
"180px"
},
...
@@ -592,6 +617,9 @@ export default {
...
@@ -592,6 +617,9 @@ export default {
this
.
debouncedConfirmSubmit
=
debounce
(
this
.
handleConfirmSubmit
,
300
)
this
.
debouncedConfirmSubmit
=
debounce
(
this
.
handleConfirmSubmit
,
300
)
},
},
methods
:
{
methods
:
{
formatDateTime
(
val
,
format
=
"YYYY-MM-DD HH:mm:ss"
)
{
return
val
?
Util
.
dateFormate
(
val
,
format
)
:
"-"
},
async
fetchStatData
()
{
async
fetchStatData
()
{
try
{
try
{
const
{
merchantName
,
...
otherRouterInfo
}
=
this
.
routerInfo
const
{
merchantName
,
...
otherRouterInfo
}
=
this
.
routerInfo
...
@@ -793,19 +821,11 @@ export default {
...
@@ -793,19 +821,11 @@ export default {
orderCode
:
row
.
orderCode
orderCode
:
row
.
orderCode
})
})
let
transDate
=
""
let
transTime
=
""
if
(
res
.
transTime
)
{
const
parts
=
res
.
transTime
.
split
(
" "
)
if
(
parts
.
length
>
0
)
transDate
=
parts
[
0
]
if
(
parts
.
length
>
1
)
transTime
=
parts
[
1
]
}
this
.
viewData
=
{
this
.
viewData
=
{
accName
:
res
.
accName
,
accName
:
res
.
accName
,
bankAcc
:
res
.
bankAcc
,
bankAcc
:
res
.
bankAcc
,
transDate
:
t
ransDate
,
transDate
:
t
his
.
formatDateTime
(
res
.
transTime
,
"YYYY-MM-DD"
)
,
transTime
:
t
ransTime
,
transTime
:
t
his
.
formatDateTime
(
res
.
transTime
,
"HH:mm:ss"
)
,
totalAmount
:
res
.
totalAmount
,
totalAmount
:
res
.
totalAmount
,
oppAccName
:
res
.
oppAccName
,
oppAccName
:
res
.
oppAccName
,
oppAccNo
:
res
.
oppAccNo
,
oppAccNo
:
res
.
oppAccNo
,
...
...
src/views/residentManage/journalRecord/constants.js
View file @
55ef0a1
...
@@ -10,8 +10,7 @@ export const JOURNAL_TABS = [
...
@@ -10,8 +10,7 @@ export const JOURNAL_TABS = [
{
key
:
"negotiation"
,
label
:
"洽谈明细"
,
journalType
:
3
},
{
key
:
"negotiation"
,
label
:
"洽谈明细"
,
journalType
:
3
},
];
];
export
const
BIZ_TYPE_TOOLTIP
=
export
const
BIZ_TYPE_TOOLTIP
=
"轻改:1.1精品升级、1.2次新车升配、1.3售后众筹;权益:2.1.1售前会员权益升级、2.1.2售后会员权益升级、2.3.1售前延保、2.3.2售后延保"
;
"场景所属业务大类,目前「轻改」包含「1.1精品升级、1.2次新车升配、1.3售后众筹」,「权益」包含「2.1.1售前会员权益升级、2.1.2售后会员权益升级、2.3.1售前延保、2.3.2售后延保」"
;
export
const
BIZ_TYPE_STYLE
=
{
export
const
BIZ_TYPE_STYLE
=
{
1
:
{
label
:
"轻改"
,
bg
:
"#E8F3FF"
,
color
:
"#1677FF"
},
1
:
{
label
:
"轻改"
,
bg
:
"#E8F3FF"
,
color
:
"#1677FF"
},
...
@@ -33,12 +32,12 @@ export const LIST_API_MAP = {
...
@@ -33,12 +32,12 @@ export const LIST_API_MAP = {
};
};
export
function
getTemplateTypeByTabKey
(
tabKey
)
{
export
function
getTemplateTypeByTabKey
(
tabKey
)
{
const
tab
=
JOURNAL_TABS
.
find
(
(
item
)
=>
item
.
key
===
tabKey
);
const
tab
=
JOURNAL_TABS
.
find
(
item
=>
item
.
key
===
tabKey
);
return
tab
?.
journalType
??
1
;
return
tab
?.
journalType
??
1
;
}
}
export
function
getTabKeyByTemplateType
(
templateType
)
{
export
function
getTabKeyByTemplateType
(
templateType
)
{
const
tab
=
JOURNAL_TABS
.
find
(
(
item
)
=>
item
.
journalType
===
templateType
);
const
tab
=
JOURNAL_TABS
.
find
(
item
=>
item
.
journalType
===
templateType
);
return
tab
?.
key
??
"staffDaily"
;
return
tab
?.
key
??
"staffDaily"
;
}
}
...
@@ -50,7 +49,10 @@ const bizTypeColumn = {
...
@@ -50,7 +49,10 @@ const bizTypeColumn = {
minWidth
:
"100px"
,
minWidth
:
"100px"
,
width
:
"100px"
,
width
:
"100px"
,
addHtml
:
"bizType"
,
addHtml
:
"bizType"
,
isPopConfig
:
{
text
:
BIZ_TYPE_TOOLTIP
},
isPopConfig
:
{
width
:
320
,
text
:
BIZ_TYPE_TOOLTIP
,
},
};
};
function
createDateTimeColumn
(
label
,
prop
)
{
function
createDateTimeColumn
(
label
,
prop
)
{
...
@@ -58,7 +60,7 @@ function createDateTimeColumn(label, prop) {
...
@@ -58,7 +60,7 @@ function createDateTimeColumn(label, prop) {
label
,
label
,
prop
,
prop
,
minWidth
:
"170px"
,
minWidth
:
"170px"
,
formatter
:
(
row
)
=>
formatJournalDateTime
(
row
[
prop
]),
formatter
:
row
=>
formatJournalDateTime
(
row
[
prop
]),
};
};
}
}
...
@@ -95,7 +97,7 @@ export const TABLE_COLUMNS_MAP = {
...
@@ -95,7 +97,7 @@ export const TABLE_COLUMNS_MAP = {
label
:
"今日驻店人数"
,
label
:
"今日驻店人数"
,
prop
:
"staffCount"
,
prop
:
"staffCount"
,
width
:
"120px"
,
width
:
"120px"
,
formatter
:
(
row
)
=>
(
row
.
staffCount
!=
null
?
`
${
row
.
staffCount
}
人`
:
"—"
),
formatter
:
row
=>
(
row
.
staffCount
!=
null
?
`
${
row
.
staffCount
}
人`
:
"—"
),
},
},
createDateTimeColumn
(
"最近保存时间"
,
"lastSaveTime"
),
createDateTimeColumn
(
"最近保存时间"
,
"lastSaveTime"
),
createDateTimeColumn
(
"提交时间"
,
"submitTime"
),
createDateTimeColumn
(
"提交时间"
,
"submitTime"
),
...
...
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