Browse Source

plm 工具具

master
ruanqi 1 year ago
parent
commit
d5fa60ded9
  1. 1
      src/api/project/project.js
  2. 8
      src/views/modules/sampleManagement/technicalSpecificationList.vue
  3. 33
      src/views/modules/tooling/searchToolApply.vue

1
src/api/project/project.js

@ -49,3 +49,4 @@ export const projectInfoPartSearch= data => createAPI(`/project/projectInfoPartS
export const queryProjectByCustomer = (data) => createAPI(`/project`,'post',data) export const queryProjectByCustomer = (data) => createAPI(`/project`,'post',data)
export const queryProjectPart = (data) => createAPI(`/project/part`,'post',data) export const queryProjectPart = (data) => createAPI(`/project/part`,'post',data)
export const getProjectPartNowBm= data => createAPI(`/project/getProjectPartNowBm`,'post',data)

8
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -340,6 +340,7 @@
testPartNo: '', testPartNo: '',
oriCodeNo: '', oriCodeNo: '',
statusDesc: '', statusDesc: '',
codeNo:'',
}, },
pageIndex: 1, pageIndex: 1,
pageSize: 100, pageSize: 100,
@ -723,6 +724,13 @@
this.searchData.oriCodeNo = ''; this.searchData.oriCodeNo = '';
}, 200) }, 200)
} }
if (this.$route.params.nowCodeNo){
this.searchData.codeNo = this.$route.params.nowCodeNo;
this.search();
setTimeout(() => {
this.searchData.codeNo = '';
}, 200)
}
}, },
methods: { methods: {
// //

33
src/views/modules/tooling/searchToolApply.vue

@ -113,6 +113,16 @@
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
header-align="center"
align="center"
width="120"
fixed="right"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="jumpBM(scope.row)">跳转BenchMark</a>
</template>
</el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- fixed="right"--> <!-- fixed="right"-->
<!-- header-align="center"--> <!-- header-align="center"-->
@ -369,7 +379,7 @@
deleteProjectFile, deleteProjectFile,
getFileContentList, getFileContentList,
downLoadProjectFile, downLoadProjectFile,
getProjectUserRole,
getProjectPartNowBm,
} from "@/api/project/project.js" } from "@/api/project/project.js"
import { import {
getNodeAuthority, // getNodeAuthority, //
@ -1350,6 +1360,27 @@
}) })
}, },
jumpBM(row){
if (this.$router.resolve(`/sampleManagement-technicalSpecificationList`).resolved.name === '404'){
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',});
}else {
let inData={
site:row.site,
testPartNo:row.orderRef2
}
getProjectPartNowBm(inData).then(({data}) => {
//
if (data && data.code == 0) {
if(data.rows==null||data.rows.length==0){
this.$alert('该物料没有benchmark', '警告', {confirmButtonText: '确定',});
}
this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{nowCodeNo:data.rows[0].nowBm},})
} else {
}
});
}
},
}, },
activated() { activated() {

Loading…
Cancel
Save