Parcourir la source

feat(仓库管理): 添加响应式布局支持并修复出库数量更新问题

liujt il y a 5 mois
Parent
commit
f5cc582b4a

+ 10 - 1
src/views/warehouseManagement/components/AssetsDialog.vue

@@ -553,9 +553,18 @@
           } else {
             finalValue = singleDotValue;
           }
-          return (row.outboundNum = finalValue);
+          row.outboundNum = finalValue;
+          const currentIndex = this.selectionList.findIndex(item => item.id === row.id)
+          if(currentIndex > -1) {
+            this.$set(this.selectionList, currentIndex, row);
+          }
+          return
         } else {
           row.outboundNum = row.measureQuantity;
+          const currentIndex = this.selectionList.findIndex(item => item.id === row.id)
+          if(currentIndex > -1) {
+            this.$set(this.selectionList, currentIndex, row);
+          }
         }
       },
 

+ 6 - 0
src/views/warehouseManagement/outgoingManagement/index.vue

@@ -311,6 +311,12 @@
   // import { deepClone } from '@/utils'
   export default {
     components: { outboundOrderPrint, print, print1, print2, print3, print4 },
+    computed: {
+      // 是否开启响应式布局
+      styleResponsive() {
+        return this.$store.state.theme.styleResponsive;
+      }
+    },
     data() {
       return {
         currentId: '',