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 37aed453
authored
Jun 29, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
财务,我的分账
1 parent
12715c1c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
68 additions
and
34 deletions
src/common/validator.js
src/views/financeManage/account/offlineAccountList.vue
src/views/financeManage/account/onlineAccountList.vue
src/views/financeManage/account/serviceAccount/serviceOfflineList.vue
src/views/financeManage/account/serviceAccount/serviceOnlineList.vue
src/views/systemConfig/merchant/merchantManage.vue
src/views/systemConfig/merchant/merchantStep/index.vue
src/views/systemConfig/merchant/merchantStep/stepOne.vue
src/views/systemConfig/merchant/merchantStep/stepThree.vue
src/common/validator.js
View file @
37aed45
...
...
@@ -67,7 +67,7 @@ export const Validator = {
51
:
'四川'
,
52
:
'贵州'
,
53
:
'云南'
,
54
:
'西藏
'
,
54
:
'西藏'
,
61
:
'陕西'
,
62
:
'甘肃'
,
63
:
'青海'
,
...
...
src/views/financeManage/account/offlineAccountList.vue
View file @
37aed45
...
...
@@ -52,12 +52,16 @@
label=
"子订单编号"
prop=
"subOrderCode"
align=
"center"
></el-table-column>
>
<span
slot-scope=
"scope"
>
{{
scope
.
row
.
goodsSubOrder
?
scope
.
row
.
goodsSubOrder
.
subOrderCode
:
''
}}
</span>
</el-table-column>
<el-table-column
label=
"商品名"
prop=
""
align=
"center"
></el-table-column>
>
<span
slot-scope=
"scope"
>
{{
scope
.
row
.
goodsSubOrder
?
scope
.
row
.
goodsSubOrder
.
upgradeGoodsName
:
''
}}
</span>
</el-table-column>
<el-table-column
label=
"分账类型"
align=
"center"
...
...
@@ -93,7 +97,9 @@
label=
"总分账金额"
prop=
""
align=
"center"
></el-table-column>
>
<span
slot-scope=
"scope"
>
{{'¥' + scope.row.divisionMoney}}
</span>
</el-table-column>
<el-table-column
label=
"嘀加智慧云实际分账金额"
prop=
"glDivisionMoney"
...
...
@@ -101,7 +107,7 @@
width=
"100px"
>
<
template
slot-scope=
"scope"
>
{{
(
scope
.
row
.
glDivisionMoney
-
(
scope
.
row
.
fee
||
0
)).
toFixed
(
2
)
==
0
?
'-'
:
(
'¥'
+
(
scope
.
row
.
glDivisionMoney
-
(
scope
.
row
.
fee
||
0
)).
toFixed
(
2
))
}}
{{
scope
.
row
.
glDivisionMoney
?
(
'¥'
+
scope
.
row
.
glDivisionMoney
)
:
'-'
}}
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -113,14 +119,16 @@
prop=
"partnerMerchantName"
align=
"center"
width=
"100px"
></el-table-column>
>
<span
slot-scope=
"scope"
>
{{scope.row.partnerMerchantName}}
</span>
</el-table-column>
<el-table-column
label=
"实际分账金额"
prop=
"partnerDivisionMoney"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
partnerDivisionMoney
===
0
?
'-'
:
(
'¥'
+
scope
.
row
.
partnerDivisionMoney
)
}}
</span>
<span>
{{
scope
.
row
.
partnerDivisionMoney
?
(
'¥'
+
scope
.
row
.
partnerDivisionMoney
)
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
...
...
@@ -140,7 +148,7 @@
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
shopDivisionMoney
===
0
?
'-'
:
(
'¥'
+
scope
.
row
.
shopDivisionMoney
)
}}
</span>
<span>
{{
scope
.
row
.
shopDivisionMoney
?
(
'¥'
+
scope
.
row
.
shopDivisionMoney
)
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
...
...
@@ -155,7 +163,7 @@
prop=
"orderType"
align=
"center"
>
<span
slot-scope=
"scope"
>
{{scope.row.
orderType ? baseData.orderTypeList.find(item => +item.confId === scope.row.orderType).confLabel : '
'}}
</span>
<span
slot-scope=
"scope"
>
{{scope.row.
goodsOrder ? baseData.orderTypeList.find(item => +item.confId === scope.row.goodsOrder.orderType).confLabel : '-
'}}
</span>
</el-table-column>
</el-table>
<el-pagination
...
...
@@ -178,6 +186,7 @@ import { Util } from '@/common/util'
import
{
mapActions
}
from
'vuex'
import
{
getParkStore
}
from
'@api/editCustomer'
import
{
getListApi
,
getCountApi
,
exportApi
}
from
'@/api/account'
import
{
orderTypeList
}
from
'@/common/constants.js'
export
default
{
name
:
'offlineAccountList'
,
data
()
{
...
...
@@ -244,7 +253,8 @@ export default {
},
total
:
0
,
baseData
:
{
parkServiceList
:
[]
parkServiceList
:
[],
orderTypeList
:
_
.
cloneDeep
(
orderTypeList
)
}
}
},
...
...
@@ -318,7 +328,7 @@ export default {
this
.
tableList
=
res
.
list
this
.
total
=
res
.
total
this
.
tableList
.
forEach
(
item
=>
{
item
.
successDateStr
=
item
.
successDate
?
Util
.
dateFormate
(
item
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
item
.
successDateStr
=
item
.
payOrder
?
Util
.
dateFormate
(
item
.
payOrder
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
})
})
},
...
...
src/views/financeManage/account/onlineAccountList.vue
View file @
37aed45
...
...
@@ -50,14 +50,18 @@
></el-table-column>
<el-table-column
label=
"子订单编号"
prop=
"
subOrderCode
"
prop=
""
align=
"center"
></el-table-column>
>
<span
slot-scope=
"scope"
>
{{
scope
.
row
.
goodsSubOrder
?
scope
.
row
.
goodsSubOrder
.
subOrderCode
:
'-'
}}
</span>
</el-table-column>
<el-table-column
label=
"商品名"
prop=
""
align=
"center"
></el-table-column>
>
<span
slot-scope=
"scope"
>
{{
scope
.
row
.
goodsSubOrder
?
scope
.
row
.
goodsSubOrder
.
upgradeGoodsName
:
'-'
}}
</span>
</el-table-column>
<el-table-column
label=
"分账类型"
align=
"center"
...
...
@@ -93,7 +97,9 @@
label=
"总分账金额"
prop=
""
align=
"center"
></el-table-column>
>
<span
slot-scope=
"scope"
>
{{'¥' + scope.row.divisionMoney}}
</span>
</el-table-column>
<el-table-column
label=
"嘀加智慧云实际分账金额"
prop=
"glDivisionMoney"
...
...
@@ -101,7 +107,7 @@
width=
"100px"
>
<
template
slot-scope=
"scope"
>
{{
(
scope
.
row
.
glDivisionMoney
-
(
scope
.
row
.
fee
||
0
)).
toFixed
(
2
)
==
0
?
'-'
:
(
'¥'
+
(
scope
.
row
.
glDivisionMoney
-
(
scope
.
row
.
fee
||
0
)).
toFixed
(
2
))
}}
{{
scope
.
row
.
glDivisionMoney
?
(
'¥'
+
scope
.
row
.
glDivisionMoney
)
:
'-'
}}
</
template
>
</el-table-column>
<el-table-column
...
...
@@ -120,7 +126,7 @@
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
partnerDivisionMoney
===
0
?
'-'
:
(
'¥'
+
scope
.
row
.
partnerDivisionMoney
)
}}
</span>
<span>
{{
scope
.
row
.
partnerDivisionMoney
?
(
'¥'
+
scope
.
row
.
partnerDivisionMoney
)
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
...
...
@@ -140,7 +146,7 @@
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
shopDivisionMoney
===
0
?
'-'
:
(
'¥'
+
scope
.
row
.
shopDivisionMoney
)
}}
</span>
<span>
{{
scope
.
row
.
shopDivisionMoney
?
(
'¥'
+
scope
.
row
.
shopDivisionMoney
)
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
...
...
@@ -174,7 +180,7 @@
prop=
"orderType"
align=
"center"
>
<span
slot-scope=
"scope"
>
{{scope.row.
orderType ? baseData.orderTypeList.find(item => +item.confId === scope.row.orderType).confLabel : '
'}}
</span>
<span
slot-scope=
"scope"
>
{{scope.row.
goodsOrder ? baseData.orderTypeList.find(item => +item.confId === scope.row.goodsOrder.orderType).confLabel : '-
'}}
</span>
</el-table-column>
</el-table>
<el-pagination
...
...
src/views/financeManage/account/serviceAccount/serviceOfflineList.vue
View file @
37aed45
...
...
@@ -115,7 +115,10 @@ export default {
prop
:
'tradeNo'
},
{
label
:
'子订单编号'
,
prop
:
'subOrderCode'
prop
:
''
,
formatter
:
cellValue
=>
{
return
cellValue
.
goodsSubOrder
?
cellValue
.
goodsSubOrder
.
subOrderCode
:
''
}
},
{
label
:
'园区店名'
,
prop
:
'yqMerchantName'
...
...
src/views/financeManage/account/serviceAccount/serviceOnlineList.vue
View file @
37aed45
...
...
@@ -175,7 +175,10 @@ export default {
prop
:
'tradeNo'
},
{
label
:
'子订单编号'
,
prop
:
'subOrderCode'
prop
:
''
,
formatter
:
cellValue
=>
{
return
cellValue
.
goodsSubOrder
?
cellValue
.
goodsSubOrder
.
subOrderCode
:
''
}
},
{
label
:
'园区店名'
,
prop
:
'yqMerchantName'
...
...
@@ -192,12 +195,7 @@ export default {
},
{
label
:
'实际分账金额(元)'
,
prop
:
''
},
// {
// label: '总分账金额(元)',
// prop: 'partnerDivisionMoney'
// },
{
},
{
label
:
'分账状态'
,
prop
:
'divisionStatus'
,
width
:
'110px'
,
...
...
src/views/systemConfig/merchant/merchantManage.vue
View file @
37aed45
...
...
@@ -164,7 +164,7 @@ import viewDetail from './viewDetail'
import
{
getList
,
deleteMerchant
,
serviceGetMerchantList
,
addServiceMerchant
,
getPartnerByYq
}
from
'@api/merchant'
import
{
mapActions
}
from
'vuex'
import
{
getParkStore
}
from
'@api/editCustomer'
import
{
BaseData
,
userTypeList
,
ghUserTypeList
,
merchantClassifyList
,
divisionTypeList
}
from
'@/common/constants.js'
import
{
BaseData
,
userTypeList
,
ghUserTypeList
,
merchantClassifyList
}
from
'@/common/constants.js'
export
default
{
name
:
'merchantManage'
,
data
()
{
...
...
@@ -200,12 +200,12 @@ export default {
keyFn
:
this
.
keyDowmGetList
},
{
label
:
'分账类型'
,
name
:
'
divisionType
'
,
name
:
'
autoFlag
'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'
divisionType
List'
optionsName
:
'
autoFlag
List'
}],
getListApi
:
getList
,
tableParams
:
{
...
...
@@ -291,7 +291,13 @@ export default {
channelTypeList
:
[],
userTypeList
:
[],
merchantClassifyList
:
merchantClassifyList
,
divisionTypeList
:
divisionTypeList
autoFlagList
:
[{
confId
:
'Y'
,
confLabel
:
'开启'
},
{
confId
:
'N'
,
confLabel
:
'关闭'
}]
}
}
},
...
...
src/views/systemConfig/merchant/merchantStep/index.vue
View file @
37aed45
...
...
@@ -252,7 +252,7 @@ export default {
changeParentVal
(
obj
)
{
this
[
obj
.
attrName
]
=
obj
.
value
if
(
obj
.
ruleForm
===
'ruleForm'
)
{
if
(
obj
.
attrName
===
'ruleForm'
)
{
this
.
handleStep
(
this
.
ruleForm
.
progress
)
}
},
...
...
src/views/systemConfig/merchant/merchantStep/stepOne.vue
View file @
37aed45
...
...
@@ -275,7 +275,8 @@
</
template
>
<
script
>
import
{
userType
,
ghUserType
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
import
{
BaseData
,
userType
,
ghUserType
}
from
'@/common/constants.js'
import
{
getAccountRule
,
updateRule
}
from
'@api/merchant'
export
default
{
name
:
'stepOne'
,
...
...
@@ -342,9 +343,18 @@ export default {
}
},
mounted
()
{
},
mounted
()
{
this
.
getRule
()
this
.
getBaseData
()
},
methods
:
{
...
mapActions
({
get
:
'd2admin/base/get'
}),
async
getBaseData
()
{
this
.
baseData
.
productTypeList
=
_
.
cloneDeep
(
await
this
.
get
(
BaseData
.
productType
))
},
getRule
()
{
console
.
log
(
this
.
form
.
merchantId
)
getAccountRule
({
'merchantId'
:
this
.
form
.
merchantId
}).
then
(
res
=>
{
...
...
src/views/systemConfig/merchant/merchantStep/stepThree.vue
View file @
37aed45
...
...
@@ -305,6 +305,7 @@ export default {
console
.
log
(
this
.
moneyForm
)
moneyValidApi
({
...
this
.
moneyForm
,
merchantId
:
this
.
merchantInfo
.
merchantId
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
notice
.
okTips
()
this
.
$emit
(
'changeParentVal'
,
{
attrName
:
'ruleForm'
,
value
:
res
})
})
}
...
...
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