ออกคำสั่งเลื่อนเงินเดือน/ค่าจ้าง
This commit is contained in:
parent
5febe188a2
commit
23be6c5fb8
5 changed files with 699 additions and 557 deletions
|
|
@ -18,7 +18,7 @@ import { useOrderStore } from "@/modules/11_discipline/store/OrderStore";
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useOrderPlacementDataStore } from "@/modules/10_order/store";
|
||||
|
||||
const rows = ref<any>([])
|
||||
const rows = ref<any>([]);
|
||||
const $q = useQuasar(); //ใช้ noti quasar
|
||||
const mixin = useCounterMixin();
|
||||
const DataStore = useOrderPlacementDataStore();
|
||||
|
|
@ -31,7 +31,13 @@ const pagination = ref({
|
|||
rowsPerPage: 10,
|
||||
});
|
||||
|
||||
const commandCodes = ref<string[]>(["C-PM-33", "C-PM-34", "C-PM-35", "C-PM-36", "C-PM-37"]);
|
||||
const commandCodes = ref<string[]>([
|
||||
"C-PM-33",
|
||||
"C-PM-34",
|
||||
"C-PM-35",
|
||||
"C-PM-36",
|
||||
"C-PM-37",
|
||||
]);
|
||||
|
||||
/** ข้อมูลที่เเสดงใน คอลัม */
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
|
@ -153,6 +159,8 @@ async function fetchOrderlist() {
|
|||
);
|
||||
|
||||
stroe.fetchOrder(filterListOrder);
|
||||
|
||||
rows.value = stroe.mainData;
|
||||
})
|
||||
.catch((e: any) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -217,7 +225,7 @@ async function OrderTypeFilter() {
|
|||
await http
|
||||
.get(config.API.typeOrder())
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
console.log(res);
|
||||
const response = res.data.result;
|
||||
const filterRes = response.filter((e: any) =>
|
||||
commandCodes.value.includes(e.commandCode)
|
||||
|
|
@ -294,7 +302,7 @@ function filterSelector(val: any, update: Function, refData: string) {
|
|||
}
|
||||
}
|
||||
|
||||
function redirectToPage(id:string,status:string){
|
||||
function redirectToPage(id: string, status: string) {
|
||||
let step = 1;
|
||||
switch (status) {
|
||||
case "จัดทำร่างคำสั่ง":
|
||||
|
|
@ -500,9 +508,7 @@ function redirectToPage(id:string,status:string){
|
|||
v-for="col in props.cols"
|
||||
:key="col.name"
|
||||
:props="props"
|
||||
@click="
|
||||
redirectToPage(props.row.id, props.row.status)
|
||||
"
|
||||
@click="redirectToPage(props.row.orderId, props.row.status)"
|
||||
>
|
||||
<div v-if="col.name === 'no'">
|
||||
{{ props.rowIndex + 1 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue