|
|
@@ -207,7 +207,9 @@ async function loadEmployees() {
|
|
|
}
|
|
|
if (!eid) return;
|
|
|
const res = await EmployeeAPI.listEmployee({ enterprise_id: eid, page_no: 1, page_size: 500 });
|
|
|
- employeeList.value = res?.data?.data?.items || [];
|
|
|
+ // 仅展示已签约的员工
|
|
|
+ const allItems = res?.data?.data?.items || [];
|
|
|
+ employeeList.value = allItems.filter((emp: any) => emp.status === "ACTIVATED");
|
|
|
} catch (e) {
|
|
|
console.error("加载员工列表失败", e);
|
|
|
}
|
|
|
@@ -225,8 +227,9 @@ function confirmEmployeeSelect() {
|
|
|
if (!quota || quota <= 0) continue;
|
|
|
targets.push({
|
|
|
issue_quota: String(quota),
|
|
|
- owner_type: "EMPLOYEE",
|
|
|
+ owner_type: "ENTERPRISE_PAY_UID",
|
|
|
owner_id: employee.employee_id,
|
|
|
+ owner_open_id: employee.identity_open_id || undefined,
|
|
|
user_name: employee.employee_name || employee.name,
|
|
|
});
|
|
|
}
|