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 986aaa82
authored
Apr 21, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
虚拟对公账号-联调
1 parent
e02154fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
297 additions
and
114 deletions
src/api/sys.base.js
src/components/d2-auth/d2-auth-btn.js
src/router/routes.js
src/store/modules/d2admin/modules/account.js
src/views/account/myAccount.vue
src/views/systemConfig/account/accountDetail.vue
src/views/systemConfig/account/accountList.vue
src/views/systemConfig/account/applyAccount.vue
src/views/systemConfig/account/editForm.vue
src/views/systemConfig/merchant/merchantManage.vue
src/views/systemConfig/merchant/viewDetail.vue
src/views/systemConfig/serviceManage.vue
src/api/sys.base.js
View file @
986aaa8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: limin
* @Author: limin
* @Date: 2019-08-26 18:02:55
* @Date: 2019-08-26 18:02:55
* @Last Modified by: chenwq
* @Last Modified by: chenwq
* @Last Modified time: 2021-04-2
0 18:11:1
4
* @Last Modified time: 2021-04-2
1 16:36:3
4
*/
*/
import
request
from
'./request'
import
request
from
'./request'
...
@@ -36,12 +36,6 @@ export function imgRecognitionApi(data) {
...
@@ -36,12 +36,6 @@ export function imgRecognitionApi(data) {
return
request
(
data
,
RequestMethods
.
POST
)
return
request
(
data
,
RequestMethods
.
POST
)
}
}
// 获取-省/市
export
function
getProvinceCityApi
(
data
)
{
data
.
method
=
`
${
path
}
yseArea.list`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 银行列表
// 银行列表
export
function
getBankListApi
(
data
)
{
export
function
getBankListApi
(
data
)
{
data
.
method
=
`
${
path
}
yseBankInfo.bankList`
data
.
method
=
`
${
path
}
yseBankInfo.bankList`
...
...
src/components/d2-auth/d2-auth-btn.js
View file @
986aaa8
...
@@ -103,7 +103,8 @@ export default {
...
@@ -103,7 +103,8 @@ export default {
props
:
{
props
:
{
type
:
btn
.
type
||
(
btn
.
category
===
'Button'
?
''
:
'text'
),
type
:
btn
.
type
||
(
btn
.
category
===
'Button'
?
''
:
'text'
),
icon
:
btn
.
icon
?
`el-icon-
${
btn
.
icon
}
`
:
''
,
icon
:
btn
.
icon
?
`el-icon-
${
btn
.
icon
}
`
:
''
,
size
:
size
size
:
size
,
disabled
:
btn
.
ruleObj
?
(
btn
.
ruleObj
.
hasOwnProperty
(
'disabledStatusList'
)
?
btn
.
ruleObj
.
disabledStatusList
.
includes
(
data
[
btn
.
ruleObj
.
attr
])
:
false
)
:
false
},
},
style
:
{
style
:
{
color
:
btn
.
color
color
:
btn
.
color
...
...
src/router/routes.js
View file @
986aaa8
...
@@ -557,6 +557,11 @@ export const resources = {
...
@@ -557,6 +557,11 @@ export const resources = {
},
{
},
{
authId
:
'9060304'
,
authId
:
'9060304'
,
parentId
:
'90603'
,
parentId
:
'90603'
,
label
:
'分账'
,
handle
:
'handleAccount'
},
{
authId
:
'9060305'
,
parentId
:
'90603'
,
label
:
'删除'
,
label
:
'删除'
,
handle
:
'handleDelete'
handle
:
'handleDelete'
}],
}],
...
@@ -622,7 +627,8 @@ export const resources = {
...
@@ -622,7 +627,8 @@ export const resources = {
2
:
'虚拟对账账户'
,
2
:
'虚拟对账账户'
,
3
:
'账户详情'
,
3
:
'账户详情'
,
4
:
'虚拟对账账户'
4
:
'虚拟对账账户'
}
},
disabledStatusList
:
[
2
]
}
}
}],
}],
component
:
_import
(
'systemConfig/account/accountList'
)
component
:
_import
(
'systemConfig/account/accountList'
)
...
...
src/store/modules/d2admin/modules/account.js
View file @
986aaa8
...
@@ -25,49 +25,50 @@ export default {
...
@@ -25,49 +25,50 @@ export default {
// 如有必要 token 需要定时更新,默认保存一天
// 如有必要 token 需要定时更新,默认保存一天
// util.cookies.set('uuid', data.loginName)
// util.cookies.set('uuid', data.loginName)
util
.
cookies
.
set
(
'token'
,
data
.
sessionId
)
util
.
cookies
.
set
(
'token'
,
data
.
sessionId
)
getAuths
({}).
then
(
async
res
=>
{
getUserInfo
({}).
then
(
async
userInfo
=>
{
// console.log(res)
getAuths
({}).
then
(
async
res
=>
{
!
res
.
map
(
i
=>
i
.
authId
).
includes
(
'907'
)
&&
res
.
unshift
({
!
res
.
map
(
i
=>
i
.
authId
).
includes
(
'907'
)
&&
res
.
unshift
({
authId
:
'907'
,
authId
:
'907'
,
name
:
'总览'
,
name
:
'总览'
,
parentId
:
'1'
parentId
:
'1'
})
// data.roleType = baseConfig.hasAuth ? data.roleType : SUPPER_ADMIN
// const authes = (+data.roleType === SUPPER_ADMIN)
// ? util.permision.flatten(Object.values(localRoutes))
// .map(obj => ({ authId: obj.authId, parentId: obj.parentId }))
// : _.cloneDeep(res)
// var tempAuths = util.permision.flatten(Object.values(localRoutes))
// console.log(util.permision.flatten(Object.values(localRoutes)))
var
routeAll
=
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
var
indexPage
=
routeAll
.
find
(
item
=>
item
.
authId
===
'907'
)
routeAll
.
splice
(
routeAll
.
findIndex
(
item
=>
item
.
authId
===
'907'
),
1
)
routeAll
.
unshift
(
indexPage
)
var
myAccountIdx
=
routeAll
.
findIndex
(
item
=>
item
.
authId
===
'90801'
)
userInfo
.
beSuper
&&
routeAll
.
splice
(
myAccountIdx
,
1
)
var
tempAuths
=
[]
var
targetRoutes
=
(
res
.
beSuper
)
?
routeAll
:
res
.
map
(
i
=>
i
.
authId
)
routeAll
.
map
(
i
=>
i
.
authId
).
forEach
((
item
,
index
)
=>
{
targetRoutes
.
includes
(
item
)
&&
tempAuths
.
push
(
routeAll
[
index
])
})
// const temp = tempAuths[1]
// tempAuths.splice(1, 1)
// tempAuths.unshift(temp)
// console.log(tempAuths)
const
authes
=
(
+
data
.
roleType
===
SUPPER_ADMIN
)
?
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
.
map
(
obj
=>
({
authId
:
obj
.
authId
,
parentId
:
obj
.
parentId
}))
:
tempAuths
await
dispatch
(
'd2admin/auth/set'
,
authes
,
{
root
:
true
})
// delete data.authes
// 初始化权限
await
dispatch
(
'd2admin/auth/init'
,
null
,
{
root
:
true
})
// // 用户登录后从持久化数据加载一系列的设置
await
dispatch
(
'load'
)
// 结束
// // 设置 vuex 用户信息
await
dispatch
(
'd2admin/user/set'
,
userInfo
,
{
root
:
true
})
resolve
()
})
})
// data.roleType = baseConfig.hasAuth ? data.roleType : SUPPER_ADMIN
// const authes = (+data.roleType === SUPPER_ADMIN)
// ? util.permision.flatten(Object.values(localRoutes))
// .map(obj => ({ authId: obj.authId, parentId: obj.parentId }))
// : _.cloneDeep(res)
// var tempAuths = util.permision.flatten(Object.values(localRoutes))
// console.log(util.permision.flatten(Object.values(localRoutes)))
var
routeAll
=
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
var
indexPage
=
routeAll
.
find
(
item
=>
item
.
authId
===
'907'
)
routeAll
.
splice
(
routeAll
.
findIndex
(
item
=>
item
.
authId
===
'907'
),
1
)
routeAll
.
unshift
(
indexPage
)
var
tempAuths
=
[]
var
targetRoutes
=
(
res
.
beSuper
)
?
routeAll
:
res
.
map
(
i
=>
i
.
authId
)
routeAll
.
map
(
i
=>
i
.
authId
).
forEach
((
item
,
index
)
=>
{
targetRoutes
.
includes
(
item
)
&&
tempAuths
.
push
(
routeAll
[
index
])
})
// const temp = tempAuths[1]
// tempAuths.splice(1, 1)
// tempAuths.unshift(temp)
// console.log(tempAuths)
const
authes
=
(
+
data
.
roleType
===
SUPPER_ADMIN
)
?
util
.
permision
.
flatten
(
Object
.
values
(
localRoutes
))
.
map
(
obj
=>
({
authId
:
obj
.
authId
,
parentId
:
obj
.
parentId
}))
:
tempAuths
await
dispatch
(
'd2admin/auth/set'
,
authes
,
{
root
:
true
})
// delete data.authes
// 初始化权限
await
dispatch
(
'd2admin/auth/init'
,
null
,
{
root
:
true
})
// // 用户登录后从持久化数据加载一系列的设置
await
dispatch
(
'load'
)
// 结束
resolve
()
})
getUserInfo
({}).
then
(
async
res
=>
{
// // 设置 vuex 用户信息
await
dispatch
(
'd2admin/user/set'
,
res
,
{
root
:
true
})
})
})
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
...
src/views/account/myAccount.vue
View file @
986aaa8
...
@@ -32,12 +32,21 @@
...
@@ -32,12 +32,21 @@
slot=
"accountType"
slot=
"accountType"
style=
"display: flex; justify-content: space-between;"
style=
"display: flex; justify-content: space-between;"
>
>
<!--
<span>
{{
scope
.
scope
}}
</span>
-->
<el-select
v-model=
"searchForm.divisionType"
>
<el-select
v-model=
"searchForm.accountType"
>
<el-option
<el-option></el-option>
v-for=
"item in baseData.divisionTypeList"
:key=
"item.confId"
:value=
"item.confId"
:label=
"item.confLabel"
></el-option>
</el-select>
</el-select>
<el-select
v-model=
"searchForm.accountType"
>
<el-select
v-model=
"searchForm.divisionStatus"
>
<el-option></el-option>
<el-option
v-for=
"item in baseData.divisionStatusList"
:key=
"item.confId"
:value=
"item.confId"
:label=
"item.confLabel"
></el-option>
</el-select>
</el-select>
</div>
</div>
</d2-search>
</d2-search>
...
@@ -84,7 +93,7 @@
...
@@ -84,7 +93,7 @@
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
Util
}
from
'@/common/util'
import
{
Util
}
from
'@/common/util'
import
cashDialog
from
'./cashDialog'
import
cashDialog
from
'./cashDialog'
import
{
getCurrentSixMonth
}
from
'@/common/constants.js'
import
{
getCurrentSixMonth
,
divisionStatusList
}
from
'@/common/constants.js'
import
{
getParkStore
}
from
'@api/editCustomer'
import
{
getParkStore
}
from
'@api/editCustomer'
import
{
getListApi
,
getCountApi
,
exportApi
,
getBankBalanceApi
}
from
'@/api/account'
import
{
getListApi
,
getCountApi
,
exportApi
,
getBankBalanceApi
}
from
'@/api/account'
export
default
{
export
default
{
...
@@ -153,7 +162,15 @@ export default {
...
@@ -153,7 +162,15 @@ export default {
smsCode
:
''
smsCode
:
''
},
},
baseData
:
{
baseData
:
{
parkServiceList
:
[]
parkServiceList
:
[],
divisionStatusList
:
[],
divisionTypeList
:
[{
confId
:
'1'
,
confLabel
:
'线下分账'
},
{
confId
:
'2'
,
confLabel
:
'线上分账'
}]
}
}
}
}
},
},
...
@@ -166,6 +183,11 @@ export default {
...
@@ -166,6 +183,11 @@ export default {
this
.
searchForm
.
divisionDate
=
getCurrentSixMonth
()
this
.
searchForm
.
divisionDate
=
getCurrentSixMonth
()
this
.
getCount
()
this
.
getCount
()
this
.
getBankBalance
()
this
.
getBankBalance
()
this
.
baseData
.
divisionStatusList
=
_
.
cloneDeep
(
divisionStatusList
)
this
.
baseData
.
divisionStatusList
.
unshift
({
confId
:
''
,
confLabel
:
'全部'
})
getParkStore
({}).
then
(
res
=>
{
getParkStore
({}).
then
(
res
=>
{
this
.
baseData
.
parkServiceList
=
res
this
.
baseData
.
parkServiceList
=
res
this
.
getOptionsList
()
this
.
getOptionsList
()
...
...
src/views/systemConfig/account/accountDetail.vue
View file @
986aaa8
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
<el-form
<el-form
:model=
"detailForm"
:model=
"detailForm"
label-width=
"190px"
label-width=
"190px"
v-loading=
"$store.state.d2admin.loading.value"
>
>
<p
class=
"edit-sub-title"
>
账户信息
</p>
<p
class=
"edit-sub-title"
>
账户信息
</p>
<el-form-item
<el-form-item
...
@@ -15,7 +14,7 @@
...
@@ -15,7 +14,7 @@
</el-form-item>
</el-form-item>
<p
class=
"edit-sub-title"
>
申请资料
</p>
<p
class=
"edit-sub-title"
>
申请资料
</p>
<block
<block
v-for=
"(item, index) in
applyForm
"
v-for=
"(item, index) in
formList
"
:key=
"index"
:key=
"index"
>
>
<el-form-item
<el-form-item
...
@@ -28,8 +27,8 @@
...
@@ -28,8 +27,8 @@
src=
"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=270411355,4161548721&fm=26&gp=0.jpg"
src=
"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=270411355,4161548721&fm=26&gp=0.jpg"
>
>
</span>
</span>
<span
v-else-if=
"item.form
ma
ter"
>
{{
item
.
formatter
(
item
)
}}
</span>
<span
v-else-if=
"item.form
at
ter"
>
{{
item
.
formatter
(
item
)
}}
</span>
<span
v-else
>
{{
detail
Form
[
item
.
prop
]
}}
</span>
<span
v-else
>
{{
apply
Form
[
item
.
prop
]
}}
</span>
</el-form-item>
</el-form-item>
</block>
</block>
</el-form>
</el-form>
...
@@ -37,45 +36,122 @@
...
@@ -37,45 +36,122 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getDetailApi
}
from
'@api/publicAccount'
export
default
{
export
default
{
name
:
'accountDetail'
,
name
:
'accountDetail'
,
data
()
{
data
()
{
return
{
return
{
applyForm
:
[{
applyForm
:
{},
// formNameList: [
// 'custType',
// 'anotherName',
// 'busAddress',
// 'legalName',
// 'legalCertNo',
// 'legalCertDate',
// 'legalTel',
// 'contactsName',
// 'contactsPhone',
// 'contactsEmail',
// 'bankAccountType',
// 'bankAccountNo',
// 'bankAccountName',
// 'bankTelephoneNo',
// 'bankName',
// 'branchBankName',
// 'operPhone',
// 'busLicenceName',
// 'busLicense',
// 'busLicenseDate',
// 'contactsAddr',
// 'busLicenseStartDate',
// 'busLicenseExpire'
// ],
formList
:
[{
label
:
'商户类型'
,
label
:
'商户类型'
,
prop
:
'
user
Type'
prop
:
'
cust
Type'
},
{
},
{
label
:
'
法人姓名
'
,
label
:
'
营业执照全称
'
,
prop
:
''
prop
:
'
busLicenceName
'
},
{
},
{
label
:
'法人身份证号'
,
label
:
'营业执照号码'
,
prop
:
''
prop
:
'busLicense'
},
{
label
:
'营业执照'
,
prop
:
'businessLicense'
,
type
:
'img'
},
{
label
:
'营业执照有效期'
,
prop
:
'busLicenseDate'
,
formatter
:
()
=>
{
return
this
.
applyForm
.
busLicenseStartDate
+
'~'
+
this
.
applyForm
.
busLicenseExpire
}
},
{
label
:
'商户名称'
,
prop
:
'anotherName'
},
{
label
:
'企业注册地址'
,
prop
:
'companyAddr'
},
{
label
:
'企业营业地址'
,
prop
:
'busAddress'
},
{
},
{
label
:
'法人身份证正反面'
,
label
:
'法人身份证正反面'
,
prop
:
''
,
prop
:
''
,
type
:
'img'
type
:
'img'
},
{
},
{
label
:
'法人姓名'
,
prop
:
'legalName'
},
{
label
:
'法人身份证号'
,
prop
:
'legalCertNo'
},
{
label
:
'身份证有效期'
,
prop
:
''
,
formatter
:
()
=>
{
return
this
.
applyForm
.
legalCertStartDate
+
'~'
+
this
.
applyForm
.
legalCertExpire
}
},
{
label
:
'法人手机号'
,
label
:
'法人手机号'
,
prop
:
'
userType
'
prop
:
'
legalTel
'
},
{
},
{
label
:
'提现
手机号
'
,
label
:
'提现
人姓名
'
,
prop
:
''
prop
:
'
contactsName
'
},
{
},
{
label
:
'
银行卡账户类型
'
,
label
:
'
提现人手机号
'
,
prop
:
''
prop
:
'
contactsPhone
'
},
{
},
{
label
:
'
开户行所在的省/市
'
,
label
:
'
提现人地址
'
,
prop
:
''
prop
:
'
contactsAddr
'
},
{
},
{
label
:
'结算银行卡'
,
label
:
'提现人邮箱'
,
prop
:
''
prop
:
'contactsEmail'
},
{
label
:
'银行卡账户类型'
,
prop
:
'bankAccountType'
},
{
label
:
'开户许可证/印鉴卡'
,
prop
:
''
,
type
:
'img'
},
{
},
{
label
:
'结算银行卡正反面照'
,
label
:
'结算银行卡正反面照'
,
prop
:
''
,
prop
:
''
,
type
:
'img'
type
:
'img'
},
{
},
{
label
:
'结算银行卡开户行'
,
prop
:
'bankName'
},
{
label
:
'开户支行'
,
prop
:
'branchBankName'
},
{
label
:
'结算银行卡号'
,
prop
:
'bankAccountNo'
},
{
label
:
'结算银行卡用户名'
,
prop
:
'bankAccountName'
},
{
label
:
'银行预留手机号'
,
label
:
'银行预留手机号'
,
prop
:
''
prop
:
'
bankTelephoneNo
'
},
{
},
{
label
:
'客户协议书'
,
label
:
'客户协议书'
,
prop
:
''
,
prop
:
''
,
...
@@ -88,22 +164,67 @@ export default {
...
@@ -88,22 +164,67 @@ export default {
label
:
'经营场所图'
,
label
:
'经营场所图'
,
prop
:
''
,
prop
:
''
,
type
:
'img'
type
:
'img'
},
{
label
:
'操作人手机号'
,
prop
:
'operPhone'
}]
}]
}
}
},
},
props
:
{
props
:
{
accountDetailVisible
:
{
type
:
Boolean
,
default
:
false
},
detailForm
:
{
detailForm
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
}
}
}
},
},
watch
:
{
accountDetailVisible
(
newVal
)
{
if
(
newVal
)
{
this
.
merchantId
=
this
.
detailForm
.
merchantId
this
.
getDetail
()
}
}
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
detailForm
)
this
.
merchantId
=
this
.
detailForm
.
merchantId
this
.
getDetail
()
},
},
methods
:
{}
methods
:
{
getDetail
()
{
getDetailApi
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
applyForm
=
_
.
cloneDeep
({
...
res
.
bankInfo
,
...
res
.
serviceMerchant
,
...
res
.
yseMerchantInfo
})
// 身份证有效期
// if (res.yseMerchantInfo.legalCertStartDate && res.yseMerchantInfo.legalCertExpire) {
// const startDate = res.yseMerchantInfo.legalCertStartDate
// const endDate = res.yseMerchantInfo.legalCertStartDate
// this.$set(this.applyForm, 'legalCertDate', [startDate.slice(0, 4) + '-' + startDate.slice(4, 6) + '-' + startDate.slice(6), endDate.slice(0, 4) + '-' + endDate.slice(4, 6) + '-' + endDate.slice(6)])
// }
// 图片恢复
// var picKeys = Object.keys(this.picObj)
// var keytoPic = {}
// picKeys.forEach(item => {
// keytoPic[this.picObj[item].attrName] = item
// })
// res.papersList.forEach(item => {
// this.applyForm.papers[item.papersType] = item.imgUrl
// this.picObj[keytoPic[item.papersType]].url = item.imgUrl
// })
console
.
log
(
this
.
applyForm
)
})
}
}
}
}
</
script
>
</
script
>
...
...
src/views/systemConfig/account/accountList.vue
View file @
986aaa8
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
@
confirmDialog=
"handleDetailClose"
@
confirmDialog=
"handleDetailClose"
@
closeDialog=
"handleDetailClose"
@
closeDialog=
"handleDetailClose"
>
>
<account-detail
:detailForm=
"detailForm"
></account-detail>
<account-detail
:
accountDetailVisible=
"accountDetailVisible"
:
detailForm=
"detailForm"
></account-detail>
</d2-dialog>
</d2-dialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
...
src/views/systemConfig/account/applyAccount.vue
View file @
986aaa8
This diff is collapsed.
Click to expand it.
src/views/systemConfig/account/editForm.vue
View file @
986aaa8
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
name=
"title"
name=
"title"
class=
"edit-title"
class=
"edit-title"
>
{{
title
}}
</p>
>
{{
title
}}
</p>
<slot
name=
"failMessage"
></slot>
<div
<div
v-for=
"(item, index) in formList"
v-for=
"(item, index) in formList"
:key=
"index"
:key=
"index"
...
@@ -183,14 +184,15 @@ export default {
...
@@ -183,14 +184,15 @@ export default {
},
},
// 确认
// 确认
handleConfirm
()
{
handleConfirm
()
{
this
.
$refs
.
editFrom
.
validate
((
valid
,
opt
)
=>
{
this
.
$emit
(
'handleConfirm'
)
var
hasError
=
Object
.
keys
(
opt
)
// this.$refs.editFrom.validate((valid, opt) => {
if
(
!
valid
)
{
// var hasError = Object.keys(opt)
this
.
jumpScroll
(
hasError
[
0
])
// if (!valid) {
return
false
// this.jumpScroll(hasError[0])
}
// return false
this
.
$emit
(
'handleConfirm'
)
// }
})
// this.$emit('handleConfirm')
// })
},
},
// 存草稿
// 存草稿
handleDraft
()
{
handleDraft
()
{
...
...
src/views/systemConfig/merchant/merchantManage.vue
View file @
986aaa8
...
@@ -124,7 +124,26 @@
...
@@ -124,7 +124,26 @@
@
confirmDialog=
"handleViewClose"
@
confirmDialog=
"handleViewClose"
@
closeDialog=
"handleViewClose"
@
closeDialog=
"handleViewClose"
>
>
<view-detail
:viewDetailVisible =
"viewDetailVisible"
:viewDetailData=
"viewDetailData"
></view-detail>
<el-tabs
v-model=
"detailActiveName"
type=
"border-card"
>
<el-tab-pane
label=
"B端转化业务"
name=
"first"
>
<view-detail
:viewDetailVisible=
"viewDetailVisible"
:viewDetailData=
"viewDetailData"
></view-detail>
</el-tab-pane>
<el-tab-pane
label=
"C端零售业务"
name=
"second"
disabled=
"true"
>
配置管理
</el-tab-pane>
</el-tabs>
</d2-dialog>
</d2-dialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -245,6 +264,7 @@ export default {
...
@@ -245,6 +264,7 @@ export default {
sourcePage
:
'serviceStore'
,
sourcePage
:
'serviceStore'
,
storeSelected
:
[],
storeSelected
:
[],
// 查看详情
// 查看详情
detailActiveName
:
'first'
,
viewDetailVisible
:
false
,
viewDetailVisible
:
false
,
viewDetailData
:
{},
viewDetailData
:
{},
baseData
:
{
baseData
:
{
...
@@ -348,7 +368,7 @@ export default {
...
@@ -348,7 +368,7 @@ export default {
})
})
addServiceMerchant
({
list
:
selectedData
}).
then
(
res
=>
{
addServiceMerchant
({
list
:
selectedData
}).
then
(
res
=>
{
this
.
relateStoreVisible
=
false
this
.
relateStoreVisible
=
false
this
.
$refs
.
serviceStore
Table
.
refreshTable
()
this
.
$refs
.
merchant
Table
.
refreshTable
()
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
relateCloseReset
()
this
.
relateCloseReset
()
})
})
...
@@ -370,6 +390,8 @@ export default {
...
@@ -370,6 +390,8 @@ export default {
this
.
viewDetailData
=
row
this
.
viewDetailData
=
row
this
.
handleViewClose
()
this
.
handleViewClose
()
},
},
// 分账
handleAccount
()
{
},
// 删除
// 删除
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'是否要进行删除操作?'
,
'提示'
,
{
this
.
$confirm
(
'是否要进行删除操作?'
,
'提示'
,
{
...
@@ -379,7 +401,7 @@ export default {
...
@@ -379,7 +401,7 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
deleteMerchant
({
id
:
row
.
id
}).
then
(
res
=>
{
deleteMerchant
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
serviceStore
Table
.
refreshTable
()
this
.
$refs
.
merchant
Table
.
refreshTable
()
})
})
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
...
...
src/views/systemConfig/merchant/viewDetail.vue
View file @
986aaa8
<!-- 查看详情 -->
<!-- 查看详情 -->
<
template
>
<
template
>
<div
class=
"view-detail"
>
<div
class=
"view-detail"
>
<el-row>
<el-col
:span=
"12"
>
自动打款:
{{
form
.
autoFlag
===
'N'
?
'否'
:
'是'
}}
</el-col>
<el-col
v-show=
"form.settleTimeType"
:span=
"12"
>
分账周期:n+
{{
form
.
settleTime
}}
</el-col>
</el-row>
<p>
金额分配设置:
</p>
<p
class=
"edit-sub-title"
>
导流方(4S店)基础信息
</p>
<p
class=
"edit-sub-title"
>
导流方(4S店)基础信息
</p>
<table
<table
cellpadding=
'0'
cellpadding=
'0'
...
@@ -57,11 +62,11 @@
...
@@ -57,11 +62,11 @@
<td
colspan=
"3"
>
地址:
{{
needTransformObj
.
yqAddr
}}
</td>
<td
colspan=
"3"
>
地址:
{{
needTransformObj
.
yqAddr
}}
</td>
<td>
创建时间:
{{
needTransformObj
.
yqCreatedDate
}}
</td>
<td>
创建时间:
{{
needTransformObj
.
yqCreatedDate
}}
</td>
</tr>
</tr>
<tr>
<
!--
<
tr>
<td
colspan=
"2"
>
经营模式:
</td>
<td
colspan=
"2"
>
经营模式:
</td>
<td>
收款方式:
</td>
<td>
收款方式:
</td>
<td>
分账周期:
</td>
<td>
分账周期:
</td>
</tr>
</tr>
-->
</table>
</table>
<p
class=
"edit-sub-title m-t-10"
>
关联的服务商基础信息
</p>
<p
class=
"edit-sub-title m-t-10"
>
关联的服务商基础信息
</p>
<table
<table
...
@@ -85,7 +90,7 @@
...
@@ -85,7 +90,7 @@
>
>
<tr
class=
"txt-center"
>
<tr
class=
"txt-center"
>
<td>
分账品类
</td>
<td>
分账品类
</td>
<
td>
分账模式
</td
>
<
!--
<td>
分账模式
</td>
--
>
<td>
分润比例
</td>
<td>
分润比例
</td>
</tr>
</tr>
<tr
<tr
...
@@ -94,8 +99,8 @@
...
@@ -94,8 +99,8 @@
class=
"txt-center"
class=
"txt-center"
>
>
<td>
{{
item
.
goodsTypeName
}}
</td>
<td>
{{
item
.
goodsTypeName
}}
</td>
<
td>
{{
merchantSettleTypeList
.
find
(
i
=>
i
.
confId
===
item
.
merchantSettleType
).
confLabel
}}
</td
>
<
!--
<td>
{{
merchantSettleTypeList
.
find
(
i
=>
i
.
confId
===
item
.
merchantSettleType
).
confLabel
}}
</td>
--
>
<td>
{{
item
.
merchantProfitValue
}}
</td>
<td>
{{
item
.
partnerProfitPer
}}
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
...
@@ -109,6 +114,9 @@ export default {
...
@@ -109,6 +114,9 @@ export default {
name
:
'viewDetail'
,
name
:
'viewDetail'
,
data
()
{
data
()
{
return
{
return
{
form
:
{
autoFlag
:
'N'
},
needTransformObj
:
{
needTransformObj
:
{
addr
:
''
,
addr
:
''
,
createdDate
:
''
,
createdDate
:
''
,
...
@@ -169,11 +177,15 @@ export default {
...
@@ -169,11 +177,15 @@ export default {
getAccountRule
({
'merchantId'
:
this
.
viewDetailData
.
merchantId
}).
then
(
res
=>
{
getAccountRule
({
'merchantId'
:
this
.
viewDetailData
.
merchantId
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
)
{
if
(
res
)
{
this
.
form
.
autoFlag
=
res
.
autoFlag
this
.
form
.
settleTimeType
=
res
.
settleTimeType
this
.
form
.
settleTime
=
res
.
settleTime
this
.
settleRuleList
=
res
.
goodsTypeSettleRuleList
this
.
settleRuleList
=
res
.
goodsTypeSettleRuleList
this
.
settleRuleList
.
unshift
({
this
.
settleRuleList
.
unshift
({
goodsTypeName
:
'全部'
,
goodsTypeName
:
'全部'
,
merchantSettleType
:
res
.
merchantSettleType
,
merchantSettleType
:
res
.
merchantSettleType
,
merchantProfitValue
:
res
.
merchantProfitValue
merchantProfitValue
:
res
.
merchantProfitValue
,
partnerProfitPer
:
res
.
partnerProfitPer
})
})
}
}
})
})
...
@@ -212,7 +224,7 @@ table td {
...
@@ -212,7 +224,7 @@ table td {
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
}
}
.txt-center
td
{
.txt-center
td
{
text-align
:
center
;
text-align
:
center
;
}
}
</
style
>
</
style
>
src/views/systemConfig/serviceManage.vue
View file @
986aaa8
...
@@ -230,21 +230,6 @@ export default {
...
@@ -230,21 +230,6 @@ export default {
getAdminInfo
({}).
then
(
res
=>
{
getAdminInfo
({}).
then
(
res
=>
{
this
.
adminInfo
=
res
this
.
adminInfo
=
res
})
})
// 园区店
getMerchantList
({
merchantType
:
6
,
channelType
:
1
,
filterWithPartner
:
true
}).
then
(
res
=>
{
this
.
baseData
.
yqList
=
res
})
// 服务商
getMerchantList
({
merchantType
:
7
,
channelType
:
1
}).
then
(
res
=>
{
this
.
baseData
.
serviceList
=
res
})
},
},
methods
:
{
methods
:
{
...
@@ -274,6 +259,23 @@ export default {
...
@@ -274,6 +259,23 @@ export default {
this
.
relateVisible
=
!
this
.
relateVisible
this
.
relateVisible
=
!
this
.
relateVisible
this
.
relateForm
=
{}
this
.
relateForm
=
{}
this
.
$refs
.
relateDialog
&&
this
.
$refs
.
relateDialog
.
resetFields
()
this
.
$refs
.
relateDialog
&&
this
.
$refs
.
relateDialog
.
resetFields
()
if
(
this
.
relateVisible
)
{
// 园区店
getMerchantList
({
merchantType
:
6
,
channelType
:
1
,
filterWithPartner
:
true
}).
then
(
res
=>
{
this
.
baseData
.
yqList
=
res
})
// 服务商
getMerchantList
({
merchantType
:
7
,
channelType
:
1
}).
then
(
res
=>
{
this
.
baseData
.
serviceList
=
res
})
}
},
},
handleRelateConfirm
()
{
handleRelateConfirm
()
{
this
.
$refs
.
relateDialog
.
validate
(
valid
=>
{
this
.
$refs
.
relateDialog
.
validate
(
valid
=>
{
...
...
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