Ver Fonte

fix: scope_owner_type PHONE→ENTERPRISE_PAY_UID

alphah há 2 semanas atrás
pai
commit
2569347e53

+ 2 - 2
frontend/src/views/module_payment/institution/components/InstitutionForm.vue

@@ -430,7 +430,7 @@ async function submitForm() {
       submitData.scope_owner_type = "ENTERPRISE_PAY_UID";
       submitData.scope_owner_type = "ENTERPRISE_PAY_UID";
       submitData.scope_owner_id_list = formData.department_id ? [formData.department_id] : undefined;
       submitData.scope_owner_id_list = formData.department_id ? [formData.department_id] : undefined;
     } else if (formData.applicable_scope === "employee") {
     } else if (formData.applicable_scope === "employee") {
-      submitData.scope_owner_type = "PHONE";
+      submitData.scope_owner_type = "ENTERPRISE_PAY_UID";
       submitData.scope_owner_id_list = formData.employee_ids;
       submitData.scope_owner_id_list = formData.employee_ids;
     }
     }
 
 
@@ -466,7 +466,7 @@ async function submitForm() {
         consult_mode: formData.consult_mode || undefined,
         consult_mode: formData.consult_mode || undefined,
         // 适用员工范围
         // 适用员工范围
         applicable_scope: formData.applicable_scope,
         applicable_scope: formData.applicable_scope,
-        scope_owner_type: "PHONE",
+        scope_owner_type: "ENTERPRISE_PAY_UID",
         scope_owner_id_list: formData.applicable_scope === "employee"
         scope_owner_id_list: formData.applicable_scope === "employee"
           ? (formData.employee_ids || [])
           ? (formData.employee_ids || [])
           : formData.applicable_scope === "department" && formData.department_id
           : formData.applicable_scope === "department" && formData.department_id