|  | @@ -736,14 +736,52 @@ export default {
 | 
	
		
			
				|  |  |              let msg = "";
 | 
	
		
			
				|  |  |              if (request.planStatus == 1) {
 | 
	
		
			
				|  |  |                if(request.isComplete==true){
 | 
	
		
			
				|  |  | -                msg =  "因不存在已完成任务,本次修改内容将立即生效,是否确认提交?";
 | 
	
		
			
				|  |  | +              if (request.planCycle==0) {
 | 
	
		
			
				|  |  | +                this.$modal
 | 
	
		
			
				|  |  | +         .confirm("因存在已完成任务,无周期任务如需修改,请删除后重新下发”。")
 | 
	
		
			
				|  |  | +         .then(() => {
 | 
	
		
			
				|  |  | +             
 | 
	
		
			
				|  |  | +                this.open = false;
 | 
	
		
			
				|  |  | +                this.getList();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +              }else{
 | 
	
		
			
				|  |  | +                msg =  "因不存在已完成任务,本次修改内容将立即生效";
 | 
	
		
			
				|  |  | +                this.$modal
 | 
	
		
			
				|  |  | +              .confirm(msg)
 | 
	
		
			
				|  |  | +              .then(function () {
 | 
	
		
			
				|  |  | +                return updatePlan(request);
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +              .then(() => {
 | 
	
		
			
				|  |  | +                this.$modal.msgSuccess("编辑成功");
 | 
	
		
			
				|  |  | +                this.open = false;
 | 
	
		
			
				|  |  | +                this.getList();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +              .catch(() => {
 | 
	
		
			
				|  |  | +              });
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +              
 | 
	
		
			
				|  |  |                }else{
 | 
	
		
			
				|  |  | -                msg = "因存在已完成任务,本次修改内容将下周期生效,是否确认提交?";
 | 
	
		
			
				|  |  | +                msg = "因存在已完成任务,本次修改内容将下周期生效";
 | 
	
		
			
				|  |  | +                this.$modal
 | 
	
		
			
				|  |  | +              .confirm(msg)
 | 
	
		
			
				|  |  | +              .then(function () {
 | 
	
		
			
				|  |  | +                return updatePlan(request);
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +              .then(() => {
 | 
	
		
			
				|  |  | +                this.$modal.msgSuccess("编辑成功");
 | 
	
		
			
				|  |  | +                this.open = false;
 | 
	
		
			
				|  |  | +                this.getList();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +              .catch(() => {
 | 
	
		
			
				|  |  | +              });
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  | +              
 | 
	
		
			
				|  |  |              }else{
 | 
	
		
			
				|  |  |                msg = "是否确认修改?";
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            this.$modal
 | 
	
		
			
				|  |  | +              this.$modal
 | 
	
		
			
				|  |  |                .confirm(msg)
 | 
	
		
			
				|  |  |                .then(function () {
 | 
	
		
			
				|  |  |                  return updatePlan(request);
 | 
	
	
		
			
				|  | @@ -756,13 +794,9 @@ export default {
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  |                .catch(() => {
 | 
	
		
			
				|  |  |                });
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            // updatePlan(this.form).then((response) => {
 | 
	
		
			
				|  |  | -            //   this.$modal.msgSuccess("修改成功");
 | 
	
		
			
				|  |  | -            //   this.open = false;
 | 
	
		
			
				|  |  | -            //   this.getList();
 | 
	
		
			
				|  |  | -            // });
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  |              addPlan(this.form).then((response) => {
 | 
	
		
			
				|  |  |                this.$modal.msgSuccess("新增成功");
 | 
	
	
		
			
				|  | @@ -913,6 +947,10 @@ export default {
 | 
	
		
			
				|  |  |          if (row.planCycle==0) {
 | 
	
		
			
				|  |  |             this.$modal
 | 
	
		
			
				|  |  |           .confirm("存在已完成任务,无周期任务不允许撤回,如需删除下发任务请点击“删除”。")
 | 
	
		
			
				|  |  | +         .then(() => {
 | 
	
		
			
				|  |  | +          this.getList();
 | 
	
		
			
				|  |  | +       
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  |          }else{
 | 
	
		
			
				|  |  |            this.$modal
 | 
	
		
			
				|  |  |          .confirm("因存在已完成任务,撤回后下周期起将不再生成任务")
 |