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
d7c0ee19
Commit
d7c0ee19
authored
Dec 05, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
凭证信息更改
parent
87171153
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
226 additions
and
175 deletions
+226
-175
index.vue
src/views/erpxmmxzgl/erpxmmxz/index.vue
+18
-18
index.vue
src/views/hzcxbb/szkb/index.vue
+0
-1
index.vue
src/views/sbysjsp/yszxfxzh/index.vue
+208
-156
No files found.
src/views/erpxmmxzgl/erpxmmxz/index.vue
View file @
d7c0ee19
...
...
@@ -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
},
...
...
src/views/hzcxbb/szkb/index.vue
View file @
d7c0ee19
...
...
@@ -339,7 +339,6 @@
fullScreen
(
document
.
getElementById
(
"szkb"
));
},
false
);
/* 初始化地图*/
debugger
this
.
szkbmapCharts
=
this
.
initSzkbmapCharts
({
habbList
:
habbList
,
jhxList
:
jhxList
,
...
...
src/views/sbysjsp/yszxfxzh/index.vue
View file @
d7c0ee19
...
...
@@ -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
=>
{
...
...
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