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 6d47ffc1
authored
Apr 25, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分账。bug修复,虚拟账号表单
1 parent
d03bb9ad
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
183 additions
and
149 deletions
src/views/financeManage/financeDetail.vue
src/views/financeManage/financeList.vue
src/views/financeManage/onlineAccount/onlineAccountList.vue
src/views/goods/editCommodity.vue
src/views/systemConfig/account/accountDetail.vue
src/views/systemConfig/account/applyAccount.vue
src/views/systemConfig/account/editForm.vue
src/views/systemConfig/account/glUploadImg.vue
src/views/systemConfig/merchant/divisionRule.vue
src/views/systemConfig/merchant/merchantManage.vue
src/views/systemConfig/merchant/viewDetail.vue
src/views/financeManage/financeDetail.vue
View file @
6d47ffc
...
...
@@ -133,8 +133,8 @@
<td>
{{
detail
.
glProfitMoney
}}
</td>
</tr>
<tr
v-show=
"userInfo.beSuper"
>
<td>
{{
detail
.
franchiseeName
}}
</td>
<td></td>
<td>
{{
detail
.
franchisee
Merchant
Name
}}
</td>
<td>
{{
detail
.
franchiseeMerchantId
}}
</td>
<td>
{{
detail
.
franchiseeProfitPer
}}
%
</td>
<td>
{{
detail
.
franchiseeProfitMoney
}}
</td>
</tr>
...
...
src/views/financeManage/financeList.vue
View file @
6d47ffc
...
...
@@ -143,11 +143,11 @@
</d2-table-header>
<el-table
:data=
"tableData"
row-key=
"
orderCode
"
row-key=
"
uniqueKey
"
:tree-props=
"
{children: 'subOrderProfitAllocations'}"
>
<el-table-column
prop=
"index
Type
"
prop=
"index
Num
"
label=
"序号"
align=
"center"
width=
"80"
...
...
@@ -165,7 +165,7 @@
>
</el-table-column>
<el-table-column
prop=
""
prop=
"
outTradeNo
"
label=
"交易参考号"
align=
"center"
>
...
...
@@ -175,18 +175,16 @@
label=
"商品名称"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
goodsName
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
""
prop=
"
goodsCost
"
label=
"商品成本"
align=
"center"
>
</el-table-column>
<!--
<el-table-column
prop=
"nums"
label=
"件数"
align=
"center"
>
</el-table-column>
-->
</el-table-column>
<el-table-column
...
...
@@ -200,17 +198,6 @@
align=
"center"
>
</el-table-column>
<!--
<el-table-column
prop=
"merchantName"
label=
"流量来源"
width=
"170"
align=
"center"
>
</el-table-column>
-->
<!--
<el-table-column
label=
"收款信息"
align=
"center"
>
-->
<el-table-column
prop=
"payType"
label=
"支付方式"
...
...
@@ -239,7 +226,7 @@
>
</el-table-column>
<el-table-column
prop=
""
prop=
"
allocationMoney
"
label=
"总分账金额"
align=
"center"
>
...
...
@@ -295,6 +282,9 @@
label=
"运营成本(阳光激励费+额外成本)"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
¥
{{
scope
.
row
.
yqIncentiveTotal
+
scope
.
row
.
goodsExtraCost
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"yqGrossProfit"
...
...
@@ -309,13 +299,13 @@
v-show=
"userInfo.beSuper"
>
<el-table-column
prop=
"franchiseeName"
prop=
"franchisee
Merchant
Name"
label=
"分账对象"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
""
prop=
"
franchiseeProfitMoney
"
label=
"分账比例"
align=
"center"
>
...
...
@@ -334,48 +324,6 @@
prop=
"glProfitMoney"
>
</el-table-column>
<!-- <el-table-column
label="分账信息(广联赛讯)"
align="center"
v-show="userInfo.beSuper"
>
<el-table-column
prop="glName"
label="分账对象"
align="center"
>
</el-table-column>
<el-table-column
prop="glProfitMoney"
label="分账金额"
align="center"
>
</el-table-column>
</el-table-column> -->
<!-- <el-table-column
label="成本费用"
align="center"
v-show="userInfo.beSuper"
>
<el-table-column
prop="goodsExtraCost"
label="额外成本"
align="center"
>
</el-table-column>
<el-table-column
prop="yqIncentiveTotal"
label="阳光激励费"
align="center"
>
</el-table-column>
</el-table-column>
<el-table-column
prop="yqGrossProfit"
label="毛利收益"
align="center"
>
</el-table-column> -->
<el-table-column
align=
"center"
label=
"操作"
...
...
@@ -422,7 +370,7 @@ export default {
time
:
''
,
yqMerchantId
:
''
,
merchantId
:
''
,
subO
rderCode
:
''
o
rderCode
:
''
},
showFormData
:
[{
label
:
'按时间'
,
...
...
@@ -454,7 +402,7 @@ export default {
optionsName
:
'storeIdList'
},
{
label
:
'订单编号'
,
name
:
'
subO
rderCode'
,
name
:
'
o
rderCode'
,
type
:
'input'
,
isClear
:
true
,
keyFn
:
this
.
keyDowmGetList
...
...
@@ -534,7 +482,7 @@ export default {
time
:
''
,
yqMerchantId
:
''
,
merchantId
:
''
,
subO
rderCode
:
''
o
rderCode
:
''
}
this
.
userInfo
.
beSuper
&&
(
this
.
baseData
.
storeIdList
=
[])
this
.
getOptionsList
()
...
...
@@ -599,25 +547,18 @@ export default {
...
params
}
// console.log(params)
const
moneyLabels
=
[
'totalPrice'
,
'serviceCharge'
,
'actualIncomeMoney'
,
'shopProfitMoney'
,
'yqProfitMoney'
,
'glProfitMoney'
,
'franchiseeProfitMoney'
,
'goodsExtraCost'
,
'yqIncentiveTotal'
,
'yqGrossProfit'
,
'paidMoney'
,
'sellPrice'
,
'shopCost'
,
'allocationMoney'
]
getList
(
params
).
then
(
res
=>
{
let
temp
=
1
this
.
tableData
=
res
.
list
.
map
((
item
,
index
)
=>
{
item
[
'indexType'
]
=
index
+
(
res
.
pageNum
-
1
)
*
res
.
pageSize
+
1
for
(
const
key
in
item
)
{
if
(
moneyLabels
.
indexOf
(
key
)
>
-
1
&&
typeof
item
[
key
]
===
'number'
)
{
item
[
key
]
=
`¥
${
item
[
key
]}
`
}
item
[
'uniqueKey'
]
=
temp
++
if
(
item
.
hasOwnProperty
(
'subOrderProfitAllocations'
))
{
item
.
subOrderProfitAllocations
.
forEach
(
subItem
=>
{
subItem
[
'uniqueKey'
]
=
temp
++
subItem
=
this
.
numAddPrefix
(
subItem
)
})
}
item
=
this
.
numAddPrefix
(
item
)
return
item
})
this
.
page
.
pageNum
=
res
.
pageNum
...
...
@@ -625,6 +566,27 @@ export default {
this
.
total
=
res
.
total
})
},
numAddPrefix
(
item
)
{
const
moneyLabels
=
[
'goodsCost'
,
'totalPrice'
,
'serviceCharge'
,
'actualIncomeMoney'
,
'shopProfitMoney'
,
'yqProfitMoney'
,
'glProfitMoney'
,
'franchiseeProfitMoney'
,
// 'goodsExtraCost',
// 'yqIncentiveTotal',
'yqGrossProfit'
,
'paidMoney'
,
'sellPrice'
,
'shopCost'
,
'allocationMoney'
]
for
(
const
key
in
item
)
{
if
(
moneyLabels
.
indexOf
(
key
)
>
-
1
)
{
item
[
key
]
=
typeof
item
[
key
]
===
'number'
?
`¥
${
item
[
key
]}
`
:
'-'
}
}
return
item
},
getParams
()
{
var
params
=
{}
if
(
this
.
searchForm
.
yqMerchantId
)
{
...
...
@@ -638,8 +600,8 @@ export default {
params
.
payEndDateStr
=
new
Date
(
this
.
searchForm
.
time
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
if
(
this
.
searchForm
.
subO
rderCode
)
{
params
.
subOrderCode
=
this
.
searchForm
.
subO
rderCode
if
(
this
.
searchForm
.
o
rderCode
)
{
params
.
orderCode
=
this
.
searchForm
.
o
rderCode
}
return
params
},
...
...
src/views/financeManage/onlineAccount/onlineAccountList.vue
View file @
6d47ffc
...
...
@@ -204,9 +204,19 @@ export default {
})
},
getMouthLastDate
(
date
)
{
// console.log(date)
date
=
new
Date
(
date
.
setMonth
(
date
.
getMonth
()
+
1
).
setDate
(
0
))
return
date
},
getParams
()
{
var
params
=
_
.
cloneDeep
(
this
.
searchForm
)
if
(
params
.
divisionDate
&&
params
.
divisionDate
.
length
)
{
// console.log(Util.dateFormate(new Date(new Date().setDate(0)), 'YYYY-MM-DD'))
// params.divisionStartDate = Util.dateFormate(this.getMouthLastDate(params.divisionDate[0]), 'YYYY-MM')
// console.log(params.divisionStartDate)
// params.divisionEndDate = Util.dateFormate(params.divisionDate[1], 'YYYY-MM')
params
.
divisionStartDate
=
Util
.
dateFormate
(
params
.
divisionDate
[
0
],
'YYYY-MM'
)
params
.
divisionEndDate
=
Util
.
dateFormate
(
params
.
divisionDate
[
1
],
'YYYY-MM'
)
delete
params
.
divisionDate
...
...
src/views/goods/editCommodity.vue
View file @
6d47ffc
...
...
@@ -94,7 +94,7 @@ export default {
label
:
''
,
type
:
'span'
},
{
name
:
'
sap
Code'
,
name
:
'
goods
Code'
,
label
:
'编号'
,
type
:
'input'
,
isDisabled
:
true
...
...
src/views/systemConfig/account/accountDetail.vue
View file @
6d47ffc
...
...
@@ -129,20 +129,24 @@ export default {
imgList
:
[
'handIdCard'
],
showAttrList
:
[
'O'
],
type
:
'image'
},
{
label
:
'提现人姓名'
,
prop
:
'contactsName'
},
{
},
// {
// label: '提现人姓名',
// prop: 'contactsName'
// },
{
label
:
'提现人手机号'
,
prop
:
'contactsPhone'
},
{
label
:
'提现人地址'
,
prop
:
'contactsAddr'
,
showAttrList
:
[
'C'
,
'B'
]
},
{
label
:
'提现人邮箱'
,
prop
:
'contactsEmail'
},
{
prop
:
'withdrawPhone'
},
// {
// label: '提现人地址',
// prop: 'contactsAddr',
// showAttrList: ['C', 'B']
// }, {
// label: '提现人邮箱',
// prop: 'contactsEmail'
// },
{
label
:
'银行卡账户类型'
,
prop
:
'bankAccountType'
,
formatter
:
()
=>
{
...
...
src/views/systemConfig/account/applyAccount.vue
View file @
6d47ffc
This diff is collapsed.
Click to expand it.
src/views/systemConfig/account/editForm.vue
View file @
6d47ffc
...
...
@@ -184,7 +184,7 @@ export default {
},
// 确认
handleConfirm
()
{
//
this.$emit('handleConfirm'
)
//
console.log(this.editForm
)
this
.
$refs
.
editFrom
.
validate
((
valid
,
opt
)
=>
{
var
hasError
=
Object
.
keys
(
opt
)
if
(
!
valid
)
{
...
...
src/views/systemConfig/account/glUploadImg.vue
View file @
6d47ffc
...
...
@@ -20,7 +20,7 @@
<span
class=
"img-btns"
>
<span
class=
"btn-item"
>
<i
@
click
.
stop=
'handleRemove(formObj[attrName])'
@
click
.
stop=
'handleRemove(formObj[attrName]
, formObj
)'
class=
"el-icon-delete"
></i>
<i
...
...
@@ -42,6 +42,11 @@
>
</el-upload>
<span
v-if=
"txtDescript"
>
{{
txtDescript
}}
</span>
<p
v-show=
"!picObj[formObj[attrName]].url"
slot=
"errorTips"
class=
"car-error-txt"
>
请上传
{{
txtDescript
}}
</p>
<el-dialog
:visible
.
sync=
"lookImgVisible"
>
<img
width=
"100%"
...
...
@@ -71,7 +76,7 @@ export default {
// 标记拿绑定哪个属性
attrName
:
{
type
:
String
,
default
:
'
n
ame'
default
:
'
slotN
ame'
},
// 图片绑定的属性
picObj
:
{
...
...
@@ -101,8 +106,8 @@ export default {
this
.
$emit
(
'handleImgChange'
,
{
file
:
file
,
attrName
:
attrName
,
targetItem
:
targetItem
})
},
handlePreview
()
{
},
handleRemove
(
attrName
)
{
this
.
$emit
(
'handleImgRemove'
,
{
attrName
:
attrName
})
handleRemove
(
attrName
,
targetItem
)
{
this
.
$emit
(
'handleImgRemove'
,
{
attrName
:
attrName
,
targetItem
:
targetItem
})
}
}
}
...
...
@@ -156,4 +161,9 @@ export default {
.gl-upload-img
.el-upload--picture-card
i
{
color
:
#fff
;
}
.gl-upload-img
.car-error-txt
{
font-size
:
12px
;
line-height
:
6px
;
margin
:
0
0
;
}
</
style
>
src/views/systemConfig/merchant/divisionRule.vue
View file @
6d47ffc
...
...
@@ -122,7 +122,7 @@
<tr>
<td
class=
"p-b-20"
>
<p>
默认:嘀加智慧云
</p>
<p>
服务商:
{{
merchantInfo
.
partnerMerchant
?
merchantInfo
.
partnerMerchant
.
merchantName
:
''
}}{{
merchantInfo
.
partnerMerchant
?
(
'('
+
merchantInfo
.
partnerMerchant
.
merchantId
+
')'
)
:
''
}}
</p>
<p
v-show=
"merchantInfo.partnerMerchant"
>
服务商:
{{
merchantInfo
.
partnerMerchant
?
merchantInfo
.
partnerMerchant
.
merchantName
:
''
}}{{
merchantInfo
.
partnerMerchant
?
(
'('
+
merchantInfo
.
partnerMerchant
.
merchantId
+
')'
)
:
''
}}
</p>
<p>
4S店:
{{
merchantInfo
.
merchantName
}}
</p>
</td>
...
...
@@ -130,6 +130,7 @@
<el-radio-group
v-model=
"djDivisionDefalut"
>
<el-radio
:label=
"1"
></el-radio>
<el-radio
v-show=
"merchantInfo.partnerMerchant"
disabled
:label=
"2"
></el-radio>
...
...
@@ -146,7 +147,10 @@
>
<el-radio-group
v-model=
"form.shopProfitDivisionFlag"
>
<el-radio
:label=
"1"
></el-radio>
<el-radio
:label=
"2"
></el-radio>
<el-radio
v-show=
"merchantInfo.partnerMerchant"
:label=
"2"
></el-radio>
<el-radio
:label=
"3"
></el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -158,7 +162,7 @@
>
<el-radio-group
v-model=
"form.partnerProfitDivisionFlag"
>
<el-radio
:label=
"1"
></el-radio>
<el-radio
:label=
"2"
></el-radio>
<el-radio
v-show=
"merchantInfo.partnerMerchant"
:label=
"2"
></el-radio>
<el-radio
:label=
"3"
></el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -170,7 +174,7 @@
>
<el-radio-group
v-model=
"form.goodsCostDivisionFlag"
>
<el-radio
:label=
"1"
></el-radio>
<el-radio
:label=
"2"
></el-radio>
<el-radio
v-show=
"merchantInfo.partnerMerchant"
:label=
"2"
></el-radio>
<el-radio
:label=
"3"
></el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -182,7 +186,7 @@
>
<el-radio-group
v-model=
"form.extraCostDivisionFlag"
>
<el-radio
:label=
"1"
></el-radio>
<el-radio
:label=
"2"
></el-radio>
<el-radio
v-show=
"merchantInfo.partnerMerchant"
:label=
"2"
></el-radio>
<el-radio
:label=
"3"
></el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -194,7 +198,7 @@
>
<el-radio-group
v-model=
"form.incentiveCostDivisionFlag"
>
<el-radio
:label=
"1"
></el-radio>
<el-radio
:label=
"2"
></el-radio>
<el-radio
v-show=
"merchantInfo.partnerMerchant"
:label=
"2"
></el-radio>
<el-radio
:label=
"3"
></el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -243,7 +247,8 @@ export default {
partnerProfitDivisionFlag
:
''
,
goodsCostDivisionFlag
:
''
,
extraCostDivisionFlag
:
''
,
incentiveCostDivisionFlag
:
''
incentiveCostDivisionFlag
:
''
,
smsCode
:
''
},
djDivisionDefalut
:
1
,
rules
:
{
...
...
@@ -337,10 +342,10 @@ export default {
this
.
$refs
.
divisionRuleRef
.
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
{
...
this
.
form
,
merchantId
:
this
.
merchantInfo
.
merchantId
,
channelType
:
this
.
merchantInfo
.
channelType
,
settleTime
:
this
.
settleTimeObj
[
this
.
form
.
settleTimeType
===
1
?
'first'
:
'second'
],
...
this
.
form
settleTime
:
this
.
settleTimeObj
[
this
.
form
.
settleTimeType
===
1
?
'first'
:
'second'
]
}
// console.log(params)
updateDivisionRuleApi
(
params
).
then
(
res
=>
{
...
...
src/views/systemConfig/merchant/merchantManage.vue
View file @
6d47ffc
...
...
@@ -118,7 +118,7 @@
<d2-dialog
title=
"查看详情"
:isVisible
.
sync=
"viewDetailVisible"
width=
"
70%
"
width=
"
900px
"
btnOkLabel=
"确定"
noCancel=
"true"
@
confirmDialog=
"handleViewClose"
...
...
@@ -133,8 +133,9 @@
name=
"first"
>
<view-detail
v-if=
"viewDetailVisible"
:viewDetailVisible=
"viewDetailVisible"
:
viewDetailData
=
"viewDetailData"
:
merchantInfo
=
"viewDetailData"
></view-detail>
</el-tab-pane>
<el-tab-pane
...
...
src/views/systemConfig/merchant/viewDetail.vue
View file @
6d47ffc
...
...
@@ -11,26 +11,40 @@
<span
v-else
>
每月
{{
form
.
settleTime
}}
号
</span>
</el-col>
</el-row>
<p>
金额分配设置:
</p>
<el-row
v-show=
"hasDivision"
>
<el-col
:span=
"3"
>
<p>
金额分配设置:
</p>
</el-col>
<el-col
:span=
"21"
>
<p><span
class=
"blue"
>
嘀加智慧云:
</span>
嘀加分账金额
<span
v-show=
"divisionList.dj.length"
>
,
{{
divisionList
.
dj
.
join
(
','
)
}}
</span>
</p>
<p
v-show=
"divisionList.partnerMerchant.length"
>
<span
class=
"blue"
>
{{
merchantInfo
.
partnerMerchant
?
merchantInfo
.
partnerMerchant
.
merchantName
:
''
}}{{
merchantInfo
.
partnerMerchant
?
(
'('
+
merchantInfo
.
partnerMerchant
.
merchantId
+
')'
)
:
''
}}
:
</span>
{{
divisionList
.
partnerMerchant
.
join
(
','
)
}}
</p>
<p
v-show=
"divisionList.merchant.length"
><span
class=
"blue"
>
{{
merchantInfo
.
merchantName
}}
:
</span>
{{
divisionList
.
merchant
.
join
(
','
)
}}
</p>
</el-col>
</el-row>
<p
class=
"edit-sub-title"
>
导流方(4S店)基础信息
</p>
<table
cellpadding=
'0'
cellspacing=
'0'
>
<tr>
<th>
商户编号:
{{
viewDetailData
.
merchantId
}}
</th>
<th>
商户名称:
{{
viewDetailData
.
merchantName
}}
</th>
<th>
联系人:
{{
viewDetailData
.
merchant
?
viewDetailData
.
merchant
.
contactName
:
''
}}
</th>
<th>
联系电话:
{{
viewDetailData
.
merchant
?
viewDetailData
.
merchant
.
phone
:
''
}}
</th>
<th>
商户编号:
{{
merchantInfo
.
merchantId
}}
</th>
<th>
商户名称:
{{
merchantInfo
.
merchantName
}}
</th>
<th>
联系人:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
contactName
:
''
}}
</th>
<th>
联系电话:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
phone
:
''
}}
</th>
</tr>
<tr>
<td
colspan=
"3"
>
地址:
{{
needTransformObj
.
addr
}}
</td>
<td>
创建时间:
{{
needTransformObj
.
createdDate
}}
</td>
</tr>
<tr>
<td>
登录账户:
{{
viewDetailData
.
merchant
?
viewDetailData
.
merchant
.
accountName
:
''
}}
</td>
<td>
商户类型:
{{
baseData
[
viewDetailData
.
channelType
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
viewDetailData
.
userType
]
}}
</td>
<td>
商户分类:
{{
viewDetailData
.
merchantType
?
baseData
.
merchantClassifyList
.
find
(
item
=>
item
.
confId
===
viewDetailData
.
merchantType
).
confLabel
:
''
}}
</td>
<td>
登录账户:
{{
merchantInfo
.
merchant
?
merchantInfo
.
merchant
.
accountName
:
''
}}
</td>
<td>
商户类型:
{{
baseData
[
merchantInfo
.
channelType
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
merchantInfo
.
userType
]
}}
</td>
<td>
商户分类:
{{
merchantInfo
.
merchantType
?
baseData
.
merchantClassifyList
.
find
(
item
=>
item
.
confId
===
merchantInfo
.
merchantType
).
confLabel
:
''
}}
</td>
<td>
阳光激励费:
</td>
</tr>
</table>
...
...
@@ -59,10 +73,10 @@
cellspacing=
'0'
>
<tr>
<th>
园区店编号:
{{
viewDetailData
.
yqMerchant
?
viewDetailData
.
yqMerchant
.
merchantId
:
''
}}
</th>
<th>
园区店名称:
{{
viewDetailData
.
yqMerchant
?
viewDetailData
.
yqMerchant
.
merchantName
:
''
}}
</th>
<th>
联系人:
{{
viewDetailData
.
yqMerchant
?
viewDetailData
.
yqMerchant
.
contactName
:
''
}}
</th>
<th>
联系电话:
{{
viewDetailData
.
yqMerchant
?
viewDetailData
.
yqMerchant
.
phone
:
''
}}
</th>
<th>
园区店编号:
{{
merchantInfo
.
yqMerchant
?
merchantInfo
.
yqMerchant
.
merchantId
:
''
}}
</th>
<th>
园区店名称:
{{
merchantInfo
.
yqMerchant
?
merchantInfo
.
yqMerchant
.
merchantName
:
''
}}
</th>
<th>
联系人:
{{
merchantInfo
.
yqMerchant
?
merchantInfo
.
yqMerchant
.
contactName
:
''
}}
</th>
<th>
联系电话:
{{
merchantInfo
.
yqMerchant
?
merchantInfo
.
yqMerchant
.
phone
:
''
}}
</th>
</tr>
<tr>
<td
colspan=
"3"
>
地址:
{{
needTransformObj
.
yqAddr
}}
</td>
...
...
@@ -80,10 +94,10 @@
cellspacing=
'0'
>
<tr>
<th>
商户编号:
{{
viewDetailData
.
partnerMerchant
?
viewDetailData
.
partnerMerchant
.
merchantId
:
''
}}
</th>
<th>
商户名称:
{{
viewDetailData
.
partnerMerchant
?
viewDetailData
.
partnerMerchant
.
merchantName
:
''
}}
</th>
<th>
联系人:
{{
viewDetailData
.
partnerMerchant
?
viewDetailData
.
partnerMerchant
.
contactName
:
''
}}
</th>
<th>
联系电话:
{{
viewDetailData
.
partnerMerchant
?
viewDetailData
.
partnerMerchant
.
phone
:
''
}}
</th>
<th>
商户编号:
{{
merchantInfo
.
partnerMerchant
?
merchantInfo
.
partnerMerchant
.
merchantId
:
''
}}
</th>
<th>
商户名称:
{{
merchantInfo
.
partnerMerchant
?
merchantInfo
.
partnerMerchant
.
merchantName
:
''
}}
</th>
<th>
联系人:
{{
merchantInfo
.
partnerMerchant
?
merchantInfo
.
partnerMerchant
.
contactName
:
''
}}
</th>
<th>
联系电话:
{{
merchantInfo
.
partnerMerchant
?
merchantInfo
.
partnerMerchant
.
phone
:
''
}}
</th>
</tr>
<tr>
<td
colspan=
"3"
>
地址:
{{
needTransformObj
.
parentAddr
}}
</td>
...
...
@@ -131,11 +145,25 @@ export default {
parentAddr
:
''
,
parentCreatedDate
:
''
},
DivisionFlagToTxt
:
{
1
:
'嘀加智慧云'
,
2
:
'服务商'
,
3
:
'4S店'
// DivisionFlagToTxt: {
// 1: '嘀加智慧云',
// 2: '服务商',
// 3: '4S店'
// },
// dj - 嘀加智慧云;partnerMerchant:服务商;merchant - 4S店
divisionList
:
{
dj
:
[],
partnerMerchant
:
[],
merchant
:
[]
},
flagTodivisionObj
:
{
shopProfitDivisionFlag
:
'4S店分账金额'
,
partnerProfitDivisionFlag
:
'服务商分账金额'
,
goodsCostDivisionFlag
:
'商品成本'
,
extraCostDivisionFlag
:
'额外成本'
,
incentiveCostDivisionFlag
:
'激励费'
},
hasDivision
:
false
,
// 分账列表
settleRuleList
:
[],
baseData
:
{
...
...
@@ -158,7 +186,7 @@ export default {
type
:
Boolean
,
default
:
false
},
viewDetailData
:
{
merchantInfo
:
{
type
:
Object
,
default
:
()
=>
{
}
}
...
...
@@ -176,20 +204,31 @@ export default {
methods
:
{
getDetail
()
{
console
.
log
(
this
.
viewDetailData
)
console
.
log
(
this
.
merchantInfo
)
this
.
needTransformObj
=
{
addr
:
this
.
viewDetailData
.
merchant
?
((
this
.
viewDetailData
.
merchant
.
provinceName
||
''
)
+
(
this
.
viewDetailData
.
merchant
.
cityName
||
''
)
+
(
this
.
viewDetailData
.
merchant
.
areaName
||
''
)
+
(
this
.
viewDetailData
.
merchant
.
address
||
''
))
:
''
,
createdDate
:
Util
.
dateFormate
(
this
.
viewDetailData
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
||
''
,
yqAddr
:
this
.
viewDetailData
.
yqMerchant
?
((
this
.
viewDetailData
.
yqMerchant
.
provinceName
||
''
)
+
(
this
.
viewDetailData
.
yqMerchant
.
cityName
||
''
)
+
(
this
.
viewDetailData
.
yqMerchant
.
areaName
||
''
)
+
(
this
.
viewDetailData
.
yqMerchant
.
address
||
''
))
:
''
,
yqCreatedDate
:
this
.
viewDetailData
.
yqMerchant
?
(
this
.
viewDetailData
.
yqMerchant
.
createdDate
?
Util
.
dateFormate
(
this
.
viewDetailData
.
yqMerchant
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
)
:
''
,
parentAddr
:
this
.
viewDetailData
.
partnerMerchant
?
((
this
.
viewDetailData
.
partnerMerchant
.
provinceName
||
''
)
+
(
this
.
viewDetailData
.
partnerMerchant
.
cityName
||
''
)
+
(
this
.
viewDetailData
.
partnerMerchant
.
areaName
||
''
)
+
(
this
.
viewDetailData
.
partnerMerchant
.
address
||
''
))
:
''
,
parentCreatedDate
:
this
.
viewDetailData
.
partnerMerchant
?
(
this
.
viewDetailData
.
partnerMerchant
.
createdDate
?
Util
.
dateFormate
(
this
.
viewDetailData
.
partnerMerchant
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
)
:
''
addr
:
this
.
merchantInfo
.
merchant
?
((
this
.
merchantInfo
.
merchant
.
provinceName
||
''
)
+
(
this
.
merchantInfo
.
merchant
.
cityName
||
''
)
+
(
this
.
merchantInfo
.
merchant
.
areaName
||
''
)
+
(
this
.
merchantInfo
.
merchant
.
address
||
''
))
:
''
,
createdDate
:
Util
.
dateFormate
(
this
.
merchantInfo
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
||
''
,
yqAddr
:
this
.
merchantInfo
.
yqMerchant
?
((
this
.
merchantInfo
.
yqMerchant
.
provinceName
||
''
)
+
(
this
.
merchantInfo
.
yqMerchant
.
cityName
||
''
)
+
(
this
.
merchantInfo
.
yqMerchant
.
areaName
||
''
)
+
(
this
.
merchantInfo
.
yqMerchant
.
address
||
''
))
:
''
,
yqCreatedDate
:
this
.
merchantInfo
.
yqMerchant
?
(
this
.
merchantInfo
.
yqMerchant
.
createdDate
?
Util
.
dateFormate
(
this
.
merchantInfo
.
yqMerchant
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
)
:
''
,
parentAddr
:
this
.
merchantInfo
.
partnerMerchant
?
((
this
.
merchantInfo
.
partnerMerchant
.
provinceName
||
''
)
+
(
this
.
merchantInfo
.
partnerMerchant
.
cityName
||
''
)
+
(
this
.
merchantInfo
.
partnerMerchant
.
areaName
||
''
)
+
(
this
.
merchantInfo
.
partnerMerchant
.
address
||
''
))
:
''
,
parentCreatedDate
:
this
.
merchantInfo
.
partnerMerchant
?
(
this
.
merchantInfo
.
partnerMerchant
.
createdDate
?
Util
.
dateFormate
(
this
.
merchantInfo
.
partnerMerchant
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
)
:
''
}
getDivisionRuleApi
({
merchantId
:
this
.
viewDetailData
.
merchantId
}).
then
(
res
=>
{
getDivisionRuleApi
({
merchantId
:
this
.
merchantInfo
.
merchantId
}).
then
(
res
=>
{
this
.
hasDivision
=
!!
res
Object
.
assign
(
this
.
form
,
res
)
var
flagList
=
Object
.
keys
(
this
.
flagTodivisionObj
)
var
numToDivisionList
=
{
1
:
'dj'
,
2
:
'partnerMerchant'
,
3
:
'merchant'
}
res
&&
flagList
.
forEach
(
item
=>
{
this
.
divisionList
[
numToDivisionList
[
res
[
item
]]].
push
(
this
.
flagTodivisionObj
[
item
])
})
console
.
log
(
this
.
divisionList
)
})
getAccountRule
({
'merchantId'
:
this
.
viewDetailData
.
merchantId
}).
then
(
res
=>
{
console
.
log
(
res
)
getAccountRule
({
'merchantId'
:
this
.
merchantInfo
.
merchantId
}).
then
(
res
=>
{
//
console.log(res)
if
(
res
)
{
this
.
settleRuleList
=
res
.
goodsTypeSettleRuleList
this
.
settleRuleList
.
unshift
({
...
...
@@ -238,4 +277,7 @@ table td {
.txt-center
td
{
text-align
:
center
;
}
.blue
{
color
:
#0947c6
;
}
</
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