From e0cad4a9c8dbd2af70a083a5df07d7fca72e686c Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期六, 09 五月 2026 13:43:29 +0800
Subject: [PATCH] 发货数量限制

---
 src/views/inventoryManagement/receiptManagement/Record.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/inventoryManagement/receiptManagement/Record.vue b/src/views/inventoryManagement/receiptManagement/Record.vue
index 013bac5..75d884a 100644
--- a/src/views/inventoryManagement/receiptManagement/Record.vue
+++ b/src/views/inventoryManagement/receiptManagement/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 v-model="searchForm.timeStr"
@@ -117,7 +117,7 @@
 import {ElMessageBox} from "element-plus";
 import {
   getStockInRecordListPage,
-  batchDeleteStockInRecords,
+  batchDeletePendingStockInRecords,
   batchApproveStockInRecords,
 } from "@/api/inventoryManagement/stockInRecord.js";
 import {
@@ -195,7 +195,7 @@
 
 const getList = () => {
   tableLoading.value = true;
-  const params = {...page, type: props.type, topParentProductId: props.topParentProductId};
+  const params = {...page,  topParentProductId: props.topParentProductId};
   params.timeStr = searchForm.value.timeStr;
   params.productName = searchForm.value.productName;
   params.recordType = searchForm.value.recordType;
@@ -243,7 +243,7 @@
     distinguishCancelAndClose: true,
   })
       .then(() => {
-        batchApproveStockInRecords({ids, approvalStatus: "閫氳繃"})
+        batchApproveStockInRecords({ids, approvalStatus: 1})
             .then(() => {
               proxy.$modal.msgSuccess("瀹℃壒閫氳繃鎴愬姛");
               getList();
@@ -254,7 +254,7 @@
       })
       .catch((action) => {
         if (action === "cancel") {
-          batchApproveStockInRecords({ids, approvalStatus: "椹冲洖"})
+          batchApproveStockInRecords({ids, approvalStatus: 2})
               .then(() => {
                 proxy.$modal.msgSuccess("瀹℃壒椹冲洖鎴愬姛");
                 getList();
@@ -298,7 +298,7 @@
     type: "warning",
   })
       .then(() => {
-        batchDeleteStockInRecords(ids)
+        batchDeletePendingStockInRecords(ids)
             .then(() => {
               proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
               getList();

--
Gitblit v1.9.3