Browse Source

2026-07-08

RoHS优化,IFS物料信息直接取part,并增加跳转part功能
master
fengyuan_yang 3 weeks ago
parent
commit
6c16dd20b3
  1. 41
      src/views/modules/rohs/rohsRecord.vue

41
src/views/modules/rohs/rohsRecord.vue

@ -508,7 +508,13 @@
style="width: 100%"> style="width: 100%">
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
<el-table-column type="index" label="序号" width="50" header-align="center" align="center"></el-table-column> <el-table-column type="index" label="序号" width="50" header-align="center" align="center"></el-table-column>
<el-table-column prop="finalPartNo" label="IFS物料编码/Final Part No." min-width="150" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="finalPartNo" label="IFS物料编码/Final Part No." min-width="150" header-align="center" align="left" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-link style="cursor:pointer;" @click="toPartMenu(scope.row.finalPartNo || scope.row.testPartNo)">
{{ scope.row.finalPartNo || scope.row.testPartNo || '' }}
</el-link>
</template>
</el-table-column>
<el-table-column prop="partDesc" label="描述/Part Desc." min-width="250" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="partDesc" label="描述/Part Desc." min-width="250" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="partStatus" label="状态/Part Status" min-width="100" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="partStatus" label="状态/Part Status" min-width="100" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column>
</el-table> </el-table>
@ -1534,7 +1540,13 @@
:height="secondHeight" :height="secondHeight"
style="width: 100%"> style="width: 100%">
<el-table-column type="index" label="序号" width="50" header-align="center" align="center"></el-table-column> <el-table-column type="index" label="序号" width="50" header-align="center" align="center"></el-table-column>
<el-table-column prop="finalPartNo" label="IFS物料编码/Final Part No." min-width="150" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="finalPartNo" label="IFS物料编码/Final Part No." min-width="150" header-align="center" align="left" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-link style="cursor:pointer;" @click="toPartMenu(scope.row.finalPartNo || scope.row.testPartNo)">
{{ scope.row.finalPartNo || scope.row.testPartNo || '' }}
</el-link>
</template>
</el-table-column>
<el-table-column prop="partDesc" label="描述/Part Desc." min-width="250" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="partDesc" label="描述/Part Desc." min-width="250" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="partStatus" label="状态/Part Status" min-width="100" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="partStatus" label="状态/Part Status" min-width="100" header-align="center" align="left" :show-overflow-tooltip="true"></el-table-column>
</el-table> </el-table>
@ -3548,6 +3560,31 @@ export default {
}) })
return fields return fields
}, },
toPartMenu (ifsPartNo) {
const targetPartNo = String(ifsPartNo || '').trim()
if (!targetPartNo) {
this.$message.warning('IFS物料编码为空,无法跳转')
return
}
if (this.$router.resolve(`/part-partInformation`).resolved.name === '404') {
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定'})
} else {
//
this.modalFlag = false
this.chooseProjectListFlag = false
this.projectMaterialDialogFlag = false
this.rohsCreatePartDialogFlag = false
this.rohsCharacteristicDialogFlag = false
this.hsfApproverFlag = false
this.relatedPeopleFlag = false
this.submitModalFlag = false
this.rohsRemarkFlag = false
this.rohsMaterialDescFlag = false
this.$nextTick(() => {
this.$router.push({name: `part-partInformation`, params: {ifsPartNo: targetPartNo}})
})
}
},
// //
radioClick (field, value) { radioClick (field, value) {
if (this.modalData[field] === value) { if (this.modalData[field] === value) {

Loading…
Cancel
Save