明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
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
Administrator
jt_front
Commits
d2c0f73b
Commit
d2c0f73b
authored
May 16, 2026
by
suesueyue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理完成
parent
67560525
Pipeline
#111444
passed with stage
in 20 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
441 additions
and
467 deletions
+441
-467
addProject.vue
src/views/projectManage/addProject.vue
+24
-24
JueceApproval.vue
...ews/projectManage/addProject/components/JueceApproval.vue
+2
-2
JueceBasicInfo.vue
...ws/projectManage/addProject/components/JueceBasicInfo.vue
+5
-5
JueceFinance.vue
...iews/projectManage/addProject/components/JueceFinance.vue
+410
-436
No files found.
src/views/projectManage/addProject.vue
View file @
d2c0f73b
...
...
@@ -266,6 +266,7 @@ const activeCollapse = reactive([
"项目批复信息"
,
"其他"
,
"投决计划"
,
"投评报告及测算表"
,
"项目投资资金流量表"
,
"项目资本金现金流量表"
,
"能建方现金流量表"
,
...
...
@@ -288,7 +289,7 @@ let projectId = route.query.projectId;
const
lxType
=
computed
(()
=>
formData
.
projectLzType
?.
toString
());
const
jcType
=
computed
(()
=>
jcFormData
.
projectLzType
?.
toString
());
const
isDaibanUser
=
computed
(()
=>
formData
?.
daibanUsers
?.
includes
(
userInfo
?.
id
)
,
formData
?.
daibanUsers
?.
includes
(
userInfo
?.
id
)
);
// 表单禁用状态:基于流程节点 + 待办人判断
...
...
@@ -306,26 +307,25 @@ const jcFormDisabled = computed(() => {
});
const
showSave
=
computed
(
()
=>
!
isPreview
&&
(
!
formData
.
id
||
formData
.
projectCreator
===
userInfo
?.
id
)
,
()
=>
!
isPreview
&&
(
!
formData
.
id
||
formData
.
projectCreator
===
userInfo
?.
id
)
);
const
showSubmitLixiang
=
computed
(
()
=>
lxType
.
value
===
"1"
&&
formData
.
projectCreator
===
userInfo
?.
id
,
()
=>
lxType
.
value
===
"1"
&&
formData
.
projectCreator
===
userInfo
?.
id
);
const
showSubmitJuece
=
computed
(
()
=>
jcType
.
value
===
"7"
&&
formData
.
projectCreator
===
userInfo
?.
id
,
()
=>
jcType
.
value
===
"7"
&&
formData
.
projectCreator
===
userInfo
?.
id
);
const
showFirstAudit
=
computed
(
()
=>
isDaibanUser
.
value
&&
lxType
.
value
===
"3"
,
()
=>
isDaibanUser
.
value
&&
lxType
.
value
===
"3"
);
const
showAuditLixiang
=
computed
(
()
=>
isDaibanUser
.
value
&&
hasApproveRole
&&
lxType
.
value
===
"4"
,
()
=>
isDaibanUser
.
value
&&
hasApproveRole
&&
lxType
.
value
===
"4"
);
const
showAuditJuece
=
computed
(
()
=>
isDaibanUser
.
value
&&
jcType
.
value
===
"8"
,
()
=>
isDaibanUser
.
value
&&
jcType
.
value
===
"8"
);
const
showApprove
=
computed
(
()
=>
isDaibanUser
.
value
&&
hasApproveRole
&&
lxType
.
value
===
"2"
,
()
=>
isDaibanUser
.
value
&&
hasApproveRole
&&
lxType
.
value
===
"2"
);
// 下载文件
...
...
@@ -348,7 +348,7 @@ const downloadTemplate = async (type) => {
headers
:
{
Authorization
:
token
.
value
,
},
}
,
}
)
.
then
((
res
)
=>
res
.
blob
())
.
then
((
blob
)
=>
{
...
...
@@ -359,14 +359,14 @@ const downloadTemplate = async (type) => {
type
===
"tjjh"
?
"投决计划"
:
type
===
"xmtzzjll"
?
"项目投资资金流量表"
:
type
===
"xmzbjxjll"
?
"项目资本金现金流量表"
:
type
===
"njfxjll"
?
"能建方现金流量表"
:
type
===
"lrb"
?
"利润表"
:
""
;
?
"项目投资资金流量表"
:
type
===
"xmzbjxjll"
?
"项目资本金现金流量表"
:
type
===
"njfxjll"
?
"能建方现金流量表"
:
type
===
"lrb"
?
"利润表"
:
""
;
link
.
download
=
name
+
"模板.xlsx"
;
document
.
body
.
appendChild
(
link
);
link
.
click
();
...
...
@@ -385,7 +385,7 @@ const finance = useFinanceTables();
const
getObjSums
=
(
obj
,
objkey
)
=>
{
return
Object
.
entries
(
obj
).
reduce
(
(
acc
,
[
key
,
item
])
=>
acc
.
plus
(
new
Decimal
(
item
[
objkey
]
||
0
)),
new
Decimal
(
0
)
,
new
Decimal
(
0
)
);
};
...
...
@@ -516,7 +516,7 @@ const getProjectInfo = () => {
?.
children
||
[];
resource
.
jcQxgjList
.
value
=
resource
.
jcDsgjList
.
value
.
filter
(
(
item
)
=>
item
.
key
==
jcData
.
dsjngjjw
,
(
item
)
=>
item
.
key
==
jcData
.
dsjngjjw
)[
0
]?.
children
||
[];
resource
.
jcTzsxejflList
.
value
=
resource
.
tzsxyjflList
.
filter
((
item
)
=>
item
.
key
==
jcData
.
tzsxyjfl
)[
0
]
...
...
@@ -671,10 +671,10 @@ const submitAudit = () => {
formData
.
projectLzType
.
toString
()
===
"3"
?
"approvalLixiangByTouGuanJbr"
:
formData
.
projectLzType
.
toString
()
===
"4"
?
"approvalLixiang"
:
jcFormData
.
projectLzType
.
toString
()
===
"8"
?
"approvalJuece"
:
""
;
?
"approvalLixiang"
:
jcFormData
.
projectLzType
.
toString
()
===
"8"
?
"approvalJuece"
:
""
;
proxy
.
$post
({
url
:
"/api/project/"
+
url
,
data
:
{
...
...
src/views/projectManage/addProject/components/JueceApproval.vue
View file @
d2c0f73b
...
...
@@ -400,7 +400,7 @@
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"审核处室"
label-width=
"160"
>
<el-input
v-model=
"jcFormData.shcs"
/>
<el-input
v-model=
"jcFormData.
jcpf
shcs"
/>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
...
...
@@ -415,7 +415,7 @@
<el-col
:span=
"24"
>
<el-form-item
label=
"批复文件"
:label-width=
"130"
>
<FileUploader
v-model=
"
lcbspData
"
/>
<FileUploader
v-model=
"
jcFormData.jcpfwj
"
/>
</el-form-item>
</el-col>
</el-row>
...
...
src/views/projectManage/addProject/components/JueceBasicInfo.vue
View file @
d2c0f73b
...
...
@@ -72,7 +72,7 @@
<el-form-item
label=
"是否能建重大或重要投资项目"
>
<CommonSelector
:radio=
"true"
v-model=
"jcFormData.sfnjzdhzytz
xm
"
v-model=
"jcFormData.sfnjzdhzytz"
dictName=
"sf"
/>
</el-form-item>
...
...
@@ -589,8 +589,8 @@
<div
class=
"col-title"
>
投资指南分类
</div>
<el-form-item
label=
"2+9布局分类"
>
<CommonSelector
v-model=
"jcFormData.
tzzny
jfl"
dictName=
"
tzzn
"
v-model=
"jcFormData.
b
jfl"
dictName=
"
layoutType
"
@
change=
"changeJcTzznyjfl"
/>
</el-form-item>
...
...
@@ -674,7 +674,7 @@
<el-form-item
label=
"是否列入国资委负面清单"
>
<CommonSelector
:radio=
"true"
v-model=
"jcFormData.sf
jntbjgl
"
v-model=
"jcFormData.sf
lrgzwfmqd
"
dictName=
"sf"
/>
</el-form-item>
...
...
@@ -1415,7 +1415,7 @@
</el-table-column>
</el-table>
<el-form-item
label=
"里程碑计划审批表"
:label-width=
"130"
>
<FileUploader
v-model=
"
lcbspData
"
/>
<FileUploader
v-model=
"
jcFormData.tpbgjcsb
"
/>
</el-form-item>
</el-collapse-item>
<el-collapse-item
title=
"投评决策资料"
name=
"投评决策资料"
>
...
...
src/views/projectManage/addProject/components/JueceFinance.vue
View file @
d2c0f73b
<
template
>
<div
class=
"tab-content"
>
<div
class=
"tab-content"
>
<el-form
:model=
"jcFormData"
:label-width=
"150"
:disabled=
"isPreview"
<div
class=
"tab-content"
>
<el-form
:model=
"jcFormData"
:label-width=
"150"
:disabled=
"isPreview"
>
<el-collapse
v-model=
"activeCollapse"
>
<el-collapse-item
title=
"投评报告及测算表"
name=
"投评报告及测算表"
>
<FileUploader
v-model=
"jcFormData.tpbgjcsb"
/>
</el-collapse-item>
<el-collapse-item
title=
"投决计划"
name=
"投决计划"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('tjjh')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl + '/api/template/importExcelTempData'
"
:headers=
"
{ Authorization: token }"
:show-file-list="false"
:data="{
tampName: 'tjjh',
projectId: formData.id,
}"
:on-success="(res, file) => importTjjh(res.data, file)"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"jcTjjhData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in tjglColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"scope_.row[col_.key.toString()]"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"项目投资资金流量表"
name=
"项目投资资金流量表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('xmtzzjll')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl + '/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'xmtzzjll',
projectId: formData.id,
}"
:on-success=
"(res, file) => importXmtzzjll(res.data, file)"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"xmtzzjllData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in xmtzzjllColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"scope_.row[col_.key.toString()]"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"项目资本金现金流量表"
name=
"项目资本金现金流量表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('xmzbjxjll')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl + '/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'xmzbjxjll',
projectId: formData.id,
}"
:on-success=
"(res, file) => importXmzbjxjll(res.data, file)"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"xmzbjxjllData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in xmzbjxjllColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<el-collapse
v-model=
"activeCollapse"
>
<el-collapse-item
title=
"投决计划"
name=
"投决计划"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('tjjh')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl +
'/api/template/importExcelTempData'
"
:headers=
"
{ Authorization: token }"
:show-file-list="false"
:data="{
tampName: 'tjjh',
projectId: formData.id,
}"
:on-success="
(res, file) => importTjjh(res.data, file)
"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"jcTjjhData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in tjglColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"
scope_.row[col_.key.toString()]
"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"项目投资资金流量表"
name=
"项目投资资金流量表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('xmtzzjll')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl +
'/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'xmtzzjll',
projectId: formData.id,
}"
:on-success=
"
(res, file) => importXmtzzjll(res.data, file)
"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"xmtzzjllData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in xmtzzjllColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"
scope_.row[col_.key.toString()]
"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"项目资本金现金流量表"
name=
"项目资本金现金流量表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('xmzbjxjll')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl +
'/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'xmzbjxjll',
projectId: formData.id,
}"
:on-success=
"
(res, file) => importXmzbjxjll(res.data, file)
"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"xmzbjxjllData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in xmzbjxjllColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"
scope_.row[col_.key.toString()]
"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"能建方现金流量表"
name=
"能建方现金流量表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('njfxjll')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl +
'/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'njfxjll',
projectId: formData.id,
}"
:on-success=
"
(res, file) => importNjfxjll(res.data, file)
"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"njfxjllData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in njfxjllColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"
scope_.row[col_.key.toString()]
"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"利润表"
name=
"利润表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('lrb')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl +
'/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'lrb',
projectId: formData.id,
}"
:on-success=
"
(res, file) => importLrb(res.data, file)
"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"lrbData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in lrbColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"
scope_.row[col_.key.toString()]
"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</div>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"scope_.row[col_.key.toString()]"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"能建方现金流量表"
name=
"能建方现金流量表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('njfxjll')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl + '/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'njfxjll',
projectId: formData.id,
}"
:on-success=
"(res, file) => importNjfxjll(res.data, file)"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"njfxjllData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in njfxjllColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"scope_.row[col_.key.toString()]"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item
title=
"利润表"
name=
"利润表"
>
<div
class=
"tab-handle"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"downloadTemplate('lrb')"
>
模板下载
</el-button
>
<el-upload
:action=
"
windowConfig.baseUrl + '/api/template/importExcelTempData'
"
:headers=
"{ Authorization: token }"
:show-file-list=
"false"
:data=
"{
tampName: 'lrb',
projectId: formData.id,
}"
:on-success=
"(res, file) => importLrb(res.data, file)"
>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 12px"
>
导入数据
</el-button
>
</el-upload>
</div>
<el-table
:data=
"lrbData"
style=
"width: 100%"
empty-text=
"暂无数据"
border
>
<el-table-column
v-for=
"(column, index) in lrbColumns"
:key=
"index"
:prop=
"column.key"
:label=
"column.label"
>
<el-table-column
v-for=
"(col, ind) in column.children"
:key=
"ind"
:prop=
"col.key"
:label=
"col.label"
:width=
"ind === 1 ? 180 : null"
>
<
template
#
default=
"scope"
>
<el-table-column
v-if=
"col.children?.length"
v-for=
"(col_, ind_) in col.children"
:key=
"ind_"
:prop=
"col_.key.toString()"
:label=
"col_.label.toString()"
width=
"180"
>
<template
#
default=
"scope_"
>
<!-- 去掉空白单元行 -->
<el-input
v-if=
"
scope_.row[col.children[1].key] ||
scope_.row[col.children[1].key] === 0
"
v-model=
"scope_.row[col_.key.toString()]"
:min=
"0"
:max=
"99999999999.99999999"
controls-position=
"right"
/>
<span
v-else
></span>
</
template
>
</el-table-column>
<span
v-else
>
{{ scope.row[col.key] }}
</span>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</div>
</div>
</template>
<
script
setup
>
import
{
inject
}
from
"vue"
;
import
FileUploader
from
"@/components/FileUploader/index.vue"
;
const
{
jcFormData
,
formData
,
isPreview
,
activeCollapse
,
jcTjjhData
,
tjglColumns
,
xmtzzjllData
,
xmtzzjllColumns
,
xmzbjxjllData
,
xmzbjxjllColumns
,
njfxjllData
,
njfxjllColumns
,
lrbData
,
lrbColumns
,
jcFormData
,
tpbgjcsbData
,
formData
,
isPreview
,
tpbgjcsb
,
activeCollapse
,
jcTjjhData
,
tjglColumns
,
xmtzzjllData
,
xmtzzjllColumns
,
xmzbjxjllData
,
xmzbjxjllColumns
,
njfxjllData
,
njfxjllColumns
,
lrbData
,
lrbColumns
,
downloadTemplate
,
importTjjh
,
importXmtzzjll
,
importXmzbjxjll
,
importNjfxjll
,
importLrb
,
windowConfig
,
token
,
importTjjh
,
importXmtzzjll
,
importXmzbjxjll
,
importNjfxjll
,
importLrb
,
windowConfig
,
token
,
}
=
inject
(
"jcShared"
);
</
script
>
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