From 33f721fc0a4bc40679bff4983aeb5d7edb821705 Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期四, 24 七月 2025 10:12:08 +0800
Subject: [PATCH] 仓库增加格数及对应功能修改,库存子表不管到把的唯一编码存储刀具编码

---
 src/views/tms/modules/inbound/InboundListRight.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/tms/modules/inbound/InboundListRight.vue b/src/views/tms/modules/inbound/InboundListRight.vue
index 9d15b9c..be65891 100644
--- a/src/views/tms/modules/inbound/InboundListRight.vue
+++ b/src/views/tms/modules/inbound/InboundListRight.vue
@@ -349,10 +349,11 @@
         }
       },
 
-      onSelectChange(selectedRowKeys) {
+      onSelectChange(selectedRowKeys,selectionRows) {
         this.selectedRowKeys = selectedRowKeys;
+        this.selectionRows = selectionRows
         //閫氳繃id鏌ヨ绠$悊鍙傛暟鍜屽弬鏁版暟鎹�
-        getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.paraTypeFlag}).then((res) => {
+        getAction(this.url.queryParaByToolCode, { toolCode: this.selectionRows[0].toolCodeId,paraTypeFlag:this.paraTypeFlag}).then((res) => {
           if (res.success) {
             if(this.paraTypeFlag === "1"){
               this.$refs.paraCommonToolList.getPara(res.result);
@@ -371,7 +372,7 @@
             this.$message.warning(res.message);
           }
         })
-        getAction(this.url.queryByToolCode, { toolCode: this.selectedRowKeys[0]}).then((res) => {
+        getAction(this.url.queryByToolCode, { toolCode: this.selectionRows[0].toolCodeId}).then((res) => {
           if (res.success) {
             this.$refs.toolsConfigPropertyList.getPara(res.result);
           } else {
@@ -491,7 +492,8 @@
               this.ipagination.total = res.result.total
               //榛樿閫変腑绗竴鏉℃暟鎹�
               this.selectedRowKeys[0] = res.result.records[0].id
-              this.onSelectChange(this.selectedRowKeys)
+              this.selectionRows = res.result.records
+              this.onSelectChange(this.selectedRowKeys,this.selectionRows)
             } else {
               //this.$message.warning("璇烽�夋嫨鍙跺瓙鑺傜偣杩涜鏌ヨ");
               this.ipagination.total = 0

--
Gitblit v1.9.3