Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
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
紫光云
web-project
Commits
e8e5e8d8
Commit
e8e5e8d8
authored
Jun 05, 2024
by
mengzixuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 工程项目投资计划、年度工程资金计划分页查询接口对接
parent
727c417e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
108 additions
and
111 deletions
+108
-111
annualPlan.ts
src/api/project/annualPlan.ts
+2
-2
engineeringProject.ts
src/api/project/engineeringProject.ts
+1
-1
data.tsx
src/views/annualPlan/data.tsx
+11
-11
index.vue
src/views/annualPlan/index.vue
+1
-1
data.tsx
src/views/engineeringProject/data.tsx
+12
-12
index.vue
src/views/engineeringProject/index.vue
+81
-84
No files found.
src/api/project/annualPlan.ts
View file @
e8e5e8d8
...
...
@@ -2,7 +2,7 @@ import { ProjectParams, ProjectListGetResultModel, ProjectModel } from './model/
import
{
defHttp
}
from
'@/utils/http/axios'
;
enum
Api
{
GetList
=
'/statement/list
/page'
,
GetList
=
'/pro/fundPlanYear
/page'
,
}
export
const
getAnnualPlanList
=
(
params
?:
ProjectParams
)
=>
defHttp
.
post
<
ProjectModel
>
({
url
:
Api
.
GetList
,
data
:
params
});
defHttp
.
post
<
ProjectModel
>
({
url
:
Api
.
GetList
,
data
:
params
});
src/api/project/engineeringProject.ts
View file @
e8e5e8d8
...
...
@@ -2,7 +2,7 @@ import { ProjectParams, ProjectListGetResultModel, ProjectModel } from './model/
import
{
defHttp
}
from
'@/utils/http/axios'
;
enum
Api
{
GetList
=
'/
statement/list/page
'
,
GetList
=
'/
pro/investmentPlan/getPlanList
'
,
}
export
const
getEngineeringList
=
(
params
?:
ProjectParams
)
=>
defHttp
.
post
<
ProjectModel
>
({
url
:
Api
.
GetList
,
data
:
params
});
src/views/annualPlan/data.tsx
View file @
e8e5e8d8
...
...
@@ -23,57 +23,57 @@ export const columns: (
},
{
title
:
'年度'
,
dataIndex
:
'
projectName
'
,
dataIndex
:
'
year
'
,
width
:
200
,
},
{
title
:
'类型'
,
dataIndex
:
'
implementingEntity
'
,
dataIndex
:
'
type
'
,
width
:
180
,
},
{
title
:
'年计划投资'
,
dataIndex
:
'
constructionMode
'
,
dataIndex
:
'
planInvestment
'
,
width
:
180
,
},
{
title
:
'年资金计划额合计'
,
dataIndex
:
'
projectType
'
,
dataIndex
:
'
totalPlan
'
,
width
:
180
,
},
{
title
:
'年资金缺口合计'
,
dataIndex
:
'
fundingSource
'
,
dataIndex
:
'
gapTotal
'
,
width
:
180
,
},
{
title
:
'公司名称'
,
dataIndex
:
'
国constructionScal
e'
,
dataIndex
:
'
companyNam
e'
,
width
:
180
,
},
{
title
:
'最新更新人'
,
dataIndex
:
'
国constructionScale
'
,
dataIndex
:
'
updateBy
'
,
width
:
180
,
},
{
title
:
'最新更新时间'
,
dataIndex
:
'
国constructionScal
e'
,
dataIndex
:
'
updateTim
e'
,
width
:
180
,
},
{
title
:
'审核状态'
,
dataIndex
:
'
国constructionScale
'
,
dataIndex
:
'
reviewStatus
'
,
width
:
180
,
},
{
title
:
'审核人'
,
dataIndex
:
'
国constructionScale
'
,
dataIndex
:
'
revieweUser
'
,
width
:
180
,
},
{
title
:
'审核时间'
,
dataIndex
:
'
国constructionScal
e'
,
dataIndex
:
'
reviewTim
e'
,
width
:
180
,
},
];
...
...
src/views/annualPlan/index.vue
View file @
e8e5e8d8
...
...
@@ -49,7 +49,7 @@ defineOptions({ name: 'Performance' });
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
registerTable
,
{
reload
}]
=
useTable
({
api
:
get
ListByPage
,
api
:
get
AnnualPlanList
,
title
:
'123'
,
columns
,
formConfig
:
{
...
...
src/views/engineeringProject/data.tsx
View file @
e8e5e8d8
...
...
@@ -22,62 +22,62 @@ export const columns: (
},
{
title
:
'填报周期'
,
dataIndex
:
'
projectNam
e'
,
dataIndex
:
'
filingCycl
e'
,
width
:
200
,
},
{
title
:
'类型'
,
dataIndex
:
'
implementingEntity
'
,
dataIndex
:
'
planType
'
,
width
:
180
,
},
{
title
:
'项目数量'
,
dataIndex
:
'
constructionMode
'
,
dataIndex
:
'
totalProject
'
,
width
:
180
,
},
{
title
:
'总投资'
,
dataIndex
:
'
projectType
'
,
dataIndex
:
'
totalInvestment
'
,
width
:
180
,
},
{
title
:
'合同总额合计'
,
dataIndex
:
'
fundingSource
'
,
dataIndex
:
'
totalContract
'
,
width
:
180
,
},
{
title
:
'三年滚动投资计划合计'
,
dataIndex
:
'
constructionPurpose
'
,
dataIndex
:
'
totalRollingInvestment
'
,
width
:
180
,
},
{
title
:
'公司名称'
,
dataIndex
:
'
国constructionScale
'
,
dataIndex
:
'
company
'
,
width
:
180
,
},
{
title
:
'最新更新人'
,
dataIndex
:
'
国constructionScale
'
,
dataIndex
:
'
updateBy
'
,
width
:
180
,
},
{
title
:
'最新更新时间'
,
dataIndex
:
'
国constructionScal
e'
,
dataIndex
:
'
updateTim
e'
,
width
:
180
,
},
{
title
:
'审核状态'
,
dataIndex
:
'
国constructionScale
'
,
dataIndex
:
'
planResult
'
,
width
:
180
,
},
{
title
:
'审核人'
,
dataIndex
:
'
国constructionScale
'
,
dataIndex
:
'
auditingBy
'
,
width
:
180
,
},
{
title
:
'审核时间'
,
dataIndex
:
'
国constructionScal
e'
,
dataIndex
:
'
auditingTim
e'
,
width
:
180
,
},
];
...
...
src/views/engineeringProject/index.vue
View file @
e8e5e8d8
...
...
@@ -7,16 +7,14 @@
<a-button
type=
"primary"
@
click=
"Import"
>
新建计划(储备)
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, text, record, index }"
>
<!-- 当前列是序号列时,显示序号 -->
<span
v-if=
"column.dataIndex === 'serialNumber'"
>
{{
index
+
1
}}
</span>
<!-- 其他列正常显示 -->
<span
v-else
>
{{
text
}}
</span>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
:actions=
"[
{
icon: 'clarity:note-edit-line',
onClick: handleEdit.bind(null, record),
...
...
@@ -39,89 +37,88 @@
</div>
</template>
<
script
lang=
"ts"
setup
>
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
yearModal
from
'@/components/yearModal.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
getEngineeringList
}
from
'@/api/project/engineeringProject'
;
import
{
getListByPage
}
from
'@/api/project/biddingPlan'
;
import
{
useDrawer
}
from
'@/components/Drawer'
;
import
{
columns
,
searchFormSchema
}
from
'./data'
;
import
{
router
}
from
"@/router"
;
defineOptions
({
name
:
'EngineeringProject'
});
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
const
[
registerTable
,
{
reload
}]
=
useTable
({
api
:
getEngineeringList
,
title
:
'123'
,
columns
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
},
useSearchForm
:
true
,
showTableSetting
:
false
,
bordered
:
true
,
showIndexColumn
:
false
,
actionColumn
:
{
width
:
80
,
title
:
'操作'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
fixed
:
undefined
,
},
});
function
handleEdit
(
record
:
Recordable
)
{
openDrawer
(
true
,
{
record
,
isUpdate
:
true
,
});
}
function
handleDelete
(
record
:
Recordable
)
{
console
.
log
(
record
);
}
function
handleSuccess
()
{
reload
();
}
const
Import
=
()
=>
{
console
.
log
(
'导入数据'
);
};
const
addEngineering
=
()
=>
{
// openModal(true, {
// data: 'content',
// info: 'Info',
// });
openModal
(
true
,
{
data
:
[
'year'
],
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
yearModal
from
'@/components/yearModal.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
getEngineeringList
}
from
'@/api/project/engineeringProject'
;
import
{
getListByPage
}
from
'@/api/project/biddingPlan'
;
import
{
useDrawer
}
from
'@/components/Drawer'
;
import
{
columns
,
searchFormSchema
}
from
'./data'
;
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'EngineeringProject'
});
const
[
registerDrawer
,
{
openDrawer
}]
=
useDrawer
();
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
const
[
registerTable
,
{
reload
}]
=
useTable
({
api
:
getEngineeringList
,
title
:
'123'
,
columns
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
},
useSearchForm
:
true
,
showTableSetting
:
false
,
bordered
:
true
,
showIndexColumn
:
false
,
actionColumn
:
{
width
:
80
,
title
:
'操作'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
fixed
:
undefined
,
},
});
};
const
handleNew
=
(
e
)
=>
{
console
.
log
(
e
);
router
.
push
({
path
:
'/engineeringProject/edit'
,
query
:
e
,
});;
};
const
change
=
(
key
:
string
)
=>
{
reload
();
};
function
handleEdit
(
record
:
Recordable
)
{
openDrawer
(
true
,
{
record
,
isUpdate
:
true
,
});
}
function
handleDelete
(
record
:
Recordable
)
{
console
.
log
(
record
);
}
function
handleSuccess
()
{
reload
();
}
const
Import
=
()
=>
{
console
.
log
(
'导入数据'
);
};
const
addEngineering
=
()
=>
{
// openModal(true, {
// data: 'content',
// info: 'Info',
// });
openModal
(
true
,
{
data
:
[
'year'
],
});
};
const
handleNew
=
(
e
)
=>
{
console
.
log
(
e
);
router
.
push
({
path
:
'/engineeringProject/edit'
,
query
:
e
,
});
};
const
change
=
(
key
:
string
)
=>
{
reload
();
};
</
script
>
<
style
scoped
>
.btn
{
margin-right
:
10px
;
}
.btn
{
margin-right
:
10px
;
}
</
style
>
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