瀏覽代碼

库存表格优化:在changeCount方法中添加isBlockCount参数控制聚仁环境下的块数计算逻辑

yusheng 10 月之前
父節點
當前提交
10670449b8
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

+ 4 - 4
src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

@@ -690,7 +690,7 @@
             slot: 'measuringUnit',
             align: 'center'
           },
-          this.clientEnvironmentId == 0
+          this.clientEnvironmentId == 4
             ? {
                 width: 150,
                 prop: 'blockCount',
@@ -1016,7 +1016,7 @@
         );
       },
       //改变数量
-      changeCount(row, index) {
+      changeCount(row, index,isBlockCount) {
         this.$set(
           this.form,
           'datasource[' + index + ']',
@@ -1034,7 +1034,7 @@
         this.changeSendTotalWeight(row, index);
         this.getNotaxSinglePrice();
         this.$forceUpdate();
-        if (this.clientEnvironmentId == 4) {
+        if (this.clientEnvironmentId == 4&&!isBlockCount) {
           this.tableHandleKeyUp(row, index, 'sum');
         }
       },
@@ -1147,7 +1147,7 @@
               (Number(row.blockCount) * modelLong * modeWide * modeHight) /
               1000000;
             row.saleCount = row.totalCount;
-            this.changeCount(row, index);
+            this.changeCount(row, index,true);
           }
         }
       },