|
|
|
|
@ -204,7 +204,13 @@ |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-form-item label="工艺校验:" prop="sinTer"> |
|
|
|
|
<div style="width: 100%"> |
|
|
|
|
<el-checkbox v-model="formData.goldMark" disabled>镀金标识</el-checkbox> |
|
|
|
|
<el-checkbox |
|
|
|
|
v-model="formData.goldMark" |
|
|
|
|
:true-label="'1'" |
|
|
|
|
:false-label="'0'" |
|
|
|
|
disabled |
|
|
|
|
>镀金标识</el-checkbox |
|
|
|
|
> |
|
|
|
|
<el-checkbox |
|
|
|
|
disabled |
|
|
|
|
v-model="formData.markingsTest" |
|
|
|
|
@ -587,6 +593,8 @@ import { |
|
|
|
|
getVersion, |
|
|
|
|
getPlatingList, |
|
|
|
|
getProject, |
|
|
|
|
getLocallyPlatedPartList, |
|
|
|
|
getStandardList, |
|
|
|
|
} from '@/api/processManagement/taskProcessing'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
@ -631,6 +639,7 @@ export default { |
|
|
|
|
processLevel: '1', |
|
|
|
|
rankList: [], |
|
|
|
|
rank: '2', |
|
|
|
|
partType: '', |
|
|
|
|
priorityList: [ |
|
|
|
|
{ |
|
|
|
|
label: '本次使用', |
|
|
|
|
@ -795,10 +804,12 @@ export default { |
|
|
|
|
projectOptions: [], |
|
|
|
|
standardList: [], //检验标准 |
|
|
|
|
tabLoading: false, //加载状态 |
|
|
|
|
locallyPlatedData: [], //获取局部镀列表数据 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.setCrewShow = this.isOpen; |
|
|
|
|
this.getLocallyPlatedPartList(); |
|
|
|
|
if (this.detailsType == 'processPlanning') { |
|
|
|
|
this.version = this.rowData.partVersion; |
|
|
|
|
this.partChange(this.rowData.id); |
|
|
|
|
@ -811,6 +822,13 @@ export default { |
|
|
|
|
// |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 获取局部镀零件列表 |
|
|
|
|
getLocallyPlatedPartList() { |
|
|
|
|
getLocallyPlatedPartList().then(res => { |
|
|
|
|
this.locallyPlatedData = res.data.data; |
|
|
|
|
console.log(res.data.data, 9898989); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getStandardList() { |
|
|
|
|
getStandardList().then(res => { |
|
|
|
|
this.standardList = res.data.data; |
|
|
|
|
@ -934,7 +952,7 @@ export default { |
|
|
|
|
// 5. 设置选中状态 |
|
|
|
|
try { |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.currentNodeKey = firstChild.id |
|
|
|
|
this.currentNodeKey = firstChild.id; |
|
|
|
|
this.$refs.tree.setCurrentKey([firstChild.id], false); |
|
|
|
|
}); |
|
|
|
|
} catch (error) { |
|
|
|
|
@ -1016,6 +1034,19 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
this.partType = '烧结'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 如果当前零件号在局部镀金列表里面 镀金标识禁用 this.getLocallyPlatedPartList(); |
|
|
|
|
let selPart = this.locallyPlatedData.filter(item => { |
|
|
|
|
return item.partCode == this.formData.partCode; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (selPart.length > 0) { |
|
|
|
|
if (this.partType == '热表') { |
|
|
|
|
this.formData.goldMark = '1'; |
|
|
|
|
// this.$set(this.formData, 'goldMark', 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else if (this.detailsType === 'taskProcessing') { |
|
|
|
|
let query_ = {}; |
|
|
|
|
@ -1040,6 +1071,17 @@ export default { |
|
|
|
|
item.totalArea = (item.quota * item.area).toFixed(5); // 保留5位小数(字符串) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// 如果当前零件号在局部镀金列表里面 镀金标识禁用 this.getLocallyPlatedPartList(); |
|
|
|
|
let selPart = this.locallyPlatedData.filter(item => { |
|
|
|
|
return item.partCode == this.formData.partCode; |
|
|
|
|
}); |
|
|
|
|
console.log('selPart', selPart); |
|
|
|
|
if (selPart.length > 0) { |
|
|
|
|
if (this.partType == '热表') { |
|
|
|
|
this.formData.goldMark = '1'; |
|
|
|
|
// this.$set(this.formData, 'goldMark', 1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|