@@ -124,6 +133,8 @@
操作 |
查看预案
+ 提交审核
+ 撤销审核
下载
删除
|
diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss
index d963db0..06f4edd 100644
--- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss
+++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.scss
@@ -74,6 +74,7 @@
.newadd{
margin-top: 10px;
margin-left: 70px;
+ display: flex;
button{
font-size: 16px;
width: 100px;
@@ -118,4 +119,34 @@
text-decoration:underline
}
}
- }
\ No newline at end of file
+ }
+
+ //进度条
+.progressBox{
+ line-height: 49px;
+ height: 29px;
+ position: relative;
+ display: inline-block;
+ width: 100%;
+ top:10%;
+ button{
+ float: right;
+ }
+ .progress{
+ display: inline-block;
+ position: absolute;
+ width: 500px;
+ top: 22px;
+ left: 62px;
+ }
+
+ .filename{
+ display: inline-block;
+ max-width: 180px;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ // margin-left: 160px;
+ }
+
+}
\ No newline at end of file
diff --git a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
index 7a0debf..1031949 100644
--- a/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
+++ b/src/app/plan-management/onetwo-entry-plan/onetwo-entry-plan.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-24 14:15:10
* @LastEditors: sueRimn
- * @LastEditTime: 2021-01-11 14:04:49
+ * @LastEditTime: 2021-01-15 15:05:18
*/
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'
@@ -157,11 +157,34 @@ export class OnetwoEntryPlanComponent implements OnInit {
}
+ //提交审核
+ submitAudit(element){
+ // console.log(element)
+ if(element.auditStatus == 4){
+ const config = new MatSnackBarConfig();
+ config.verticalPosition = 'top';
+ config.duration = 3000
+ this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config);
+ }else{
+ this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{
+ this.getAlltabledate()
+ })
+ }
+
+ }
+ //撤销审核
+ cancelAudit(element){
+ this.http.put(`/api/PlanComponentsMajor/${element.id}/Cancel`,"").subscribe(data=>{
+ this.getAlltabledate()
+ })
+ }
+
//新增预案弹窗
addunit(){
const dialogRef = this.dialog.open(newunitComponent, {
width: '340px',
- height:'440px'
+ height:'400px',
+ disableClose:true
//data: paperDataInfo
});
dialogRef.afterClosed().subscribe(result => {
@@ -333,12 +356,27 @@ export class newunitComponent{
this.http.post(this.url=='2'?`/api/Objects/PlanPlatform/twoClass`:'/api/Objects/PlanPlatform/oneClass',formData).subscribe((data:any)=>{
this.objectName = data.objectName
//this.snackBar.open('上传成功!','确定',config);
+ let level = sessionStorage.getItem("level")
+ // console.log(level)
+ let PlanLevel
+ if(level == '0'){
+ PlanLevel = 1
+ }
+ if(level == '1'){
+ PlanLevel = 2
+ }
+ if(level == '2'){
+ PlanLevel = 4
+ }
+ if(level == '3'){
+ PlanLevel = 8
+ }
let body:any = {
Name:this.unitname||'',
PlanCategory:this.url=='2'?2:1,
PlanType: Number(this.reservePlanType),
- PlanLevel:1,
+ PlanLevel:PlanLevel,
PlanMode:1,
attachmentUrls:[`${this.objectName}`]
}
@@ -409,12 +447,27 @@ export class newunitComponent{
this.uploadisLoading = false
this.PartNumberETag =[] //清空保存返回的信息
this.uploadover = true
+ let level = sessionStorage.getItem("level")
+ // console.log(level)
+ let PlanLevel
+ if(level == '0'){
+ PlanLevel = 1
+ }
+ if(level == '1'){
+ PlanLevel = 2
+ }
+ if(level == '2'){
+ PlanLevel = 4
+ }
+ if(level == '3'){
+ PlanLevel = 8
+ }
let body:any = {
Name:this.unitname||'',
PlanCategory:this.url=='2'?2:1,
PlanType: Number(this.reservePlanType),
- PlanLevel:1,
+ PlanLevel:PlanLevel,
PlanMode:1,
attachmentUrls:[`${this.objectName}`]
}
diff --git a/src/app/plan-management/plan-management.module.ts b/src/app/plan-management/plan-management.module.ts
index 2b5d724..3c10cd0 100644
--- a/src/app/plan-management/plan-management.module.ts
+++ b/src/app/plan-management/plan-management.module.ts
@@ -55,12 +55,14 @@ import { newunitComponent} from './onetwo-entry-plan/onetwo-entry-plan.component
import { MeetPlanComponent } from './meet-plan/meet-plan.component';
import { newunitMeet }from './meet-plan/meet-plan.component';
import { TypePlanComponent } from './type-plan/type-plan.component';
-import { newunitType }from './type-plan/type-plan.component'
+import { newunitType }from './type-plan/type-plan.component';
+import { PsViewer } from './entry-plan-look/entry-plan-look.component'
@NgModule({
- declarations: [EntryPlanComponent, PassPlanComponent, OpenPlanComponent, EntryPlanLookComponent,AddPlanone,PlanType,AuditSatus,PlanLevel,DownloadFile,AuditResult,ChangeName, WebLookComponent, OnetwoEntryPlanComponent,newunitComponent, MeetPlanComponent,newunitMeet, TypePlanComponent,newunitType],
+ declarations: [EntryPlanComponent, PassPlanComponent, OpenPlanComponent, EntryPlanLookComponent,AddPlanone,PlanType,AuditSatus,PlanLevel,DownloadFile,AuditResult,ChangeName,
+ WebLookComponent, OnetwoEntryPlanComponent,newunitComponent, MeetPlanComponent,newunitMeet, TypePlanComponent,newunitType,PsViewer],
imports: [
CommonModule,
PlanManagementRoutingModule,
diff --git a/src/app/plan-management/type-plan/newunit.html b/src/app/plan-management/type-plan/newunit.html
index 519b63d..cd2b0a7 100644
--- a/src/app/plan-management/type-plan/newunit.html
+++ b/src/app/plan-management/type-plan/newunit.html
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-12-24 16:26:16
* @LastEditors: sueRimn
- * @LastEditTime: 2021-01-11 13:57:06
+ * @LastEditTime: 2021-01-13 15:26:19
-->
@@ -22,11 +22,16 @@
-
-
-
上传中...
-
-
+
+
+
+ 上传中...
+
+
+
+
+
+
diff --git a/src/app/plan-management/type-plan/newunit.scss b/src/app/plan-management/type-plan/newunit.scss
index 42ff2b4..9270aa9 100644
--- a/src/app/plan-management/type-plan/newunit.scss
+++ b/src/app/plan-management/type-plan/newunit.scss
@@ -52,3 +52,26 @@
opacity: 0;
-ms-filter: 'alpha(opacity=0)';
}
+
+.uping{
+ display:flex;
+ .upclass{
+ margin-left: 3px;
+ height: 30px;
+ }
+ .progress{
+ position: relative;
+ top:3%
+ }
+ button{
+ width: 80px;
+ height: 30px;
+ font-size: 10px;
+ margin-top: 5px;
+ }
+ span{
+ font-size: 10px;
+ position: relative;
+ top: 8px;
+ }
+}
diff --git a/src/app/plan-management/type-plan/type-plan.component.html b/src/app/plan-management/type-plan/type-plan.component.html
index 5982abd..4dfa58b 100644
--- a/src/app/plan-management/type-plan/type-plan.component.html
+++ b/src/app/plan-management/type-plan/type-plan.component.html
@@ -61,7 +61,17 @@
+
+
+
+
+
+
+ {{downloadFileName}}
+ 下载中...
+
+
@@ -101,6 +111,8 @@
操作 |
查看预案
+ 提交审核
+ 撤销审核
下载
删除
|
diff --git a/src/app/plan-management/type-plan/type-plan.component.scss b/src/app/plan-management/type-plan/type-plan.component.scss
index d963db0..71cadc2 100644
--- a/src/app/plan-management/type-plan/type-plan.component.scss
+++ b/src/app/plan-management/type-plan/type-plan.component.scss
@@ -74,6 +74,7 @@
.newadd{
margin-top: 10px;
margin-left: 70px;
+ display: flex;
button{
font-size: 16px;
width: 100px;
@@ -118,4 +119,34 @@
text-decoration:underline
}
}
- }
\ No newline at end of file
+ }
+
+ //进度条
+.progressBox{
+ line-height: 49px;
+ height: 29px;
+ position: relative;
+ display: inline-block;
+ width: 100%;
+ top:5%;
+ button{
+ float: right;
+ }
+ .progress{
+ display: inline-block;
+ position: absolute;
+ width: 500px;
+ top: 22px;
+ left: 62px;
+ }
+
+ .filename{
+ display: inline-block;
+ max-width: 180px;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ // margin-left: 160px;
+ }
+
+}
\ No newline at end of file
diff --git a/src/app/plan-management/type-plan/type-plan.component.ts b/src/app/plan-management/type-plan/type-plan.component.ts
index 9e104cc..623917f 100644
--- a/src/app/plan-management/type-plan/type-plan.component.ts
+++ b/src/app/plan-management/type-plan/type-plan.component.ts
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2021-01-06 09:47:43
* @LastEditors: sueRimn
- * @LastEditTime: 2021-01-11 14:01:30
+ * @LastEditTime: 2021-01-15 15:15:49
*/
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'
@@ -145,11 +145,33 @@ export class TypePlanComponent implements OnInit {
}
+ //提交审核
+ submitAudit(element){
+ // console.log(element)
+ if(element.auditStatus == 4){
+ const config = new MatSnackBarConfig();
+ config.verticalPosition = 'top';
+ config.duration = 3000
+ this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config);
+ }else{
+ this.http.put(`/api/PlanComponentsMajor/${element.id}/Commit`,"").subscribe(data=>{
+ this.getAlltabledate()
+ })
+ }
+
+ }
+ //撤销审核
+ cancelAudit(element){
+ this.http.put(`/api/PlanComponentsMajor/${element.id}/Cancel`,"").subscribe(data=>{
+ this.getAlltabledate()
+ })
+ }
//新增预案弹窗
addunit(){
const dialogRef = this.dialog.open(newunitType, {
width: '340px',
- height:'370px'
+ height:'330px',
+ disableClose:true
//data: paperDataInfo
});
dialogRef.afterClosed().subscribe(result => {
@@ -309,6 +331,21 @@ export class newunitType{
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
+ let level = sessionStorage.getItem("level")
+ // console.log(level)
+ let PlanLevel
+ if(level == '0'){
+ PlanLevel = 1
+ }
+ if(level == '1'){
+ PlanLevel = 2
+ }
+ if(level == '2'){
+ PlanLevel = 4
+ }
+ if(level == '3'){
+ PlanLevel = 8
+ }
this.http.post(`/api/Objects/PlanPlatform/typeClass`,formData).subscribe((data:any)=>{
this.objectName = data.objectName
//console.log('上传成功')
@@ -316,7 +353,7 @@ export class newunitType{
let body:any = {
Name:this.unitname||'',
PlanCategory:8,
- PlanLevel:1,
+ PlanLevel:PlanLevel,
PlanMode:1,
attachmentUrls:[`${this.objectName}`]
}
@@ -387,11 +424,26 @@ export class newunitType{
this.uploadisLoading = false
this.PartNumberETag =[] //清空保存返回的信息
this.uploadover = true
+ let level = sessionStorage.getItem("level")
+ // console.log(level)
+ let PlanLevel
+ if(level == '0'){
+ PlanLevel = 1
+ }
+ if(level == '1'){
+ PlanLevel = 2
+ }
+ if(level == '2'){
+ PlanLevel = 4
+ }
+ if(level == '3'){
+ PlanLevel = 8
+ }
let body:any = {
Name:this.unitname||'',
PlanCategory:8,
- PlanLevel:1,
+ PlanLevel:PlanLevel,
PlanMode:1,
attachmentUrls:[`${this.objectName}`]
}
diff --git a/src/index.html b/src/index.html
index 3a0931f..a52c1b2 100644
--- a/src/index.html
+++ b/src/index.html
@@ -4,7 +4,7 @@
* @Author: sueRimn
* @Date: 2020-11-25 15:44:29
* @LastEditors: sueRimn
- * @LastEditTime: 2020-11-28 13:54:40
+ * @LastEditTime: 2021-01-12 13:42:33
-->
@@ -15,6 +15,7 @@
+