Преглед на файлове

库存划拨理重计算BUG修改

xiaosonghong преди 2 месеца
родител
ревизия
20d747b5bd
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      src/views/SIDEWMS/components/oYeRealTimeInventory.vue

+ 7 - 1
src/views/SIDEWMS/components/oYeRealTimeInventory.vue

@@ -765,10 +765,13 @@ export default {
   },
   watch: {
     materialNumber(val) {
+      //BUG修复
+      /**
       if (val == this.selectedRowData.materialNumber) {
         this.updateInsertForm.theoryWeight = this.selectedRowData.theoryWeight
         this.updateInsertForm.netWeight = this.selectedRowData.netWeight
       } else {
+       */
         this.updateInsertForm.theoryWeight = accMul(
           val,
           this.updateInsertForm.singleWeight
@@ -780,7 +783,10 @@ export default {
           ),
           val
         )
-      }
+        if (val == this.selectedRowData.materialNumber) {
+          this.updateInsertForm.netWeight = this.selectedRowData.netWeight
+        }
+      //}
     },
     updateInsertVisible(val) {
       if (!val) {