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