Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gavel-hafms-vue
Project
Project
Details
Activity
Releases
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
李苏
gavel-hafms-vue
Commits
87171153
Commit
87171153
authored
Dec 05, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口报错
parent
bc4a4b0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
232 additions
and
61 deletions
+232
-61
yszxfxzh.js
src/api/sbysjsp/yszxfxzh.js
+24
-0
index.vue
src/views/sbysjsp/yszxfxzh/index.vue
+208
-61
No files found.
src/api/sbysjsp/yszxfxzh.js
0 → 100644
View file @
87171153
import
request
from
'common/src/utils/request'
/* query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'hafms/yszxjdlog/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/hafms/yszhcxlog/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doQueryDetail
(
query
){
return
request
({
url
:
'hafms/yszxzb/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/sbysjsp/yszxfxzh/index.vue
View file @
87171153
...
...
@@ -10,8 +10,8 @@
<!-- right-->
<el-row
class=
"tool-bar"
>
<!--
<ToolButton
:app=
'app'
></ToolButton>
-->
<ImportTempButton
@
success=
'success'
url=
"hafms/ysz
hcxzb
/import"
:params=
"
{
lx:'
C
'
<ImportTempButton
@
success=
'success'
url=
"hafms/ysz
xzb/excel
/import"
:params=
"
{
lx:'
B
'
}" />
<!-- 导入-->
<el-button
@
click=
"del"
size=
"mini"
type=
"danger"
>
删除当前报表
</el-button>
...
...
@@ -32,7 +32,7 @@
doDelete
,
doQueryDetail
}
from
'@/api/sbysjsp/
hyha
.js'
;
}
from
'@/api/sbysjsp/
yszxfxzh
.js'
;
import
{
tableMixin
...
...
@@ -51,81 +51,228 @@
baseUrl
:
'hafms/yszhcxlog'
,
/* 查询参数*/
queryParams
:
{
lx
:
'
C
'
,
lx
:
'
B
'
,
},
/* 表格标题对应参数*/
tableTitle
:
[{
title
:
"
项目名称
"
,
title
:
"
单位
"
,
field
:
"xmmc"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"
国网项目编码
"
,
title
:
"
资本预算
"
,
field
:
"gwxmbm"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"资本性项目"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"目标值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"项目类型
"
,
field
:
"xmlx
"
,
label
:
"完成值
"
,
prop
:
"ndysmb
"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"项目包名称
"
,
field
:
"xmbmc
"
,
label
:
"完成率
"
,
prop
:
"ndysmb
"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"一级单位"
,
label
:
"排名"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
}
]
},
]
},
{
title
:
"成本预算"
,
field
:
"yjdw"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"成本性项目(主业)"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"目标值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"完成值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"完成率"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
]
},
{
label
:
"标准成本(主业)"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"目标值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"二级单位
"
,
field
:
"ejdw
"
,
label
:
"完成值
"
,
prop
:
"ndysmb
"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"归口部门"
,
field
:
"gkbm"
,
label
:
"完成率"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
]
},
{
label
:
"成本性项目(农维费)"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"目标值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"实施部门
"
,
field
:
"ssbm
"
,
label
:
"完成值
"
,
prop
:
"ndysmb
"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"当年预算(含税)(万元)
"
,
field
:
"yshsje
"
,
label
:
"完成率
"
,
prop
:
"ndysmb
"
,
fieldType
:
"ftString"
,
width
:
160
},
]
},
{
title
:
"当年预算(不含税)(万元)"
,
field
:
"yswsje"
,
label
:
"标准成本(农维费)"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"目标值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"是否预安排项目
"
,
field
:
"yapxm
"
,
label
:
"完成值
"
,
prop
:
"ndysmb
"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"是否安全生产
"
,
field
:
"aqsc
"
,
label
:
"完成率
"
,
prop
:
"ndysmb
"
,
fieldType
:
"ftString"
,
width
:
160
},
]
},
{
label
:
"小计"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
,
subtitle
:
[{
label
:
"目标值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"完成值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"完成率"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"排名"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
]
}
]
},
{
title
:
"合计"
,
field
:
"yjdw"
,
fieldType
:
"ftString"
,
subtitle
:
[{
label
:
"目标值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"完成值"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"完成率"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"排名"
,
prop
:
"ndysmb"
,
fieldType
:
"ftString"
,
width
:
160
},
]
},
...
...
@@ -159,7 +306,7 @@
},
init
()
{
doQuery
({
lx
:
'
A
'
lx
:
'
B
'
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
data
&&
res
.
data
.
records
&&
res
.
data
.
records
.
length
!=
0
)
{
...
...
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