From 17e77741270ac0efcade87b37d63bfcb41295ec2 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 25 四月 2026 14:00:15 +0800
Subject: [PATCH] feat(inventory): 新增待审批出入库记录删除及审批状态优化

---
 src/views/inventoryManagement/dispatchLog/Record.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/inventoryManagement/dispatchLog/Record.vue b/src/views/inventoryManagement/dispatchLog/Record.vue
index 061aeeb..80d7515 100644
--- a/src/views/inventoryManagement/dispatchLog/Record.vue
+++ b/src/views/inventoryManagement/dispatchLog/Record.vue
@@ -120,7 +120,7 @@
 import { getCurrentDate } from "@/utils/index.js";
 import {
 	getStockOutPage,
-	delStockOut,
+	delPendingStockOut,
 	batchApproveStockOutRecords,
 } from "@/api/inventoryManagement/stockOut.js";
 import {
@@ -252,7 +252,7 @@
 		distinguishCancelAndClose: true,
 	})
 		.then(() => {
-			batchApproveStockOutRecords({ ids, approvalStatus: "閫氳繃" })
+			batchApproveStockOutRecords({ ids, approvalStatus: 1 })
 				.then(() => {
 					proxy.$modal.msgSuccess("瀹℃壒閫氳繃鎴愬姛");
 					getList();
@@ -263,7 +263,7 @@
 		})
 		.catch((action) => {
 			if (action === "cancel") {
-				batchApproveStockOutRecords({ ids, approvalStatus: "椹冲洖" })
+				batchApproveStockOutRecords({ ids, approvalStatus: 2 })
 					.then(() => {
 						proxy.$modal.msgSuccess("瀹℃壒椹冲洖鎴愬姛");
 						getList();
@@ -307,7 +307,7 @@
 		type: "warning",
 	})
 		.then(() => {
-			delStockOut(ids).then((res) => {
+			delPendingStockOut(ids).then((res) => {
 				proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
 				getList();
 			});

--
Gitblit v1.9.3