From 054ced58ea3a99a3a6774bf43c9fb794781f0651 Mon Sep 17 00:00:00 2001
From: cuijian <cuijian@xalxzn.com>
Date: 星期一, 16 六月 2025 11:16:58 +0800
Subject: [PATCH] 额定寿命

---
 src/views/tms/modules/outBound/OutboundDetailSelectList.vue |    4 ++--
 src/views/tms/modules/outBound/OutboundModal.vue            |    9 +++++----
 src/views/tms/modules/outBound/OutboundOrderModal.vue       |    5 +++--
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/views/tms/modules/outBound/OutboundDetailSelectList.vue b/src/views/tms/modules/outBound/OutboundDetailSelectList.vue
index f0e82a2..6953efe 100644
--- a/src/views/tms/modules/outBound/OutboundDetailSelectList.vue
+++ b/src/views/tms/modules/outBound/OutboundDetailSelectList.vue
@@ -19,14 +19,14 @@
       
           <a-input-number
             v-if="col.dataIndex === 'ratedLife'"
-            :disabled="record.outboundQuantity > 1"
+            :disabled="record.accuracyClass != '1'"
             :value="text"
             @change="(e) => handleChange(e, record.key, col, index)"
             :min="1"
           />
           <a-input-number
             v-if="col.dataIndex === 'useLife'"
-            :disabled="record.outboundQuantity > 1"
+            :disabled="record.accuracyClass != '1'"
             :value="text"
             @change="(e) => handleChange(e, record.key, col, index)"
             :min="1"
diff --git a/src/views/tms/modules/outBound/OutboundModal.vue b/src/views/tms/modules/outBound/OutboundModal.vue
index 7c8b4ec..8312da4 100644
--- a/src/views/tms/modules/outBound/OutboundModal.vue
+++ b/src/views/tms/modules/outBound/OutboundModal.vue
@@ -51,21 +51,21 @@
         <div :key="col.dataIndex">
           <a-input-number
             v-if="col.dataIndex === 'outboundQuantity'"
-            :disabled="record.quantity <= 1"
+            :disabled="record.accuracyClass === '1'"
             :value="text"
             @change="(e) => handleChange(e, record.key, col, index)"
             :min="1"
           />
           <a-input-number
             v-if="col.dataIndex === 'ratedLife'"
-            :disabled="record.quantity > 1"
+            :disabled="record.accuracyClass != '1'"
             :value="text"
             @change="(e) => handleChange(e, record.key, col, index)"
             :min="1"
           />
           <a-input-number
             v-if="col.dataIndex === 'useLife'"
-            :disabled="record.quantity > 1"
+            :disabled="record.accuracyClass != '1'"
             :value="text"
             @change="(e) => handleChange(e, record.key, col, index)"
             :min="1"
@@ -234,7 +234,8 @@
           outboundQuantity: data[i].quantity,
           storageLocation: data[i].warehouseId,
           warehouseName: data[i].warehouseName,
-          outboundLocation: data[i].positionCode
+          outboundLocation: data[i].positionCode,
+          accuracyClass:data[i].accuracyClass
         })
       }
       this.ipagination.total = this.dataSource.length
diff --git a/src/views/tms/modules/outBound/OutboundOrderModal.vue b/src/views/tms/modules/outBound/OutboundOrderModal.vue
index b5bf43e..29c765c 100644
--- a/src/views/tms/modules/outBound/OutboundOrderModal.vue
+++ b/src/views/tms/modules/outBound/OutboundOrderModal.vue
@@ -94,7 +94,7 @@
         <div :key="col.dataIndex">
           <a-input-number
             v-if="col.dataIndex === 'outboundQuantity'"
-            :disabled="record.quantity <= 1"
+            :disabled="record.accuracyClass === '1'"
             :value="text"
             @change="(e) => handleChange(e, record.key, col, index)"
             :min="1"
@@ -286,7 +286,8 @@
             outboundQuantity: data[i].quantity,
             storageLocation: data[i].warehouseId,
             warehouseName: data[i].warehouseName,
-            outboundLocation: data[i].positionCode
+            outboundLocation: data[i].positionCode,
+            accuracyClass:data[i].accuracyClass
           })
         }
         this.ipagination.total = this.dataSource.length

--
Gitblit v1.9.3