diff --git a/src/api/05_placement/api.placement.ts b/src/api/05_placement/api.placement.ts index 3838b0228..0d85368a6 100644 --- a/src/api/05_placement/api.placement.ts +++ b/src/api/05_placement/api.placement.ts @@ -169,6 +169,6 @@ export default { appointEmployee: () => `${placement}/appointment/temp`, appointEmployeeByid: (id: string) => `${placement}/appointment/temp/${id}`, appointEmployeePosition: (id: string) => `${placement}/appointment/temp/position/${id}`, - appointEmployeeOrder: (commandTypeId: string) => `${placement}/appointment/temp/report/${commandTypeId}`, + appointEmployeeOrder: () => `${placement}/appointment/temp/report`, apppointmentPositionUse: () => `${placement}/appointment/temp/use`, }; diff --git a/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue b/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue index fd56e585d..6034e5f87 100644 --- a/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue +++ b/src/modules/05_placement/components/AppointEmployee/Dialogbody.vue @@ -15,7 +15,7 @@ const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin; const $q = useQuasar(); const selected = ref<[]>([]); const checkSelected = computed(() => { - if (selected.value.length === 0 || props.type === "") { + if (selected.value.length === 0) { return true; } }); @@ -122,7 +122,7 @@ const createdAppoint = async () => { }; showLoader(); await http - .put(config.API.appointEmployeeOrder(Type), data) + .put(config.API.appointEmployeeOrder(), data) .then(() => { success($q, "บันทึกสำเร็จ"); }) @@ -151,7 +151,7 @@ watchEffect(() => {
- +