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 c5ca6692
authored
Apr 10, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.37.3-0409' into 'develop'
上线合并 See merge request
!301
2 parents
68629203
df6c9163
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
2 deletions
src/views/financeManage/financeDetailNew.vue
src/views/financeManage/financeList.vue
src/views/financeManage/financeDetailNew.vue
View file @
c5ca669
...
@@ -218,7 +218,9 @@
...
@@ -218,7 +218,9 @@
<td
class=
"lb"
>
<td
class=
"lb"
>
商品成本
商品成本
</td>
</td>
<td>
{{
detail
.
goodsCost
?(
'¥ '
+
detail
.
goodsCost
):
'¥0'
}}
</td>
<!-- 子订单有嘀加成本或第三方成本 商品成本显示- -->
<td
v-if=
"isSubOrder"
>
{{
!
filterEmpty
(
detail
.
djCost
)
||
!
filterEmpty
(
detail
.
thirdPartyCost
)
?
'-'
:
(
detail
.
goodsCost
?(
'¥ '
+
detail
.
goodsCost
):
'¥0'
)
}}
</td>
<td
v-else
>
{{
detail
.
goodsCostForShow
?(
'¥ '
+
detail
.
goodsCostForShow
):
'-'
}}
</td>
<td
class=
"lb"
>
<td
class=
"lb"
>
回收成本
回收成本
</td>
</td>
...
@@ -230,6 +232,16 @@
...
@@ -230,6 +232,16 @@
</td>
</td>
<td>
{{
detail
.
virtualAccountCost
?(
'¥ '
+
detail
.
virtualAccountCost
):
'¥0'
}}
</td>
<td>
{{
detail
.
virtualAccountCost
?(
'¥ '
+
detail
.
virtualAccountCost
):
'¥0'
}}
</td>
<td
class=
"lb"
>
<td
class=
"lb"
>
嘀加成本
</td>
<td>
{{
detail
.
djCost
?(
'¥ '
+
detail
.
djCost
):
'¥0'
}}
</td>
</tr>
<tr>
<td
class=
"lb"
>
第三方成本
</td>
<td>
{{
detail
.
thirdPartyCost
?(
'¥ '
+
detail
.
thirdPartyCost
):
'¥0'
}}
</td>
<td
class=
"lb"
>
</td>
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -411,6 +423,9 @@ export default {
...
@@ -411,6 +423,9 @@ export default {
async
getBaseData
()
{
async
getBaseData
()
{
this
.
positionTypeList
=
await
this
.
get
(
BaseData
.
positionTypeList
)
this
.
positionTypeList
=
await
this
.
get
(
BaseData
.
positionTypeList
)
},
},
filterEmpty
(
data
)
{
return
(
data
??
''
)
===
''
},
getDetail
(
row
)
{
getDetail
(
row
)
{
if
(
this
.
$route
.
params
.
from
&&
this
.
$route
.
params
.
from
==
'orderSupplement'
)
{
// 从待补录订单列表跳转过来
if
(
this
.
$route
.
params
.
from
&&
this
.
$route
.
params
.
from
==
'orderSupplement'
)
{
// 从待补录订单列表跳转过来
mainOrderDetail
({
orderCode
:
row
.
inputtedOrderCode
}).
then
(
res
=>
{
mainOrderDetail
({
orderCode
:
row
.
inputtedOrderCode
}).
then
(
res
=>
{
...
...
src/views/financeManage/financeList.vue
View file @
c5ca669
...
@@ -293,6 +293,14 @@
...
@@ -293,6 +293,14 @@
label=
"虚拟对账成本"
label=
"虚拟对账成本"
align=
"center"
align=
"center"
width=
"110px"
/>
width=
"110px"
/>
<el-table-column
prop=
"djCost"
label=
"嘀加成本"
align=
"center"
width=
"110px"
/>
<el-table-column
prop=
"thirdPartyCost"
label=
"第三方成本"
align=
"center"
width=
"110px"
/>
</el-table-column>
</el-table-column>
<el-table-column
label=
"支付信息"
<el-table-column
label=
"支付信息"
...
@@ -1121,8 +1129,13 @@ export default {
...
@@ -1121,8 +1129,13 @@ export default {
item
.
hasOwnProperty
(
'subOrderProfitAllocations'
)
&&
item
.
hasOwnProperty
(
'subOrderProfitAllocations'
)
&&
item
.
subOrderProfitAllocations
item
.
subOrderProfitAllocations
)
{
)
{
item
.
goodsCost
=
''
item
.
subOrderProfitAllocations
.
forEach
(
subItem
=>
{
item
.
subOrderProfitAllocations
.
forEach
(
subItem
=>
{
// 有嘀加成本或第三方成本 商品成本显示-
if
(
!
this
.
filterEmpty
(
subItem
.
djCost
)
||
!
this
.
filterEmpty
(
subItem
.
thirdPartyCost
))
subItem
.
goodsCost
=
''
subItem
.
uniqueKey
=
temp
++
subItem
.
uniqueKey
=
temp
++
// 主订单商品成本根据 是否有嘀加成本或商品成本累加计算
item
.
goodsCost
=
this
.
subStr
(
item
.
goodsCost
,
Number
(
subItem
.
goodsCost
))
>
0
?
(
this
.
subStr
(
item
.
goodsCost
,
Number
(
subItem
.
goodsCost
))
-
0
)
:
''
subItem
=
this
.
numAddPrefix
(
subItem
)
subItem
=
this
.
numAddPrefix
(
subItem
)
subItem
.
positionStr
=
this
.
positionTypeList
?.
filter
(
val
=>
val
.
position
==
subItem
.
goodsPosition
)[
0
]?.
confName
||
'-'
subItem
.
positionStr
=
this
.
positionTypeList
?.
filter
(
val
=>
val
.
position
==
subItem
.
goodsPosition
)[
0
]?.
confName
||
'-'
})
})
...
@@ -1137,6 +1150,26 @@ export default {
...
@@ -1137,6 +1150,26 @@ export default {
}
}
})
})
},
},
// 价格计算精度丢失处理
subStr
(
num1
,
num2
)
{
var
r1
,
r2
,
m
,
n
try
{
r1
=
num1
.
toString
().
split
(
'.'
)[
1
].
length
}
catch
(
e
)
{
r1
=
0
}
try
{
r2
=
num2
.
toString
().
split
(
"."
)[
1
].
length
}
catch
(
e
)
{
r2
=
0
}
m
=
Math
.
pow
(
10
,
Math
.
max
(
r1
,
r2
))
n
=
(
r1
>=
r2
)
?
r1
:
r2
return
((
num1
*
m
+
num2
*
m
)
/
m
).
toFixed
(
n
)
},
filterEmpty
(
data
)
{
return
(
data
??
''
)
===
''
},
numAddPrefix
(
item
)
{
numAddPrefix
(
item
)
{
const
moneyLabels
=
[
const
moneyLabels
=
[
'goodsCost'
,
'goodsCost'
,
...
@@ -1160,7 +1193,11 @@ export default {
...
@@ -1160,7 +1193,11 @@ export default {
'marketingCost'
,
'marketingCost'
,
'rewardAndPenaltyCost'
,
'rewardAndPenaltyCost'
,
'franchiseeProfitMoneyForAudit'
,
'franchiseeProfitMoneyForAudit'
,
'glProfitMoneyForAudit'
'glProfitMoneyForAudit'
,
'recoveryCost'
,
'virtualAccountCost'
,
'djCost'
,
'thirdPartyCost'
]
]
const
rateToFloat
=
[
// 分润比例整数补零字段
const
rateToFloat
=
[
// 分润比例整数补零字段
'franchiseeProfitPer'
,
'franchiseeProfitPer'
,
...
...
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