From 03cfba0f636b42417070fc8caef44bcdd792a085 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 07 五月 2024 17:34:37 +0800
Subject: [PATCH] 概述 出库模块 编辑的时候循环处理对应产品调用接口获取在库数量的逻辑处理

---
 src/components/makepager/CommonFormTableView.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index a52458e..500bf19 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -160,7 +160,7 @@
                     :controls="false"
                     size="mini"
                     style="width: 100%; margin-right: 5px"
-                    :min="item.prop === 'minInventory' ? 0 : 1"
+                    :min="item.prop === 'minInventory' ? 0 : 0"
                     @change="
                       (val) => {
                         commonInputChange(val, item.prop, scope.row)
@@ -259,7 +259,7 @@
                     style="width: 80%"
                     @change="
                       (val) => {
-                        selSonLocationClick(val, item.prop)
+                        selSonLocationClick(val, item.prop,scope.row,scope)
                       }
                     "
                   >
@@ -570,10 +570,19 @@
   computed: {},
   watch: {
     productTableList() {
-      this.tableList = this.productTableList
+      // this.showcol = this.productTableList.showcol
+      this.getTableInfo()
     }
   },
   methods: {
+    getTableInfo(){
+      this.tableList = this.productTableList
+      if (this.tableList.tableData.length === 1 && this.tableList.tableData[0].name === "") {
+        this.isRecalculate = false
+      } else {
+        this.isRecalculate = true
+      }
+    },
     // 浜у搧鍚嶇О
     async getProductList() {
       await getProductList({
@@ -891,8 +900,8 @@
       this.$emit("selLocationClick", item, prop)
     },
     // 閫夋嫨瀛愪綅缃�
-    selSonLocationClick(item) {
-      this.$emit("selSonLocationClick", item)
+    selSonLocationClick(item,prop,row,scope) {
+      this.$emit("selSonLocationClick", item,prop,row,scope)
     },
     // 鑾峰彇鍦ㄥ簱涓庨娴嬫暟閲�
     getAmountAndPrediction(item, val, ite) {

--
Gitblit v1.8.0