Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
24ec91f8
Commit
24ec91f8
authored
Feb 27, 2024
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
33d7f0b6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
40 deletions
+58
-40
index.js
dsk-operate-ui/src/api/projectCostLedger/index.js
+6
-0
index.vue
.../projectCostLedger/detail/components/DirectCost/index.vue
+2
-2
index.vue
...ojectCostLedger/detail/components/OtherProjects/index.vue
+50
-38
No files found.
dsk-operate-ui/src/api/projectCostLedger/index.js
View file @
24ec91f8
...
@@ -134,3 +134,9 @@ export const getProjectOtherMenuTreeApi = (relatedId) => request({
...
@@ -134,3 +134,9 @@ export const getProjectOtherMenuTreeApi = (relatedId) => request({
url
:
'/cb/projectOther/type/'
+
relatedId
,
url
:
'/cb/projectOther/type/'
+
relatedId
,
method
:
"get"
,
method
:
"get"
,
})
})
//其他费用-费用汇总
export
const
getProjectOtherStatistics
=
(
relatedId
)
=>
request
({
url
:
'/cb/projectOther/statistics/'
+
relatedId
,
method
:
"get"
,
})
dsk-operate-ui/src/views/projectCostLedger/detail/components/DirectCost/index.vue
View file @
24ec91f8
...
@@ -226,8 +226,8 @@ export default {
...
@@ -226,8 +226,8 @@ export default {
},
},
],
],
menuOptions
:
{
menuOptions
:
{
nodeName
:
"name"
,
nodeName
:
"n
odeN
ame"
,
nodeValue
:
"name"
,
nodeValue
:
"n
odeN
ame"
,
},
},
};
};
},
},
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/OtherProjects/index.vue
View file @
24ec91f8
...
@@ -12,7 +12,27 @@
...
@@ -12,7 +12,27 @@
</div>
</div>
</div>
</div>
<div
class=
"right-table"
>
<div
class=
"right-table"
>
<div
class=
"table-item"
>
<div
class=
"table-item"
v-if=
"defaultActive ==='费用汇总'"
>
<tables
v-if=
"!isSkeleton"
:tableLoading=
"tableLoading"
:tableData=
"tableData"
:forData=
"forData"
:MaxPage=
500
:tableDataTotal=
"tableDataTotal"
:queryParams=
"queryParams"
@
handle-current-change=
"handleCurrentChange"
@
sort-change=
"sortChange"
>
<
template
slot=
"number"
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
number
||
'--'
}}
</div>
</
template
>
<
template
slot=
"proportion"
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
proportion
||
'--'
}}{{
scope
.
row
.
proportion
?
'%'
:
''
}}
</div>
</
template
>
</tables>
</div>
<div
class=
"table-item"
v-else
>
<tables
<tables
v-if=
"!isSkeleton"
v-if=
"!isSkeleton"
:tableLoading=
"tableLoading"
:tableLoading=
"tableLoading"
...
@@ -86,7 +106,7 @@
...
@@ -86,7 +106,7 @@
<
script
>
<
script
>
import
Tables
from
"../../../../component/Tables"
import
Tables
from
"../../../../component/Tables"
import
ProjectSideMenu
from
"@/views/projectCostLedger/detail/components/ProjectSideMenu"
;
import
ProjectSideMenu
from
"@/views/projectCostLedger/detail/components/ProjectSideMenu"
;
import
{
getProjectOtherMenuTreeApi
}
from
"@/api/projectCostLedger"
;
import
{
getProjectOtherMenuTreeApi
,
getProjectOtherStatistics
}
from
"@/api/projectCostLedger"
;
export
default
{
export
default
{
name
:
"directCost"
,
name
:
"directCost"
,
components
:
{
components
:
{
...
@@ -123,8 +143,8 @@ export default {
...
@@ -123,8 +143,8 @@ export default {
},
},
],
],
forData
:
[
forData
:
[
{
label
:
'其他项目费用'
,
prop
:
'
n
ame'
},
{
label
:
'其他项目费用'
,
prop
:
'
expenseN
ame'
},
{
label
:
'数量'
,
prop
:
'
number'
,
slot
:
true
},
{
label
:
'数量'
,
prop
:
'
expenseValue'
},
{
label
:
'占比'
,
prop
:
'proportion'
,
slot
:
true
},
{
label
:
'占比'
,
prop
:
'proportion'
,
slot
:
true
},
],
],
forData1
:
[
forData1
:
[
...
@@ -145,34 +165,17 @@ export default {
...
@@ -145,34 +165,17 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
},
},
tableDataTotal
:
2
,
tableDataTotal
:
2
,
defaultActive
:
""
,
defaultActive
:
"
费用汇总
"
,
menuTreeList
:
[
menuTreeList
:
[
{
{
nodeName
:
"其他费"
,
id
:
"1"
,
id
:
"1"
,
children
:
[
itemContent
:
"其他费"
,
{
children
:
[]
nodeName
:
"费用汇总"
,
}
id
:
"1-1"
,
},
{
nodeName
:
"技术质量管理类"
,
id
:
"2-1"
,
},
{
nodeName
:
"工程保险类"
,
id
:
"3-1"
,
},
{
nodeName
:
"履约担保、保函手续费、市场营..."
,
id
:
"4-1"
,
},
]
},
],
],
menuOptions
:
{
menuOptions
:
{
nodeName
:
"
name
"
,
nodeName
:
"
itemContent
"
,
nodeValue
:
"
name
"
,
nodeValue
:
"
itemContent
"
,
},
},
dialogVisible
:
false
,
dialogVisible
:
false
,
currentList
:
"type1"
,
currentList
:
"type1"
,
...
@@ -244,7 +247,8 @@ export default {
...
@@ -244,7 +247,8 @@ export default {
},
},
//可访问data属性
//可访问data属性
created
()
{
created
()
{
this
.
getProjectOtherMenuTreeApi
(
'1762014527685136385'
)
this
.
getProjectOtherStatistics
(
'1762014527685136385'
)
},
},
//计算集
//计算集
computed
:
{
computed
:
{
...
@@ -252,25 +256,33 @@ export default {
...
@@ -252,25 +256,33 @@ export default {
},
},
//方法集
//方法集
methods
:
{
methods
:
{
async
getFeedSummaryMenuTree
(
params
)
{
async
getProjectOtherStatistics
(
params
)
{
try
{
const
result
=
await
getProjectOtherStatistics
(
params
);
if
(
result
.
code
==
200
)
{
const
_dataArray
=
result
.
data
;
this
.
tableData
=
_dataArray
;
}
}
catch
(
error
)
{
}
},
async
getProjectOtherMenuTreeApi
(
params
)
{
try
{
try
{
const
result
=
await
getProjectOtherMenuTreeApi
(
params
);
const
result
=
await
getProjectOtherMenuTreeApi
(
params
);
if
(
result
.
code
==
200
)
{
if
(
result
.
code
==
200
)
{
const
_tempArray
=
result
.
data
;
const
_tempArray
=
result
.
data
;
this
.
menuTreeList
=
_tempArray
;
_tempArray
.
unshift
({
id
:
"11"
,
itemContent
:
"费用汇总"
});
this
.
menuTreeList
[
0
].
children
=
_tempArray
;
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
}
}
},
},
handleNodeClick
(
data
)
{
open
(
menuPath
,
menuPathArray
){
console
.
log
(
data
);
console
.
log
(
menuPath
)
},
console
.
log
(
menuPathArray
)
handleOpen
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
},
handleClose
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
},
},
//分页
//分页
handleCurrentChange
(
e
){
handleCurrentChange
(
e
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment