From 48266667ee5a714710e6699c6011c79aecee92eb Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sun, 9 Oct 2022 10:19:33 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unit-details/unit-details.component.html | 42 +++++++++++-------- .../unit-details/unit-details.component.scss | 4 +- .../da-monthly-task-overview.component.html | 12 ++---- .../da-oneself-plan.component.ts | 2 +- .../plan-adjustment.component.ts | 4 +- .../station-task-execution.component.html | 9 ++-- .../station-task-execution.component.scss | 8 ++++ .../station-task-execution.component.ts | 25 ++++++++++- .../station-weekly-plan.component.html | 20 +++++---- .../station-weekly-plan.component.scss | 13 ++++-- .../station-weekly-plan.component.ts | 21 ++++++---- .../task-details/task-details.component.ts | 4 +- .../zhi-indicators.component.ts | 4 +- 13 files changed, 109 insertions(+), 59 deletions(-) diff --git a/src/app/home/basic-info/unit-details/unit-details.component.html b/src/app/home/basic-info/unit-details/unit-details.component.html index 38dbcc4..09c87db 100644 --- a/src/app/home/basic-info/unit-details/unit-details.component.html +++ b/src/app/home/basic-info/unit-details/unit-details.component.html @@ -163,8 +163,11 @@
- {{company}}基本情况 ++ {{company}} + 基本情况 + |
|||||||||||||||||||
- 单位名称 ++ 单位名称 + |
- {{company}} ++ {{company}} + |
@@ -2386,7 +2394,7 @@
style="font-family:宋体; font-size:9pt">{{item.name}}
-
-
+
- {{item.planTime | date:"yyyy-MM-dd"}}
+ {{item.planTime | date:"yyyy-MM-dd HH:mm:ss"}}
时间
@@ -185,10 +185,11 @@
同步工作
-
+
查看
- 完成
+ 完成
+ 驳回
操作
diff --git a/src/app/home/task/station-task-execution/station-task-execution.component.scss b/src/app/home/task/station-task-execution/station-task-execution.component.scss
index 96cdb68..b653342 100644
--- a/src/app/home/task/station-task-execution/station-task-execution.component.scss
+++ b/src/app/home/task/station-task-execution/station-task-execution.component.scss
@@ -204,6 +204,10 @@
}
+ .flexcolcaozuo {
+ flex: 1.5;
+ }
+
.flexcolassistant {
flex: 2;
overflow: hidden;
@@ -242,6 +246,10 @@
flex: 2;
}
+ .time {
+ flex: 2;
+ }
+
.flexcolcenter {
flex: 0.5;
align-items: center;
diff --git a/src/app/home/task/station-task-execution/station-task-execution.component.ts b/src/app/home/task/station-task-execution/station-task-execution.component.ts
index 0f11077..adf7344 100644
--- a/src/app/home/task/station-task-execution/station-task-execution.component.ts
+++ b/src/app/home/task/station-task-execution/station-task-execution.component.ts
@@ -54,8 +54,29 @@ export class StationTaskExecutionComponent implements OnInit {
this.getTaskList()
}
- cancel(item, type) {
-
+ cancel(item) {
+ this.modal.confirm({
+ nzTitle: `确定要驳回该任务吗?`,
+ nzOkText: '确定',
+ nzOkType: 'default',
+ nzOnOk: () => {
+ item.isLoading = true
+ this.http.post(`/api/PlanTasks/Approval/${item.id}`, null, {
+ params: {
+ approvalStatus: '驳回'
+ }
+ }).subscribe({
+ next: (data) => {
+ this.getTaskList()
+ this.message.create('success', '已驳回');
+ },
+ error: (err) => {
+ this.message.create('warning', '驳回失败');
+ }
+ })
+ },
+ nzCancelText: '取消'
+ });
}
delete(item) {
diff --git a/src/app/home/task/station-weekly-plan/station-weekly-plan.component.html b/src/app/home/task/station-weekly-plan/station-weekly-plan.component.html
index d38b468..666b978 100644
--- a/src/app/home/task/station-weekly-plan/station-weekly-plan.component.html
+++ b/src/app/home/task/station-weekly-plan/station-weekly-plan.component.html
@@ -100,10 +100,10 @@
{{i.company.companyName}}
接受
拒绝
({{i.approvalStatus}})
@@ -111,9 +111,10 @@
{{i.company.organization.name}} 接受 - 拒绝 ({{i.approvalStatus}}) @@ -138,15 +139,15 @@ {{element.name}} 单位总数: {{element.allUnitsNum}}/{{TuesdayThursdayNum}} -
+
-
完成进度
-
+
+
- |