This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-10 13:21:59 +07:00
parent 927a81ff75
commit 9e633b83b7
6 changed files with 55 additions and 9 deletions

View file

@ -155,11 +155,19 @@ function getPosType() {
.get(config.API.salaryEmployeePosType())
.then((res) => {
const data = res.data.result;
posTypeOp.value = data.map((item: PosType) => ({
const option = [
{
id: "",
name: "ทั้งหมด",
},
];
const test = data.map((item: PosType) => ({
id: item.id,
name: item.posTypeName,
}));
option.push(...test);
posTypeOp.value = option;
})
.catch((e) => {
messageError($q, e);