|
|
@@ -72,7 +72,7 @@
|
|
|
import { ref, computed, watch } from "vue";
|
|
|
import EmployeeAPI from "@/api/module_payment/employee";
|
|
|
|
|
|
-interface Row { id: string; name: string; phone: string }
|
|
|
+interface Row { id: string; name: string; phone: string; status: string }
|
|
|
interface Props { visible: boolean; selectedIds: string[]; enterpriseId: string }
|
|
|
|
|
|
const props = defineProps<Props>();
|
|
|
@@ -109,7 +109,7 @@ async function fetchEmployees() {
|
|
|
const data = res?.data?.data || res?.data;
|
|
|
const list = data?.items || data?.list || [];
|
|
|
allEmployees.value = list
|
|
|
- .filter((item: any) => item.status === "EMPLOYEE_ACTIVATED")
|
|
|
+ .filter((item: any) => item.status === "ACTIVATED")
|
|
|
.map((item: any) => ({
|
|
|
id: item.employee_id || item.id,
|
|
|
name: item.employee_name || "-",
|