|
|
|
@ -88,7 +88,7 @@ |
|
|
|
<div class="table-btn-left"> |
|
|
|
<div class="table-btn-left"> |
|
|
|
<el-button type="primary" plain @click="addTable()">插入一行</el-button> |
|
|
|
<el-button type="primary" plain @click="addTable()">插入一行</el-button> |
|
|
|
<el-button type="danger" plain @click="delTable()">删除选择行</el-button> |
|
|
|
<el-button type="danger" plain @click="delTable()">删除选择行</el-button> |
|
|
|
<el-button type="primary" @click="saveInfo()">保存</el-button> |
|
|
|
<el-button type="primary" @click="saveInfo()" :loading="craftLoading">保存</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="table-btn-right" v-if="activeName == '1'"> |
|
|
|
<div class="table-btn-right" v-if="activeName == '1'"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
@ -535,6 +535,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
craftLoading:false, |
|
|
|
rank: '2', |
|
|
|
rank: '2', |
|
|
|
processLevel: '2', |
|
|
|
processLevel: '2', |
|
|
|
data: [], |
|
|
|
data: [], |
|
|
|
@ -970,6 +971,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
saveInfo() { |
|
|
|
saveInfo() { |
|
|
|
|
|
|
|
|
|
|
|
if (this.activeName == '1') { |
|
|
|
if (this.activeName == '1') { |
|
|
|
// 调用单个 Form 的校验方法 |
|
|
|
// 调用单个 Form 的校验方法 |
|
|
|
this.$refs.tableForm1.validate(async (isValid, invalidFields) => { |
|
|
|
this.$refs.tableForm1.validate(async (isValid, invalidFields) => { |
|
|
|
@ -1158,6 +1160,7 @@ export default { |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
this.craftLoading = true |
|
|
|
|
|
|
|
|
|
|
|
// 处理传参 |
|
|
|
// 处理传参 |
|
|
|
if (this.treeNodes.rawData.qualityGradeCode) { |
|
|
|
if (this.treeNodes.rawData.qualityGradeCode) { |
|
|
|
@ -1175,6 +1178,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
authorizedAccomplish2(query_).then(res => { |
|
|
|
authorizedAccomplish2(query_).then(res => { |
|
|
|
this.$message.success('保存成功'); |
|
|
|
this.$message.success('保存成功'); |
|
|
|
|
|
|
|
this.craftLoading = false |
|
|
|
this.getDetails(); |
|
|
|
this.getDetails(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1183,6 +1187,7 @@ export default { |
|
|
|
if (this.activeName == '2') { |
|
|
|
if (this.activeName == '2') { |
|
|
|
this.$refs.tableForm2.validate((isValid, invalidFields) => { |
|
|
|
this.$refs.tableForm2.validate((isValid, invalidFields) => { |
|
|
|
if (isValid) { |
|
|
|
if (isValid) { |
|
|
|
|
|
|
|
this.craftLoading = true |
|
|
|
let query_ = { |
|
|
|
let query_ = { |
|
|
|
processEntity: this.treeNodes.rawData.processInfo, //工序 |
|
|
|
processEntity: this.treeNodes.rawData.processInfo, //工序 |
|
|
|
processProjectEntityList: this.form2.tableData2, //项目 |
|
|
|
processProjectEntityList: this.form2.tableData2, //项目 |
|
|
|
@ -1191,6 +1196,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
saveProcessProjectSave(query_).then(res => { |
|
|
|
saveProcessProjectSave(query_).then(res => { |
|
|
|
this.$message.success('保存成功'); |
|
|
|
this.$message.success('保存成功'); |
|
|
|
|
|
|
|
this.craftLoading = false |
|
|
|
this.getDetails(); |
|
|
|
this.getDetails(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1199,6 +1205,7 @@ export default { |
|
|
|
if (this.activeName == '3') { |
|
|
|
if (this.activeName == '3') { |
|
|
|
this.$refs.tableForm3.validate((isValid, invalidFields) => { |
|
|
|
this.$refs.tableForm3.validate((isValid, invalidFields) => { |
|
|
|
if (isValid) { |
|
|
|
if (isValid) { |
|
|
|
|
|
|
|
this.craftLoading = true |
|
|
|
let query_ = { |
|
|
|
let query_ = { |
|
|
|
processEntity: this.treeNodes.rawData.processInfo, //工序 |
|
|
|
processEntity: this.treeNodes.rawData.processInfo, //工序 |
|
|
|
processMeasuringToolEntities: this.form3.tableData3, //尺寸量具 |
|
|
|
processMeasuringToolEntities: this.form3.tableData3, //尺寸量具 |
|
|
|
@ -1206,6 +1213,7 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
saveProcessMeasuringTool(query_).then(res => { |
|
|
|
saveProcessMeasuringTool(query_).then(res => { |
|
|
|
this.$message.success('保存成功'); |
|
|
|
this.$message.success('保存成功'); |
|
|
|
|
|
|
|
this.craftLoading = false |
|
|
|
this.getDetails(); |
|
|
|
this.getDetails(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|