รายการปรับระดับชั้นงานลูกจ้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-25 15:32:40 +07:00
parent 95e02c21ec
commit d642f74a61
3 changed files with 7 additions and 7 deletions

View file

@ -169,6 +169,6 @@ export default {
appointEmployee: () => `${placement}/appointment/temp`, appointEmployee: () => `${placement}/appointment/temp`,
appointEmployeeByid: (id: string) => `${placement}/appointment/temp/${id}`, appointEmployeeByid: (id: string) => `${placement}/appointment/temp/${id}`,
appointEmployeePosition: (id: string) => `${placement}/appointment/temp/position/${id}`, appointEmployeePosition: (id: string) => `${placement}/appointment/temp/position/${id}`,
appointEmployeeOrder: () => `${placement}/appointment/temp/report`, appointEmployeeOrder: (typeId: string) => `${placement}/appointment/temp/report/${typeId}`,
apppointmentPositionUse: () => `${placement}/appointment/temp/use`, apppointmentPositionUse: () => `${placement}/appointment/temp/use`,
}; };

View file

@ -122,7 +122,7 @@ const createdAppoint = async () => {
}; };
showLoader(); showLoader();
await http await http
.post(config.API.appointEmployeeOrder(), data) .post(config.API.appointEmployeeOrder(Type), data)
.then(() => { .then(() => {
success($q, "บันทึกสำเร็จ"); success($q, "บันทึกสำเร็จ");
}) })
@ -151,7 +151,7 @@ watchEffect(() => {
<q-card-section class="q-pt-none"> <q-card-section class="q-pt-none">
<div class="row justify-between"> <div class="row justify-between">
<div class="col-5"> <div class="col-5">
<!-- <q-toolbar style="padding: 0"> <q-toolbar style="padding: 0">
<q-select <q-select
outlined outlined
dense dense
@ -164,9 +164,8 @@ watchEffect(() => {
map-options map-options
option-label="name" option-label="name"
option-value="id" option-value="id"
readonly
/> />
</q-toolbar> --> </q-toolbar>
</div> </div>
<div class="col-5"> <div class="col-5">
<q-toolbar style="padding: 0"> <q-toolbar style="padding: 0">

View file

@ -299,7 +299,8 @@ const fecthTypeOption = async () => {
.get(config.API.typeOrder()) .get(config.API.typeOrder())
.then((res) => { .then((res) => {
optionsType.value = res.data.result.filter( optionsType.value = res.data.result.filter(
(e: OpType) => e.commandCode === "C-PM-05" (e: OpType) =>
e.commandCode === "C-PM-22" || e.commandCode === "C-PM-24"
); );
type.value = optionsType.value[0].id; type.value = optionsType.value[0].id;
}) })
@ -370,7 +371,7 @@ const getPosition = async (id: string) => {
if (index >= 0) { if (index >= 0) {
selectedPosition.value = [data[index]]; selectedPosition.value = [data[index]];
} }
rowsPosition.value = data; rowsPosition.value = data;
ModalEmployee.value = true; ModalEmployee.value = true;
}) })
.catch((e) => { .catch((e) => {