From fb32c1154b8d8914cc7448cccca4653c95da40d7 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 18 May 2026 15:16:36 +0800 Subject: [PATCH] =?UTF-8?q?2026-05-18=20RoHs=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/rohs/rohs.js | 3 ++ src/views/modules/rohs/rohsRecord.vue | 57 ++++++++++++++++++++++++--- 2 files changed, 55 insertions(+), 5 deletions(-) diff --git a/src/api/rohs/rohs.js b/src/api/rohs/rohs.js index 01882f5..d4774fa 100644 --- a/src/api/rohs/rohs.js +++ b/src/api/rohs/rohs.js @@ -39,5 +39,8 @@ export const getRohsNodeAuthority = data => createAPI(`/plm/changeManagement/get // 查询BM角色人员(复用技术参数卡接口) export const searchBmUser = data => createAPI(`/technicalSpecification/searchBMUser`, 'post', data); +// 查询流程节点列表(复用技术参数卡接口) +export const getNodeList = data => createAPI(`/technicalSpecification/node/list`, 'post', data); + // 导出 export const exportRohs = params => createAPI(`/rohs/export`, 'get', params); diff --git a/src/views/modules/rohs/rohsRecord.vue b/src/views/modules/rohs/rohsRecord.vue index 3f69490..3d63349 100644 --- a/src/views/modules/rohs/rohsRecord.vue +++ b/src/views/modules/rohs/rohsRecord.vue @@ -5,8 +5,25 @@ - - + + + + + + + + + + + + + + + 查询 @@ -549,7 +566,7 @@ - + 确定 取消 @@ -850,7 +867,9 @@ export default { searchData: { site: this.$store.state.user.site, referenceNo: '', - applicant: '' + status: '', + currentApprover: '', + nodeId: '' }, dataList: [], pageIndex: 1, @@ -1036,6 +1055,7 @@ export default { projectMaterialPageSize: 20, projectMaterialTotal: 0, projectMaterialLoading: false, + nodeOptions: [], projectList: [], hsfApproverOptionList: [], fileList: [], @@ -1127,6 +1147,7 @@ export default { this.checkSuperAdmin() }, mounted () { + this.fetchNodeOptions() if (this.authSearch) { this.getDataList() } @@ -1137,6 +1158,30 @@ export default { }) }, methods: { + fetchNodeOptions () { + if (!this.searchData.site || !this.menuId) { + this.nodeOptions = [] + return + } + let params = { + site: this.searchData.site, + menuId: this.menuId + } + api.getNodeList(params).then(({data}) => { + if (data && data.code === 0 && Array.isArray(data.rows)) { + this.nodeOptions = data.rows + .filter(item => item && item.nodeId) + .map(item => ({ + id: item.nodeId, + name: item.nodeName + })) + } else { + this.nodeOptions = [] + } + }).catch(() => { + this.nodeOptions = [] + }) + }, loadNodeAuthority (site, stepId) { if (!site || stepId === null || stepId === undefined || !this.menuId) { this.plmRohsAuthorityArr = [] @@ -1554,7 +1599,9 @@ export default { site: this.$store.state.user.site, menuId: this.menuId, referenceNo: this.searchData.referenceNo, - applicant: this.searchData.applicant + status: this.searchData.status, + currentApprover: this.searchData.currentApprover, + nodeId: this.searchData.nodeId } api.getRohsList(params).then(({data}) => { if (data && data.code === 0) {