From e3c6420b5c5ada891ff9721e574fe61d67226612 Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Mon, 26 May 2025 10:20:09 +0800
Subject: [PATCH] =?UTF-8?q?2025-05-26=20BM=E7=9A=84Dead=E3=80=81Re-Sample?=
=?UTF-8?q?=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../technicalSpecificationList.js | 7 +++
.../processManagement/processFlowInfo.vue | 1 +
.../technicalSpecificationList.vue | 52 +++++++++++++++++++
3 files changed, 60 insertions(+)
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)
+ }
+ })
+ })
+ },
+
+
},
}