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 271b38e6
authored
Apr 23, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
财务设置,bug修复
1 parent
d2277854
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
45 deletions
src/components/d2-dialog/index.vue
src/components/d2-table/index.vue
src/views/systemConfig/account/accountDetail.vue
src/views/systemConfig/account/applyAccount.vue
src/views/systemConfig/merchant/merchantDetail.vue
src/views/systemConfig/serviceManage.vue
src/components/d2-dialog/index.vue
View file @
271b38e
...
@@ -9,6 +9,10 @@
...
@@ -9,6 +9,10 @@
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
:width=
"width"
:width=
"width"
>
>
<span
slot=
"title"
>
{{
title
}}
<slot
name=
"sub-title"
></slot>
</span>
<slot></slot>
<slot></slot>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<slot
name=
"btn-start"
></slot>
<slot
name=
"btn-start"
></slot>
...
...
src/components/d2-table/index.vue
View file @
271b38e
...
@@ -310,7 +310,7 @@ export default {
...
@@ -310,7 +310,7 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.el-table
.cell
{
.el-table
.cell
{
line-height
:
1
4
px
;
line-height
:
1
8
px
;
}
}
.d2-table
p
{
.d2-table
p
{
margin
:
10px
0
;
margin
:
10px
0
;
...
...
src/views/systemConfig/account/accountDetail.vue
View file @
271b38e
...
@@ -51,6 +51,7 @@ export default {
...
@@ -51,6 +51,7 @@ export default {
idCardBack
:
'30'
,
idCardBack
:
'30'
,
bankCard
:
'35'
,
bankCard
:
'35'
,
bankCardBack
:
'36'
,
bankCardBack
:
'36'
,
handIdCard
:
'33'
,
clientAgreement
:
'31'
,
clientAgreement
:
'31'
,
doorHead
:
'34'
,
doorHead
:
'34'
,
businessPremiese
:
'A007'
,
businessPremiese
:
'A007'
,
...
...
src/views/systemConfig/account/applyAccount.vue
View file @
271b38e
...
@@ -266,7 +266,7 @@ export default {
...
@@ -266,7 +266,7 @@ export default {
},
},
// 手持身份证
// 手持身份证
handIdCard
:
{
handIdCard
:
{
attrName
:
'
A009
'
,
attrName
:
'
33
'
,
url
:
''
url
:
''
},
},
// 银行卡
// 银行卡
...
...
src/views/systemConfig/merchant/merchantDetail.vue
View file @
271b38e
...
@@ -54,14 +54,9 @@
...
@@ -54,14 +54,9 @@
v-model=
"form.autoFlag"
v-model=
"form.autoFlag"
active-value=
"Y"
active-value=
"Y"
inactive-value=
"N"
inactive-value=
"N"
:disabled=
"isConfigAccount"
>
>
</el-switch>
</el-switch>
</el-radio-group>
</el-radio-group>
<span
v-show=
"isConfigAccount"
>
关联的服务商有生效的虚拟对公账户才能开启线上自动分账
<a
href=
"#/accountList"
target=
"_blank"
>
申请虚拟账户 >
</a></span>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"结算时间方式"
label=
"结算时间方式"
...
@@ -321,10 +316,13 @@
...
@@ -321,10 +316,13 @@
</div>
</div>
</div>
</div>
<div>
<div>
<div
class=
"account-card-block"
>
<div
class=
"account-card-block"
v-if=
"form.parentMerchantName"
>
<p
class=
"card-title"
>
<p
class=
"card-title"
>
<span>
目标分账对象:
</span>
<span>
目标分账对象:
</span>
<span
class=
"title-target-obj"
>
服务商 / 转化方 / 合作伙伴
</span>
<span
class=
"title-target-obj"
>
{{
form
.
parentMerchantName
}}
</span>
<block
style=
"float: right; margin-top: -8px;"
>
<block
style=
"float: right; margin-top: -8px;"
>
<!--
<span
style=
"margin-right: 30px;"
>
类型:无
</span>
-->
<!--
<span
style=
"margin-right: 30px;"
>
类型:无
</span>
-->
<el-button
<el-button
...
@@ -472,14 +470,13 @@
...
@@ -472,14 +470,13 @@
<
script
>
<
script
>
import
_
from
'lodash'
import
_
from
'lodash'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
updateRule
,
sendSms
,
getAdminInfo
,
getAccountRule
,
getShopDetail
}
from
'@api/merchant'
import
{
updateRule
,
sendSms
,
getAdminInfo
,
getAccountRule
}
from
'@api/merchant'
import
{
BaseData
,
userType
,
ghUserType
,
limitPrice
}
from
'@/common/constants.js'
import
{
BaseData
,
userType
,
ghUserType
,
limitPrice
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'merchantDetail'
,
name
:
'merchantDetail'
,
data
()
{
data
()
{
return
{
return
{
sessionName
:
'merchatDetailItem'
,
sessionName
:
'merchatDetailItem'
,
isConfigAccount
:
false
,
// 结算周期
// 结算周期
settleTimeObj
:
{
settleTimeObj
:
{
first
:
'1'
,
first
:
'1'
,
...
@@ -583,24 +580,20 @@ export default {
...
@@ -583,24 +580,20 @@ export default {
this
.
adminInfo
=
res
this
.
adminInfo
=
res
})
})
if
(
this
.
$route
.
params
.
merchantId
)
{
if
(
this
.
$route
.
params
.
merchantId
)
{
Object
.
assign
(
this
.
form
,
this
.
$route
.
params
)
// console.log(
this.$route.params)
this
.
merchantItem
=
{
this
.
merchantItem
=
{
merchantId
:
this
.
$route
.
params
.
merchantId
,
merchantId
:
this
.
$route
.
params
.
merchantId
,
merchantName
:
this
.
$route
.
params
.
merchantName
,
merchantName
:
this
.
$route
.
params
.
merchantName
,
channelType
:
this
.
$route
.
params
.
channelType
channelType
:
this
.
$route
.
params
.
channelType
,
parentMerchantName
:
this
.
$route
.
params
.
partnerMerchant
?
this
.
$route
.
params
.
partnerMerchant
.
merchantName
:
''
}
}
Object
.
assign
(
this
.
form
,
this
.
merchantItem
)
sessionStorage
.
setItem
(
this
.
sessionName
,
JSON
.
stringify
(
this
.
merchantItem
))
sessionStorage
.
setItem
(
this
.
sessionName
,
JSON
.
stringify
(
this
.
merchantItem
))
}
else
{
}
else
{
Object
.
assign
(
this
.
form
,
JSON
.
parse
(
sessionStorage
.
getItem
(
this
.
sessionName
)))
Object
.
assign
(
this
.
form
,
JSON
.
parse
(
sessionStorage
.
getItem
(
this
.
sessionName
)))
}
}
getAccountRule
({
'merchantId'
:
this
.
form
.
merchantId
}).
then
(
res
=>
{
getAccountRule
({
'merchantId'
:
this
.
form
.
merchantId
}).
then
(
res
=>
{
if
(
!
res
||
(
res
.
autoFlag
===
'N'
))
{
console
.
log
(
res
)
getShopDetail
({
'merchantId'
:
this
.
form
.
merchantId
}).
then
(
res
=>
{
var
parentStatus
=
res
.
partnerMerchant
?
(
res
.
partnerMerchant
.
accountStatus
!==
3
)
:
true
// var merchantStatus = res.merchant ? (res.merchant.accountStatus !== 3) : true
this
.
isConfigAccount
=
parentStatus
})
}
if
(
res
)
{
if
(
res
)
{
this
.
form
.
autoFlag
=
res
.
autoFlag
this
.
form
.
autoFlag
=
res
.
autoFlag
this
.
form
.
settleTimeType
=
res
.
settleTimeType
this
.
form
.
settleTimeType
=
res
.
settleTimeType
...
@@ -610,7 +603,7 @@ export default {
...
@@ -610,7 +603,7 @@ export default {
this
.
accountSetForm
.
list
[
0
].
merchantProfitValue
=
res
.
merchantProfitValue
+
''
this
.
accountSetForm
.
list
[
0
].
merchantProfitValue
=
res
.
merchantProfitValue
+
''
this
.
accountSetForm
.
incentiveType
=
res
.
incentiveType
+
''
this
.
accountSetForm
.
incentiveType
=
res
.
incentiveType
+
''
this
.
accountSetForm
.
incentiveValue
=
res
.
incentiveValue
+
''
this
.
accountSetForm
.
incentiveValue
=
res
.
incentiveValue
+
''
this
.
accountSecondSetForm
.
list
[
0
].
partnerProfitPer
=
res
.
partnerProfitPer
+
''
this
.
form
.
parentMerchantName
&&
(
this
.
accountSecondSetForm
.
list
[
0
].
partnerProfitPer
=
res
.
partnerProfitPer
+
''
)
res
.
goodsTypeSettleRuleList
.
forEach
((
item
,
index
)
=>
{
res
.
goodsTypeSettleRuleList
.
forEach
((
item
,
index
)
=>
{
this
.
accountSetForm
.
list
.
push
({
this
.
accountSetForm
.
list
.
push
({
goodsType
:
item
.
goodsType
,
goodsType
:
item
.
goodsType
,
...
@@ -618,7 +611,7 @@ export default {
...
@@ -618,7 +611,7 @@ export default {
merchantSettleType
:
item
.
merchantSettleType
+
''
,
merchantSettleType
:
item
.
merchantSettleType
+
''
,
merchantProfitValue
:
item
.
merchantProfitValue
merchantProfitValue
:
item
.
merchantProfitValue
})
})
this
.
accountSecondSetForm
.
list
.
push
({
this
.
form
.
parentMerchantName
&&
this
.
accountSecondSetForm
.
list
.
push
({
goodsType
:
item
.
goodsType
,
goodsType
:
item
.
goodsType
,
goodsTypeName
:
item
.
goodsTypeName
,
goodsTypeName
:
item
.
goodsTypeName
,
partnerProfitPer
:
item
.
partnerProfitPer
partnerProfitPer
:
item
.
partnerProfitPer
...
@@ -673,7 +666,8 @@ export default {
...
@@ -673,7 +666,8 @@ export default {
},
},
// 是否编辑;refs绑定的属性值;当前Form属性值;级联Form属性值;添加对象的属性
// 是否编辑;refs绑定的属性值;当前Form属性值;级联Form属性值;添加对象的属性
handleSetEdit
(
isEditAttr
,
refsAttr
,
formAttr
,
cascadeChangeAttr
,
addStructAttr
)
{
handleSetEdit
(
isEditAttr
,
refsAttr
,
formAttr
,
cascadeChangeAttr
,
addStructAttr
)
{
if
(
this
[
isEditAttr
])
{
// 判断是否有服务商
if
(
this
[
isEditAttr
]
&&
this
.
form
.
parentMerchantName
)
{
this
.
$refs
[
refsAttr
].
validate
(
valid
=>
{
this
.
$refs
[
refsAttr
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
[
isEditAttr
]
=
!
this
[
isEditAttr
]
this
[
isEditAttr
]
=
!
this
[
isEditAttr
]
...
@@ -716,17 +710,10 @@ export default {
...
@@ -716,17 +710,10 @@ export default {
this
[
formAttr
].
list
.
splice
(
index
,
1
)
this
[
formAttr
].
list
.
splice
(
index
,
1
)
})
})
},
},
onSubmit
()
{
assignConfirm
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$refs
[
'accountValiteForm'
].
validate
((
valid2
)
=>
{
if
(
valid2
)
{
this
.
$refs
[
'accountSecondValiteForm'
].
validate
((
valid3
)
=>
{
if
(
valid3
)
{
// console.log(this.form)
// console.log(this.form)
// console.log(this.accountSetForm)
console
.
log
(
this
.
accountSetForm
)
// console.log(this.accountSecondSetForm)
console
.
log
(
this
.
accountSecondSetForm
)
var
params
=
{
var
params
=
{
merchantId
:
this
.
form
.
merchantId
,
merchantId
:
this
.
form
.
merchantId
,
channelType
:
this
.
form
.
channelType
,
channelType
:
this
.
form
.
channelType
,
...
@@ -741,21 +728,25 @@ export default {
...
@@ -741,21 +728,25 @@ export default {
merchantProfitValue
:
this
.
accountSetForm
.
list
[
0
].
merchantProfitValue
,
merchantProfitValue
:
this
.
accountSetForm
.
list
[
0
].
merchantProfitValue
,
incentiveType
:
this
.
accountSetForm
.
incentiveType
,
incentiveType
:
this
.
accountSetForm
.
incentiveType
,
incentiveValue
:
this
.
accountSetForm
.
incentiveValue
,
incentiveValue
:
this
.
accountSetForm
.
incentiveValue
,
partnerProfitPer
:
this
.
accountSecondSetForm
.
list
[
0
].
partnerProfitPer
,
//
partnerProfitPer: this.accountSecondSetForm.list[0].partnerProfitPer,
goodsTypeSettleRuleList
:
[]
goodsTypeSettleRuleList
:
[]
}
}
// 是否配置服务商
this
.
form
.
parentMerchantName
&&
(
params
.
partnerProfitPer
=
this
.
accountSecondSetForm
.
list
[
0
].
partnerProfitPer
)
this
.
accountSetForm
.
list
.
forEach
((
item
,
index
)
=>
{
this
.
accountSetForm
.
list
.
forEach
((
item
,
index
)
=>
{
if
(
index
!==
0
)
{
if
(
index
!==
0
)
{
params
.
goodsTypeSettleRuleList
.
push
({
params
.
goodsTypeSettleRuleList
.
push
({
goodsType
:
item
.
goodsType
,
goodsType
:
item
.
goodsType
,
goodsTypeName
:
item
.
goodsTypeName
,
goodsTypeName
:
item
.
goodsTypeName
,
merchantSettleType
:
item
.
merchantSettleType
,
merchantSettleType
:
item
.
merchantSettleType
,
merchantProfitValue
:
item
.
merchantProfitValue
,
merchantProfitValue
:
item
.
merchantProfitValue
partnerProfitPer
:
this
.
accountSecondSetForm
.
list
[
index
].
partnerProfitPer
//
partnerProfitPer: this.accountSecondSetForm.list[index].partnerProfitPer
})
})
// 是否配置服务商
this
.
form
.
parentMerchantName
&&
(
params
.
goodsTypeSettleRuleList
[
index
-
1
].
partnerProfitPer
=
this
.
accountSecondSetForm
.
list
[
index
].
partnerProfitPer
)
}
}
})
})
//
console.log(params)
console
.
log
(
params
)
updateRule
(
params
).
then
((
res
)
=>
{
updateRule
(
params
).
then
((
res
)
=>
{
this
.
$message
({
this
.
$message
({
...
@@ -763,15 +754,25 @@ export default {
...
@@ -763,15 +754,25 @@ export default {
type
:
'success'
type
:
'success'
})
})
this
.
deleteSession
()
this
.
deleteSession
()
this
.
close
({
tagName
:
'/merchantDetail'
})
this
.
close
({
tagName
:
'/merchantManage'
})
this
.
close
({
tagName
:
'/merchantManage'
})
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'merchantManage'
name
:
'merchantManage'
})
})
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
})
},
onSubmit
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$refs
[
'accountValiteForm'
].
validate
((
valid2
)
=>
{
if
(
valid2
)
{
if
(
this
.
form
.
parentMerchantName
)
{
this
.
$refs
[
'accountSecondValiteForm'
].
validate
((
valid3
)
=>
{
valid3
?
this
.
assignConfirm
()
:
this
.
handleSetEdit
(
'isSecondSetEdit'
,
'accountSecondValiteForm'
,
'accountSecondSetForm'
,
'accountSetForm'
,
'accountSetStruct'
)
})
}
else
{
}
else
{
this
.
handleSetEdit
(
'isSecondSetEdit'
,
'accountSecondValiteForm'
,
'accountSecondSetForm'
,
'accountSetForm'
,
'accountSetStruct'
)
this
.
assignConfirm
(
)
}
}
})
}
else
{
}
else
{
this
.
handleSetEdit
(
'isFirstSetEdit'
,
'accountValiteForm'
,
'accountSetForm'
,
'accountSecondSetForm'
,
'accountSecondSetStruct'
)
this
.
handleSetEdit
(
'isFirstSetEdit'
,
'accountValiteForm'
,
'accountSetForm'
,
'accountSecondSetForm'
,
'accountSecondSetStruct'
)
}
}
...
...
src/views/systemConfig/serviceManage.vue
View file @
271b38e
...
@@ -49,9 +49,11 @@
...
@@ -49,9 +49,11 @@
:isVisible
.
sync=
"relateVisible"
:isVisible
.
sync=
"relateVisible"
btnOkLabel=
"确定关联"
btnOkLabel=
"确定关联"
width=
"60%"
width=
"60%"
class=
"relate-dialog"
@
confirmDialog=
"handleRelateConfirm"
@
confirmDialog=
"handleRelateConfirm"
@
closeDialog=
"handleRelateClose"
@
closeDialog=
"handleRelateClose"
>
>
<span
slot=
"sub-title"
class=
"relate-sub-title"
>
为园区店关联对应的服务商,一家园区店只能关联一个服务商
</span>
<el-form
<el-form
ref=
"relateDialog"
ref=
"relateDialog"
:model=
"relateForm"
:model=
"relateForm"
...
@@ -62,7 +64,7 @@
...
@@ -62,7 +64,7 @@
label=
"选择关联的园区店:"
label=
"选择关联的园区店:"
prop=
"yqMerchantId"
prop=
"yqMerchantId"
>
>
<el-select
v-model=
"relateForm.yqMerchantId"
>
<el-select
v-model=
"relateForm.yqMerchantId"
filterable
>
<el-option
<el-option
v-for=
"item in baseData.yqList.filter(i => i.merchantName !== '全部')"
v-for=
"item in baseData.yqList.filter(i => i.merchantName !== '全部')"
:key=
"item.merchantId"
:key=
"item.merchantId"
...
@@ -76,7 +78,7 @@
...
@@ -76,7 +78,7 @@
label=
"选择关联的服务商:"
label=
"选择关联的服务商:"
prop=
"merchantId"
prop=
"merchantId"
>
>
<el-select
v-model=
"relateForm.merchantId"
>
<el-select
v-model=
"relateForm.merchantId"
filterable
>
<el-option
<el-option
v-for=
"item in baseData.serviceList.filter(i => i.merchantName !== '全部')"
v-for=
"item in baseData.serviceList.filter(i => i.merchantName !== '全部')"
:key=
"item.merchantId"
:key=
"item.merchantId"
...
@@ -138,18 +140,19 @@ export default {
...
@@ -138,18 +140,19 @@ export default {
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
searchForm
:
{
merchantName
:
''
merchantNameKeyWord
:
''
,
merchantIdKeyWord
:
''
},
},
showFormData
:
[{
showFormData
:
[{
label
:
'商户名称'
,
label
:
'商户名称'
,
name
:
'merchantName'
,
name
:
'merchantName
KeyWord
'
,
type
:
'input'
,
type
:
'input'
,
placeholder
:
'请输入服务商/园区店名称'
,
placeholder
:
'请输入服务商/园区店名称'
,
isClear
:
true
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
keyFn
:
this
.
keyDowmGetList
},
{
},
{
label
:
'商户号'
,
label
:
'商户号'
,
name
:
''
,
name
:
'
merchantIdKeyWord
'
,
type
:
'input'
,
type
:
'input'
,
inputType
:
'number'
,
inputType
:
'number'
,
placeholder
:
'请输入服务商/园区店编号'
,
placeholder
:
'请输入服务商/园区店编号'
,
...
@@ -248,7 +251,8 @@ export default {
...
@@ -248,7 +251,8 @@ export default {
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
merchantName
:
''
merchantNameKeyWord
:
''
,
merchantIdKeyWord
:
''
}
}
},
},
// 新增服务商
// 新增服务商
...
@@ -353,4 +357,8 @@ export default {
...
@@ -353,4 +357,8 @@ export default {
.delete-dialog
.delete-title
{
.delete-dialog
.delete-title
{
font-size
:
16px
;
font-size
:
16px
;
}
}
.relate-dialog
.relate-sub-title
{
font-size
:
12px
;
color
:
#666666
;
}
</
style
>
</
style
>
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