|
@@ -426,6 +426,10 @@ export default {
|
|
|
//把当前行变成可编辑的
|
|
|
row.isEditing = true;
|
|
|
this.editingRowIndex = rowIndex;
|
|
|
+ }else {
|
|
|
+ //把当前行变成可编辑的
|
|
|
+ row.isEditing = true;
|
|
|
+ this.editingRowIndex = rowIndex;
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -433,15 +437,22 @@ export default {
|
|
|
handleInputBlur(row) {
|
|
|
let rowIndex = this.tableData2.indexOf(row);
|
|
|
//编辑索引不等于当前编辑行索引
|
|
|
- if (this.editingRowIndex !== rowIndex) {
|
|
|
- if (this.isRowFilled(row)) {
|
|
|
- row.isEditing = false;
|
|
|
- //对于整个表格来说
|
|
|
- this.isEditLine = false;
|
|
|
- //当前编辑行置为-1
|
|
|
- this.editingRowIndex = -1;
|
|
|
- }
|
|
|
+ if(row.isEditing="true"){
|
|
|
+ row.isEditing = false;
|
|
|
+ //对于整个表格来说
|
|
|
+ this.isEditLine = false;
|
|
|
+ //当前编辑行置为-1
|
|
|
+ this.editingRowIndex = -1;
|
|
|
}
|
|
|
+ // if (this.editingRowIndex !== rowIndex) {
|
|
|
+ // if (this.isRowFilled(row)) {
|
|
|
+ // row.isEditing = false;
|
|
|
+ // //对于整个表格来说
|
|
|
+ // this.isEditLine = false;
|
|
|
+ // //当前编辑行置为-1
|
|
|
+ // this.editingRowIndex = -1;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
// 检查行是否填写完毕的示例方法
|
|
|
isRowFilled(row) {
|
|
@@ -594,11 +605,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 更新状态
|
|
|
- updateStatus(ind, row,planStatus){
|
|
|
+ updateStatus(ind, row){
|
|
|
+ row.planType="纺丝计划"
|
|
|
+ console.log(row,"当前行数据---------------------------")
|
|
|
if(!this.isRowFilled(row)){
|
|
|
this.$message({message: '请完善当前行数据', type: 'warning'});
|
|
|
return;
|
|
|
}
|
|
|
+ // if(row.planType="")
|
|
|
//判断当前计划是否已经投产
|
|
|
getIsTheOrderProductProduced({"id":row.id}).then(resp=>{
|
|
|
if(resp.data.length>0){
|
|
@@ -624,6 +638,7 @@ export default {
|
|
|
this.$message({message: '已停机,请先处理停机产品,然后上机', type: 'warning'});
|
|
|
return;//证明有在上级的产品--zhi能有一个上级产品
|
|
|
}else {
|
|
|
+ row.playType="纺丝计划"
|
|
|
updateSpinningInfoPlanOne(row).then(response=>{
|
|
|
if (response.code == 200) {
|
|
|
this.$message({
|
|
@@ -697,7 +712,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
})
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|