lxf 1 年之前
父节点
当前提交
6a4dabfabd
共有 1 个文件被更改,包括 11 次插入13 次删除
  1. 11 13
      src/views/production/warehouse/check/index.vue

+ 11 - 13
src/views/production/warehouse/check/index.vue

@@ -236,7 +236,7 @@ const configTwo = computed(() => {
       attrs: {
         label: "品号",
         prop: "bomSpecCode",
-        width: 160,
+        width: 150,
       },
     },
     {
@@ -250,7 +250,7 @@ const configTwo = computed(() => {
       attrs: {
         label: "结存单价",
         prop: "balanceUnitPrice",
-        width: 140,
+        width: 120,
         algin: "right",
       },
     },
@@ -258,55 +258,55 @@ const configTwo = computed(() => {
       attrs: {
         label: "仓库名称",
         prop: "warehouseName",
-        width: 160,
+        width: 140,
       },
     },
     {
       attrs: {
         label: "归属事业部",
         prop: "departmentName",
-        width: 160,
+        width: 140,
       },
     },
     {
       attrs: {
         label: "单位",
         prop: "bomUnit",
-        width: 140,
+        width: 100,
       },
     },
     {
       attrs: {
         label: "盘前数量",
         prop: "surplusStock",
-        width: 140,
+        width: 120,
       },
     },
     {
       attrs: {
         label: "盘后数量",
         prop: "checkQuantity",
-        width: 140,
+        width: 120,
       },
     },
     {
       attrs: {
         label: "盘盈/亏数量",
         slot: "quantity",
-        width: 140,
+        width: 120,
       },
     },
     {
       attrs: {
         label: "盘盈/亏金额",
         slot: "money",
-        width: 140,
+        width: 120,
       },
     },
     {
       attrs: {
         label: "备注",
-        slot: "remark",
+        prop: "remark",
         width: 140,
       },
     },
@@ -413,10 +413,8 @@ const calculationMoney = (row) => {
   if (row.surplusStock) {
     num = Number(num) - Number(row.surplusStock);
   }
-  let money = 0;
   if (row.balanceUnitPrice) {
-    money = Number(Math.round(num * Number(row.balanceUnitPrice) * 100) / 100);
-    return money;
+    return Number(Math.round(num * Number(row.balanceUnitPrice) * 100) / 100);
   } else {
     return 0;
   }