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
da565b2c
Commit
da565b2c
authored
Oct 23, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了完成情况页面以及统计页面bug
parent
751af559
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
17 deletions
+65
-17
performance.ts
src/api/project/performance.ts
+1
-1
data.tsx
src/views/performance/data.tsx
+1
-1
index.vue
src/views/performance/index.vue
+8
-4
index.vue
src/views/performance/statisticPerformance/index.vue
+54
-10
statisticData.ts
src/views/performance/statisticPerformance/statisticData.ts
+1
-1
No files found.
src/api/project/performance.ts
View file @
da565b2c
...
...
@@ -21,7 +21,7 @@ enum Api {
getProject
=
'/pro/completion/getProject'
,
statisticCompletion
=
'/pro/completion/statisticCompletion'
,
statisticCompletionDetails
=
'/pro/completion/statisticCompletionDetails'
,
ExportCount
=
'/pro/
completion/s
tatistic'
ExportCount
=
'/pro/
export/completionS
tatistic'
}
export
const
getListByPage
=
(
params
?:
ProjectParams
)
=>
defHttp
.
post
<
ProjectModel
>
({
url
:
Api
.
GetList
,
data
:
params
});
...
...
src/views/performance/data.tsx
View file @
da565b2c
...
...
@@ -202,7 +202,7 @@ export const searchFormSchema: FormSchema[] = [
colProps
:
{
span
:
4
},
},
{
field
:
'company'
,
field
:
'company
Id
'
,
label
:
''
,
component
:
'Select'
,
componentProps
:
{
...
...
src/views/performance/index.vue
View file @
da565b2c
...
...
@@ -50,8 +50,7 @@
confirm: examine.bind(null, record, true),
},
ifShow: (_action) => {
return record.completionResult == 0;
// return record.completionResult == 0
&&
deptId != '100';
return record.completionResult == 0
&&
isExamine === true
&&
record.isSubmit == '1';
},
},
]"
...
...
@@ -77,7 +76,6 @@
import
{
useMessage
}
from
"@/hooks/web/useMessage"
;
import
{
useUserStore
}
from
"@/store/modules/user"
;
const
deptId
=
ref
(
''
);
const
{
createMessage
}
=
useMessage
();
const
{
push
}
=
useRouter
();
...
...
@@ -114,8 +112,14 @@
});
}
const
isExamine
=
ref
<
boolean
>
(
false
);
onMounted
(
async
()
=>
{
deptId
.
value
=
useUserStore
().
userInfo
.
deptId
;
let
roles
=
useUserStore
().
userInfo
.
roles
;
roles
.
forEach
((
item
)
=>
{
if
(
item
.
role_key
===
'approver'
)
{
isExamine
.
value
=
true
;
}
});
const
data
=
await
getDepartmentList
();
searchFormSchema
[
2
].
componentProps
.
options
=
data
;
});
...
...
src/views/performance/statisticPerformance/index.vue
View file @
da565b2c
...
...
@@ -24,7 +24,7 @@
</div>
</template>
<
script
setup
lang=
"ts"
>
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
BasicForm
,
FormSchema
,
useForm
}
from
'@/components/Form'
;
import
PageCard
from
'@/components/Page/src/PageCard.vue'
;
import
{
Table
}
from
'ant-design-vue'
;
import
{
onMounted
,
ref
}
from
'vue'
;
...
...
@@ -32,26 +32,70 @@
getBasicColumns
,
searchForm
,
}
from
'@/views/performance/statisticPerformance/statisticData'
;
import
{
get
SelectDeptById
,
getStatistic
}
from
'@/api/project/monthlyPlan
'
;
import
{
get
DepartmentList
}
from
'@/api/project/settlementManage
'
;
import
{
getStatisticCompletionProject
,
getStatisticCompletionDetails
}
from
'@/api/project/performance'
;
import
PerformanceStatisticWindow
from
'@/views/performance/statisticPerformance/performanceStatisticWindow.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
exportStatisticList
}
from
"@/api/project/performance"
;
import
{
downloadByData
}
from
"@/utils/file/download"
;
import
moment
from
"moment"
;
const
searchForm1
=
ref
([
{
field
:
'filingCycle'
,
label
:
''
,
defaultValue
:
new
Date
(),
component
:
'DatePicker'
,
componentProps
:
{
placeholder
:
'选择填报周期'
,
style
:
{
width
:
'100%'
},
picker
:
'year'
,
defaultValue
:
moment
().
format
(
'YYYY'
),
valueFormat
:
'YYYY'
,
format
:
'YYYY'
,
},
colProps
:
{
span
:
4
},
},
{
field
:
'planType'
,
label
:
''
,
defaultValue
:
'自投'
,
component
:
'Select'
,
componentProps
:
{
defaultValue
:
'自投'
,
options
:
[
{
label
:
'自投'
,
value
:
'自投'
},
{
label
:
'代建'
,
value
:
'代建'
},
{
label
:
'承建'
,
value
:
'承建'
},
{
label
:
'储备'
,
value
:
'储备'
},
],
placeholder
:
'类型'
,
},
colProps
:
{
span
:
4
},
},
{
field
:
'companyId'
,
label
:
''
,
component
:
'Select'
,
componentProps
:
{
options
:
[],
placeholder
:
'公司名称'
,
},
colProps
:
{
span
:
4
},
},
]);
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
onMounted
(
async
()
=>
{
const
data
=
await
getSelectDeptById
();
searchForm
[
2
].
componentProps
.
options
=
data
;
getStatisticList
();
});
const
dataSource
=
ref
([]);
const
loadingRef
=
ref
(
false
);
const
params
=
ref
({
filingCycle
:
'2024'
,
planType
:
'自投'
,
company
:
''
});
onMounted
(
async
()
=>
{
const
data
=
await
getDepartmentList
();
searchForm1
.
value
[
2
].
componentProps
.
options
=
data
;
getStatisticList
();
});
const
[
registerForm
,
{
getFieldsValue
}]
=
useForm
({
labelWidth
:
90
,
baseColProps
:
{
span
:
24
},
schemas
:
searchForm
,
schemas
:
searchForm
1
,
showActionButtonGroup
:
false
,
});
function
handleSubmit
()
{
...
...
@@ -76,7 +120,7 @@
loadingRef
.
value
=
true
;
let
data
=
await
getStatisticCompletionProject
(
params
.
value
);
// dataSource.value = data;
let
propsList
=
[
'company
Name
'
];
let
propsList
=
[
'company'
];
propsList
.
map
((
item
)
=>
{
changeData
(
data
,
item
);
});
...
...
src/views/performance/statisticPerformance/statisticData.ts
View file @
da565b2c
...
...
@@ -61,7 +61,7 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
fixed
:
'left'
,
width
:
250
,
customCell
:
(
_
,
any
)
=>
({
rowSpan
:
_
.
company
Name
rowSpan
,
rowSpan
:
_
.
companyrowSpan
,
}),
},
{
...
...
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