Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zentao-view
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
zentao
zentao-view
Commits
961cb2ae
Commit
961cb2ae
authored
Apr 09, 2021
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成本表
parent
1d034654
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
20 deletions
+36
-20
ProjectCostReportList.vue
src/views/projectCostReport/ProjectCostReportList.vue
+36
-20
No files found.
src/views/projectCostReport/ProjectCostReportList.vue
View file @
961cb2ae
<
template
>
<a-card
class=
"cust-list-cart"
>
<
!--
<
div>
<div>
<a-form
layout=
"horizontal"
class=
"ant-advanced-search-form"
>
<div>
<a-row>
<a-col
:span=
"
6
"
>
<a-col
:span=
"
12
"
>
<a-form-item
label=
"
用户名
"
label=
"
登记日期
"
:labelCol=
"
{ span: 8 }"
:wrapperCol="{ span: 16 }"
>
<a-input
@
pressEnter=
"search"
style=
"width: 100%"
v-model=
"query.realname"
placeholder=
"请输入"
/>
<a-range-picker
@
change=
"onChange"
/>
</a-form-item>
</a-col>
</a-row>
</div>
</a-form>
</div>
-->
</div>
<div>
<a-table
size=
"middle"
...
...
@@ -37,10 +32,9 @@
<a-icon
type=
"hdd"
/>
项目工时成本表
{{
data
.
none
}}
</span>
<div
class=
"cust-table-operator"
>
<
!--
<
a-button-group>
<a-button-group>
<a-button
type=
"primary"
@
click=
"search"
>
查询
</a-button>
<a-button
@
click=
"reset"
>
重置
</a-button>
</a-button-group>
-->
</a-button-group>
</div>
</div>
</a-table>
...
...
@@ -50,17 +44,32 @@
<
script
>
import
{
getProjectCostReport
}
from
"@/api/report/report"
;
import
moment
from
"moment"
;
import
{
formatDate
}
from
"@/util/util"
;
const
dataSource
=
[];
const
columns
=
[
{
title
:
"名称"
,
width
:
300
,
dataIndex
:
"name"
,
align
:
"left"
},
{
title
:
"名称"
,
dataIndex
:
"name"
,
align
:
"left"
},
{
title
:
"最早登记时间"
,
width
:
130
,
dataIndex
:
"beginDate"
,
align
:
"right"
,
customRender
:
(
text
)
=>
formatDate
(
new
Date
(
text
),
"yyyy-MM-dd"
),
},
{
title
:
"最近登记时间"
,
width
:
130
,
dataIndex
:
"endDate"
,
align
:
"right"
,
customRender
:
(
text
)
=>
formatDate
(
new
Date
(
text
),
"yyyy-MM-dd"
),
},
{
title
:
"工时"
,
width
:
100
,
dataIndex
:
"hours"
,
align
:
"right"
},
{
title
:
"标准工时成本"
,
width
:
1
0
0
,
width
:
1
3
0
,
dataIndex
:
"baseHoursCost"
,
align
:
"right"
,
}
}
,
];
export
default
{
...
...
@@ -69,16 +78,24 @@ export default {
return
{
isFirstLoad
:
true
,
query
:
{
name
:
""
name
:
""
,
beginDate
:
null
,
endDate
:
null
,
},
rowKey
:
"key"
,
index
:
-
1
,
loading
:
false
,
columns
:
columns
,
dataSource
:
dataSource
dataSource
:
dataSource
,
};
},
methods
:
{
onChange
(
date
,
dateString
)
{
if
(
dateString
.
length
===
2
)
{
this
.
query
.
beginDate
=
dateString
[
0
];
this
.
query
.
endDate
=
dateString
[
1
];
}
},
search
()
{
this
.
loadData
();
},
...
...
@@ -104,7 +121,6 @@ export default {
this
.
loading
=
false
;
});
},
},
mounted
()
{},
activated
()
{
...
...
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