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 @@
<!-- right-->
<el-row class="tool-bar">
<!-- <ToolButton :app='app'></ToolButton> -->
<ImportTempButton @success='success' url="hafms/yszhcxzb/import" :params="{
lx:'C'
<ImportTempButton @success='success' url="hafms/yszxzb/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
},
{
title: "项目类型",
field: "xmlx",
fieldType: "ftString",
width: 160
},
{
title: "项目包名称",
field: "xmbmc",
fieldType: "ftString",
width: 160
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
}
]
},
]
},
{
title: "一级单位",
title: "成本预算",
field: "yjdw",
fieldType: "ftString",
width: 160
},
{
title: "二级单位",
field: "ejdw",
fieldType: "ftString",
width: 160
},
{
title: "归口部门",
field: "gkbm",
fieldType: "ftString",
width: 160
},
{
title: "实施部门",
field: "ssbm",
fieldType: "ftString",
width: 160
},
{
title: "当年预算(含税)(万元)",
field: "yshsje",
fieldType: "ftString",
width: 160
},
{
title: "当年预算(不含税)(万元)",
field: "yswsje",
fieldType: "ftString",
width: 160
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
},
{
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
},
{
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
},
{
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
},
{
label: "完成值",
prop: "ndysmb",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
fieldType: "ftString",
width: 160
},
{
label: "排名",
prop: "ndysmb",
fieldType: "ftString",
width: 160
},
]
}
]
},
{
title: "是否预安排项目",
field: "yapxm",
title: "合计",
field: "yjdw",
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: "aqsc",
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) {
......
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