Ver código fonte

评估项目作废

sangwenwei 1 ano atrás
pai
commit
0b7b13e2b5
1 arquivos alterados com 36 adições e 36 exclusões
  1. 36 36
      src/views/program/registered/ProjectList.vue

+ 36 - 36
src/views/program/registered/ProjectList.vue

@@ -331,21 +331,21 @@
     <WorkContractForm2 ref="workContractForm2" @refreshDataList="refreshList"></WorkContractForm2>
 	  <ProjectArchiveFormDialog ref="projectArchiveFormDialog" @refreshDataList="refreshList"></ProjectArchiveFormDialog>
 	  <user-select ref="userSelect2" @doSubmit="selectUser"></user-select>
-	  <el-dialog
-		  v-model="dialogVisible"
-		  title="提示"
-		  width="500"
-	  >
-		  <span>报告号-{{usedNo.reportNo}}已经被使用,是否要恢复</span>
-		  <template #footer>
-			  <div class="dialog-footer">
-				  <el-button @click="dialogVisible = false">否</el-button>
-				  <el-button type="primary" @click="reUsedReportNo(usedNo)">
-					  是
-				  </el-button>
-			  </div>
-		  </template>
-	  </el-dialog>
+<!--	  <el-dialog-->
+<!--		  v-model="dialogVisible"-->
+<!--		  title="提示"-->
+<!--		  width="500"-->
+<!--	  >-->
+<!--		  <span>报告号-{{usedNo.reportNo}}已经被使用,是否要恢复</span>-->
+<!--		  <template #footer>-->
+<!--			  <div class="dialog-footer">-->
+<!--				  <el-button @click="dialogVisible = false">否</el-button>-->
+<!--				  <el-button type="primary" @click="reUsedReportNo(usedNo)">-->
+<!---->
+<!--				  </el-button>-->
+<!--			  </div>-->
+<!--		  </template>-->
+<!--	  </el-dialog>-->
   </div>
 </template>
 
@@ -1757,8 +1757,8 @@
 							})
 						})
 					})
-      				this.usedNo = row
-      				this.dialogVisible = true
+      				// this.usedNo = row
+      				// this.dialogVisible = true
 				}else {
 					this.$confirm(`确定要恢复该项目吗?`, '提示', {
 						confirmButtonText: '确定',
@@ -1780,25 +1780,25 @@
 				}
 			})
 		},
-		reUsedReportNo(usedNo){
-			this.$confirm(`确定要恢复该项目吗?`, '提示', {
-				confirmButtonText: '确定',
-				cancelButtonText: '取消',
-				type: 'warning'
-			}).then(async () => {
-				await this.programProjectListInfoService.queryById(usedNo.cancellId).then((data) => {
-					if (data.cancellationStatus !== '5') { // status的值不等于“审核中”,就弹出提示
-						this.$message.error('数据已发生改变或不存在,请刷新数据')
-						this.refreshList()
-					} else {
-						let form = {cancellationStatus: '0', cancellId: usedNo.cancellId}
-						this.programProjectListInfoService.updateStatusByCancellId(form)
-						this.dialogVisible = false
-						this.refreshList()
-					}
-				})
-			})
-		},
+		// reUsedReportNo(usedNo){
+		// 	this.$confirm(`确定要恢复该项目吗?`, '提示', {
+		// 		confirmButtonText: '确定',
+		// 		cancelButtonText: '取消',
+		// 		type: 'warning'
+		// 	}).then(async () => {
+		// 		await this.programProjectListInfoService.queryById(usedNo.cancellId).then((data) => {
+		// 			if (data.cancellationStatus !== '5') { // status的值不等于“审核中”,就弹出提示
+		// 				this.$message.error('数据已发生改变或不存在,请刷新数据')
+		// 				this.refreshList()
+		// 			} else {
+		// 				let form = {cancellationStatus: '0', cancellId: usedNo.cancellId}
+		// 				this.programProjectListInfoService.updateStatusByCancellId(form)
+		// 				this.dialogVisible = false
+		// 				this.refreshList()
+		// 			}
+		// 		})
+		// 	})
+		// },
 		archiveEdit(row){
       		console.log('id',row.archiveId)
       		this.$refs.projectArchiveFormDialog.init('edit',row.archiveId);