|
|
|
@ -58,6 +58,9 @@ |
|
|
|
<el-button @click="copyRouting()" type="primary" style="margin-left: 2px;margin-top: 0px"> |
|
|
|
{{ buttons.copyRouting }} |
|
|
|
</el-button> |
|
|
|
<el-button @click="addRoutingHeaderModel()" :disabled="authAdd" type="primary" |
|
|
|
style="margin-left: 2px;margin-top: 0px">{{ buttons.addPart }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-tabs v-model="activeName"> |
|
|
|
@ -152,7 +155,7 @@ |
|
|
|
<el-form-item :label="labels.partNo"> |
|
|
|
<el-input v-model="searchPartNo" style="width: 130px"></el-input> |
|
|
|
<el-button @click="searchRoutingWithPartNo()" type="primary">{{ buttons.search }}</el-button> |
|
|
|
<el-button @click="addRoutingHeaderModel()" :disabled="authAdd" type="primary">{{ buttons.add }}</el-button> |
|
|
|
<!-- <el-button @click="addRoutingHeaderModel()" :disabled="authAdd" type="primary">{{ buttons.add }}</el-button>--> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
@ -719,6 +722,7 @@ export default { |
|
|
|
setDefault: '设为默认', |
|
|
|
copyRouting: '复制产品工艺路线', |
|
|
|
add: '新增', |
|
|
|
addPart: '新增物料', |
|
|
|
close: '关闭', |
|
|
|
update: '修改', |
|
|
|
delete: '删除', |
|
|
|
@ -728,7 +732,6 @@ export default { |
|
|
|
save: '保存', |
|
|
|
addResource: '添加机台', |
|
|
|
deleteResource: '删除机台', |
|
|
|
|
|
|
|
}, |
|
|
|
queryButton: { |
|
|
|
functionId: functionId, |
|
|
|
@ -1687,8 +1690,11 @@ export default { |
|
|
|
} |
|
|
|
saveRoutingHeaderData(this.routingHeaderData).then(({data}) => { |
|
|
|
if (data && data.code == 200) { |
|
|
|
this.routingHeaderModelFlag = false |
|
|
|
this.searchRoutingWithPartNo(); |
|
|
|
this.routingHeaderModelFlag = false; |
|
|
|
//设置查询的物料编码 |
|
|
|
this.searchPartNo = this.routingHeaderData.partNo; |
|
|
|
this.tableHanddle(this.routingHeaderData); |
|
|
|
//this.searchRoutingWithPartNo(); 调用有问题2022-12-26 |
|
|
|
this.$message.success(this.labels.doYes) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, this.labels.error, { |
|
|
|
|