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 4f7ac27a
authored
Jul 22, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:v4.9.0 需求开发
1 parent
38219f37
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
33 deletions
src/api/publicAccount.js
src/api/request.js
src/router/routes.js
src/views/systemConfig/merchant/financialRulesDetail.vue
src/views/systemConfig/merchant/merchantManage.vue
src/views/systemConfig/merchant/viewDetail.vue
src/api/publicAccount.js
View file @
4f7ac27
...
...
@@ -67,3 +67,9 @@ export function getAreaInfoByOpenAccBankTypeApi(data) {
data
.
method
=
`
${
djPath
}
yseMerchantOffline.getAreaInfoByOpenAccBankType`
return
request
(
data
,
'post'
)
}
// 分账规则历史记录
export
function
getHistoryRecord
(
data
)
{
data
.
method
=
`
${
djPath
}
smartcarlife.divisionRuleEffectRecord.getHistoryRecord`
return
request
(
data
,
'post'
)
}
src/api/request.js
View file @
4f7ac27
...
...
@@ -45,8 +45,8 @@ const request = (
reqData
=
reqData
=
Object
.
assign
(
reqData
,
options
,
{})
// console.log(method === RequestMethods.POST)
// console.log(url)
console
.
log
(
options
)
console
.
log
(
reqData
)
//
console.log(options)
//
console.log(reqData)
return
axios
({
url
,
method
,
...
...
src/router/routes.js
View file @
4f7ac27
...
...
@@ -715,12 +715,12 @@ export const resources = {
}
]
},
//
{
//
authId: '9060304',
//
parentId: '90603',
// label: '分账
',
// handle: 'handleAccount
'
//
},
{
authId
:
'9060304'
,
parentId
:
'90603'
,
label
:
'历史记录
'
,
handle
:
'handleRecord
'
},
{
authId
:
'9060305'
,
parentId
:
'90603'
,
...
...
src/views/systemConfig/merchant/financialRulesDetail.vue
0 → 100644
View file @
4f7ac27
This diff is collapsed.
Click to expand it.
src/views/systemConfig/merchant/merchantManage.vue
View file @
4f7ac27
...
...
@@ -111,11 +111,15 @@
:disabled=
"true"
>
配置管理
</el-tab-pane>
</el-tabs>
</d2-dialog>
<!--
<division-rule
:divisionRuleVisible=
"divisionRuleVisible"
:merchantInfo=
"merchantInfo"
@
handleRuleClose=
"handleRuleClose"
></division-rule>
-->
<baseDialog
:isShow
.
sync=
"financialRulesDetailVisible"
:config=
"dialogConfig.setting"
:dialogConfig=
"dialogConfig.config"
@
closeDialog=
"handleDetailClose"
>
<financialRulesDetail
v-if=
"financialRulesDetailVisible"
:merchantId=
"merchantInfo.merchantId"
:accountDetailVisible=
"financialRulesDetailVisible"
>
</financialRulesDetail>
</baseDialog>
</d2-container>
</
template
>
...
...
@@ -123,7 +127,8 @@
import
{
Util
}
from
'@/common/util'
import
_
from
'lodash'
import
viewDetail
from
'./viewDetail'
// import divisionRule from './divisionRule'
import
financialRulesDetail
from
'./financialRulesDetail'
import
baseDialog
from
'@/components/baseDialog/baseDialog'
import
{
getList
,
deleteMerchant
,
serviceGetMerchantList
,
addServiceMerchant
,
getPartnerByYq
}
from
'@api/merchant'
import
{
mapActions
}
from
'vuex'
import
{
getParkStore
}
from
'@api/editCustomer'
...
...
@@ -131,9 +136,31 @@ import { BaseData, userTypeList, ghUserTypeList, merchantClassifyList } from '@/
import
relateStoreMerDialog
from
'./components/relateStoreMerDialog'
export
default
{
name
:
'merchantManage'
,
components
:
{
viewDetail
,
relateStoreMerDialog
,
financialRulesDetail
,
baseDialog
// divisionRule
},
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
financialRulesDetailVisible
:
false
,
dialogConfig
:
{
setting
:
{
showClose
:
true
,
appendToBody
:
false
,
// width: '900px',
btnList
:
[
]
},
config
:
{
title
:
'查看详情'
,
width
:
'900px'
}
},
searchForm
:
{
merchantType
:
''
,
channelType
:
''
,
...
...
@@ -185,7 +212,9 @@ export default {
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
{
width
:
'200px'
},
tableColumns
:
[{
label
:
'导流方编号'
,
prop
:
'merchantId'
,
...
...
@@ -268,7 +297,8 @@ export default {
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
}]
}
]
},
// 关联门店
storeSearchForm
:
{
...
...
@@ -287,9 +317,7 @@ export default {
storeApi
:
serviceGetMerchantList
,
sourcePage
:
'serviceStore'
,
storeSelected
:
[],
// 分账
// divisionRuleVisible: false,
// merchantInfo: {},
// 查看详情
detailActiveName
:
'first'
,
viewDetailVisible
:
false
,
...
...
@@ -309,12 +337,6 @@ export default {
}
},
components
:
{
viewDetail
,
relateStoreMerDialog
// divisionRule
},
mounted
()
{
this
.
userInfo
.
beSuper
&&
getParkStore
({}).
then
(
res
=>
{
res
.
forEach
(
item
=>
{
...
...
@@ -334,6 +356,9 @@ export default {
this
.
baseData
.
channelTypeList
=
await
this
.
get
(
BaseData
.
channelType
)
this
.
getOptionsList
()
},
handleDetailClose
()
{
this
.
financialRulesDetailVisible
=
false
},
keyDowmGetList
()
{
this
.
$refs
.
merchantTable
.
refreshTable
()
},
...
...
@@ -440,14 +465,14 @@ export default {
this
.
viewDetailData
=
_
.
cloneDeep
(
row
)
this
.
handleViewClose
()
},
//
分账
// handleAccount
(row) {
//
this.merchantInfo = row
//
this.handleRuleClose()
//
},
//
handleRuleClose() {
// this.divisionRuleVisible = !this.divisionRule
Visible
//
},
//
历史记录
handleRecord
(
row
)
{
this
.
merchantInfo
=
row
this
.
handleRuleClose
()
},
handleRuleClose
()
{
this
.
financialRulesDetailVisible
=
!
this
.
financialRulesDetail
Visible
},
// 删除
handleDelete
(
row
)
{
this
.
$confirm
(
'是否要进行删除操作?'
,
'提示'
,
{
...
...
src/views/systemConfig/merchant/viewDetail.vue
View file @
4f7ac27
This diff is collapsed.
Click to expand it.
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