From fa523e19c4e89c3a08aff41fe5acb57392a0f0aa Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 18 十二月 2023 14:57:43 +0800
Subject: [PATCH] 修改库存调整路由跳转,重订货规则数量设置默认值,样式调整

---
 src/components/makepager/CommonFormTableView.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index d83b14f..fae8e86 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -118,6 +118,7 @@
                     :controls="false"
                     size="mini"
                     style="width: 100%; margin-right: 5px"
+                    :min="item.prop==='minInventory'?0:1"
                     @change="
                       (val) => {
                         commonInputChange(val, item.prop, scope.row)
@@ -662,7 +663,16 @@
       } else {
         let selIndex = 0
         this.tableList.tableData.map((ite, index) => {
-          if (ite.id === row.id) {
+          // ite.id 鏄笂鏋惰鍒欑殑, ite.productId鏄簱瀛樿皟鏁寸殑
+          if (ite.id === row.id&&ite.id!=undefined&&row.id!=undefined) {
+            selIndex = index
+            ite.productId = item.id
+            ite.productName = item.name
+            ite.categoryId = item.categoryId
+            ite.productCategory = item.categoryName
+            ite.amount = item.amount
+            ite.unit = item.unit
+          }else if(ite.productId===row.productId){
             selIndex = index
             ite.productId = item.id
             ite.productName = item.name

--
Gitblit v1.8.0