Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-finance
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 125db45b
authored
Apr 27, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复第一轮测试BUG
1 parent
68910570
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
16 deletions
package-lock.json
package.json
src/api/modules/public.js
src/utils/chaining.js
src/views/financeManage/financeDetail.vue
src/views/financeManage/index.vue
src/views/serviceAccount/components/offlineAccountList.vue
src/views/serviceAccount/components/onlineAccountList.vue
package-lock.json
View file @
125db45
...
@@ -6510,9 +6510,9 @@
...
@@ -6510,9 +6510,9 @@
}
}
},
},
"glsx-common"
:
{
"glsx-common"
:
{
"version"
:
"2.
0.9
"
,
"version"
:
"2.
1.0
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-common/-/glsx-common-2.
0.9
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-common/-/glsx-common-2.
1.0
.tgz"
,
"integrity"
:
"sha512-
d4C404dGtp9fS4r4phi79ozuwleJd326xtfUqokiSs7Y7Zw7bn0Nza5UHHRuIHQettccjVOr18BNf7yG/cKuww
=="
,
"integrity"
:
"sha512-
wlUFgrZkJODh5MNpnVaT2zswkep1BUnvRgyhUABp2mDrt7d8yemnrdDYCfuBSWT7LCn+httSEieOEtm2XSlc0Q
=="
,
"requires"
:
{
"requires"
:
{
"axios"
:
"^0.21.3"
,
"axios"
:
"^0.21.3"
,
"md5"
:
"^2.3.0"
,
"md5"
:
"^2.3.0"
,
...
...
package.json
View file @
125db45
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"dayjs"
:
"^1.10.7"
,
"dayjs"
:
"^1.10.7"
,
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^2.
0.9
"
,
"glsx-common"
:
"^2.
1.0
"
,
"glsx-components"
:
"^1.2.5"
,
"glsx-components"
:
"^1.2.5"
,
"rfdc"
:
"^1.3.0"
,
"rfdc"
:
"^1.3.0"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
...
...
src/api/modules/public.js
View file @
125db45
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
//
const path = 'dj.api.smartcarlife.'
const
path
=
'dj.api.smartcarlife.'
const
path2
=
'dj.api.'
const
path2
=
'dj.api.'
/** 获取园区店列表 - 园区店 */
/** 获取园区店列表 - 园区店 */
...
@@ -15,6 +15,18 @@ const getParkStore = params => {
...
@@ -15,6 +15,18 @@ const getParkStore = params => {
})
})
}
}
// 获取当前登录账号可见的园区店列表
const
getyqMerchantList
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
routerMethod
=
`
${
path
}
permission.yqMerchant.list`
return
http
({
url
:
'rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
/** 获取园区店列表 - 流量来源 */
/** 获取园区店列表 - 流量来源 */
const
getServiceStore
=
params
=>
{
const
getServiceStore
=
params
=>
{
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
params
.
method
=
`scrm.api.boutiquecoupon.rop.router.twoCityTale`
...
@@ -39,4 +51,4 @@ const getChannelType = params => {
...
@@ -39,4 +51,4 @@ const getChannelType = params => {
})
})
}
}
export
default
{
getParkStore
,
getServiceStore
,
getChannelType
}
export
default
{
getParkStore
,
getServiceStore
,
getChannelType
,
getyqMerchantList
}
src/utils/chaining.js
View file @
125db45
export
const
optionalChaining
=
(
obj
,
...
rest
)
=>
{
export
const
optionalChaining
=
(
obj
,
...
rest
)
=>
{
return
rest
.
reduce
((
newObj
,
key
)
=>
newObj
?.[
key
],
obj
)
return
rest
.
reduce
((
newObj
,
key
)
=>
newObj
?.[
key
],
obj
)
||
''
}
}
src/views/financeManage/financeDetail.vue
View file @
125db45
...
@@ -145,7 +145,8 @@
...
@@ -145,7 +145,8 @@
车型
车型
</td>
</td>
<td>
<td>
{{
$$
(
detail
.
goodsOrder
,
'customer'
,
'carBrand'
)
+
' - '
+
$$
(
detail
.
goodsOrder
,
'customer'
,
'carChildsBrandName'
)
+
' - '
+
$$
(
detail
.
goodsOrder
,
'customer'
,
'carSeriesName'
)
}}
<!--
{{
$$
(
detail
.
goodsOrder
,
'customer'
,
'carBrand'
)
+
' - '
+
$$
(
detail
.
goodsOrder
,
'customer'
,
'carChildsBrandName'
)
+
' - '
+
$$
(
detail
.
goodsOrder
,
'customer'
,
'carSeriesName'
)
}}
-->
{{
detail
.
carInfo
}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -327,7 +328,8 @@ export default {
...
@@ -327,7 +328,8 @@ export default {
targetTypeOpts
:
deepClone
(
targetType
),
targetTypeOpts
:
deepClone
(
targetType
),
detail
:
{},
detail
:
{},
ledgerData
:
[],
// 分账信息
ledgerData
:
[],
// 分账信息
reconciliationData
:
[]
// 对账信息
reconciliationData
:
[],
// 对账信息
carInfo
:
''
//车型信息
}
}
},
},
...
@@ -361,6 +363,19 @@ export default {
...
@@ -361,6 +363,19 @@ export default {
res
.
goodsOrder
.
payOrder
.
successDate
=
Util
.
dateFormate
(
res
.
goodsOrder
.
payOrder
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
res
.
goodsOrder
.
payOrder
.
successDate
=
Util
.
dateFormate
(
res
.
goodsOrder
.
payOrder
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
}
this
.
detail
=
res
this
.
detail
=
res
this
.
carInfo
=
''
if
(
this
.
detail
.
goodsOrder
&&
this
.
detail
.
goodsOrder
.
customer
)
{
let
cus
=
this
.
detail
.
goodsOrder
.
customer
if
(
cus
.
carBrand
)
{
this
.
carInfo
+=
cus
.
carBrand
+
'-'
}
if
(
cus
.
carChildsBrandName
)
{
this
.
carInfo
+=
cus
.
carChildsBrandName
+
'-'
}
if
(
cus
.
carSeriesName
)
{
this
.
carInfo
+=
cus
.
carSeriesName
}
}
const
calculateds
=
res
.
expenseCategoryCalculateds
const
calculateds
=
res
.
expenseCategoryCalculateds
if
(
calculateds
&&
calculateds
.
length
>
0
)
{
if
(
calculateds
&&
calculateds
.
length
>
0
)
{
calculateds
.
forEach
(
item
=>
{
calculateds
.
forEach
(
item
=>
{
...
...
src/views/financeManage/index.vue
View file @
125db45
...
@@ -508,7 +508,7 @@ export default {
...
@@ -508,7 +508,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$apis
.
public
.
get
ParkStore
({}).
then
(
res
=>
{
this
.
$apis
.
public
.
get
yqMerchantList
({}).
then
(
res
=>
{
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
item
.
merchantId
=
item
.
merchantNo
item
.
merchantId
=
item
.
merchantNo
})
})
...
...
src/views/serviceAccount/components/offlineAccountList.vue
View file @
125db45
...
@@ -91,26 +91,32 @@
...
@@ -91,26 +91,32 @@
prop=
"partnerMerchantName1"
prop=
"partnerMerchantName1"
align=
"center"
align=
"center"
width=
"100px"
>
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
serviceInfos
[
0
]
?
scope
.
row
.
serviceInfos
[
0
].
merchantName
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"实际分账金额"
<el-table-column
label=
"实际分账金额"
prop=
"partnerDivisionMoney1"
prop=
"partnerDivisionMoney1"
width=
"120px"
width=
"120px"
align=
"center"
>
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
partnerDivisionMoney1
?
(
'¥'
+
scope
.
row
.
partnerDivisionMoney1
)
:
'-'
}}
</span>
<span>
{{
scope
.
row
.
serviceInfos
[
0
]
?
(
'¥'
+
scope
.
row
.
serviceInfos
[
0
].
divisionMoney
)
:
'-'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"名称"
<el-table-column
label=
"名称"
prop=
"partnerMerchantName2"
prop=
"partnerMerchantName2"
align=
"center"
align=
"center"
width=
"100px"
>
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
serviceInfos
[
1
]
?
scope
.
row
.
serviceInfos
[
1
].
merchantName
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"实际分账金额"
<el-table-column
label=
"实际分账金额"
prop=
"partnerDivisionMoney2"
prop=
"partnerDivisionMoney2"
width=
"120px"
width=
"120px"
align=
"center"
>
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
partnerDivisionMoney2
?
(
'¥'
+
scope
.
row
.
partnerDivisionMoney2
)
:
'-'
}}
</span>
<span>
{{
scope
.
row
.
serviceInfos
[
1
]
?
(
'¥'
+
scope
.
row
.
serviceInfos
[
1
].
divisionMoney
)
:
'-'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table-column>
</el-table-column>
...
@@ -242,7 +248,7 @@ export default {
...
@@ -242,7 +248,7 @@ export default {
mounted
()
{
mounted
()
{
this
.
$apis
.
public
.
get
ParkStore
({}).
then
(
res
=>
{
this
.
$apis
.
public
.
get
yqMerchantList
({}).
then
(
res
=>
{
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
item
.
merchantId
=
item
.
merchantNo
item
.
merchantId
=
item
.
merchantNo
})
})
...
@@ -266,6 +272,17 @@ export default {
...
@@ -266,6 +272,17 @@ export default {
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
tableList
.
forEach
(
item
=>
{
this
.
tableList
.
forEach
(
item
=>
{
item
.
successDateStr
=
item
.
payOrder
?
Util
.
dateFormate
(
item
.
payOrder
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
item
.
successDateStr
=
item
.
payOrder
?
Util
.
dateFormate
(
item
.
payOrder
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
let
serviceInfos
=
[]
if
(
item
.
merchantDistributions
&&
item
.
merchantDistributions
.
length
>
0
)
{
item
.
merchantDistributions
.
forEach
(
obj
=>
{
if
(
obj
.
targetMerchantType
==
2
)
{
if
(
serviceInfos
.
length
<
2
)
{
serviceInfos
.
push
(
obj
)
}
}
})
}
item
.
serviceInfos
=
serviceInfos
})
})
})
})
},
},
...
...
src/views/serviceAccount/components/onlineAccountList.vue
View file @
125db45
...
@@ -111,26 +111,32 @@
...
@@ -111,26 +111,32 @@
prop=
"partnerMerchantName1"
prop=
"partnerMerchantName1"
align=
"center"
align=
"center"
width=
"100px"
>
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
serviceInfos
[
0
]
?
scope
.
row
.
serviceInfos
[
0
].
merchantName
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"实际分账金额"
<el-table-column
label=
"实际分账金额"
prop=
"partnerDivisionMoney1"
prop=
"partnerDivisionMoney1"
width=
"120px"
width=
"120px"
align=
"center"
>
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
partnerDivisionMoney1
?
(
'¥'
+
scope
.
row
.
partnerDivisionMoney1
)
:
'-'
}}
</span>
<span>
{{
scope
.
row
.
serviceInfos
[
0
]
?
(
'¥'
+
scope
.
row
.
serviceInfos
[
0
].
divisionMoney
)
:
'-'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"名称"
<el-table-column
label=
"名称"
prop=
"partnerMerchantName2"
prop=
"partnerMerchantName2"
align=
"center"
align=
"center"
width=
"100px"
>
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
serviceInfos
[
1
]
?
scope
.
row
.
serviceInfos
[
1
].
merchantName
:
'-'
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"实际分账金额"
<el-table-column
label=
"实际分账金额"
prop=
"partnerDivisionMoney2"
prop=
"partnerDivisionMoney2"
width=
"120px"
width=
"120px"
align=
"center"
>
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
partnerDivisionMoney2
?
(
'¥'
+
scope
.
row
.
partnerDivisionMoney2
)
:
'-'
}}
</span>
<span>
{{
scope
.
row
.
serviceInfos
[
1
]
?
(
'¥'
+
scope
.
row
.
serviceInfos
[
1
].
divisionMoney
)
:
'-'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table-column>
</el-table-column>
...
@@ -312,7 +318,7 @@ export default {
...
@@ -312,7 +318,7 @@ export default {
mounted
()
{
mounted
()
{
this
.
$apis
.
public
.
get
ParkStore
({}).
then
(
res
=>
{
this
.
$apis
.
public
.
get
yqMerchantList
({}).
then
(
res
=>
{
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
item
.
merchantId
=
item
.
merchantNo
item
.
merchantId
=
item
.
merchantNo
})
})
...
@@ -338,6 +344,17 @@ export default {
...
@@ -338,6 +344,17 @@ export default {
this
.
tableList
.
forEach
(
item
=>
{
this
.
tableList
.
forEach
(
item
=>
{
item
.
divisionDateStr
=
item
.
divisionDate
?
Util
.
dateFormate
(
item
.
divisionDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
item
.
divisionDateStr
=
item
.
divisionDate
?
Util
.
dateFormate
(
item
.
divisionDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
item
.
successDateStr
=
item
.
payOrder
?.
successDate
?
Util
.
dateFormate
(
item
.
payOrder
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
item
.
successDateStr
=
item
.
payOrder
?.
successDate
?
Util
.
dateFormate
(
item
.
payOrder
.
successDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
let
serviceInfos
=
[]
if
(
item
.
merchantDistributions
&&
item
.
merchantDistributions
.
length
>
0
)
{
item
.
merchantDistributions
.
forEach
(
obj
=>
{
if
(
obj
.
targetMerchantType
==
2
)
{
if
(
serviceInfos
.
length
<
2
)
{
serviceInfos
.
push
(
obj
)
}
}
})
}
item
.
serviceInfos
=
serviceInfos
})
})
})
})
},
},
...
...
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