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

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

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

View file

@ -299,7 +299,8 @@ const fecthTypeOption = async () => {
.get(config.API.typeOrder())
.then((res) => {
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;
})
@ -370,7 +371,7 @@ const getPosition = async (id: string) => {
if (index >= 0) {
selectedPosition.value = [data[index]];
}
rowsPosition.value = data;
rowsPosition.value = data;
ModalEmployee.value = true;
})
.catch((e) => {