lxf 1 سال پیش
والد
کامیت
169f476827
2فایلهای تغییر یافته به همراه42 افزوده شده و 8 حذف شده
  1. 21 4
      src/views/production/warehouse/inventory/index.vue
  2. 21 4
      src/views/subsidiary/warehouse/inventory/index.vue

+ 21 - 4
src/views/production/warehouse/inventory/index.vue

@@ -41,6 +41,9 @@
             <template #total="{ item }">
               <div>{{ getTotal(item) }}</div>
             </template>
+            <template #quantity="{ item }">
+              <div>{{ item.quantity + item.lockQuantity }}</div>
+            </template>
           </byTable>
         </el-card>
       </el-col>
@@ -176,7 +179,7 @@ const config = computed(() => {
       attrs: {
         label: "结存单价",
         prop: "balanceUnitPrice",
-        width: 120,
+        width: 110,
         align: "right",
       },
     },
@@ -184,15 +187,29 @@ const config = computed(() => {
       attrs: {
         label: "结存总价",
         slot: "total",
-        width: 160,
+        width: 140,
         align: "right",
       },
     },
     {
       attrs: {
-        label: "库存",
+        label: "锁定库存",
+        prop: "lockQuantity",
+        width: 110,
+      },
+    },
+    {
+      attrs: {
+        label: "可用库存",
         prop: "quantity",
-        width: 120,
+        width: 110,
+      },
+    },
+    {
+      attrs: {
+        label: "库存",
+        slot: "quantity",
+        width: 110,
       },
     },
     props.selectStatus

+ 21 - 4
src/views/subsidiary/warehouse/inventory/index.vue

@@ -41,6 +41,9 @@
             <template #total="{ item }">
               <div>{{ getTotal(item) }}</div>
             </template>
+            <template #quantity="{ item }">
+              <div>{{ item.quantity + item.lockQuantity }}</div>
+            </template>
           </byTable>
         </el-card>
       </el-col>
@@ -168,7 +171,7 @@ const config = computed(() => {
       attrs: {
         label: "结存单价",
         prop: "balanceUnitPrice",
-        width: 120,
+        width: 110,
         align: "right",
       },
     },
@@ -176,15 +179,29 @@ const config = computed(() => {
       attrs: {
         label: "结存总价",
         slot: "total",
-        width: 160,
+        width: 140,
         align: "right",
       },
     },
     {
       attrs: {
-        label: "库存",
+        label: "锁定库存",
+        prop: "lockQuantity",
+        width: 110,
+      },
+    },
+    {
+      attrs: {
+        label: "可用库存",
         prop: "quantity",
-        width: 120,
+        width: 110,
+      },
+    },
+    {
+      attrs: {
+        label: "库存",
+        slot: "quantity",
+        width: 110,
       },
     },
   ];