Explorar o código

1、修复业务补充审核后仍然修改清单问题

MY hai 1 mes
pai
achega
728887bac0
Modificáronse 1 ficheiros con 8 adicións e 13 borrados
  1. 8 13
      JLHWEB/src/views/quote/mattressQuote/hooks/index.tsx

+ 8 - 13
JLHWEB/src/views/quote/mattressQuote/hooks/index.tsx

@@ -6040,19 +6040,14 @@ export const useHooks = (t?: any) => {
 
   const gotoErpapi = (_cur, type) => {
     try {
-      // if (type === 1) {
-      //   if (_cur.yw_flag == 1) {
-      //     throw new Error(_cur.mattresscode + ":已业务补充审核,无法修改");
-      //   }
-      // } else 
-      if (type === 2) {
-        if (_cur.js1_flag == 1) {
-          throw new Error(_cur.mattresscode + ":已产品补充审核,无法修改");
-        }
-      } else if (type === 3) {
-        if (_cur.js2_flag == 1) {
-          throw new Error(_cur.mattresscode + ":已清单补充审核,无法修改");
-        }
+      // if (_cur.yw_flag == 1) {
+      //   throw new Error(_cur.mattresscode + ":已业务补充审核,无法修改");
+      // }
+      if (_cur.js1_flag == 1) {
+        throw new Error(_cur.mattresscode + ":已产品补充审核,无法修改");
+      }
+      if (_cur.js2_flag == 1) {
+        throw new Error(_cur.mattresscode + ":已清单补充审核,无法修改");
       }
     } catch (error) {
       ElMessage.error(error.message);