فهرست منبع

JLHWEB: 1、修复计算特殊工艺费用目录出现错误明细问题

JohnnyChan 5 روز پیش
والد
کامیت
8e587def6a
1فایلهای تغییر یافته به همراه3 افزوده شده و 7 حذف شده
  1. 3 7
      JLHWEB/src/views/quote/mattressQuote/hooks/index.tsx

+ 3 - 7
JLHWEB/src/views/quote/mattressQuote/hooks/index.tsx

@@ -5786,13 +5786,9 @@ export const useHooks = (t?: any) => {
     $tableTarget.remove(_remove);
 
     //计算拼侧数量
-    if (action == "add") {
-      if (mtrlItem?.extra_cost == 0) return;
-    } else if (action == "del") {
-      if (_sum <= 0) {
-        return;
-      }
-    }
+    if (!mtrlItem?.extra_cost) return;
+    if (_sum <= 0) return;
+
     let result = [];
 
     let extraArr = state.specialProcessesMxData.filter(item => item.typeid == 1 && item.extraid == arg_extraid);