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 92235744
authored
Apr 03, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
嘀加成本 第三方成本修改
1 parent
014f1a04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
src/views/financeManage/financeDetailNew.vue
src/views/financeManage/financeList.vue
src/views/financeManage/financeDetailNew.vue
View file @
9223574
...
@@ -218,7 +218,8 @@
...
@@ -218,7 +218,8 @@
<td
class=
"lb"
>
<td
class=
"lb"
>
商品成本
商品成本
</td>
</td>
<td>
{{
detail
.
goodsCost
?(
'¥ '
+
detail
.
goodsCost
):
'¥0'
}}
</td>
<!-- 有嘀加成本或第三方成本 商品成本显示- -->
<td>
{{
!
filterEmpty
(
detail
.
djCost
)
||
!
filterEmpty
(
detail
.
thirdPartyCost
)
?
'¥0'
:
(
detail
.
goodsCost
?(
'¥ '
+
detail
.
goodsCost
):
'¥0'
)
}}
</td>
<td
class=
"lb"
>
<td
class=
"lb"
>
回收成本
回收成本
</td>
</td>
...
@@ -421,6 +422,9 @@ export default {
...
@@ -421,6 +422,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 @
9223574
...
@@ -1130,11 +1130,15 @@ export default {
...
@@ -1130,11 +1130,15 @@ export default {
item
.
subOrderProfitAllocations
item
.
subOrderProfitAllocations
)
{
)
{
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
++
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
||
'-'
})
})
}
}
// 有嘀加成本或第三方成本 商品成本显示-
if
(
!
this
.
filterEmpty
(
item
.
djCost
)
||
!
this
.
filterEmpty
(
item
.
thirdPartyCost
))
item
.
goodsCost
=
''
item
=
this
.
numAddPrefix
(
item
)
item
=
this
.
numAddPrefix
(
item
)
return
item
return
item
})
})
...
@@ -1145,6 +1149,9 @@ export default {
...
@@ -1145,6 +1149,9 @@ export default {
}
}
})
})
},
},
filterEmpty
(
data
)
{
return
(
data
??
''
)
===
''
},
numAddPrefix
(
item
)
{
numAddPrefix
(
item
)
{
const
moneyLabels
=
[
const
moneyLabels
=
[
'goodsCost'
,
'goodsCost'
,
...
...
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