From 08a609e2a836cb4c02ed48ddf79110acda7f62d2 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sun, 19 May 2024 18:00:48 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DetailComponent/SummaryDetail.vue | 23 +++-
src/views/project-demand/summary/add.vue | 114 +++++++++++-----
src/views/project-demand/summary/index.vue | 57 ++++----
.../implementation/check.vue | 48 ++++++-
.../implementation/index.vue | 53 ++++++--
.../project-management/initiation/apply.vue | 126 ++++++++++--------
.../project-management/initiation/index.vue | 26 ++--
7 files changed, 291 insertions(+), 156 deletions(-)
diff --git a/src/components/DetailComponent/SummaryDetail.vue b/src/components/DetailComponent/SummaryDetail.vue
index 860ddb2..5946af3 100644
--- a/src/components/DetailComponent/SummaryDetail.vue
+++ b/src/components/DetailComponent/SummaryDetail.vue
@@ -16,6 +16,11 @@
{{ formData.startTime }}
+
+
+ {{ formData.endTime }}
+
+
{{ formData.companyName }}
@@ -26,11 +31,6 @@
{{ formData.projectType }}
-
-
- {{ formData.endTime }}
-
-
{{ formData.investmentType }}
@@ -132,13 +132,22 @@
+
@@ -174,7 +170,7 @@ const tableConfig = reactive({
api: '',
params: {},
btns: [
- {name: '生成分摊报表', key: '_export', color: '#DED0B2',auth: ''}
+ {name: '生成分摊报表', key: '_export', color: '#DED0B2', auth: ''}
]
})
@@ -185,11 +181,42 @@ const search = (val) => {
const handleDetail = (row) => {
router.push({
- name:'Implementation/detail',
+ name: 'Implementation/detail',
+ query: {
+ id: row.requirementId
+ }
+ })
+}
+const handleCheck = (row) => {
+ router.push({
+ name: 'Implementation/check',
+ query: {
+ id: row.requirementId
+ }
+ })
+}
+const handleStandingBook = (row) => {
+ router.push({
+ name: 'Implementation/account',
+ query: {
+ id: row.requirementId
+ }
+ })
+}
+const handleAttachment = (row) => {
+ router.push({
+ name: 'Implementation/attachment',
+ query: {
+ id: row.requirementId
+ }
+ })
+}
+const handleShare = (row) => {
+ router.push({
+ name: 'Implementation/share',
query: {
id: row.requirementId
}
})
}
-
diff --git a/src/views/project-management/initiation/apply.vue b/src/views/project-management/initiation/apply.vue
index c0c9c01..4ceec9d 100644
--- a/src/views/project-management/initiation/apply.vue
+++ b/src/views/project-management/initiation/apply.vue
@@ -8,26 +8,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
提交
@@ -35,13 +20,14 @@
diff --git a/src/views/project-management/initiation/index.vue b/src/views/project-management/initiation/index.vue
index 939052b..0b387f1 100644
--- a/src/views/project-management/initiation/index.vue
+++ b/src/views/project-management/initiation/index.vue
@@ -93,15 +93,11 @@ const tableIns = ref()
const tableConfig = reactive({
columns: [
{
- prop: 'requirementName',
+ prop: 'projectName',
label: '名称',
align: 'center'
},
{
- prop: 'undertaker',
- label: '承办单位',
- align: 'center'
- }, {
prop: 'affiliatedCompanyId',
label: '所属公司',
align: 'center'
@@ -121,14 +117,9 @@ const tableConfig = reactive({
label: '项目影响',
align: 'center'
},
- {
- prop: 'survey',
- label: '经营概况',
- align: 'center'
- },
{
prop: 'startTime',
- label: '起始时间',
+ label: '起止时间',
align: 'center'
},
{
@@ -136,7 +127,13 @@ const tableConfig = reactive({
label: '状态',
align: 'center',
showOverflowTooltip: false,
- currentRender: ({row, index}) => (
)
+ currentRender: ({row, index}) =>{
+ if (row.state !== null) {
+ return ()
+ } else {
+ return '--'
+ }
+ }
},
{
prop: 'oper',
@@ -145,11 +142,10 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
- if (row.state === '4') {
+ if (row.state === '3') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
+ } else if (row.state === '20') {
btn.push({label: '申请', func: () => handleApply(row), type: 'primary'})
- } else if (row.state === '4') {
-
}
return (