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
a5b80ac0
Commit
a5b80ac0
authored
Feb 29, 2024
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
61c79e19
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
355 additions
and
380 deletions
+355
-380
index.js
dsk-operate-ui/src/api/projectCostLedger/index.js
+6
-7
index.vue
...projectCostLedger/detail/components/FeedSummary/index.vue
+5
-7
index.vue
...rojectCostLedger/detail/components/MeasureItems/index.vue
+334
-357
index.vue
dsk-operate-ui/src/views/projectCostLedger/detail/index.vue
+10
-9
No files found.
dsk-operate-ui/src/api/projectCostLedger/index.js
View file @
a5b80ac0
...
...
@@ -173,13 +173,12 @@ export function projectVolume(data) {
}
//措施费-获取实际成本月份列表
export
function
actualMonths
(
params
)
{
return
request
({
url
:
'/cb/cost/measures/actual/months'
,
method
:
'GET'
,
params
});
}
export
const
getActualMonthsApi
=
(
params
=
{})
=>
request
({
url
:
'/cb/cost/measures/actual/months'
,
method
:
'get'
,
params
});
// 工料汇总
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/FeedSummary/index.vue
View file @
a5b80ac0
...
...
@@ -69,17 +69,15 @@ export default {
watch
:
{
projectDetailInfo
:
{
handler
(
newValue
)
{
this
.
comProjectDetailInfo
=
newValue
?
newValue
:
{};
this
.
comProjectDetailInfo
=
newValue
?
cloneDeep
(
newValue
)
:
{};
this
.
init
(
this
.
comProjectDetailInfo
);
},
deep
:
true
,
immediate
:
true
},
projectId
:
{
handler
(
newValue
)
{
this
.
comProjectId
=
newValue
;
},
immediate
:
true
}
}
},
components
:
{
...
...
@@ -94,8 +92,8 @@ export default {
nodeName
:
"name"
,
nodeValue
:
"name"
,
},
comProjectDetailInfo
:
{},
comProjectId
:
""
,
comProjectDetailInfo
:
this
.
projectDetailInfo
?
cloneDeep
(
this
.
projectDetailInfo
)
:
{},
comProjectId
:
this
.
projectId
,
menuTreeList
:
[],
// 加载数据列表
tableLoading
:
false
,
...
...
@@ -122,7 +120,7 @@ export default {
},
//可访问data属性
created
()
{
this
.
init
(
this
.
comProjectDetailInfo
);
},
//计算集
computed
:
{
...
...
dsk-operate-ui/src/views/projectCostLedger/detail/components/MeasureItems/index.vue
View file @
a5b80ac0
This diff is collapsed.
Click to expand it.
dsk-operate-ui/src/views/projectCostLedger/detail/index.vue
View file @
a5b80ac0
...
...
@@ -15,16 +15,16 @@
<direct-cost
v-if=
"current == 'directCost'"
></direct-cost>
<!-- 工料汇总 -->
<feed-summary
v-if=
"current == 'feedSummary'"
:project-id=
"projectI
D
"
:project-detail-info=
"detailInfo"
></feed-summary>
<feed-summary
v-if=
"current == 'feedSummary'"
:project-id=
"projectI
d
"
:project-detail-info=
"detailInfo"
></feed-summary>
<!--措施项目-->
<measure-items
v-if=
"current == 'measureItem'"
:project-id=
"projectI
D
"
:project-detail-info=
"detailInfo"
></measure-items>
<measure-items
v-if=
"current == 'measureItem'"
:project-id=
"projectI
d
"
:project-detail-info=
"detailInfo"
></measure-items>
<!-- 其他项目 -->
<other-projects
v-if=
"current == 'otherItems'"
></other-projects>
<!-- 盈亏分析对比 -->
<profit-Loss
v-if=
"current == 'profitAndLoss'"
:project-id=
"projectI
D
"
:project-detail-info=
"detailInfo"
></profit-Loss>
<profit-Loss
v-if=
"current == 'profitAndLoss'"
:project-id=
"projectI
d
"
:project-detail-info=
"detailInfo"
></profit-Loss>
</div>
</div>
...
...
@@ -62,13 +62,13 @@ export default {
},
data
()
{
return
{
projectI
D
:
""
,
projectI
d
:
""
,
current
:
""
,
// 详情信息变量
detailInfo
:
{
projectId
:
"1754425038355890177"
,
cbStage
:
0
,
cbType
:
1
cbType
:
1
},
toggleTabs
:
[
{
...
...
@@ -162,20 +162,21 @@ export default {
async
getProjectQuery
()
{
try
{
const
{
query
}
=
this
.
$route
;
// if (!query.projectID) return this.$message.error("缺少项目id");
this
.
projectID
=
query
.
projectID
;
// if (!query.projectId) return this.$message.error("缺少项目id");
this
.
projectId
=
query
.
projectId
;
// 获取详情 保证详情获取完毕 再执行tab命中 进行生命周期
await
this
.
getProjectDetail
(
query
.
projectId
);
if
(
query
.
current
)
{
this
.
current
=
query
.
current
;
}
else
{
// 默认命中工程项目信息
this
.
current
=
"basicEngineeringInformation"
;
};
await
this
.
getProjectDetail
(
query
.
projectID
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
},
async
getProjectDetail
(
projectI
D
)
{
async
getProjectDetail
(
projectI
d
)
{
try
{
}
catch
(
error
)
{
...
...
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