diff --git a/src/api/sampleManagement/technicalSpecificationList.js b/src/api/sampleManagement/technicalSpecificationList.js index 3f667af..f0d14fd 100644 --- a/src/api/sampleManagement/technicalSpecificationList.js +++ b/src/api/sampleManagement/technicalSpecificationList.js @@ -130,3 +130,10 @@ export const copyBm= data => createAPI(`/technicalSpecification/copyBm`,'post',d // 2025-05-14 查询变更信息 export const queryChangeLogList = data => createAPI("/technicalSpecification/change/log",'post',data) + +export const bmStatusToDead = data => createAPI("/technicalSpecification/bmStatusToDead",'post',data) + +export const bmStatusToCg = data => createAPI("/technicalSpecification/bmStatusToCg",'post',data) + + + diff --git a/src/views/modules/processManagement/processFlowInfo.vue b/src/views/modules/processManagement/processFlowInfo.vue index 54f4b31..ee48846 100644 --- a/src/views/modules/processManagement/processFlowInfo.vue +++ b/src/views/modules/processManagement/processFlowInfo.vue @@ -28,6 +28,7 @@ + diff --git a/src/views/modules/sampleManagement/technicalSpecificationList.vue b/src/views/modules/sampleManagement/technicalSpecificationList.vue index d273d52..7765020 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationList.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationList.vue @@ -25,6 +25,7 @@ + @@ -92,6 +93,15 @@ 删除 下达 拷贝 + + + 更多 + + + Dead + Re-Sample + + @@ -459,6 +469,8 @@ issueChange, // 下达 searchCopyPart, copyBm, + bmStatusToDead, // Dead + bmStatusToCg, // Re-Sample } from "@/api/sampleManagement/technicalSpecificationList.js" import Chooselist from '@/views/modules/common/Chooselist' import AddOrUpdate from './com_technical-add-or-update' @@ -1276,6 +1288,46 @@ }).catch(() => { }) }, + + // Dead + bmStatusToDead (row) { + this.$confirm('确定将技术参数卡设置为【Dead】?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + row.username = this.$store.state.user.name + bmStatusToDead(row).then(({data}) => { + if (data && data.code === 0) { + this.$message.success( '操作成功') + this.search() + } else { + this.$message.error(data.msg) + } + }) + }) + }, + + // Re-Sample + bmStatusToCg (row) { + this.$confirm('确定将技术参数卡设置为【草稿】?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + row.username = this.$store.state.user.name + bmStatusToCg(row).then(({data}) => { + if (data && data.code === 0) { + this.$message.success( '操作成功') + this.search() + } else { + this.$message.error(data.msg) + } + }) + }) + }, + + }, }