From ba1a2f73f9ce33d175bea4060d217b9f7a08eeed Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期四, 31 七月 2025 16:55:42 +0800
Subject: [PATCH] 工具报损-添加报损数量校验规则

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

diff --git a/src/views/tms/modules/inbound/InboundListRight.vue b/src/views/tms/modules/inbound/InboundListRight.vue
index 2a56ce4..87a962c 100644
--- a/src/views/tms/modules/inbound/InboundListRight.vue
+++ b/src/views/tms/modules/inbound/InboundListRight.vue
@@ -1,5 +1,5 @@
 <template>
-  <a-card :bordered="false">
+  <a-card :bordered="false" style="flex: 1;overflow:auto;max-height: 600px; min-height: 600px">
     <!-- 鏌ヨ鍖哄煙 -->
     <div class="table-page-search-wrapper">
       <a-form layout="inline" @keyup.enter.native="searchQuery">
@@ -9,7 +9,7 @@
             :sm="8"
           >
             <a-form-item
-              label="宸ュ叿缂栧彿"
+              label="宸ュ叿缂栫爜"
               :labelCol="{span: 5}"
               :wrapperCol="{span: 18, offset: 1}"
             >
@@ -188,8 +188,8 @@
         /* 鍒嗛〉鍙傛暟 */
       ipagination:{
         current: 1,
-        pageSize: 10,
-        pageSizeOptions: ['10', '20', '50'],
+        pageSize: 5,
+        pageSizeOptions: ['5', '10', '30'],
         showTotal: (total, range) => {
           return range[0] + "-" + range[1] + " 鍏�" + total + "鏉�"
         },
@@ -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,9 +492,10 @@
               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.$message.warning("璇烽�夋嫨鍙跺瓙鑺傜偣杩涜鏌ヨ");
               this.ipagination.total = 0
             }
           })
@@ -501,7 +503,7 @@
             this.loading = false;
           });
         } else {
-          this.$message.warning("璇烽�夋嫨鍙跺瓙鑺傜偣杩涜鏌ヨ");
+          //this.$message.warning("璇烽�夋嫨鍙跺瓙鑺傜偣杩涜鏌ヨ");
         }
       },
       onClearSelected() {

--
Gitblit v1.9.3