v-if
This commit is contained in:
@@ -431,7 +431,7 @@
|
||||
@current-change="handleCurrentChange1"/>
|
||||
<div style="float:right">
|
||||
<el-button type="primary" size="small" style="margin:5px 10px 10px 10px" @click="Discharge">虚拟排产</el-button>
|
||||
<el-button :disabled="listLoading1" type="primary" size="small" style="margin:5px 10px 10px 10px" @click="Plan" >确定零件计划</el-button>
|
||||
<el-button v-if="可以确定零件计划" type="primary" size="small" style="margin:5px 10px 10px 10px" @click="Plan" >确定零件计划</el-button>
|
||||
<el-button type="danger" size="small" icon="el-icon-upload2" style="float:right;margin:5px 50px 10px 10px" @click="allOut">全部选出</el-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -620,6 +620,7 @@ export default {
|
||||
directives: { elDragDialog },
|
||||
data() {
|
||||
return {
|
||||
可以确定零件计划: false,
|
||||
bianliang1: [],
|
||||
count: 0,
|
||||
是否扫描: false,
|
||||
@@ -1226,6 +1227,12 @@ export default {
|
||||
this.计划日期.push(response.data[i].计划日期)
|
||||
}
|
||||
})
|
||||
this.可以确定零件计划 = true
|
||||
for (let i = 0; i < this.planDate.length; i++) {
|
||||
for (let j = 0; j < this.planDate[i].length; j++) {
|
||||
this.可以确定零件计划 = this.可以确定零件计划 && !!this.planDate[i][j]
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
@@ -1435,6 +1442,7 @@ export default {
|
||||
this.bianliang1.push(this.tableData1[i].工艺计划流水号)
|
||||
}
|
||||
discharge(this.bianliang1).then(response => {
|
||||
console.log(response.data)
|
||||
this.Selection1()
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user