Przeglądaj źródła

总计小数点更改

lichao 3 lat temu
rodzic
commit
47df4dcfd8

+ 4 - 3
src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

@@ -3454,11 +3454,12 @@ export default {
             }
           }, 0);
           if (column.property === "fGrossweight") {
-            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           } else if (column.property === "fNetweight") {
-            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           } else {
-            sums[index] = sums[index].toFixed(2);
+            // sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index]
           }
         }
       });

+ 3 - 3
src/views/Warehousing/goodsTransfer/index.vue

@@ -898,13 +898,13 @@ export default {
             }
           }, 0);
           if (column.property === "fGrossweight") {
-            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           }
           if (column.property === "fNetweight") {
-            sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           }
           if (column.property === "fQty") {
-            sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index];
           }
           if (column.property === "fPlanqty") {
             if (sums[index]) {

+ 13 - 8
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -310,6 +310,7 @@
                 maxlength="16"
                 v-input-limit="2"
                 placeholder="计划净重"
+                @input="changePlannetWeight"
                 :disabled="
                 browseStatus || current !== before || form.warehouseStatus > 3
               "
@@ -6372,6 +6373,7 @@ export default {
       entryPrinting: 1,
       weighedRequired: 1,
       inTime: '',
+      bring: null
     };
   },
   created() {
@@ -6436,6 +6438,9 @@ export default {
     this.getConfigKey("show_fIfinspection").then((response) => {
       this.showfIfinspection = response.msg;
     });
+    this.getConfigKey("warehouse.inStock.bring").then((response) => {
+      this.bring = response.msg;
+    });
     //货值是否显示
     // this.getConfigKey("show_fValue").then((response) => {
     //   this.showfValue = response.msg;
@@ -7998,7 +8003,8 @@ export default {
           } else if (column.property === "fNetweight") {
             sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           } else {
-            sums[index] = sums[index].toFixed(2);
+            // sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index]
           }
         }
       });
@@ -8802,19 +8808,18 @@ export default {
         this.msgSuccess("撤销成功");
       })
     },
+    changePlannetWeight() {
+      console.log(this.bring)
+      if (this.bring == '0') {
+        this.$set(this.form, 'fPlangrossweight', this.form.fPlannetweight)
+      }
+    },
   },
   watch: {
     // 监听 addOrUpdateVisible 改变
     addOrUpdateVisible(oldVal, newVal) {
       this.showDialog = this.addOrUpdateVisible;
     },
-    'form.fPlannetweight': {
-      deep: true,
-      handler: function(newVal, oldVal) {
-        // this.form.fPlangrossweight = newVal
-        this.$set(this.form, 'fPlangrossweight', newVal)
-      }
-    }
   },
 };
 </script>

+ 2 - 1
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -6169,7 +6169,8 @@ export default {
           } else if (column.property === "fNetweight") {
             sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           } else {
-            sums[index] = sums[index].toFixed(2);
+            // sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index]
           }
         }
       });

+ 2 - 1
src/views/Warehousing/outStock/index.vue

@@ -960,7 +960,8 @@ export default {
             sums[index] = sums[index].toFixed(4) + "吨";
           }
           if (column.property === "fQty") {
-            sums[index] = sums[index].toFixed(2);
+            // sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index]
           }
           if (column.property === "fPlanqty") {
             if (sums[index]) {

+ 1 - 1
src/views/Warehousing/stockTransfer/AddOrUpdate.vue

@@ -4940,7 +4940,7 @@ export default {
           } else if (column.property === "fNetweight") {
             sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           } else {
-            sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index];
           }
         }
       });

+ 1 - 1
src/views/Warehousing/stockTransfer/index.vue

@@ -918,7 +918,7 @@ export default {
             sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           }
           if (column.property === "fQty") {
-            sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index];
           }
           if (column.property === "fPlanqty") {
             if (sums[index]) {

+ 9 - 9
src/views/reportManagement/whgenleg/index.vue

@@ -832,31 +832,31 @@ export default {
               }
             }, 0);
             if (column.property === "fGrossweightD") {
-              sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+              sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
             }
             if (column.property === "fNetweightD") {
-              sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+              sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
             }
             if (column.property === "fQtyD") {
-              sums[index] = sums[index].toFixed(2);
+              sums[index] = sums[index];
             }
             if (column.property === "fGrossweightC") {
-              sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+              sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
             }
             if (column.property === "fNetweightC") {
-              sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+              sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
             }
             if (column.property === "fQtyC") {
-              sums[index] = sums[index].toFixed(2);
+              sums[index] = sums[index];
             }
             if (column.property === "fGrossweightblc") {
-              sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+              sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
             }
             if (column.property === "fNetweightblc") {
-              sums[index] = (sums[index] / 1000).toFixed(2) + "吨";
+              sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
             }
             if (column.property === "fQtyblc") {
-              sums[index] = sums[index].toFixed(2);
+              sums[index] = sums[index];
             }
           }
         }