From 2f03e1f738092cfb906cd548d18e8deb4f39b658 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 06 五月 2026 14:05:33 +0800
Subject: [PATCH] 生产追溯接口对接

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

diff --git a/src/views/inventoryManagement/dispatchLog/Record.vue b/src/views/inventoryManagement/dispatchLog/Record.vue
index 061aeeb..6060cf5 100644
--- a/src/views/inventoryManagement/dispatchLog/Record.vue
+++ b/src/views/inventoryManagement/dispatchLog/Record.vue
@@ -1,6 +1,6 @@
 <template>
-	<div class="app-container">
-		<div class="search_form">
+	<div>
+		<div class="search_form" style="margin-bottom: 10px;">
 			<div>
 				<span class="search_title ml10">鍑哄簱鏃ユ湡锛�</span>
 				<el-date-picker
@@ -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