lxf před 1 rokem
rodič
revize
f525b05f14
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 9 1
      src/views/production/warehouse/check/index.vue

+ 9 - 1
src/views/production/warehouse/check/index.vue

@@ -181,6 +181,13 @@ const config = computed(() => {
     },
     {
       attrs: {
+        label: "盘点单号",
+        prop: "code",
+        width: 200,
+      },
+    },
+    {
+      attrs: {
         label: "归属事业部",
         prop: "departmentName",
         "min-width": 160,
@@ -406,8 +413,9 @@ const calculationMoney = (row) => {
   if (row.surplusStock) {
     num = Number(num) - Number(row.surplusStock);
   }
+  let money = 0;
   if (row.balanceUnitPrice) {
-    money = Number(Math.round(money * Number(row.balanceUnitPrice) * 100) / 100);
+    money = Number(Math.round(num * Number(row.balanceUnitPrice) * 100) / 100);
     return money;
   } else {
     return 0;