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 716f9bf3
authored
Feb 04, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能代码提交
1 parent
dd86db44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
49 deletions
src/common/constants.js
src/views/systemConfig/ruleReview/index.vue
src/common/constants.js
View file @
716f9bf
...
...
@@ -770,7 +770,7 @@ export const warningStatus = [
// 规则审核-类型
export
const
ruleReview_type
=
[
{
confId
:
1
,
confValue
:
"清分"
},
{
confId
:
2
,
confValue
:
"对账"
}
{
confId
:
3
,
confValue
:
"对账"
}
]
// 规则审核-状态
...
...
src/views/systemConfig/ruleReview/index.vue
View file @
716f9bf
...
...
@@ -42,6 +42,18 @@
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9062401']"
/>
</span>
<!-- 驳回 -->
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.auditStatus == 1"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9062402']"
/>
</span>
<!-- 撤销 -->
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.auditStatus == 2"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9062403']"
/>
</span>
</div>
</d2-table>
</div>
...
...
@@ -54,24 +66,22 @@ import { Util, deepClone } from '@/common/util'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
sceneCodeList
,
ruleReview_status
,
ruleReview_type
,
withdrawalManageStatusList
}
from
'@/common/constants.js'
import
{
withdrawOrderRecordPage
,
rewithdraw
}
from
'@api/withdrawalManage'
// import addDialog from './components/addDialog
'
import
{
ruleAuditPage
,
ruleAuditReject
,
ruleAuditCancel
}
from
'@api/ruleReview
'
export
default
{
name
:
'TransferAccountsList'
,
components
:
{
// addDialog
},
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
labelWidth
:
'100px'
,
searchForm
:
{
withdrawTradeNo
:
''
,
merchantName
:
''
,
merchantIdFuzzy
:
''
,
// merchantIds: [],
status
:
''
,
statuses
:
[],
withdrawalDate
:
''
sceneType
:
''
,
ruleType
:
''
,
auditStatus
:
''
},
searchFormSearch
:
{},
showFormData
:
[{
...
...
@@ -88,7 +98,7 @@ export default {
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'
场景名
'
,
label
:
'
业务场景
'
,
name
:
'sceneType'
,
type
:
'select'
,
isClear
:
true
,
...
...
@@ -98,7 +108,7 @@ export default {
optionsName
:
'sceneTypeList'
},
{
label
:
'类型'
,
name
:
'
t
ype'
,
name
:
'
ruleT
ype'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
...
...
@@ -106,7 +116,7 @@ export default {
optionsName
:
'typeList'
},
{
label
:
'状态'
,
name
:
'
s
tatus'
,
name
:
'
auditS
tatus'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
...
...
@@ -129,58 +139,62 @@ export default {
width
:
'160px'
},
{
label
:
'业务场景'
,
prop
:
'scene'
,
prop
:
'scene
Type
'
,
width
:
'100px'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
sceneTypeList
.
find
(
item
=>
item
.
confId
===
cellValue
.
scene
)?.
confValue
return
this
.
baseData
.
sceneTypeList
.
find
(
item
=>
item
.
confId
===
cellValue
.
scene
Type
)?.
confValue
}
},
{
label
:
'类型'
,
prop
:
'
t
ype'
,
prop
:
'
ruleT
ype'
,
width
:
'100px'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
typeList
.
find
(
item
=>
item
.
confId
===
cellValue
.
t
ype
)?.
confValue
return
this
.
baseData
.
typeList
.
find
(
item
=>
item
.
confId
===
cellValue
.
ruleT
ype
)?.
confValue
}
},
{
label
:
'生效开始时间'
,
prop
:
'
withdrawTim
e'
,
prop
:
'
effectStartDat
e'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
withdrawTime
?
Util
.
dateFormate
(
cellValue
.
withdrawTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
if
(
cellValue
.
effectDateType
==
2
)
{
return
'立即生效'
}
else
{
return
cellValue
.
effectStartDate
?
Util
.
dateFormate
(
cellValue
.
effectStartDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
}
},
{
label
:
'状态'
,
prop
:
'
s
tatus'
,
prop
:
'
auditS
tatus'
,
width
:
'100px'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
statusList
.
find
(
item
=>
item
.
confId
===
cellValue
.
s
tatus
)?.
confValue
return
this
.
baseData
.
statusList
.
find
(
item
=>
item
.
confId
===
cellValue
.
auditS
tatus
)?.
confValue
}
},
{
label
:
'创建人'
,
prop
:
'creat
edBy
'
prop
:
'creat
orName
'
},
{
label
:
'创建时间'
,
prop
:
'
withdrawTim
e'
,
prop
:
'
createdDat
e'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
withdrawTime
?
Util
.
dateFormate
(
cellValue
.
withdrawTim
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
return
cellValue
.
createdDate
?
Util
.
dateFormate
(
cellValue
.
createdDat
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
},
{
label
:
'审核人'
,
prop
:
'
created
By'
prop
:
'
audit
By'
},
{
label
:
'审核时间'
,
prop
:
'
withdrawTim
e'
,
prop
:
'
auditDat
e'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
withdrawTime
?
Util
.
dateFormate
(
cellValue
.
withdrawTim
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
return
cellValue
.
auditDate
?
Util
.
dateFormate
(
cellValue
.
auditDat
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
}
]
...
...
@@ -191,9 +205,6 @@ export default {
typeList
:
deepClone
(
ruleReview_type
),
},
infos
:
[],
recordInfo
:
null
,
addVisible
:
false
}
},
computed
:
{
...
...
@@ -219,19 +230,6 @@ export default {
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
if
(
this
.
searchFormSearch
.
withdrawalDate
)
{
this
.
searchFormSearch
.
withdrawStartTimeStr
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
withdrawalDate
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
this
.
searchFormSearch
.
withdrawEndTimeStr
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
withdrawalDate
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
delete
this
.
searchFormSearch
.
withdrawalDate
}
// if (this.searchFormSearch.merchantId) {
// this.searchFormSearch.merchantIds[0] = this.searchFormSearch.merchantId
// delete this.searchFormSearch.merchantId
// }
if
(
this
.
searchFormSearch
.
status
)
{
this
.
searchFormSearch
.
statuses
[
0
]
=
this
.
searchFormSearch
.
status
delete
this
.
searchFormSearch
.
status
}
resolve
()
})
},
...
...
@@ -239,7 +237,6 @@ export default {
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
console
.
log
(
'this.baseData[item.optionsName]'
,
item
.
optionsName
)
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
...
...
@@ -256,13 +253,11 @@ export default {
},
handleReset
()
{
this
.
searchForm
=
{
withdrawTradeNo
:
''
,
merchantName
:
''
,
merchantIdFuzzy
:
''
,
// merchantIds: [],
status
:
''
,
statuses
:
[],
withdrawalDate
:
''
sceneType
:
''
,
ruleType
:
''
,
auditStatus
:
''
}
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
},
...
...
@@ -288,7 +283,7 @@ export default {
type
:
'warning'
,
closeOnClickModal
:
false
}).
then
(()
=>
{
r
ewithdraw
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
r
uleAuditReject
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$refs
.
recordTable
.
refreshTable
()
})
...
...
@@ -305,7 +300,7 @@ export default {
type
:
'warning'
,
closeOnClickModal
:
false
}).
then
(()
=>
{
r
ewithdraw
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
r
uleAuditCancel
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$refs
.
recordTable
.
refreshTable
()
})
...
...
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