Przeglądaj źródła

fix:客户管理循环委托修改,修改判断现在可以随便改

ly 9 miesięcy temu
rodzic
commit
1865396120
1 zmienionych plików z 9 dodań i 38 usunięć
  1. 9 38
      src/views/business/service/loop/index.vue

+ 9 - 38
src/views/business/service/loop/index.vue

@@ -489,46 +489,17 @@
     //   proxy.$modal.msg("工单已终止");
     //   return;
     // }
-    if (record != null && row.isStop === 1 && (record.status === 3) &&
-      (editable || viewable)
-    ) {
-      if (row.taskTypeId === "1") {
-        keepAccountViewRef.value.open({
-          workOrderId: row.id,
-          month: item,
-          year: queryParams.value.year,
-          companyId: row.companyId,
-          companyName: row.companyName,
-        });
-      } else if (row.taskTypeId === "2") {
-        socialSecurityViewRef.value.open({
-          workOrderId: row.id,
-          month: item,
-          year: queryParams.value.year,
-          companyId: row.companyId,
-          companyName: row.companyName,
-        });
-      } else if (row.taskTypeId === "3") {
-        housingFundViewRef.value.open({
-          workOrderId: row.id,
-          month: item,
-          year: queryParams.value.year,
-          companyId: row.companyId,
-          companyName: row.companyName,
-        });
-      } else if (row.taskTypeId === "4") {
-      }
-    } else if (
-      row.entrusts != null &&
-      row.entrusts.length > 0 &&
-      (editable || viewable)
+    if (
+        row.entrusts != null &&
+        row.entrusts.length > 0 &&
+        (editable || viewable)
     ) {
       if (
-        row.entrusts.findIndex(
-          (v) =>
-            proxy.moment(v.currentMonth).format("YYYYMM") ===
-            queryParams.value.year + item
-        ) >= 0
+          row.entrusts.findIndex(
+              (v) =>
+                  proxy.moment(v.currentMonth).format("YYYYMM") ===
+                  queryParams.value.year + item
+          ) >= 0
       ) {
         if (row.taskTypeId === "1") {
           keepAccountViewRef.value.open({