From 9f70b1bb740902f607956150ae9b2e99d36b74e1 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 30 三月 2026 16:23:57 +0800
Subject: [PATCH] Merge branch 'dev_HXSJ' of http://114.132.189.42:9002/r/product-inventory-management into dev_HXSJ

---
 src/views/equipmentManagement/calibration/index.vue |   38 +++++---------------------------------
 1 files changed, 5 insertions(+), 33 deletions(-)

diff --git a/src/views/equipmentManagement/calibration/index.vue b/src/views/equipmentManagement/calibration/index.vue
index 3ace389..7dfd405 100644
--- a/src/views/equipmentManagement/calibration/index.vue
+++ b/src/views/equipmentManagement/calibration/index.vue
@@ -57,10 +57,10 @@
 
 <script setup>
 import {onMounted, ref} from "vue";
-import {ElMessageBox, ElMessage} from "element-plus";
+import {ElMessageBox} from "element-plus";
 import useUserStore from "@/store/modules/user.js";
 import CalibrationDia from "@/views/equipmentManagement/measurementEquipment/components/calibrationDia.vue";
-import {ledgerRecordListPage, ledgerRecordDelete} from "@/api/equipmentManagement/calibration.js";
+import {ledgerRecordListPage} from "@/api/equipmentManagement/calibration.js";
 const { proxy } = getCurrentInstance();
 const userStore = useUserStore()
 
@@ -134,7 +134,6 @@
 	{
 		dataType: "action",
 		label: "鎿嶄綔",
-		width: 140,
 		align: "center",
 		fixed: 'right',
 		operation: [
@@ -144,16 +143,9 @@
 				clickFun: (row) => {
 					openCalibrationDia("edit", row);
 				},
-			},
-			{
-				name: "鍒犻櫎",
-				type: "text",
-				style: {
-					color: "#F56C6C"
-				},
-				clickFun: (row) => {
-					handleDelete(row);
-				},
+				disabled: (row) => {
+					return row.userId !== userStore.id
+				}
 			},
 		],
 	},
@@ -201,26 +193,6 @@
 		calibrationDia.value?.openDialog(type, row)
 	})
 }
-
-// 鍒犻櫎璁板綍
-const handleDelete = (row) => {
-	ElMessageBox.confirm(`纭鍒犻櫎璁¢噺鍣ㄥ叿缂栧彿涓�"${row.code}"鐨勬瀹氳褰曞悧锛焋, "鍒犻櫎纭", {
-		confirmButtonText: "纭",
-		cancelButtonText: "鍙栨秷",
-		type: "warning",
-	})
-		.then(() => {
-			ledgerRecordDelete([row.id]).then(() => {
-				ElMessage.success("鍒犻櫎鎴愬姛");
-				getList();
-			}).catch(() => {
-				ElMessage.error("鍒犻櫎澶辫触");
-			});
-		})
-		.catch(() => {
-			proxy.$modal.msg("宸插彇娑堝垹闄�");
-		});
-};
 
 // 瀵煎嚭
 const handleOut = () => {

--
Gitblit v1.9.3