From 677a8679b5140ca6019f974c092de103df8f8559 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 01 六月 2026 17:52:16 +0800
Subject: [PATCH] 新疆马铃薯 1.库存管理绑定设备,添加查看数采功能

---
 src/views/inventoryManagement/stockManagement/BindDeviceDialog.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/inventoryManagement/stockManagement/BindDeviceDialog.vue b/src/views/inventoryManagement/stockManagement/BindDeviceDialog.vue
index 31a72c4..3dab100 100644
--- a/src/views/inventoryManagement/stockManagement/BindDeviceDialog.vue
+++ b/src/views/inventoryManagement/stockManagement/BindDeviceDialog.vue
@@ -53,7 +53,7 @@
 <script setup>
   import { ref, computed, onMounted, getCurrentInstance } from "vue";
   import { getLedgerPage } from "@/api/equipmentManagement/ledger.js";
-  import { bindIotDevice } from "@/api/inventoryManagement/stockInventory.js";
+  import { createStockInventory } from "@/api/inventoryManagement/stockInventory.js";
 
   const props = defineProps({
     visible: {
@@ -124,7 +124,15 @@
         submitLoading.value = true;
         // 灏嗚澶嘔D鏁扮粍杞崲涓洪�楀彿鍒嗛殧鐨勫瓧绗︿覆
         const warehouse = formState.value.deviceIds.join(",");
-        bindIotDevice(props.record.id, warehouse)
+        // 浣跨敤搴撳瓨鏂板/缂栬緫鎺ュ彛锛寃arehouse 瀛楁浼犺澶嘔D
+        const submitData = {
+          id: props.record.id,
+          productModelId: props.record.productModelId,
+          batchNo: props.record.batchNo,
+          qualitity: props.record.qualitity,
+          warehouse: warehouse,
+        };
+        createStockInventory(submitData)
           .then(res => {
             submitLoading.value = false;
             proxy.$modal.msgSuccess("缁戝畾鎴愬姛");

--
Gitblit v1.9.3