แก้ไข statusText
This commit is contained in:
parent
6ec6e7bd12
commit
2fdd948e8f
2 changed files with 57 additions and 18 deletions
27
src/modules/02_transfer/store.ts
Normal file
27
src/modules/02_transfer/store.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { defineStore } from "pinia"
|
||||
|
||||
export const useTransferDataStore = defineStore("transfer", () => {
|
||||
const statusText = (val: string) => {
|
||||
switch (val) {
|
||||
case "WAITTING":
|
||||
return "รอดำเนินการ"
|
||||
case "PENDING":
|
||||
return "เลือกตำแหน่งแล้ว"
|
||||
case "APPROVE":
|
||||
return "อนุมัติ"
|
||||
case "REJECT":
|
||||
return "ไม่อนุมัติ"
|
||||
case "REPORT":
|
||||
return "ส่งรายชื่อไปออกคำสั่ง"
|
||||
case "DONE":
|
||||
return "ออกคำสั่งเสร็จแล้ว"
|
||||
|
||||
default:
|
||||
return "-"
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
statusText,
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue