fix bug
This commit is contained in:
parent
927a81ff75
commit
9e633b83b7
6 changed files with 55 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue