浏览代码

快捷出库隐藏不干胶以及吊牌

lxf 1 年之前
父节点
当前提交
700417e255
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/views/production/operation/batching/quick.vue

+ 10 - 2
src/views/production/operation/batching/quick.vue

@@ -148,12 +148,20 @@ const clickCancel = () => {
 };
 onMounted(() => {
   proxy.post("/stockPreparation/outBomList", formData.data).then((res) => {
-    inOutStorageBomList.value = Object.freeze(res);
+    if (res && res.length > 0) {
+      inOutStorageBomList.value = Object.freeze(res.filter((item) => !["吊牌", "不干胶"].includes(item.classifyName)));
+    } else {
+      inOutStorageBomList.value = [];
+    }
   });
 });
 const changeDepartment = () => {
   proxy.post("/stockPreparation/outBomList", formData.data).then((res) => {
-    inOutStorageBomList.value = Object.freeze(res);
+    if (res && res.length > 0) {
+      inOutStorageBomList.value = Object.freeze(res.filter((item) => !["吊牌", "不干胶"].includes(item.classifyName)));
+    } else {
+      inOutStorageBomList.value = [];
+    }
   });
 };
 const statisticalQuantity = () => {