|
@ -98,6 +98,7 @@ |
|
|
size="mini" |
|
|
size="mini" |
|
|
type="primary" |
|
|
type="primary" |
|
|
icon="el-icon-plus" |
|
|
icon="el-icon-plus" |
|
|
|
|
|
:loading="buttonLoading" |
|
|
@click="handleUpdate()" |
|
|
@click="handleUpdate()" |
|
|
>重新解析(批量操作) |
|
|
>重新解析(批量操作) |
|
|
</el-button> |
|
|
</el-button> |
|
@ -159,6 +160,7 @@ |
|
|
size="mini" |
|
|
size="mini" |
|
|
type="success" |
|
|
type="success" |
|
|
icon="el-icon-check" |
|
|
icon="el-icon-check" |
|
|
|
|
|
:loading="button2Loading" |
|
|
@click="handleUpdateAll()" |
|
|
@click="handleUpdateAll()" |
|
|
>重新解析(执行全部) |
|
|
>重新解析(执行全部) |
|
|
</el-button> |
|
|
</el-button> |
|
@ -361,7 +363,7 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer" align="right" style="width:950px"> |
|
|
<div slot="footer" class="dialog-footer" align="right" style="width:950px"> |
|
|
<el-button v-loading="formLoading" type="primary" @click="save">确认</el-button> |
|
|
<el-button :loading="formLoading" type="primary" @click="save">确认</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
@ -389,7 +391,7 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<div slot="footer" class="dialog-footer"> |
|
|
<el-button v-loading="formLoading" type="primary" @click="saveNum()">确认</el-button> |
|
|
<el-button :loading="formLoading" type="primary" @click="saveNum()">确认</el-button> |
|
|
<el-button type="text" @click="dialogNumVisible = false">取消</el-button> |
|
|
<el-button type="text" @click="dialogNumVisible = false">取消</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
@ -501,6 +503,8 @@ export default { |
|
|
numTitle: "", |
|
|
numTitle: "", |
|
|
isEdit: false, |
|
|
isEdit: false, |
|
|
formLoading: false, |
|
|
formLoading: false, |
|
|
|
|
|
buttonLoading:false, |
|
|
|
|
|
button2Loading:false, |
|
|
//dialogFormVisible: false, |
|
|
//dialogFormVisible: false, |
|
|
tableHeight: document.documentElement.clientHeight - 220, |
|
|
tableHeight: document.documentElement.clientHeight - 220, |
|
|
//columns: [ |
|
|
//columns: [ |
|
@ -640,6 +644,7 @@ export default { |
|
|
type: "warning", |
|
|
type: "warning", |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
|
|
|
this.button2Loading = true; |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts("/api/newjit/unknown-assembly/to-parse", params) |
|
|
.posts("/api/newjit/unknown-assembly/to-parse", params) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
@ -650,26 +655,35 @@ export default { |
|
|
type: "success", |
|
|
type: "success", |
|
|
duration: 2000, |
|
|
duration: 2000, |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.button2Loading = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.button2Loading = false; |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: "warning", |
|
|
type: "warning", |
|
|
message: response.message, |
|
|
message: response.message, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
this.button2Loading = false; |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
message: response.message, |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}) |
|
|
}) |
|
|
.catch(() => {}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
/** 重新计算总成 */ |
|
|
/** 重新计算总成 */ |
|
|
handleUpdate(row) { |
|
|
handleUpdate(row) { |
|
|
if (this.multipleSelection.length == 0) { |
|
|
if (this.multipleSelection.length == 0) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: "必须选择一行", |
|
|
message: "至少选择一行", |
|
|
type: "warning", |
|
|
type: "warning", |
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.buttonLoading = true; |
|
|
//批量操作 |
|
|
//批量操作 |
|
|
var params = { |
|
|
var params = { |
|
|
isSelectAll: false, |
|
|
isSelectAll: false, |
|
@ -696,13 +710,22 @@ export default { |
|
|
type: "success", |
|
|
type: "success", |
|
|
duration: 2000, |
|
|
duration: 2000, |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.buttonLoading = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.buttonLoading = false; |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
type: "warning", |
|
|
type: "warning", |
|
|
message: response.message, |
|
|
message: response.message, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
this.buttonLoading = false; |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
message: response.message, |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -918,6 +941,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
this.formLoading = true; |
|
|
|
|
|
|
|
|
var lastSubmit = { |
|
|
var lastSubmit = { |
|
|
billId:this.listUnknownAssemblyQuery.billId, |
|
|
billId:this.listUnknownAssemblyQuery.billId, |
|
@ -970,9 +994,17 @@ export default { |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
if(response.status === true){ |
|
|
if(response.status === true){ |
|
|
|
|
|
this.dialogFormVisible = false; |
|
|
|
|
|
this.leftRowTemp = []; |
|
|
|
|
|
this.rightRowTemp = []; |
|
|
|
|
|
this.tempAssCfgList = []; |
|
|
|
|
|
this.tempdetails = []; |
|
|
|
|
|
this.erpAssemblyCfgList =[]; |
|
|
|
|
|
this.asTemp = []; |
|
|
|
|
|
|
|
|
this.$notify({ |
|
|
this.$notify({ |
|
|
title: "成功", |
|
|
title: "成功", |
|
|
message: "数据导入成功!", |
|
|
message: "添加总成成功!", |
|
|
type: "success", |
|
|
type: "success", |
|
|
duration: 2000, |
|
|
duration: 2000, |
|
|
}); |
|
|
}); |
|
@ -981,14 +1013,6 @@ export default { |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
//this.listLoading = false; |
|
|
//this.listLoading = false; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.leftRowTemp = []; |
|
|
|
|
|
this.rightRowTemp = []; |
|
|
|
|
|
this.tempAssCfgList = []; |
|
|
|
|
|
this.tempdetails = []; |
|
|
|
|
|
this.erpAssemblyCfgList =[]; |
|
|
|
|
|
this.asTemp = []; |
|
|
|
|
|
this.dialogFormVisible = false; |
|
|
|
|
|
// } |
|
|
// } |
|
|
// else{ |
|
|
// else{ |
|
|
// alert("未知零件未分配完,请确认!") |
|
|
// alert("未知零件未分配完,请确认!") |
|
|