|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<el-dialog title="详情" v-model="setCrewShow" :before-close="cancel" fullscreen> |
|
|
|
|
<div class="tabs-container"> |
|
|
|
|
<div class="tabs-container" v-loading="tabLoading"> |
|
|
|
|
<el-tabs v-if="setCrewShow" v-model="activeNameTab"> |
|
|
|
|
<el-tab-pane label="零件信息" name="1"> </el-tab-pane> |
|
|
|
|
<el-tab-pane label="工艺编制" name="2"> </el-tab-pane> |
|
|
|
|
@ -8,12 +8,18 @@ |
|
|
|
|
<div class="content-right"> |
|
|
|
|
<p v-if="this.detailsType == 'taskProcessing'">工艺版本:{{ version }}</p> |
|
|
|
|
<div class="version_select" v-else> |
|
|
|
|
工艺版本:<el-select v-model="version" placeholder="请输入" clearable filterable> |
|
|
|
|
工艺版本:<el-select |
|
|
|
|
v-model="version" |
|
|
|
|
placeholder="请输入" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
@change="versionChange()" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="(item, index) in versionOptions" |
|
|
|
|
:key="index" |
|
|
|
|
:label="item.partVersions" |
|
|
|
|
:value="item.partVersions" |
|
|
|
|
:label="item.partVersion" |
|
|
|
|
:value="item.partVersion" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
@ -671,19 +677,19 @@ export default { |
|
|
|
|
plateList: [], //镀种信息 |
|
|
|
|
projectOptions: [], |
|
|
|
|
standardList: [], //检验标准 |
|
|
|
|
tabLoading: false, //加载状态 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.setCrewShow = this.isOpen; |
|
|
|
|
|
|
|
|
|
if (this.detailsType == 'processPlanning') { |
|
|
|
|
this.version = this.rowData.partVersion; |
|
|
|
|
this.partChange(this.rowData.id); |
|
|
|
|
} |
|
|
|
|
this.getCcraftInfo(); |
|
|
|
|
this.getPartInfo(); |
|
|
|
|
this.getPlatingList(); |
|
|
|
|
this.getStandardList(); |
|
|
|
|
if (this.detailsType == 'processPlanning') { |
|
|
|
|
console.log(9999,this.rowData) |
|
|
|
|
// this.partChange() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// |
|
|
|
|
}, |
|
|
|
|
@ -704,11 +710,18 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 获取零件号的版本号列表 |
|
|
|
|
partChange(partId) { |
|
|
|
|
getVersion({ partId: partId }).then(res => { |
|
|
|
|
partChange(id) { |
|
|
|
|
getVersion({ partId: id }).then(res => { |
|
|
|
|
this.versionOptions = res.data.data; |
|
|
|
|
}); |
|
|
|
|
}, // 组织树点击 |
|
|
|
|
}, |
|
|
|
|
// 切换版本号 |
|
|
|
|
versionChange() { |
|
|
|
|
this.tabLoading = true; |
|
|
|
|
this.getCcraftInfo(); |
|
|
|
|
this.getPartInfo(); |
|
|
|
|
}, |
|
|
|
|
// 组织树点击 |
|
|
|
|
handleNodeClick(nodes, node, self) { |
|
|
|
|
if (nodes.disabled) { |
|
|
|
|
return false; |
|
|
|
|
@ -765,7 +778,7 @@ export default { |
|
|
|
|
this.$setItem('零件信息信息验证', this.validateObj); |
|
|
|
|
}, |
|
|
|
|
leavelChange(value) { |
|
|
|
|
console.log('工艺级别', value); |
|
|
|
|
this.tabLoading = true; |
|
|
|
|
this.getCcraftInfo(); |
|
|
|
|
this.getPartInfo(); |
|
|
|
|
}, |
|
|
|
|
@ -775,38 +788,40 @@ export default { |
|
|
|
|
if (this.detailsType == 'processPlanning') { |
|
|
|
|
let query = { |
|
|
|
|
partId: this.rowData.id, |
|
|
|
|
partVersion: '1.3', |
|
|
|
|
partVersion: this.version, |
|
|
|
|
rank: this.rank, |
|
|
|
|
}; |
|
|
|
|
getProcessManagementAuthorized(query).then(res => { |
|
|
|
|
this.data = this.transformCraftTree(res.data.data); |
|
|
|
|
this.tabLoading = false; |
|
|
|
|
}); |
|
|
|
|
} else if (this.detailsType === 'taskProcessing') { |
|
|
|
|
let query = { |
|
|
|
|
partId: this.partId, |
|
|
|
|
rank: this.rank, |
|
|
|
|
taskId: this.rowData.id, |
|
|
|
|
version: this.rowData.version, |
|
|
|
|
}; |
|
|
|
|
getProcessAuthorized(query).then(res => { |
|
|
|
|
this.craftData = res.data.data; |
|
|
|
|
this.data = this.transformCraftTree(res.data.data); |
|
|
|
|
this.tabLoading = false; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 获取零件信息 |
|
|
|
|
getPartInfo() { |
|
|
|
|
console.log('获取零件信息', this.rowData); |
|
|
|
|
// 零件工艺管理-详情 |
|
|
|
|
if (this.detailsType == 'processPlanning') { |
|
|
|
|
let query = { |
|
|
|
|
partId: this.rowData.id, |
|
|
|
|
partVersion: '1.3', |
|
|
|
|
partVersion: this.version, |
|
|
|
|
rank: this.rank, |
|
|
|
|
}; |
|
|
|
|
getPartManagementDetail(query).then(res => { |
|
|
|
|
this.formData = res.data.data.dsPartEntity; |
|
|
|
|
this.dataTable = res.data.data.dsPartEntities; |
|
|
|
|
this.version = res.data.data.partVersion; |
|
|
|
|
this.tabLoading = false; |
|
|
|
|
if (this.dataTable.length > 0) { |
|
|
|
|
this.dataTable.forEach(item => { |
|
|
|
|
item.totalArea = (item.quota * item.area).toFixed(5); // 保留5位小数(字符串) |
|
|
|
|
@ -819,10 +834,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else if (this.detailsType === 'taskProcessing') { |
|
|
|
|
getPartDetail(this.rowData.id).then(res => { |
|
|
|
|
getPartDetail({ taskId: this.rowData.id, version: this.rowData.version }).then(res => { |
|
|
|
|
this.formData = res.data.data.dsPartEntity; |
|
|
|
|
this.dataTable = res.data.data.dsPartEntities; |
|
|
|
|
this.version = res.data.data.partVersion; |
|
|
|
|
this.tabLoading = false; |
|
|
|
|
if (this.formData.isSintering != '1') { |
|
|
|
|
this.partType = '热表'; |
|
|
|
|
} else { |
|
|
|
|
|