|  | @@ -54,6 +54,7 @@
 | 
	
		
			
				|  |  |          <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd1">搅拌数据上传</el-button>
 | 
	
		
			
				|  |  |          <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd2">剩料上传</el-button>
 | 
	
		
			
				|  |  |          <el-button v-if="isRoleEdit && ispalyUd" class="success" icon="el-icon-plus" @click="handleGetUd3">撒料上传</el-button>
 | 
	
		
			
				|  |  | +        <el-button v-if="isRoleEdit" class="success" icon="el-icon-circle-check" @click="handleQuickcompletion">快速完成</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |        <!-- 日执行计划 -->
 | 
	
		
			
				|  |  |        <div class="table">
 | 
	
	
		
			
				|  | @@ -3133,6 +3134,34 @@ export default {
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    handleQuickcompletion(){
 | 
	
		
			
				|  |  | +      if (this.selectList.length == 0) {
 | 
	
		
			
				|  |  | +        this.$message({ type: 'error', message: '请先选择计划', duration: 2000 })
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        MessageBox.confirm('您是否确定勾选的状态改为已执行的计划?', {
 | 
	
		
			
				|  |  | +          confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
 | 
	
		
			
				|  |  | +        }).then(() => {
 | 
	
		
			
				|  |  | +          console.log(this.selectList)
 | 
	
		
			
				|  |  | +          let arr = []
 | 
	
		
			
				|  |  | +          for(let i=0;i<this.selectList.length;i++){
 | 
	
		
			
				|  |  | +            arr.push(this.selectList[i].id)
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          const url = '/authdata/plan/artificial/edit'
 | 
	
		
			
				|  |  | +          const data = {
 | 
	
		
			
				|  |  | +            planId:arr.join()
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          postJson(url,data).then(response => {
 | 
	
		
			
				|  |  | +            console.log('快速完成保存发送参数', this.requestParam)
 | 
	
		
			
				|  |  | +            if (response.msg === 'fail') {
 | 
	
		
			
				|  |  | +              this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +              this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
 | 
	
		
			
				|  |  | +              this.getList()
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -3180,5 +3209,8 @@ export default {
 | 
	
		
			
				|  |  |      position: relative;
 | 
	
		
			
				|  |  |      .content-table{margin-top: 20px;}
 | 
	
		
			
				|  |  |      .contentOperation{right: -50px;z-index: 1;}
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +  /deep/.el-input.is-disabled .el-input__inner{
 | 
	
		
			
				|  |  | +    color:#000
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |   </style>
 |