Commit 87171153 authored by 李苏's avatar 李苏 💬

接口报错

parent bc4a4b0d
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||{}
})
}
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<!-- right--> <!-- right-->
<el-row class="tool-bar"> <el-row class="tool-bar">
<!-- <ToolButton :app='app'></ToolButton> --> <!-- <ToolButton :app='app'></ToolButton> -->
<ImportTempButton @success='success' url="hafms/yszhcxzb/import" :params="{ <ImportTempButton @success='success' url="hafms/yszxzb/excel/import" :params="{
lx:'C' lx:'B'
}" /> }" />
<!-- 导入--> <!-- 导入-->
<el-button @click="del" size="mini" type="danger">删除当前报表</el-button> <el-button @click="del" size="mini" type="danger">删除当前报表</el-button>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
doDelete, doDelete,
doQueryDetail doQueryDetail
} from '@/api/sbysjsp/hyha.js'; } from '@/api/sbysjsp/yszxfxzh.js';
import { import {
tableMixin tableMixin
...@@ -51,81 +51,228 @@ ...@@ -51,81 +51,228 @@
baseUrl: 'hafms/yszhcxlog', baseUrl: 'hafms/yszhcxlog',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
lx: 'C', lx: 'B',
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [{ tableTitle: [{
title: "项目名称", title: "单位",
field: "xmmc", field: "xmmc",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "国网项目编码", title: "资本预算",
field: "gwxmbm", field: "gwxmbm",
fieldType: "ftString", fieldType: "ftString",
width: 160,
subtitle: [{
label: "资本性项目",
prop: "ndysmb",
fieldType: "ftString",
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "项目类型", label: "完成值",
field: "xmlx", prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "项目包名称", label: "完成率",
field: "xmbmc", prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "一级单位", label: "排名",
prop: "ndysmb",
fieldType: "ftString",
width: 160
}
]
},
]
},
{
title: "成本预算",
field: "yjdw", field: "yjdw",
fieldType: "ftString", 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 width: 160
}, },
{ {
title: "二级单位", label: "完成值",
field: "ejdw", prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "归口部门", label: "完成率",
field: "gkbm", prop: "ndysmb",
fieldType: "ftString",
width: 160
},
]
},
{
label: "成本性项目(农维费)",
prop: "ndysmb",
fieldType: "ftString",
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "实施部门", label: "完成值",
field: "ssbm", prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "当年预算(含税)(万元)", label: "完成率",
field: "yshsje", prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
]
},
{ {
title: "当年预算(不含税)(万元)", label: "标准成本(农维费)",
field: "yswsje", prop: "ndysmb",
fieldType: "ftString",
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "是否预安排项目", label: "完成值",
field: "yapxm", prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 width: 160
}, },
{ {
title: "是否安全生产", label: "完成率",
field: "aqsc", prop: "ndysmb",
fieldType: "ftString", fieldType: "ftString",
width: 160 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 @@ ...@@ -159,7 +306,7 @@
}, },
init() { init() {
doQuery({ doQuery({
lx: 'A' lx: 'B'
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
if (res.data && res.data.records && res.data.records.length != 0) { if (res.data && res.data.records && res.data.records.length != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment