From 55ba92dcd8c26c8b37150d5b472c2c3f595805ae Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 17 四月 2024 15:56:28 +0800
Subject: [PATCH] 库存调整 差异不显示的问题修改

---
 src/components/makepager/CommonFormTableView.vue |    4 ++--
 src/views/operate/inventoryAdjustment/index.vue  |    2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue
index fe8ce94..967f971 100644
--- a/src/components/makepager/CommonFormTableView.vue
+++ b/src/components/makepager/CommonFormTableView.vue
@@ -142,12 +142,12 @@
                 </div>
               </el-form-item>
               <el-form-item
-                v-else-if="item.inputFloat"
+                v-else-if="item.inputFloat||item.inputFloatValue"
                 label=" "
                 :prop="'tableData.' + scope.$index + '.' + item.prop"
                 :rules="[{ required: item.isRequird ? true : false, message: '杈撳叆涓嶈兘涓虹┖' }]"
               >
-                <span v-if="scope.row.isEdit">{{ scope.row[item.prop] }}</span>
+                <span v-if="scope.row.isEdit||(item.inputFloatValue&&!scope.row[item.isInputFloat])">{{ scope.row[item.prop] }}</span>
                 <div v-else @click.stop="commoInput">
                   <el-input-number
                     v-model="scope.row[item.prop]"
diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue
index 90897a0..1ec5461 100644
--- a/src/views/operate/inventoryAdjustment/index.vue
+++ b/src/views/operate/inventoryAdjustment/index.vue
@@ -124,13 +124,11 @@
         if (res.code === 200) {
           console.log(res)
           const list = res.data.map((item) => {
-            item.adjustAmount = 0
             return {
               ...item,
               isSet: false,
               isEdit: true,
               editable: true,
-              adjustAmount: 0
             }
           })
           this.tableList.tableData = list || []

--
Gitblit v1.8.0