|
@@ -141,6 +141,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
imgUrl: imgUrl,
|
|
|
+ tableList: [], // 排期bable验证
|
|
|
showTaskDialog: false, // 状态弹窗
|
|
|
all_task: [], // 任务列表
|
|
|
allStatus: [], // 任务所有状态
|
|
@@ -263,6 +264,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleSelectionChange(val) { // 任务列表删选操作
|
|
|
+ this.tableList = []
|
|
|
+ this.tableList = val
|
|
|
val.length > 0 ? this.showHeader = false : this.showHeader = true
|
|
|
this.curcentChecked = val.length
|
|
|
this.curcentList = val
|
|
@@ -288,6 +291,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
addSechedule() { // 添加排期
|
|
|
+ const taskA = []
|
|
|
+ this.tableList.map(item => {
|
|
|
+ if (item.isScheduleLocked === 1) {
|
|
|
+ taskA.push(item.taskIdSting)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (taskA.length !== 0) {
|
|
|
+ this.$message({ message: '任务 ' + taskA + ' 的排期已锁定,请先解锁排期后再添加排期', type: 'warning', offset: 150 })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.visibleSchedule = true
|
|
|
this.selectTaskList = this.curcentList
|
|
|
},
|