From 837a1dd8fdd37415e32fa112890798c3af42bd31 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Mon, 4 Nov 2024 11:24:37 +0800 Subject: [PATCH] plm BMM --- .../technicalSpecificationList.js | 1 + .../technicalSpecificationList.vue | 29 +++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/api/sampleManagement/technicalSpecificationList.js b/src/api/sampleManagement/technicalSpecificationList.js index f8acfbd..e8244ce 100644 --- a/src/api/sampleManagement/technicalSpecificationList.js +++ b/src/api/sampleManagement/technicalSpecificationList.js @@ -125,3 +125,4 @@ export const getFinalPartData= data => createAPI(`/technicalSpecification/getFin export const getOADetailForBM= data => createAPI(`/technicalSpecification/getOADetailForBM`,'post',data) export const searchCopyPart= data => createAPI(`/technicalSpecification/searchCopyPart`,'post',data) +export const copyBm= data => createAPI(`/technicalSpecification/copyBm`,'post',data) diff --git a/src/views/modules/sampleManagement/technicalSpecificationList.vue b/src/views/modules/sampleManagement/technicalSpecificationList.vue index 25ce17a..56bb0d6 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationList.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationList.vue @@ -70,7 +70,7 @@ 删除 下达 - + 拷贝 @@ -406,6 +406,7 @@ upBMRevNo, issueChange, // 下达 searchCopyPart, + copyBm, } from "@/api/sampleManagement/technicalSpecificationList.js" import Chooselist from '@/views/modules/common/Chooselist' import AddOrUpdate from './com_technical-add-or-update' @@ -1169,7 +1170,31 @@ this.partModelFlag=true }, choosePartNo(row){ - this.$message.success( '敬请期待~') + let saveData={ + site:this.copyData.site, + codeNo:this.copyData.codeNo, + testPartNo:this.copyData.testPartNo, + projectId:this.copyData.projectId, + revNo:this.copyData.revNo, + newPartNo:row.testPartNo, + username:this.$store.state.user.name + } + this.$confirm('确定要拷贝?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + copyBm(saveData).then(({data}) => { + if (data && data.code === 0) { + this.$message.success( '操作成功') + this.partModelFlag=false; + this.search(); + } else { + this.$message.error(data.msg) + } + }) + }).catch(() => { + }) }, }, }