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

凭证信息更改

parent 87171153
......@@ -136,25 +136,25 @@
},
/* 表格标题对应参数*/
tableTitle: [
{title: "项目包编码", field: "xmbcode", fieldType: "ftString",width:100},
// {title: "项目包编码", field: "xmbcode", fieldType: "ftString",width:100},
{title: "项目包名称", field: "xmbmc", fieldType: "ftString",width:192},
{title: "管理部门", field: "glbmname", width:140},
{title: "一级包分类", field: "xmflName", width:120},
{title: "二级包分类", field: "ejxmflName", width:120},
{title: "项目编码", field: "xmcode", fieldType: "ftString",width:192},
{title: "项目描述", field: "xmdesc", fieldType: "ftString",width:300},
{title: "基金中心", field: "xmbmcode", fieldType: "ftString",width:192},
{title: "项目实施部门", field: "xmbmname", fieldType: "ftString",width:192},
{title: "预算金额", field: "xmysje", fieldType: "float",props:"decimal:6"},
{title: "立项日期", field: "xmlxrq", fieldType: "ftDate"},
{title: "状态", field: "xmzt", fieldType: "ftString",align:"center",width:150,
transform: {
url: 'hafms/sggcxm/init/zt',
label: 'name',
value: 'id'
}
// {title: "管理部门", field: "glbmname", width:140},
// {title: "一级包分类", field: "xmflName", width:120},
// {title: "二级包分类", field: "ejxmflName", width:120},
// {title: "项目编码", field: "xmcode", fieldType: "ftString",width:192},
// {title: "项目描述", field: "xmdesc", fieldType: "ftString",width:300},
// {title: "基金中心", field: "xmbmcode", fieldType: "ftString",width:192},
// {title: "项目实施部门", field: "xmbmname", fieldType: "ftString",width:192},
// {title: "预算金额", field: "xmysje", fieldType: "float"},
// {title: "立项日期", field: "xmlxrq", fieldType: "ftDate"},
// {title: "状态", field: "xmzt", fieldType: "ftString",align:"center",width:150,
// transform: {
// url: 'hafms/sggcxm/init/zt',
// label: 'name',
// value: 'id'
// }
},
// },
{title: "年度", field: "year", fieldType: "int"},
{title: "月份", field: "month", fieldType: "int",},
{title: "日期", field: "day", fieldType: "int"},
......@@ -168,7 +168,7 @@
{title: "挂接WBS编码", field: "gjwbs", fieldType: "ftString",width:150},
{title: "WBS编码", field: "wbs", fieldType: "ftString",width:150},
{title: "费用明细", field: "fymxname", fieldType: "ftString",width:120},
{title: "往来款项性质ID", field: "wlxzid", fieldType: "ftString",width:150},
// {title: "往来款项性质ID", field: "wlxzid", fieldType: "ftString",width:150},
{title: "往来款项性质名称", field: "wlxzname", fieldType: "ftString",width:150},
{title: "科目编码", field: "mkmid", fieldType: "ftString",width:192},
{title: "科目", field: "kmname", fieldType: "ftString",width:120},
......
......@@ -339,7 +339,6 @@
fullScreen(document.getElementById("szkb"));
}, false);
/* 初始化地图*/
debugger
this.szkbmapCharts = this.initSzkbmapCharts({
habbList: habbList,
jhxList: jhxList,
......
......@@ -56,7 +56,7 @@
/* 表格标题对应参数*/
tableTitle: [{
title: "单位",
field: "xmmc",
field: "bmName",
fieldType: "ftString",
width: 160
},
......@@ -72,31 +72,30 @@
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
prop: "mbz",
fieldType: "ftString",
width: 160
},
{
label: "完成值",
prop: "ndysmb",
prop: "wcz",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
prop: "wcl",
fieldType: "ftString",
width: 160
},
{
label: "排名",
prop: "ndysmb",
prop: "pm",
fieldType: "ftString",
width: 160
}
]
},
]
}, ]
},
{
title: "成本预算",
......@@ -110,19 +109,19 @@
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
prop: "mbz2",
fieldType: "ftString",
width: 160
},
{
label: "完成值",
prop: "ndysmb",
prop: "wcz2",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
prop: "wcl2",
fieldType: "ftString",
width: 160
},
......@@ -136,19 +135,19 @@
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
prop: "mbz3",
fieldType: "ftString",
width: 160
},
{
label: "完成值",
prop: "ndysmb",
prop: "wcl3",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
prop: "wcl3",
fieldType: "ftString",
width: 160
},
......@@ -162,19 +161,19 @@
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
prop: "mbz4",
fieldType: "ftString",
width: 160
},
{
label: "完成值",
prop: "ndysmb",
prop: "wcz4",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
prop: "wcl4",
fieldType: "ftString",
width: 160
},
......@@ -188,19 +187,19 @@
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
prop: "mbz5",
fieldType: "ftString",
width: 160
},
{
label: "完成值",
prop: "ndysmb",
prop: "wcl5",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
prop: "wcl5",
fieldType: "ftString",
width: 160
},
......@@ -214,25 +213,25 @@
width: 160,
subtitle: [{
label: "目标值",
prop: "ndysmb",
prop: "mbz6",
fieldType: "ftString",
width: 160
},
{
label: "完成值",
prop: "ndysmb",
prop: "wcl6",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
prop: "wcl6",
fieldType: "ftString",
width: 160
},
{
label: "排名",
prop: "ndysmb",
prop: "pm6",
fieldType: "ftString",
width: 160
},
......@@ -247,37 +246,31 @@
fieldType: "ftString",
subtitle: [{
label: "目标值",
prop: "ndysmb",
prop: "mbz7",
fieldType: "ftString",
width: 160
},
{
label: "完成值",
prop: "ndysmb",
prop: "wcl7",
fieldType: "ftString",
width: 160
},
{
label: "完成率",
prop: "ndysmb",
prop: "wcl7",
fieldType: "ftString",
width: 160
},
{
label: "排名",
prop: "ndysmb",
prop: "pm7",
fieldType: "ftString",
width: 160
},
]
},
]
}
},
......@@ -335,17 +328,38 @@
if (res.success) {
let records = res.data.records || []
/* 数据处理*/
let gs1 = ''
let gs2 = ''
let lxh1 = records.filter(item => {
if (item.lxh == '1') {
gs1 = item.gsname
return true
}
})
let lxh2 = records.filter(item => {
if (item.lxh == '2') {
gs2 = item.gsname
return true
}
})
let lxh3 = records.filter(item => {
if (item.lxh == '3') {
return true
}
})
let lxh4 = records.filter(item => {
if (item.lxh == '4') {
return true
}
})
let lxh5 = records.filter(item => {
if (item.lxh == '5') {
return true
}
})
let lxh6 = records.filter(item => {
if (item.lxh == '6') {
return true
}
})
let lxh7 = records.filter(item => {
if (item.lxh == '7') {
return true
}
})
......@@ -360,6 +374,47 @@
})
}
})
lxh3.forEach(item2 => {
if (item1.xh == item2.xh) {
Object.keys(item2).forEach(key => {
let keyName = key + '3'
newItem[keyName] = item2[key]
})
}
})
lxh4.forEach(item2 => {
if (item1.xh == item2.xh) {
Object.keys(item2).forEach(key => {
let keyName = key + '4'
newItem[keyName] = item2[key]
})
}
})
lxh5.forEach(item2 => {
if (item1.xh == item2.xh) {
Object.keys(item2).forEach(key => {
let keyName = key + '5'
newItem[keyName] = item2[key]
})
}
})
lxh6.forEach(item2 => {
if (item1.xh == item2.xh) {
Object.keys(item2).forEach(key => {
let keyName = key + '6'
newItem[keyName] = item2[key]
})
}
})
lxh7.forEach(item2 => {
if (item1.xh == item2.xh) {
Object.keys(item2).forEach(key => {
let keyName = key + '7'
newItem[keyName] = item2[key]
})
}
})
/* 最终合并*/
newItem = {
...newItem,
......@@ -369,10 +424,7 @@
})
/* 手动操作表格*/
/* 替换标题*/
// this.$refs.TablePager['newGridList'][1]['label'] = gs1
// this.$refs.TablePager['newGridList'][2]['label'] = gs2
/* 替换数据*/
console.log(newList)
this.$refs.TablePager['tableData'] = newList
}
}).finally(e => {
......
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